Class: Stripe::InvoiceCreatePreviewParams::SubscriptionDetails::BillingSchedule::BillUntil

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/params/invoice_create_preview_params.rb

Defined Under Namespace

Classes: Duration

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

attr_accessor, coerce_params, coerce_value, discriminator, discriminator_fields, field_encodings, new, #to_h

Constructor Details

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

Returns a new instance of BillUntil.



902
903
904
905
906
# File 'lib/stripe/params/invoice_create_preview_params.rb', line 902

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

Instance Attribute Details

#duration ⇒ Object

Specifies the billing period.



896
897
898
# File 'lib/stripe/params/invoice_create_preview_params.rb', line 896

def duration
  @duration
end

#timestamp ⇒ Object

The end date of the billing schedule.



898
899
900
# File 'lib/stripe/params/invoice_create_preview_params.rb', line 898

def timestamp
  @timestamp
end

#type ⇒ Object

Describes how the billing schedule will determine the end date. Either duration or timestamp.



900
901
902
# File 'lib/stripe/params/invoice_create_preview_params.rb', line 900

def type
  @type
end