Class: Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Klarna::SupplementaryPurchaseData::Voucher

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(affiliate_name: nil, ends_at: nil, starts_at: nil, voucher_company: nil, voucher_name: nil, voucher_type: nil) ⇒ Voucher

Returns a new instance of Voucher.



4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
# File 'lib/stripe/params/payment_intent_confirm_params.rb', line 4329

def initialize(
  affiliate_name: nil,
  ends_at: nil,
  starts_at: nil,
  voucher_company: nil,
  voucher_name: nil,
  voucher_type: nil
)
  @affiliate_name = affiliate_name
  @ends_at = ends_at
  @starts_at = starts_at
  @voucher_company = voucher_company
  @voucher_name = voucher_name
  @voucher_type = voucher_type
end

Instance Attribute Details

#affiliate_nameObject

Name of associated or partner company for this voucher.



4317
4318
4319
# File 'lib/stripe/params/payment_intent_confirm_params.rb', line 4317

def affiliate_name
  @affiliate_name
end

#ends_atObject

The voucher validity end time.



4319
4320
4321
# File 'lib/stripe/params/payment_intent_confirm_params.rb', line 4319

def ends_at
  @ends_at
end

#starts_atObject

The voucher validity start time.



4321
4322
4323
# File 'lib/stripe/params/payment_intent_confirm_params.rb', line 4321

def starts_at
  @starts_at
end

#voucher_companyObject

The issuer or provider of this voucher.



4323
4324
4325
# File 'lib/stripe/params/payment_intent_confirm_params.rb', line 4323

def voucher_company
  @voucher_company
end

#voucher_nameObject

The name or reference to identify the voucher.



4325
4326
4327
# File 'lib/stripe/params/payment_intent_confirm_params.rb', line 4325

def voucher_name
  @voucher_name
end

#voucher_typeObject

The type of this voucher.



4327
4328
4329
# File 'lib/stripe/params/payment_intent_confirm_params.rb', line 4327

def voucher_type
  @voucher_type
end