Class: Stripe::PaymentLinkUpdateParams::SubscriptionData

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/params/payment_link_update_params.rb

Defined Under Namespace

Classes: InvoiceSettings, TrialSettings

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(invoice_settings: nil, metadata: nil, trial_period_days: nil, trial_settings: nil) ⇒ SubscriptionData

Returns a new instance of SubscriptionData.



441
442
443
444
445
446
447
448
449
450
451
# File 'lib/stripe/params/payment_link_update_params.rb', line 441

def initialize(
  invoice_settings: nil,
  metadata: nil,
  trial_period_days: nil,
  trial_settings: nil
)
  @invoice_settings = invoice_settings
  @metadata = 
  @trial_period_days = trial_period_days
  @trial_settings = trial_settings
end

Instance Attribute Details

#invoice_settingsObject

All invoices will be billed using the specified settings.



433
434
435
# File 'lib/stripe/params/payment_link_update_params.rb', line 433

def invoice_settings
  @invoice_settings
end

#metadataObject

Set of [key-value pairs](stripe.com/docs/api/metadata) that will declaratively set metadata on [Subscriptions](stripe.com/docs/api/subscriptions) generated from this payment link. Unlike object-level metadata, this field is declarative. Updates will clear prior values.



435
436
437
# File 'lib/stripe/params/payment_link_update_params.rb', line 435

def 
  @metadata
end

#trial_period_daysObject

Integer representing the number of trial period days before the customer is charged for the first time. Has to be at least 1.



437
438
439
# File 'lib/stripe/params/payment_link_update_params.rb', line 437

def trial_period_days
  @trial_period_days
end

#trial_settingsObject

Settings related to subscription trials.



439
440
441
# File 'lib/stripe/params/payment_link_update_params.rb', line 439

def trial_settings
  @trial_settings
end