Class: Stripe::ChargeUpdateParams::PaymentDetails::LodgingDatum::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.



1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
# File 'lib/stripe/params/charge_update_params.rb', line 1399

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

Price of the insurance coverage in cents.



1391
1392
1393
# File 'lib/stripe/params/charge_update_params.rb', line 1391

def amount
  @amount
end

#currencyObject

Currency of the insurance amount.



1393
1394
1395
# File 'lib/stripe/params/charge_update_params.rb', line 1393

def currency
  @currency
end

#insurance_company_nameObject

Name of the insurance company.



1395
1396
1397
# File 'lib/stripe/params/charge_update_params.rb', line 1395

def insurance_company_name
  @insurance_company_name
end

#insurance_typeObject

Type of insurance coverage.



1397
1398
1399
# File 'lib/stripe/params/charge_update_params.rb', line 1397

def insurance_type
  @insurance_type
end