Class: Stripe::V2::Billing::BillSettingService::CreateParams::Invoice::TimeUntilDue

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/services/v2/billing/bill_setting_service.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(interval: nil, interval_count: nil) ⇒ TimeUntilDue

Returns a new instance of TimeUntilDue.



54
55
56
57
# File 'lib/stripe/services/v2/billing/bill_setting_service.rb', line 54

def initialize(interval: nil, interval_count: nil)
  @interval = interval
  @interval_count = interval_count
end

Instance Attribute Details

#intervalObject

The interval unit for the time until due.



49
50
51
# File 'lib/stripe/services/v2/billing/bill_setting_service.rb', line 49

def interval
  @interval
end

#interval_countObject

The number of interval units. For example, if interval=day and interval_count=30, the invoice will be due in 30 days.



52
53
54
# File 'lib/stripe/services/v2/billing/bill_setting_service.rb', line 52

def interval_count
  @interval_count
end