cybersource_rest_client 0.0.74 → 0.0.75

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (143) hide show
  1. checksums.yaml +4 -4
  2. data/lib/AuthenticationSDK/core/MerchantConfig.rb +2 -1
  3. data/lib/cybersource_rest_client/api/bin_lookup_api.rb +5 -5
  4. data/lib/cybersource_rest_client/api/create_new_webhooks_api.rb +6 -6
  5. data/lib/cybersource_rest_client/api/decision_manager_api.rb +3 -3
  6. data/lib/cybersource_rest_client/api/manage_webhooks_api.rb +9 -9
  7. data/lib/cybersource_rest_client/api/merchant_boarding_api.rb +3 -3
  8. data/lib/cybersource_rest_client/api/payment_tokens_api.rb +96 -0
  9. data/lib/cybersource_rest_client/models/create_order_request.rb +269 -229
  10. data/lib/cybersource_rest_client/models/de_association_request_body.rb +190 -190
  11. data/lib/cybersource_rest_client/models/generate_capture_context_request.rb +240 -240
  12. data/lib/cybersource_rest_client/models/generate_unified_checkout_capture_context_request.rb +303 -303
  13. data/lib/cybersource_rest_client/models/get_subscription_response.rb +267 -267
  14. data/lib/cybersource_rest_client/models/get_subscription_response_reactivation_information.rb +213 -213
  15. data/lib/cybersource_rest_client/models/inline_response_200_10.rb +292 -292
  16. data/lib/cybersource_rest_client/models/inline_response_200_10_records.rb +209 -209
  17. data/lib/cybersource_rest_client/models/inline_response_200_10_response_record.rb +307 -307
  18. data/lib/cybersource_rest_client/models/inline_response_200_10_response_record_additional_updates.rb +242 -242
  19. data/lib/cybersource_rest_client/models/inline_response_200_10_source_record.rb +295 -295
  20. data/lib/cybersource_rest_client/models/inline_response_200_2.rb +253 -253
  21. data/lib/cybersource_rest_client/models/inline_response_200_5.rb +247 -247
  22. data/lib/cybersource_rest_client/models/inline_response_200_5_devices.rb +357 -357
  23. data/lib/cybersource_rest_client/models/inline_response_200_6.rb +202 -202
  24. data/lib/cybersource_rest_client/models/inline_response_200_7.rb +247 -247
  25. data/lib/cybersource_rest_client/models/inline_response_200_7_devices.rb +371 -371
  26. data/lib/cybersource_rest_client/models/inline_response_200_7_payment_processor_to_terminal_map.rb +200 -200
  27. data/lib/cybersource_rest_client/models/inline_response_200_8.rb +251 -251
  28. data/lib/cybersource_rest_client/models/inline_response_200_8__embedded.rb +191 -191
  29. data/lib/cybersource_rest_client/models/inline_response_200_8__embedded__links.rb +191 -191
  30. data/lib/cybersource_rest_client/models/inline_response_200_8__embedded__links_reports.rb +190 -190
  31. data/lib/cybersource_rest_client/models/inline_response_200_8__embedded_batches.rb +295 -295
  32. data/lib/cybersource_rest_client/models/inline_response_200_8__embedded_totals.rb +229 -229
  33. data/lib/cybersource_rest_client/models/inline_response_200_8__links.rb +200 -200
  34. data/lib/cybersource_rest_client/models/inline_response_200_9.rb +290 -290
  35. data/lib/cybersource_rest_client/models/inline_response_200_9__links.rb +201 -201
  36. data/lib/cybersource_rest_client/models/inline_response_200_9__links_report.rb +189 -189
  37. data/lib/cybersource_rest_client/models/inline_response_200_9_billing.rb +219 -219
  38. data/lib/cybersource_rest_client/models/inline_response_201.rb +227 -218
  39. data/lib/cybersource_rest_client/models/inline_response_201_1.rb +218 -248
  40. data/lib/cybersource_rest_client/models/inline_response_201_2.rb +248 -281
  41. data/lib/cybersource_rest_client/models/{inline_response_201_1_payout_information.rb → inline_response_201_2_payout_information.rb} +216 -216
  42. data/lib/cybersource_rest_client/models/{inline_response_201_1_payout_information_pull_funds.rb → inline_response_201_2_payout_information_pull_funds.rb} +213 -213
  43. data/lib/cybersource_rest_client/models/{inline_response_201_1_payout_information_push_funds.rb → inline_response_201_2_payout_information_push_funds.rb} +417 -417
  44. data/lib/cybersource_rest_client/models/inline_response_201_3.rb +281 -222
  45. data/lib/cybersource_rest_client/models/{inline_response_201_2_integration_information.rb → inline_response_201_3_integration_information.rb} +192 -192
  46. data/lib/cybersource_rest_client/models/{inline_response_201_2_integration_information_tenant_configurations.rb → inline_response_201_3_integration_information_tenant_configurations.rb} +253 -253
  47. data/lib/cybersource_rest_client/models/{inline_response_201_2_organization_information.rb → inline_response_201_3_organization_information.rb} +217 -217
  48. data/lib/cybersource_rest_client/models/{inline_response_201_2_product_information_setups.rb → inline_response_201_3_product_information_setups.rb} +214 -214
  49. data/lib/cybersource_rest_client/models/{inline_response_201_2_registration_information.rb → inline_response_201_3_registration_information.rb} +222 -222
  50. data/lib/cybersource_rest_client/models/{inline_response_201_2_setups.rb → inline_response_201_3_setups.rb} +219 -219
  51. data/lib/cybersource_rest_client/models/{inline_response_201_2_setups_commerce_solutions.rb → inline_response_201_3_setups_commerce_solutions.rb} +209 -209
  52. data/lib/cybersource_rest_client/models/{inline_response_201_2_setups_payments.rb → inline_response_201_3_setups_payments.rb} +369 -369
  53. data/lib/cybersource_rest_client/models/{inline_response_201_2_setups_payments_alternative_payment_methods.rb → inline_response_201_3_setups_payments_alternative_payment_methods.rb} +221 -221
  54. data/lib/cybersource_rest_client/models/{inline_response_201_2_setups_payments_alternative_payment_methods_configuration_status.rb → inline_response_201_3_setups_payments_alternative_payment_methods_configuration_status.rb} +200 -200
  55. data/lib/cybersource_rest_client/models/{inline_response_201_2_setups_payments_card_processing.rb → inline_response_201_3_setups_payments_card_processing.rb} +199 -199
  56. data/lib/cybersource_rest_client/models/{inline_response_201_2_setups_payments_card_processing_configuration_status.rb → inline_response_201_3_setups_payments_card_processing_configuration_status.rb} +255 -255
  57. data/lib/cybersource_rest_client/models/{inline_response_201_2_setups_payments_card_processing_subscription_status.rb → inline_response_201_3_setups_payments_card_processing_subscription_status.rb} +234 -234
  58. data/lib/cybersource_rest_client/models/{inline_response_201_2_setups_payments_digital_payments.rb → inline_response_201_3_setups_payments_digital_payments.rb} +189 -189
  59. data/lib/cybersource_rest_client/models/{inline_response_201_2_setups_risk.rb → inline_response_201_3_setups_risk.rb} +199 -199
  60. data/lib/cybersource_rest_client/models/{inline_response_201_2_setups_value_added_services.rb → inline_response_201_3_setups_value_added_services.rb} +209 -209
  61. data/lib/cybersource_rest_client/models/inline_response_201_4.rb +222 -312
  62. data/lib/cybersource_rest_client/models/{inline_response_201_3_key_information.rb → inline_response_201_4_key_information.rb} +300 -300
  63. data/lib/cybersource_rest_client/models/{inline_response_201_3_key_information_error_information.rb → inline_response_201_4_key_information_error_information.rb} +202 -202
  64. data/lib/cybersource_rest_client/models/{inline_response_201_3_key_information_error_information_details.rb → inline_response_201_4_key_information_error_information_details.rb} +201 -201
  65. data/lib/cybersource_rest_client/models/inline_response_201_5.rb +312 -277
  66. data/lib/cybersource_rest_client/models/inline_response_201_6.rb +277 -202
  67. data/lib/cybersource_rest_client/models/{inline_response_201_5_payloads.rb → inline_response_201_6_payloads.rb} +189 -189
  68. data/lib/cybersource_rest_client/models/{inline_response_201_5_payloads_test_payload.rb → inline_response_201_6_payloads_test_payload.rb} +190 -190
  69. data/lib/cybersource_rest_client/models/inline_response_201_7.rb +202 -0
  70. data/lib/cybersource_rest_client/models/inline_response_201_order_information.rb +189 -0
  71. data/lib/cybersource_rest_client/models/inline_response_201_order_information_ship_to.rb +315 -0
  72. data/lib/cybersource_rest_client/models/inline_response_201_payment_information.rb +199 -0
  73. data/lib/cybersource_rest_client/models/inline_response_201_payment_information_e_wallet.rb +196 -0
  74. data/lib/cybersource_rest_client/models/inline_response_201_payment_information_tokenized_payment_method.rb +213 -0
  75. data/lib/cybersource_rest_client/models/payments_products.rb +379 -379
  76. data/lib/cybersource_rest_client/models/payments_products_unified_checkout.rb +199 -199
  77. data/lib/cybersource_rest_client/models/payments_products_unified_checkout_configuration_information.rb +189 -189
  78. data/lib/cybersource_rest_client/models/payments_products_unified_checkout_configuration_information_configurations.rb +189 -189
  79. data/lib/cybersource_rest_client/models/payments_products_unified_checkout_configuration_information_configurations_features.rb +189 -189
  80. data/lib/cybersource_rest_client/models/payments_products_unified_checkout_configuration_information_configurations_features_paze.rb +213 -213
  81. data/lib/cybersource_rest_client/models/payments_products_unified_checkout_subscription_information.rb +225 -225
  82. data/lib/cybersource_rest_client/models/payments_products_unified_checkout_subscription_information_features.rb +189 -189
  83. data/lib/cybersource_rest_client/models/payments_products_unified_checkout_subscription_information_features_paze_for_unified_checkout.rb +190 -190
  84. data/lib/cybersource_rest_client/models/post_device_search_request.rb +223 -223
  85. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_installment_information.rb +609 -609
  86. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_account_information_card.rb +269 -269
  87. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information.rb +364 -354
  88. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information_tokenized_card.rb +309 -309
  89. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information_tokenized_payment_method.rb +213 -0
  90. data/lib/cybersource_rest_client/models/pts_v2_retrieve_payment_token_get400_response.rb +252 -0
  91. data/lib/cybersource_rest_client/models/pts_v2_retrieve_payment_token_get502_response.rb +240 -0
  92. data/lib/cybersource_rest_client/models/ptsv2billingagreements_payment_information_card.rb +258 -258
  93. data/lib/cybersource_rest_client/models/ptsv2billingagreements_payment_information_tokenized_card.rb +275 -275
  94. data/lib/cybersource_rest_client/models/ptsv2intents_event_information.rb +212 -0
  95. data/lib/cybersource_rest_client/models/ptsv2intents_order_information_ship_to.rb +354 -332
  96. data/lib/cybersource_rest_client/models/ptsv2intents_payment_information.rb +220 -189
  97. data/lib/cybersource_rest_client/models/ptsv2intents_payment_information_e_wallet.rb +196 -0
  98. data/lib/cybersource_rest_client/models/ptsv2intents_payment_information_tokenized_payment_method.rb +241 -0
  99. data/lib/cybersource_rest_client/models/ptsv2intents_processing_information.rb +351 -219
  100. data/lib/cybersource_rest_client/models/ptsv2intents_recipient_information.rb +245 -0
  101. data/lib/cybersource_rest_client/models/ptsv2intents_sender_information.rb +277 -0
  102. data/lib/cybersource_rest_client/models/ptsv2intents_sender_information_account.rb +190 -0
  103. data/lib/cybersource_rest_client/models/ptsv2intents_travel_information.rb +211 -0
  104. data/lib/cybersource_rest_client/models/ptsv2intents_travel_information_agency.rb +245 -0
  105. data/lib/cybersource_rest_client/models/ptsv2intentsid_payment_information.rb +189 -0
  106. data/lib/cybersource_rest_client/models/ptsv2paymentreferences_order_information_amount_details.rb +417 -400
  107. data/lib/cybersource_rest_client/models/ptsv2paymentreferences_payment_information_card.rb +275 -275
  108. data/lib/cybersource_rest_client/models/ptsv2payments_installment_information.rb +433 -416
  109. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_amount_details.rb +668 -651
  110. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_line_items.rb +716 -699
  111. data/lib/cybersource_rest_client/models/ptsv2payments_payment_information.rb +356 -346
  112. data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_card.rb +445 -445
  113. data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_tokenized_card.rb +377 -377
  114. data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_tokenized_payment_method.rb +196 -0
  115. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_installment_information.rb +604 -604
  116. data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_payment_information_card.rb +377 -377
  117. data/lib/cybersource_rest_client/models/ptsv2paymenttokens_payment_information.rb +199 -0
  118. data/lib/cybersource_rest_client/models/ptsv2paymenttokens_processing_information.rb +192 -0
  119. data/lib/cybersource_rest_client/models/ptsv2payouts_payment_information_card.rb +258 -258
  120. data/lib/cybersource_rest_client/models/request.rb +199 -0
  121. data/lib/cybersource_rest_client/models/riskv1authenticationresults_payment_information_card.rb +241 -241
  122. data/lib/cybersource_rest_client/models/riskv1authenticationresults_payment_information_tokenized_card.rb +258 -258
  123. data/lib/cybersource_rest_client/models/riskv1authentications_payment_information_tokenized_card.rb +351 -351
  124. data/lib/cybersource_rest_client/models/riskv1authenticationsetups_payment_information_card.rb +268 -268
  125. data/lib/cybersource_rest_client/models/riskv1authenticationsetups_payment_information_tokenized_card.rb +299 -299
  126. data/lib/cybersource_rest_client/models/riskv1decisions_payment_information_card.rb +259 -259
  127. data/lib/cybersource_rest_client/models/riskv1decisions_payment_information_tokenized_card.rb +259 -259
  128. data/lib/cybersource_rest_client/models/riskv1decisions_travel_information_legs.rb +252 -252
  129. data/lib/cybersource_rest_client/models/riskv1liststypeentries_payment_information_card.rb +224 -224
  130. data/lib/cybersource_rest_client/models/tms_bin_lookup_issuer_information.rb +264 -264
  131. data/lib/cybersource_rest_client/models/tms_bin_lookup_payment_account_information_card.rb +277 -277
  132. data/lib/cybersource_rest_client/models/tms_bin_lookup_payment_account_information_card_brands.rb +213 -213
  133. data/lib/cybersource_rest_client/models/tms_bin_lookup_payment_account_information_features.rb +430 -430
  134. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_brands.rb +201 -201
  135. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_card.rb +365 -365
  136. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_processor_information.rb +394 -394
  137. data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_payment_information_card.rb +218 -218
  138. data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_processor_information.rb +245 -234
  139. data/lib/cybersource_rest_client/models/update_order_request.rb +229 -229
  140. data/lib/cybersource_rest_client/models/upv1capturecontexts_capture_mandate.rb +297 -297
  141. data/lib/cybersource_rest_client/models/upv1capturecontexts_complete_mandate.rb +219 -219
  142. data/lib/cybersource_rest_client.rb +47 -24
  143. metadata +49 -26
@@ -1,394 +1,394 @@
1
- =begin
2
- #CyberSource Merged Spec
3
-
4
- #All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html
5
-
6
- OpenAPI spec version: 0.0.1
7
-
8
- Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 2.4.38
10
- =end
11
-
12
- require 'date'
13
-
14
- module CyberSource
15
- class TssV2TransactionsGet200ResponseProcessorInformation
16
- attr_accessor :processor
17
-
18
- # An array of object that contains the list of acquirer response codes & reasons if a transaction is routed to multiple acquirers.
19
- attr_accessor :multi_processor_routing
20
-
21
- # Network transaction identifier (TID). You can use this value to identify a specific transaction when you are discussing the transaction with your processor. Not all processors provide this value. Returned by the authorization service. #### PIN debit Transaction identifier generated by the processor. Returned by PIN debit credit. #### GPX Processor transaction ID. #### Cielo For Cielo, this value is the non-sequential unit (NSU) and is supported for all transactions. The value is generated by Cielo or the issuing bank. #### Comercio Latino For Comercio Latino, this value is the proof of sale or non-sequential unit (NSU) number generated by the acquirers Cielo and Rede, or the issuing bank. #### CyberSource through VisaNet and GPN For details about this value for CyberSource through VisaNet and GPN, see \"processorInformation.networkTransactionId\" in [REST API Fields](https://developer.cybersource.com/content/dam/docs/cybs/en-us/apifields/reference/all/rest/api-fields.pdf) #### Moneris This value identifies the transaction on a host system. It contains the following information: - Terminal used to process the transaction - Shift during which the transaction took place - Batch number - Transaction number within the batch You must store this value. If you give the customer a receipt, display this value on the receipt. **Example** For the value 66012345001069003: - Terminal ID = 66012345 - Shift number = 001 - Batch number = 069 - Transaction number = 003
22
- attr_accessor :transaction_id
23
-
24
- # Same value as `processorInformation.transactionId`
25
- attr_accessor :network_transaction_id
26
-
27
- # #### Ingenico ePayments Unique number that CyberSource generates to identify the transaction. You can use this value to identify transactions in the Ingenico ePayments Collections Report, which provides settlement information. Contact customer support for information about the report. ### CyberSource through VisaNet Retrieval request number.
28
- attr_accessor :retrieval_reference_number
29
-
30
- # Response ID sent from the processor.
31
- attr_accessor :response_id
32
-
33
- # Authorization code. Returned only when the processor returns this value. The length of this value depends on your processor. Returned by authorization service. #### PIN debit Authorization code that is returned by the processor. Returned by PIN debit credit. #### Elavon Encrypted Account Number Program The returned value is OFFLINE. #### TSYS Acquiring Solutions The returned value for a successful zero amount authorization is 000000.
34
- attr_accessor :approval_code
35
-
36
- # For most processors, this is the error message sent directly from the bank. Returned only when the processor returns this value. **Important** Do not use this field to evaluate the result of the authorization. #### PIN debit Response value that is returned by the processor or bank. **Important** Do not use this field to evaluate the results of the transaction request. Returned by PIN debit credit, PIN debit purchase, and PIN debit reversal. #### AIBMS If this value is `08`, you can accept the transaction if the customer provides you with identification. #### Atos This value is the response code sent from Atos and it might also include the response code from the bank. Format: `aa,bb` with the two values separated by a comma and where: - `aa` is the two-digit error message from Atos. - `bb` is the optional two-digit error message from the bank. #### Comercio Latino This value is the status code and the error or response code received from the processor separated by a colon. Format: [status code]:E[error code] or [status code]:R[response code] Example `2:R06` #### JCN Gateway Processor-defined detail error code. The associated response category code is in the `processorInformation.responseCategoryCode` field. String (3) #### paypalgateway Processor generated ID for the itemized detail.
37
- attr_accessor :response_code
38
-
39
- attr_accessor :avs
40
-
41
- attr_accessor :card_verification
42
-
43
- attr_accessor :ach_verification
44
-
45
- attr_accessor :electronic_verification_results
46
-
47
- # The event status.
48
- attr_accessor :event_status
49
-
50
- # This field is returned only for **American Express Direct** and **CyberSource through VisaNet**. Returned by authorization and incremental authorization services. #### American Express Direct System trace audit number (STAN). This value identifies the transaction and is useful when investigating a chargeback dispute. #### CyberSource through VisaNet System trace number that must be printed on the customer's receipt.
51
- attr_accessor :system_trace_audit_number
52
-
53
- # Used by Visa only and contains the response source/reason code that identifies the source of the response decision.
54
- attr_accessor :response_code_source
55
-
56
- # Payment Account Reference (PAR) is a non-financial reference assigned to each unique payment account and used to link a payment account to associated network tokens, i.e. the same PAR is returned for PAN-based and tokenized transactions, such as from digital wallets. PAR can be returned in authorisation responses for requests initiated with both real PANs and tokenized PANs. PAR can be used by merchants for fraud detection and regulatory compliance across different channels and digital wallets. PAR allows all participants in the payments chain to have a single, non-sensitive value assigned to a consumer. This value can be used in place of sensitive card holder identification fields, and transmitted across the payments ecosystem to facilitate card holder identification. **Note** On CyberSource through VisaNet, the value for this field corresponds to the following data in the TC 33 capture file: - Record: CP01 TCR8 - Position: 79-110 - Field: Payment Account Reference The TC 33 Capture file contains information about the purchases and refunds that a merchant submits to CyberSource. CyberSource through VisaNet creates the TC 33 Capture file at the end of the day and sends it to the merchant's acquirer, who uses this information to facilitate end-of-day clearing processing with payment networks.
57
- attr_accessor :payment_account_reference_number
58
-
59
- # Attribute mapping from ruby-style variable name to JSON key.
60
- def self.attribute_map
61
- {
62
- :'processor' => :'processor',
63
- :'multi_processor_routing' => :'multiProcessorRouting',
64
- :'transaction_id' => :'transactionId',
65
- :'network_transaction_id' => :'networkTransactionId',
66
- :'retrieval_reference_number' => :'retrievalReferenceNumber',
67
- :'response_id' => :'responseId',
68
- :'approval_code' => :'approvalCode',
69
- :'response_code' => :'responseCode',
70
- :'avs' => :'avs',
71
- :'card_verification' => :'cardVerification',
72
- :'ach_verification' => :'achVerification',
73
- :'electronic_verification_results' => :'electronicVerificationResults',
74
- :'event_status' => :'eventStatus',
75
- :'system_trace_audit_number' => :'systemTraceAuditNumber',
76
- :'response_code_source' => :'responseCodeSource',
77
- :'payment_account_reference_number' => :'paymentAccountReferenceNumber'
78
- }
79
- end
80
-
81
- # Attribute mapping from JSON key to ruby-style variable name.
82
- def self.json_map
83
- {
84
- :'processor' => :'processor',
85
- :'multi_processor_routing' => :'multi_processor_routing',
86
- :'transaction_id' => :'transaction_id',
87
- :'network_transaction_id' => :'network_transaction_id',
88
- :'retrieval_reference_number' => :'retrieval_reference_number',
89
- :'response_id' => :'response_id',
90
- :'approval_code' => :'approval_code',
91
- :'response_code' => :'response_code',
92
- :'avs' => :'avs',
93
- :'card_verification' => :'card_verification',
94
- :'ach_verification' => :'ach_verification',
95
- :'electronic_verification_results' => :'electronic_verification_results',
96
- :'event_status' => :'event_status',
97
- :'system_trace_audit_number' => :'system_trace_audit_number',
98
- :'response_code_source' => :'response_code_source',
99
- :'payment_account_reference_number' => :'payment_account_reference_number'
100
- }
101
- end
102
-
103
- # Attribute type mapping.
104
- def self.swagger_types
105
- {
106
- :'processor' => :'TssV2TransactionsGet200ResponseProcessorInformationProcessor',
107
- :'multi_processor_routing' => :'Array<TssV2TransactionsGet200ResponseProcessorInformationMultiProcessorRouting>',
108
- :'transaction_id' => :'String',
109
- :'network_transaction_id' => :'String',
110
- :'retrieval_reference_number' => :'String',
111
- :'response_id' => :'String',
112
- :'approval_code' => :'String',
113
- :'response_code' => :'String',
114
- :'avs' => :'PtsV2PaymentsPost201ResponseProcessorInformationAvs',
115
- :'card_verification' => :'Riskv1decisionsProcessorInformationCardVerification',
116
- :'ach_verification' => :'PtsV2PaymentsPost201ResponseProcessorInformationAchVerification',
117
- :'electronic_verification_results' => :'TssV2TransactionsGet200ResponseProcessorInformationElectronicVerificationResults',
118
- :'event_status' => :'String',
119
- :'system_trace_audit_number' => :'String',
120
- :'response_code_source' => :'String',
121
- :'payment_account_reference_number' => :'String'
122
- }
123
- end
124
-
125
- # Initializes the object
126
- # @param [Hash] attributes Model attributes in the form of hash
127
- def initialize(attributes = {})
128
- return unless attributes.is_a?(Hash)
129
-
130
- # convert string to symbol for hash key
131
- attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
132
-
133
- if attributes.has_key?(:'processor')
134
- self.processor = attributes[:'processor']
135
- end
136
-
137
- if attributes.has_key?(:'multiProcessorRouting')
138
- if (value = attributes[:'multiProcessorRouting']).is_a?(Array)
139
- self.multi_processor_routing = value
140
- end
141
- end
142
-
143
- if attributes.has_key?(:'transactionId')
144
- self.transaction_id = attributes[:'transactionId']
145
- end
146
-
147
- if attributes.has_key?(:'networkTransactionId')
148
- self.network_transaction_id = attributes[:'networkTransactionId']
149
- end
150
-
151
- if attributes.has_key?(:'retrievalReferenceNumber')
152
- self.retrieval_reference_number = attributes[:'retrievalReferenceNumber']
153
- end
154
-
155
- if attributes.has_key?(:'responseId')
156
- self.response_id = attributes[:'responseId']
157
- end
158
-
159
- if attributes.has_key?(:'approvalCode')
160
- self.approval_code = attributes[:'approvalCode']
161
- end
162
-
163
- if attributes.has_key?(:'responseCode')
164
- self.response_code = attributes[:'responseCode']
165
- end
166
-
167
- if attributes.has_key?(:'avs')
168
- self.avs = attributes[:'avs']
169
- end
170
-
171
- if attributes.has_key?(:'cardVerification')
172
- self.card_verification = attributes[:'cardVerification']
173
- end
174
-
175
- if attributes.has_key?(:'achVerification')
176
- self.ach_verification = attributes[:'achVerification']
177
- end
178
-
179
- if attributes.has_key?(:'electronicVerificationResults')
180
- self.electronic_verification_results = attributes[:'electronicVerificationResults']
181
- end
182
-
183
- if attributes.has_key?(:'eventStatus')
184
- self.event_status = attributes[:'eventStatus']
185
- end
186
-
187
- if attributes.has_key?(:'systemTraceAuditNumber')
188
- self.system_trace_audit_number = attributes[:'systemTraceAuditNumber']
189
- end
190
-
191
- if attributes.has_key?(:'responseCodeSource')
192
- self.response_code_source = attributes[:'responseCodeSource']
193
- end
194
-
195
- if attributes.has_key?(:'paymentAccountReferenceNumber')
196
- self.payment_account_reference_number = attributes[:'paymentAccountReferenceNumber']
197
- end
198
- end
199
-
200
- # Show invalid properties with the reasons. Usually used together with valid?
201
- # @return Array for valid properties with the reasons
202
- def list_invalid_properties
203
- invalid_properties = Array.new
204
- invalid_properties
205
- end
206
-
207
- # Check to see if the all the properties in the model are valid
208
- # @return true if the model is valid
209
- def valid?
210
- true
211
- end
212
-
213
- # Custom attribute writer method with validation
214
- # @param [Object] transaction_id Value to be assigned
215
- def transaction_id=(transaction_id)
216
- @transaction_id = transaction_id
217
- end
218
-
219
- # Custom attribute writer method with validation
220
- # @param [Object] retrieval_reference_number Value to be assigned
221
- def retrieval_reference_number=(retrieval_reference_number)
222
- @retrieval_reference_number = retrieval_reference_number
223
- end
224
-
225
- # Custom attribute writer method with validation
226
- # @param [Object] approval_code Value to be assigned
227
- def approval_code=(approval_code)
228
- @approval_code = approval_code
229
- end
230
-
231
- # Custom attribute writer method with validation
232
- # @param [Object] response_code Value to be assigned
233
- def response_code=(response_code)
234
- @response_code = response_code
235
- end
236
-
237
- # Custom attribute writer method with validation
238
- # @param [Object] system_trace_audit_number Value to be assigned
239
- def system_trace_audit_number=(system_trace_audit_number)
240
- @system_trace_audit_number = system_trace_audit_number
241
- end
242
-
243
- # Custom attribute writer method with validation
244
- # @param [Object] response_code_source Value to be assigned
245
- def response_code_source=(response_code_source)
246
- @response_code_source = response_code_source
247
- end
248
-
249
- # Custom attribute writer method with validation
250
- # @param [Object] payment_account_reference_number Value to be assigned
251
- def payment_account_reference_number=(payment_account_reference_number)
252
- @payment_account_reference_number = payment_account_reference_number
253
- end
254
-
255
- # Checks equality by comparing each attribute.
256
- # @param [Object] Object to be compared
257
- def ==(o)
258
- return true if self.equal?(o)
259
- self.class == o.class &&
260
- processor == o.processor &&
261
- multi_processor_routing == o.multi_processor_routing &&
262
- transaction_id == o.transaction_id &&
263
- network_transaction_id == o.network_transaction_id &&
264
- retrieval_reference_number == o.retrieval_reference_number &&
265
- response_id == o.response_id &&
266
- approval_code == o.approval_code &&
267
- response_code == o.response_code &&
268
- avs == o.avs &&
269
- card_verification == o.card_verification &&
270
- ach_verification == o.ach_verification &&
271
- electronic_verification_results == o.electronic_verification_results &&
272
- event_status == o.event_status &&
273
- system_trace_audit_number == o.system_trace_audit_number &&
274
- response_code_source == o.response_code_source &&
275
- payment_account_reference_number == o.payment_account_reference_number
276
- end
277
-
278
- # @see the `==` method
279
- # @param [Object] Object to be compared
280
- def eql?(o)
281
- self == o
282
- end
283
-
284
- # Calculates hash code according to all attributes.
285
- # @return [Fixnum] Hash code
286
- def hash
287
- [processor, multi_processor_routing, transaction_id, network_transaction_id, retrieval_reference_number, response_id, approval_code, response_code, avs, card_verification, ach_verification, electronic_verification_results, event_status, system_trace_audit_number, response_code_source, payment_account_reference_number].hash
288
- end
289
-
290
- # Builds the object from hash
291
- # @param [Hash] attributes Model attributes in the form of hash
292
- # @return [Object] Returns the model itself
293
- def build_from_hash(attributes)
294
- return nil unless attributes.is_a?(Hash)
295
- self.class.swagger_types.each_pair do |key, type|
296
- if type =~ /\AArray<(.*)>/i
297
- # check to ensure the input is an array given that the the attribute
298
- # is documented as an array but the input is not
299
- if attributes[self.class.attribute_map[key]].is_a?(Array)
300
- self.send("#{self.class.json_map[key]}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
301
- end
302
- elsif !attributes[self.class.attribute_map[key]].nil?
303
- self.send("#{self.class.json_map[key]}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
304
- end # or else data not found in attributes(hash), not an issue as the data can be optional
305
- end
306
-
307
- self
308
- end
309
-
310
- # Deserializes the data based on type
311
- # @param string type Data type
312
- # @param string value Value to be deserialized
313
- # @return [Object] Deserialized data
314
- def _deserialize(type, value)
315
- case type.to_sym
316
- when :DateTime
317
- DateTime.parse(value)
318
- when :Date
319
- Date.parse(value)
320
- when :String
321
- value.to_s
322
- when :Integer
323
- value.to_i
324
- when :Float
325
- value.to_f
326
- when :BOOLEAN
327
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
328
- true
329
- else
330
- false
331
- end
332
- when :Object
333
- # generic object (usually a Hash), return directly
334
- value
335
- when /\AArray<(?<inner_type>.+)>\z/
336
- inner_type = Regexp.last_match[:inner_type]
337
- value.map { |v| _deserialize(inner_type, v) }
338
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
339
- k_type = Regexp.last_match[:k_type]
340
- v_type = Regexp.last_match[:v_type]
341
- {}.tap do |hash|
342
- value.each do |k, v|
343
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
344
- end
345
- end
346
- else # model
347
- temp_model = CyberSource.const_get(type).new
348
- temp_model.build_from_hash(value)
349
- end
350
- end
351
-
352
- # Returns the string representation of the object
353
- # @return [String] String presentation of the object
354
- def to_s
355
- to_hash.to_s
356
- end
357
-
358
- # to_body is an alias to to_hash (backward compatibility)
359
- # @return [Hash] Returns the object in the form of hash
360
- def to_body
361
- to_hash
362
- end
363
-
364
- # Returns the object in the form of hash
365
- # @return [Hash] Returns the object in the form of hash
366
- def to_hash
367
- hash = {}
368
- self.class.attribute_map.each_pair do |attr, param|
369
- value = self.send(attr)
370
- next if value.nil?
371
- hash[param] = _to_hash(value)
372
- end
373
- hash
374
- end
375
-
376
- # Outputs non-array value in the form of hash
377
- # For object, use to_hash. Otherwise, just return the value
378
- # @param [Object] value Any valid value
379
- # @return [Hash] Returns the value in the form of hash
380
- def _to_hash(value)
381
- if value.is_a?(Array)
382
- value.compact.map { |v| _to_hash(v) }
383
- elsif value.is_a?(Hash)
384
- {}.tap do |hash|
385
- value.each { |k, v| hash[k] = _to_hash(v) }
386
- end
387
- elsif value.respond_to? :to_hash
388
- value.to_hash
389
- else
390
- value
391
- end
392
- end
393
- end
394
- end
1
+ =begin
2
+ #CyberSource Merged Spec
3
+
4
+ #All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html
5
+
6
+ OpenAPI spec version: 0.0.1
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.4.38
10
+ =end
11
+
12
+ require 'date'
13
+
14
+ module CyberSource
15
+ class TssV2TransactionsGet200ResponseProcessorInformation
16
+ attr_accessor :processor
17
+
18
+ # An array of object that contains the list of acquirer response codes & reasons if a transaction is routed to multiple acquirers.
19
+ attr_accessor :multi_processor_routing
20
+
21
+ # Network transaction identifier (TID). You can use this value to identify a specific transaction when you are discussing the transaction with your processor. Not all processors provide this value. Returned by the authorization service. #### PIN debit Transaction identifier generated by the processor. Returned by PIN debit credit. #### GPX Processor transaction ID. #### Cielo For Cielo, this value is the non-sequential unit (NSU) and is supported for all transactions. The value is generated by Cielo or the issuing bank. #### Comercio Latino For Comercio Latino, this value is the proof of sale or non-sequential unit (NSU) number generated by the acquirers Cielo and Rede, or the issuing bank. #### CyberSource through VisaNet and GPN For details about this value for CyberSource through VisaNet and GPN, see \"processorInformation.networkTransactionId\" in [REST API Fields](https://developer.cybersource.com/content/dam/docs/cybs/en-us/apifields/reference/all/rest/api-fields.pdf) #### Moneris This value identifies the transaction on a host system. It contains the following information: - Terminal used to process the transaction - Shift during which the transaction took place - Batch number - Transaction number within the batch You must store this value. If you give the customer a receipt, display this value on the receipt. **Example** For the value 66012345001069003: - Terminal ID = 66012345 - Shift number = 001 - Batch number = 069 - Transaction number = 003
22
+ attr_accessor :transaction_id
23
+
24
+ # Same value as `processorInformation.transactionId`
25
+ attr_accessor :network_transaction_id
26
+
27
+ # #### Ingenico ePayments Unique number that CyberSource generates to identify the transaction. You can use this value to identify transactions in the Ingenico ePayments Collections Report, which provides settlement information. Contact customer support for information about the report. ### CyberSource through VisaNet Retrieval request number.
28
+ attr_accessor :retrieval_reference_number
29
+
30
+ # Response ID sent from the processor.
31
+ attr_accessor :response_id
32
+
33
+ # Authorization code. Returned only when the processor returns this value. The length of this value depends on your processor. Returned by authorization service. #### PIN debit Authorization code that is returned by the processor. Returned by PIN debit credit. #### Elavon Encrypted Account Number Program The returned value is OFFLINE. #### TSYS Acquiring Solutions The returned value for a successful zero amount authorization is 000000.
34
+ attr_accessor :approval_code
35
+
36
+ # For most processors, this is the error message sent directly from the bank. Returned only when the processor returns this value. **Important** Do not use this field to evaluate the result of the authorization. #### PIN debit Response value that is returned by the processor or bank. **Important** Do not use this field to evaluate the results of the transaction request. Returned by PIN debit credit, PIN debit purchase, and PIN debit reversal. #### AIBMS If this value is `08`, you can accept the transaction if the customer provides you with identification. #### Atos This value is the response code sent from Atos and it might also include the response code from the bank. Format: `aa,bb` with the two values separated by a comma and where: - `aa` is the two-digit error message from Atos. - `bb` is the optional two-digit error message from the bank. #### Comercio Latino This value is the status code and the error or response code received from the processor separated by a colon. Format: [status code]:E[error code] or [status code]:R[response code] Example `2:R06` #### JCN Gateway Processor-defined detail error code. The associated response category code is in the `processorInformation.responseCategoryCode` field. String (3) #### paypalgateway Processor generated ID for the itemized detail.
37
+ attr_accessor :response_code
38
+
39
+ attr_accessor :avs
40
+
41
+ attr_accessor :card_verification
42
+
43
+ attr_accessor :ach_verification
44
+
45
+ attr_accessor :electronic_verification_results
46
+
47
+ # The event status.
48
+ attr_accessor :event_status
49
+
50
+ # This field is returned only for **American Express Direct** and **CyberSource through VisaNet**. Returned by authorization and incremental authorization services. #### American Express Direct System trace audit number (STAN). This value identifies the transaction and is useful when investigating a chargeback dispute. #### CyberSource through VisaNet System trace number that must be printed on the customer's receipt.
51
+ attr_accessor :system_trace_audit_number
52
+
53
+ # Used by Visa only and contains the response source/reason code that identifies the source of the response decision.
54
+ attr_accessor :response_code_source
55
+
56
+ # Payment Account Reference (PAR) is a non-financial reference assigned to each unique payment account and used to link a payment account to associated network tokens, i.e. the same PAR is returned for PAN-based and tokenized transactions, such as from digital wallets. PAR can be returned in authorisation responses for requests initiated with both real PANs and tokenized PANs. PAR can be used by merchants for fraud detection and regulatory compliance across different channels and digital wallets. PAR allows all participants in the payments chain to have a single, non-sensitive value assigned to a consumer. This value can be used in place of sensitive card holder identification fields, and transmitted across the payments ecosystem to facilitate card holder identification. **Note** On CyberSource through VisaNet, the value for this field corresponds to the following data in the TC 33 capture file: - Record: CP01 TCR8 - Position: 79-110 - Field: Payment Account Reference The TC 33 Capture file contains information about the purchases and refunds that a merchant submits to CyberSource. CyberSource through VisaNet creates the TC 33 Capture file at the end of the day and sends it to the merchant's acquirer, who uses this information to facilitate end-of-day clearing processing with payment networks.
57
+ attr_accessor :payment_account_reference_number
58
+
59
+ # Attribute mapping from ruby-style variable name to JSON key.
60
+ def self.attribute_map
61
+ {
62
+ :'processor' => :'processor',
63
+ :'multi_processor_routing' => :'multiProcessorRouting',
64
+ :'transaction_id' => :'transactionId',
65
+ :'network_transaction_id' => :'networkTransactionId',
66
+ :'retrieval_reference_number' => :'retrievalReferenceNumber',
67
+ :'response_id' => :'responseId',
68
+ :'approval_code' => :'approvalCode',
69
+ :'response_code' => :'responseCode',
70
+ :'avs' => :'avs',
71
+ :'card_verification' => :'cardVerification',
72
+ :'ach_verification' => :'achVerification',
73
+ :'electronic_verification_results' => :'electronicVerificationResults',
74
+ :'event_status' => :'eventStatus',
75
+ :'system_trace_audit_number' => :'systemTraceAuditNumber',
76
+ :'response_code_source' => :'responseCodeSource',
77
+ :'payment_account_reference_number' => :'paymentAccountReferenceNumber'
78
+ }
79
+ end
80
+
81
+ # Attribute mapping from JSON key to ruby-style variable name.
82
+ def self.json_map
83
+ {
84
+ :'processor' => :'processor',
85
+ :'multi_processor_routing' => :'multi_processor_routing',
86
+ :'transaction_id' => :'transaction_id',
87
+ :'network_transaction_id' => :'network_transaction_id',
88
+ :'retrieval_reference_number' => :'retrieval_reference_number',
89
+ :'response_id' => :'response_id',
90
+ :'approval_code' => :'approval_code',
91
+ :'response_code' => :'response_code',
92
+ :'avs' => :'avs',
93
+ :'card_verification' => :'card_verification',
94
+ :'ach_verification' => :'ach_verification',
95
+ :'electronic_verification_results' => :'electronic_verification_results',
96
+ :'event_status' => :'event_status',
97
+ :'system_trace_audit_number' => :'system_trace_audit_number',
98
+ :'response_code_source' => :'response_code_source',
99
+ :'payment_account_reference_number' => :'payment_account_reference_number'
100
+ }
101
+ end
102
+
103
+ # Attribute type mapping.
104
+ def self.swagger_types
105
+ {
106
+ :'processor' => :'TssV2TransactionsGet200ResponseProcessorInformationProcessor',
107
+ :'multi_processor_routing' => :'Array<TssV2TransactionsGet200ResponseProcessorInformationMultiProcessorRouting>',
108
+ :'transaction_id' => :'String',
109
+ :'network_transaction_id' => :'String',
110
+ :'retrieval_reference_number' => :'String',
111
+ :'response_id' => :'String',
112
+ :'approval_code' => :'String',
113
+ :'response_code' => :'String',
114
+ :'avs' => :'PtsV2PaymentsPost201ResponseProcessorInformationAvs',
115
+ :'card_verification' => :'Riskv1decisionsProcessorInformationCardVerification',
116
+ :'ach_verification' => :'PtsV2PaymentsPost201ResponseProcessorInformationAchVerification',
117
+ :'electronic_verification_results' => :'TssV2TransactionsGet200ResponseProcessorInformationElectronicVerificationResults',
118
+ :'event_status' => :'String',
119
+ :'system_trace_audit_number' => :'String',
120
+ :'response_code_source' => :'String',
121
+ :'payment_account_reference_number' => :'String'
122
+ }
123
+ end
124
+
125
+ # Initializes the object
126
+ # @param [Hash] attributes Model attributes in the form of hash
127
+ def initialize(attributes = {})
128
+ return unless attributes.is_a?(Hash)
129
+
130
+ # convert string to symbol for hash key
131
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
132
+
133
+ if attributes.has_key?(:'processor')
134
+ self.processor = attributes[:'processor']
135
+ end
136
+
137
+ if attributes.has_key?(:'multiProcessorRouting')
138
+ if (value = attributes[:'multiProcessorRouting']).is_a?(Array)
139
+ self.multi_processor_routing = value
140
+ end
141
+ end
142
+
143
+ if attributes.has_key?(:'transactionId')
144
+ self.transaction_id = attributes[:'transactionId']
145
+ end
146
+
147
+ if attributes.has_key?(:'networkTransactionId')
148
+ self.network_transaction_id = attributes[:'networkTransactionId']
149
+ end
150
+
151
+ if attributes.has_key?(:'retrievalReferenceNumber')
152
+ self.retrieval_reference_number = attributes[:'retrievalReferenceNumber']
153
+ end
154
+
155
+ if attributes.has_key?(:'responseId')
156
+ self.response_id = attributes[:'responseId']
157
+ end
158
+
159
+ if attributes.has_key?(:'approvalCode')
160
+ self.approval_code = attributes[:'approvalCode']
161
+ end
162
+
163
+ if attributes.has_key?(:'responseCode')
164
+ self.response_code = attributes[:'responseCode']
165
+ end
166
+
167
+ if attributes.has_key?(:'avs')
168
+ self.avs = attributes[:'avs']
169
+ end
170
+
171
+ if attributes.has_key?(:'cardVerification')
172
+ self.card_verification = attributes[:'cardVerification']
173
+ end
174
+
175
+ if attributes.has_key?(:'achVerification')
176
+ self.ach_verification = attributes[:'achVerification']
177
+ end
178
+
179
+ if attributes.has_key?(:'electronicVerificationResults')
180
+ self.electronic_verification_results = attributes[:'electronicVerificationResults']
181
+ end
182
+
183
+ if attributes.has_key?(:'eventStatus')
184
+ self.event_status = attributes[:'eventStatus']
185
+ end
186
+
187
+ if attributes.has_key?(:'systemTraceAuditNumber')
188
+ self.system_trace_audit_number = attributes[:'systemTraceAuditNumber']
189
+ end
190
+
191
+ if attributes.has_key?(:'responseCodeSource')
192
+ self.response_code_source = attributes[:'responseCodeSource']
193
+ end
194
+
195
+ if attributes.has_key?(:'paymentAccountReferenceNumber')
196
+ self.payment_account_reference_number = attributes[:'paymentAccountReferenceNumber']
197
+ end
198
+ end
199
+
200
+ # Show invalid properties with the reasons. Usually used together with valid?
201
+ # @return Array for valid properties with the reasons
202
+ def list_invalid_properties
203
+ invalid_properties = Array.new
204
+ invalid_properties
205
+ end
206
+
207
+ # Check to see if the all the properties in the model are valid
208
+ # @return true if the model is valid
209
+ def valid?
210
+ true
211
+ end
212
+
213
+ # Custom attribute writer method with validation
214
+ # @param [Object] transaction_id Value to be assigned
215
+ def transaction_id=(transaction_id)
216
+ @transaction_id = transaction_id
217
+ end
218
+
219
+ # Custom attribute writer method with validation
220
+ # @param [Object] retrieval_reference_number Value to be assigned
221
+ def retrieval_reference_number=(retrieval_reference_number)
222
+ @retrieval_reference_number = retrieval_reference_number
223
+ end
224
+
225
+ # Custom attribute writer method with validation
226
+ # @param [Object] approval_code Value to be assigned
227
+ def approval_code=(approval_code)
228
+ @approval_code = approval_code
229
+ end
230
+
231
+ # Custom attribute writer method with validation
232
+ # @param [Object] response_code Value to be assigned
233
+ def response_code=(response_code)
234
+ @response_code = response_code
235
+ end
236
+
237
+ # Custom attribute writer method with validation
238
+ # @param [Object] system_trace_audit_number Value to be assigned
239
+ def system_trace_audit_number=(system_trace_audit_number)
240
+ @system_trace_audit_number = system_trace_audit_number
241
+ end
242
+
243
+ # Custom attribute writer method with validation
244
+ # @param [Object] response_code_source Value to be assigned
245
+ def response_code_source=(response_code_source)
246
+ @response_code_source = response_code_source
247
+ end
248
+
249
+ # Custom attribute writer method with validation
250
+ # @param [Object] payment_account_reference_number Value to be assigned
251
+ def payment_account_reference_number=(payment_account_reference_number)
252
+ @payment_account_reference_number = payment_account_reference_number
253
+ end
254
+
255
+ # Checks equality by comparing each attribute.
256
+ # @param [Object] Object to be compared
257
+ def ==(o)
258
+ return true if self.equal?(o)
259
+ self.class == o.class &&
260
+ processor == o.processor &&
261
+ multi_processor_routing == o.multi_processor_routing &&
262
+ transaction_id == o.transaction_id &&
263
+ network_transaction_id == o.network_transaction_id &&
264
+ retrieval_reference_number == o.retrieval_reference_number &&
265
+ response_id == o.response_id &&
266
+ approval_code == o.approval_code &&
267
+ response_code == o.response_code &&
268
+ avs == o.avs &&
269
+ card_verification == o.card_verification &&
270
+ ach_verification == o.ach_verification &&
271
+ electronic_verification_results == o.electronic_verification_results &&
272
+ event_status == o.event_status &&
273
+ system_trace_audit_number == o.system_trace_audit_number &&
274
+ response_code_source == o.response_code_source &&
275
+ payment_account_reference_number == o.payment_account_reference_number
276
+ end
277
+
278
+ # @see the `==` method
279
+ # @param [Object] Object to be compared
280
+ def eql?(o)
281
+ self == o
282
+ end
283
+
284
+ # Calculates hash code according to all attributes.
285
+ # @return [Fixnum] Hash code
286
+ def hash
287
+ [processor, multi_processor_routing, transaction_id, network_transaction_id, retrieval_reference_number, response_id, approval_code, response_code, avs, card_verification, ach_verification, electronic_verification_results, event_status, system_trace_audit_number, response_code_source, payment_account_reference_number].hash
288
+ end
289
+
290
+ # Builds the object from hash
291
+ # @param [Hash] attributes Model attributes in the form of hash
292
+ # @return [Object] Returns the model itself
293
+ def build_from_hash(attributes)
294
+ return nil unless attributes.is_a?(Hash)
295
+ self.class.swagger_types.each_pair do |key, type|
296
+ if type =~ /\AArray<(.*)>/i
297
+ # check to ensure the input is an array given that the the attribute
298
+ # is documented as an array but the input is not
299
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
300
+ self.send("#{self.class.json_map[key]}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
301
+ end
302
+ elsif !attributes[self.class.attribute_map[key]].nil?
303
+ self.send("#{self.class.json_map[key]}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
304
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
305
+ end
306
+
307
+ self
308
+ end
309
+
310
+ # Deserializes the data based on type
311
+ # @param string type Data type
312
+ # @param string value Value to be deserialized
313
+ # @return [Object] Deserialized data
314
+ def _deserialize(type, value)
315
+ case type.to_sym
316
+ when :DateTime
317
+ DateTime.parse(value)
318
+ when :Date
319
+ Date.parse(value)
320
+ when :String
321
+ value.to_s
322
+ when :Integer
323
+ value.to_i
324
+ when :Float
325
+ value.to_f
326
+ when :BOOLEAN
327
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
328
+ true
329
+ else
330
+ false
331
+ end
332
+ when :Object
333
+ # generic object (usually a Hash), return directly
334
+ value
335
+ when /\AArray<(?<inner_type>.+)>\z/
336
+ inner_type = Regexp.last_match[:inner_type]
337
+ value.map { |v| _deserialize(inner_type, v) }
338
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
339
+ k_type = Regexp.last_match[:k_type]
340
+ v_type = Regexp.last_match[:v_type]
341
+ {}.tap do |hash|
342
+ value.each do |k, v|
343
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
344
+ end
345
+ end
346
+ else # model
347
+ temp_model = CyberSource.const_get(type).new
348
+ temp_model.build_from_hash(value)
349
+ end
350
+ end
351
+
352
+ # Returns the string representation of the object
353
+ # @return [String] String presentation of the object
354
+ def to_s
355
+ to_hash.to_s
356
+ end
357
+
358
+ # to_body is an alias to to_hash (backward compatibility)
359
+ # @return [Hash] Returns the object in the form of hash
360
+ def to_body
361
+ to_hash
362
+ end
363
+
364
+ # Returns the object in the form of hash
365
+ # @return [Hash] Returns the object in the form of hash
366
+ def to_hash
367
+ hash = {}
368
+ self.class.attribute_map.each_pair do |attr, param|
369
+ value = self.send(attr)
370
+ next if value.nil?
371
+ hash[param] = _to_hash(value)
372
+ end
373
+ hash
374
+ end
375
+
376
+ # Outputs non-array value in the form of hash
377
+ # For object, use to_hash. Otherwise, just return the value
378
+ # @param [Object] value Any valid value
379
+ # @return [Hash] Returns the value in the form of hash
380
+ def _to_hash(value)
381
+ if value.is_a?(Array)
382
+ value.compact.map { |v| _to_hash(v) }
383
+ elsif value.is_a?(Hash)
384
+ {}.tap do |hash|
385
+ value.each { |k, v| hash[k] = _to_hash(v) }
386
+ end
387
+ elsif value.respond_to? :to_hash
388
+ value.to_hash
389
+ else
390
+ value
391
+ end
392
+ end
393
+ end
394
+ end