Class: Stripe::Quote::UpdateParams::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.



2078
2079
2080
2081
2082
2083
# File 'lib/stripe/resources/quote.rb', line 2078

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.



2070
2071
2072
# File 'lib/stripe/resources/quote.rb', line 2070

def discount_end
  @discount_end
end

#line_ends_atObject

The timestamp the given line ends at.



2072
2073
2074
# File 'lib/stripe/resources/quote.rb', line 2072

def line_ends_at
  @line_ends_at
end

#timestampObject

A precise Unix timestamp.



2074
2075
2076
# File 'lib/stripe/resources/quote.rb', line 2074

def timestamp
  @timestamp
end

#typeObject

Select a way to pass in ‘starts_at`.



2076
2077
2078
# File 'lib/stripe/resources/quote.rb', line 2076

def type
  @type
end