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.



948
949
950
951
952
953
954
955
956
957
958
# File 'lib/stripe/params/charge_update_params.rb', line 948

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.



940
941
942
# File 'lib/stripe/params/charge_update_params.rb', line 940

def amount
  @amount
end

#currencyObject

Insurance currency.



942
943
944
# File 'lib/stripe/params/charge_update_params.rb', line 942

def currency
  @currency
end

#insurance_company_nameObject

Insurance company name.



944
945
946
# File 'lib/stripe/params/charge_update_params.rb', line 944

def insurance_company_name
  @insurance_company_name
end

#insurance_typeObject

Type of insurance.



946
947
948
# File 'lib/stripe/params/charge_update_params.rb', line 946

def insurance_type
  @insurance_type
end