Class: Stripe::QuoteService::UpdateParams::Line::StartsAt

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/services/quote_service.rb

Defined Under Namespace

Classes: DiscountEnd, LineEndsAt

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(discount_end: nil, line_ends_at: nil, timestamp: nil, type: nil) ⇒ StartsAt

Returns a new instance of StartsAt.



1657
1658
1659
1660
1661
1662
# File 'lib/stripe/services/quote_service.rb', line 1657

def initialize(discount_end: nil, line_ends_at: nil, timestamp: nil, type: nil)
  @discount_end = discount_end
  @line_ends_at = line_ends_at
  @timestamp = timestamp
  @type = type
end

Instance Attribute Details

#discount_endObject

Use the ‘end` time of a given discount.



1649
1650
1651
# File 'lib/stripe/services/quote_service.rb', line 1649

def discount_end
  @discount_end
end

#line_ends_atObject

The timestamp the given line ends at.



1651
1652
1653
# File 'lib/stripe/services/quote_service.rb', line 1651

def line_ends_at
  @line_ends_at
end

#timestampObject

A precise Unix timestamp.



1653
1654
1655
# File 'lib/stripe/services/quote_service.rb', line 1653

def timestamp
  @timestamp
end

#typeObject

Select a way to pass in ‘starts_at`.



1655
1656
1657
# File 'lib/stripe/services/quote_service.rb', line 1655

def type
  @type
end