Class: Stripe::SubscriptionSchedule::AmendParams::Prebilling

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/resources/subscription_schedule.rb

Defined Under Namespace

Classes: BillFrom, BillUntil

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(bill_from: nil, bill_until: nil, invoice_at: nil, update_behavior: nil) ⇒ Prebilling

Returns a new instance of Prebilling.



2166
2167
2168
2169
2170
2171
# File 'lib/stripe/resources/subscription_schedule.rb', line 2166

def initialize(bill_from: nil, bill_until: nil, invoice_at: nil, update_behavior: nil)
  @bill_from = bill_from
  @bill_until = bill_until
  @invoice_at = invoice_at
  @update_behavior = update_behavior
end

Instance Attribute Details

#bill_fromObject

The beginning of the prebilled time period. The default value is ‘now`.



2158
2159
2160
# File 'lib/stripe/resources/subscription_schedule.rb', line 2158

def bill_from
  @bill_from
end

#bill_untilObject

The end of the prebilled time period.



2160
2161
2162
# File 'lib/stripe/resources/subscription_schedule.rb', line 2160

def bill_until
  @bill_until
end

#invoice_atObject

When the prebilling invoice should be created. The default value is ‘now`.



2162
2163
2164
# File 'lib/stripe/resources/subscription_schedule.rb', line 2162

def invoice_at
  @invoice_at
end

#update_behaviorObject

Whether to cancel or preserve ‘prebilling` if the subscription is updated during the prebilled period. The default value is `reset`.



2164
2165
2166
# File 'lib/stripe/resources/subscription_schedule.rb', line 2164

def update_behavior
  @update_behavior
end