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

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.



1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
# File 'lib/stripe/params/payment_intent_capture_params.rb', line 1615

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.



1607
1608
1609
# File 'lib/stripe/params/payment_intent_capture_params.rb', line 1607

def amount
  @amount
end

#currencyObject

Currency of the insurance amount.



1609
1610
1611
# File 'lib/stripe/params/payment_intent_capture_params.rb', line 1609

def currency
  @currency
end

#insurance_company_nameObject

Name of the insurance company.



1611
1612
1613
# File 'lib/stripe/params/payment_intent_capture_params.rb', line 1611

def insurance_company_name
  @insurance_company_name
end

#insurance_typeObject

Type of insurance coverage.



1613
1614
1615
# File 'lib/stripe/params/payment_intent_capture_params.rb', line 1613

def insurance_type
  @insurance_type
end