Class: CyberSource::Ptsv2paymentsTravelInformationTransitAirline

Inherits:
Object
  • Object
show all
Defined in:
lib/cybersource_rest_client/models/ptsv2payments_travel_information_transit_airline.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ Ptsv2paymentsTravelInformationTransitAirline

Initializes the object

Parameters:

  • attributes (Hash) (defaults to: {})

    Model attributes in the form of hash



303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
# File 'lib/cybersource_rest_client/models/ptsv2payments_travel_information_transit_airline.rb', line 303

def initialize(attributes = {})
  return unless attributes.is_a?(Hash)

  # convert string to symbol for hash key
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }

  if attributes.has_key?(:'isDomestic')
    self.is_domestic = attributes[:'isDomestic']
  end

  if attributes.has_key?(:'bookingReferenceNumber')
    self.booking_reference_number = attributes[:'bookingReferenceNumber']
  end

  if attributes.has_key?(:'carrierName')
    self.carrier_name = attributes[:'carrierName']
  end

  if attributes.has_key?(:'ticketIssuer')
    self.ticket_issuer = attributes[:'ticketIssuer']
  end

  if attributes.has_key?(:'ticketNumber')
    self.ticket_number = attributes[:'ticketNumber']
  end

  if attributes.has_key?(:'checkDigit')
    self.check_digit = attributes[:'checkDigit']
  end

  if attributes.has_key?(:'restrictedTicketIndicator')
    self.restricted_ticket_indicator = attributes[:'restrictedTicketIndicator']
  end

  if attributes.has_key?(:'transactionType')
    self.transaction_type = attributes[:'transactionType']
  end

  if attributes.has_key?(:'extendedPaymentCode')
    self.extended_payment_code = attributes[:'extendedPaymentCode']
  end

  if attributes.has_key?(:'passengerName')
    self.passenger_name = attributes[:'passengerName']
  end

  if attributes.has_key?(:'customerCode')
    self.customer_code = attributes[:'customerCode']
  end

  if attributes.has_key?(:'documentType')
    self.document_type = attributes[:'documentType']
  end

  if attributes.has_key?(:'documentNumber')
    self.document_number = attributes[:'documentNumber']
  end

  if attributes.has_key?(:'documentNumberOfParts')
    self.document_number_of_parts = attributes[:'documentNumberOfParts']
  end

  if attributes.has_key?(:'invoiceNumber')
    self.invoice_number = attributes[:'invoiceNumber']
  end

  if attributes.has_key?(:'invoiceDate')
    self.invoice_date = attributes[:'invoiceDate']
  end

  if attributes.has_key?(:'additionalCharges')
    self.additional_charges = attributes[:'additionalCharges']
  end

  if attributes.has_key?(:'totalFeeAmount')
    self.total_fee_amount = attributes[:'totalFeeAmount']
  end

  if attributes.has_key?(:'clearingSequence')
    self.clearing_sequence = attributes[:'clearingSequence']
  end

  if attributes.has_key?(:'clearingCount')
    self.clearing_count = attributes[:'clearingCount']
  end

  if attributes.has_key?(:'totalClearingAmount')
    self.total_clearing_amount = attributes[:'totalClearingAmount']
  end

  if attributes.has_key?(:'numberOfPassengers')
    self.number_of_passengers = attributes[:'numberOfPassengers']
  end

  if attributes.has_key?(:'reservationSystemCode')
    self.reservation_system_code = attributes[:'reservationSystemCode']
  end

  if attributes.has_key?(:'processIdentifier')
    self.process_identifier = attributes[:'processIdentifier']
  end

  if attributes.has_key?(:'ticketIssueDate')
    self.ticket_issue_date = attributes[:'ticketIssueDate']
  end

  if attributes.has_key?(:'electronicTicketIndicator')
    self.electronic_ticket_indicator = attributes[:'electronicTicketIndicator']
  end

  if attributes.has_key?(:'originalTicketNumber')
    self.original_ticket_number = attributes[:'originalTicketNumber']
  end

  if attributes.has_key?(:'purchaseType')
    self.purchase_type = attributes[:'purchaseType']
  end

  if attributes.has_key?(:'creditReasonIndicator')
    self.credit_reason_indicator = attributes[:'creditReasonIndicator']
  end

  if attributes.has_key?(:'ticketChangeIndicator')
    self.ticket_change_indicator = attributes[:'ticketChangeIndicator']
  end

  if attributes.has_key?(:'planNumber')
    self.plan_number = attributes[:'planNumber']
  end

  if attributes.has_key?(:'arrivalDate')
    self.arrival_date = attributes[:'arrivalDate']
  end

  if attributes.has_key?(:'restrictedTicketDesciption')
    self.restricted_ticket_desciption = attributes[:'restrictedTicketDesciption']
  end

  if attributes.has_key?(:'exchangeTicketAmount')
    self.exchange_ticket_amount = attributes[:'exchangeTicketAmount']
  end

  if attributes.has_key?(:'exchangeTicketFeeAmount')
    self.exchange_ticket_fee_amount = attributes[:'exchangeTicketFeeAmount']
  end

  if attributes.has_key?(:'reservationType')
    self.reservation_type = attributes[:'reservationType']
  end

  if attributes.has_key?(:'boardingFeeAmount')
    self.boarding_fee_amount = attributes[:'boardingFeeAmount']
  end

  if attributes.has_key?(:'legs')
    if (value = attributes[:'legs']).is_a?(Array)
      self.legs = value
    end
  end

  if attributes.has_key?(:'ancillaryInformation')
    self.ancillary_information = attributes[:'ancillaryInformation']
  end

  if attributes.has_key?(:'flightType')
    self.flight_type = attributes[:'flightType']
  end

  if attributes.has_key?(:'insuranceAmount')
    self.insurance_amount = attributes[:'insuranceAmount']
  end

  if attributes.has_key?(:'frequentFlyerNumber')
    self.frequent_flyer_number = attributes[:'frequentFlyerNumber']
  end

  if attributes.has_key?(:'thirdPartyStatus')
    self.third_party_status = attributes[:'thirdPartyStatus']
  end

  if attributes.has_key?(:'passengerType')
    self.passenger_type = attributes[:'passengerType']
  end

  if attributes.has_key?(:'totalInsuranceAmount')
    self.total_insurance_amount = attributes[:'totalInsuranceAmount']
  end
end

Instance Attribute Details

#additional_chargesObject

Description of the charge if the charge does not involve an airline ticket. For example: Excess baggage.



64
65
66
# File 'lib/cybersource_rest_client/models/ptsv2payments_travel_information_transit_airline.rb', line 64

def additional_charges
  @additional_charges
end

#ancillary_informationObject

Returns the value of attribute ancillary_information.



128
129
130
# File 'lib/cybersource_rest_client/models/ptsv2payments_travel_information_transit_airline.rb', line 128

def ancillary_information
  @ancillary_information
end

#arrival_dateObject

Date of arrival for the last leg of the trip. Format: ‘MMDDYYYY` English characters only. Optional request field.



109
110
111
# File 'lib/cybersource_rest_client/models/ptsv2payments_travel_information_transit_airline.rb', line 109

def arrival_date
  @arrival_date
end

#boarding_fee_amountObject

Boarding fee.



124
125
126
# File 'lib/cybersource_rest_client/models/ptsv2payments_travel_information_transit_airline.rb', line 124

def boarding_fee_amount
  @boarding_fee_amount
end

#booking_reference_numberObject

Reference number for the airline booking. Required if ticket numbers are not issued.



20
21
22
# File 'lib/cybersource_rest_client/models/ptsv2payments_travel_information_transit_airline.rb', line 20

def booking_reference_number
  @booking_reference_number
end

#carrier_nameObject

Airline that generated the ticket. Format: English characters only. Optional request field.



23
24
25
# File 'lib/cybersource_rest_client/models/ptsv2payments_travel_information_transit_airline.rb', line 23

def carrier_name
  @carrier_name
end

#check_digitObject

Check digit for the ticket number. CyberSource recommends that you validate the check digit. With Discover and Diners Club, a valid ticket number has these characteristics: - The value is numeric. - The first three digits are a valid IATA2 license plate carrier code. - The last digit is a check digit or zero (0). - All remaining digits are nonzero.



31
32
33
# File 'lib/cybersource_rest_client/models/ptsv2payments_travel_information_transit_airline.rb', line 31

def check_digit
  @check_digit
end

#clearing_countObject

Total number of clearing messages associated with the authorization request. Format: English characters only. Optional request field.



73
74
75
# File 'lib/cybersource_rest_client/models/ptsv2payments_travel_information_transit_airline.rb', line 73

def clearing_count
  @clearing_count
end

#clearing_sequenceObject

Number that identifies the clearing message when multiple clearing messages are allowed per authorized transaction. Each clearing message linked to one authorization request must include a unique clearing sequence number between 1 and the total number of clearing records. Format: English characters only. Optional request field.



70
71
72
# File 'lib/cybersource_rest_client/models/ptsv2payments_travel_information_transit_airline.rb', line 70

def clearing_sequence
  @clearing_sequence
end

#credit_reason_indicatorObject

Reason for the credit. Possible values: - ‘A`: Cancellation of the ancillary passenger transport purchase. - `B`: Cancellation of the airline ticket and the passenger transport ancillary purchase. - `C`: Cancellation of the airline ticket. - `O`: Other. - `P`: Partial refund of the airline ticket. Format: English characters only. Optional request field.



100
101
102
# File 'lib/cybersource_rest_client/models/ptsv2payments_travel_information_transit_airline.rb', line 100

def credit_reason_indicator
  @credit_reason_indicator
end

#customer_codeObject

Reference number or code that identifies the cardholder. Format: English characters only. Restricted string data type that indicates a sequence of letters, numbers, and spaces; special characters are not included. Optional request field.



46
47
48
# File 'lib/cybersource_rest_client/models/ptsv2payments_travel_information_transit_airline.rb', line 46

def customer_code
  @customer_code
end

#document_numberObject

The field is not currently supported.



52
53
54
# File 'lib/cybersource_rest_client/models/ptsv2payments_travel_information_transit_airline.rb', line 52

def document_number
  @document_number
end

#document_number_of_partsObject

The field is not currently supported.



55
56
57
# File 'lib/cybersource_rest_client/models/ptsv2payments_travel_information_transit_airline.rb', line 55

def document_number_of_parts
  @document_number_of_parts
end

#document_typeObject

Airline document type code that specifies the purpose of the transaction. Format: English characters only. Optional request field. | Code | Description | | — | — | | 01 | Passenger ticket | | 02 | Additional collection | | 03 | Excess baggage | | 04 | Miscellaneous charge order (MCO) or prepaid ticket authorization | | 05 | Special service ticket | | 06 | Supported refund | | 07 | Unsupported refund | | 08 | Lost ticket application | | 09 | Tour order voucher | | 10 | Ticket by mail | | 11 | Undercharge adjustment | | 12 | Group ticket | | 13 | Exchange adjustment | | 14 | SPD or air freight | | 15 | In-flight adjustment | | 16 | Agency passenger ticket | | 17 | Agency tour order or voucher | | 18 | Agency miscellaneous charge order (MCO) | | 19 | Agency exchange order | | 20 | Agency group ticket | | 21 | Debit adjustment for duplicate refund or use | | 22 | In-flight merchandise order | | 23 | Catalogue merchandise order | | 24 | In-flight phone charges | | 25 | Frequent flyer fee or purchase | | 26 | Kennel charge | | 27 | Animal transportation charge | | 28 | Firearms case | | 29 | Upgrade charge | | 30 | Credit for unused transportation | | 31 | Credit for class of service adjustment | | 32 | Credit for denied boarding | | 33 | Credit for miscellaneous refund | | 34 | Credit for lost ticket refund | | 35 | Credit for exchange refund | | 36 | Credit for overcharge adjustment | | 37 | Credit for multiple Unused tickets | | 38 | Exchange order | | 39 | Self-service ticket | | 41 | In-flight duty-free purchase | | 42 | Senior citizen discount booklets | | 43 | Club membership fee | | 44 | Coupon book | | 45 | In-flight charges | | 46 | Tour deposit | | 47 | Frequent flyer overnight delivery charge | | 48 | Frequent flyer fulfillment | | 49 | Small package delivery | | 50 | Vendor sale | | 51 | Miscellaneous taxes or fees | | 52 | Travel agency fee | | 60 | Vendor refund or credit | | 64 | Duty free sale | | 65 | Preferred seat upgrade | | 66 | Cabin upgrade | | 67 | Lounge or club access or day pass | | 68 | Agent assisted reservation or ticketing fee | | 69 | Ticket change or cancel fee | | 70 | Trip insurance | | 71 | Unaccompanied minor | | 72 | Standby fee | | 73 | Curbside baggage | | 74 | In-flight medical equipment | | 75 | Ticket or pass print fee | | 76 | Checked sporting or special equipment | | 77 | Dry ice fee | | 78 | Mail or postage fee | | 79 | Club membership fee or temporary trial | | 80 | Frequent flyer activation or reinstatement | | 81 | Gift certificate | | 82 | Onboard or in-flight prepaid voucher | | 83 | Optional services fee | | 84 | Advance purchase for excess baggage | | 85 | Advance purchase for preferred seat upgrade | | 86 | Advance purchase for cabin upgrade | | 87 | Advance purchase for optional services | | 88 | WiFi | | 89 | Packages | | 90 | In-flight entertainment or internet access | | 91 | Overweight bag fee | | 92 | Sleep sets | | 93 | Special purchase fee |



49
50
51
# File 'lib/cybersource_rest_client/models/ptsv2payments_travel_information_transit_airline.rb', line 49

def document_type
  @document_type
end

#electronic_ticket_indicatorObject

Flag that indicates whether an electronic ticket was issued. Possible values: - ‘true` - `false` Optional request field.



91
92
93
# File 'lib/cybersource_rest_client/models/ptsv2payments_travel_information_transit_airline.rb', line 91

def electronic_ticket_indicator
  @electronic_ticket_indicator
end

#exchange_ticket_amountObject

Amount of the exchanged ticket. Format: English characters only.



115
116
117
# File 'lib/cybersource_rest_client/models/ptsv2payments_travel_information_transit_airline.rb', line 115

def exchange_ticket_amount
  @exchange_ticket_amount
end

#exchange_ticket_fee_amountObject

Fee for exchanging the ticket. Format: English characters only. Optional request field.



118
119
120
# File 'lib/cybersource_rest_client/models/ptsv2payments_travel_information_transit_airline.rb', line 118

def exchange_ticket_fee_amount
  @exchange_ticket_fee_amount
end

#extended_payment_codeObject

The field is not currently supported.



40
41
42
# File 'lib/cybersource_rest_client/models/ptsv2payments_travel_information_transit_airline.rb', line 40

def extended_payment_code
  @extended_payment_code
end

#flight_typeObject

Specifies the type of flight. One way (0) Return (1) Transit (2) Transit & Return (3) Multi-City (4)



131
132
133
# File 'lib/cybersource_rest_client/models/ptsv2payments_travel_information_transit_airline.rb', line 131

def flight_type
  @flight_type
end

#frequent_flyer_numberObject

The consumer’s frequent flyer number. Leave 0 if there is no frequent flyer number



137
138
139
# File 'lib/cybersource_rest_client/models/ptsv2payments_travel_information_transit_airline.rb', line 137

def frequent_flyer_number
  @frequent_flyer_number
end

#insurance_amountObject

The total cost of the flight insurance. Example: 10000.00



134
135
136
# File 'lib/cybersource_rest_client/models/ptsv2payments_travel_information_transit_airline.rb', line 134

def insurance_amount
  @insurance_amount
end

#invoice_dateObject

Invoice date. The format is YYYYMMDD. If this value is included in the request, it is used in the creation of the invoice number. See "Invoice Number,"



61
62
63
# File 'lib/cybersource_rest_client/models/ptsv2payments_travel_information_transit_airline.rb', line 61

def invoice_date
  @invoice_date
end

#invoice_numberObject

Invoice number for the airline transaction.



58
59
60
# File 'lib/cybersource_rest_client/models/ptsv2payments_travel_information_transit_airline.rb', line 58

def invoice_number
  @invoice_number
end

#is_domesticObject

Specifies if the flight is: Domestic (01) International (02) If Y then 01 else 02



17
18
19
# File 'lib/cybersource_rest_client/models/ptsv2payments_travel_information_transit_airline.rb', line 17

def is_domestic
  @is_domestic
end

#legsObject

Returns the value of attribute legs.



126
127
128
# File 'lib/cybersource_rest_client/models/ptsv2payments_travel_information_transit_airline.rb', line 126

def legs
  @legs
end

#number_of_passengersObject

Number of passengers for whom the ticket was issued. Format: English characters only. Optional request field.



79
80
81
# File 'lib/cybersource_rest_client/models/ptsv2payments_travel_information_transit_airline.rb', line 79

def number_of_passengers
  @number_of_passengers
end

#original_ticket_numberObject

Original ticket number when the transaction is for a replacement ticket.



94
95
96
# File 'lib/cybersource_rest_client/models/ptsv2payments_travel_information_transit_airline.rb', line 94

def original_ticket_number
  @original_ticket_number
end

#passenger_nameObject

Name of the passenger to whom the ticket was issued. This will always be a single passenger’s name. If there are more than one passengers, provide only the primary passenger’s name. Do not include special characters such as commas, hyphens, or apostrophes. Only ASCII characters are supported. Format: English characters only. Optional request field.



43
44
45
# File 'lib/cybersource_rest_client/models/ptsv2payments_travel_information_transit_airline.rb', line 43

def passenger_name
  @passenger_name
end

#passenger_typeObject

List of passenger types in a booking code: A (Adult) C (Child) Comma separated values for total number of passenger



143
144
145
# File 'lib/cybersource_rest_client/models/ptsv2payments_travel_information_transit_airline.rb', line 143

def passenger_type
  @passenger_type
end

#plan_numberObject

Plan number based on the fare. This value is provided by the airline. Format: English characters only. Optional request field.



106
107
108
# File 'lib/cybersource_rest_client/models/ptsv2payments_travel_information_transit_airline.rb', line 106

def plan_number
  @plan_number
end

#process_identifierObject

Airline process identifier. This value is the airline’s three-digit IATA1 code which is used to process extended payment airline tickets.



85
86
87
# File 'lib/cybersource_rest_client/models/ptsv2payments_travel_information_transit_airline.rb', line 85

def process_identifier
  @process_identifier
end

#purchase_typeObject

Type of purchase. Possible values: - ‘EXC`: Exchange ticket - `MSC`: Miscellaneous (not a ticket purchase and not a transaction related to an exchange ticket) - `REF`: Refund - `TKT`: Ticket Format: English characters only. Optional request field.



97
98
99
# File 'lib/cybersource_rest_client/models/ptsv2payments_travel_information_transit_airline.rb', line 97

def purchase_type
  @purchase_type
end

#reservation_system_codeObject

Code that specifies the computerized reservation system used to make the reservation and purchase the ticket. Format: English characters only. Restricted string data type that indicates a sequence of letters, numbers, and spaces; special characters are not included. Optional request field.



82
83
84
# File 'lib/cybersource_rest_client/models/ptsv2payments_travel_information_transit_airline.rb', line 82

def reservation_system_code
  @reservation_system_code
end

#reservation_typeObject

The field is not currently supported.



121
122
123
# File 'lib/cybersource_rest_client/models/ptsv2payments_travel_information_transit_airline.rb', line 121

def reservation_type
  @reservation_type
end

#restricted_ticket_desciptionObject

Text that describes the ticket limitations, such as nonrefundable. Format: English characters only. Optional request field.



112
113
114
# File 'lib/cybersource_rest_client/models/ptsv2payments_travel_information_transit_airline.rb', line 112

def restricted_ticket_desciption
  @restricted_ticket_desciption
end

#restricted_ticket_indicatorObject

Flag that indicates whether or not the ticket is restricted (nonrefundable). Possible values: - 0: No restriction (refundable) - 1: Restricted (nonrefundable) Format: English characters only. Restricted string data type that indicates a sequence of letters, numbers, and spaces; special characters are not included. Optional request field.



34
35
36
# File 'lib/cybersource_rest_client/models/ptsv2payments_travel_information_transit_airline.rb', line 34

def restricted_ticket_indicator
  @restricted_ticket_indicator
end

#third_party_statusObject

Specifies if the travel agent joins the flight (0) or not (1)



140
141
142
# File 'lib/cybersource_rest_client/models/ptsv2payments_travel_information_transit_airline.rb', line 140

def third_party_status
  @third_party_status
end

#ticket_change_indicatorObject

Type of update. Possible values: - ‘C`: Change to the existing ticket. - `N`: New ticket. Format: English characters only Optional request field.



103
104
105
# File 'lib/cybersource_rest_client/models/ptsv2payments_travel_information_transit_airline.rb', line 103

def ticket_change_indicator
  @ticket_change_indicator
end

#ticket_issue_dateObject

Date on which the transaction occurred. Format: ‘YYYYMMDD` Format: English characters only. Optional request field.



88
89
90
# File 'lib/cybersource_rest_client/models/ptsv2payments_travel_information_transit_airline.rb', line 88

def ticket_issue_date
  @ticket_issue_date
end

#ticket_issuerObject

Returns the value of attribute ticket_issuer.



25
26
27
# File 'lib/cybersource_rest_client/models/ptsv2payments_travel_information_transit_airline.rb', line 25

def ticket_issuer
  @ticket_issuer
end

#ticket_numberObject

Ticket number. Format: English characters only. Restricted string data type that indicates a sequence of letters, numbers, and spaces; special characters are not included. Optional request field.



28
29
30
# File 'lib/cybersource_rest_client/models/ptsv2payments_travel_information_transit_airline.rb', line 28

def ticket_number
  @ticket_number
end

#total_clearing_amountObject

Total clearing amount for all transactions in the clearing count set. This value cannot exceed ‘99999999999999999999` (twenty 9s). Format: English characters only. If this field is not set and if the total amount from the original authorization is not NULL, the total clearing amount is set to the total amount from the original authorization.



76
77
78
# File 'lib/cybersource_rest_client/models/ptsv2payments_travel_information_transit_airline.rb', line 76

def total_clearing_amount
  @total_clearing_amount
end

#total_fee_amountObject

Total fee for the ticket. This value cannot exceed ‘99999999999999999999` (twenty 9s). Format: English characters only. Optional request field.



67
68
69
# File 'lib/cybersource_rest_client/models/ptsv2payments_travel_information_transit_airline.rb', line 67

def total_fee_amount
  @total_fee_amount
end

#total_insurance_amountObject

Total insurance amount. We have per leg and not total



146
147
148
# File 'lib/cybersource_rest_client/models/ptsv2payments_travel_information_transit_airline.rb', line 146

def total_insurance_amount
  @total_insurance_amount
end

#transaction_typeObject

Type of charge. Possible values: - 01: Charge is for an airline ticket - 02: Charge is for an item that is not an airline ticket



37
38
39
# File 'lib/cybersource_rest_client/models/ptsv2payments_travel_information_transit_airline.rb', line 37

def transaction_type
  @transaction_type
end

Class Method Details

.attribute_mapObject

Attribute mapping from ruby-style variable name to JSON key.



149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
# File 'lib/cybersource_rest_client/models/ptsv2payments_travel_information_transit_airline.rb', line 149

def self.attribute_map
  {
    :'is_domestic' => :'isDomestic',
    :'booking_reference_number' => :'bookingReferenceNumber',
    :'carrier_name' => :'carrierName',
    :'ticket_issuer' => :'ticketIssuer',
    :'ticket_number' => :'ticketNumber',
    :'check_digit' => :'checkDigit',
    :'restricted_ticket_indicator' => :'restrictedTicketIndicator',
    :'transaction_type' => :'transactionType',
    :'extended_payment_code' => :'extendedPaymentCode',
    :'passenger_name' => :'passengerName',
    :'customer_code' => :'customerCode',
    :'document_type' => :'documentType',
    :'document_number' => :'documentNumber',
    :'document_number_of_parts' => :'documentNumberOfParts',
    :'invoice_number' => :'invoiceNumber',
    :'invoice_date' => :'invoiceDate',
    :'additional_charges' => :'additionalCharges',
    :'total_fee_amount' => :'totalFeeAmount',
    :'clearing_sequence' => :'clearingSequence',
    :'clearing_count' => :'clearingCount',
    :'total_clearing_amount' => :'totalClearingAmount',
    :'number_of_passengers' => :'numberOfPassengers',
    :'reservation_system_code' => :'reservationSystemCode',
    :'process_identifier' => :'processIdentifier',
    :'ticket_issue_date' => :'ticketIssueDate',
    :'electronic_ticket_indicator' => :'electronicTicketIndicator',
    :'original_ticket_number' => :'originalTicketNumber',
    :'purchase_type' => :'purchaseType',
    :'credit_reason_indicator' => :'creditReasonIndicator',
    :'ticket_change_indicator' => :'ticketChangeIndicator',
    :'plan_number' => :'planNumber',
    :'arrival_date' => :'arrivalDate',
    :'restricted_ticket_desciption' => :'restrictedTicketDesciption',
    :'exchange_ticket_amount' => :'exchangeTicketAmount',
    :'exchange_ticket_fee_amount' => :'exchangeTicketFeeAmount',
    :'reservation_type' => :'reservationType',
    :'boarding_fee_amount' => :'boardingFeeAmount',
    :'legs' => :'legs',
    :'ancillary_information' => :'ancillaryInformation',
    :'flight_type' => :'flightType',
    :'insurance_amount' => :'insuranceAmount',
    :'frequent_flyer_number' => :'frequentFlyerNumber',
    :'third_party_status' => :'thirdPartyStatus',
    :'passenger_type' => :'passengerType',
    :'total_insurance_amount' => :'totalInsuranceAmount'
  }
end

.json_mapObject

Attribute mapping from JSON key to ruby-style variable name.



200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
# File 'lib/cybersource_rest_client/models/ptsv2payments_travel_information_transit_airline.rb', line 200

def self.json_map
  {
    :'is_domestic' => :'is_domestic',
    :'booking_reference_number' => :'booking_reference_number',
    :'carrier_name' => :'carrier_name',
    :'ticket_issuer' => :'ticket_issuer',
    :'ticket_number' => :'ticket_number',
    :'check_digit' => :'check_digit',
    :'restricted_ticket_indicator' => :'restricted_ticket_indicator',
    :'transaction_type' => :'transaction_type',
    :'extended_payment_code' => :'extended_payment_code',
    :'passenger_name' => :'passenger_name',
    :'customer_code' => :'customer_code',
    :'document_type' => :'document_type',
    :'document_number' => :'document_number',
    :'document_number_of_parts' => :'document_number_of_parts',
    :'invoice_number' => :'invoice_number',
    :'invoice_date' => :'invoice_date',
    :'additional_charges' => :'additional_charges',
    :'total_fee_amount' => :'total_fee_amount',
    :'clearing_sequence' => :'clearing_sequence',
    :'clearing_count' => :'clearing_count',
    :'total_clearing_amount' => :'total_clearing_amount',
    :'number_of_passengers' => :'number_of_passengers',
    :'reservation_system_code' => :'reservation_system_code',
    :'process_identifier' => :'process_identifier',
    :'ticket_issue_date' => :'ticket_issue_date',
    :'electronic_ticket_indicator' => :'electronic_ticket_indicator',
    :'original_ticket_number' => :'original_ticket_number',
    :'purchase_type' => :'purchase_type',
    :'credit_reason_indicator' => :'credit_reason_indicator',
    :'ticket_change_indicator' => :'ticket_change_indicator',
    :'plan_number' => :'plan_number',
    :'arrival_date' => :'arrival_date',
    :'restricted_ticket_desciption' => :'restricted_ticket_desciption',
    :'exchange_ticket_amount' => :'exchange_ticket_amount',
    :'exchange_ticket_fee_amount' => :'exchange_ticket_fee_amount',
    :'reservation_type' => :'reservation_type',
    :'boarding_fee_amount' => :'boarding_fee_amount',
    :'legs' => :'legs',
    :'ancillary_information' => :'ancillary_information',
    :'flight_type' => :'flight_type',
    :'insurance_amount' => :'insurance_amount',
    :'frequent_flyer_number' => :'frequent_flyer_number',
    :'third_party_status' => :'third_party_status',
    :'passenger_type' => :'passenger_type',
    :'total_insurance_amount' => :'total_insurance_amount'
  }
end

.swagger_typesObject

Attribute type mapping.



251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
# File 'lib/cybersource_rest_client/models/ptsv2payments_travel_information_transit_airline.rb', line 251

def self.swagger_types
  {
    :'is_domestic' => :'String',
    :'booking_reference_number' => :'String',
    :'carrier_name' => :'String',
    :'ticket_issuer' => :'Ptsv2paymentsTravelInformationTransitAirlineTicketIssuer',
    :'ticket_number' => :'String',
    :'check_digit' => :'String',
    :'restricted_ticket_indicator' => :'Integer',
    :'transaction_type' => :'Integer',
    :'extended_payment_code' => :'String',
    :'passenger_name' => :'String',
    :'customer_code' => :'String',
    :'document_type' => :'String',
    :'document_number' => :'String',
    :'document_number_of_parts' => :'Integer',
    :'invoice_number' => :'String',
    :'invoice_date' => :'Integer',
    :'additional_charges' => :'String',
    :'total_fee_amount' => :'String',
    :'clearing_sequence' => :'String',
    :'clearing_count' => :'String',
    :'total_clearing_amount' => :'String',
    :'number_of_passengers' => :'Integer',
    :'reservation_system_code' => :'String',
    :'process_identifier' => :'String',
    :'ticket_issue_date' => :'String',
    :'electronic_ticket_indicator' => :'BOOLEAN',
    :'original_ticket_number' => :'String',
    :'purchase_type' => :'String',
    :'credit_reason_indicator' => :'String',
    :'ticket_change_indicator' => :'String',
    :'plan_number' => :'String',
    :'arrival_date' => :'String',
    :'restricted_ticket_desciption' => :'String',
    :'exchange_ticket_amount' => :'String',
    :'exchange_ticket_fee_amount' => :'String',
    :'reservation_type' => :'String',
    :'boarding_fee_amount' => :'String',
    :'legs' => :'Array<Ptsv2paymentsTravelInformationTransitAirlineLegs>',
    :'ancillary_information' => :'Ptsv2paymentsTravelInformationTransitAirlineAncillaryInformation',
    :'flight_type' => :'String',
    :'insurance_amount' => :'String',
    :'frequent_flyer_number' => :'String',
    :'third_party_status' => :'String',
    :'passenger_type' => :'String',
    :'total_insurance_amount' => :'String'
  }
end

Instance Method Details

#==(o) ⇒ Object

Checks equality by comparing each attribute.

Parameters:

  • Object (Object)

    to be compared



723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
# File 'lib/cybersource_rest_client/models/ptsv2payments_travel_information_transit_airline.rb', line 723

def ==(o)
  return true if self.equal?(o)
  self.class == o.class &&
      is_domestic == o.is_domestic &&
      booking_reference_number == o.booking_reference_number &&
      carrier_name == o.carrier_name &&
      ticket_issuer == o.ticket_issuer &&
      ticket_number == o.ticket_number &&
      check_digit == o.check_digit &&
      restricted_ticket_indicator == o.restricted_ticket_indicator &&
      transaction_type == o.transaction_type &&
      extended_payment_code == o.extended_payment_code &&
      passenger_name == o.passenger_name &&
      customer_code == o.customer_code &&
      document_type == o.document_type &&
      document_number == o.document_number &&
      document_number_of_parts == o.document_number_of_parts &&
      invoice_number == o.invoice_number &&
      invoice_date == o.invoice_date &&
      additional_charges == o.additional_charges &&
      total_fee_amount == o.total_fee_amount &&
      clearing_sequence == o.clearing_sequence &&
      clearing_count == o.clearing_count &&
      total_clearing_amount == o.total_clearing_amount &&
      number_of_passengers == o.number_of_passengers &&
      reservation_system_code == o.reservation_system_code &&
      process_identifier == o.process_identifier &&
      ticket_issue_date == o.ticket_issue_date &&
      electronic_ticket_indicator == o.electronic_ticket_indicator &&
      original_ticket_number == o.original_ticket_number &&
      purchase_type == o.purchase_type &&
      credit_reason_indicator == o.credit_reason_indicator &&
      ticket_change_indicator == o.ticket_change_indicator &&
      plan_number == o.plan_number &&
      arrival_date == o.arrival_date &&
      restricted_ticket_desciption == o.restricted_ticket_desciption &&
      exchange_ticket_amount == o.exchange_ticket_amount &&
      exchange_ticket_fee_amount == o.exchange_ticket_fee_amount &&
      reservation_type == o.reservation_type &&
      boarding_fee_amount == o.boarding_fee_amount &&
      legs == o.legs &&
      ancillary_information == o.ancillary_information &&
      flight_type == o.flight_type &&
      insurance_amount == o.insurance_amount &&
      frequent_flyer_number == o.frequent_flyer_number &&
      third_party_status == o.third_party_status &&
      passenger_type == o.passenger_type &&
      total_insurance_amount == o.total_insurance_amount
end

#_deserialize(type, value) ⇒ Object

Deserializes the data based on type

Parameters:

  • string

    type Data type

  • string

    value Value to be deserialized

Returns:

  • (Object)

    Deserialized data



809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
# File 'lib/cybersource_rest_client/models/ptsv2payments_travel_information_transit_airline.rb', line 809

def _deserialize(type, value)
  case type.to_sym
  when :DateTime
    DateTime.parse(value)
  when :Date
    Date.parse(value)
  when :String
    value.to_s
  when :Integer
    value.to_i
  when :Float
    value.to_f
  when :BOOLEAN
    if value.to_s =~ /\A(true|t|yes|y|1)\z/i
      true
    else
      false
    end
  when :Object
    # generic object (usually a Hash), return directly
    value
  when /\AArray<(?<inner_type>.+)>\z/
    inner_type = Regexp.last_match[:inner_type]
    value.map { |v| _deserialize(inner_type, v) }
  when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
    k_type = Regexp.last_match[:k_type]
    v_type = Regexp.last_match[:v_type]
    {}.tap do |hash|
      value.each do |k, v|
        hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
      end
    end
  else # model
    temp_model = CyberSource.const_get(type).new
    temp_model.build_from_hash(value)
  end
end

#_to_hash(value) ⇒ Hash

Outputs non-array value in the form of hash For object, use to_hash. Otherwise, just return the value

Parameters:

  • value (Object)

    Any valid value

Returns:

  • (Hash)

    Returns the value in the form of hash



875
876
877
878
879
880
881
882
883
884
885
886
887
# File 'lib/cybersource_rest_client/models/ptsv2payments_travel_information_transit_airline.rb', line 875

def _to_hash(value)
  if value.is_a?(Array)
    value.compact.map { |v| _to_hash(v) }
  elsif value.is_a?(Hash)
    {}.tap do |hash|
      value.each { |k, v| hash[k] = _to_hash(v) }
    end
  elsif value.respond_to? :to_hash
    value.to_hash
  else
    value
  end
end

#build_from_hash(attributes) ⇒ Object

Builds the object from hash

Parameters:

  • attributes (Hash)

    Model attributes in the form of hash

Returns:

  • (Object)

    Returns the model itself



788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
# File 'lib/cybersource_rest_client/models/ptsv2payments_travel_information_transit_airline.rb', line 788

def build_from_hash(attributes)
  return nil unless attributes.is_a?(Hash)
  self.class.swagger_types.each_pair do |key, type|
    if type =~ /\AArray<(.*)>/i
      # check to ensure the input is an array given that the the attribute
      # is documented as an array but the input is not
      if attributes[self.class.attribute_map[key]].is_a?(Array)
        self.send("#{self.class.json_map[key]}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
      end
    elsif !attributes[self.class.attribute_map[key]].nil?
      self.send("#{self.class.json_map[key]}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
    end # or else data not found in attributes(hash), not an issue as the data can be optional
  end

  self
end

#eql?(o) ⇒ Boolean

Parameters:

  • Object (Object)

    to be compared

Returns:

  • (Boolean)

See Also:

  • `==` method


775
776
777
# File 'lib/cybersource_rest_client/models/ptsv2payments_travel_information_transit_airline.rb', line 775

def eql?(o)
  self == o
end

#hashFixnum

Calculates hash code according to all attributes.

Returns:

  • (Fixnum)

    Hash code



781
782
783
# File 'lib/cybersource_rest_client/models/ptsv2payments_travel_information_transit_airline.rb', line 781

def hash
  [is_domestic, booking_reference_number, carrier_name, ticket_issuer, ticket_number, check_digit, restricted_ticket_indicator, transaction_type, extended_payment_code, passenger_name, customer_code, document_type, document_number, document_number_of_parts, invoice_number, invoice_date, additional_charges, total_fee_amount, clearing_sequence, clearing_count, total_clearing_amount, number_of_passengers, reservation_system_code, process_identifier, ticket_issue_date, electronic_ticket_indicator, original_ticket_number, purchase_type, credit_reason_indicator, ticket_change_indicator, plan_number, arrival_date, restricted_ticket_desciption, exchange_ticket_amount, exchange_ticket_fee_amount, reservation_type, boarding_fee_amount, legs, ancillary_information, flight_type, insurance_amount, frequent_flyer_number, third_party_status, passenger_type, total_insurance_amount].hash
end

#list_invalid_propertiesObject

Show invalid properties with the reasons. Usually used together with valid?

Returns:

  • Array for valid properties with the reasons



494
495
496
497
# File 'lib/cybersource_rest_client/models/ptsv2payments_travel_information_transit_airline.rb', line 494

def list_invalid_properties
  invalid_properties = Array.new
  invalid_properties
end

#to_bodyHash

to_body is an alias to to_hash (backward compatibility)

Returns:

  • (Hash)

    Returns the object in the form of hash



855
856
857
# File 'lib/cybersource_rest_client/models/ptsv2payments_travel_information_transit_airline.rb', line 855

def to_body
  to_hash
end

#to_hashHash

Returns the object in the form of hash

Returns:

  • (Hash)

    Returns the object in the form of hash



861
862
863
864
865
866
867
868
869
# File 'lib/cybersource_rest_client/models/ptsv2payments_travel_information_transit_airline.rb', line 861

def to_hash
  hash = {}
  self.class.attribute_map.each_pair do |attr, param|
    value = self.send(attr)
    next if value.nil?
    hash[param] = _to_hash(value)
  end
  hash
end

#to_sString

Returns the string representation of the object

Returns:

  • (String)

    String presentation of the object



849
850
851
# File 'lib/cybersource_rest_client/models/ptsv2payments_travel_information_transit_airline.rb', line 849

def to_s
  to_hash.to_s
end

#valid?Boolean

Check to see if the all the properties in the model are valid

Returns:

  • (Boolean)

    true if the model is valid



501
502
503
# File 'lib/cybersource_rest_client/models/ptsv2payments_travel_information_transit_airline.rb', line 501

def valid?
  true
end