Class: Stripe::SubscriptionScheduleService::CreateParams::Phase::AddInvoiceItem::Period

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

Defined Under Namespace

Classes: End, Start

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(end_: nil, start: nil) ⇒ Period

Returns a new instance of Period.



299
300
301
302
# File 'lib/stripe/services/subscription_schedule_service.rb', line 299

def initialize(end_: nil, start: nil)
  @end = end_
  @start = start
end

Instance Attribute Details

#endObject

End of the invoice item period.



295
296
297
# File 'lib/stripe/services/subscription_schedule_service.rb', line 295

def end
  @end
end

#startObject

Start of the invoice item period.



297
298
299
# File 'lib/stripe/services/subscription_schedule_service.rb', line 297

def start
  @start
end