Class: Stripe::PaymentIntentCaptureParams::PaymentDetails::LodgingDatum::Insurance

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/params/payment_intent_capture_params.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(amount: nil, currency: nil, insurance_company_name: nil, insurance_type: nil) ⇒ Insurance

Returns a new instance of Insurance.



1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
# File 'lib/stripe/params/payment_intent_capture_params.rb', line 1599

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.



1591
1592
1593
# File 'lib/stripe/params/payment_intent_capture_params.rb', line 1591

def amount
  @amount
end

#currencyObject

Currency of the insurance amount.



1593
1594
1595
# File 'lib/stripe/params/payment_intent_capture_params.rb', line 1593

def currency
  @currency
end

#insurance_company_nameObject

Name of the insurance company.



1595
1596
1597
# File 'lib/stripe/params/payment_intent_capture_params.rb', line 1595

def insurance_company_name
  @insurance_company_name
end

#insurance_typeObject

Type of insurance coverage.



1597
1598
1599
# File 'lib/stripe/params/payment_intent_capture_params.rb', line 1597

def insurance_type
  @insurance_type
end