Class: Stripe::OrderCreateParams::Payment::Settings::PaymentMethodOptions::Klarna::SupplementaryPurchaseData::BusReservationDetail::Insurance

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/params/order_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(currency: nil, insurance_company_name: nil, insurance_type: nil, price: nil) ⇒ Insurance

Returns a new instance of Insurance.



639
640
641
642
643
644
645
646
647
648
649
# File 'lib/stripe/params/order_create_params.rb', line 639

def initialize(
  currency: nil,
  insurance_company_name: nil,
  insurance_type: nil,
  price: nil
)
  @currency = currency
  @insurance_company_name = insurance_company_name
  @insurance_type = insurance_type
  @price = price
end

Instance Attribute Details

#currencyObject

Insurance currency.



631
632
633
# File 'lib/stripe/params/order_create_params.rb', line 631

def currency
  @currency
end

#insurance_company_nameObject

Name of the company providing the insurance.



633
634
635
# File 'lib/stripe/params/order_create_params.rb', line 633

def insurance_company_name
  @insurance_company_name
end

#insurance_typeObject

Type of insurance.



635
636
637
# File 'lib/stripe/params/order_create_params.rb', line 635

def insurance_type
  @insurance_type
end

#priceObject

Price of insurance in cents.



637
638
639
# File 'lib/stripe/params/order_create_params.rb', line 637

def price
  @price
end