Class: Stripe::PaymentIntentUpdateParams::PaymentDetails::FlightDatum::Segment

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



1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
# File 'lib/stripe/params/payment_intent_update_params.rb', line 1386

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.



1356
1357
1358
# File 'lib/stripe/params/payment_intent_update_params.rb', line 1356

def amount
  @amount
end

#arrivalObject

Arrival details.



1358
1359
1360
# File 'lib/stripe/params/payment_intent_update_params.rb', line 1358

def arrival
  @arrival
end

#carrier_codeObject

Airline carrier code.



1360
1361
1362
# File 'lib/stripe/params/payment_intent_update_params.rb', line 1360

def carrier_code
  @carrier_code
end

#carrier_nameObject

Carrier name.



1362
1363
1364
# File 'lib/stripe/params/payment_intent_update_params.rb', line 1362

def carrier_name
  @carrier_name
end

#currencyObject

Segment currency.



1364
1365
1366
# File 'lib/stripe/params/payment_intent_update_params.rb', line 1364

def currency
  @currency
end

#departureObject

Departure details.



1366
1367
1368
# File 'lib/stripe/params/payment_intent_update_params.rb', line 1366

def departure
  @departure
end

#exchange_ticket_numberObject

Exchange ticket number.



1368
1369
1370
# File 'lib/stripe/params/payment_intent_update_params.rb', line 1368

def exchange_ticket_number
  @exchange_ticket_number
end

#fare_basis_codeObject

Fare basis code.



1370
1371
1372
# File 'lib/stripe/params/payment_intent_update_params.rb', line 1370

def fare_basis_code
  @fare_basis_code
end

#feesObject

Additional fees.



1372
1373
1374
# File 'lib/stripe/params/payment_intent_update_params.rb', line 1372

def fees
  @fees
end

#flight_numberObject

Flight number.



1374
1375
1376
# File 'lib/stripe/params/payment_intent_update_params.rb', line 1374

def flight_number
  @flight_number
end

#is_stop_over_indicatorObject

Stopover indicator.



1376
1377
1378
# File 'lib/stripe/params/payment_intent_update_params.rb', line 1376

def is_stop_over_indicator
  @is_stop_over_indicator
end

#refundableObject

Refundable ticket indicator.



1378
1379
1380
# File 'lib/stripe/params/payment_intent_update_params.rb', line 1378

def refundable
  @refundable
end

#service_classObject

Class of service.



1380
1381
1382
# File 'lib/stripe/params/payment_intent_update_params.rb', line 1380

def service_class
  @service_class
end

#tax_amountObject

Tax amount for segment.



1382
1383
1384
# File 'lib/stripe/params/payment_intent_update_params.rb', line 1382

def tax_amount
  @tax_amount
end

#ticket_numberObject

Ticket number.



1384
1385
1386
# File 'lib/stripe/params/payment_intent_update_params.rb', line 1384

def ticket_number
  @ticket_number
end