Class: Stripe::PaymentIntentCreateParams::PaymentDetails::FlightDatum::Segment

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

Defined Under Namespace

Classes: Arrival, Departure

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, arrival: nil, carrier_code: nil, carrier_name: nil, currency: nil, departure: nil, exchange_ticket_number: nil, fare_basis_code: nil, fees: nil, flight_number: nil, is_stop_over_indicator: nil, refundable: nil, service_class: nil, tax_amount: nil, ticket_number: nil) ⇒ Segment

Returns a new instance of Segment.



1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
# File 'lib/stripe/params/payment_intent_create_params.rb', line 1213

def initialize(
  amount: nil,
  arrival: nil,
  carrier_code: nil,
  carrier_name: nil,
  currency: nil,
  departure: nil,
  exchange_ticket_number: nil,
  fare_basis_code: nil,
  fees: nil,
  flight_number: nil,
  is_stop_over_indicator: nil,
  refundable: nil,
  service_class: nil,
  tax_amount: nil,
  ticket_number: nil
)
  @amount = amount
  @arrival = arrival
  @carrier_code = carrier_code
  @carrier_name = carrier_name
  @currency = currency
  @departure = departure
  @exchange_ticket_number = exchange_ticket_number
  @fare_basis_code = fare_basis_code
  @fees = fees
  @flight_number = flight_number
  @is_stop_over_indicator = is_stop_over_indicator
  @refundable = refundable
  @service_class = service_class
  @tax_amount = tax_amount
  @ticket_number = ticket_number
end

Instance Attribute Details

#amountObject

Segment fare amount.



1183
1184
1185
# File 'lib/stripe/params/payment_intent_create_params.rb', line 1183

def amount
  @amount
end

#arrivalObject

Arrival details.



1185
1186
1187
# File 'lib/stripe/params/payment_intent_create_params.rb', line 1185

def arrival
  @arrival
end

#carrier_codeObject

Airline carrier code.



1187
1188
1189
# File 'lib/stripe/params/payment_intent_create_params.rb', line 1187

def carrier_code
  @carrier_code
end

#carrier_nameObject

Carrier name.



1189
1190
1191
# File 'lib/stripe/params/payment_intent_create_params.rb', line 1189

def carrier_name
  @carrier_name
end

#currencyObject

Segment currency.



1191
1192
1193
# File 'lib/stripe/params/payment_intent_create_params.rb', line 1191

def currency
  @currency
end

#departureObject

Departure details.



1193
1194
1195
# File 'lib/stripe/params/payment_intent_create_params.rb', line 1193

def departure
  @departure
end

#exchange_ticket_numberObject

Exchange ticket number.



1195
1196
1197
# File 'lib/stripe/params/payment_intent_create_params.rb', line 1195

def exchange_ticket_number
  @exchange_ticket_number
end

#fare_basis_codeObject

Fare basis code.



1197
1198
1199
# File 'lib/stripe/params/payment_intent_create_params.rb', line 1197

def fare_basis_code
  @fare_basis_code
end

#feesObject

Additional fees.



1199
1200
1201
# File 'lib/stripe/params/payment_intent_create_params.rb', line 1199

def fees
  @fees
end

#flight_numberObject

Flight number.



1201
1202
1203
# File 'lib/stripe/params/payment_intent_create_params.rb', line 1201

def flight_number
  @flight_number
end

#is_stop_over_indicatorObject

Stopover indicator.



1203
1204
1205
# File 'lib/stripe/params/payment_intent_create_params.rb', line 1203

def is_stop_over_indicator
  @is_stop_over_indicator
end

#refundableObject

Refundable ticket indicator.



1205
1206
1207
# File 'lib/stripe/params/payment_intent_create_params.rb', line 1205

def refundable
  @refundable
end

#service_classObject

Class of service.



1207
1208
1209
# File 'lib/stripe/params/payment_intent_create_params.rb', line 1207

def service_class
  @service_class
end

#tax_amountObject

Tax amount for segment.



1209
1210
1211
# File 'lib/stripe/params/payment_intent_create_params.rb', line 1209

def tax_amount
  @tax_amount
end

#ticket_numberObject

Ticket number.



1211
1212
1213
# File 'lib/stripe/params/payment_intent_create_params.rb', line 1211

def ticket_number
  @ticket_number
end