Class: Stripe::QuoteUpdateParams::Line::StartsAt

Inherits:
RequestParams show all
Defined in:
lib/stripe/params/quote_update_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.



512
513
514
515
516
517
# File 'lib/stripe/params/quote_update_params.rb', line 512

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.



504
505
506
# File 'lib/stripe/params/quote_update_params.rb', line 504

def discount_end
  @discount_end
end

#line_ends_atObject

The timestamp the given line ends at.



506
507
508
# File 'lib/stripe/params/quote_update_params.rb', line 506

def line_ends_at
  @line_ends_at
end

#timestampObject

A precise Unix timestamp.



508
509
510
# File 'lib/stripe/params/quote_update_params.rb', line 508

def timestamp
  @timestamp
end

#typeObject

Select a way to pass in ‘starts_at`.



510
511
512
# File 'lib/stripe/params/quote_update_params.rb', line 510

def type
  @type
end