Class: Stripe::SubscriptionScheduleAmendParams::Prebilling

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/params/subscription_schedule_amend_params.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.



567
568
569
570
571
572
# File 'lib/stripe/params/subscription_schedule_amend_params.rb', line 567

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`.



559
560
561
# File 'lib/stripe/params/subscription_schedule_amend_params.rb', line 559

def bill_from
  @bill_from
end

#bill_untilObject

The end of the prebilled time period.



561
562
563
# File 'lib/stripe/params/subscription_schedule_amend_params.rb', line 561

def bill_until
  @bill_until
end

#invoice_atObject

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



563
564
565
# File 'lib/stripe/params/subscription_schedule_amend_params.rb', line 563

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`.



565
566
567
# File 'lib/stripe/params/subscription_schedule_amend_params.rb', line 565

def update_behavior
  @update_behavior
end