Class: Stripe::PaymentIntent::UpdateParams::PaymentMethodOptions::Klarna::Subscription

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

Defined Under Namespace

Classes: NextBilling

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(interval: nil, interval_count: nil, name: nil, next_billing: nil, reference: nil) ⇒ Subscription

Returns a new instance of Subscription.



9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
# File 'lib/stripe/resources/payment_intent.rb', line 9699

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

Instance Attribute Details

#intervalObject

Unit of time between subscription charges.



9689
9690
9691
# File 'lib/stripe/resources/payment_intent.rb', line 9689

def interval
  @interval
end

#interval_countObject

The number of intervals (specified in the ‘interval` attribute) between subscription charges. For example, `interval=month` and `interval_count=3` charges every 3 months.



9691
9692
9693
# File 'lib/stripe/resources/payment_intent.rb', line 9691

def interval_count
  @interval_count
end

#nameObject

Name for subscription.



9693
9694
9695
# File 'lib/stripe/resources/payment_intent.rb', line 9693

def name
  @name
end

#next_billingObject

Describes the upcoming charge for this subscription.



9695
9696
9697
# File 'lib/stripe/resources/payment_intent.rb', line 9695

def next_billing
  @next_billing
end

#referenceObject

A non-customer-facing reference to correlate subscription charges in the Klarna app. Use a value that persists across subscription charges.



9697
9698
9699
# File 'lib/stripe/resources/payment_intent.rb', line 9697

def reference
  @reference
end