Class: Stripe::SubscriptionScheduleService::AmendParams::Prebilling

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



1991
1992
1993
1994
1995
1996
# File 'lib/stripe/services/subscription_schedule_service.rb', line 1991

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



1983
1984
1985
# File 'lib/stripe/services/subscription_schedule_service.rb', line 1983

def bill_from
  @bill_from
end

#bill_untilObject

The end of the prebilled time period.



1985
1986
1987
# File 'lib/stripe/services/subscription_schedule_service.rb', line 1985

def bill_until
  @bill_until
end

#invoice_atObject

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



1987
1988
1989
# File 'lib/stripe/services/subscription_schedule_service.rb', line 1987

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



1989
1990
1991
# File 'lib/stripe/services/subscription_schedule_service.rb', line 1989

def update_behavior
  @update_behavior
end