Class: Stripe::OrderUpdateParams::Payment::Settings::PaymentMethodOptions::Klarna::SupplementaryPurchaseData::Voucher

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

attr_accessor, 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.



1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
# File 'lib/stripe/params/order_update_params.rb', line 1382

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.



1370
1371
1372
# File 'lib/stripe/params/order_update_params.rb', line 1370

def affiliate_name
  @affiliate_name
end

#ends_atObject

The voucher validity end time.



1372
1373
1374
# File 'lib/stripe/params/order_update_params.rb', line 1372

def ends_at
  @ends_at
end

#starts_atObject

The voucher validity start time.



1374
1375
1376
# File 'lib/stripe/params/order_update_params.rb', line 1374

def starts_at
  @starts_at
end

#voucher_companyObject

The issuer or provider of this voucher.



1376
1377
1378
# File 'lib/stripe/params/order_update_params.rb', line 1376

def voucher_company
  @voucher_company
end

#voucher_nameObject

The name or reference to identify the voucher.



1378
1379
1380
# File 'lib/stripe/params/order_update_params.rb', line 1378

def voucher_name
  @voucher_name
end

#voucher_typeObject

The type of this voucher.



1380
1381
1382
# File 'lib/stripe/params/order_update_params.rb', line 1380

def voucher_type
  @voucher_type
end