Class: Stripe::QuoteCreateParams::Line::StartsAt
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::QuoteCreateParams::Line::StartsAt
- Defined in:
- lib/stripe/params/quote_create_params.rb
Defined Under Namespace
Classes: DiscountEnd, LineEndsAt
Instance Attribute Summary collapse
-
#discount_end ⇒ Object
Use the ‘end` time of a given discount.
-
#line_ends_at ⇒ Object
The timestamp the given line ends at.
-
#timestamp ⇒ Object
A precise Unix timestamp.
-
#type ⇒ Object
Select a way to pass in ‘starts_at`.
Instance Method Summary collapse
-
#initialize(discount_end: nil, line_ends_at: nil, timestamp: nil, type: nil) ⇒ StartsAt
constructor
A new instance of StartsAt.
Methods inherited from RequestParams
attr_accessor, coerce_params, coerce_value, field_encodings, new, #to_h
Constructor Details
#initialize(discount_end: nil, line_ends_at: nil, timestamp: nil, type: nil) ⇒ StartsAt
Returns a new instance of StartsAt.
521 522 523 524 525 526 |
# File 'lib/stripe/params/quote_create_params.rb', line 521 def initialize(discount_end: nil, line_ends_at: nil, timestamp: nil, type: nil) @discount_end = discount_end @line_ends_at = line_ends_at @timestamp = @type = type end |
Instance Attribute Details
#discount_end ⇒ Object
Use the ‘end` time of a given discount.
513 514 515 |
# File 'lib/stripe/params/quote_create_params.rb', line 513 def discount_end @discount_end end |
#line_ends_at ⇒ Object
The timestamp the given line ends at.
515 516 517 |
# File 'lib/stripe/params/quote_create_params.rb', line 515 def line_ends_at @line_ends_at end |
#timestamp ⇒ Object
A precise Unix timestamp.
517 518 519 |
# File 'lib/stripe/params/quote_create_params.rb', line 517 def @timestamp end |
#type ⇒ Object
Select a way to pass in ‘starts_at`.
519 520 521 |
# File 'lib/stripe/params/quote_create_params.rb', line 519 def type @type end |