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



1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
# File 'lib/stripe/params/order_update_params.rb', line 1423

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.



1411
1412
1413
# File 'lib/stripe/params/order_update_params.rb', line 1411

def affiliate_name
  @affiliate_name
end

#ends_atObject

The voucher validity end time.



1413
1414
1415
# File 'lib/stripe/params/order_update_params.rb', line 1413

def ends_at
  @ends_at
end

#starts_atObject

The voucher validity start time.



1415
1416
1417
# File 'lib/stripe/params/order_update_params.rb', line 1415

def starts_at
  @starts_at
end

#voucher_companyObject

The issuer or provider of this voucher.



1417
1418
1419
# File 'lib/stripe/params/order_update_params.rb', line 1417

def voucher_company
  @voucher_company
end

#voucher_nameObject

The name or reference to identify the voucher.



1419
1420
1421
# File 'lib/stripe/params/order_update_params.rb', line 1419

def voucher_name
  @voucher_name
end

#voucher_typeObject

The type of this voucher.



1421
1422
1423
# File 'lib/stripe/params/order_update_params.rb', line 1421

def voucher_type
  @voucher_type
end