cybersource_rest_client 0.0.65 → 0.0.67

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 (255) hide show
  1. checksums.yaml +4 -4
  2. data/lib/AuthenticationSDK/core/MerchantConfig.rb +2 -0
  3. data/lib/cybersource_rest_client/api/batches_api.rb +1 -1
  4. data/lib/cybersource_rest_client/api/billing_agreements_api.rb +3 -3
  5. data/lib/cybersource_rest_client/api/bin_lookup_api.rb +1 -1
  6. data/lib/cybersource_rest_client/api/capture_api.rb +1 -1
  7. data/lib/cybersource_rest_client/api/create_new_webhooks_api.rb +2 -2
  8. data/lib/cybersource_rest_client/api/credit_api.rb +1 -1
  9. data/lib/cybersource_rest_client/api/customer_api.rb +2 -2
  10. data/lib/cybersource_rest_client/api/customer_payment_instrument_api.rb +2 -2
  11. data/lib/cybersource_rest_client/api/customer_shipping_address_api.rb +2 -2
  12. data/lib/cybersource_rest_client/api/decision_manager_api.rb +5 -5
  13. data/lib/cybersource_rest_client/api/emv_tag_details_api.rb +1 -1
  14. data/lib/cybersource_rest_client/api/flex_api_api.rb +92 -0
  15. data/lib/cybersource_rest_client/api/instrument_identifier_api.rb +3 -3
  16. data/lib/cybersource_rest_client/api/invoice_settings_api.rb +1 -1
  17. data/lib/cybersource_rest_client/api/invoices_api.rb +2 -2
  18. data/lib/cybersource_rest_client/api/manage_webhooks_api.rb +2 -2
  19. data/lib/cybersource_rest_client/api/merchant_boarding_api.rb +1 -3
  20. data/lib/cybersource_rest_client/api/microform_integration_api.rb +1 -1
  21. data/lib/cybersource_rest_client/api/orders_api.rb +167 -0
  22. data/lib/cybersource_rest_client/api/payer_authentication_api.rb +3 -3
  23. data/lib/cybersource_rest_client/api/payment_instrument_api.rb +2 -2
  24. data/lib/cybersource_rest_client/api/payments_api.rb +6 -6
  25. data/lib/cybersource_rest_client/api/payouts_api.rb +1 -1
  26. data/lib/cybersource_rest_client/api/plans_api.rb +2 -2
  27. data/lib/cybersource_rest_client/api/push_funds_api.rb +1 -1
  28. data/lib/cybersource_rest_client/api/refund_api.rb +2 -2
  29. data/lib/cybersource_rest_client/api/replay_webhooks_api.rb +1 -1
  30. data/lib/cybersource_rest_client/api/report_subscriptions_api.rb +2 -2
  31. data/lib/cybersource_rest_client/api/reports_api.rb +1 -1
  32. data/lib/cybersource_rest_client/api/reversal_api.rb +2 -2
  33. data/lib/cybersource_rest_client/api/search_transactions_api.rb +1 -1
  34. data/lib/cybersource_rest_client/api/subscriptions_api.rb +2 -2
  35. data/lib/cybersource_rest_client/api/taxes_api.rb +2 -2
  36. data/lib/cybersource_rest_client/api/token_api.rb +1 -1
  37. data/lib/cybersource_rest_client/api/unified_checkout_capture_context_api.rb +1 -1
  38. data/lib/cybersource_rest_client/api/user_management_search_api.rb +1 -1
  39. data/lib/cybersource_rest_client/api/verification_api.rb +2 -2
  40. data/lib/cybersource_rest_client/api/void_api.rb +5 -5
  41. data/lib/cybersource_rest_client/models/boardingv1registrations_organization_information.rb +314 -360
  42. data/lib/cybersource_rest_client/models/boardingv1registrations_organization_information_business_information.rb +437 -483
  43. data/lib/cybersource_rest_client/models/boardingv1registrations_organization_information_kyc.rb +337 -381
  44. data/lib/cybersource_rest_client/models/boardingv1registrations_organization_information_kyc_deposit_bank_account.rb +297 -330
  45. data/lib/cybersource_rest_client/models/boardingv1registrations_registration_information.rb +271 -329
  46. data/lib/cybersource_rest_client/models/card_processing_config_common.rb +433 -445
  47. data/lib/cybersource_rest_client/models/card_processing_config_common_acquirer.rb +23 -1
  48. data/lib/cybersource_rest_client/models/card_processing_config_common_merchant_descriptor_information.rb +16 -5
  49. data/lib/cybersource_rest_client/models/card_processing_config_common_processors.rb +719 -720
  50. data/lib/cybersource_rest_client/models/check_payer_auth_enrollment_request.rb +321 -321
  51. data/lib/cybersource_rest_client/models/create_order_request.rb +229 -0
  52. data/lib/cybersource_rest_client/models/create_payment_request.rb +462 -462
  53. data/lib/cybersource_rest_client/models/flexv2sessions_fields.rb +199 -0
  54. data/lib/cybersource_rest_client/models/flexv2sessions_fields_order_information.rb +209 -0
  55. data/lib/cybersource_rest_client/models/{inline_response_400_5_details.rb → flexv2sessions_fields_order_information_amount_details.rb} +199 -201
  56. data/lib/cybersource_rest_client/models/flexv2sessions_fields_order_information_amount_details_total_amount.rb +189 -0
  57. data/lib/cybersource_rest_client/models/flexv2sessions_fields_order_information_bill_to.rb +309 -0
  58. data/lib/cybersource_rest_client/models/flexv2sessions_fields_order_information_ship_to.rb +289 -0
  59. data/lib/cybersource_rest_client/models/flexv2sessions_fields_payment_information.rb +189 -0
  60. data/lib/cybersource_rest_client/models/flexv2sessions_fields_payment_information_card.rb +229 -0
  61. data/lib/cybersource_rest_client/models/generate_capture_context_request.rb +227 -225
  62. data/lib/cybersource_rest_client/models/generate_flex_api_capture_context_request.rb +189 -0
  63. data/lib/cybersource_rest_client/models/generate_unified_checkout_capture_context_request.rb +293 -290
  64. data/lib/cybersource_rest_client/models/inline_response_200_1.rb +253 -253
  65. data/lib/cybersource_rest_client/models/inline_response_200_1_integration_information.rb +204 -204
  66. data/lib/cybersource_rest_client/models/inline_response_200_1_integration_information_tenant_configurations.rb +1 -34
  67. data/lib/cybersource_rest_client/models/inline_response_200_2.rb +213 -213
  68. data/lib/cybersource_rest_client/models/inline_response_200_3.rb +335 -335
  69. data/lib/cybersource_rest_client/models/inline_response_200_5.rb +251 -251
  70. data/lib/cybersource_rest_client/models/inline_response_200_5__embedded.rb +191 -191
  71. data/lib/cybersource_rest_client/models/inline_response_200_5__embedded__links.rb +191 -191
  72. data/lib/cybersource_rest_client/models/inline_response_200_5__embedded__links_reports.rb +190 -190
  73. data/lib/cybersource_rest_client/models/inline_response_200_5__embedded_batches.rb +295 -295
  74. data/lib/cybersource_rest_client/models/inline_response_200_5__embedded_totals.rb +229 -229
  75. data/lib/cybersource_rest_client/models/inline_response_200_5__links.rb +200 -200
  76. data/lib/cybersource_rest_client/models/inline_response_200_6.rb +290 -290
  77. data/lib/cybersource_rest_client/models/inline_response_200_6__links.rb +201 -201
  78. data/lib/cybersource_rest_client/models/inline_response_200_6__links_report.rb +189 -189
  79. data/lib/cybersource_rest_client/models/inline_response_200_6_billing.rb +219 -219
  80. data/lib/cybersource_rest_client/models/inline_response_200_7.rb +292 -292
  81. data/lib/cybersource_rest_client/models/inline_response_200_7_records.rb +209 -209
  82. data/lib/cybersource_rest_client/models/inline_response_200_7_response_record.rb +307 -307
  83. data/lib/cybersource_rest_client/models/inline_response_200_7_response_record_additional_updates.rb +242 -242
  84. data/lib/cybersource_rest_client/models/inline_response_200_7_source_record.rb +295 -295
  85. data/lib/cybersource_rest_client/models/inline_response_201_2.rb +281 -315
  86. data/lib/cybersource_rest_client/models/inline_response_201_2_integration_information_tenant_configurations.rb +253 -286
  87. data/lib/cybersource_rest_client/models/inline_response_201_2_registration_information.rb +222 -256
  88. data/lib/cybersource_rest_client/models/inline_response_201_2_setups_payments.rb +359 -359
  89. data/lib/cybersource_rest_client/models/inline_response_201_2_setups_payments_card_processing_configuration_status.rb +255 -299
  90. data/lib/cybersource_rest_client/models/inline_response_201_2_setups_payments_card_processing_subscription_status.rb +234 -278
  91. data/lib/cybersource_rest_client/models/inline_response_400_1.rb +242 -235
  92. data/lib/cybersource_rest_client/models/inline_response_400_1_details.rb +199 -0
  93. data/lib/cybersource_rest_client/models/inline_response_400_2.rb +3 -3
  94. data/lib/cybersource_rest_client/models/inline_response_400_3.rb +1 -1
  95. data/lib/cybersource_rest_client/models/inline_response_400_4.rb +37 -60
  96. data/lib/cybersource_rest_client/models/inline_response_400_5.rb +258 -269
  97. data/lib/cybersource_rest_client/models/{inline_response_400_4_fields.rb → inline_response_400_5_fields.rb} +1 -1
  98. data/lib/cybersource_rest_client/models/inline_response_400_6.rb +35 -75
  99. data/lib/cybersource_rest_client/models/inline_response_400_6_details.rb +201 -199
  100. data/lib/cybersource_rest_client/models/inline_response_404_1.rb +2 -36
  101. data/lib/cybersource_rest_client/models/inline_response_422_1.rb +2 -36
  102. data/lib/cybersource_rest_client/models/inline_response_500_2.rb +1 -35
  103. data/lib/cybersource_rest_client/models/microformv2sessions_checkout_api_initialization.rb +281 -279
  104. data/lib/cybersource_rest_client/models/patch_instrument_identifier_request.rb +1 -1
  105. data/lib/cybersource_rest_client/models/payer_auth_config_card_types_verified_by_visa_currencies.rb +244 -244
  106. data/lib/cybersource_rest_client/models/payer_auth_setup_request.rb +219 -219
  107. data/lib/cybersource_rest_client/models/payments_products.rb +369 -369
  108. data/lib/cybersource_rest_client/models/payments_products_card_present_connect_subscription_information.rb +202 -236
  109. data/lib/cybersource_rest_client/models/payments_products_card_processing_subscription_information.rb +215 -249
  110. data/lib/cybersource_rest_client/models/payments_products_differential_fee_subscription_information.rb +212 -246
  111. data/lib/cybersource_rest_client/models/payments_products_digital_payments_subscription_information.rb +215 -249
  112. data/lib/cybersource_rest_client/models/payments_products_e_check_subscription_information.rb +215 -249
  113. data/lib/cybersource_rest_client/models/payments_products_payer_authentication_subscription_information.rb +202 -236
  114. data/lib/cybersource_rest_client/models/payments_products_service_fee.rb +199 -199
  115. data/lib/cybersource_rest_client/models/payments_products_service_fee_configuration_information.rb +189 -189
  116. data/lib/cybersource_rest_client/models/payments_products_service_fee_configuration_information_configurations.rb +266 -266
  117. data/lib/cybersource_rest_client/models/payments_products_service_fee_configuration_information_configurations_merchant_information.rb +239 -239
  118. data/lib/cybersource_rest_client/models/payments_products_service_fee_configuration_information_configurations_payment_information.rb +2 -48
  119. data/lib/cybersource_rest_client/models/payments_products_service_fee_configuration_information_configurations_products.rb +190 -190
  120. data/lib/cybersource_rest_client/models/post_instrument_identifier_enrollment_request.rb +1 -1
  121. data/lib/cybersource_rest_client/models/post_instrument_identifier_request.rb +1 -1
  122. data/lib/cybersource_rest_client/models/pts_v2_create_order_post201_response.rb +269 -0
  123. data/lib/cybersource_rest_client/models/{tss_v2_transactions_post201_response__embedded_buyer_information.rb → pts_v2_create_order_post201_response_buyer_information.rb} +196 -196
  124. data/lib/cybersource_rest_client/models/pts_v2_create_order_post201_response_processor_information.rb +224 -0
  125. data/lib/cybersource_rest_client/models/{bin_lookupv400_response.rb → pts_v2_create_order_post400_response.rb} +224 -224
  126. data/lib/cybersource_rest_client/models/pts_v2_credits_post201_response_1_processor_information.rb +213 -213
  127. data/lib/cybersource_rest_client/models/pts_v2_incremental_authorization_patch201_response_processor_information.rb +295 -284
  128. data/lib/cybersource_rest_client/models/pts_v2_payments_captures_post201_response.rb +305 -295
  129. data/lib/cybersource_rest_client/models/pts_v2_payments_captures_post201_response_embedded_actions.rb +189 -0
  130. data/lib/cybersource_rest_client/models/pts_v2_payments_captures_post201_response_embedded_actions_ap_capture.rb +190 -0
  131. data/lib/cybersource_rest_client/models/pts_v2_payments_captures_post201_response_processor_information.rb +263 -252
  132. data/lib/cybersource_rest_client/models/pts_v2_payments_order_post201_response_buyer_information_personal_identification.rb +207 -207
  133. data/lib/cybersource_rest_client/models/pts_v2_payments_order_post201_response_payment_information_e_wallet.rb +241 -230
  134. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_embedded_actions_consumer_authentication.rb +212 -212
  135. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information_tokenized_card.rb +309 -309
  136. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processing_information.rb +227 -217
  137. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processing_information_capture_options.rb +196 -0
  138. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information.rb +67 -6
  139. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information_seller_protection.rb +237 -218
  140. data/lib/cybersource_rest_client/models/pts_v2_payments_refund_post201_response_processor_information.rb +313 -302
  141. data/lib/cybersource_rest_client/models/pts_v2_payments_reversals_post201_response.rb +1 -1
  142. data/lib/cybersource_rest_client/models/pts_v2_payments_reversals_post201_response_processor_information.rb +309 -309
  143. data/lib/cybersource_rest_client/models/pts_v2_payments_voids_post201_response_processor_information.rb +224 -224
  144. data/lib/cybersource_rest_client/models/pts_v2_update_order_patch201_response.rb +200 -0
  145. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_aggregator_information.rb +240 -0
  146. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_aggregator_information_sub_merchant.rb +196 -0
  147. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_merchant_information.rb +205 -0
  148. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_order_information_amount_details.rb +302 -292
  149. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_point_of_service_information.rb +189 -0
  150. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_point_of_service_information_emv.rb +196 -0
  151. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_processing_information.rb +318 -232
  152. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_processing_information_payouts_options.rb +282 -231
  153. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_recipient_information.rb +446 -378
  154. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_recipient_information_payment_information_card.rb +321 -321
  155. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_recipient_information_personal_identification.rb +256 -239
  156. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_sender_information.rb +533 -448
  157. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_sender_information_account.rb +222 -222
  158. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_sender_information_payment_information_card.rb +317 -317
  159. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_sender_information_personal_identification.rb +256 -256
  160. data/lib/cybersource_rest_client/models/ptsv2intents_client_reference_information.rb +196 -0
  161. data/lib/cybersource_rest_client/models/ptsv2intents_merchant_information.rb +223 -0
  162. data/lib/cybersource_rest_client/models/ptsv2intents_merchant_information_merchant_descriptor.rb +207 -0
  163. data/lib/cybersource_rest_client/models/ptsv2intents_order_information.rb +231 -0
  164. data/lib/cybersource_rest_client/models/ptsv2intents_order_information_amount_details.rb +315 -0
  165. data/lib/cybersource_rest_client/models/ptsv2intents_order_information_bill_to.rb +196 -0
  166. data/lib/cybersource_rest_client/models/ptsv2intents_order_information_invoice_details.rb +190 -0
  167. data/lib/cybersource_rest_client/models/ptsv2intents_order_information_line_items.rb +309 -0
  168. data/lib/cybersource_rest_client/models/ptsv2intents_order_information_ship_to.rb +332 -0
  169. data/lib/cybersource_rest_client/models/ptsv2intents_payment_information.rb +189 -0
  170. data/lib/cybersource_rest_client/models/ptsv2intents_payment_information_payment_type.rb +200 -0
  171. data/lib/cybersource_rest_client/models/ptsv2intents_payment_information_payment_type_method.rb +190 -0
  172. data/lib/cybersource_rest_client/models/ptsv2intents_processing_information.rb +219 -0
  173. data/lib/cybersource_rest_client/models/ptsv2intents_processing_information_authorization_options.rb +196 -0
  174. data/lib/cybersource_rest_client/models/ptsv2intentsid_merchant_information.rb +189 -0
  175. data/lib/cybersource_rest_client/models/ptsv2intentsid_order_information.rb +221 -0
  176. data/lib/cybersource_rest_client/models/ptsv2intentsid_processing_information.rb +192 -0
  177. data/lib/cybersource_rest_client/models/ptsv2payments_agreement_information.rb +207 -190
  178. data/lib/cybersource_rest_client/models/ptsv2payments_buyer_information_personal_identification.rb +229 -229
  179. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_amount_details.rb +651 -641
  180. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_amount_details_octsurcharge.rb +196 -0
  181. data/lib/cybersource_rest_client/models/ptsv2payments_processing_information.rb +721 -704
  182. data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_authorization_options.rb +1 -1
  183. data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_capture_options.rb +264 -247
  184. data/lib/cybersource_rest_client/models/ptsv2payments_recipient_information.rb +383 -383
  185. data/lib/cybersource_rest_client/models/ptsv2payments_recurring_payment_information.rb +14 -0
  186. data/lib/cybersource_rest_client/models/ptsv2payments_sender_information.rb +298 -298
  187. data/lib/cybersource_rest_client/models/ptsv2paymentsid_client_reference_information.rb +22 -5
  188. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_processing_information_authorization_options.rb +230 -230
  189. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_processing_information_capture_options.rb +247 -230
  190. data/lib/cybersource_rest_client/models/ptsv2refreshpaymentstatusid_processing_information.rb +192 -192
  191. data/lib/cybersource_rest_client/models/push_funds201_response.rb +337 -317
  192. data/lib/cybersource_rest_client/models/push_funds201_response_error_information.rb +225 -225
  193. data/lib/cybersource_rest_client/models/push_funds201_response_payment_information.rb +189 -0
  194. data/lib/cybersource_rest_client/models/push_funds201_response_payment_information_tokenized_card.rb +205 -0
  195. data/lib/cybersource_rest_client/models/push_funds201_response_processing_information.rb +189 -0
  196. data/lib/cybersource_rest_client/models/push_funds201_response_processing_information_domestic_national_net.rb +197 -0
  197. data/lib/cybersource_rest_client/models/push_funds201_response_processor_information.rb +329 -241
  198. data/lib/cybersource_rest_client/models/push_funds201_response_processor_information_routing.rb +196 -0
  199. data/lib/cybersource_rest_client/models/push_funds201_response_processor_information_settlement.rb +207 -0
  200. data/lib/cybersource_rest_client/models/push_funds201_response_recipient_information.rb +206 -189
  201. data/lib/cybersource_rest_client/models/push_funds502_response.rb +246 -246
  202. data/lib/cybersource_rest_client/models/push_funds_request.rb +264 -239
  203. data/lib/cybersource_rest_client/models/rbsv1subscriptions_processing_information.rb +206 -206
  204. data/lib/cybersource_rest_client/models/risk_v1_authentication_results_post201_response.rb +269 -269
  205. data/lib/cybersource_rest_client/models/risk_v1_authentication_results_post201_response_consumer_authentication_information.rb +622 -622
  206. data/lib/cybersource_rest_client/models/risk_v1_authentications_post201_response.rb +279 -279
  207. data/lib/cybersource_rest_client/models/risk_v1_authentications_post400_response_1.rb +235 -235
  208. data/lib/cybersource_rest_client/models/riskv1authenticationresults_consumer_authentication_information.rb +312 -312
  209. data/lib/cybersource_rest_client/models/riskv1authenticationresults_payment_information.rb +1 -1
  210. data/lib/cybersource_rest_client/models/riskv1authenticationresults_payment_information_card.rb +241 -241
  211. data/lib/cybersource_rest_client/models/riskv1authentications_device_information.rb +434 -434
  212. data/lib/cybersource_rest_client/models/riskv1authentications_payment_information.rb +219 -219
  213. data/lib/cybersource_rest_client/models/riskv1authentications_payment_information_customer.rb +222 -0
  214. data/lib/cybersource_rest_client/models/riskv1authenticationsetups_client_reference_information.rb +240 -240
  215. data/lib/cybersource_rest_client/models/riskv1authenticationsetups_payment_information_customer.rb +9 -0
  216. data/lib/cybersource_rest_client/models/riskv1decisions_consumer_authentication_information.rb +795 -812
  217. data/lib/cybersource_rest_client/models/sa_config_payment_methods.rb +191 -213
  218. data/lib/cybersource_rest_client/models/tms_embedded_instrument_identifier.rb +1 -1
  219. data/lib/cybersource_rest_client/models/{tms_embedded_instrument_identifier_tokenized_card.rb → tmsv2_tokenized_card.rb} +16 -6
  220. data/lib/cybersource_rest_client/models/{tms_embedded_instrument_identifier_tokenized_card_card.rb → tmsv2_tokenized_card_card.rb} +1 -1
  221. data/lib/cybersource_rest_client/models/tmsv2_tokenized_card_metadata.rb +189 -0
  222. data/lib/cybersource_rest_client/models/tmsv2_tokenized_card_metadata_card_art.rb +250 -0
  223. data/lib/cybersource_rest_client/models/tmsv2_tokenized_card_metadata_card_art_background_asset.rb +200 -0
  224. data/lib/cybersource_rest_client/models/tmsv2_tokenized_card_metadata_card_art_background_asset__links.rb +189 -0
  225. data/lib/cybersource_rest_client/models/tmsv2_tokenized_card_metadata_card_art_background_asset__links_self.rb +190 -0
  226. data/lib/cybersource_rest_client/models/tmsv2_tokenized_card_metadata_card_art_brand_logo_asset.rb +200 -0
  227. data/lib/cybersource_rest_client/models/tmsv2_tokenized_card_metadata_card_art_brand_logo_asset__links.rb +189 -0
  228. data/lib/cybersource_rest_client/models/tmsv2_tokenized_card_metadata_card_art_brand_logo_asset__links_self.rb +190 -0
  229. data/lib/cybersource_rest_client/models/tmsv2_tokenized_card_metadata_card_art_co_brand_logo_asset.rb +200 -0
  230. data/lib/cybersource_rest_client/models/tmsv2_tokenized_card_metadata_card_art_co_brand_logo_asset__links.rb +189 -0
  231. data/lib/cybersource_rest_client/models/tmsv2_tokenized_card_metadata_card_art_co_brand_logo_asset__links_self.rb +190 -0
  232. data/lib/cybersource_rest_client/models/tmsv2_tokenized_card_metadata_card_art_combined_asset.rb +200 -0
  233. data/lib/cybersource_rest_client/models/tmsv2_tokenized_card_metadata_card_art_combined_asset__links.rb +189 -0
  234. data/lib/cybersource_rest_client/models/tmsv2_tokenized_card_metadata_card_art_combined_asset__links_self.rb +190 -0
  235. data/lib/cybersource_rest_client/models/tmsv2_tokenized_card_metadata_card_art_icon_asset.rb +200 -0
  236. data/lib/cybersource_rest_client/models/tmsv2_tokenized_card_metadata_card_art_icon_asset__links.rb +189 -0
  237. data/lib/cybersource_rest_client/models/tmsv2_tokenized_card_metadata_card_art_icon_asset__links_self.rb +190 -0
  238. data/lib/cybersource_rest_client/models/tmsv2_tokenized_card_metadata_card_art_issuer_logo_asset.rb +200 -0
  239. data/lib/cybersource_rest_client/models/tmsv2_tokenized_card_metadata_card_art_issuer_logo_asset__links.rb +189 -0
  240. data/lib/cybersource_rest_client/models/tmsv2_tokenized_card_metadata_card_art_issuer_logo_asset__links_self.rb +190 -0
  241. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_processing_information_authorization_options.rb +245 -245
  242. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_processor_information.rb +383 -383
  243. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_processor_information_multi_processor_routing.rb +235 -235
  244. data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_processor_information.rb +223 -206
  245. data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_transaction_summaries.rb +392 -392
  246. data/lib/cybersource_rest_client/models/update_order_request.rb +229 -0
  247. data/lib/cybersource_rest_client/models/upv1capturecontexts_capture_mandate.rb +253 -253
  248. data/lib/cybersource_rest_client/models/upv1capturecontexts_checkout_api_initialization.rb +280 -279
  249. data/lib/cybersource_rest_client/models/upv1capturecontexts_order_information_amount_details.rb +201 -199
  250. data/lib/cybersource_rest_client/models/validate_request.rb +249 -249
  251. data/lib/cybersource_rest_client/models/vt_config_card_not_present_global_payment_information_basic_information.rb +273 -317
  252. data/lib/cybersource_rest_client/models/vt_config_card_not_present_global_payment_information_payment_information.rb +315 -337
  253. data/lib/cybersource_rest_client/utilities/tracking/sdk_tracker.rb +5 -1
  254. data/lib/cybersource_rest_client.rb +75 -6
  255. metadata +78 -29
@@ -1,720 +1,719 @@
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 CardProcessingConfigCommonProcessors
16
- # Determines the batching group that separates merchants for special batching times. Batching groups can separate merchant batches by the following criteria: * Timezone * Merchant deadlines * Large merchants (top 10) * Merchants with Service-Level Agreements Applicable for Chase Paymentech Salem (chasepaymentechsalem), Streamline (streamline2), Six (six), Barclays (barclays2), Paymentech Tampa (paymentechtampa), CMCIC (cmcic), FDC Nashville (smartfdc), RUPAY, American Express Direct (amexdirect), GPN (gpn), VPC, GPX (gpx), CB2A, Barclays HISO (barclayshiso), TSYS (tsys) and FDI Global (fdiglobal) processors. Validation details (for selected processors)... <table> <thead><tr><th>Processor</th><th>Acceptance Type</th><th>Required</th></tr></thead> <tr><td>Barclays</td><td>cnp, cp, hybrid</td><td>Yes</td></tr> <tr><td>Barclays HISO</td><td>cnp, cp, hybrid</td><td>Yes</td></tr> <tr><td>American Express Direct</td><td>cnp, cp, hybrid</td><td>No</td></tr> </table>
17
- attr_accessor :batch_group
18
-
19
- # Indicates the type of money transfer used in the transaction. Applicable for VPC and GPX (gpx) processors.
20
- attr_accessor :business_application_id
21
-
22
- # Identify merchants that participate in Select Merchant Fee (SMF) programs. Unique to the merchant. Applicable for GPX (gpx) and VPC processors.
23
- attr_accessor :merchant_verification_value
24
-
25
- # Routing Number to identify banks within the United States. Applicable for GPX (gpx) processors.
26
- attr_accessor :aba_number
27
-
28
- attr_accessor :acquirer
29
-
30
- # Merchant ID assigned by an acquirer or a processor. Should not be overriden by any other party. Validation details (for selected processors)... <table> <thead><tr><th>Processor</th><th>Acceptance Type</th><th>Required</th><th>Min. Length</th><th>Max. Length</th><th>Regex</th></tr></thead> <tr><td>Barclays HISO</td><td>cp, cnp, hybrid</td><td>Yes</td><td>1</td><td>15</td><td>^[0-9a-zA-Z]+$</td></tr> <tr><td>Barclays</td><td>cp, cnp, hybrid</td><td>Yes</td><td>1</td><td>11</td><td>^[0-9a-zA-Z]+$</td></tr> </table>
31
- attr_accessor :merchant_id
32
-
33
- # The 'Terminal Id' aka TID, is an identifier used for with your payments processor. Depending on the processor and payment acceptance type this may also be the default Terminal ID used for Card Present and Virtual Terminal transactions. Validation details (for selected processors)... <table> <thead><tr><th>Processor</th><th>Acceptance Type</th><th>Required</th><th>Min. Length</th><th>Max. Length</th><th>Regex</th></tr></thead> <tr><td>Barclays HISO</td><td>cnp, hybrid</td><td>Yes</td><td>1</td><td>16</td><td>^[0-9a-zA-Z]+$</td></tr> <tr><td>Barclays HISO</td><td>cp</td><td>No</td><td>1</td><td>16</td><td>^[0-9a-zA-Z]+$</td></tr> </table>
34
- attr_accessor :terminal_id
35
-
36
- # Valid values are: * VISA * MASTERCARD * AMERICAN_EXPRESS * CUP * EFTPOS * DINERS_CLUB * DISCOVER * JCB
37
- attr_accessor :payment_types
38
-
39
- # Three-character [ISO 4217 ALPHA-3 Standard Currency Codes.](http://apps.cybersource.com/library/documentation/sbc/quickref/currencies.pdf)
40
- attr_accessor :currencies
41
-
42
- # The Standard Industrial Classification (SIC) are four-digit codes that categorize the industries that companies belong to based on their business activities. Standard Industrial Classification codes were mostly replaced by the six-digit North American Industry Classification System (NAICS). Applicable for VPC and GPX (gpx) processors.
43
- attr_accessor :sic_code
44
-
45
- # Allows multiple captures for a single authorization transaction. Applicable for Paymentech Tampa (paymentechtampa), VPC, American Express Direct (amexdirect) and GPX (gpx) processors. Validation details (for selected processors)... <table> <thead><tr><th>Processor</th><th>Acceptance Type</th><th>Required</th><th>Default Value</th></tr></thead> <tr><td>American Express Direct</td><td>cp, hybrid</td><td>Yes</td><td>No</td></tr> <tr><td>American Express Direct</td><td>cnp</td><td>No</td><td>No</td></tr> </table>
46
- attr_accessor :allow_multiple_bills
47
-
48
- # Enables partner to enable/disable merchant descriptors values. Applicable for VPC, EFTPOS and CUP processors.
49
- attr_accessor :allow_merchant_descriptor_override
50
-
51
- # To enable airline transactions. Applicable for TSYS (tsys), VPC, Elavon Americas (elavonamericas), FDI Global (fdiglobal), GPX (gpx), Barclays (barclays2) and American Express Direct (amexdirect) processors. Validation details (for selected processors)... <table> <thead><tr><th>Processor</th><th>Acceptance Type</th><th>Required</th></tr></thead> <tr><td>Barclays</td><td>cnp, cp, hybrid</td><td>No</td></tr> <tr><td>American Express Direct</td><td>cp, cnp, hybrid</td><td>No</td></tr> </table>
52
- attr_accessor :enhanced_data
53
-
54
- # Indicates whether the merchant is compliant with Hotel and Motel Fire Safety Act of 1990. Applicable for GPX (gpx) and VPC processors.
55
- attr_accessor :fire_safety_indicator
56
-
57
- # To enable quasi-cash transactions. A quasi-cash transaction is a cash-like transaction for the sale of items that are directly convertible to cash, such as:- Casino gaming chips, Money orders, Wire transfers. Applicable for GPX (gpx), TSYS (tsys), Barclays (barclays2) and VPC processors. Validation details (for selected processors)... <table> <thead><tr><th>Processor</th><th>Acceptance Type</th><th>Required</th><th>Default Value</th></tr></thead> <tr><td>Barclays</td><td>cnp, cp, hybrid</td><td>No</td><td>No</td></tr> </table>
58
- attr_accessor :quasi_cash
59
-
60
- # Identifier assigned by the acquirer. Applicable for RUPAY, VPC and Six (six) processors.
61
- attr_accessor :acquirer_merchant_id
62
-
63
- # Enables Enhanced AVS/Automated Address Verification Plus (AAV+). Valid values: \"basic\" - Standard address verification system. When a processor supports AVS for a transaction's card type, the issuing bank uses AVS to confirm that the customer has provided the correct billing address. When a customer provides incorrect information, the transaction might be fraudulent. \"basic + name\" - Enhanced address verification system. Consists of the standard AVS functionality plus verification of some additional fields. The additional fields that are verified for Enhanced AVS are: - customer_firstname - customer_lastname \"basic + name + shipto\" - Automated address verification plus. Consists of the Enhanced AVS functionality plus verification of some additional fields. AAV+ intended for merchants who deliver physical goods to a different address than the billing address. AAV+ verifies the additional fields only when the standard and Enhanced AVS tests pass first. For information about Enhanced AVS - The additional fields that are verified for AAV+ are: - ship_to_firstname - ship_to_lastname - ship_to_address1 - ship_to_country - ship_to_zip - ship_to_phone - customer_phone(American Express Direct only) Applicable for American Express Direct (amexdirect) processor. Validation details (for selected processors)... <table> <thead><tr><th>Processor</th><th>Acceptance Type</th><th>Required</th><th>Default Value</th></tr></thead> <tr><td>American Express Direct</td><td>cnp, cp, hybrid</td><td>Yes</td><td>basic</td></tr> </table>
64
- attr_accessor :avs_format
65
-
66
- # Amex Direct specific merchant config value which determines what length (either 9 or Unique 12-char reference number) of reference number will be CYBS generated if the merchant does not pass in a trans_ref_no. Can be any combination of alpha, numeric and special characters, and/or binary data in hexadecimal. Applicable for American Express Direct (amexdirect) processor. Validation details (for selected processors)... <table> <thead><tr><th>Processor</th><th>Acceptance Type</th><th>Required</th><th>Default Value</th></tr></thead> <tr><td>American Express Direct</td><td>cp, cnp, hybrid</td><td>No</td><td>No</td></tr> </table>
67
- attr_accessor :enable_long_trans_ref_no
68
-
69
- # Field that indicates whether merchant will send level 2 data for Amex cards. Applicable for American Express Direct (amexdirect) processor. Validation details (for selected processors)... <table> <thead><tr><th>Processor</th><th>Acceptance Type</th><th>Required</th><th>Default Value</th></tr></thead> <tr><td>American Express Direct</td><td>cp, cnp, hybrid</td><td>No</td><td>No</td></tr> </table>
70
- attr_accessor :enable_level2
71
-
72
- # This flag related to multiple transaction advice addendum field. It is used to display descriptive information about a transaction on customer's American Express card statement. Applicable for American Express Direct (amexdirect) processor. Validation details (for selected processors)... <table> <thead><tr><th>Processor</th><th>Acceptance Type</th><th>Required</th><th>Default Value</th></tr></thead> <tr><td>American Express Direct</td><td>cp, cnp, hybrid</td><td>No</td><td>No</td></tr> </table>
73
- attr_accessor :enable_multiple_transaction_advice_addendum
74
-
75
- # Advice addendum field. It is used to display descriptive information about a transaction on customer's American Express card statement. Applicable for TSYS (tsys), FDI Global (fdiglobal) and American Express Direct (amexdirect) processors. Validation details (for selected processors)... <table> <thead><tr><th>Processor</th><th>Acceptance Type</th><th>Required</th><th>Min. Length</th><th>Max. Length</th><th>Regex</th></tr></thead> <tr><td>American Express Direct</td><td>cnp, cp, hybrid</td><td>No</td><td>1</td><td>40</td><td>^[0-9a-zA-Z&#92;-\\s.]+$</td></tr> </table>
76
- attr_accessor :amex_transaction_advice_addendum1
77
-
78
- # This flag is related to offer/line item details to be included instead of sending one line item, and a grand total. Example, offer0, offer 1...offer n. Applicable for American Express Direct (amexdirect) and Elavon Americas (elavonamericas) processors. Validation details (for selected processors)... <table> <thead><tr><th>Processor</th><th>Acceptance Type</th><th>Required</th><th>Default Value</th></tr></thead> <tr><td>American Express Direct</td><td>cp, cnp, hybrid</td><td>No</td><td>No</td></tr> </table>
79
- attr_accessor :enable_multi_line_items
80
-
81
- # To enable merchant to send in transaction reference number (unique reconciliation ID). Applicable for VPC, Vero (vero), FDI Global (fdiglobal), Six (six), CB2A, CUP, VPC, Chase Paymentech Salem (chasepaymentechsalem), Fiserv (fiserv), Elavon Americas (elavonamericas) and EFTPOS processors.
82
- attr_accessor :enable_transaction_reference_number
83
-
84
- # Enables to meet the Visa mandate requirements to reverse unused authorizations, benefitting the customer by releasing the hold on unused credit card funds. Applicable for CB2A, Elavon Americas (elavonamericas), Six (six), VPC and American Express Direct (amexdirect) processors. Validation details (for selected processors)... <table> <thead><tr><th>Processor</th><th>Acceptance Type</th><th>Required</th><th>Default Value</th></tr></thead> <tr><td>American Express Direct</td><td>cp, cnp, hybrid</td><td>No</td><td>No</td></tr> </table>
85
- attr_accessor :enable_auto_auth_reversal_after_void
86
-
87
- # When this is enabled, authorization responses from American Express expresspay transactions include the Primary Account Number (PAN) and expiration date of the card. Applicable for American Express Direct (amexdirect) processor.
88
- attr_accessor :enable_expresspay_pan_translation
89
-
90
- # Authorizes a credit. Reduces refund chargebacks and prevents customers from seeing the online update for credits which are otherwise offline settlements.
91
- attr_accessor :enable_credit_auth
92
-
93
- # Field used to identify the industry type of the merchant submitting the authorization request. Valid values: `0` unknown or unsure `A` auto rental (EMV supported) `B` bank/financial institution (EMV supported) `D` – direct marketing `F` – food/restaurant (EMV supported) `G` grocery store/super market (EMV supported) `H` hotel (EMV supported) `L` – limited amount terminal (EMV supported) `O` oil company/automated fueling system (EMV supported) `P` – passenger transport (EMV supported) `R` – retail (EMV supported) Applicable for TSYS (tsys), RUPAY and Elavon Americas (elavonamericas) processors.
94
- attr_accessor :industry_code
95
-
96
- # Field that indicates whether merchant will send level 2 data for Amex cards. Applicable for TSYS (tsys) processor.
97
- attr_accessor :send_amex_level2_data
98
-
99
- # A soft descriptor is a text, rendered on a cardholder's statement, describing a particular product or service, purchased by the cardholder. Descriptors are intended to help the cardholder identify the products or services purchased. Valid values: `1` - trans_ref_no `2` - merchant_descriptor `3` - trans_ref_no and merchant_descriptor Applicable for TSYS (tsys) processor.
100
- attr_accessor :soft_descriptor_type
101
-
102
- # V-number provided by TSYS info. The leading `V` must be replaced by a `7`. For example, replace `V1234567` with `71234567`. Applicable for TSYS (tsys) processor.
103
- attr_accessor :vital_number
104
-
105
- # 6 digit agent bank number provided by acquirer. Applicable for TSYS (tsys) processor.
106
- attr_accessor :bank_number
107
-
108
- # 6 digit chain number provided by acquirer. Applicable for TSYS (tsys) processor.
109
- attr_accessor :chain_number
110
-
111
- # 6 digits acquirer bank identification number. Applicable for TSYS (tsys) processor.
112
- attr_accessor :merchant_bin_number
113
-
114
- # 5 digit merchant location number. Unless otherwise specified by merchant's bank or processor, this field should default to 00001. Applicable for TSYS (tsys) processor.
115
- attr_accessor :merchant_location_number
116
-
117
- # 4 digits number used to identify a specific merchant store location within the member systems. Applicable for TSYS (tsys) processor.
118
- attr_accessor :store_id
119
-
120
- # Contains travel agency code if airline ticket was issued by a travel agency. Applicable for TSYS (tsys) processor.
121
- attr_accessor :travel_agency_code
122
-
123
- # Contains travel agency name if airline ticket was issued by travel agency. Applicable for TSYS (tsys) processor.
124
- attr_accessor :travel_agency_name
125
-
126
- # This field is used to indicate Merchant's settlement currency. [ISO 4217 ALPHA-3 Standard Currency Codes] Applicable for TSYS (tsys) and Streamline (streamline2) processors.
127
- attr_accessor :settlement_currency
128
-
129
- # Indicates whether Least Cost Routing is enabled. Applicable for EFTPOS and CUP processors.
130
- attr_accessor :enable_least_cost_routing
131
-
132
- # This field denotes EFTPOS Merchant's choice of receiving CVV Processing Response in return. Applicable for EFTPOS processors.
133
- attr_accessor :enable_cvv_response_indicator
134
-
135
- # Applicable for Barclays (barclays2) processor. Validation details (for selected processors)... <table> <thead><tr><th>Processor</th><th>Acceptance Type</th><th>Required</th><th>Default Value</th></tr></thead> <tr><td>Barclays</td><td>cnp, cp, hybrid</td><td>No</td><td>Yes</td></tr> </table>
136
- attr_accessor :enable_multi_currency_processing
137
-
138
- # 'POS Network Switching' or 'Alternate Routing' means merchant can process PIN Debit transactions without a PIN. Set the value to 'Yes' if it is supported. Applicable for FDI Global (fdiglobal) processor.
139
- attr_accessor :enable_pos_network_switching
140
-
141
- # Enable dynamic currency conversion for a merchant.
142
- attr_accessor :enable_dynamic_currency_conversion
143
-
144
- # Merchant Tier defines the type of merchant, the numeric Merchant Tier value is allocated by EFTPOS. Applicable for EFTPOS processors.
145
- attr_accessor :merchant_tier
146
-
147
- class EnumAttributeValidator
148
- attr_reader :datatype
149
- attr_reader :allowable_values
150
-
151
- def initialize(datatype, allowable_values)
152
- @allowable_values = allowable_values.map do |value|
153
- case datatype.to_s
154
- when /Integer/i
155
- value.to_i
156
- when /Float/i
157
- value.to_f
158
- else
159
- value
160
- end
161
- end
162
- end
163
-
164
- def valid?(value)
165
- !value || allowable_values.include?(value)
166
- end
167
- end
168
-
169
- # Attribute mapping from ruby-style variable name to JSON key.
170
- def self.attribute_map
171
- {
172
- :'batch_group' => :'batchGroup',
173
- :'business_application_id' => :'businessApplicationId',
174
- :'merchant_verification_value' => :'merchantVerificationValue',
175
- :'aba_number' => :'abaNumber',
176
- :'acquirer' => :'acquirer',
177
- :'merchant_id' => :'merchantId',
178
- :'terminal_id' => :'terminalId',
179
- :'payment_types' => :'paymentTypes',
180
- :'currencies' => :'currencies',
181
- :'sic_code' => :'sicCode',
182
- :'allow_multiple_bills' => :'allowMultipleBills',
183
- :'allow_merchant_descriptor_override' => :'allowMerchantDescriptorOverride',
184
- :'enhanced_data' => :'enhancedData',
185
- :'fire_safety_indicator' => :'fireSafetyIndicator',
186
- :'quasi_cash' => :'quasiCash',
187
- :'acquirer_merchant_id' => :'acquirerMerchantId',
188
- :'avs_format' => :'avsFormat',
189
- :'enable_long_trans_ref_no' => :'enableLongTransRefNo',
190
- :'enable_level2' => :'enableLevel2',
191
- :'enable_multiple_transaction_advice_addendum' => :'enableMultipleTransactionAdviceAddendum',
192
- :'amex_transaction_advice_addendum1' => :'amexTransactionAdviceAddendum1',
193
- :'enable_multi_line_items' => :'enableMultiLineItems',
194
- :'enable_transaction_reference_number' => :'enableTransactionReferenceNumber',
195
- :'enable_auto_auth_reversal_after_void' => :'enableAutoAuthReversalAfterVoid',
196
- :'enable_expresspay_pan_translation' => :'enableExpresspayPanTranslation',
197
- :'enable_credit_auth' => :'enableCreditAuth',
198
- :'industry_code' => :'industryCode',
199
- :'send_amex_level2_data' => :'sendAmexLevel2Data',
200
- :'soft_descriptor_type' => :'softDescriptorType',
201
- :'vital_number' => :'vitalNumber',
202
- :'bank_number' => :'bankNumber',
203
- :'chain_number' => :'chainNumber',
204
- :'merchant_bin_number' => :'merchantBinNumber',
205
- :'merchant_location_number' => :'merchantLocationNumber',
206
- :'store_id' => :'storeID',
207
- :'travel_agency_code' => :'travelAgencyCode',
208
- :'travel_agency_name' => :'travelAgencyName',
209
- :'settlement_currency' => :'settlementCurrency',
210
- :'enable_least_cost_routing' => :'enableLeastCostRouting',
211
- :'enable_cvv_response_indicator' => :'enableCVVResponseIndicator',
212
- :'enable_multi_currency_processing' => :'enableMultiCurrencyProcessing',
213
- :'enable_pos_network_switching' => :'enablePosNetworkSwitching',
214
- :'enable_dynamic_currency_conversion' => :'enableDynamicCurrencyConversion',
215
- :'merchant_tier' => :'merchantTier'
216
- }
217
- end
218
-
219
- # Attribute mapping from JSON key to ruby-style variable name.
220
- def self.json_map
221
- {
222
- :'batch_group' => :'batch_group',
223
- :'business_application_id' => :'business_application_id',
224
- :'merchant_verification_value' => :'merchant_verification_value',
225
- :'aba_number' => :'aba_number',
226
- :'acquirer' => :'acquirer',
227
- :'merchant_id' => :'merchant_id',
228
- :'terminal_id' => :'terminal_id',
229
- :'payment_types' => :'payment_types',
230
- :'currencies' => :'currencies',
231
- :'sic_code' => :'sic_code',
232
- :'allow_multiple_bills' => :'allow_multiple_bills',
233
- :'allow_merchant_descriptor_override' => :'allow_merchant_descriptor_override',
234
- :'enhanced_data' => :'enhanced_data',
235
- :'fire_safety_indicator' => :'fire_safety_indicator',
236
- :'quasi_cash' => :'quasi_cash',
237
- :'acquirer_merchant_id' => :'acquirer_merchant_id',
238
- :'avs_format' => :'avs_format',
239
- :'enable_long_trans_ref_no' => :'enable_long_trans_ref_no',
240
- :'enable_level2' => :'enable_level2',
241
- :'enable_multiple_transaction_advice_addendum' => :'enable_multiple_transaction_advice_addendum',
242
- :'amex_transaction_advice_addendum1' => :'amex_transaction_advice_addendum1',
243
- :'enable_multi_line_items' => :'enable_multi_line_items',
244
- :'enable_transaction_reference_number' => :'enable_transaction_reference_number',
245
- :'enable_auto_auth_reversal_after_void' => :'enable_auto_auth_reversal_after_void',
246
- :'enable_expresspay_pan_translation' => :'enable_expresspay_pan_translation',
247
- :'enable_credit_auth' => :'enable_credit_auth',
248
- :'industry_code' => :'industry_code',
249
- :'send_amex_level2_data' => :'send_amex_level2_data',
250
- :'soft_descriptor_type' => :'soft_descriptor_type',
251
- :'vital_number' => :'vital_number',
252
- :'bank_number' => :'bank_number',
253
- :'chain_number' => :'chain_number',
254
- :'merchant_bin_number' => :'merchant_bin_number',
255
- :'merchant_location_number' => :'merchant_location_number',
256
- :'store_id' => :'store_id',
257
- :'travel_agency_code' => :'travel_agency_code',
258
- :'travel_agency_name' => :'travel_agency_name',
259
- :'settlement_currency' => :'settlement_currency',
260
- :'enable_least_cost_routing' => :'enable_least_cost_routing',
261
- :'enable_cvv_response_indicator' => :'enable_cvv_response_indicator',
262
- :'enable_multi_currency_processing' => :'enable_multi_currency_processing',
263
- :'enable_pos_network_switching' => :'enable_pos_network_switching',
264
- :'enable_dynamic_currency_conversion' => :'enable_dynamic_currency_conversion',
265
- :'merchant_tier' => :'merchant_tier'
266
- }
267
- end
268
-
269
- # Attribute type mapping.
270
- def self.swagger_types
271
- {
272
- :'batch_group' => :'String',
273
- :'business_application_id' => :'String',
274
- :'merchant_verification_value' => :'String',
275
- :'aba_number' => :'String',
276
- :'acquirer' => :'CardProcessingConfigCommonAcquirer',
277
- :'merchant_id' => :'String',
278
- :'terminal_id' => :'String',
279
- :'payment_types' => :'Hash<String, CardProcessingConfigCommonPaymentTypes>',
280
- :'currencies' => :'Hash<String, CardProcessingConfigCommonCurrencies1>',
281
- :'sic_code' => :'String',
282
- :'allow_multiple_bills' => :'BOOLEAN',
283
- :'allow_merchant_descriptor_override' => :'BOOLEAN',
284
- :'enhanced_data' => :'String',
285
- :'fire_safety_indicator' => :'BOOLEAN',
286
- :'quasi_cash' => :'BOOLEAN',
287
- :'acquirer_merchant_id' => :'String',
288
- :'avs_format' => :'String',
289
- :'enable_long_trans_ref_no' => :'BOOLEAN',
290
- :'enable_level2' => :'BOOLEAN',
291
- :'enable_multiple_transaction_advice_addendum' => :'BOOLEAN',
292
- :'amex_transaction_advice_addendum1' => :'String',
293
- :'enable_multi_line_items' => :'BOOLEAN',
294
- :'enable_transaction_reference_number' => :'BOOLEAN',
295
- :'enable_auto_auth_reversal_after_void' => :'BOOLEAN',
296
- :'enable_expresspay_pan_translation' => :'BOOLEAN',
297
- :'enable_credit_auth' => :'BOOLEAN',
298
- :'industry_code' => :'String',
299
- :'send_amex_level2_data' => :'BOOLEAN',
300
- :'soft_descriptor_type' => :'String',
301
- :'vital_number' => :'String',
302
- :'bank_number' => :'String',
303
- :'chain_number' => :'String',
304
- :'merchant_bin_number' => :'String',
305
- :'merchant_location_number' => :'String',
306
- :'store_id' => :'String',
307
- :'travel_agency_code' => :'String',
308
- :'travel_agency_name' => :'String',
309
- :'settlement_currency' => :'String',
310
- :'enable_least_cost_routing' => :'BOOLEAN',
311
- :'enable_cvv_response_indicator' => :'BOOLEAN',
312
- :'enable_multi_currency_processing' => :'String',
313
- :'enable_pos_network_switching' => :'BOOLEAN',
314
- :'enable_dynamic_currency_conversion' => :'BOOLEAN',
315
- :'merchant_tier' => :'String'
316
- }
317
- end
318
-
319
- # Initializes the object
320
- # @param [Hash] attributes Model attributes in the form of hash
321
- def initialize(attributes = {})
322
- return unless attributes.is_a?(Hash)
323
-
324
- # convert string to symbol for hash key
325
- attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
326
-
327
- if attributes.has_key?(:'batchGroup')
328
- self.batch_group = attributes[:'batchGroup']
329
- end
330
-
331
- if attributes.has_key?(:'businessApplicationId')
332
- self.business_application_id = attributes[:'businessApplicationId']
333
- end
334
-
335
- if attributes.has_key?(:'merchantVerificationValue')
336
- self.merchant_verification_value = attributes[:'merchantVerificationValue']
337
- end
338
-
339
- if attributes.has_key?(:'abaNumber')
340
- self.aba_number = attributes[:'abaNumber']
341
- end
342
-
343
- if attributes.has_key?(:'acquirer')
344
- self.acquirer = attributes[:'acquirer']
345
- end
346
-
347
- if attributes.has_key?(:'merchantId')
348
- self.merchant_id = attributes[:'merchantId']
349
- end
350
-
351
- if attributes.has_key?(:'terminalId')
352
- self.terminal_id = attributes[:'terminalId']
353
- end
354
-
355
- if attributes.has_key?(:'paymentTypes')
356
- if (value = attributes[:'paymentTypes']).is_a?(Hash)
357
- self.payment_types = value
358
- end
359
- end
360
-
361
- if attributes.has_key?(:'currencies')
362
- if (value = attributes[:'currencies']).is_a?(Hash)
363
- self.currencies = value
364
- end
365
- end
366
-
367
- if attributes.has_key?(:'sicCode')
368
- self.sic_code = attributes[:'sicCode']
369
- end
370
-
371
- if attributes.has_key?(:'allowMultipleBills')
372
- self.allow_multiple_bills = attributes[:'allowMultipleBills']
373
- end
374
-
375
- if attributes.has_key?(:'allowMerchantDescriptorOverride')
376
- self.allow_merchant_descriptor_override = attributes[:'allowMerchantDescriptorOverride']
377
- end
378
-
379
- if attributes.has_key?(:'enhancedData')
380
- self.enhanced_data = attributes[:'enhancedData']
381
- end
382
-
383
- if attributes.has_key?(:'fireSafetyIndicator')
384
- self.fire_safety_indicator = attributes[:'fireSafetyIndicator']
385
- end
386
-
387
- if attributes.has_key?(:'quasiCash')
388
- self.quasi_cash = attributes[:'quasiCash']
389
- end
390
-
391
- if attributes.has_key?(:'acquirerMerchantId')
392
- self.acquirer_merchant_id = attributes[:'acquirerMerchantId']
393
- end
394
-
395
- if attributes.has_key?(:'avsFormat')
396
- self.avs_format = attributes[:'avsFormat']
397
- end
398
-
399
- if attributes.has_key?(:'enableLongTransRefNo')
400
- self.enable_long_trans_ref_no = attributes[:'enableLongTransRefNo']
401
- end
402
-
403
- if attributes.has_key?(:'enableLevel2')
404
- self.enable_level2 = attributes[:'enableLevel2']
405
- end
406
-
407
- if attributes.has_key?(:'enableMultipleTransactionAdviceAddendum')
408
- self.enable_multiple_transaction_advice_addendum = attributes[:'enableMultipleTransactionAdviceAddendum']
409
- end
410
-
411
- if attributes.has_key?(:'amexTransactionAdviceAddendum1')
412
- self.amex_transaction_advice_addendum1 = attributes[:'amexTransactionAdviceAddendum1']
413
- end
414
-
415
- if attributes.has_key?(:'enableMultiLineItems')
416
- self.enable_multi_line_items = attributes[:'enableMultiLineItems']
417
- end
418
-
419
- if attributes.has_key?(:'enableTransactionReferenceNumber')
420
- self.enable_transaction_reference_number = attributes[:'enableTransactionReferenceNumber']
421
- end
422
-
423
- if attributes.has_key?(:'enableAutoAuthReversalAfterVoid')
424
- self.enable_auto_auth_reversal_after_void = attributes[:'enableAutoAuthReversalAfterVoid']
425
- end
426
-
427
- if attributes.has_key?(:'enableExpresspayPanTranslation')
428
- self.enable_expresspay_pan_translation = attributes[:'enableExpresspayPanTranslation']
429
- end
430
-
431
- if attributes.has_key?(:'enableCreditAuth')
432
- self.enable_credit_auth = attributes[:'enableCreditAuth']
433
- end
434
-
435
- if attributes.has_key?(:'industryCode')
436
- self.industry_code = attributes[:'industryCode']
437
- end
438
-
439
- if attributes.has_key?(:'sendAmexLevel2Data')
440
- self.send_amex_level2_data = attributes[:'sendAmexLevel2Data']
441
- end
442
-
443
- if attributes.has_key?(:'softDescriptorType')
444
- self.soft_descriptor_type = attributes[:'softDescriptorType']
445
- end
446
-
447
- if attributes.has_key?(:'vitalNumber')
448
- self.vital_number = attributes[:'vitalNumber']
449
- end
450
-
451
- if attributes.has_key?(:'bankNumber')
452
- self.bank_number = attributes[:'bankNumber']
453
- end
454
-
455
- if attributes.has_key?(:'chainNumber')
456
- self.chain_number = attributes[:'chainNumber']
457
- end
458
-
459
- if attributes.has_key?(:'merchantBinNumber')
460
- self.merchant_bin_number = attributes[:'merchantBinNumber']
461
- end
462
-
463
- if attributes.has_key?(:'merchantLocationNumber')
464
- self.merchant_location_number = attributes[:'merchantLocationNumber']
465
- end
466
-
467
- if attributes.has_key?(:'storeID')
468
- self.store_id = attributes[:'storeID']
469
- end
470
-
471
- if attributes.has_key?(:'travelAgencyCode')
472
- self.travel_agency_code = attributes[:'travelAgencyCode']
473
- end
474
-
475
- if attributes.has_key?(:'travelAgencyName')
476
- self.travel_agency_name = attributes[:'travelAgencyName']
477
- end
478
-
479
- if attributes.has_key?(:'settlementCurrency')
480
- self.settlement_currency = attributes[:'settlementCurrency']
481
- end
482
-
483
- if attributes.has_key?(:'enableLeastCostRouting')
484
- self.enable_least_cost_routing = attributes[:'enableLeastCostRouting']
485
- end
486
-
487
- if attributes.has_key?(:'enableCVVResponseIndicator')
488
- self.enable_cvv_response_indicator = attributes[:'enableCVVResponseIndicator']
489
- end
490
-
491
- if attributes.has_key?(:'enableMultiCurrencyProcessing')
492
- self.enable_multi_currency_processing = attributes[:'enableMultiCurrencyProcessing']
493
- end
494
-
495
- if attributes.has_key?(:'enablePosNetworkSwitching')
496
- self.enable_pos_network_switching = attributes[:'enablePosNetworkSwitching']
497
- end
498
-
499
- if attributes.has_key?(:'enableDynamicCurrencyConversion')
500
- self.enable_dynamic_currency_conversion = attributes[:'enableDynamicCurrencyConversion']
501
- end
502
-
503
- if attributes.has_key?(:'merchantTier')
504
- self.merchant_tier = attributes[:'merchantTier']
505
- end
506
- end
507
-
508
- # Show invalid properties with the reasons. Usually used together with valid?
509
- # @return Array for valid properties with the reasons
510
- def list_invalid_properties
511
- invalid_properties = Array.new
512
- if @merchant_id.nil?
513
- invalid_properties.push('invalid value for "merchant_id", merchant_id cannot be nil.')
514
- end
515
-
516
- #if !@merchant_tier.nil? && @merchant_tier !~ Regexp.new(/^[0-9]+$/)
517
- #invalid_properties.push('invalid value for "merchant_tier", must conform to the pattern /^[0-9]+$/.')
518
- #end
519
-
520
- invalid_properties
521
- end
522
-
523
- # Check to see if the all the properties in the model are valid
524
- # @return true if the model is valid
525
- def valid?
526
- return false if @merchant_id.nil?
527
- industry_code_validator = EnumAttributeValidator.new('String', ['0', 'A', 'B', 'D', 'F', 'G', 'H', 'L', 'O', 'P', 'R'])
528
- return false unless industry_code_validator.valid?(@industry_code)
529
- #return false if !@merchant_tier.nil? && @merchant_tier !~ Regexp.new(/^[0-9]+$/)
530
- true
531
- end
532
-
533
- # Custom attribute writer method checking allowed values (enum).
534
- # @param [Object] industry_code Object to be assigned
535
- def industry_code=(industry_code)
536
- validator = EnumAttributeValidator.new('String', ['0', 'A', 'B', 'D', 'F', 'G', 'H', 'L', 'O', 'P', 'R'])
537
- unless validator.valid?(industry_code)
538
- fail ArgumentError, 'invalid value for "industry_code", must be one of #{validator.allowable_values}.'
539
- end
540
- @industry_code = industry_code
541
- end
542
-
543
- # Custom attribute writer method with validation
544
- # @param [Object] merchant_tier Value to be assigned
545
- def merchant_tier=(merchant_tier)
546
- #if !merchant_tier.nil? && merchant_tier !~ Regexp.new(/^[0-9]+$/)
547
- #fail ArgumentError, 'invalid value for "merchant_tier", must conform to the pattern /^[0-9]+$/.'
548
- #end
549
-
550
- @merchant_tier = merchant_tier
551
- end
552
-
553
- # Checks equality by comparing each attribute.
554
- # @param [Object] Object to be compared
555
- def ==(o)
556
- return true if self.equal?(o)
557
- self.class == o.class &&
558
- batch_group == o.batch_group &&
559
- business_application_id == o.business_application_id &&
560
- merchant_verification_value == o.merchant_verification_value &&
561
- aba_number == o.aba_number &&
562
- acquirer == o.acquirer &&
563
- merchant_id == o.merchant_id &&
564
- terminal_id == o.terminal_id &&
565
- payment_types == o.payment_types &&
566
- currencies == o.currencies &&
567
- sic_code == o.sic_code &&
568
- allow_multiple_bills == o.allow_multiple_bills &&
569
- allow_merchant_descriptor_override == o.allow_merchant_descriptor_override &&
570
- enhanced_data == o.enhanced_data &&
571
- fire_safety_indicator == o.fire_safety_indicator &&
572
- quasi_cash == o.quasi_cash &&
573
- acquirer_merchant_id == o.acquirer_merchant_id &&
574
- avs_format == o.avs_format &&
575
- enable_long_trans_ref_no == o.enable_long_trans_ref_no &&
576
- enable_level2 == o.enable_level2 &&
577
- enable_multiple_transaction_advice_addendum == o.enable_multiple_transaction_advice_addendum &&
578
- amex_transaction_advice_addendum1 == o.amex_transaction_advice_addendum1 &&
579
- enable_multi_line_items == o.enable_multi_line_items &&
580
- enable_transaction_reference_number == o.enable_transaction_reference_number &&
581
- enable_auto_auth_reversal_after_void == o.enable_auto_auth_reversal_after_void &&
582
- enable_expresspay_pan_translation == o.enable_expresspay_pan_translation &&
583
- enable_credit_auth == o.enable_credit_auth &&
584
- industry_code == o.industry_code &&
585
- send_amex_level2_data == o.send_amex_level2_data &&
586
- soft_descriptor_type == o.soft_descriptor_type &&
587
- vital_number == o.vital_number &&
588
- bank_number == o.bank_number &&
589
- chain_number == o.chain_number &&
590
- merchant_bin_number == o.merchant_bin_number &&
591
- merchant_location_number == o.merchant_location_number &&
592
- store_id == o.store_id &&
593
- travel_agency_code == o.travel_agency_code &&
594
- travel_agency_name == o.travel_agency_name &&
595
- settlement_currency == o.settlement_currency &&
596
- enable_least_cost_routing == o.enable_least_cost_routing &&
597
- enable_cvv_response_indicator == o.enable_cvv_response_indicator &&
598
- enable_multi_currency_processing == o.enable_multi_currency_processing &&
599
- enable_pos_network_switching == o.enable_pos_network_switching &&
600
- enable_dynamic_currency_conversion == o.enable_dynamic_currency_conversion &&
601
- merchant_tier == o.merchant_tier
602
- end
603
-
604
- # @see the `==` method
605
- # @param [Object] Object to be compared
606
- def eql?(o)
607
- self == o
608
- end
609
-
610
- # Calculates hash code according to all attributes.
611
- # @return [Fixnum] Hash code
612
- def hash
613
- [batch_group, business_application_id, merchant_verification_value, aba_number, acquirer, merchant_id, terminal_id, payment_types, currencies, sic_code, allow_multiple_bills, allow_merchant_descriptor_override, enhanced_data, fire_safety_indicator, quasi_cash, acquirer_merchant_id, avs_format, enable_long_trans_ref_no, enable_level2, enable_multiple_transaction_advice_addendum, amex_transaction_advice_addendum1, enable_multi_line_items, enable_transaction_reference_number, enable_auto_auth_reversal_after_void, enable_expresspay_pan_translation, enable_credit_auth, industry_code, send_amex_level2_data, soft_descriptor_type, vital_number, bank_number, chain_number, merchant_bin_number, merchant_location_number, store_id, travel_agency_code, travel_agency_name, settlement_currency, enable_least_cost_routing, enable_cvv_response_indicator, enable_multi_currency_processing, enable_pos_network_switching, enable_dynamic_currency_conversion, merchant_tier].hash
614
- end
615
-
616
- # Builds the object from hash
617
- # @param [Hash] attributes Model attributes in the form of hash
618
- # @return [Object] Returns the model itself
619
- def build_from_hash(attributes)
620
- return nil unless attributes.is_a?(Hash)
621
- self.class.swagger_types.each_pair do |key, type|
622
- if type =~ /\AArray<(.*)>/i
623
- # check to ensure the input is an array given that the the attribute
624
- # is documented as an array but the input is not
625
- if attributes[self.class.attribute_map[key]].is_a?(Array)
626
- self.send("#{self.class.json_map[key]}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
627
- end
628
- elsif !attributes[self.class.attribute_map[key]].nil?
629
- self.send("#{self.class.json_map[key]}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
630
- end # or else data not found in attributes(hash), not an issue as the data can be optional
631
- end
632
-
633
- self
634
- end
635
-
636
- # Deserializes the data based on type
637
- # @param string type Data type
638
- # @param string value Value to be deserialized
639
- # @return [Object] Deserialized data
640
- def _deserialize(type, value)
641
- case type.to_sym
642
- when :DateTime
643
- DateTime.parse(value)
644
- when :Date
645
- Date.parse(value)
646
- when :String
647
- value.to_s
648
- when :Integer
649
- value.to_i
650
- when :Float
651
- value.to_f
652
- when :BOOLEAN
653
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
654
- true
655
- else
656
- false
657
- end
658
- when :Object
659
- # generic object (usually a Hash), return directly
660
- value
661
- when /\AArray<(?<inner_type>.+)>\z/
662
- inner_type = Regexp.last_match[:inner_type]
663
- value.map { |v| _deserialize(inner_type, v) }
664
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
665
- k_type = Regexp.last_match[:k_type]
666
- v_type = Regexp.last_match[:v_type]
667
- {}.tap do |hash|
668
- value.each do |k, v|
669
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
670
- end
671
- end
672
- else # model
673
- temp_model = CyberSource.const_get(type).new
674
- temp_model.build_from_hash(value)
675
- end
676
- end
677
-
678
- # Returns the string representation of the object
679
- # @return [String] String presentation of the object
680
- def to_s
681
- to_hash.to_s
682
- end
683
-
684
- # to_body is an alias to to_hash (backward compatibility)
685
- # @return [Hash] Returns the object in the form of hash
686
- def to_body
687
- to_hash
688
- end
689
-
690
- # Returns the object in the form of hash
691
- # @return [Hash] Returns the object in the form of hash
692
- def to_hash
693
- hash = {}
694
- self.class.attribute_map.each_pair do |attr, param|
695
- value = self.send(attr)
696
- next if value.nil?
697
- hash[param] = _to_hash(value)
698
- end
699
- hash
700
- end
701
-
702
- # Outputs non-array value in the form of hash
703
- # For object, use to_hash. Otherwise, just return the value
704
- # @param [Object] value Any valid value
705
- # @return [Hash] Returns the value in the form of hash
706
- def _to_hash(value)
707
- if value.is_a?(Array)
708
- value.compact.map { |v| _to_hash(v) }
709
- elsif value.is_a?(Hash)
710
- {}.tap do |hash|
711
- value.each { |k, v| hash[k] = _to_hash(v) }
712
- end
713
- elsif value.respond_to? :to_hash
714
- value.to_hash
715
- else
716
- value
717
- end
718
- end
719
- end
720
- 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 CardProcessingConfigCommonProcessors
16
+ # Determines the batching group that separates merchants for special batching times. Batching groups can separate merchant batches by the following criteria: * Timezone * Merchant deadlines * Large merchants (top 10) * Merchants with Service-Level Agreements Applicable for Chase Paymentech Salem (chasepaymentechsalem), Streamline (streamline2), Six (six), Barclays (barclays2), Paymentech Tampa (paymentechtampa), CMCIC (cmcic), FDC Nashville (smartfdc), RUPAY, American Express Direct (amexdirect), GPN (gpn), VPC, GPX (gpx), CB2A, Barclays HISO (barclayshiso), TSYS (tsys) and FDI Global (fdiglobal) processors. Validation details (for selected processors)... <table> <thead><tr><th>Processor</th><th>Acceptance Type</th><th>Required</th></tr></thead> <tr><td>Barclays</td><td>cnp, cp, hybrid</td><td>Yes</td></tr> <tr><td>Barclays HISO</td><td>cnp, cp, hybrid</td><td>Yes</td></tr> <tr><td>American Express Direct</td><td>cnp, cp, hybrid</td><td>No</td></tr> </table>
17
+ attr_accessor :batch_group
18
+
19
+ # Indicates the type of money transfer used in the transaction. Applicable for VPC and GPX (gpx) processors.
20
+ attr_accessor :business_application_id
21
+
22
+ # Identify merchants that participate in Select Merchant Fee (SMF) programs. Unique to the merchant. Applicable for GPX (gpx) and VPC processors.
23
+ attr_accessor :merchant_verification_value
24
+
25
+ # Routing Number to identify banks within the United States. Applicable for GPX (gpx) processors.
26
+ attr_accessor :aba_number
27
+
28
+ attr_accessor :acquirer
29
+
30
+ # Merchant ID assigned by an acquirer or a processor. Should not be overriden by any other party. Validation details (for selected processors)... <table> <thead><tr><th>Processor</th><th>Acceptance Type</th><th>Required</th><th>Min. Length</th><th>Max. Length</th><th>Regex</th></tr></thead> <tr><td>Barclays HISO</td><td>cp, cnp, hybrid</td><td>Yes</td><td>1</td><td>15</td><td>^[0-9a-zA-Z]+$</td></tr> <tr><td>Barclays</td><td>cp, cnp, hybrid</td><td>Yes</td><td>1</td><td>11</td><td>^[0-9a-zA-Z]+$</td></tr> </table>
31
+ attr_accessor :merchant_id
32
+
33
+ # The 'Terminal Id' aka TID, is an identifier used for with your payments processor. Depending on the processor and payment acceptance type this may also be the default Terminal ID used for Card Present and Virtual Terminal transactions. Validation details (for selected processors)... <table> <thead><tr><th>Processor</th><th>Acceptance Type</th><th>Required</th><th>Min. Length</th><th>Max. Length</th><th>Regex</th></tr></thead> <tr><td>Barclays HISO</td><td>cnp, hybrid</td><td>Yes</td><td>1</td><td>16</td><td>^[0-9a-zA-Z]+$</td></tr> <tr><td>Barclays HISO</td><td>cp</td><td>No</td><td>1</td><td>16</td><td>^[0-9a-zA-Z]+$</td></tr> </table>
34
+ attr_accessor :terminal_id
35
+
36
+ # Valid values are: * VISA * MASTERCARD * AMERICAN_EXPRESS * CUP * EFTPOS * DINERS_CLUB * DISCOVER * JCB
37
+ attr_accessor :payment_types
38
+
39
+ # Three-character [ISO 4217 ALPHA-3 Standard Currency Codes.](http://apps.cybersource.com/library/documentation/sbc/quickref/currencies.pdf)
40
+ attr_accessor :currencies
41
+
42
+ # This field is used as aggregator Id when Visa payment type is selected
43
+ attr_accessor :visa_aggregator_id
44
+
45
+ # This field is used as aggregator Id when Amex payment type is selected
46
+ attr_accessor :amex_aggregator_id
47
+
48
+ # This field is used as aggregator Id when Master Card payment type is selected
49
+ attr_accessor :master_card_aggregator_id
50
+
51
+ # The Standard Industrial Classification (SIC) are four-digit codes that categorize the industries that companies belong to based on their business activities. Standard Industrial Classification codes were mostly replaced by the six-digit North American Industry Classification System (NAICS). Applicable for VPC and GPX (gpx) processors.
52
+ attr_accessor :sic_code
53
+
54
+ # Allows multiple captures for a single authorization transaction. Applicable for Paymentech Tampa (paymentechtampa), VPC, American Express Direct (amexdirect) and GPX (gpx) processors. Validation details (for selected processors)... <table> <thead><tr><th>Processor</th><th>Acceptance Type</th><th>Required</th><th>Default Value</th></tr></thead> <tr><td>American Express Direct</td><td>cp, hybrid</td><td>Yes</td><td>No</td></tr> <tr><td>American Express Direct</td><td>cnp</td><td>No</td><td>No</td></tr> </table>
55
+ attr_accessor :allow_multiple_bills
56
+
57
+ # Enables partner to enable/disable merchant descriptors values. Applicable for VPC, EFTPOS and CUP processors.
58
+ attr_accessor :allow_merchant_descriptor_override
59
+
60
+ # To enable airline transactions. Applicable for TSYS (tsys), VPC, Elavon Americas (elavonamericas), FDI Global (fdiglobal), GPX (gpx), Barclays (barclays2) and American Express Direct (amexdirect) processors. Validation details (for selected processors)... <table> <thead><tr><th>Processor</th><th>Acceptance Type</th><th>Required</th></tr></thead> <tr><td>Barclays</td><td>cnp, cp, hybrid</td><td>No</td></tr> <tr><td>American Express Direct</td><td>cp, cnp, hybrid</td><td>No</td></tr> </table>
61
+ attr_accessor :enhanced_data
62
+
63
+ # Indicates whether the merchant is compliant with Hotel and Motel Fire Safety Act of 1990. Applicable for GPX (gpx) and VPC processors.
64
+ attr_accessor :fire_safety_indicator
65
+
66
+ # To enable quasi-cash transactions. A quasi-cash transaction is a cash-like transaction for the sale of items that are directly convertible to cash, such as:- Casino gaming chips, Money orders, Wire transfers. Applicable for GPX (gpx), TSYS (tsys), Barclays (barclays2) and VPC processors. Validation details (for selected processors)... <table> <thead><tr><th>Processor</th><th>Acceptance Type</th><th>Required</th><th>Default Value</th></tr></thead> <tr><td>Barclays</td><td>cnp, cp, hybrid</td><td>No</td><td>No</td></tr> </table>
67
+ attr_accessor :quasi_cash
68
+
69
+ # Identifier assigned by the acquirer. Applicable for RUPAY, VPC and Six (six) processors.
70
+ attr_accessor :acquirer_merchant_id
71
+
72
+ # Enables Enhanced AVS/Automated Address Verification Plus (AAV+). Valid values: \"basic\" - Standard address verification system. When a processor supports AVS for a transaction's card type, the issuing bank uses AVS to confirm that the customer has provided the correct billing address. When a customer provides incorrect information, the transaction might be fraudulent. \"basic + name\" - Enhanced address verification system. Consists of the standard AVS functionality plus verification of some additional fields. The additional fields that are verified for Enhanced AVS are: - customer_firstname - customer_lastname \"basic + name + shipto\" - Automated address verification plus. Consists of the Enhanced AVS functionality plus verification of some additional fields. AAV+ intended for merchants who deliver physical goods to a different address than the billing address. AAV+ verifies the additional fields only when the standard and Enhanced AVS tests pass first. For information about Enhanced AVS - The additional fields that are verified for AAV+ are: - ship_to_firstname - ship_to_lastname - ship_to_address1 - ship_to_country - ship_to_zip - ship_to_phone - customer_phone(American Express Direct only) Applicable for American Express Direct (amexdirect) processor. Validation details (for selected processors)... <table> <thead><tr><th>Processor</th><th>Acceptance Type</th><th>Required</th><th>Default Value</th></tr></thead> <tr><td>American Express Direct</td><td>cnp, cp, hybrid</td><td>Yes</td><td>basic</td></tr> </table>
73
+ attr_accessor :avs_format
74
+
75
+ # Amex Direct specific merchant config value which determines what length (either 9 or Unique 12-char reference number) of reference number will be CYBS generated if the merchant does not pass in a trans_ref_no. Can be any combination of alpha, numeric and special characters, and/or binary data in hexadecimal. Applicable for American Express Direct (amexdirect) processor. Validation details (for selected processors)... <table> <thead><tr><th>Processor</th><th>Acceptance Type</th><th>Required</th><th>Default Value</th></tr></thead> <tr><td>American Express Direct</td><td>cp, cnp, hybrid</td><td>No</td><td>No</td></tr> </table>
76
+ attr_accessor :enable_long_trans_ref_no
77
+
78
+ # Field that indicates whether merchant will send level 2 data for Amex cards. Applicable for American Express Direct (amexdirect) processor. Validation details (for selected processors)... <table> <thead><tr><th>Processor</th><th>Acceptance Type</th><th>Required</th><th>Default Value</th></tr></thead> <tr><td>American Express Direct</td><td>cp, cnp, hybrid</td><td>No</td><td>No</td></tr> </table>
79
+ attr_accessor :enable_level2
80
+
81
+ # This flag related to multiple transaction advice addendum field. It is used to display descriptive information about a transaction on customer's American Express card statement. Applicable for American Express Direct (amexdirect) processor. Validation details (for selected processors)... <table> <thead><tr><th>Processor</th><th>Acceptance Type</th><th>Required</th><th>Default Value</th></tr></thead> <tr><td>American Express Direct</td><td>cp, cnp, hybrid</td><td>No</td><td>No</td></tr> </table>
82
+ attr_accessor :enable_multiple_transaction_advice_addendum
83
+
84
+ # Advice addendum field. It is used to display descriptive information about a transaction on customer's American Express card statement. Applicable for TSYS (tsys), FDI Global (fdiglobal) and American Express Direct (amexdirect) processors. Validation details (for selected processors)... <table> <thead><tr><th>Processor</th><th>Acceptance Type</th><th>Required</th><th>Min. Length</th><th>Max. Length</th><th>Regex</th></tr></thead> <tr><td>American Express Direct</td><td>cnp, cp, hybrid</td><td>No</td><td>1</td><td>40</td><td>^[0-9a-zA-Z&#92;-\\s.]+$</td></tr> </table>
85
+ attr_accessor :amex_transaction_advice_addendum1
86
+
87
+ # This flag is related to offer/line item details to be included instead of sending one line item, and a grand total. Example, offer0, offer 1...offer n. Applicable for American Express Direct (amexdirect) and Elavon Americas (elavonamericas) processors. Validation details (for selected processors)... <table> <thead><tr><th>Processor</th><th>Acceptance Type</th><th>Required</th><th>Default Value</th></tr></thead> <tr><td>American Express Direct</td><td>cp, cnp, hybrid</td><td>No</td><td>No</td></tr> </table>
88
+ attr_accessor :enable_multi_line_items
89
+
90
+ # To enable merchant to send in transaction reference number (unique reconciliation ID). Applicable for VPC, Vero (vero), FDI Global (fdiglobal), Six (six), CB2A, CUP, VPC, Chase Paymentech Salem (chasepaymentechsalem), Fiserv (fiserv), Elavon Americas (elavonamericas) and EFTPOS processors.
91
+ attr_accessor :enable_transaction_reference_number
92
+
93
+ # Enables to meet the Visa mandate requirements to reverse unused authorizations, benefitting the customer by releasing the hold on unused credit card funds. Applicable for CB2A, Elavon Americas (elavonamericas), Six (six), VPC and American Express Direct (amexdirect) processors. Validation details (for selected processors)... <table> <thead><tr><th>Processor</th><th>Acceptance Type</th><th>Required</th><th>Default Value</th></tr></thead> <tr><td>American Express Direct</td><td>cp, cnp, hybrid</td><td>No</td><td>No</td></tr> </table>
94
+ attr_accessor :enable_auto_auth_reversal_after_void
95
+
96
+ # When this is enabled, authorization responses from American Express expresspay transactions include the Primary Account Number (PAN) and expiration date of the card. Applicable for American Express Direct (amexdirect) processor.
97
+ attr_accessor :enable_expresspay_pan_translation
98
+
99
+ # Authorizes a credit. Reduces refund chargebacks and prevents customers from seeing the online update for credits which are otherwise offline settlements.
100
+ attr_accessor :enable_credit_auth
101
+
102
+ # Field used to identify the industry type of the merchant submitting the authorization request. Valid values: `0` – unknown or unsure `A` auto rental (EMV supported) `B` bank/financial institution (EMV supported) `D` direct marketing `F` – food/restaurant (EMV supported) `G` – grocery store/super market (EMV supported) `H` – hotel (EMV supported) `L` – limited amount terminal (EMV supported) `O` – oil company/automated fueling system (EMV supported) `P` – passenger transport (EMV supported) `R` – retail (EMV supported) Applicable for TSYS (tsys), RUPAY and Elavon Americas (elavonamericas) processors. Possible values: - 0 - A - B - D - F - G - H - L - O - P - R
103
+ attr_accessor :industry_code
104
+
105
+ # Field that indicates whether merchant will send level 2 data for Amex cards. Applicable for TSYS (tsys) processor.
106
+ attr_accessor :send_amex_level2_data
107
+
108
+ # A soft descriptor is a text, rendered on a cardholder's statement, describing a particular product or service, purchased by the cardholder. Descriptors are intended to help the cardholder identify the products or services purchased. Valid values: `1` - trans_ref_no `2` - merchant_descriptor `3` - trans_ref_no and merchant_descriptor Applicable for TSYS (tsys) processor.
109
+ attr_accessor :soft_descriptor_type
110
+
111
+ # V-number provided by TSYS info. The leading `V` must be replaced by a `7`. For example, replace `V1234567` with `71234567`. Applicable for TSYS (tsys) processor.
112
+ attr_accessor :vital_number
113
+
114
+ # 6 digit agent bank number provided by acquirer. Applicable for TSYS (tsys) processor.
115
+ attr_accessor :bank_number
116
+
117
+ # 6 digit chain number provided by acquirer. Applicable for TSYS (tsys) processor.
118
+ attr_accessor :chain_number
119
+
120
+ # 6 digits acquirer bank identification number. Applicable for TSYS (tsys) processor.
121
+ attr_accessor :merchant_bin_number
122
+
123
+ # 5 digit merchant location number. Unless otherwise specified by merchant's bank or processor, this field should default to 00001. Applicable for TSYS (tsys) processor.
124
+ attr_accessor :merchant_location_number
125
+
126
+ # 4 digits number used to identify a specific merchant store location within the member systems. Applicable for TSYS (tsys) processor.
127
+ attr_accessor :store_id
128
+
129
+ # Contains travel agency code if airline ticket was issued by a travel agency. Applicable for TSYS (tsys) processor.
130
+ attr_accessor :travel_agency_code
131
+
132
+ # Contains travel agency name if airline ticket was issued by travel agency. Applicable for TSYS (tsys) processor.
133
+ attr_accessor :travel_agency_name
134
+
135
+ # This field is used to indicate Merchant's settlement currency. [ISO 4217 ALPHA-3 Standard Currency Codes] Applicable for TSYS (tsys) and Streamline (streamline2) processors.
136
+ attr_accessor :settlement_currency
137
+
138
+ # Indicates whether Least Cost Routing is enabled. Applicable for EFTPOS and CUP processors.
139
+ attr_accessor :enable_least_cost_routing
140
+
141
+ # This field denotes EFTPOS Merchant's choice of receiving CVV Processing Response in return. Applicable for EFTPOS processors.
142
+ attr_accessor :enable_cvv_response_indicator
143
+
144
+ # Applicable for Barclays (barclays2) processor. Validation details (for selected processors)... <table> <thead><tr><th>Processor</th><th>Acceptance Type</th><th>Required</th><th>Default Value</th></tr></thead> <tr><td>Barclays</td><td>cnp, cp, hybrid</td><td>No</td><td>Yes</td></tr> </table>
145
+ attr_accessor :enable_multi_currency_processing
146
+
147
+ # 'POS Network Switching' or 'Alternate Routing' means merchant can process PIN Debit transactions without a PIN. Set the value to 'Yes' if it is supported. Applicable for FDI Global (fdiglobal) processor.
148
+ attr_accessor :enable_pos_network_switching
149
+
150
+ # Enable dynamic currency conversion for a merchant.
151
+ attr_accessor :enable_dynamic_currency_conversion
152
+
153
+ # Merchant Tier defines the type of merchant, the numeric Merchant Tier value is allocated by EFTPOS. Applicable for EFTPOS processors.
154
+ attr_accessor :merchant_tier
155
+
156
+ # Attribute mapping from ruby-style variable name to JSON key.
157
+ def self.attribute_map
158
+ {
159
+ :'batch_group' => :'batchGroup',
160
+ :'business_application_id' => :'businessApplicationId',
161
+ :'merchant_verification_value' => :'merchantVerificationValue',
162
+ :'aba_number' => :'abaNumber',
163
+ :'acquirer' => :'acquirer',
164
+ :'merchant_id' => :'merchantId',
165
+ :'terminal_id' => :'terminalId',
166
+ :'payment_types' => :'paymentTypes',
167
+ :'currencies' => :'currencies',
168
+ :'visa_aggregator_id' => :'visaAggregatorId',
169
+ :'amex_aggregator_id' => :'amexAggregatorId',
170
+ :'master_card_aggregator_id' => :'masterCardAggregatorId',
171
+ :'sic_code' => :'sicCode',
172
+ :'allow_multiple_bills' => :'allowMultipleBills',
173
+ :'allow_merchant_descriptor_override' => :'allowMerchantDescriptorOverride',
174
+ :'enhanced_data' => :'enhancedData',
175
+ :'fire_safety_indicator' => :'fireSafetyIndicator',
176
+ :'quasi_cash' => :'quasiCash',
177
+ :'acquirer_merchant_id' => :'acquirerMerchantId',
178
+ :'avs_format' => :'avsFormat',
179
+ :'enable_long_trans_ref_no' => :'enableLongTransRefNo',
180
+ :'enable_level2' => :'enableLevel2',
181
+ :'enable_multiple_transaction_advice_addendum' => :'enableMultipleTransactionAdviceAddendum',
182
+ :'amex_transaction_advice_addendum1' => :'amexTransactionAdviceAddendum1',
183
+ :'enable_multi_line_items' => :'enableMultiLineItems',
184
+ :'enable_transaction_reference_number' => :'enableTransactionReferenceNumber',
185
+ :'enable_auto_auth_reversal_after_void' => :'enableAutoAuthReversalAfterVoid',
186
+ :'enable_expresspay_pan_translation' => :'enableExpresspayPanTranslation',
187
+ :'enable_credit_auth' => :'enableCreditAuth',
188
+ :'industry_code' => :'industryCode',
189
+ :'send_amex_level2_data' => :'sendAmexLevel2Data',
190
+ :'soft_descriptor_type' => :'softDescriptorType',
191
+ :'vital_number' => :'vitalNumber',
192
+ :'bank_number' => :'bankNumber',
193
+ :'chain_number' => :'chainNumber',
194
+ :'merchant_bin_number' => :'merchantBinNumber',
195
+ :'merchant_location_number' => :'merchantLocationNumber',
196
+ :'store_id' => :'storeID',
197
+ :'travel_agency_code' => :'travelAgencyCode',
198
+ :'travel_agency_name' => :'travelAgencyName',
199
+ :'settlement_currency' => :'settlementCurrency',
200
+ :'enable_least_cost_routing' => :'enableLeastCostRouting',
201
+ :'enable_cvv_response_indicator' => :'enableCVVResponseIndicator',
202
+ :'enable_multi_currency_processing' => :'enableMultiCurrencyProcessing',
203
+ :'enable_pos_network_switching' => :'enablePosNetworkSwitching',
204
+ :'enable_dynamic_currency_conversion' => :'enableDynamicCurrencyConversion',
205
+ :'merchant_tier' => :'merchantTier'
206
+ }
207
+ end
208
+
209
+ # Attribute mapping from JSON key to ruby-style variable name.
210
+ def self.json_map
211
+ {
212
+ :'batch_group' => :'batch_group',
213
+ :'business_application_id' => :'business_application_id',
214
+ :'merchant_verification_value' => :'merchant_verification_value',
215
+ :'aba_number' => :'aba_number',
216
+ :'acquirer' => :'acquirer',
217
+ :'merchant_id' => :'merchant_id',
218
+ :'terminal_id' => :'terminal_id',
219
+ :'payment_types' => :'payment_types',
220
+ :'currencies' => :'currencies',
221
+ :'visa_aggregator_id' => :'visa_aggregator_id',
222
+ :'amex_aggregator_id' => :'amex_aggregator_id',
223
+ :'master_card_aggregator_id' => :'master_card_aggregator_id',
224
+ :'sic_code' => :'sic_code',
225
+ :'allow_multiple_bills' => :'allow_multiple_bills',
226
+ :'allow_merchant_descriptor_override' => :'allow_merchant_descriptor_override',
227
+ :'enhanced_data' => :'enhanced_data',
228
+ :'fire_safety_indicator' => :'fire_safety_indicator',
229
+ :'quasi_cash' => :'quasi_cash',
230
+ :'acquirer_merchant_id' => :'acquirer_merchant_id',
231
+ :'avs_format' => :'avs_format',
232
+ :'enable_long_trans_ref_no' => :'enable_long_trans_ref_no',
233
+ :'enable_level2' => :'enable_level2',
234
+ :'enable_multiple_transaction_advice_addendum' => :'enable_multiple_transaction_advice_addendum',
235
+ :'amex_transaction_advice_addendum1' => :'amex_transaction_advice_addendum1',
236
+ :'enable_multi_line_items' => :'enable_multi_line_items',
237
+ :'enable_transaction_reference_number' => :'enable_transaction_reference_number',
238
+ :'enable_auto_auth_reversal_after_void' => :'enable_auto_auth_reversal_after_void',
239
+ :'enable_expresspay_pan_translation' => :'enable_expresspay_pan_translation',
240
+ :'enable_credit_auth' => :'enable_credit_auth',
241
+ :'industry_code' => :'industry_code',
242
+ :'send_amex_level2_data' => :'send_amex_level2_data',
243
+ :'soft_descriptor_type' => :'soft_descriptor_type',
244
+ :'vital_number' => :'vital_number',
245
+ :'bank_number' => :'bank_number',
246
+ :'chain_number' => :'chain_number',
247
+ :'merchant_bin_number' => :'merchant_bin_number',
248
+ :'merchant_location_number' => :'merchant_location_number',
249
+ :'store_id' => :'store_id',
250
+ :'travel_agency_code' => :'travel_agency_code',
251
+ :'travel_agency_name' => :'travel_agency_name',
252
+ :'settlement_currency' => :'settlement_currency',
253
+ :'enable_least_cost_routing' => :'enable_least_cost_routing',
254
+ :'enable_cvv_response_indicator' => :'enable_cvv_response_indicator',
255
+ :'enable_multi_currency_processing' => :'enable_multi_currency_processing',
256
+ :'enable_pos_network_switching' => :'enable_pos_network_switching',
257
+ :'enable_dynamic_currency_conversion' => :'enable_dynamic_currency_conversion',
258
+ :'merchant_tier' => :'merchant_tier'
259
+ }
260
+ end
261
+
262
+ # Attribute type mapping.
263
+ def self.swagger_types
264
+ {
265
+ :'batch_group' => :'String',
266
+ :'business_application_id' => :'String',
267
+ :'merchant_verification_value' => :'String',
268
+ :'aba_number' => :'String',
269
+ :'acquirer' => :'CardProcessingConfigCommonAcquirer',
270
+ :'merchant_id' => :'String',
271
+ :'terminal_id' => :'String',
272
+ :'payment_types' => :'Hash<String, CardProcessingConfigCommonPaymentTypes>',
273
+ :'currencies' => :'Hash<String, CardProcessingConfigCommonCurrencies1>',
274
+ :'visa_aggregator_id' => :'String',
275
+ :'amex_aggregator_id' => :'String',
276
+ :'master_card_aggregator_id' => :'String',
277
+ :'sic_code' => :'String',
278
+ :'allow_multiple_bills' => :'BOOLEAN',
279
+ :'allow_merchant_descriptor_override' => :'BOOLEAN',
280
+ :'enhanced_data' => :'String',
281
+ :'fire_safety_indicator' => :'BOOLEAN',
282
+ :'quasi_cash' => :'BOOLEAN',
283
+ :'acquirer_merchant_id' => :'String',
284
+ :'avs_format' => :'String',
285
+ :'enable_long_trans_ref_no' => :'BOOLEAN',
286
+ :'enable_level2' => :'BOOLEAN',
287
+ :'enable_multiple_transaction_advice_addendum' => :'BOOLEAN',
288
+ :'amex_transaction_advice_addendum1' => :'String',
289
+ :'enable_multi_line_items' => :'BOOLEAN',
290
+ :'enable_transaction_reference_number' => :'BOOLEAN',
291
+ :'enable_auto_auth_reversal_after_void' => :'BOOLEAN',
292
+ :'enable_expresspay_pan_translation' => :'BOOLEAN',
293
+ :'enable_credit_auth' => :'BOOLEAN',
294
+ :'industry_code' => :'String',
295
+ :'send_amex_level2_data' => :'BOOLEAN',
296
+ :'soft_descriptor_type' => :'String',
297
+ :'vital_number' => :'String',
298
+ :'bank_number' => :'String',
299
+ :'chain_number' => :'String',
300
+ :'merchant_bin_number' => :'String',
301
+ :'merchant_location_number' => :'String',
302
+ :'store_id' => :'String',
303
+ :'travel_agency_code' => :'String',
304
+ :'travel_agency_name' => :'String',
305
+ :'settlement_currency' => :'String',
306
+ :'enable_least_cost_routing' => :'BOOLEAN',
307
+ :'enable_cvv_response_indicator' => :'BOOLEAN',
308
+ :'enable_multi_currency_processing' => :'String',
309
+ :'enable_pos_network_switching' => :'BOOLEAN',
310
+ :'enable_dynamic_currency_conversion' => :'BOOLEAN',
311
+ :'merchant_tier' => :'String'
312
+ }
313
+ end
314
+
315
+ # Initializes the object
316
+ # @param [Hash] attributes Model attributes in the form of hash
317
+ def initialize(attributes = {})
318
+ return unless attributes.is_a?(Hash)
319
+
320
+ # convert string to symbol for hash key
321
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
322
+
323
+ if attributes.has_key?(:'batchGroup')
324
+ self.batch_group = attributes[:'batchGroup']
325
+ end
326
+
327
+ if attributes.has_key?(:'businessApplicationId')
328
+ self.business_application_id = attributes[:'businessApplicationId']
329
+ end
330
+
331
+ if attributes.has_key?(:'merchantVerificationValue')
332
+ self.merchant_verification_value = attributes[:'merchantVerificationValue']
333
+ end
334
+
335
+ if attributes.has_key?(:'abaNumber')
336
+ self.aba_number = attributes[:'abaNumber']
337
+ end
338
+
339
+ if attributes.has_key?(:'acquirer')
340
+ self.acquirer = attributes[:'acquirer']
341
+ end
342
+
343
+ if attributes.has_key?(:'merchantId')
344
+ self.merchant_id = attributes[:'merchantId']
345
+ end
346
+
347
+ if attributes.has_key?(:'terminalId')
348
+ self.terminal_id = attributes[:'terminalId']
349
+ end
350
+
351
+ if attributes.has_key?(:'paymentTypes')
352
+ if (value = attributes[:'paymentTypes']).is_a?(Hash)
353
+ self.payment_types = value
354
+ end
355
+ end
356
+
357
+ if attributes.has_key?(:'currencies')
358
+ if (value = attributes[:'currencies']).is_a?(Hash)
359
+ self.currencies = value
360
+ end
361
+ end
362
+
363
+ if attributes.has_key?(:'visaAggregatorId')
364
+ self.visa_aggregator_id = attributes[:'visaAggregatorId']
365
+ end
366
+
367
+ if attributes.has_key?(:'amexAggregatorId')
368
+ self.amex_aggregator_id = attributes[:'amexAggregatorId']
369
+ end
370
+
371
+ if attributes.has_key?(:'masterCardAggregatorId')
372
+ self.master_card_aggregator_id = attributes[:'masterCardAggregatorId']
373
+ end
374
+
375
+ if attributes.has_key?(:'sicCode')
376
+ self.sic_code = attributes[:'sicCode']
377
+ end
378
+
379
+ if attributes.has_key?(:'allowMultipleBills')
380
+ self.allow_multiple_bills = attributes[:'allowMultipleBills']
381
+ end
382
+
383
+ if attributes.has_key?(:'allowMerchantDescriptorOverride')
384
+ self.allow_merchant_descriptor_override = attributes[:'allowMerchantDescriptorOverride']
385
+ end
386
+
387
+ if attributes.has_key?(:'enhancedData')
388
+ self.enhanced_data = attributes[:'enhancedData']
389
+ end
390
+
391
+ if attributes.has_key?(:'fireSafetyIndicator')
392
+ self.fire_safety_indicator = attributes[:'fireSafetyIndicator']
393
+ end
394
+
395
+ if attributes.has_key?(:'quasiCash')
396
+ self.quasi_cash = attributes[:'quasiCash']
397
+ end
398
+
399
+ if attributes.has_key?(:'acquirerMerchantId')
400
+ self.acquirer_merchant_id = attributes[:'acquirerMerchantId']
401
+ end
402
+
403
+ if attributes.has_key?(:'avsFormat')
404
+ self.avs_format = attributes[:'avsFormat']
405
+ end
406
+
407
+ if attributes.has_key?(:'enableLongTransRefNo')
408
+ self.enable_long_trans_ref_no = attributes[:'enableLongTransRefNo']
409
+ end
410
+
411
+ if attributes.has_key?(:'enableLevel2')
412
+ self.enable_level2 = attributes[:'enableLevel2']
413
+ end
414
+
415
+ if attributes.has_key?(:'enableMultipleTransactionAdviceAddendum')
416
+ self.enable_multiple_transaction_advice_addendum = attributes[:'enableMultipleTransactionAdviceAddendum']
417
+ end
418
+
419
+ if attributes.has_key?(:'amexTransactionAdviceAddendum1')
420
+ self.amex_transaction_advice_addendum1 = attributes[:'amexTransactionAdviceAddendum1']
421
+ end
422
+
423
+ if attributes.has_key?(:'enableMultiLineItems')
424
+ self.enable_multi_line_items = attributes[:'enableMultiLineItems']
425
+ end
426
+
427
+ if attributes.has_key?(:'enableTransactionReferenceNumber')
428
+ self.enable_transaction_reference_number = attributes[:'enableTransactionReferenceNumber']
429
+ end
430
+
431
+ if attributes.has_key?(:'enableAutoAuthReversalAfterVoid')
432
+ self.enable_auto_auth_reversal_after_void = attributes[:'enableAutoAuthReversalAfterVoid']
433
+ end
434
+
435
+ if attributes.has_key?(:'enableExpresspayPanTranslation')
436
+ self.enable_expresspay_pan_translation = attributes[:'enableExpresspayPanTranslation']
437
+ end
438
+
439
+ if attributes.has_key?(:'enableCreditAuth')
440
+ self.enable_credit_auth = attributes[:'enableCreditAuth']
441
+ end
442
+
443
+ if attributes.has_key?(:'industryCode')
444
+ self.industry_code = attributes[:'industryCode']
445
+ end
446
+
447
+ if attributes.has_key?(:'sendAmexLevel2Data')
448
+ self.send_amex_level2_data = attributes[:'sendAmexLevel2Data']
449
+ end
450
+
451
+ if attributes.has_key?(:'softDescriptorType')
452
+ self.soft_descriptor_type = attributes[:'softDescriptorType']
453
+ end
454
+
455
+ if attributes.has_key?(:'vitalNumber')
456
+ self.vital_number = attributes[:'vitalNumber']
457
+ end
458
+
459
+ if attributes.has_key?(:'bankNumber')
460
+ self.bank_number = attributes[:'bankNumber']
461
+ end
462
+
463
+ if attributes.has_key?(:'chainNumber')
464
+ self.chain_number = attributes[:'chainNumber']
465
+ end
466
+
467
+ if attributes.has_key?(:'merchantBinNumber')
468
+ self.merchant_bin_number = attributes[:'merchantBinNumber']
469
+ end
470
+
471
+ if attributes.has_key?(:'merchantLocationNumber')
472
+ self.merchant_location_number = attributes[:'merchantLocationNumber']
473
+ end
474
+
475
+ if attributes.has_key?(:'storeID')
476
+ self.store_id = attributes[:'storeID']
477
+ end
478
+
479
+ if attributes.has_key?(:'travelAgencyCode')
480
+ self.travel_agency_code = attributes[:'travelAgencyCode']
481
+ end
482
+
483
+ if attributes.has_key?(:'travelAgencyName')
484
+ self.travel_agency_name = attributes[:'travelAgencyName']
485
+ end
486
+
487
+ if attributes.has_key?(:'settlementCurrency')
488
+ self.settlement_currency = attributes[:'settlementCurrency']
489
+ end
490
+
491
+ if attributes.has_key?(:'enableLeastCostRouting')
492
+ self.enable_least_cost_routing = attributes[:'enableLeastCostRouting']
493
+ end
494
+
495
+ if attributes.has_key?(:'enableCVVResponseIndicator')
496
+ self.enable_cvv_response_indicator = attributes[:'enableCVVResponseIndicator']
497
+ end
498
+
499
+ if attributes.has_key?(:'enableMultiCurrencyProcessing')
500
+ self.enable_multi_currency_processing = attributes[:'enableMultiCurrencyProcessing']
501
+ end
502
+
503
+ if attributes.has_key?(:'enablePosNetworkSwitching')
504
+ self.enable_pos_network_switching = attributes[:'enablePosNetworkSwitching']
505
+ end
506
+
507
+ if attributes.has_key?(:'enableDynamicCurrencyConversion')
508
+ self.enable_dynamic_currency_conversion = attributes[:'enableDynamicCurrencyConversion']
509
+ end
510
+
511
+ if attributes.has_key?(:'merchantTier')
512
+ self.merchant_tier = attributes[:'merchantTier']
513
+ end
514
+ end
515
+
516
+ # Show invalid properties with the reasons. Usually used together with valid?
517
+ # @return Array for valid properties with the reasons
518
+ def list_invalid_properties
519
+ invalid_properties = Array.new
520
+ if @merchant_id.nil?
521
+ invalid_properties.push('invalid value for "merchant_id", merchant_id cannot be nil.')
522
+ end
523
+
524
+ #if !@merchant_tier.nil? && @merchant_tier !~ Regexp.new(/^[0-9]+$/)
525
+ #invalid_properties.push('invalid value for "merchant_tier", must conform to the pattern /^[0-9]+$/.')
526
+ #end
527
+
528
+ invalid_properties
529
+ end
530
+
531
+ # Check to see if the all the properties in the model are valid
532
+ # @return true if the model is valid
533
+ def valid?
534
+ return false if @merchant_id.nil?
535
+ #return false if !@merchant_tier.nil? && @merchant_tier !~ Regexp.new(/^[0-9]+$/)
536
+ true
537
+ end
538
+
539
+ # Custom attribute writer method with validation
540
+ # @param [Object] merchant_tier Value to be assigned
541
+ def merchant_tier=(merchant_tier)
542
+ #if !merchant_tier.nil? && merchant_tier !~ Regexp.new(/^[0-9]+$/)
543
+ #fail ArgumentError, 'invalid value for "merchant_tier", must conform to the pattern /^[0-9]+$/.'
544
+ #end
545
+
546
+ @merchant_tier = merchant_tier
547
+ end
548
+
549
+ # Checks equality by comparing each attribute.
550
+ # @param [Object] Object to be compared
551
+ def ==(o)
552
+ return true if self.equal?(o)
553
+ self.class == o.class &&
554
+ batch_group == o.batch_group &&
555
+ business_application_id == o.business_application_id &&
556
+ merchant_verification_value == o.merchant_verification_value &&
557
+ aba_number == o.aba_number &&
558
+ acquirer == o.acquirer &&
559
+ merchant_id == o.merchant_id &&
560
+ terminal_id == o.terminal_id &&
561
+ payment_types == o.payment_types &&
562
+ currencies == o.currencies &&
563
+ visa_aggregator_id == o.visa_aggregator_id &&
564
+ amex_aggregator_id == o.amex_aggregator_id &&
565
+ master_card_aggregator_id == o.master_card_aggregator_id &&
566
+ sic_code == o.sic_code &&
567
+ allow_multiple_bills == o.allow_multiple_bills &&
568
+ allow_merchant_descriptor_override == o.allow_merchant_descriptor_override &&
569
+ enhanced_data == o.enhanced_data &&
570
+ fire_safety_indicator == o.fire_safety_indicator &&
571
+ quasi_cash == o.quasi_cash &&
572
+ acquirer_merchant_id == o.acquirer_merchant_id &&
573
+ avs_format == o.avs_format &&
574
+ enable_long_trans_ref_no == o.enable_long_trans_ref_no &&
575
+ enable_level2 == o.enable_level2 &&
576
+ enable_multiple_transaction_advice_addendum == o.enable_multiple_transaction_advice_addendum &&
577
+ amex_transaction_advice_addendum1 == o.amex_transaction_advice_addendum1 &&
578
+ enable_multi_line_items == o.enable_multi_line_items &&
579
+ enable_transaction_reference_number == o.enable_transaction_reference_number &&
580
+ enable_auto_auth_reversal_after_void == o.enable_auto_auth_reversal_after_void &&
581
+ enable_expresspay_pan_translation == o.enable_expresspay_pan_translation &&
582
+ enable_credit_auth == o.enable_credit_auth &&
583
+ industry_code == o.industry_code &&
584
+ send_amex_level2_data == o.send_amex_level2_data &&
585
+ soft_descriptor_type == o.soft_descriptor_type &&
586
+ vital_number == o.vital_number &&
587
+ bank_number == o.bank_number &&
588
+ chain_number == o.chain_number &&
589
+ merchant_bin_number == o.merchant_bin_number &&
590
+ merchant_location_number == o.merchant_location_number &&
591
+ store_id == o.store_id &&
592
+ travel_agency_code == o.travel_agency_code &&
593
+ travel_agency_name == o.travel_agency_name &&
594
+ settlement_currency == o.settlement_currency &&
595
+ enable_least_cost_routing == o.enable_least_cost_routing &&
596
+ enable_cvv_response_indicator == o.enable_cvv_response_indicator &&
597
+ enable_multi_currency_processing == o.enable_multi_currency_processing &&
598
+ enable_pos_network_switching == o.enable_pos_network_switching &&
599
+ enable_dynamic_currency_conversion == o.enable_dynamic_currency_conversion &&
600
+ merchant_tier == o.merchant_tier
601
+ end
602
+
603
+ # @see the `==` method
604
+ # @param [Object] Object to be compared
605
+ def eql?(o)
606
+ self == o
607
+ end
608
+
609
+ # Calculates hash code according to all attributes.
610
+ # @return [Fixnum] Hash code
611
+ def hash
612
+ [batch_group, business_application_id, merchant_verification_value, aba_number, acquirer, merchant_id, terminal_id, payment_types, currencies, visa_aggregator_id, amex_aggregator_id, master_card_aggregator_id, sic_code, allow_multiple_bills, allow_merchant_descriptor_override, enhanced_data, fire_safety_indicator, quasi_cash, acquirer_merchant_id, avs_format, enable_long_trans_ref_no, enable_level2, enable_multiple_transaction_advice_addendum, amex_transaction_advice_addendum1, enable_multi_line_items, enable_transaction_reference_number, enable_auto_auth_reversal_after_void, enable_expresspay_pan_translation, enable_credit_auth, industry_code, send_amex_level2_data, soft_descriptor_type, vital_number, bank_number, chain_number, merchant_bin_number, merchant_location_number, store_id, travel_agency_code, travel_agency_name, settlement_currency, enable_least_cost_routing, enable_cvv_response_indicator, enable_multi_currency_processing, enable_pos_network_switching, enable_dynamic_currency_conversion, merchant_tier].hash
613
+ end
614
+
615
+ # Builds the object from hash
616
+ # @param [Hash] attributes Model attributes in the form of hash
617
+ # @return [Object] Returns the model itself
618
+ def build_from_hash(attributes)
619
+ return nil unless attributes.is_a?(Hash)
620
+ self.class.swagger_types.each_pair do |key, type|
621
+ if type =~ /\AArray<(.*)>/i
622
+ # check to ensure the input is an array given that the the attribute
623
+ # is documented as an array but the input is not
624
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
625
+ self.send("#{self.class.json_map[key]}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
626
+ end
627
+ elsif !attributes[self.class.attribute_map[key]].nil?
628
+ self.send("#{self.class.json_map[key]}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
629
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
630
+ end
631
+
632
+ self
633
+ end
634
+
635
+ # Deserializes the data based on type
636
+ # @param string type Data type
637
+ # @param string value Value to be deserialized
638
+ # @return [Object] Deserialized data
639
+ def _deserialize(type, value)
640
+ case type.to_sym
641
+ when :DateTime
642
+ DateTime.parse(value)
643
+ when :Date
644
+ Date.parse(value)
645
+ when :String
646
+ value.to_s
647
+ when :Integer
648
+ value.to_i
649
+ when :Float
650
+ value.to_f
651
+ when :BOOLEAN
652
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
653
+ true
654
+ else
655
+ false
656
+ end
657
+ when :Object
658
+ # generic object (usually a Hash), return directly
659
+ value
660
+ when /\AArray<(?<inner_type>.+)>\z/
661
+ inner_type = Regexp.last_match[:inner_type]
662
+ value.map { |v| _deserialize(inner_type, v) }
663
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
664
+ k_type = Regexp.last_match[:k_type]
665
+ v_type = Regexp.last_match[:v_type]
666
+ {}.tap do |hash|
667
+ value.each do |k, v|
668
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
669
+ end
670
+ end
671
+ else # model
672
+ temp_model = CyberSource.const_get(type).new
673
+ temp_model.build_from_hash(value)
674
+ end
675
+ end
676
+
677
+ # Returns the string representation of the object
678
+ # @return [String] String presentation of the object
679
+ def to_s
680
+ to_hash.to_s
681
+ end
682
+
683
+ # to_body is an alias to to_hash (backward compatibility)
684
+ # @return [Hash] Returns the object in the form of hash
685
+ def to_body
686
+ to_hash
687
+ end
688
+
689
+ # Returns the object in the form of hash
690
+ # @return [Hash] Returns the object in the form of hash
691
+ def to_hash
692
+ hash = {}
693
+ self.class.attribute_map.each_pair do |attr, param|
694
+ value = self.send(attr)
695
+ next if value.nil?
696
+ hash[param] = _to_hash(value)
697
+ end
698
+ hash
699
+ end
700
+
701
+ # Outputs non-array value in the form of hash
702
+ # For object, use to_hash. Otherwise, just return the value
703
+ # @param [Object] value Any valid value
704
+ # @return [Hash] Returns the value in the form of hash
705
+ def _to_hash(value)
706
+ if value.is_a?(Array)
707
+ value.compact.map { |v| _to_hash(v) }
708
+ elsif value.is_a?(Hash)
709
+ {}.tap do |hash|
710
+ value.each { |k, v| hash[k] = _to_hash(v) }
711
+ end
712
+ elsif value.respond_to? :to_hash
713
+ value.to_hash
714
+ else
715
+ value
716
+ end
717
+ end
718
+ end
719
+ end