Class: Stripe::SetupIntent::UpdateParams::PaymentMethodOptions::Klarna::Subscription

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



2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
# File 'lib/stripe/resources/setup_intent.rb', line 2674

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.



2664
2665
2666
# File 'lib/stripe/resources/setup_intent.rb', line 2664

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.



2666
2667
2668
# File 'lib/stripe/resources/setup_intent.rb', line 2666

def interval_count
  @interval_count
end

#nameObject

Name for subscription.



2668
2669
2670
# File 'lib/stripe/resources/setup_intent.rb', line 2668

def name
  @name
end

#next_billingObject

Describes the upcoming charge for this subscription.



2670
2671
2672
# File 'lib/stripe/resources/setup_intent.rb', line 2670

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.



2672
2673
2674
# File 'lib/stripe/resources/setup_intent.rb', line 2672

def reference
  @reference
end