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.



1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
# File 'lib/stripe/params/payment_intent_create_params.rb', line 1408

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.



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

def amount
  @amount
end

#arrivalObject

Arrival details.



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

def arrival
  @arrival
end

#carrier_codeObject

Airline carrier code.



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

def carrier_code
  @carrier_code
end

#carrier_nameObject

Carrier name.



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

def carrier_name
  @carrier_name
end

#currencyObject

Segment currency.



1386
1387
1388
# File 'lib/stripe/params/payment_intent_create_params.rb', line 1386

def currency
  @currency
end

#departureObject

Departure details.



1388
1389
1390
# File 'lib/stripe/params/payment_intent_create_params.rb', line 1388

def departure
  @departure
end

#exchange_ticket_numberObject

Exchange ticket number.



1390
1391
1392
# File 'lib/stripe/params/payment_intent_create_params.rb', line 1390

def exchange_ticket_number
  @exchange_ticket_number
end

#fare_basis_codeObject

Fare basis code.



1392
1393
1394
# File 'lib/stripe/params/payment_intent_create_params.rb', line 1392

def fare_basis_code
  @fare_basis_code
end

#feesObject

Additional fees.



1394
1395
1396
# File 'lib/stripe/params/payment_intent_create_params.rb', line 1394

def fees
  @fees
end

#flight_numberObject

Flight number.



1396
1397
1398
# File 'lib/stripe/params/payment_intent_create_params.rb', line 1396

def flight_number
  @flight_number
end

#is_stop_over_indicatorObject

Stopover indicator.



1398
1399
1400
# File 'lib/stripe/params/payment_intent_create_params.rb', line 1398

def is_stop_over_indicator
  @is_stop_over_indicator
end

#refundableObject

Refundable ticket indicator.



1400
1401
1402
# File 'lib/stripe/params/payment_intent_create_params.rb', line 1400

def refundable
  @refundable
end

#service_classObject

Class of service.



1402
1403
1404
# File 'lib/stripe/params/payment_intent_create_params.rb', line 1402

def service_class
  @service_class
end

#tax_amountObject

Tax amount for segment.



1404
1405
1406
# File 'lib/stripe/params/payment_intent_create_params.rb', line 1404

def tax_amount
  @tax_amount
end

#ticket_numberObject

Ticket number.



1406
1407
1408
# File 'lib/stripe/params/payment_intent_create_params.rb', line 1406

def ticket_number
  @ticket_number
end