Class: Stripe::PaymentIntentConfirmParams::PaymentDetails::FlightDatum::Segment

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



1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
# File 'lib/stripe/params/payment_intent_confirm_params.rb', line 1339

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.



1309
1310
1311
# File 'lib/stripe/params/payment_intent_confirm_params.rb', line 1309

def amount
  @amount
end

#arrivalObject

Arrival details.



1311
1312
1313
# File 'lib/stripe/params/payment_intent_confirm_params.rb', line 1311

def arrival
  @arrival
end

#carrier_codeObject

Airline carrier code.



1313
1314
1315
# File 'lib/stripe/params/payment_intent_confirm_params.rb', line 1313

def carrier_code
  @carrier_code
end

#carrier_nameObject

Carrier name.



1315
1316
1317
# File 'lib/stripe/params/payment_intent_confirm_params.rb', line 1315

def carrier_name
  @carrier_name
end

#currencyObject

Segment currency.



1317
1318
1319
# File 'lib/stripe/params/payment_intent_confirm_params.rb', line 1317

def currency
  @currency
end

#departureObject

Departure details.



1319
1320
1321
# File 'lib/stripe/params/payment_intent_confirm_params.rb', line 1319

def departure
  @departure
end

#exchange_ticket_numberObject

Exchange ticket number.



1321
1322
1323
# File 'lib/stripe/params/payment_intent_confirm_params.rb', line 1321

def exchange_ticket_number
  @exchange_ticket_number
end

#fare_basis_codeObject

Fare basis code.



1323
1324
1325
# File 'lib/stripe/params/payment_intent_confirm_params.rb', line 1323

def fare_basis_code
  @fare_basis_code
end

#feesObject

Additional fees.



1325
1326
1327
# File 'lib/stripe/params/payment_intent_confirm_params.rb', line 1325

def fees
  @fees
end

#flight_numberObject

Flight number.



1327
1328
1329
# File 'lib/stripe/params/payment_intent_confirm_params.rb', line 1327

def flight_number
  @flight_number
end

#is_stop_over_indicatorObject

Stopover indicator.



1329
1330
1331
# File 'lib/stripe/params/payment_intent_confirm_params.rb', line 1329

def is_stop_over_indicator
  @is_stop_over_indicator
end

#refundableObject

Refundable ticket indicator.



1331
1332
1333
# File 'lib/stripe/params/payment_intent_confirm_params.rb', line 1331

def refundable
  @refundable
end

#service_classObject

Class of service.



1333
1334
1335
# File 'lib/stripe/params/payment_intent_confirm_params.rb', line 1333

def service_class
  @service_class
end

#tax_amountObject

Tax amount for segment.



1335
1336
1337
# File 'lib/stripe/params/payment_intent_confirm_params.rb', line 1335

def tax_amount
  @tax_amount
end

#ticket_numberObject

Ticket number.



1337
1338
1339
# File 'lib/stripe/params/payment_intent_confirm_params.rb', line 1337

def ticket_number
  @ticket_number
end