Class: Stripe::QuoteCreateParams::Line::StartsAt

Inherits:
RequestParams show all
Defined in:
lib/stripe/params/quote_create_params.rb

Defined Under Namespace

Classes: DiscountEnd, LineEndsAt

Instance Attribute Summary collapse

Instance Method Summary collapse

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.



717
718
719
720
721
722
# File 'lib/stripe/params/quote_create_params.rb', line 717

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.



709
710
711
# File 'lib/stripe/params/quote_create_params.rb', line 709

def discount_end
  @discount_end
end

#line_ends_atObject

The timestamp the given line ends at.



711
712
713
# File 'lib/stripe/params/quote_create_params.rb', line 711

def line_ends_at
  @line_ends_at
end

#timestampObject

A precise Unix timestamp.



713
714
715
# File 'lib/stripe/params/quote_create_params.rb', line 713

def timestamp
  @timestamp
end

#typeObject

Select a way to pass in ‘starts_at`.



715
716
717
# File 'lib/stripe/params/quote_create_params.rb', line 715

def type
  @type
end