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.



4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
# File 'lib/stripe/params/payment_intent_create_params.rb', line 4987

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.



4975
4976
4977
# File 'lib/stripe/params/payment_intent_create_params.rb', line 4975

def affiliate_name
  @affiliate_name
end

#ends_atObject

The voucher validity end time.



4977
4978
4979
# File 'lib/stripe/params/payment_intent_create_params.rb', line 4977

def ends_at
  @ends_at
end

#starts_atObject

The voucher validity start time.



4979
4980
4981
# File 'lib/stripe/params/payment_intent_create_params.rb', line 4979

def starts_at
  @starts_at
end

#voucher_companyObject

The issuer or provider of this voucher.



4981
4982
4983
# File 'lib/stripe/params/payment_intent_create_params.rb', line 4981

def voucher_company
  @voucher_company
end

#voucher_nameObject

The name or reference to identify the voucher.



4983
4984
4985
# File 'lib/stripe/params/payment_intent_create_params.rb', line 4983

def voucher_name
  @voucher_name
end

#voucher_typeObject

The type of this voucher.



4985
4986
4987
# File 'lib/stripe/params/payment_intent_create_params.rb', line 4985

def voucher_type
  @voucher_type
end