Class: CyberSource::Ptsv2paymentsTravelInformationTransitAirline
- Inherits:
-
Object
- Object
- CyberSource::Ptsv2paymentsTravelInformationTransitAirline
- Defined in:
- lib/cybersource_rest_client/models/ptsv2payments_travel_information_transit_airline.rb
Instance Attribute Summary collapse
-
#additional_charges ⇒ Object
Description of the charge if the charge does not involve an airline ticket.
-
#ancillary_information ⇒ Object
Returns the value of attribute ancillary_information.
-
#arrival_date ⇒ Object
Date of arrival for the last leg of the trip.
-
#boarding_fee_amount ⇒ Object
Boarding fee.
-
#booking_reference_number ⇒ Object
Reference number for the airline booking.
-
#carrier_name ⇒ Object
Airline that generated the ticket.
-
#check_digit ⇒ Object
Check digit for the ticket number.
-
#clearing_count ⇒ Object
Total number of clearing messages associated with the authorization request.
-
#clearing_sequence ⇒ Object
Number that identifies the clearing message when multiple clearing messages are allowed per authorized transaction.
-
#credit_reason_indicator ⇒ Object
Reason for the credit.
-
#customer_code ⇒ Object
Reference number or code that identifies the cardholder.
-
#document_number ⇒ Object
The field is not currently supported.
-
#document_number_of_parts ⇒ Object
The field is not currently supported.
-
#document_type ⇒ Object
Airline document type code that specifies the purpose of the transaction.
-
#electronic_ticket_indicator ⇒ Object
Flag that indicates whether an electronic ticket was issued.
-
#exchange_ticket_amount ⇒ Object
Amount of the exchanged ticket.
-
#exchange_ticket_fee_amount ⇒ Object
Fee for exchanging the ticket.
-
#extended_payment_code ⇒ Object
The field is not currently supported.
-
#invoice_date ⇒ Object
Invoice date.
-
#invoice_number ⇒ Object
Invoice number for the airline transaction.
-
#legs ⇒ Object
Returns the value of attribute legs.
-
#number_of_passengers ⇒ Object
Number of passengers for whom the ticket was issued.
-
#original_ticket_number ⇒ Object
Original ticket number when the transaction is for a replacement ticket.
-
#passenger_name ⇒ Object
Name of the passenger to whom the ticket was issued.
-
#plan_number ⇒ Object
Plan number based on the fare.
-
#process_identifier ⇒ Object
Airline process identifier.
-
#purchase_type ⇒ Object
Type of purchase.
-
#reservation_system_code ⇒ Object
Code that specifies the computerized reservation system used to make the reservation and purchase the ticket.
-
#reservation_type ⇒ Object
The field is not currently supported.
-
#restricted_ticket_desciption ⇒ Object
Text that describes the ticket limitations, such as nonrefundable.
-
#restricted_ticket_indicator ⇒ Object
Flag that indicates whether or not the ticket is restricted (nonrefundable).
-
#ticket_change_indicator ⇒ Object
Type of update.
-
#ticket_issue_date ⇒ Object
Date on which the transaction occurred.
-
#ticket_issuer ⇒ Object
Returns the value of attribute ticket_issuer.
-
#ticket_number ⇒ Object
Ticket number.
-
#total_clearing_amount ⇒ Object
Total clearing amount for all transactions in the clearing count set.
-
#total_fee_amount ⇒ Object
Total fee for the ticket.
-
#transaction_type ⇒ Object
Type of charge.
Class Method Summary collapse
-
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
-
.swagger_types ⇒ Object
Attribute type mapping.
Instance Method Summary collapse
-
#==(o) ⇒ Object
Checks equality by comparing each attribute.
-
#_deserialize(type, value) ⇒ Object
Deserializes the data based on type.
-
#_to_hash(value) ⇒ Hash
Outputs non-array value in the form of hash For object, use to_hash.
-
#build_from_hash(attributes) ⇒ Object
Builds the object from hash.
- #eql?(o) ⇒ Boolean
-
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
-
#initialize(attributes = {}) ⇒ Ptsv2paymentsTravelInformationTransitAirline
constructor
Initializes the object.
-
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons.
-
#to_body ⇒ Hash
to_body is an alias to to_hash (backward compatibility).
-
#to_hash ⇒ Hash
Returns the object in the form of hash.
-
#to_s ⇒ String
Returns the string representation of the object.
-
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid.
Constructor Details
#initialize(attributes = {}) ⇒ Ptsv2paymentsTravelInformationTransitAirline
Initializes the object
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 249 250 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 300 301 302 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 |
# File 'lib/cybersource_rest_client/models/ptsv2payments_travel_information_transit_airline.rb', line 218 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?(:'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 end |
Instance Attribute Details
#additional_charges ⇒ Object
Description of the charge if the charge does not involve an airline ticket. For example: Excess baggage.
62 63 64 |
# File 'lib/cybersource_rest_client/models/ptsv2payments_travel_information_transit_airline.rb', line 62 def additional_charges @additional_charges end |
#ancillary_information ⇒ Object
Returns the value of attribute ancillary_information.
126 127 128 |
# File 'lib/cybersource_rest_client/models/ptsv2payments_travel_information_transit_airline.rb', line 126 def ancillary_information @ancillary_information end |
#arrival_date ⇒ Object
Date of arrival for the last leg of the trip. Format: âMMDDYYYY` English characters only. Optional request field.
107 108 109 |
# File 'lib/cybersource_rest_client/models/ptsv2payments_travel_information_transit_airline.rb', line 107 def arrival_date @arrival_date end |
#boarding_fee_amount ⇒ Object
Boarding fee.
122 123 124 |
# File 'lib/cybersource_rest_client/models/ptsv2payments_travel_information_transit_airline.rb', line 122 def boarding_fee_amount @boarding_fee_amount end |
#booking_reference_number ⇒ Object
Reference number for the airline booking. Required if ticket numbers are not issued.
18 19 20 |
# File 'lib/cybersource_rest_client/models/ptsv2payments_travel_information_transit_airline.rb', line 18 def booking_reference_number @booking_reference_number end |
#carrier_name ⇒ Object
Airline that generated the ticket. Format: English characters only. Optional request field.
21 22 23 |
# File 'lib/cybersource_rest_client/models/ptsv2payments_travel_information_transit_airline.rb', line 21 def carrier_name @carrier_name end |
#check_digit ⇒ Object
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.
29 30 31 |
# File 'lib/cybersource_rest_client/models/ptsv2payments_travel_information_transit_airline.rb', line 29 def check_digit @check_digit end |
#clearing_count ⇒ Object
Total number of clearing messages associated with the authorization request. Format: English characters only. Optional request field.
71 72 73 |
# File 'lib/cybersource_rest_client/models/ptsv2payments_travel_information_transit_airline.rb', line 71 def clearing_count @clearing_count end |
#clearing_sequence ⇒ Object
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.
68 69 70 |
# File 'lib/cybersource_rest_client/models/ptsv2payments_travel_information_transit_airline.rb', line 68 def clearing_sequence @clearing_sequence end |
#credit_reason_indicator ⇒ Object
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.
98 99 100 |
# File 'lib/cybersource_rest_client/models/ptsv2payments_travel_information_transit_airline.rb', line 98 def credit_reason_indicator @credit_reason_indicator end |
#customer_code ⇒ Object
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.
44 45 46 |
# File 'lib/cybersource_rest_client/models/ptsv2payments_travel_information_transit_airline.rb', line 44 def customer_code @customer_code end |
#document_number ⇒ Object
The field is not currently supported.
50 51 52 |
# File 'lib/cybersource_rest_client/models/ptsv2payments_travel_information_transit_airline.rb', line 50 def document_number @document_number end |
#document_number_of_parts ⇒ Object
The field is not currently supported.
53 54 55 |
# File 'lib/cybersource_rest_client/models/ptsv2payments_travel_information_transit_airline.rb', line 53 def document_number_of_parts @document_number_of_parts end |
#document_type ⇒ Object
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 |
47 48 49 |
# File 'lib/cybersource_rest_client/models/ptsv2payments_travel_information_transit_airline.rb', line 47 def document_type @document_type end |
#electronic_ticket_indicator ⇒ Object
Flag that indicates whether an electronic ticket was issued. Possible values: - âtrue` - `false` Optional request field.
89 90 91 |
# File 'lib/cybersource_rest_client/models/ptsv2payments_travel_information_transit_airline.rb', line 89 def electronic_ticket_indicator @electronic_ticket_indicator end |
#exchange_ticket_amount ⇒ Object
Amount of the exchanged ticket. Format: English characters only.
113 114 115 |
# File 'lib/cybersource_rest_client/models/ptsv2payments_travel_information_transit_airline.rb', line 113 def exchange_ticket_amount @exchange_ticket_amount end |
#exchange_ticket_fee_amount ⇒ Object
Fee for exchanging the ticket. Format: English characters only. Optional request field.
116 117 118 |
# File 'lib/cybersource_rest_client/models/ptsv2payments_travel_information_transit_airline.rb', line 116 def exchange_ticket_fee_amount @exchange_ticket_fee_amount end |
#extended_payment_code ⇒ Object
The field is not currently supported.
38 39 40 |
# File 'lib/cybersource_rest_client/models/ptsv2payments_travel_information_transit_airline.rb', line 38 def extended_payment_code @extended_payment_code end |
#invoice_date ⇒ Object
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,"
59 60 61 |
# File 'lib/cybersource_rest_client/models/ptsv2payments_travel_information_transit_airline.rb', line 59 def invoice_date @invoice_date end |
#invoice_number ⇒ Object
Invoice number for the airline transaction.
56 57 58 |
# File 'lib/cybersource_rest_client/models/ptsv2payments_travel_information_transit_airline.rb', line 56 def invoice_number @invoice_number end |
#legs ⇒ Object
Returns the value of attribute legs.
124 125 126 |
# File 'lib/cybersource_rest_client/models/ptsv2payments_travel_information_transit_airline.rb', line 124 def legs @legs end |
#number_of_passengers ⇒ Object
Number of passengers for whom the ticket was issued. Format: English characters only. Optional request field.
77 78 79 |
# File 'lib/cybersource_rest_client/models/ptsv2payments_travel_information_transit_airline.rb', line 77 def number_of_passengers @number_of_passengers end |
#original_ticket_number ⇒ Object
Original ticket number when the transaction is for a replacement ticket.
92 93 94 |
# File 'lib/cybersource_rest_client/models/ptsv2payments_travel_information_transit_airline.rb', line 92 def original_ticket_number @original_ticket_number end |
#passenger_name ⇒ Object
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.
41 42 43 |
# File 'lib/cybersource_rest_client/models/ptsv2payments_travel_information_transit_airline.rb', line 41 def passenger_name @passenger_name end |
#plan_number ⇒ Object
Plan number based on the fare. This value is provided by the airline. Format: English characters only. Optional request field.
104 105 106 |
# File 'lib/cybersource_rest_client/models/ptsv2payments_travel_information_transit_airline.rb', line 104 def plan_number @plan_number end |
#process_identifier ⇒ Object
Airline process identifier. This value is the airlineâs three-digit IATA1 code which is used to process extended payment airline tickets.
83 84 85 |
# File 'lib/cybersource_rest_client/models/ptsv2payments_travel_information_transit_airline.rb', line 83 def process_identifier @process_identifier end |
#purchase_type ⇒ Object
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.
95 96 97 |
# File 'lib/cybersource_rest_client/models/ptsv2payments_travel_information_transit_airline.rb', line 95 def purchase_type @purchase_type end |
#reservation_system_code ⇒ Object
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.
80 81 82 |
# File 'lib/cybersource_rest_client/models/ptsv2payments_travel_information_transit_airline.rb', line 80 def reservation_system_code @reservation_system_code end |
#reservation_type ⇒ Object
The field is not currently supported.
119 120 121 |
# File 'lib/cybersource_rest_client/models/ptsv2payments_travel_information_transit_airline.rb', line 119 def reservation_type @reservation_type end |
#restricted_ticket_desciption ⇒ Object
Text that describes the ticket limitations, such as nonrefundable. Format: English characters only. Optional request field.
110 111 112 |
# File 'lib/cybersource_rest_client/models/ptsv2payments_travel_information_transit_airline.rb', line 110 def restricted_ticket_desciption @restricted_ticket_desciption end |
#restricted_ticket_indicator ⇒ Object
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.
32 33 34 |
# File 'lib/cybersource_rest_client/models/ptsv2payments_travel_information_transit_airline.rb', line 32 def restricted_ticket_indicator @restricted_ticket_indicator end |
#ticket_change_indicator ⇒ Object
Type of update. Possible values: - âC`: Change to the existing ticket. - `N`: New ticket. Format: English characters only Optional request field.
101 102 103 |
# File 'lib/cybersource_rest_client/models/ptsv2payments_travel_information_transit_airline.rb', line 101 def ticket_change_indicator @ticket_change_indicator end |
#ticket_issue_date ⇒ Object
Date on which the transaction occurred. Format: âYYYYMMDD` Format: English characters only. Optional request field.
86 87 88 |
# File 'lib/cybersource_rest_client/models/ptsv2payments_travel_information_transit_airline.rb', line 86 def ticket_issue_date @ticket_issue_date end |
#ticket_issuer ⇒ Object
Returns the value of attribute ticket_issuer.
23 24 25 |
# File 'lib/cybersource_rest_client/models/ptsv2payments_travel_information_transit_airline.rb', line 23 def ticket_issuer @ticket_issuer end |
#ticket_number ⇒ Object
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.
26 27 28 |
# File 'lib/cybersource_rest_client/models/ptsv2payments_travel_information_transit_airline.rb', line 26 def ticket_number @ticket_number end |
#total_clearing_amount ⇒ Object
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.
74 75 76 |
# File 'lib/cybersource_rest_client/models/ptsv2payments_travel_information_transit_airline.rb', line 74 def total_clearing_amount @total_clearing_amount end |
#total_fee_amount ⇒ Object
Total fee for the ticket. This value cannot exceed â99999999999999999999` (twenty 9s). Format: English characters only. Optional request field.
65 66 67 |
# File 'lib/cybersource_rest_client/models/ptsv2payments_travel_information_transit_airline.rb', line 65 def total_fee_amount @total_fee_amount end |
#transaction_type ⇒ Object
Type of charge. Possible values: - 01: Charge is for an airline ticket - 02: Charge is for an item that is not an airline ticket
35 36 37 |
# File 'lib/cybersource_rest_client/models/ptsv2payments_travel_information_transit_airline.rb', line 35 def transaction_type @transaction_type end |
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 |
# File 'lib/cybersource_rest_client/models/ptsv2payments_travel_information_transit_airline.rb', line 129 def self.attribute_map { :'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' } end |
.swagger_types ⇒ Object
Attribute type mapping.
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 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 |
# File 'lib/cybersource_rest_client/models/ptsv2payments_travel_information_transit_airline.rb', line 173 def self.swagger_types { :'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' } end |
Instance Method Details
#==(o) ⇒ Object
Checks equality by comparing each attribute.
568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 |
# File 'lib/cybersource_rest_client/models/ptsv2payments_travel_information_transit_airline.rb', line 568 def ==(o) return true if self.equal?(o) self.class == o.class && 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 end |
#_deserialize(type, value) ⇒ Object
Deserializes the data based on type
647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 |
# File 'lib/cybersource_rest_client/models/ptsv2payments_travel_information_transit_airline.rb', line 647 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
713 714 715 716 717 718 719 720 721 722 723 724 725 |
# File 'lib/cybersource_rest_client/models/ptsv2payments_travel_information_transit_airline.rb', line 713 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
626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 |
# File 'lib/cybersource_rest_client/models/ptsv2payments_travel_information_transit_airline.rb', line 626 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("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{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
613 614 615 |
# File 'lib/cybersource_rest_client/models/ptsv2payments_travel_information_transit_airline.rb', line 613 def eql?(o) self == o end |
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
619 620 621 |
# File 'lib/cybersource_rest_client/models/ptsv2payments_travel_information_transit_airline.rb', line 619 def hash [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].hash end |
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons. Usually used together with valid?
381 382 383 384 |
# File 'lib/cybersource_rest_client/models/ptsv2payments_travel_information_transit_airline.rb', line 381 def list_invalid_properties invalid_properties = Array.new invalid_properties end |
#to_body ⇒ Hash
to_body is an alias to to_hash (backward compatibility)
693 694 695 |
# File 'lib/cybersource_rest_client/models/ptsv2payments_travel_information_transit_airline.rb', line 693 def to_body to_hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
699 700 701 702 703 704 705 706 707 |
# File 'lib/cybersource_rest_client/models/ptsv2payments_travel_information_transit_airline.rb', line 699 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_s ⇒ String
Returns the string representation of the object
687 688 689 |
# File 'lib/cybersource_rest_client/models/ptsv2payments_travel_information_transit_airline.rb', line 687 def to_s to_hash.to_s end |
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid
388 389 390 |
# File 'lib/cybersource_rest_client/models/ptsv2payments_travel_information_transit_airline.rb', line 388 def valid? true end |