cybersource_rest_client 0.0.68 → 0.0.69

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 (248) hide show
  1. checksums.yaml +4 -4
  2. data/lib/cybersource_rest_client/api/instrument_identifier_api.rb +12 -0
  3. data/lib/cybersource_rest_client/api/payment_instrument_api.rb +9 -0
  4. data/lib/cybersource_rest_client/models/boardingv1registrations_organization_information.rb +314 -314
  5. data/lib/cybersource_rest_client/models/boardingv1registrations_organization_information_business_information.rb +437 -437
  6. data/lib/cybersource_rest_client/models/boardingv1registrations_organization_information_kyc.rb +337 -337
  7. data/lib/cybersource_rest_client/models/boardingv1registrations_organization_information_kyc_deposit_bank_account.rb +297 -297
  8. data/lib/cybersource_rest_client/models/boardingv1registrations_registration_information.rb +271 -271
  9. data/lib/cybersource_rest_client/models/card_processing_config_common.rb +433 -433
  10. data/lib/cybersource_rest_client/models/card_processing_config_common_acquirer.rb +257 -257
  11. data/lib/cybersource_rest_client/models/card_processing_config_common_merchant_descriptor_information.rb +279 -279
  12. data/lib/cybersource_rest_client/models/card_processing_config_common_processors.rb +719 -719
  13. data/lib/cybersource_rest_client/models/commerce_solutions_products_token_management_configuration_information_configurations.rb +200 -200
  14. data/lib/cybersource_rest_client/models/commerce_solutions_products_token_management_configuration_information_configurations_vault.rb +251 -251
  15. data/lib/cybersource_rest_client/models/create_order_request.rb +229 -229
  16. data/lib/cybersource_rest_client/models/create_payment_request.rb +11 -1
  17. data/lib/cybersource_rest_client/models/e_check_config_common_internal_only_processors.rb +267 -267
  18. data/lib/cybersource_rest_client/models/e_check_config_common_processors.rb +273 -273
  19. data/lib/cybersource_rest_client/models/e_check_config_features_account_validation_service_internal_only_processors.rb +193 -193
  20. data/lib/cybersource_rest_client/models/e_check_config_features_account_validation_service_processors.rb +285 -285
  21. data/lib/cybersource_rest_client/models/flexv2sessions_fields.rb +199 -199
  22. data/lib/cybersource_rest_client/models/flexv2sessions_fields_order_information.rb +209 -209
  23. data/lib/cybersource_rest_client/models/flexv2sessions_fields_order_information_amount_details.rb +199 -199
  24. data/lib/cybersource_rest_client/models/flexv2sessions_fields_order_information_amount_details_total_amount.rb +189 -189
  25. data/lib/cybersource_rest_client/models/flexv2sessions_fields_order_information_bill_to.rb +309 -309
  26. data/lib/cybersource_rest_client/models/flexv2sessions_fields_order_information_ship_to.rb +289 -289
  27. data/lib/cybersource_rest_client/models/flexv2sessions_fields_payment_information.rb +189 -189
  28. data/lib/cybersource_rest_client/models/flexv2sessions_fields_payment_information_card.rb +229 -229
  29. data/lib/cybersource_rest_client/models/generate_capture_context_request.rb +230 -227
  30. data/lib/cybersource_rest_client/models/generate_flex_api_capture_context_request.rb +189 -189
  31. data/lib/cybersource_rest_client/models/generate_unified_checkout_capture_context_request.rb +283 -293
  32. data/lib/cybersource_rest_client/models/inline_response_200_1_integration_information_tenant_configurations.rb +263 -263
  33. data/lib/cybersource_rest_client/models/inline_response_201_1.rb +2 -2
  34. data/lib/cybersource_rest_client/models/inline_response_201_2.rb +281 -281
  35. data/lib/cybersource_rest_client/models/inline_response_201_2_integration_information_tenant_configurations.rb +253 -253
  36. data/lib/cybersource_rest_client/models/inline_response_201_2_registration_information.rb +222 -222
  37. data/lib/cybersource_rest_client/models/inline_response_201_2_setups_payments_card_processing_configuration_status.rb +255 -255
  38. data/lib/cybersource_rest_client/models/inline_response_201_2_setups_payments_card_processing_subscription_status.rb +234 -234
  39. data/lib/cybersource_rest_client/models/inline_response_400_1.rb +242 -242
  40. data/lib/cybersource_rest_client/models/inline_response_400_1_details.rb +199 -199
  41. data/lib/cybersource_rest_client/models/inline_response_400_2.rb +235 -235
  42. data/lib/cybersource_rest_client/models/inline_response_400_3.rb +235 -235
  43. data/lib/cybersource_rest_client/models/inline_response_400_4.rb +235 -235
  44. data/lib/cybersource_rest_client/models/inline_response_400_5.rb +258 -258
  45. data/lib/cybersource_rest_client/models/inline_response_400_5_fields.rb +213 -213
  46. data/lib/cybersource_rest_client/models/inline_response_400_6.rb +235 -235
  47. data/lib/cybersource_rest_client/models/inline_response_400_6_details.rb +201 -201
  48. data/lib/cybersource_rest_client/models/inline_response_404_1.rb +235 -235
  49. data/lib/cybersource_rest_client/models/inline_response_422_1.rb +235 -235
  50. data/lib/cybersource_rest_client/models/inline_response_500_2.rb +223 -223
  51. data/lib/cybersource_rest_client/models/oct_create_payment_request.rb +15 -5
  52. data/lib/cybersource_rest_client/models/patch_instrument_identifier_request.rb +323 -313
  53. data/lib/cybersource_rest_client/models/payments_products_card_present_connect_subscription_information.rb +202 -202
  54. data/lib/cybersource_rest_client/models/payments_products_card_processing_subscription_information.rb +215 -215
  55. data/lib/cybersource_rest_client/models/payments_products_differential_fee_subscription_information.rb +212 -212
  56. data/lib/cybersource_rest_client/models/payments_products_digital_payments_subscription_information.rb +215 -215
  57. data/lib/cybersource_rest_client/models/payments_products_e_check_subscription_information.rb +215 -215
  58. data/lib/cybersource_rest_client/models/payments_products_payer_authentication_subscription_information.rb +202 -202
  59. data/lib/cybersource_rest_client/models/payments_products_service_fee_configuration_information_configurations_payment_information.rb +234 -234
  60. data/lib/cybersource_rest_client/models/post_instrument_identifier_enrollment_request.rb +323 -313
  61. data/lib/cybersource_rest_client/models/post_instrument_identifier_request.rb +323 -313
  62. data/lib/cybersource_rest_client/models/post_payment_credentials_request.rb +1 -1
  63. data/lib/cybersource_rest_client/models/pts_v2_create_order_post201_response.rb +269 -269
  64. data/lib/cybersource_rest_client/models/pts_v2_create_order_post201_response_buyer_information.rb +196 -196
  65. data/lib/cybersource_rest_client/models/pts_v2_create_order_post201_response_processor_information.rb +224 -224
  66. data/lib/cybersource_rest_client/models/pts_v2_create_order_post400_response.rb +224 -224
  67. data/lib/cybersource_rest_client/models/pts_v2_credits_post201_response_1_processor_information.rb +213 -213
  68. data/lib/cybersource_rest_client/models/pts_v2_incremental_authorization_patch201_response_processor_information.rb +312 -295
  69. data/lib/cybersource_rest_client/models/pts_v2_payments_captures_post201_response.rb +305 -305
  70. data/lib/cybersource_rest_client/models/pts_v2_payments_captures_post201_response_embedded_actions.rb +189 -189
  71. data/lib/cybersource_rest_client/models/pts_v2_payments_captures_post201_response_embedded_actions_ap_capture.rb +190 -190
  72. data/lib/cybersource_rest_client/models/pts_v2_payments_captures_post201_response_processor_information.rb +263 -263
  73. data/lib/cybersource_rest_client/models/pts_v2_payments_order_post201_response_buyer_information_personal_identification.rb +207 -207
  74. data/lib/cybersource_rest_client/models/pts_v2_payments_order_post201_response_payment_information_e_wallet.rb +241 -241
  75. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_consumer_authentication_information.rb +18 -1
  76. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_embedded_actions.rb +25 -5
  77. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_embedded_actions_token_create.rb +212 -0
  78. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_embedded_actions_token_update.rb +212 -0
  79. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information_account_features.rb +22 -5
  80. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information_tokenized_card.rb +309 -309
  81. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processing_information.rb +247 -227
  82. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processing_information_authorization_options.rb +196 -0
  83. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processing_information_capture_options.rb +196 -196
  84. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processing_information_purchase_options.rb +247 -0
  85. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information.rb +831 -814
  86. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information_seller_protection.rb +237 -237
  87. data/lib/cybersource_rest_client/models/pts_v2_payments_refund_post201_response_processor_information.rb +313 -313
  88. data/lib/cybersource_rest_client/models/pts_v2_payments_reversals_post201_response.rb +305 -305
  89. data/lib/cybersource_rest_client/models/pts_v2_payments_reversals_post201_response_processor_information.rb +320 -309
  90. data/lib/cybersource_rest_client/models/pts_v2_payments_voids_post201_response_processor_information.rb +224 -224
  91. data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response.rb +15 -5
  92. data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_processing_information.rb +189 -0
  93. data/lib/cybersource_rest_client/models/pts_v2_update_order_patch201_response.rb +200 -200
  94. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_merchant_information.rb +205 -205
  95. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_order_information_amount_details.rb +302 -302
  96. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_point_of_service_information.rb +189 -189
  97. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_point_of_service_information_emv.rb +196 -196
  98. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_processing_information.rb +318 -318
  99. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_processing_information_payouts_options.rb +282 -282
  100. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_recipient_information.rb +446 -446
  101. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_recipient_information_payment_information_card.rb +321 -321
  102. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_recipient_information_personal_identification.rb +256 -256
  103. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_sender_information.rb +533 -533
  104. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_sender_information_account.rb +222 -222
  105. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_sender_information_payment_information_card.rb +317 -317
  106. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_sender_information_personal_identification.rb +256 -256
  107. data/lib/cybersource_rest_client/models/ptsv2billingagreements_installment_information.rb +1 -1
  108. data/lib/cybersource_rest_client/models/ptsv2intents_client_reference_information.rb +196 -196
  109. data/lib/cybersource_rest_client/models/ptsv2intents_merchant_information.rb +223 -223
  110. data/lib/cybersource_rest_client/models/ptsv2intents_merchant_information_merchant_descriptor.rb +207 -207
  111. data/lib/cybersource_rest_client/models/ptsv2intents_order_information.rb +231 -231
  112. data/lib/cybersource_rest_client/models/ptsv2intents_order_information_amount_details.rb +315 -315
  113. data/lib/cybersource_rest_client/models/ptsv2intents_order_information_bill_to.rb +196 -196
  114. data/lib/cybersource_rest_client/models/ptsv2intents_order_information_invoice_details.rb +190 -190
  115. data/lib/cybersource_rest_client/models/ptsv2intents_order_information_line_items.rb +309 -309
  116. data/lib/cybersource_rest_client/models/ptsv2intents_order_information_ship_to.rb +332 -332
  117. data/lib/cybersource_rest_client/models/ptsv2intents_payment_information.rb +189 -189
  118. data/lib/cybersource_rest_client/models/ptsv2intents_payment_information_payment_type.rb +200 -200
  119. data/lib/cybersource_rest_client/models/ptsv2intents_payment_information_payment_type_method.rb +190 -190
  120. data/lib/cybersource_rest_client/models/ptsv2intents_processing_information.rb +219 -219
  121. data/lib/cybersource_rest_client/models/ptsv2intents_processing_information_authorization_options.rb +196 -196
  122. data/lib/cybersource_rest_client/models/ptsv2intentsid_merchant_information.rb +189 -189
  123. data/lib/cybersource_rest_client/models/ptsv2intentsid_order_information.rb +221 -221
  124. data/lib/cybersource_rest_client/models/ptsv2intentsid_processing_information.rb +192 -192
  125. data/lib/cybersource_rest_client/models/ptsv2payments_aggregator_information.rb +90 -5
  126. data/lib/cybersource_rest_client/models/ptsv2payments_agreement_information.rb +207 -207
  127. data/lib/cybersource_rest_client/models/ptsv2payments_buyer_information_personal_identification.rb +229 -229
  128. data/lib/cybersource_rest_client/models/ptsv2payments_consumer_authentication_information.rb +56 -5
  129. data/lib/cybersource_rest_client/models/ptsv2payments_installment_information.rb +1 -1
  130. data/lib/cybersource_rest_client/models/ptsv2payments_merchant_initiated_transaction.rb +22 -5
  131. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_amount_details.rb +651 -651
  132. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_amount_details_octsurcharge.rb +196 -196
  133. data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_card.rb +445 -445
  134. data/lib/cybersource_rest_client/models/ptsv2payments_point_of_sale_information.rb +19 -2
  135. data/lib/cybersource_rest_client/models/ptsv2payments_processing_information.rb +789 -721
  136. data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_authorization_options.rb +529 -467
  137. data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_capture_options.rb +298 -264
  138. data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_japan_payment_options.rb +339 -339
  139. data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_japan_payment_options_bonuses.rb +213 -213
  140. data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_purchase_options.rb +56 -5
  141. data/lib/cybersource_rest_client/models/ptsv2payments_recipient_information.rb +502 -383
  142. data/lib/cybersource_rest_client/models/ptsv2payments_recurring_payment_information.rb +363 -363
  143. data/lib/cybersource_rest_client/models/ptsv2payments_sender_information.rb +359 -298
  144. data/lib/cybersource_rest_client/models/ptsv2payments_sender_information_account.rb +230 -0
  145. data/lib/cybersource_rest_client/models/{tss_v2_transactions_get200_response_unscheduled_payment_information.rb → ptsv2payments_unscheduled_payment_information.rb} +7 -1
  146. data/lib/cybersource_rest_client/models/ptsv2paymentsid_client_reference_information.rb +256 -256
  147. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_installment_information.rb +1 -1
  148. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_processing_information_authorization_options.rb +230 -230
  149. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_processing_information_capture_options.rb +264 -247
  150. data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_point_of_sale_information.rb +22 -5
  151. data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_processing_information.rb +22 -5
  152. data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_processing_information.rb +22 -5
  153. data/lib/cybersource_rest_client/models/{ptsv1pushfundstransfer_aggregator_information.rb → ptsv2payouts_aggregator_information.rb} +325 -240
  154. data/lib/cybersource_rest_client/models/{ptsv1pushfundstransfer_aggregator_information_sub_merchant.rb → ptsv2payouts_aggregator_information_sub_merchant.rb} +196 -196
  155. data/lib/cybersource_rest_client/models/ptsv2payouts_processing_information.rb +32 -5
  156. data/lib/cybersource_rest_client/models/ptsv2payouts_processing_information_purchase_options.rb +213 -0
  157. data/lib/cybersource_rest_client/models/ptsv2payouts_recipient_information.rb +90 -5
  158. data/lib/cybersource_rest_client/models/ptsv2payouts_sender_information.rb +22 -5
  159. data/lib/cybersource_rest_client/models/ptsv2refreshpaymentstatusid_processing_information.rb +192 -192
  160. data/lib/cybersource_rest_client/models/ptsv2voids_processing_information.rb +7 -1
  161. data/lib/cybersource_rest_client/models/push_funds201_response.rb +337 -337
  162. data/lib/cybersource_rest_client/models/push_funds201_response_error_information.rb +225 -225
  163. data/lib/cybersource_rest_client/models/push_funds201_response_payment_information.rb +189 -189
  164. data/lib/cybersource_rest_client/models/push_funds201_response_payment_information_tokenized_card.rb +205 -205
  165. data/lib/cybersource_rest_client/models/push_funds201_response_processing_information.rb +189 -189
  166. data/lib/cybersource_rest_client/models/push_funds201_response_processing_information_domestic_national_net.rb +197 -197
  167. data/lib/cybersource_rest_client/models/push_funds201_response_processor_information.rb +329 -329
  168. data/lib/cybersource_rest_client/models/push_funds201_response_processor_information_routing.rb +196 -196
  169. data/lib/cybersource_rest_client/models/push_funds201_response_processor_information_settlement.rb +207 -207
  170. data/lib/cybersource_rest_client/models/push_funds201_response_recipient_information.rb +206 -206
  171. data/lib/cybersource_rest_client/models/push_funds502_response.rb +246 -246
  172. data/lib/cybersource_rest_client/models/push_funds_request.rb +264 -264
  173. data/lib/cybersource_rest_client/models/rbsv1subscriptions_processing_information.rb +206 -206
  174. data/lib/cybersource_rest_client/models/riskv1authenticationresults_payment_information.rb +219 -219
  175. data/lib/cybersource_rest_client/models/riskv1authentications_payment_information.rb +219 -219
  176. data/lib/cybersource_rest_client/models/riskv1authentications_payment_information_customer.rb +222 -222
  177. data/lib/cybersource_rest_client/models/riskv1authenticationsetups_payment_information_customer.rb +205 -205
  178. data/lib/cybersource_rest_client/models/riskv1decisions_consumer_authentication_information.rb +795 -795
  179. data/lib/cybersource_rest_client/models/riskv1exportcomplianceinquiries_order_information_line_items.rb +305 -305
  180. data/lib/cybersource_rest_client/models/sa_config_payment_methods.rb +191 -191
  181. data/lib/cybersource_rest_client/models/{tmsv2_tokenized_card_metadata_card_art_co_brand_logo_asset.rb → tms_bin_lookup.rb} +200 -200
  182. data/lib/cybersource_rest_client/models/{inline_response_201_1_issuer_information.rb → tms_bin_lookup_issuer_information.rb} +1 -1
  183. data/lib/cybersource_rest_client/models/{inline_response_201_1_payment_account_information.rb → tms_bin_lookup_payment_account_information.rb} +4 -4
  184. data/lib/cybersource_rest_client/models/{inline_response_201_1_payment_account_information_card.rb → tms_bin_lookup_payment_account_information_card.rb} +2 -2
  185. data/lib/cybersource_rest_client/models/{inline_response_201_1_payment_account_information_card_brands.rb → tms_bin_lookup_payment_account_information_card_brands.rb} +1 -1
  186. data/lib/cybersource_rest_client/models/{inline_response_201_1_payment_account_information_features.rb → tms_bin_lookup_payment_account_information_features.rb} +1 -1
  187. data/lib/cybersource_rest_client/models/{inline_response_201_1_payment_account_information_network.rb → tms_bin_lookup_payment_account_information_network.rb} +1 -1
  188. data/lib/cybersource_rest_client/models/{tmsv2_tokenized_card_metadata_card_art.rb → tms_card_art.rb} +231 -250
  189. data/lib/cybersource_rest_client/models/{tmsv2_tokenized_card_metadata_card_art_icon_asset.rb → tms_card_art_brand_logo_asset.rb} +201 -200
  190. data/lib/cybersource_rest_client/models/{tmsv2_tokenized_card_metadata_card_art_icon_asset__links.rb → tms_card_art_brand_logo_asset__links.rb} +189 -189
  191. data/lib/cybersource_rest_client/models/{tmsv2_tokenized_card_metadata_card_art_icon_asset__links_self.rb → tms_card_art_brand_logo_asset__links_self.rb} +190 -190
  192. data/lib/cybersource_rest_client/models/{tmsv2_tokenized_card_metadata_card_art_combined_asset.rb → tms_card_art_combined_asset.rb} +201 -200
  193. data/lib/cybersource_rest_client/models/{tmsv2_tokenized_card_metadata_card_art_combined_asset__links.rb → tms_card_art_combined_asset__links.rb} +189 -189
  194. data/lib/cybersource_rest_client/models/{tmsv2_tokenized_card_metadata_card_art_combined_asset__links_self.rb → tms_card_art_combined_asset__links_self.rb} +190 -190
  195. data/lib/cybersource_rest_client/models/{tmsv2_tokenized_card_metadata_card_art_background_asset.rb → tms_card_art_icon_asset.rb} +201 -200
  196. data/lib/cybersource_rest_client/models/{tmsv2_tokenized_card_metadata_card_art_brand_logo_asset__links.rb → tms_card_art_icon_asset__links.rb} +189 -189
  197. data/lib/cybersource_rest_client/models/{tmsv2_tokenized_card_metadata_card_art_brand_logo_asset__links_self.rb → tms_card_art_icon_asset__links_self.rb} +190 -190
  198. data/lib/cybersource_rest_client/models/{tmsv2_tokenized_card_metadata_card_art_brand_logo_asset.rb → tms_card_art_issuer_logo_asset.rb} +201 -200
  199. data/lib/cybersource_rest_client/models/{tmsv2_tokenized_card_metadata_card_art_background_asset__links.rb → tms_card_art_issuer_logo_asset__links.rb} +189 -189
  200. data/lib/cybersource_rest_client/models/{tmsv2_tokenized_card_metadata_card_art_background_asset__links_self.rb → tms_card_art_issuer_logo_asset__links_self.rb} +190 -190
  201. data/lib/cybersource_rest_client/models/tms_embedded_instrument_identifier.rb +323 -313
  202. data/lib/cybersource_rest_client/models/tms_embedded_instrument_identifier__embedded.rb +189 -0
  203. data/lib/cybersource_rest_client/models/tms_embedded_instrument_identifier_bank_account.rb +1 -1
  204. data/lib/cybersource_rest_client/models/tms_network_token_services.rb +239 -239
  205. data/lib/cybersource_rest_client/models/tms_network_token_services_american_express_token_service.rb +253 -253
  206. data/lib/cybersource_rest_client/models/tms_network_token_services_mastercard_digital_enablement_service.rb +227 -227
  207. data/lib/cybersource_rest_client/models/tms_network_token_services_notifications.rb +190 -190
  208. data/lib/cybersource_rest_client/models/tms_network_token_services_payment_credentials.rb +190 -190
  209. data/lib/cybersource_rest_client/models/tms_network_token_services_synchronous_provisioning.rb +190 -190
  210. data/lib/cybersource_rest_client/models/tms_network_token_services_visa_token_service.rb +244 -244
  211. data/lib/cybersource_rest_client/models/tms_nullify.rb +212 -212
  212. data/lib/cybersource_rest_client/models/tms_payment_instrument_processing_info.rb +1 -1
  213. data/lib/cybersource_rest_client/models/tms_payment_instrument_processing_info_bank_transfer_options.rb +1 -1
  214. data/lib/cybersource_rest_client/models/tms_sensitive_privileges.rb +190 -190
  215. data/lib/cybersource_rest_client/models/tms_token_formats.rb +223 -223
  216. data/lib/cybersource_rest_client/models/tmsv2_tokenized_card.rb +407 -321
  217. data/lib/cybersource_rest_client/models/tmsv2_tokenized_card__links.rb +189 -0
  218. data/lib/cybersource_rest_client/models/tmsv2_tokenized_card__links_self.rb +190 -0
  219. data/lib/cybersource_rest_client/models/tmsv2_tokenized_card_card.rb +253 -225
  220. data/lib/cybersource_rest_client/models/tmsv2_tokenized_card_metadata.rb +200 -189
  221. data/lib/cybersource_rest_client/models/tmsv2_tokenized_card_metadata_issuer.rb +213 -0
  222. data/lib/cybersource_rest_client/models/tmsv2_tokenized_card_passcode.rb +191 -0
  223. data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument_buyer_information.rb +1 -1
  224. data/lib/cybersource_rest_client/models/token_permissions.rb +223 -223
  225. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response.rb +1 -1
  226. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_point_of_sale_information.rb +1 -1
  227. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_processing_information.rb +326 -326
  228. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_processing_information_authorization_options.rb +251 -245
  229. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_processing_information_japan_payment_options.rb +322 -322
  230. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_processor_information.rb +383 -383
  231. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_processor_information_multi_processor_routing.rb +235 -235
  232. data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_processing_information.rb +241 -241
  233. data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_processor_information.rb +223 -223
  234. data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_transaction_summaries.rb +392 -392
  235. data/lib/cybersource_rest_client/models/update_order_request.rb +229 -229
  236. data/lib/cybersource_rest_client/models/upv1capturecontexts_capture_mandate.rb +253 -253
  237. data/lib/cybersource_rest_client/models/upv1capturecontexts_order_information_amount_details.rb +201 -201
  238. data/lib/cybersource_rest_client/models/vt_config_card_not_present_global_payment_information_basic_information.rb +273 -273
  239. data/lib/cybersource_rest_client/models/vt_config_card_not_present_global_payment_information_payment_information.rb +315 -315
  240. data/lib/cybersource_rest_client.rb +35 -30
  241. metadata +38 -33
  242. data/lib/cybersource_rest_client/models/microformv2sessions_checkout_api_initialization.rb +0 -281
  243. data/lib/cybersource_rest_client/models/tmsv2_tokenized_card_metadata_card_art_co_brand_logo_asset__links.rb +0 -189
  244. data/lib/cybersource_rest_client/models/tmsv2_tokenized_card_metadata_card_art_co_brand_logo_asset__links_self.rb +0 -190
  245. data/lib/cybersource_rest_client/models/tmsv2_tokenized_card_metadata_card_art_issuer_logo_asset.rb +0 -200
  246. data/lib/cybersource_rest_client/models/tmsv2_tokenized_card_metadata_card_art_issuer_logo_asset__links.rb +0 -189
  247. data/lib/cybersource_rest_client/models/tmsv2_tokenized_card_metadata_card_art_issuer_logo_asset__links_self.rb +0 -190
  248. data/lib/cybersource_rest_client/models/upv1capturecontexts_checkout_api_initialization.rb +0 -280
@@ -1,814 +1,831 @@
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 PtsV2PaymentsPost201ResponseProcessorInformation
16
- # Flag that specifies the purpose of the authorization. Possible values: - `0`: Preauthorization - `1`: Final authorization
17
- attr_accessor :auth_indicator
18
-
19
- # 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.
20
- attr_accessor :approval_code
21
-
22
- # The Scheme reference data is a variable length data element up to a maximum of 56 characters. It may be sent by the acquirer in the authorisation response message, and by the terminal (unchanged) in subsequent authorisation request messages associated with the same transaction. This field is used by Streamline and HSBC UK only, at present.
23
- attr_accessor :card_reference_data
24
-
25
- # 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
26
- attr_accessor :transaction_id
27
-
28
- # Same value as `processorInformation.transactionId`
29
- attr_accessor :network_transaction_id
30
-
31
- # 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.
32
- attr_accessor :response_code
33
-
34
- # Used by Visa only and contains the response source/reason code that identifies the source of the response decision.
35
- attr_accessor :response_code_source
36
-
37
- # This field might contain information about a decline. This field is supported only for **CyberSource through VisaNet**.
38
- attr_accessor :response_details
39
-
40
- # Processor-defined response category code. The associated detail error code is in the `processorInformation.responseCode` or `issuerInformation.responseCode` field of the service you requested. This field is supported only for: - Japanese issuers - Domestic transactions in Japan - Comercio Latino—processor transaction ID required for troubleshooting #### Maximum length for processors - Comercio Latino: 36 - All other processors: 3
41
- attr_accessor :response_category_code
42
-
43
- # Name of the Japanese acquirer that processed the transaction. Returned only for JCN Gateway. Please contact the CyberSource Japan Support Group for more information.
44
- attr_accessor :forwarded_acquirer_code
45
-
46
- # Field contains a settlement date. The date is in mmdd format, where: mm = month and dd = day.
47
- attr_accessor :settlement_date
48
-
49
- # This field serves as a unique identifier for initial and subsequent recurring transactions, specific to the payment brand, and is crucial for transaction tracking and recurrence management. Not all processors provide this value. Returned by the authorization service.
50
- attr_accessor :sequence_number
51
-
52
- attr_accessor :avs
53
-
54
- attr_accessor :card_verification
55
-
56
- attr_accessor :merchant_advice
57
-
58
- attr_accessor :electronic_verification_results
59
-
60
- attr_accessor :ach_verification
61
-
62
- attr_accessor :customer
63
-
64
- attr_accessor :consumer_authentication_response
65
-
66
- # 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.
67
- attr_accessor :system_trace_audit_number
68
-
69
- # Visa-generated reference number that identifies a card-present transaction for which you provided one of the following: - Visa primary account number (PAN) - Visa-generated token for a PAN This reference number serves as a link to the cardholder account and to all transactions for that account. This reply field is returned only for CyberSource through VisaNet. **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.
70
- attr_accessor :payment_account_reference_number
71
-
72
- # Transaction integrity classification provided by Mastercard. This value specifies Mastercard's evaluation of the transaction's safety and security. This field is returned only for **CyberSource through VisaNet**. For card-present transactions, possible values: - `A1`: EMV or token in a secure, trusted environment - `B1`: EMV or chip equivalent - `C1`: Magnetic stripe - `E1`: Key entered - `U0`: Unclassified For card-not-present transactions, possible values: - `A2`: Digital transactions - `B2`: Authenticated checkout - `C2`: Transaction validation - `D2`: Enhanced data - `E2`: Generic messaging - `U0`: Unclassified For information about these values, contact Mastercard or your acquirer. #### CyberSource through VisaNet The value for this field corresponds to the following data in the TC 33 capture file,<sup>1</sup>: - Record: CP01 TCR6 - Position: 136-137 - Field: Mastercard Transaction Integrity Classification <sup>1</sup> 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.
73
- attr_accessor :transaction_integrity_code
74
-
75
- # Referral response number for a verbal authorization with FDMS Nashville when using an American Express card. Give this number to American Express when you call them for the verbal authorization.
76
- attr_accessor :amex_verbal_auth_reference_number
77
-
78
- # Mastercard service that was used for the transaction. Mastercard provides this value to CyberSource. Possible value: - 53: Mastercard card-on-file token service #### CyberSource through VisaNet The value for this field corresponds to the following data in the TC 33 capture file: - Record: CP01 TCR6 - Position: 133-134 - Field: Mastercard Merchant on-behalf service. **Note** This field is returned only for CyberSource through VisaNet.
79
- attr_accessor :master_card_service_code
80
-
81
- # Result of the Mastercard card-on-file token service. Mastercard provides this value to CyberSource. Possible values: - `C`: Service completed successfully. - `F`: One of the following: - Incorrect Mastercard POS entry mode. The Mastercard POS entry mode should be 81 for an authorization or authorization reversal. - Incorrect Mastercard POS entry mode. The Mastercard POS entry mode should be 01 for a tokenized request. - Token requestor ID is missing or formatted incorrectly. - `I`: One of the following: - Invalid token requestor ID. - Suspended or deactivated token. - Invalid token (not in mapping table). - `T`: Invalid combination of token requestor ID and token. - `U`: Expired token. - `W`: Primary account number (PAN) listed in electronic warning bulletin. **Note** This field is returned only for **CyberSource through VisaNet**.
82
- attr_accessor :master_card_service_reply_code
83
-
84
- # Type of authentication for which the transaction qualifies as determined by the Mastercard authentication service, which confirms the identity of the cardholder. Mastercard provides this value to CyberSource. Possible values: - `1`: Transaction qualifies for Mastercard authentication type 1. - `2`: Transaction qualifies for Mastercard authentication type 2. #### CyberSource through VisaNet The value for this field corresponds to the following data in the TC 33 capture file: - Record: CP01 TCR6 - Position: 132 - Field: Mastercard Member Defined service. **Note** This field is returned only for CyberSource through VisaNet.
85
- attr_accessor :master_card_authentication_type
86
-
87
- # Name of the Processor.
88
- attr_accessor :name
89
-
90
- attr_accessor :routing
91
-
92
- # Identifier that was assigned to you by your acquirer. This value must be printed on the receipt. #### Returned by Authorizations and Credits. This reply field is only supported by merchants who have installed client software on their POS terminals and use these processors: - American Express Direct - Credit Mutuel-CIC - FDC Nashville Global - OmniPay Direct - SIX
93
- attr_accessor :merchant_number
94
-
95
- # #### 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.
96
- attr_accessor :retrieval_reference_number
97
-
98
- # Direct the customer to this URL to complete the payment.
99
- attr_accessor :payment_url
100
-
101
- # The redirect URL for forwarding the consumer to complete page. This redirect needed by PSP to track browser information of consumer. PSP then redirect consumer to merchant success URL.
102
- attr_accessor :complete_url
103
-
104
- attr_accessor :signature
105
-
106
- attr_accessor :public_key
107
-
108
- attr_accessor :seller_protection
109
-
110
- # The date on which the transaction expires and payment cannot be made.
111
- attr_accessor :transaction_expiry_date
112
-
113
- # For merchants to declare customs Customs declaration service URL.
114
- attr_accessor :custom_url
115
-
116
- # Unique id assigned to a merchant by the APM and not PSP The merchant ID, as boarded with Alipay
117
- attr_accessor :scheme_assigned_id
118
-
119
- # The QR code value. Convert this value into an image and send it to the POS terminal to be displayed. The terminal can also perform the conversion. The value is a URL like in the example below: https://qr.alipay.com/pmxabcka1ts5grar12.
120
- attr_accessor :device_url
121
-
122
- # The funds are released to the merchant immediately. INSTANT The funds are released to the merchant immediately. DELAYED The funds are held for a finite number of days. The actual duration depends on the region and type of integration. You can release the funds through a referenced payout. Otherwise, the funds disbursed automatically after the specified duration.
123
- attr_accessor :disbursement_mode
124
-
125
- # The date and time when the transaction was last updated, in Internet date and time format.
126
- attr_accessor :update_time_utc
127
-
128
- # The date and time when the authorized payment expires, in Internet date and time format.
129
- attr_accessor :expiration_time_utc
130
-
131
- # The id of the order
132
- attr_accessor :order_id
133
-
134
- # The order status. Possible values: - `CREATED` - `VOIDED` - `COMPLETED` - `PAYER_ACTION_REQUIRED`
135
- attr_accessor :order_status
136
-
137
- # Attribute mapping from ruby-style variable name to JSON key.
138
- def self.attribute_map
139
- {
140
- :'auth_indicator' => :'authIndicator',
141
- :'approval_code' => :'approvalCode',
142
- :'card_reference_data' => :'cardReferenceData',
143
- :'transaction_id' => :'transactionId',
144
- :'network_transaction_id' => :'networkTransactionId',
145
- :'response_code' => :'responseCode',
146
- :'response_code_source' => :'responseCodeSource',
147
- :'response_details' => :'responseDetails',
148
- :'response_category_code' => :'responseCategoryCode',
149
- :'forwarded_acquirer_code' => :'forwardedAcquirerCode',
150
- :'settlement_date' => :'settlementDate',
151
- :'sequence_number' => :'sequenceNumber',
152
- :'avs' => :'avs',
153
- :'card_verification' => :'cardVerification',
154
- :'merchant_advice' => :'merchantAdvice',
155
- :'electronic_verification_results' => :'electronicVerificationResults',
156
- :'ach_verification' => :'achVerification',
157
- :'customer' => :'customer',
158
- :'consumer_authentication_response' => :'consumerAuthenticationResponse',
159
- :'system_trace_audit_number' => :'systemTraceAuditNumber',
160
- :'payment_account_reference_number' => :'paymentAccountReferenceNumber',
161
- :'transaction_integrity_code' => :'transactionIntegrityCode',
162
- :'amex_verbal_auth_reference_number' => :'amexVerbalAuthReferenceNumber',
163
- :'master_card_service_code' => :'masterCardServiceCode',
164
- :'master_card_service_reply_code' => :'masterCardServiceReplyCode',
165
- :'master_card_authentication_type' => :'masterCardAuthenticationType',
166
- :'name' => :'name',
167
- :'routing' => :'routing',
168
- :'merchant_number' => :'merchantNumber',
169
- :'retrieval_reference_number' => :'retrievalReferenceNumber',
170
- :'payment_url' => :'paymentUrl',
171
- :'complete_url' => :'completeUrl',
172
- :'signature' => :'signature',
173
- :'public_key' => :'publicKey',
174
- :'seller_protection' => :'sellerProtection',
175
- :'transaction_expiry_date' => :'transactionExpiryDate',
176
- :'custom_url' => :'customUrl',
177
- :'scheme_assigned_id' => :'schemeAssignedId',
178
- :'device_url' => :'deviceUrl',
179
- :'disbursement_mode' => :'disbursementMode',
180
- :'update_time_utc' => :'updateTimeUtc',
181
- :'expiration_time_utc' => :'expirationTimeUtc',
182
- :'order_id' => :'orderId',
183
- :'order_status' => :'orderStatus'
184
- }
185
- end
186
-
187
- # Attribute mapping from JSON key to ruby-style variable name.
188
- def self.json_map
189
- {
190
- :'auth_indicator' => :'auth_indicator',
191
- :'approval_code' => :'approval_code',
192
- :'card_reference_data' => :'card_reference_data',
193
- :'transaction_id' => :'transaction_id',
194
- :'network_transaction_id' => :'network_transaction_id',
195
- :'response_code' => :'response_code',
196
- :'response_code_source' => :'response_code_source',
197
- :'response_details' => :'response_details',
198
- :'response_category_code' => :'response_category_code',
199
- :'forwarded_acquirer_code' => :'forwarded_acquirer_code',
200
- :'settlement_date' => :'settlement_date',
201
- :'sequence_number' => :'sequence_number',
202
- :'avs' => :'avs',
203
- :'card_verification' => :'card_verification',
204
- :'merchant_advice' => :'merchant_advice',
205
- :'electronic_verification_results' => :'electronic_verification_results',
206
- :'ach_verification' => :'ach_verification',
207
- :'customer' => :'customer',
208
- :'consumer_authentication_response' => :'consumer_authentication_response',
209
- :'system_trace_audit_number' => :'system_trace_audit_number',
210
- :'payment_account_reference_number' => :'payment_account_reference_number',
211
- :'transaction_integrity_code' => :'transaction_integrity_code',
212
- :'amex_verbal_auth_reference_number' => :'amex_verbal_auth_reference_number',
213
- :'master_card_service_code' => :'master_card_service_code',
214
- :'master_card_service_reply_code' => :'master_card_service_reply_code',
215
- :'master_card_authentication_type' => :'master_card_authentication_type',
216
- :'name' => :'name',
217
- :'routing' => :'routing',
218
- :'merchant_number' => :'merchant_number',
219
- :'retrieval_reference_number' => :'retrieval_reference_number',
220
- :'payment_url' => :'payment_url',
221
- :'complete_url' => :'complete_url',
222
- :'signature' => :'signature',
223
- :'public_key' => :'public_key',
224
- :'seller_protection' => :'seller_protection',
225
- :'transaction_expiry_date' => :'transaction_expiry_date',
226
- :'custom_url' => :'custom_url',
227
- :'scheme_assigned_id' => :'scheme_assigned_id',
228
- :'device_url' => :'device_url',
229
- :'disbursement_mode' => :'disbursement_mode',
230
- :'update_time_utc' => :'update_time_utc',
231
- :'expiration_time_utc' => :'expiration_time_utc',
232
- :'order_id' => :'order_id',
233
- :'order_status' => :'order_status'
234
- }
235
- end
236
-
237
- # Attribute type mapping.
238
- def self.swagger_types
239
- {
240
- :'auth_indicator' => :'String',
241
- :'approval_code' => :'String',
242
- :'card_reference_data' => :'String',
243
- :'transaction_id' => :'String',
244
- :'network_transaction_id' => :'String',
245
- :'response_code' => :'String',
246
- :'response_code_source' => :'String',
247
- :'response_details' => :'String',
248
- :'response_category_code' => :'String',
249
- :'forwarded_acquirer_code' => :'String',
250
- :'settlement_date' => :'String',
251
- :'sequence_number' => :'String',
252
- :'avs' => :'PtsV2PaymentsPost201ResponseProcessorInformationAvs',
253
- :'card_verification' => :'PtsV2PaymentsPost201ResponseProcessorInformationCardVerification',
254
- :'merchant_advice' => :'PtsV2PaymentsPost201ResponseProcessorInformationMerchantAdvice',
255
- :'electronic_verification_results' => :'PtsV2PaymentsPost201ResponseProcessorInformationElectronicVerificationResults',
256
- :'ach_verification' => :'PtsV2PaymentsPost201ResponseProcessorInformationAchVerification',
257
- :'customer' => :'PtsV2PaymentsPost201ResponseProcessorInformationCustomer',
258
- :'consumer_authentication_response' => :'PtsV2PaymentsPost201ResponseProcessorInformationConsumerAuthenticationResponse',
259
- :'system_trace_audit_number' => :'String',
260
- :'payment_account_reference_number' => :'String',
261
- :'transaction_integrity_code' => :'String',
262
- :'amex_verbal_auth_reference_number' => :'String',
263
- :'master_card_service_code' => :'String',
264
- :'master_card_service_reply_code' => :'String',
265
- :'master_card_authentication_type' => :'String',
266
- :'name' => :'String',
267
- :'routing' => :'PtsV2PaymentsPost201ResponseProcessorInformationRouting',
268
- :'merchant_number' => :'String',
269
- :'retrieval_reference_number' => :'String',
270
- :'payment_url' => :'String',
271
- :'complete_url' => :'String',
272
- :'signature' => :'String',
273
- :'public_key' => :'String',
274
- :'seller_protection' => :'PtsV2PaymentsPost201ResponseProcessorInformationSellerProtection',
275
- :'transaction_expiry_date' => :'String',
276
- :'custom_url' => :'String',
277
- :'scheme_assigned_id' => :'String',
278
- :'device_url' => :'String',
279
- :'disbursement_mode' => :'String',
280
- :'update_time_utc' => :'String',
281
- :'expiration_time_utc' => :'String',
282
- :'order_id' => :'String',
283
- :'order_status' => :'String'
284
- }
285
- end
286
-
287
- # Initializes the object
288
- # @param [Hash] attributes Model attributes in the form of hash
289
- def initialize(attributes = {})
290
- return unless attributes.is_a?(Hash)
291
-
292
- # convert string to symbol for hash key
293
- attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
294
-
295
- if attributes.has_key?(:'authIndicator')
296
- self.auth_indicator = attributes[:'authIndicator']
297
- end
298
-
299
- if attributes.has_key?(:'approvalCode')
300
- self.approval_code = attributes[:'approvalCode']
301
- end
302
-
303
- if attributes.has_key?(:'cardReferenceData')
304
- self.card_reference_data = attributes[:'cardReferenceData']
305
- end
306
-
307
- if attributes.has_key?(:'transactionId')
308
- self.transaction_id = attributes[:'transactionId']
309
- end
310
-
311
- if attributes.has_key?(:'networkTransactionId')
312
- self.network_transaction_id = attributes[:'networkTransactionId']
313
- end
314
-
315
- if attributes.has_key?(:'responseCode')
316
- self.response_code = attributes[:'responseCode']
317
- end
318
-
319
- if attributes.has_key?(:'responseCodeSource')
320
- self.response_code_source = attributes[:'responseCodeSource']
321
- end
322
-
323
- if attributes.has_key?(:'responseDetails')
324
- self.response_details = attributes[:'responseDetails']
325
- end
326
-
327
- if attributes.has_key?(:'responseCategoryCode')
328
- self.response_category_code = attributes[:'responseCategoryCode']
329
- end
330
-
331
- if attributes.has_key?(:'forwardedAcquirerCode')
332
- self.forwarded_acquirer_code = attributes[:'forwardedAcquirerCode']
333
- end
334
-
335
- if attributes.has_key?(:'settlementDate')
336
- self.settlement_date = attributes[:'settlementDate']
337
- end
338
-
339
- if attributes.has_key?(:'sequenceNumber')
340
- self.sequence_number = attributes[:'sequenceNumber']
341
- end
342
-
343
- if attributes.has_key?(:'avs')
344
- self.avs = attributes[:'avs']
345
- end
346
-
347
- if attributes.has_key?(:'cardVerification')
348
- self.card_verification = attributes[:'cardVerification']
349
- end
350
-
351
- if attributes.has_key?(:'merchantAdvice')
352
- self.merchant_advice = attributes[:'merchantAdvice']
353
- end
354
-
355
- if attributes.has_key?(:'electronicVerificationResults')
356
- self.electronic_verification_results = attributes[:'electronicVerificationResults']
357
- end
358
-
359
- if attributes.has_key?(:'achVerification')
360
- self.ach_verification = attributes[:'achVerification']
361
- end
362
-
363
- if attributes.has_key?(:'customer')
364
- self.customer = attributes[:'customer']
365
- end
366
-
367
- if attributes.has_key?(:'consumerAuthenticationResponse')
368
- self.consumer_authentication_response = attributes[:'consumerAuthenticationResponse']
369
- end
370
-
371
- if attributes.has_key?(:'systemTraceAuditNumber')
372
- self.system_trace_audit_number = attributes[:'systemTraceAuditNumber']
373
- end
374
-
375
- if attributes.has_key?(:'paymentAccountReferenceNumber')
376
- self.payment_account_reference_number = attributes[:'paymentAccountReferenceNumber']
377
- end
378
-
379
- if attributes.has_key?(:'transactionIntegrityCode')
380
- self.transaction_integrity_code = attributes[:'transactionIntegrityCode']
381
- end
382
-
383
- if attributes.has_key?(:'amexVerbalAuthReferenceNumber')
384
- self.amex_verbal_auth_reference_number = attributes[:'amexVerbalAuthReferenceNumber']
385
- end
386
-
387
- if attributes.has_key?(:'masterCardServiceCode')
388
- self.master_card_service_code = attributes[:'masterCardServiceCode']
389
- end
390
-
391
- if attributes.has_key?(:'masterCardServiceReplyCode')
392
- self.master_card_service_reply_code = attributes[:'masterCardServiceReplyCode']
393
- end
394
-
395
- if attributes.has_key?(:'masterCardAuthenticationType')
396
- self.master_card_authentication_type = attributes[:'masterCardAuthenticationType']
397
- end
398
-
399
- if attributes.has_key?(:'name')
400
- self.name = attributes[:'name']
401
- end
402
-
403
- if attributes.has_key?(:'routing')
404
- self.routing = attributes[:'routing']
405
- end
406
-
407
- if attributes.has_key?(:'merchantNumber')
408
- self.merchant_number = attributes[:'merchantNumber']
409
- end
410
-
411
- if attributes.has_key?(:'retrievalReferenceNumber')
412
- self.retrieval_reference_number = attributes[:'retrievalReferenceNumber']
413
- end
414
-
415
- if attributes.has_key?(:'paymentUrl')
416
- self.payment_url = attributes[:'paymentUrl']
417
- end
418
-
419
- if attributes.has_key?(:'completeUrl')
420
- self.complete_url = attributes[:'completeUrl']
421
- end
422
-
423
- if attributes.has_key?(:'signature')
424
- self.signature = attributes[:'signature']
425
- end
426
-
427
- if attributes.has_key?(:'publicKey')
428
- self.public_key = attributes[:'publicKey']
429
- end
430
-
431
- if attributes.has_key?(:'sellerProtection')
432
- self.seller_protection = attributes[:'sellerProtection']
433
- end
434
-
435
- if attributes.has_key?(:'transactionExpiryDate')
436
- self.transaction_expiry_date = attributes[:'transactionExpiryDate']
437
- end
438
-
439
- if attributes.has_key?(:'customUrl')
440
- self.custom_url = attributes[:'customUrl']
441
- end
442
-
443
- if attributes.has_key?(:'schemeAssignedId')
444
- self.scheme_assigned_id = attributes[:'schemeAssignedId']
445
- end
446
-
447
- if attributes.has_key?(:'deviceUrl')
448
- self.device_url = attributes[:'deviceUrl']
449
- end
450
-
451
- if attributes.has_key?(:'disbursementMode')
452
- self.disbursement_mode = attributes[:'disbursementMode']
453
- end
454
-
455
- if attributes.has_key?(:'updateTimeUtc')
456
- self.update_time_utc = attributes[:'updateTimeUtc']
457
- end
458
-
459
- if attributes.has_key?(:'expirationTimeUtc')
460
- self.expiration_time_utc = attributes[:'expirationTimeUtc']
461
- end
462
-
463
- if attributes.has_key?(:'orderId')
464
- self.order_id = attributes[:'orderId']
465
- end
466
-
467
- if attributes.has_key?(:'orderStatus')
468
- self.order_status = attributes[:'orderStatus']
469
- end
470
- end
471
-
472
- # Show invalid properties with the reasons. Usually used together with valid?
473
- # @return Array for valid properties with the reasons
474
- def list_invalid_properties
475
- invalid_properties = Array.new
476
- invalid_properties
477
- end
478
-
479
- # Check to see if the all the properties in the model are valid
480
- # @return true if the model is valid
481
- def valid?
482
- true
483
- end
484
-
485
- # Custom attribute writer method with validation
486
- # @param [Object] auth_indicator Value to be assigned
487
- def auth_indicator=(auth_indicator)
488
- @auth_indicator = auth_indicator
489
- end
490
-
491
- # Custom attribute writer method with validation
492
- # @param [Object] approval_code Value to be assigned
493
- def approval_code=(approval_code)
494
- @approval_code = approval_code
495
- end
496
-
497
- # Custom attribute writer method with validation
498
- # @param [Object] card_reference_data Value to be assigned
499
- def card_reference_data=(card_reference_data)
500
- @card_reference_data = card_reference_data
501
- end
502
-
503
- # Custom attribute writer method with validation
504
- # @param [Object] transaction_id Value to be assigned
505
- def transaction_id=(transaction_id)
506
- @transaction_id = transaction_id
507
- end
508
-
509
- # Custom attribute writer method with validation
510
- # @param [Object] response_code Value to be assigned
511
- def response_code=(response_code)
512
- @response_code = response_code
513
- end
514
-
515
- # Custom attribute writer method with validation
516
- # @param [Object] response_code_source Value to be assigned
517
- def response_code_source=(response_code_source)
518
- @response_code_source = response_code_source
519
- end
520
-
521
- # Custom attribute writer method with validation
522
- # @param [Object] response_details Value to be assigned
523
- def response_details=(response_details)
524
- @response_details = response_details
525
- end
526
-
527
- # Custom attribute writer method with validation
528
- # @param [Object] response_category_code Value to be assigned
529
- def response_category_code=(response_category_code)
530
- @response_category_code = response_category_code
531
- end
532
-
533
- # Custom attribute writer method with validation
534
- # @param [Object] forwarded_acquirer_code Value to be assigned
535
- def forwarded_acquirer_code=(forwarded_acquirer_code)
536
- @forwarded_acquirer_code = forwarded_acquirer_code
537
- end
538
-
539
- # Custom attribute writer method with validation
540
- # @param [Object] settlement_date Value to be assigned
541
- def settlement_date=(settlement_date)
542
- @settlement_date = settlement_date
543
- end
544
-
545
- # Custom attribute writer method with validation
546
- # @param [Object] sequence_number Value to be assigned
547
- def sequence_number=(sequence_number)
548
- @sequence_number = sequence_number
549
- end
550
-
551
- # Custom attribute writer method with validation
552
- # @param [Object] system_trace_audit_number Value to be assigned
553
- def system_trace_audit_number=(system_trace_audit_number)
554
- @system_trace_audit_number = system_trace_audit_number
555
- end
556
-
557
- # Custom attribute writer method with validation
558
- # @param [Object] payment_account_reference_number Value to be assigned
559
- def payment_account_reference_number=(payment_account_reference_number)
560
- @payment_account_reference_number = payment_account_reference_number
561
- end
562
-
563
- # Custom attribute writer method with validation
564
- # @param [Object] transaction_integrity_code Value to be assigned
565
- def transaction_integrity_code=(transaction_integrity_code)
566
- @transaction_integrity_code = transaction_integrity_code
567
- end
568
-
569
- # Custom attribute writer method with validation
570
- # @param [Object] amex_verbal_auth_reference_number Value to be assigned
571
- def amex_verbal_auth_reference_number=(amex_verbal_auth_reference_number)
572
- @amex_verbal_auth_reference_number = amex_verbal_auth_reference_number
573
- end
574
-
575
- # Custom attribute writer method with validation
576
- # @param [Object] master_card_service_code Value to be assigned
577
- def master_card_service_code=(master_card_service_code)
578
- @master_card_service_code = master_card_service_code
579
- end
580
-
581
- # Custom attribute writer method with validation
582
- # @param [Object] master_card_service_reply_code Value to be assigned
583
- def master_card_service_reply_code=(master_card_service_reply_code)
584
- @master_card_service_reply_code = master_card_service_reply_code
585
- end
586
-
587
- # Custom attribute writer method with validation
588
- # @param [Object] master_card_authentication_type Value to be assigned
589
- def master_card_authentication_type=(master_card_authentication_type)
590
- @master_card_authentication_type = master_card_authentication_type
591
- end
592
-
593
- # Custom attribute writer method with validation
594
- # @param [Object] name Value to be assigned
595
- def name=(name)
596
- @name = name
597
- end
598
-
599
- # Custom attribute writer method with validation
600
- # @param [Object] merchant_number Value to be assigned
601
- def merchant_number=(merchant_number)
602
- @merchant_number = merchant_number
603
- end
604
-
605
- # Custom attribute writer method with validation
606
- # @param [Object] retrieval_reference_number Value to be assigned
607
- def retrieval_reference_number=(retrieval_reference_number)
608
- @retrieval_reference_number = retrieval_reference_number
609
- end
610
-
611
- # Custom attribute writer method with validation
612
- # @param [Object] payment_url Value to be assigned
613
- def payment_url=(payment_url)
614
- @payment_url = payment_url
615
- end
616
-
617
- # Custom attribute writer method with validation
618
- # @param [Object] complete_url Value to be assigned
619
- def complete_url=(complete_url)
620
- @complete_url = complete_url
621
- end
622
-
623
- # Custom attribute writer method with validation
624
- # @param [Object] transaction_expiry_date Value to be assigned
625
- def transaction_expiry_date=(transaction_expiry_date)
626
- @transaction_expiry_date = transaction_expiry_date
627
- end
628
-
629
- # Custom attribute writer method with validation
630
- # @param [Object] scheme_assigned_id Value to be assigned
631
- def scheme_assigned_id=(scheme_assigned_id)
632
- @scheme_assigned_id = scheme_assigned_id
633
- end
634
-
635
- # Custom attribute writer method with validation
636
- # @param [Object] device_url Value to be assigned
637
- def device_url=(device_url)
638
- @device_url = device_url
639
- end
640
-
641
- # Custom attribute writer method with validation
642
- # @param [Object] order_status Value to be assigned
643
- def order_status=(order_status)
644
- @order_status = order_status
645
- end
646
-
647
- # Checks equality by comparing each attribute.
648
- # @param [Object] Object to be compared
649
- def ==(o)
650
- return true if self.equal?(o)
651
- self.class == o.class &&
652
- auth_indicator == o.auth_indicator &&
653
- approval_code == o.approval_code &&
654
- card_reference_data == o.card_reference_data &&
655
- transaction_id == o.transaction_id &&
656
- network_transaction_id == o.network_transaction_id &&
657
- response_code == o.response_code &&
658
- response_code_source == o.response_code_source &&
659
- response_details == o.response_details &&
660
- response_category_code == o.response_category_code &&
661
- forwarded_acquirer_code == o.forwarded_acquirer_code &&
662
- settlement_date == o.settlement_date &&
663
- sequence_number == o.sequence_number &&
664
- avs == o.avs &&
665
- card_verification == o.card_verification &&
666
- merchant_advice == o.merchant_advice &&
667
- electronic_verification_results == o.electronic_verification_results &&
668
- ach_verification == o.ach_verification &&
669
- customer == o.customer &&
670
- consumer_authentication_response == o.consumer_authentication_response &&
671
- system_trace_audit_number == o.system_trace_audit_number &&
672
- payment_account_reference_number == o.payment_account_reference_number &&
673
- transaction_integrity_code == o.transaction_integrity_code &&
674
- amex_verbal_auth_reference_number == o.amex_verbal_auth_reference_number &&
675
- master_card_service_code == o.master_card_service_code &&
676
- master_card_service_reply_code == o.master_card_service_reply_code &&
677
- master_card_authentication_type == o.master_card_authentication_type &&
678
- name == o.name &&
679
- routing == o.routing &&
680
- merchant_number == o.merchant_number &&
681
- retrieval_reference_number == o.retrieval_reference_number &&
682
- payment_url == o.payment_url &&
683
- complete_url == o.complete_url &&
684
- signature == o.signature &&
685
- public_key == o.public_key &&
686
- seller_protection == o.seller_protection &&
687
- transaction_expiry_date == o.transaction_expiry_date &&
688
- custom_url == o.custom_url &&
689
- scheme_assigned_id == o.scheme_assigned_id &&
690
- device_url == o.device_url &&
691
- disbursement_mode == o.disbursement_mode &&
692
- update_time_utc == o.update_time_utc &&
693
- expiration_time_utc == o.expiration_time_utc &&
694
- order_id == o.order_id &&
695
- order_status == o.order_status
696
- end
697
-
698
- # @see the `==` method
699
- # @param [Object] Object to be compared
700
- def eql?(o)
701
- self == o
702
- end
703
-
704
- # Calculates hash code according to all attributes.
705
- # @return [Fixnum] Hash code
706
- def hash
707
- [auth_indicator, approval_code, card_reference_data, transaction_id, network_transaction_id, response_code, response_code_source, response_details, response_category_code, forwarded_acquirer_code, settlement_date, sequence_number, avs, card_verification, merchant_advice, electronic_verification_results, ach_verification, customer, consumer_authentication_response, system_trace_audit_number, payment_account_reference_number, transaction_integrity_code, amex_verbal_auth_reference_number, master_card_service_code, master_card_service_reply_code, master_card_authentication_type, name, routing, merchant_number, retrieval_reference_number, payment_url, complete_url, signature, public_key, seller_protection, transaction_expiry_date, custom_url, scheme_assigned_id, device_url, disbursement_mode, update_time_utc, expiration_time_utc, order_id, order_status].hash
708
- end
709
-
710
- # Builds the object from hash
711
- # @param [Hash] attributes Model attributes in the form of hash
712
- # @return [Object] Returns the model itself
713
- def build_from_hash(attributes)
714
- return nil unless attributes.is_a?(Hash)
715
- self.class.swagger_types.each_pair do |key, type|
716
- if type =~ /\AArray<(.*)>/i
717
- # check to ensure the input is an array given that the the attribute
718
- # is documented as an array but the input is not
719
- if attributes[self.class.attribute_map[key]].is_a?(Array)
720
- self.send("#{self.class.json_map[key]}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
721
- end
722
- elsif !attributes[self.class.attribute_map[key]].nil?
723
- self.send("#{self.class.json_map[key]}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
724
- end # or else data not found in attributes(hash), not an issue as the data can be optional
725
- end
726
-
727
- self
728
- end
729
-
730
- # Deserializes the data based on type
731
- # @param string type Data type
732
- # @param string value Value to be deserialized
733
- # @return [Object] Deserialized data
734
- def _deserialize(type, value)
735
- case type.to_sym
736
- when :DateTime
737
- DateTime.parse(value)
738
- when :Date
739
- Date.parse(value)
740
- when :String
741
- value.to_s
742
- when :Integer
743
- value.to_i
744
- when :Float
745
- value.to_f
746
- when :BOOLEAN
747
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
748
- true
749
- else
750
- false
751
- end
752
- when :Object
753
- # generic object (usually a Hash), return directly
754
- value
755
- when /\AArray<(?<inner_type>.+)>\z/
756
- inner_type = Regexp.last_match[:inner_type]
757
- value.map { |v| _deserialize(inner_type, v) }
758
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
759
- k_type = Regexp.last_match[:k_type]
760
- v_type = Regexp.last_match[:v_type]
761
- {}.tap do |hash|
762
- value.each do |k, v|
763
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
764
- end
765
- end
766
- else # model
767
- temp_model = CyberSource.const_get(type).new
768
- temp_model.build_from_hash(value)
769
- end
770
- end
771
-
772
- # Returns the string representation of the object
773
- # @return [String] String presentation of the object
774
- def to_s
775
- to_hash.to_s
776
- end
777
-
778
- # to_body is an alias to to_hash (backward compatibility)
779
- # @return [Hash] Returns the object in the form of hash
780
- def to_body
781
- to_hash
782
- end
783
-
784
- # Returns the object in the form of hash
785
- # @return [Hash] Returns the object in the form of hash
786
- def to_hash
787
- hash = {}
788
- self.class.attribute_map.each_pair do |attr, param|
789
- value = self.send(attr)
790
- next if value.nil?
791
- hash[param] = _to_hash(value)
792
- end
793
- hash
794
- end
795
-
796
- # Outputs non-array value in the form of hash
797
- # For object, use to_hash. Otherwise, just return the value
798
- # @param [Object] value Any valid value
799
- # @return [Hash] Returns the value in the form of hash
800
- def _to_hash(value)
801
- if value.is_a?(Array)
802
- value.compact.map { |v| _to_hash(v) }
803
- elsif value.is_a?(Hash)
804
- {}.tap do |hash|
805
- value.each { |k, v| hash[k] = _to_hash(v) }
806
- end
807
- elsif value.respond_to? :to_hash
808
- value.to_hash
809
- else
810
- value
811
- end
812
- end
813
- end
814
- 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 PtsV2PaymentsPost201ResponseProcessorInformation
16
+ # Flag that specifies the purpose of the authorization. Possible values: - `0`: Preauthorization - `1`: Final authorization
17
+ attr_accessor :auth_indicator
18
+
19
+ # 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.
20
+ attr_accessor :approval_code
21
+
22
+ # The Scheme reference data is a variable length data element up to a maximum of 56 characters. It may be sent by the acquirer in the authorisation response message, and by the terminal (unchanged) in subsequent authorisation request messages associated with the same transaction. This field is used by Streamline and HSBC UK only, at present.
23
+ attr_accessor :card_reference_data
24
+
25
+ # 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
26
+ attr_accessor :transaction_id
27
+
28
+ # Same value as `processorInformation.transactionId`
29
+ attr_accessor :network_transaction_id
30
+
31
+ # 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.
32
+ attr_accessor :response_code
33
+
34
+ # Used by Visa only and contains the response source/reason code that identifies the source of the response decision.
35
+ attr_accessor :response_code_source
36
+
37
+ # This field might contain information about a decline. This field is supported only for **CyberSource through VisaNet**.
38
+ attr_accessor :response_details
39
+
40
+ # Processor-defined response category code. The associated detail error code is in the `processorInformation.responseCode` or `issuerInformation.responseCode` field of the service you requested. This field is supported only for: - Japanese issuers - Domestic transactions in Japan - Comercio Latino—processor transaction ID required for troubleshooting #### Maximum length for processors - Comercio Latino: 36 - All other processors: 3
41
+ attr_accessor :response_category_code
42
+
43
+ # Name of the Japanese acquirer that processed the transaction. Returned only for JCN Gateway. Please contact the CyberSource Japan Support Group for more information.
44
+ attr_accessor :forwarded_acquirer_code
45
+
46
+ # Field contains a settlement date. The date is in mmdd format, where: mm = month and dd = day.
47
+ attr_accessor :settlement_date
48
+
49
+ # This field serves as a unique identifier for initial and subsequent recurring transactions, specific to the payment brand, and is crucial for transaction tracking and recurrence management. Not all processors provide this value. Returned by the authorization service.
50
+ attr_accessor :sequence_number
51
+
52
+ attr_accessor :avs
53
+
54
+ attr_accessor :card_verification
55
+
56
+ attr_accessor :merchant_advice
57
+
58
+ attr_accessor :electronic_verification_results
59
+
60
+ attr_accessor :ach_verification
61
+
62
+ attr_accessor :customer
63
+
64
+ attr_accessor :consumer_authentication_response
65
+
66
+ # 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.
67
+ attr_accessor :system_trace_audit_number
68
+
69
+ # Visa-generated reference number that identifies a card-present transaction for which you provided one of the following: - Visa primary account number (PAN) - Visa-generated token for a PAN This reference number serves as a link to the cardholder account and to all transactions for that account. This reply field is returned only for CyberSource through VisaNet. **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.
70
+ attr_accessor :payment_account_reference_number
71
+
72
+ # Transaction integrity classification provided by Mastercard. This value specifies Mastercard's evaluation of the transaction's safety and security. This field is returned only for **CyberSource through VisaNet**. For card-present transactions, possible values: - `A1`: EMV or token in a secure, trusted environment - `B1`: EMV or chip equivalent - `C1`: Magnetic stripe - `E1`: Key entered - `U0`: Unclassified For card-not-present transactions, possible values: - `A2`: Digital transactions - `B2`: Authenticated checkout - `C2`: Transaction validation - `D2`: Enhanced data - `E2`: Generic messaging - `U0`: Unclassified For information about these values, contact Mastercard or your acquirer. #### CyberSource through VisaNet The value for this field corresponds to the following data in the TC 33 capture file,<sup>1</sup>: - Record: CP01 TCR6 - Position: 136-137 - Field: Mastercard Transaction Integrity Classification <sup>1</sup> 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.
73
+ attr_accessor :transaction_integrity_code
74
+
75
+ # Referral response number for a verbal authorization with FDMS Nashville when using an American Express card. Give this number to American Express when you call them for the verbal authorization.
76
+ attr_accessor :amex_verbal_auth_reference_number
77
+
78
+ # Mastercard service that was used for the transaction. Mastercard provides this value to CyberSource. Possible value: - 53: Mastercard card-on-file token service #### CyberSource through VisaNet The value for this field corresponds to the following data in the TC 33 capture file: - Record: CP01 TCR6 - Position: 133-134 - Field: Mastercard Merchant on-behalf service. **Note** This field is returned only for CyberSource through VisaNet.
79
+ attr_accessor :master_card_service_code
80
+
81
+ # Result of the Mastercard card-on-file token service. Mastercard provides this value to CyberSource. Possible values: - `C`: Service completed successfully. - `F`: One of the following: - Incorrect Mastercard POS entry mode. The Mastercard POS entry mode should be 81 for an authorization or authorization reversal. - Incorrect Mastercard POS entry mode. The Mastercard POS entry mode should be 01 for a tokenized request. - Token requestor ID is missing or formatted incorrectly. - `I`: One of the following: - Invalid token requestor ID. - Suspended or deactivated token. - Invalid token (not in mapping table). - `T`: Invalid combination of token requestor ID and token. - `U`: Expired token. - `W`: Primary account number (PAN) listed in electronic warning bulletin. **Note** This field is returned only for **CyberSource through VisaNet**.
82
+ attr_accessor :master_card_service_reply_code
83
+
84
+ # Type of authentication for which the transaction qualifies as determined by the Mastercard authentication service, which confirms the identity of the cardholder. Mastercard provides this value to CyberSource. Possible values: - `1`: Transaction qualifies for Mastercard authentication type 1. - `2`: Transaction qualifies for Mastercard authentication type 2. #### CyberSource through VisaNet The value for this field corresponds to the following data in the TC 33 capture file: - Record: CP01 TCR6 - Position: 132 - Field: Mastercard Member Defined service. **Note** This field is returned only for CyberSource through VisaNet.
85
+ attr_accessor :master_card_authentication_type
86
+
87
+ # Name of the Processor.
88
+ attr_accessor :name
89
+
90
+ attr_accessor :routing
91
+
92
+ # Identifier that was assigned to you by your acquirer. This value must be printed on the receipt. #### Returned by Authorizations and Credits. This reply field is only supported by merchants who have installed client software on their POS terminals and use these processors: - American Express Direct - Credit Mutuel-CIC - FDC Nashville Global - OmniPay Direct - SIX
93
+ attr_accessor :merchant_number
94
+
95
+ # #### 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.
96
+ attr_accessor :retrieval_reference_number
97
+
98
+ # Direct the customer to this URL to complete the payment.
99
+ attr_accessor :payment_url
100
+
101
+ # The redirect URL for forwarding the consumer to complete page. This redirect needed by PSP to track browser information of consumer. PSP then redirect consumer to merchant success URL.
102
+ attr_accessor :complete_url
103
+
104
+ attr_accessor :signature
105
+
106
+ attr_accessor :public_key
107
+
108
+ attr_accessor :seller_protection
109
+
110
+ # The date on which the transaction expires and payment cannot be made.
111
+ attr_accessor :transaction_expiry_date
112
+
113
+ # For merchants to declare customs Customs declaration service URL.
114
+ attr_accessor :custom_url
115
+
116
+ # Unique id assigned to a merchant by the APM and not PSP The merchant ID, as boarded with Alipay
117
+ attr_accessor :scheme_assigned_id
118
+
119
+ # The QR code value. Convert this value into an image and send it to the POS terminal to be displayed. The terminal can also perform the conversion. The value is a URL like in the example below: https://qr.alipay.com/pmxabcka1ts5grar12.
120
+ attr_accessor :device_url
121
+
122
+ # The funds are released to the merchant immediately. INSTANT The funds are released to the merchant immediately. DELAYED The funds are held for a finite number of days. The actual duration depends on the region and type of integration. You can release the funds through a referenced payout. Otherwise, the funds disbursed automatically after the specified duration.
123
+ attr_accessor :disbursement_mode
124
+
125
+ # The date and time when the transaction was last updated, in Internet date and time format.
126
+ attr_accessor :update_time_utc
127
+
128
+ # The date and time when the authorized payment expires, in Internet date and time format.
129
+ attr_accessor :expiration_time_utc
130
+
131
+ # The id of the order
132
+ attr_accessor :order_id
133
+
134
+ # The order status. Possible values: - `CREATED` - `VOIDED` - `COMPLETED` - `PAYER_ACTION_REQUIRED`
135
+ attr_accessor :order_status
136
+
137
+ # Mastercard is introducing the Merchant Risk Predict Service in the middle East/Africa Region. A newly launched service comprised of seven independent artificial intelligence (AI)-powered scores intended to augment existing merchant risk management practices.
138
+ attr_accessor :merchant_risk_prediction
139
+
140
+ # Attribute mapping from ruby-style variable name to JSON key.
141
+ def self.attribute_map
142
+ {
143
+ :'auth_indicator' => :'authIndicator',
144
+ :'approval_code' => :'approvalCode',
145
+ :'card_reference_data' => :'cardReferenceData',
146
+ :'transaction_id' => :'transactionId',
147
+ :'network_transaction_id' => :'networkTransactionId',
148
+ :'response_code' => :'responseCode',
149
+ :'response_code_source' => :'responseCodeSource',
150
+ :'response_details' => :'responseDetails',
151
+ :'response_category_code' => :'responseCategoryCode',
152
+ :'forwarded_acquirer_code' => :'forwardedAcquirerCode',
153
+ :'settlement_date' => :'settlementDate',
154
+ :'sequence_number' => :'sequenceNumber',
155
+ :'avs' => :'avs',
156
+ :'card_verification' => :'cardVerification',
157
+ :'merchant_advice' => :'merchantAdvice',
158
+ :'electronic_verification_results' => :'electronicVerificationResults',
159
+ :'ach_verification' => :'achVerification',
160
+ :'customer' => :'customer',
161
+ :'consumer_authentication_response' => :'consumerAuthenticationResponse',
162
+ :'system_trace_audit_number' => :'systemTraceAuditNumber',
163
+ :'payment_account_reference_number' => :'paymentAccountReferenceNumber',
164
+ :'transaction_integrity_code' => :'transactionIntegrityCode',
165
+ :'amex_verbal_auth_reference_number' => :'amexVerbalAuthReferenceNumber',
166
+ :'master_card_service_code' => :'masterCardServiceCode',
167
+ :'master_card_service_reply_code' => :'masterCardServiceReplyCode',
168
+ :'master_card_authentication_type' => :'masterCardAuthenticationType',
169
+ :'name' => :'name',
170
+ :'routing' => :'routing',
171
+ :'merchant_number' => :'merchantNumber',
172
+ :'retrieval_reference_number' => :'retrievalReferenceNumber',
173
+ :'payment_url' => :'paymentUrl',
174
+ :'complete_url' => :'completeUrl',
175
+ :'signature' => :'signature',
176
+ :'public_key' => :'publicKey',
177
+ :'seller_protection' => :'sellerProtection',
178
+ :'transaction_expiry_date' => :'transactionExpiryDate',
179
+ :'custom_url' => :'customUrl',
180
+ :'scheme_assigned_id' => :'schemeAssignedId',
181
+ :'device_url' => :'deviceUrl',
182
+ :'disbursement_mode' => :'disbursementMode',
183
+ :'update_time_utc' => :'updateTimeUtc',
184
+ :'expiration_time_utc' => :'expirationTimeUtc',
185
+ :'order_id' => :'orderId',
186
+ :'order_status' => :'orderStatus',
187
+ :'merchant_risk_prediction' => :'merchantRiskPrediction'
188
+ }
189
+ end
190
+
191
+ # Attribute mapping from JSON key to ruby-style variable name.
192
+ def self.json_map
193
+ {
194
+ :'auth_indicator' => :'auth_indicator',
195
+ :'approval_code' => :'approval_code',
196
+ :'card_reference_data' => :'card_reference_data',
197
+ :'transaction_id' => :'transaction_id',
198
+ :'network_transaction_id' => :'network_transaction_id',
199
+ :'response_code' => :'response_code',
200
+ :'response_code_source' => :'response_code_source',
201
+ :'response_details' => :'response_details',
202
+ :'response_category_code' => :'response_category_code',
203
+ :'forwarded_acquirer_code' => :'forwarded_acquirer_code',
204
+ :'settlement_date' => :'settlement_date',
205
+ :'sequence_number' => :'sequence_number',
206
+ :'avs' => :'avs',
207
+ :'card_verification' => :'card_verification',
208
+ :'merchant_advice' => :'merchant_advice',
209
+ :'electronic_verification_results' => :'electronic_verification_results',
210
+ :'ach_verification' => :'ach_verification',
211
+ :'customer' => :'customer',
212
+ :'consumer_authentication_response' => :'consumer_authentication_response',
213
+ :'system_trace_audit_number' => :'system_trace_audit_number',
214
+ :'payment_account_reference_number' => :'payment_account_reference_number',
215
+ :'transaction_integrity_code' => :'transaction_integrity_code',
216
+ :'amex_verbal_auth_reference_number' => :'amex_verbal_auth_reference_number',
217
+ :'master_card_service_code' => :'master_card_service_code',
218
+ :'master_card_service_reply_code' => :'master_card_service_reply_code',
219
+ :'master_card_authentication_type' => :'master_card_authentication_type',
220
+ :'name' => :'name',
221
+ :'routing' => :'routing',
222
+ :'merchant_number' => :'merchant_number',
223
+ :'retrieval_reference_number' => :'retrieval_reference_number',
224
+ :'payment_url' => :'payment_url',
225
+ :'complete_url' => :'complete_url',
226
+ :'signature' => :'signature',
227
+ :'public_key' => :'public_key',
228
+ :'seller_protection' => :'seller_protection',
229
+ :'transaction_expiry_date' => :'transaction_expiry_date',
230
+ :'custom_url' => :'custom_url',
231
+ :'scheme_assigned_id' => :'scheme_assigned_id',
232
+ :'device_url' => :'device_url',
233
+ :'disbursement_mode' => :'disbursement_mode',
234
+ :'update_time_utc' => :'update_time_utc',
235
+ :'expiration_time_utc' => :'expiration_time_utc',
236
+ :'order_id' => :'order_id',
237
+ :'order_status' => :'order_status',
238
+ :'merchant_risk_prediction' => :'merchant_risk_prediction'
239
+ }
240
+ end
241
+
242
+ # Attribute type mapping.
243
+ def self.swagger_types
244
+ {
245
+ :'auth_indicator' => :'String',
246
+ :'approval_code' => :'String',
247
+ :'card_reference_data' => :'String',
248
+ :'transaction_id' => :'String',
249
+ :'network_transaction_id' => :'String',
250
+ :'response_code' => :'String',
251
+ :'response_code_source' => :'String',
252
+ :'response_details' => :'String',
253
+ :'response_category_code' => :'String',
254
+ :'forwarded_acquirer_code' => :'String',
255
+ :'settlement_date' => :'String',
256
+ :'sequence_number' => :'String',
257
+ :'avs' => :'PtsV2PaymentsPost201ResponseProcessorInformationAvs',
258
+ :'card_verification' => :'PtsV2PaymentsPost201ResponseProcessorInformationCardVerification',
259
+ :'merchant_advice' => :'PtsV2PaymentsPost201ResponseProcessorInformationMerchantAdvice',
260
+ :'electronic_verification_results' => :'PtsV2PaymentsPost201ResponseProcessorInformationElectronicVerificationResults',
261
+ :'ach_verification' => :'PtsV2PaymentsPost201ResponseProcessorInformationAchVerification',
262
+ :'customer' => :'PtsV2PaymentsPost201ResponseProcessorInformationCustomer',
263
+ :'consumer_authentication_response' => :'PtsV2PaymentsPost201ResponseProcessorInformationConsumerAuthenticationResponse',
264
+ :'system_trace_audit_number' => :'String',
265
+ :'payment_account_reference_number' => :'String',
266
+ :'transaction_integrity_code' => :'String',
267
+ :'amex_verbal_auth_reference_number' => :'String',
268
+ :'master_card_service_code' => :'String',
269
+ :'master_card_service_reply_code' => :'String',
270
+ :'master_card_authentication_type' => :'String',
271
+ :'name' => :'String',
272
+ :'routing' => :'PtsV2PaymentsPost201ResponseProcessorInformationRouting',
273
+ :'merchant_number' => :'String',
274
+ :'retrieval_reference_number' => :'String',
275
+ :'payment_url' => :'String',
276
+ :'complete_url' => :'String',
277
+ :'signature' => :'String',
278
+ :'public_key' => :'String',
279
+ :'seller_protection' => :'PtsV2PaymentsPost201ResponseProcessorInformationSellerProtection',
280
+ :'transaction_expiry_date' => :'String',
281
+ :'custom_url' => :'String',
282
+ :'scheme_assigned_id' => :'String',
283
+ :'device_url' => :'String',
284
+ :'disbursement_mode' => :'String',
285
+ :'update_time_utc' => :'String',
286
+ :'expiration_time_utc' => :'String',
287
+ :'order_id' => :'String',
288
+ :'order_status' => :'String',
289
+ :'merchant_risk_prediction' => :'String'
290
+ }
291
+ end
292
+
293
+ # Initializes the object
294
+ # @param [Hash] attributes Model attributes in the form of hash
295
+ def initialize(attributes = {})
296
+ return unless attributes.is_a?(Hash)
297
+
298
+ # convert string to symbol for hash key
299
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
300
+
301
+ if attributes.has_key?(:'authIndicator')
302
+ self.auth_indicator = attributes[:'authIndicator']
303
+ end
304
+
305
+ if attributes.has_key?(:'approvalCode')
306
+ self.approval_code = attributes[:'approvalCode']
307
+ end
308
+
309
+ if attributes.has_key?(:'cardReferenceData')
310
+ self.card_reference_data = attributes[:'cardReferenceData']
311
+ end
312
+
313
+ if attributes.has_key?(:'transactionId')
314
+ self.transaction_id = attributes[:'transactionId']
315
+ end
316
+
317
+ if attributes.has_key?(:'networkTransactionId')
318
+ self.network_transaction_id = attributes[:'networkTransactionId']
319
+ end
320
+
321
+ if attributes.has_key?(:'responseCode')
322
+ self.response_code = attributes[:'responseCode']
323
+ end
324
+
325
+ if attributes.has_key?(:'responseCodeSource')
326
+ self.response_code_source = attributes[:'responseCodeSource']
327
+ end
328
+
329
+ if attributes.has_key?(:'responseDetails')
330
+ self.response_details = attributes[:'responseDetails']
331
+ end
332
+
333
+ if attributes.has_key?(:'responseCategoryCode')
334
+ self.response_category_code = attributes[:'responseCategoryCode']
335
+ end
336
+
337
+ if attributes.has_key?(:'forwardedAcquirerCode')
338
+ self.forwarded_acquirer_code = attributes[:'forwardedAcquirerCode']
339
+ end
340
+
341
+ if attributes.has_key?(:'settlementDate')
342
+ self.settlement_date = attributes[:'settlementDate']
343
+ end
344
+
345
+ if attributes.has_key?(:'sequenceNumber')
346
+ self.sequence_number = attributes[:'sequenceNumber']
347
+ end
348
+
349
+ if attributes.has_key?(:'avs')
350
+ self.avs = attributes[:'avs']
351
+ end
352
+
353
+ if attributes.has_key?(:'cardVerification')
354
+ self.card_verification = attributes[:'cardVerification']
355
+ end
356
+
357
+ if attributes.has_key?(:'merchantAdvice')
358
+ self.merchant_advice = attributes[:'merchantAdvice']
359
+ end
360
+
361
+ if attributes.has_key?(:'electronicVerificationResults')
362
+ self.electronic_verification_results = attributes[:'electronicVerificationResults']
363
+ end
364
+
365
+ if attributes.has_key?(:'achVerification')
366
+ self.ach_verification = attributes[:'achVerification']
367
+ end
368
+
369
+ if attributes.has_key?(:'customer')
370
+ self.customer = attributes[:'customer']
371
+ end
372
+
373
+ if attributes.has_key?(:'consumerAuthenticationResponse')
374
+ self.consumer_authentication_response = attributes[:'consumerAuthenticationResponse']
375
+ end
376
+
377
+ if attributes.has_key?(:'systemTraceAuditNumber')
378
+ self.system_trace_audit_number = attributes[:'systemTraceAuditNumber']
379
+ end
380
+
381
+ if attributes.has_key?(:'paymentAccountReferenceNumber')
382
+ self.payment_account_reference_number = attributes[:'paymentAccountReferenceNumber']
383
+ end
384
+
385
+ if attributes.has_key?(:'transactionIntegrityCode')
386
+ self.transaction_integrity_code = attributes[:'transactionIntegrityCode']
387
+ end
388
+
389
+ if attributes.has_key?(:'amexVerbalAuthReferenceNumber')
390
+ self.amex_verbal_auth_reference_number = attributes[:'amexVerbalAuthReferenceNumber']
391
+ end
392
+
393
+ if attributes.has_key?(:'masterCardServiceCode')
394
+ self.master_card_service_code = attributes[:'masterCardServiceCode']
395
+ end
396
+
397
+ if attributes.has_key?(:'masterCardServiceReplyCode')
398
+ self.master_card_service_reply_code = attributes[:'masterCardServiceReplyCode']
399
+ end
400
+
401
+ if attributes.has_key?(:'masterCardAuthenticationType')
402
+ self.master_card_authentication_type = attributes[:'masterCardAuthenticationType']
403
+ end
404
+
405
+ if attributes.has_key?(:'name')
406
+ self.name = attributes[:'name']
407
+ end
408
+
409
+ if attributes.has_key?(:'routing')
410
+ self.routing = attributes[:'routing']
411
+ end
412
+
413
+ if attributes.has_key?(:'merchantNumber')
414
+ self.merchant_number = attributes[:'merchantNumber']
415
+ end
416
+
417
+ if attributes.has_key?(:'retrievalReferenceNumber')
418
+ self.retrieval_reference_number = attributes[:'retrievalReferenceNumber']
419
+ end
420
+
421
+ if attributes.has_key?(:'paymentUrl')
422
+ self.payment_url = attributes[:'paymentUrl']
423
+ end
424
+
425
+ if attributes.has_key?(:'completeUrl')
426
+ self.complete_url = attributes[:'completeUrl']
427
+ end
428
+
429
+ if attributes.has_key?(:'signature')
430
+ self.signature = attributes[:'signature']
431
+ end
432
+
433
+ if attributes.has_key?(:'publicKey')
434
+ self.public_key = attributes[:'publicKey']
435
+ end
436
+
437
+ if attributes.has_key?(:'sellerProtection')
438
+ self.seller_protection = attributes[:'sellerProtection']
439
+ end
440
+
441
+ if attributes.has_key?(:'transactionExpiryDate')
442
+ self.transaction_expiry_date = attributes[:'transactionExpiryDate']
443
+ end
444
+
445
+ if attributes.has_key?(:'customUrl')
446
+ self.custom_url = attributes[:'customUrl']
447
+ end
448
+
449
+ if attributes.has_key?(:'schemeAssignedId')
450
+ self.scheme_assigned_id = attributes[:'schemeAssignedId']
451
+ end
452
+
453
+ if attributes.has_key?(:'deviceUrl')
454
+ self.device_url = attributes[:'deviceUrl']
455
+ end
456
+
457
+ if attributes.has_key?(:'disbursementMode')
458
+ self.disbursement_mode = attributes[:'disbursementMode']
459
+ end
460
+
461
+ if attributes.has_key?(:'updateTimeUtc')
462
+ self.update_time_utc = attributes[:'updateTimeUtc']
463
+ end
464
+
465
+ if attributes.has_key?(:'expirationTimeUtc')
466
+ self.expiration_time_utc = attributes[:'expirationTimeUtc']
467
+ end
468
+
469
+ if attributes.has_key?(:'orderId')
470
+ self.order_id = attributes[:'orderId']
471
+ end
472
+
473
+ if attributes.has_key?(:'orderStatus')
474
+ self.order_status = attributes[:'orderStatus']
475
+ end
476
+
477
+ if attributes.has_key?(:'merchantRiskPrediction')
478
+ self.merchant_risk_prediction = attributes[:'merchantRiskPrediction']
479
+ end
480
+ end
481
+
482
+ # Show invalid properties with the reasons. Usually used together with valid?
483
+ # @return Array for valid properties with the reasons
484
+ def list_invalid_properties
485
+ invalid_properties = Array.new
486
+ invalid_properties
487
+ end
488
+
489
+ # Check to see if the all the properties in the model are valid
490
+ # @return true if the model is valid
491
+ def valid?
492
+ true
493
+ end
494
+
495
+ # Custom attribute writer method with validation
496
+ # @param [Object] auth_indicator Value to be assigned
497
+ def auth_indicator=(auth_indicator)
498
+ @auth_indicator = auth_indicator
499
+ end
500
+
501
+ # Custom attribute writer method with validation
502
+ # @param [Object] approval_code Value to be assigned
503
+ def approval_code=(approval_code)
504
+ @approval_code = approval_code
505
+ end
506
+
507
+ # Custom attribute writer method with validation
508
+ # @param [Object] card_reference_data Value to be assigned
509
+ def card_reference_data=(card_reference_data)
510
+ @card_reference_data = card_reference_data
511
+ end
512
+
513
+ # Custom attribute writer method with validation
514
+ # @param [Object] transaction_id Value to be assigned
515
+ def transaction_id=(transaction_id)
516
+ @transaction_id = transaction_id
517
+ end
518
+
519
+ # Custom attribute writer method with validation
520
+ # @param [Object] response_code Value to be assigned
521
+ def response_code=(response_code)
522
+ @response_code = response_code
523
+ end
524
+
525
+ # Custom attribute writer method with validation
526
+ # @param [Object] response_code_source Value to be assigned
527
+ def response_code_source=(response_code_source)
528
+ @response_code_source = response_code_source
529
+ end
530
+
531
+ # Custom attribute writer method with validation
532
+ # @param [Object] response_details Value to be assigned
533
+ def response_details=(response_details)
534
+ @response_details = response_details
535
+ end
536
+
537
+ # Custom attribute writer method with validation
538
+ # @param [Object] response_category_code Value to be assigned
539
+ def response_category_code=(response_category_code)
540
+ @response_category_code = response_category_code
541
+ end
542
+
543
+ # Custom attribute writer method with validation
544
+ # @param [Object] forwarded_acquirer_code Value to be assigned
545
+ def forwarded_acquirer_code=(forwarded_acquirer_code)
546
+ @forwarded_acquirer_code = forwarded_acquirer_code
547
+ end
548
+
549
+ # Custom attribute writer method with validation
550
+ # @param [Object] settlement_date Value to be assigned
551
+ def settlement_date=(settlement_date)
552
+ @settlement_date = settlement_date
553
+ end
554
+
555
+ # Custom attribute writer method with validation
556
+ # @param [Object] sequence_number Value to be assigned
557
+ def sequence_number=(sequence_number)
558
+ @sequence_number = sequence_number
559
+ end
560
+
561
+ # Custom attribute writer method with validation
562
+ # @param [Object] system_trace_audit_number Value to be assigned
563
+ def system_trace_audit_number=(system_trace_audit_number)
564
+ @system_trace_audit_number = system_trace_audit_number
565
+ end
566
+
567
+ # Custom attribute writer method with validation
568
+ # @param [Object] payment_account_reference_number Value to be assigned
569
+ def payment_account_reference_number=(payment_account_reference_number)
570
+ @payment_account_reference_number = payment_account_reference_number
571
+ end
572
+
573
+ # Custom attribute writer method with validation
574
+ # @param [Object] transaction_integrity_code Value to be assigned
575
+ def transaction_integrity_code=(transaction_integrity_code)
576
+ @transaction_integrity_code = transaction_integrity_code
577
+ end
578
+
579
+ # Custom attribute writer method with validation
580
+ # @param [Object] amex_verbal_auth_reference_number Value to be assigned
581
+ def amex_verbal_auth_reference_number=(amex_verbal_auth_reference_number)
582
+ @amex_verbal_auth_reference_number = amex_verbal_auth_reference_number
583
+ end
584
+
585
+ # Custom attribute writer method with validation
586
+ # @param [Object] master_card_service_code Value to be assigned
587
+ def master_card_service_code=(master_card_service_code)
588
+ @master_card_service_code = master_card_service_code
589
+ end
590
+
591
+ # Custom attribute writer method with validation
592
+ # @param [Object] master_card_service_reply_code Value to be assigned
593
+ def master_card_service_reply_code=(master_card_service_reply_code)
594
+ @master_card_service_reply_code = master_card_service_reply_code
595
+ end
596
+
597
+ # Custom attribute writer method with validation
598
+ # @param [Object] master_card_authentication_type Value to be assigned
599
+ def master_card_authentication_type=(master_card_authentication_type)
600
+ @master_card_authentication_type = master_card_authentication_type
601
+ end
602
+
603
+ # Custom attribute writer method with validation
604
+ # @param [Object] name Value to be assigned
605
+ def name=(name)
606
+ @name = name
607
+ end
608
+
609
+ # Custom attribute writer method with validation
610
+ # @param [Object] merchant_number Value to be assigned
611
+ def merchant_number=(merchant_number)
612
+ @merchant_number = merchant_number
613
+ end
614
+
615
+ # Custom attribute writer method with validation
616
+ # @param [Object] retrieval_reference_number Value to be assigned
617
+ def retrieval_reference_number=(retrieval_reference_number)
618
+ @retrieval_reference_number = retrieval_reference_number
619
+ end
620
+
621
+ # Custom attribute writer method with validation
622
+ # @param [Object] payment_url Value to be assigned
623
+ def payment_url=(payment_url)
624
+ @payment_url = payment_url
625
+ end
626
+
627
+ # Custom attribute writer method with validation
628
+ # @param [Object] complete_url Value to be assigned
629
+ def complete_url=(complete_url)
630
+ @complete_url = complete_url
631
+ end
632
+
633
+ # Custom attribute writer method with validation
634
+ # @param [Object] transaction_expiry_date Value to be assigned
635
+ def transaction_expiry_date=(transaction_expiry_date)
636
+ @transaction_expiry_date = transaction_expiry_date
637
+ end
638
+
639
+ # Custom attribute writer method with validation
640
+ # @param [Object] scheme_assigned_id Value to be assigned
641
+ def scheme_assigned_id=(scheme_assigned_id)
642
+ @scheme_assigned_id = scheme_assigned_id
643
+ end
644
+
645
+ # Custom attribute writer method with validation
646
+ # @param [Object] device_url Value to be assigned
647
+ def device_url=(device_url)
648
+ @device_url = device_url
649
+ end
650
+
651
+ # Custom attribute writer method with validation
652
+ # @param [Object] order_status Value to be assigned
653
+ def order_status=(order_status)
654
+ @order_status = order_status
655
+ end
656
+
657
+ # Custom attribute writer method with validation
658
+ # @param [Object] merchant_risk_prediction Value to be assigned
659
+ def merchant_risk_prediction=(merchant_risk_prediction)
660
+ @merchant_risk_prediction = merchant_risk_prediction
661
+ end
662
+
663
+ # Checks equality by comparing each attribute.
664
+ # @param [Object] Object to be compared
665
+ def ==(o)
666
+ return true if self.equal?(o)
667
+ self.class == o.class &&
668
+ auth_indicator == o.auth_indicator &&
669
+ approval_code == o.approval_code &&
670
+ card_reference_data == o.card_reference_data &&
671
+ transaction_id == o.transaction_id &&
672
+ network_transaction_id == o.network_transaction_id &&
673
+ response_code == o.response_code &&
674
+ response_code_source == o.response_code_source &&
675
+ response_details == o.response_details &&
676
+ response_category_code == o.response_category_code &&
677
+ forwarded_acquirer_code == o.forwarded_acquirer_code &&
678
+ settlement_date == o.settlement_date &&
679
+ sequence_number == o.sequence_number &&
680
+ avs == o.avs &&
681
+ card_verification == o.card_verification &&
682
+ merchant_advice == o.merchant_advice &&
683
+ electronic_verification_results == o.electronic_verification_results &&
684
+ ach_verification == o.ach_verification &&
685
+ customer == o.customer &&
686
+ consumer_authentication_response == o.consumer_authentication_response &&
687
+ system_trace_audit_number == o.system_trace_audit_number &&
688
+ payment_account_reference_number == o.payment_account_reference_number &&
689
+ transaction_integrity_code == o.transaction_integrity_code &&
690
+ amex_verbal_auth_reference_number == o.amex_verbal_auth_reference_number &&
691
+ master_card_service_code == o.master_card_service_code &&
692
+ master_card_service_reply_code == o.master_card_service_reply_code &&
693
+ master_card_authentication_type == o.master_card_authentication_type &&
694
+ name == o.name &&
695
+ routing == o.routing &&
696
+ merchant_number == o.merchant_number &&
697
+ retrieval_reference_number == o.retrieval_reference_number &&
698
+ payment_url == o.payment_url &&
699
+ complete_url == o.complete_url &&
700
+ signature == o.signature &&
701
+ public_key == o.public_key &&
702
+ seller_protection == o.seller_protection &&
703
+ transaction_expiry_date == o.transaction_expiry_date &&
704
+ custom_url == o.custom_url &&
705
+ scheme_assigned_id == o.scheme_assigned_id &&
706
+ device_url == o.device_url &&
707
+ disbursement_mode == o.disbursement_mode &&
708
+ update_time_utc == o.update_time_utc &&
709
+ expiration_time_utc == o.expiration_time_utc &&
710
+ order_id == o.order_id &&
711
+ order_status == o.order_status &&
712
+ merchant_risk_prediction == o.merchant_risk_prediction
713
+ end
714
+
715
+ # @see the `==` method
716
+ # @param [Object] Object to be compared
717
+ def eql?(o)
718
+ self == o
719
+ end
720
+
721
+ # Calculates hash code according to all attributes.
722
+ # @return [Fixnum] Hash code
723
+ def hash
724
+ [auth_indicator, approval_code, card_reference_data, transaction_id, network_transaction_id, response_code, response_code_source, response_details, response_category_code, forwarded_acquirer_code, settlement_date, sequence_number, avs, card_verification, merchant_advice, electronic_verification_results, ach_verification, customer, consumer_authentication_response, system_trace_audit_number, payment_account_reference_number, transaction_integrity_code, amex_verbal_auth_reference_number, master_card_service_code, master_card_service_reply_code, master_card_authentication_type, name, routing, merchant_number, retrieval_reference_number, payment_url, complete_url, signature, public_key, seller_protection, transaction_expiry_date, custom_url, scheme_assigned_id, device_url, disbursement_mode, update_time_utc, expiration_time_utc, order_id, order_status, merchant_risk_prediction].hash
725
+ end
726
+
727
+ # Builds the object from hash
728
+ # @param [Hash] attributes Model attributes in the form of hash
729
+ # @return [Object] Returns the model itself
730
+ def build_from_hash(attributes)
731
+ return nil unless attributes.is_a?(Hash)
732
+ self.class.swagger_types.each_pair do |key, type|
733
+ if type =~ /\AArray<(.*)>/i
734
+ # check to ensure the input is an array given that the the attribute
735
+ # is documented as an array but the input is not
736
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
737
+ self.send("#{self.class.json_map[key]}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
738
+ end
739
+ elsif !attributes[self.class.attribute_map[key]].nil?
740
+ self.send("#{self.class.json_map[key]}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
741
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
742
+ end
743
+
744
+ self
745
+ end
746
+
747
+ # Deserializes the data based on type
748
+ # @param string type Data type
749
+ # @param string value Value to be deserialized
750
+ # @return [Object] Deserialized data
751
+ def _deserialize(type, value)
752
+ case type.to_sym
753
+ when :DateTime
754
+ DateTime.parse(value)
755
+ when :Date
756
+ Date.parse(value)
757
+ when :String
758
+ value.to_s
759
+ when :Integer
760
+ value.to_i
761
+ when :Float
762
+ value.to_f
763
+ when :BOOLEAN
764
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
765
+ true
766
+ else
767
+ false
768
+ end
769
+ when :Object
770
+ # generic object (usually a Hash), return directly
771
+ value
772
+ when /\AArray<(?<inner_type>.+)>\z/
773
+ inner_type = Regexp.last_match[:inner_type]
774
+ value.map { |v| _deserialize(inner_type, v) }
775
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
776
+ k_type = Regexp.last_match[:k_type]
777
+ v_type = Regexp.last_match[:v_type]
778
+ {}.tap do |hash|
779
+ value.each do |k, v|
780
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
781
+ end
782
+ end
783
+ else # model
784
+ temp_model = CyberSource.const_get(type).new
785
+ temp_model.build_from_hash(value)
786
+ end
787
+ end
788
+
789
+ # Returns the string representation of the object
790
+ # @return [String] String presentation of the object
791
+ def to_s
792
+ to_hash.to_s
793
+ end
794
+
795
+ # to_body is an alias to to_hash (backward compatibility)
796
+ # @return [Hash] Returns the object in the form of hash
797
+ def to_body
798
+ to_hash
799
+ end
800
+
801
+ # Returns the object in the form of hash
802
+ # @return [Hash] Returns the object in the form of hash
803
+ def to_hash
804
+ hash = {}
805
+ self.class.attribute_map.each_pair do |attr, param|
806
+ value = self.send(attr)
807
+ next if value.nil?
808
+ hash[param] = _to_hash(value)
809
+ end
810
+ hash
811
+ end
812
+
813
+ # Outputs non-array value in the form of hash
814
+ # For object, use to_hash. Otherwise, just return the value
815
+ # @param [Object] value Any valid value
816
+ # @return [Hash] Returns the value in the form of hash
817
+ def _to_hash(value)
818
+ if value.is_a?(Array)
819
+ value.compact.map { |v| _to_hash(v) }
820
+ elsif value.is_a?(Hash)
821
+ {}.tap do |hash|
822
+ value.each { |k, v| hash[k] = _to_hash(v) }
823
+ end
824
+ elsif value.respond_to? :to_hash
825
+ value.to_hash
826
+ else
827
+ value
828
+ end
829
+ end
830
+ end
831
+ end