Class: Stripe::Quote::CreateParams::Line::StartsAt

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/resources/quote.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.



1178
1179
1180
1181
1182
1183
# File 'lib/stripe/resources/quote.rb', line 1178

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.



1167
1168
1169
# File 'lib/stripe/resources/quote.rb', line 1167

def discount_end
  @discount_end
end

#line_ends_atObject

The timestamp the given line ends at.



1170
1171
1172
# File 'lib/stripe/resources/quote.rb', line 1170

def line_ends_at
  @line_ends_at
end

#timestampObject

A precise Unix timestamp.



1173
1174
1175
# File 'lib/stripe/resources/quote.rb', line 1173

def timestamp
  @timestamp
end

#typeObject

Select a way to pass in ‘starts_at`.



1176
1177
1178
# File 'lib/stripe/resources/quote.rb', line 1176

def type
  @type
end