Class: Stripe::SubscriptionScheduleCreateParams::Phase::AddInvoiceItem::Period::Start

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(timestamp: nil, type: nil) ⇒ Start

Returns a new instance of Start.



181
182
183
184
# File 'lib/stripe/params/subscription_schedule_create_params.rb', line 181

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

Instance Attribute Details

#timestampObject

A precise Unix timestamp for the start of the invoice item period. Must be less than or equal to ‘period.end`.



177
178
179
# File 'lib/stripe/params/subscription_schedule_create_params.rb', line 177

def timestamp
  @timestamp
end

#typeObject

Select how to calculate the start of the invoice item period.



179
180
181
# File 'lib/stripe/params/subscription_schedule_create_params.rb', line 179

def type
  @type
end