Class: Stripe::PaymentIntentCaptureParams::PaymentDetails::FlightDatum::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.



1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
# File 'lib/stripe/params/payment_intent_capture_params.rb', line 1071

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.



1063
1064
1065
# File 'lib/stripe/params/payment_intent_capture_params.rb', line 1063

def amount
  @amount
end

#currencyObject

Insurance currency.



1065
1066
1067
# File 'lib/stripe/params/payment_intent_capture_params.rb', line 1065

def currency
  @currency
end

#insurance_company_nameObject

Insurance company name.



1067
1068
1069
# File 'lib/stripe/params/payment_intent_capture_params.rb', line 1067

def insurance_company_name
  @insurance_company_name
end

#insurance_typeObject

Type of insurance.



1069
1070
1071
# File 'lib/stripe/params/payment_intent_capture_params.rb', line 1069

def insurance_type
  @insurance_type
end