Class: Stripe::ChargeUpdateParams::PaymentDetails::CarRentalDatum::Insurance

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

Returns a new instance of Insurance.



359
360
361
362
363
364
365
366
367
368
369
# File 'lib/stripe/params/charge_update_params.rb', line 359

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

Instance Attribute Details

#amountObject

Amount of the insurance coverage in cents.



351
352
353
# File 'lib/stripe/params/charge_update_params.rb', line 351

def amount
  @amount
end

#currencyObject

Currency of the insurance amount.



353
354
355
# File 'lib/stripe/params/charge_update_params.rb', line 353

def currency
  @currency
end

#insurance_company_nameObject

Name of the insurance company.



355
356
357
# File 'lib/stripe/params/charge_update_params.rb', line 355

def insurance_company_name
  @insurance_company_name
end

#insurance_typeObject

Type of insurance coverage.



357
358
359
# File 'lib/stripe/params/charge_update_params.rb', line 357

def insurance_type
  @insurance_type
end