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.



1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
# File 'lib/stripe/params/charge_update_params.rb', line 1492

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.



1484
1485
1486
# File 'lib/stripe/params/charge_update_params.rb', line 1484

def amount
  @amount
end

#currencyObject

Currency of the insurance amount.



1486
1487
1488
# File 'lib/stripe/params/charge_update_params.rb', line 1486

def currency
  @currency
end

#insurance_company_nameObject

Name of the insurance company.



1488
1489
1490
# File 'lib/stripe/params/charge_update_params.rb', line 1488

def insurance_company_name
  @insurance_company_name
end

#insurance_typeObject

Type of insurance coverage.



1490
1491
1492
# File 'lib/stripe/params/charge_update_params.rb', line 1490

def insurance_type
  @insurance_type
end