Class: Stripe::ChargeCaptureParams::PaymentDetails::LodgingDatum::Insurance

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/params/charge_capture_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.



1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
# File 'lib/stripe/params/charge_capture_params.rb', line 1483

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.



1475
1476
1477
# File 'lib/stripe/params/charge_capture_params.rb', line 1475

def amount
  @amount
end

#currencyObject

Currency of the insurance amount.



1477
1478
1479
# File 'lib/stripe/params/charge_capture_params.rb', line 1477

def currency
  @currency
end

#insurance_company_nameObject

Name of the insurance company.



1479
1480
1481
# File 'lib/stripe/params/charge_capture_params.rb', line 1479

def insurance_company_name
  @insurance_company_name
end

#insurance_typeObject

Type of insurance coverage.



1481
1482
1483
# File 'lib/stripe/params/charge_capture_params.rb', line 1481

def insurance_type
  @insurance_type
end