Class: Stripe::PaymentIntentUpdateParams::PaymentMethodOptions::Klarna::SupplementaryPurchaseData::BusReservationDetail::Insurance

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

Returns a new instance of Insurance.



4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
# File 'lib/stripe/params/payment_intent_update_params.rb', line 4129

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.



4121
4122
4123
# File 'lib/stripe/params/payment_intent_update_params.rb', line 4121

def currency
  @currency
end

#insurance_company_nameObject

Name of the company providing the insurance.



4123
4124
4125
# File 'lib/stripe/params/payment_intent_update_params.rb', line 4123

def insurance_company_name
  @insurance_company_name
end

#insurance_typeObject

Type of insurance.



4125
4126
4127
# File 'lib/stripe/params/payment_intent_update_params.rb', line 4125

def insurance_type
  @insurance_type
end

#priceObject

Price of insurance in cents.



4127
4128
4129
# File 'lib/stripe/params/payment_intent_update_params.rb', line 4127

def price
  @price
end