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



855
856
857
858
859
860
861
862
863
864
865
# File 'lib/stripe/params/charge_update_params.rb', line 855

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

Insurance cost.



847
848
849
# File 'lib/stripe/params/charge_update_params.rb', line 847

def amount
  @amount
end

#currencyObject

Insurance currency.



849
850
851
# File 'lib/stripe/params/charge_update_params.rb', line 849

def currency
  @currency
end

#insurance_company_nameObject

Insurance company name.



851
852
853
# File 'lib/stripe/params/charge_update_params.rb', line 851

def insurance_company_name
  @insurance_company_name
end

#insurance_typeObject

Type of insurance.



853
854
855
# File 'lib/stripe/params/charge_update_params.rb', line 853

def insurance_type
  @insurance_type
end