Class: Stripe::PaymentIntentCreateParams::PaymentMethodOptions::Klarna::SupplementaryPurchaseData::Voucher

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

attr_accessor, coerce_params, coerce_value, field_encodings, new, #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.



4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
# File 'lib/stripe/params/payment_intent_create_params.rb', line 4388

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.



4376
4377
4378
# File 'lib/stripe/params/payment_intent_create_params.rb', line 4376

def affiliate_name
  @affiliate_name
end

#ends_atObject

The voucher validity end time.



4378
4379
4380
# File 'lib/stripe/params/payment_intent_create_params.rb', line 4378

def ends_at
  @ends_at
end

#starts_atObject

The voucher validity start time.



4380
4381
4382
# File 'lib/stripe/params/payment_intent_create_params.rb', line 4380

def starts_at
  @starts_at
end

#voucher_companyObject

The issuer or provider of this voucher.



4382
4383
4384
# File 'lib/stripe/params/payment_intent_create_params.rb', line 4382

def voucher_company
  @voucher_company
end

#voucher_nameObject

The name or reference to identify the voucher.



4384
4385
4386
# File 'lib/stripe/params/payment_intent_create_params.rb', line 4384

def voucher_name
  @voucher_name
end

#voucher_typeObject

The type of this voucher.



4386
4387
4388
# File 'lib/stripe/params/payment_intent_create_params.rb', line 4386

def voucher_type
  @voucher_type
end