Class: Stripe::QuoteService::CreateParams::SubscriptionData::BillOnAcceptance::BillUntil

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/services/quote_service.rb

Defined Under Namespace

Classes: Duration, LineEndsAt

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(duration: nil, line_ends_at: nil, timestamp: nil, type: nil) ⇒ BillUntil

Returns a new instance of BillUntil.



905
906
907
908
909
910
# File 'lib/stripe/services/quote_service.rb', line 905

def initialize(duration: nil, line_ends_at: nil, timestamp: nil, type: nil)
  @duration = duration
  @line_ends_at = line_ends_at
  @timestamp = timestamp
  @type = type
end

Instance Attribute Details

#durationObject

Details of the duration over which to bill.



894
895
896
# File 'lib/stripe/services/quote_service.rb', line 894

def duration
  @duration
end

#line_ends_atObject

Details of a Quote line item from which to bill until.



897
898
899
# File 'lib/stripe/services/quote_service.rb', line 897

def line_ends_at
  @line_ends_at
end

#timestampObject

A precise Unix timestamp.



900
901
902
# File 'lib/stripe/services/quote_service.rb', line 900

def timestamp
  @timestamp
end

#typeObject

The type of method to specify the ‘bill_until` time.



903
904
905
# File 'lib/stripe/services/quote_service.rb', line 903

def type
  @type
end