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.



4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
# File 'lib/stripe/params/payment_intent_create_params.rb', line 4908

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.



4896
4897
4898
# File 'lib/stripe/params/payment_intent_create_params.rb', line 4896

def affiliate_name
  @affiliate_name
end

#ends_atObject

The voucher validity end time.



4898
4899
4900
# File 'lib/stripe/params/payment_intent_create_params.rb', line 4898

def ends_at
  @ends_at
end

#starts_atObject

The voucher validity start time.



4900
4901
4902
# File 'lib/stripe/params/payment_intent_create_params.rb', line 4900

def starts_at
  @starts_at
end

#voucher_companyObject

The issuer or provider of this voucher.



4902
4903
4904
# File 'lib/stripe/params/payment_intent_create_params.rb', line 4902

def voucher_company
  @voucher_company
end

#voucher_nameObject

The name or reference to identify the voucher.



4904
4905
4906
# File 'lib/stripe/params/payment_intent_create_params.rb', line 4904

def voucher_name
  @voucher_name
end

#voucher_typeObject

The type of this voucher.



4906
4907
4908
# File 'lib/stripe/params/payment_intent_create_params.rb', line 4906

def voucher_type
  @voucher_type
end