Class: Stripe::ChargeCaptureParams::PaymentDetails::CarRentalDatum::Insurance
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::ChargeCaptureParams::PaymentDetails::CarRentalDatum::Insurance
- Defined in:
- lib/stripe/params/charge_capture_params.rb
Instance Attribute Summary collapse
-
#amount ⇒ Object
Amount of the insurance coverage in cents.
-
#currency ⇒ Object
Currency of the insurance amount.
-
#insurance_company_name ⇒ Object
Name of the insurance company.
-
#insurance_type ⇒ Object
Type of insurance coverage.
Instance Method Summary collapse
-
#initialize(amount: nil, currency: nil, insurance_company_name: nil, insurance_type: nil) ⇒ Insurance
constructor
A new instance of Insurance.
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.
350 351 352 353 354 355 356 357 358 359 360 |
# File 'lib/stripe/params/charge_capture_params.rb', line 350 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
#amount ⇒ Object
Amount of the insurance coverage in cents.
342 343 344 |
# File 'lib/stripe/params/charge_capture_params.rb', line 342 def amount @amount end |
#currency ⇒ Object
Currency of the insurance amount.
344 345 346 |
# File 'lib/stripe/params/charge_capture_params.rb', line 344 def currency @currency end |
#insurance_company_name ⇒ Object
Name of the insurance company.
346 347 348 |
# File 'lib/stripe/params/charge_capture_params.rb', line 346 def insurance_company_name @insurance_company_name end |
#insurance_type ⇒ Object
Type of insurance coverage.
348 349 350 |
# File 'lib/stripe/params/charge_capture_params.rb', line 348 def insurance_type @insurance_type end |