Class: Stripe::PaymentIntentCaptureParams::PaymentDetails::FlightDatum::Segment

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



1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
# File 'lib/stripe/params/payment_intent_capture_params.rb', line 1271

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.



1241
1242
1243
# File 'lib/stripe/params/payment_intent_capture_params.rb', line 1241

def amount
  @amount
end

#arrivalObject

Arrival details.



1243
1244
1245
# File 'lib/stripe/params/payment_intent_capture_params.rb', line 1243

def arrival
  @arrival
end

#carrier_codeObject

Airline carrier code.



1245
1246
1247
# File 'lib/stripe/params/payment_intent_capture_params.rb', line 1245

def carrier_code
  @carrier_code
end

#carrier_nameObject

Carrier name.



1247
1248
1249
# File 'lib/stripe/params/payment_intent_capture_params.rb', line 1247

def carrier_name
  @carrier_name
end

#currencyObject

Segment currency.



1249
1250
1251
# File 'lib/stripe/params/payment_intent_capture_params.rb', line 1249

def currency
  @currency
end

#departureObject

Departure details.



1251
1252
1253
# File 'lib/stripe/params/payment_intent_capture_params.rb', line 1251

def departure
  @departure
end

#exchange_ticket_numberObject

Exchange ticket number.



1253
1254
1255
# File 'lib/stripe/params/payment_intent_capture_params.rb', line 1253

def exchange_ticket_number
  @exchange_ticket_number
end

#fare_basis_codeObject

Fare basis code.



1255
1256
1257
# File 'lib/stripe/params/payment_intent_capture_params.rb', line 1255

def fare_basis_code
  @fare_basis_code
end

#feesObject

Additional fees.



1257
1258
1259
# File 'lib/stripe/params/payment_intent_capture_params.rb', line 1257

def fees
  @fees
end

#flight_numberObject

Flight number.



1259
1260
1261
# File 'lib/stripe/params/payment_intent_capture_params.rb', line 1259

def flight_number
  @flight_number
end

#is_stop_over_indicatorObject

Stopover indicator.



1261
1262
1263
# File 'lib/stripe/params/payment_intent_capture_params.rb', line 1261

def is_stop_over_indicator
  @is_stop_over_indicator
end

#refundableObject

Refundable ticket indicator.



1263
1264
1265
# File 'lib/stripe/params/payment_intent_capture_params.rb', line 1263

def refundable
  @refundable
end

#service_classObject

Class of service.



1265
1266
1267
# File 'lib/stripe/params/payment_intent_capture_params.rb', line 1265

def service_class
  @service_class
end

#tax_amountObject

Tax amount for segment.



1267
1268
1269
# File 'lib/stripe/params/payment_intent_capture_params.rb', line 1267

def tax_amount
  @tax_amount
end

#ticket_numberObject

Ticket number.



1269
1270
1271
# File 'lib/stripe/params/payment_intent_capture_params.rb', line 1269

def ticket_number
  @ticket_number
end