cybersource_rest_client 0.0.72 → 0.0.74

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 (271) hide show
  1. checksums.yaml +4 -4
  2. data/lib/cybersource_rest_client/api/batches_api.rb +9 -9
  3. data/lib/cybersource_rest_client/api/device_de_association_api.rb +168 -0
  4. data/lib/cybersource_rest_client/api/device_search_api.rb +169 -0
  5. data/lib/cybersource_rest_client/api/subscriptions_api.rb +5 -2
  6. data/lib/cybersource_rest_client/api/transaction_batches_api.rb +7 -2
  7. data/lib/cybersource_rest_client/models/commerce_solutions_products_account_updater.rb +1 -1
  8. data/lib/cybersource_rest_client/models/commerce_solutions_products_bin_lookup.rb +1 -1
  9. data/lib/cybersource_rest_client/models/commerce_solutions_products_token_management.rb +1 -1
  10. data/lib/cybersource_rest_client/models/create_invoice_request.rb +239 -239
  11. data/lib/cybersource_rest_client/models/create_payment_link_request.rb +234 -234
  12. data/lib/cybersource_rest_client/models/create_subscription_request_1.rb +229 -229
  13. data/lib/cybersource_rest_client/models/create_webhook.rb +267 -267
  14. data/lib/cybersource_rest_client/models/de_association_request_body.rb +190 -0
  15. data/lib/cybersource_rest_client/models/device_de_associate_v3_request.rb +222 -0
  16. data/lib/cybersource_rest_client/models/dmsv3devicesdeassociate_devices.rb +209 -0
  17. data/lib/cybersource_rest_client/models/generate_capture_context_request.rb +1 -1
  18. data/lib/cybersource_rest_client/models/generate_unified_checkout_capture_context_request.rb +2 -2
  19. data/lib/cybersource_rest_client/models/get_subscription_response.rb +267 -257
  20. data/lib/cybersource_rest_client/models/get_subscription_response_1.rb +219 -219
  21. data/lib/cybersource_rest_client/models/get_subscription_response_1__links.rb +199 -199
  22. data/lib/cybersource_rest_client/models/get_subscription_response_1_buyer_information.rb +214 -214
  23. data/lib/cybersource_rest_client/models/get_subscription_response_1_payment_instrument.rb +237 -237
  24. data/lib/cybersource_rest_client/models/get_subscription_response_1_payment_instrument_bank_account.rb +224 -224
  25. data/lib/cybersource_rest_client/models/get_subscription_response_1_payment_instrument_buyer_information.rb +236 -236
  26. data/lib/cybersource_rest_client/models/get_subscription_response_1_payment_instrument_card.rb +242 -242
  27. data/lib/cybersource_rest_client/models/get_subscription_response_1_shipping_address.rb +207 -207
  28. data/lib/cybersource_rest_client/models/get_subscription_response_reactivation_information.rb +213 -0
  29. data/lib/cybersource_rest_client/models/inline_response_200.rb +226 -226
  30. data/lib/cybersource_rest_client/models/inline_response_200_1.rb +228 -228
  31. data/lib/cybersource_rest_client/models/inline_response_200_10.rb +292 -0
  32. data/lib/cybersource_rest_client/models/{inline_response_200_7_records.rb → inline_response_200_10_records.rb} +3 -3
  33. data/lib/cybersource_rest_client/models/{inline_response_200_7_response_record.rb → inline_response_200_10_response_record.rb} +2 -2
  34. data/lib/cybersource_rest_client/models/{inline_response_200_7_response_record_additional_updates.rb → inline_response_200_10_response_record_additional_updates.rb} +1 -1
  35. data/lib/cybersource_rest_client/models/{inline_response_200_7_source_record.rb → inline_response_200_10_source_record.rb} +1 -1
  36. data/lib/cybersource_rest_client/models/inline_response_200_1__embedded.rb +200 -200
  37. data/lib/cybersource_rest_client/models/inline_response_200_1__embedded_capture.rb +201 -201
  38. data/lib/cybersource_rest_client/models/inline_response_200_1__embedded_capture__links.rb +190 -190
  39. data/lib/cybersource_rest_client/models/inline_response_200_1__embedded_capture__links_self.rb +202 -202
  40. data/lib/cybersource_rest_client/models/inline_response_200_1__embedded_reversal.rb +201 -201
  41. data/lib/cybersource_rest_client/models/inline_response_200_1__embedded_reversal__links.rb +190 -190
  42. data/lib/cybersource_rest_client/models/inline_response_200_1__embedded_reversal__links_self.rb +202 -202
  43. data/lib/cybersource_rest_client/models/inline_response_200_2.rb +253 -253
  44. data/lib/cybersource_rest_client/models/inline_response_200_2_integration_information.rb +204 -204
  45. data/lib/cybersource_rest_client/models/inline_response_200_2_integration_information_tenant_configurations.rb +263 -263
  46. data/lib/cybersource_rest_client/models/inline_response_200_3.rb +213 -213
  47. data/lib/cybersource_rest_client/models/inline_response_200_4.rb +312 -312
  48. data/lib/cybersource_rest_client/models/inline_response_200_5.rb +33 -37
  49. data/lib/cybersource_rest_client/models/inline_response_200_5_devices.rb +357 -0
  50. data/lib/cybersource_rest_client/models/inline_response_200_6.rb +11 -99
  51. data/lib/cybersource_rest_client/models/inline_response_200_7.rb +50 -95
  52. data/lib/cybersource_rest_client/models/inline_response_200_7_devices.rb +371 -0
  53. data/lib/cybersource_rest_client/models/inline_response_200_7_payment_processor_to_terminal_map.rb +200 -0
  54. data/lib/cybersource_rest_client/models/inline_response_200_8.rb +251 -0
  55. data/lib/cybersource_rest_client/models/{inline_response_200_5__embedded.rb → inline_response_200_8__embedded.rb} +2 -2
  56. data/lib/cybersource_rest_client/models/{inline_response_200_5__embedded__links.rb → inline_response_200_8__embedded__links.rb} +2 -2
  57. data/lib/cybersource_rest_client/models/{inline_response_200_5__embedded__links_reports.rb → inline_response_200_8__embedded__links_reports.rb} +1 -1
  58. data/lib/cybersource_rest_client/models/{inline_response_200_5__embedded_batches.rb → inline_response_200_8__embedded_batches.rb} +3 -3
  59. data/lib/cybersource_rest_client/models/{inline_response_200_5__embedded_totals.rb → inline_response_200_8__embedded_totals.rb} +1 -1
  60. data/lib/cybersource_rest_client/models/{inline_response_200_5__links.rb → inline_response_200_8__links.rb} +1 -1
  61. data/lib/cybersource_rest_client/models/inline_response_200_9.rb +290 -0
  62. data/lib/cybersource_rest_client/models/{inline_response_200_6__links.rb → inline_response_200_9__links.rb} +2 -2
  63. data/lib/cybersource_rest_client/models/{inline_response_200_6__links_report.rb → inline_response_200_9__links_report.rb} +1 -1
  64. data/lib/cybersource_rest_client/models/{inline_response_200_6_billing.rb → inline_response_200_9_billing.rb} +1 -1
  65. data/lib/cybersource_rest_client/models/inline_response_200_content.rb +223 -223
  66. data/lib/cybersource_rest_client/models/inline_response_201_2_setups_payments.rb +11 -1
  67. data/lib/cybersource_rest_client/models/inline_response_201_2_setups_payments_alternative_payment_methods.rb +221 -0
  68. data/lib/cybersource_rest_client/models/inline_response_201_2_setups_payments_alternative_payment_methods_configuration_status.rb +200 -0
  69. data/lib/cybersource_rest_client/models/inline_response_201_2_setups_value_added_services.rb +15 -5
  70. data/lib/cybersource_rest_client/models/inline_response_201_4.rb +312 -312
  71. data/lib/cybersource_rest_client/models/inline_response_201_5.rb +277 -277
  72. data/lib/cybersource_rest_client/models/inline_response_201_5_payloads.rb +189 -189
  73. data/lib/cybersource_rest_client/models/inline_response_201_5_payloads_test_payload.rb +190 -190
  74. data/lib/cybersource_rest_client/models/inline_response_201_6.rb +202 -202
  75. data/lib/cybersource_rest_client/models/inline_response_202__links.rb +1 -1
  76. data/lib/cybersource_rest_client/models/inline_response_206.rb +202 -0
  77. data/lib/cybersource_rest_client/models/inline_response_400_5.rb +235 -235
  78. data/lib/cybersource_rest_client/models/inline_response_400_6.rb +258 -258
  79. data/lib/cybersource_rest_client/models/inline_response_400_6_fields.rb +213 -213
  80. data/lib/cybersource_rest_client/models/inline_response_400_7.rb +235 -235
  81. data/lib/cybersource_rest_client/models/inline_response_400_7_details.rb +201 -201
  82. data/lib/cybersource_rest_client/models/inline_response_400_8.rb +236 -0
  83. data/lib/cybersource_rest_client/models/inline_response_400_8_details.rb +212 -0
  84. data/lib/cybersource_rest_client/models/inline_response_401.rb +29 -59
  85. data/lib/cybersource_rest_client/models/inline_response_401_1.rb +253 -0
  86. data/lib/cybersource_rest_client/models/{inline_response_401__links.rb → inline_response_401_1__links.rb} +2 -2
  87. data/lib/cybersource_rest_client/models/{inline_response_401__links_self.rb → inline_response_401_1__links_self.rb} +1 -1
  88. data/lib/cybersource_rest_client/models/{inline_response_401_fields.rb → inline_response_401_1_fields.rb} +1 -1
  89. data/lib/cybersource_rest_client/models/inline_response_403_2.rb +223 -0
  90. data/lib/cybersource_rest_client/models/inline_response_404_1.rb +235 -235
  91. data/lib/cybersource_rest_client/models/inline_response_404_2.rb +211 -211
  92. data/lib/cybersource_rest_client/models/inline_response_404_2_details.rb +199 -199
  93. data/lib/cybersource_rest_client/models/inline_response_404_3.rb +223 -0
  94. data/lib/cybersource_rest_client/models/inline_response_422_1.rb +235 -235
  95. data/lib/cybersource_rest_client/models/inline_response_500_3.rb +223 -0
  96. data/lib/cybersource_rest_client/models/invoicing_v2_invoice_settings_get200_response_invoice_settings_information.rb +380 -380
  97. data/lib/cybersource_rest_client/models/invoicing_v2_invoices_all_get200_response.rb +222 -222
  98. data/lib/cybersource_rest_client/models/invoicing_v2_invoices_all_get200_response_invoice_information.rb +201 -201
  99. data/lib/cybersource_rest_client/models/invoicing_v2_invoices_all_get200_response_invoices.rb +259 -259
  100. data/lib/cybersource_rest_client/models/invoicing_v2_invoices_all_get200_response_order_information.rb +190 -190
  101. data/lib/cybersource_rest_client/models/invoicing_v2_invoices_all_get200_response_order_information_amount_details.rb +214 -214
  102. data/lib/cybersource_rest_client/models/invoicing_v2_invoices_all_get400_response.rb +235 -235
  103. data/lib/cybersource_rest_client/models/invoicing_v2_invoices_all_get404_response.rb +235 -235
  104. data/lib/cybersource_rest_client/models/invoicing_v2_invoices_cancel200_response.rb +268 -268
  105. data/lib/cybersource_rest_client/models/invoicing_v2_invoices_get200_response.rb +280 -280
  106. data/lib/cybersource_rest_client/models/invoicing_v2_invoices_get200_response_invoice_history.rb +211 -211
  107. data/lib/cybersource_rest_client/models/invoicing_v2_invoices_get200_response_transaction_details.rb +208 -208
  108. data/lib/cybersource_rest_client/models/invoicing_v2_invoices_post201_response.rb +268 -268
  109. data/lib/cybersource_rest_client/models/invoicing_v2_invoices_post201_response_invoice_information.rb +265 -265
  110. data/lib/cybersource_rest_client/models/invoicing_v2_invoices_post201_response_order_information.rb +203 -203
  111. data/lib/cybersource_rest_client/models/invoicing_v2_invoices_post201_response_order_information_amount_details.rb +313 -313
  112. data/lib/cybersource_rest_client/models/invoicing_v2_invoices_put200_response.rb +268 -268
  113. data/lib/cybersource_rest_client/models/invoicing_v2_invoices_send200_response.rb +268 -268
  114. data/lib/cybersource_rest_client/models/invoicingv2invoice_settings_invoice_settings_information.rb +384 -384
  115. data/lib/cybersource_rest_client/models/invoicingv2invoices_client_reference_information.rb +189 -189
  116. data/lib/cybersource_rest_client/models/invoicingv2invoices_client_reference_information_partner.rb +213 -213
  117. data/lib/cybersource_rest_client/models/invoicingv2invoices_invoice_information.rb +281 -281
  118. data/lib/cybersource_rest_client/models/invoicingv2invoices_order_information.rb +208 -208
  119. data/lib/cybersource_rest_client/models/invoicingv2invoices_order_information_amount_details.rb +314 -314
  120. data/lib/cybersource_rest_client/models/invoicingv2invoices_order_information_amount_details_freight.rb +225 -225
  121. data/lib/cybersource_rest_client/models/invoicingv2invoices_order_information_amount_details_tax_details.rb +225 -225
  122. data/lib/cybersource_rest_client/models/invoicingv2invoices_order_information_line_items.rb +333 -333
  123. data/lib/cybersource_rest_client/models/invoicingv2invoices_processing_information.rb +206 -206
  124. data/lib/cybersource_rest_client/models/invoicingv2invoicesid_invoice_information.rb +270 -270
  125. data/lib/cybersource_rest_client/models/iplv2paymentlinks_order_information.rb +213 -213
  126. data/lib/cybersource_rest_client/models/iplv2paymentlinks_order_information_amount_details.rb +245 -245
  127. data/lib/cybersource_rest_client/models/iplv2paymentlinks_order_information_line_items.rb +274 -274
  128. data/lib/cybersource_rest_client/models/iplv2paymentlinks_processing_information.rb +222 -222
  129. data/lib/cybersource_rest_client/models/iplv2paymentlinks_purchase_information.rb +206 -206
  130. data/lib/cybersource_rest_client/models/iplv2paymentlinksid_order_information.rb +208 -208
  131. data/lib/cybersource_rest_client/models/iplv2paymentlinksid_processing_information.rb +217 -217
  132. data/lib/cybersource_rest_client/models/iplv2paymentlinksid_purchase_information.rb +197 -197
  133. data/lib/cybersource_rest_client/models/model_400_upload_batch_file_response.rb +199 -199
  134. data/lib/cybersource_rest_client/models/notificationsubscriptionsv2productsorganization_id_event_types.rb +233 -233
  135. data/lib/cybersource_rest_client/models/notificationsubscriptionsv2webhooks_products.rb +202 -202
  136. data/lib/cybersource_rest_client/models/notificationsubscriptionsv2webhooks_products_1.rb +202 -202
  137. data/lib/cybersource_rest_client/models/notificationsubscriptionsv2webhooks_retry_policy.rb +270 -270
  138. data/lib/cybersource_rest_client/models/notificationsubscriptionsv2webhooks_security_policy.rb +201 -201
  139. data/lib/cybersource_rest_client/models/notificationsubscriptionsv2webhooks_security_policy_1.rb +201 -201
  140. data/lib/cybersource_rest_client/models/notificationsubscriptionsv2webhooks_security_policy_1_config.rb +223 -223
  141. data/lib/cybersource_rest_client/models/notificationsubscriptionsv2webhooks_security_policy_1_config_additional_config.rb +220 -220
  142. data/lib/cybersource_rest_client/models/notificationsubscriptionsv2webhooks_security_policy_config.rb +213 -213
  143. data/lib/cybersource_rest_client/models/payments_products.rb +379 -369
  144. data/lib/cybersource_rest_client/models/payments_products_alternative_payment_methods.rb +199 -0
  145. data/lib/cybersource_rest_client/models/payments_products_alternative_payment_methods_additional_configurations.rb +202 -0
  146. data/lib/cybersource_rest_client/models/payments_products_alternative_payment_methods_configuration_information.rb +189 -0
  147. data/lib/cybersource_rest_client/models/payments_products_alternative_payment_methods_configuration_information_configurations.rb +203 -0
  148. data/lib/cybersource_rest_client/models/payments_products_alternative_payment_methods_configuration_information_configurations_processors.rb +193 -0
  149. data/lib/cybersource_rest_client/models/payments_products_alternative_payment_methods_configuration_payment_methods.rb +248 -0
  150. data/lib/cybersource_rest_client/models/{payments_products_payer_authentication_subscription_information.rb → payments_products_alternative_payment_methods_subscription_information.rb} +1 -1
  151. data/lib/cybersource_rest_client/models/payments_products_currency_conversion.rb +1 -1
  152. data/lib/cybersource_rest_client/models/payments_products_payer_authentication.rb +1 -1
  153. data/lib/cybersource_rest_client/models/payments_products_payouts.rb +1 -1
  154. data/lib/cybersource_rest_client/models/payments_products_secure_acceptance.rb +1 -1
  155. data/lib/cybersource_rest_client/models/payments_products_service_fee.rb +1 -1
  156. data/lib/cybersource_rest_client/models/payments_products_tax.rb +1 -1
  157. data/lib/cybersource_rest_client/models/payments_products_unified_checkout.rb +199 -0
  158. data/lib/cybersource_rest_client/models/payments_products_unified_checkout_configuration_information.rb +189 -0
  159. data/lib/cybersource_rest_client/models/payments_products_unified_checkout_configuration_information_configurations.rb +189 -0
  160. data/lib/cybersource_rest_client/models/payments_products_unified_checkout_configuration_information_configurations_features.rb +189 -0
  161. data/lib/cybersource_rest_client/models/payments_products_unified_checkout_configuration_information_configurations_features_paze.rb +213 -0
  162. data/lib/cybersource_rest_client/models/payments_products_unified_checkout_subscription_information.rb +225 -0
  163. data/lib/cybersource_rest_client/models/payments_products_unified_checkout_subscription_information_features.rb +189 -0
  164. data/lib/cybersource_rest_client/models/payments_products_unified_checkout_subscription_information_features_paze_for_unified_checkout.rb +190 -0
  165. data/lib/cybersource_rest_client/models/payments_products_virtual_terminal.rb +1 -1
  166. data/lib/cybersource_rest_client/models/payments_strong_auth_issuer_information.rb +281 -281
  167. data/lib/cybersource_rest_client/models/pbl_payment_links_all_get200_response.rb +222 -222
  168. data/lib/cybersource_rest_client/models/pbl_payment_links_all_get200_response_links.rb +259 -259
  169. data/lib/cybersource_rest_client/models/pbl_payment_links_all_get200_response_order_information.rb +203 -203
  170. data/lib/cybersource_rest_client/models/pbl_payment_links_all_get200_response_order_information_amount_details.rb +236 -236
  171. data/lib/cybersource_rest_client/models/pbl_payment_links_all_get200_response_order_information_line_items.rb +231 -231
  172. data/lib/cybersource_rest_client/models/pbl_payment_links_all_get200_response_processing_information.rb +191 -191
  173. data/lib/cybersource_rest_client/models/pbl_payment_links_all_get200_response_purchase_information.rb +208 -208
  174. data/lib/cybersource_rest_client/models/pbl_payment_links_all_get400_response.rb +235 -235
  175. data/lib/cybersource_rest_client/models/pbl_payment_links_all_get404_response.rb +235 -235
  176. data/lib/cybersource_rest_client/models/pbl_payment_links_get200_response.rb +258 -258
  177. data/lib/cybersource_rest_client/models/pbl_payment_links_post201_response.rb +258 -258
  178. data/lib/cybersource_rest_client/models/pbl_payment_links_post201_response__links.rb +199 -199
  179. data/lib/cybersource_rest_client/models/pbl_payment_links_post201_response_order_information.rb +203 -203
  180. data/lib/cybersource_rest_client/models/pbl_payment_links_post201_response_purchase_information.rb +219 -219
  181. data/lib/cybersource_rest_client/models/post_device_search_request.rb +223 -0
  182. data/lib/cybersource_rest_client/models/post_device_search_request_v3.rb +223 -0
  183. data/lib/cybersource_rest_client/models/post_payment_credentials_request.rb +201 -201
  184. data/lib/cybersource_rest_client/models/pts_v2_incremental_authorization_patch201_response_error_information.rb +213 -213
  185. data/lib/cybersource_rest_client/models/pts_v2_payments_order_post201_response_order_information_amount_details.rb +213 -213
  186. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_1.rb +295 -295
  187. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_1_error_information.rb +213 -213
  188. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_1_error_information_details.rb +190 -190
  189. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_1_issuer_information.rb +213 -213
  190. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_1_order_information.rb +209 -209
  191. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_1_order_information_amount_details.rb +196 -196
  192. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_1_payment_information.rb +219 -219
  193. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_1_payment_information_e_wallet.rb +213 -213
  194. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_1_processor_information.rb +289 -289
  195. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_2_order_information_amount_details.rb +196 -196
  196. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_error_information.rb +213 -213
  197. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_account_information_card.rb +1 -1
  198. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information_tokenized_card.rb +1 -1
  199. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information.rb +1 -1
  200. data/lib/cybersource_rest_client/models/pts_v2_payments_refund_post201_response.rb +305 -305
  201. data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_error_information.rb +213 -213
  202. data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_order_information_amount_details.rb +247 -247
  203. data/lib/cybersource_rest_client/models/ptsv2billingagreements_payment_information_card.rb +1 -1
  204. data/lib/cybersource_rest_client/models/ptsv2billingagreements_payment_information_tokenized_card.rb +1 -1
  205. data/lib/cybersource_rest_client/models/ptsv2paymentreferences_buyer_information.rb +1 -1
  206. data/lib/cybersource_rest_client/models/ptsv2paymentreferences_order_information_amount_details.rb +400 -400
  207. data/lib/cybersource_rest_client/models/ptsv2paymentreferences_payment_information_card.rb +1 -1
  208. data/lib/cybersource_rest_client/models/ptsv2payments_buyer_information.rb +1 -1
  209. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_amount_details.rb +651 -651
  210. data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_card.rb +1 -1
  211. data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_payment_account_reference.rb +1 -1
  212. data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_tokenized_card.rb +1 -1
  213. data/lib/cybersource_rest_client/models/ptsv2payments_point_of_sale_information.rb +1 -1
  214. data/lib/cybersource_rest_client/models/ptsv2payments_processing_information.rb +789 -789
  215. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_buyer_information.rb +1 -1
  216. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_order_information_amount_details.rb +509 -509
  217. data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_payment_information_card.rb +1 -1
  218. data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_reversal_information_amount_details.rb +213 -213
  219. data/lib/cybersource_rest_client/models/ptsv2payouts_order_information_amount_details.rb +223 -223
  220. data/lib/cybersource_rest_client/models/ptsv2payouts_payment_information_card.rb +1 -1
  221. data/lib/cybersource_rest_client/models/ptsv2payouts_processing_information.rb +328 -328
  222. data/lib/cybersource_rest_client/models/ptsv2payouts_recipient_information.rb +417 -417
  223. data/lib/cybersource_rest_client/models/ptsv2payouts_sender_information.rb +495 -495
  224. data/lib/cybersource_rest_client/models/ptsv2payouts_sender_information_account.rb +213 -213
  225. data/lib/cybersource_rest_client/models/rbsv1subscriptions_client_reference_information.rb +6 -6
  226. data/lib/cybersource_rest_client/models/rbsv1subscriptions_client_reference_information_partner.rb +213 -0
  227. data/lib/cybersource_rest_client/models/rbsv1subscriptions_processing_information.rb +206 -206
  228. data/lib/cybersource_rest_client/models/rbsv1subscriptions_processing_information_authorization_options_initiator.rb +1 -1
  229. data/lib/cybersource_rest_client/models/rbsv1subscriptions_subscription_information.rb +39 -5
  230. data/lib/cybersource_rest_client/models/risk_products.rb +15 -5
  231. data/lib/cybersource_rest_client/models/risk_products_decision_manager.rb +1 -1
  232. data/lib/cybersource_rest_client/models/risk_products_fraud_management_essentials.rb +1 -1
  233. data/lib/cybersource_rest_client/models/risk_products_portfolio_risk_controls.rb +199 -0
  234. data/lib/cybersource_rest_client/models/risk_products_portfolio_risk_controls_configuration_information.rb +189 -0
  235. data/lib/cybersource_rest_client/models/risk_products_portfolio_risk_controls_configuration_information_configurations.rb +189 -0
  236. data/lib/cybersource_rest_client/models/riskv1authenticationresults_order_information_amount_details.rb +214 -214
  237. data/lib/cybersource_rest_client/models/riskv1authenticationresults_payment_information_card.rb +1 -1
  238. data/lib/cybersource_rest_client/models/riskv1authenticationresults_payment_information_tokenized_card.rb +1 -1
  239. data/lib/cybersource_rest_client/models/riskv1authentications_order_information_amount_details.rb +232 -232
  240. data/lib/cybersource_rest_client/models/riskv1authentications_payment_information_tokenized_card.rb +1 -1
  241. data/lib/cybersource_rest_client/models/riskv1authenticationsetups_payment_information_card.rb +1 -1
  242. data/lib/cybersource_rest_client/models/riskv1authenticationsetups_payment_information_tokenized_card.rb +1 -1
  243. data/lib/cybersource_rest_client/models/riskv1decisions_payment_information_card.rb +1 -1
  244. data/lib/cybersource_rest_client/models/riskv1decisions_payment_information_tokenized_card.rb +1 -1
  245. data/lib/cybersource_rest_client/models/riskv1decisions_travel_information_legs.rb +252 -241
  246. data/lib/cybersource_rest_client/models/riskv1liststypeentries_payment_information_card.rb +1 -1
  247. data/lib/cybersource_rest_client/models/save_asym_egress_key.rb +210 -210
  248. data/lib/cybersource_rest_client/models/save_sym_egress_key.rb +210 -210
  249. data/lib/cybersource_rest_client/models/tms_bin_lookup_payment_account_information_card.rb +277 -277
  250. data/lib/cybersource_rest_client/models/tms_bin_lookup_payment_account_information_card_brands.rb +213 -213
  251. data/lib/cybersource_rest_client/models/tms_bin_lookup_payment_account_information_features.rb +430 -430
  252. data/lib/cybersource_rest_client/models/tmsv2_tokenized_card.rb +440 -440
  253. data/lib/cybersource_rest_client/models/tmsv2_tokenized_card_card.rb +253 -253
  254. data/lib/cybersource_rest_client/models/tokenizedcard_request.rb +440 -440
  255. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_order_information_amount_details.rb +291 -291
  256. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_brands.rb +1 -1
  257. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_card.rb +1 -1
  258. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_issuer_information.rb +264 -264
  259. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_processor_information.rb +394 -383
  260. data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_payment_information_card.rb +1 -1
  261. data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_processor_information.rb +234 -234
  262. data/lib/cybersource_rest_client/models/update_invoice_request.rb +229 -229
  263. data/lib/cybersource_rest_client/models/update_payment_link_request.rb +230 -230
  264. data/lib/cybersource_rest_client/models/update_status.rb +192 -192
  265. data/lib/cybersource_rest_client/models/update_webhook.rb +269 -269
  266. data/lib/cybersource_rest_client/models/upv1capturecontexts_capture_mandate.rb +12 -1
  267. data/lib/cybersource_rest_client/models/upv1capturecontexts_complete_mandate.rb +18 -7
  268. data/lib/cybersource_rest_client/models/value_added_services_products.rb +15 -5
  269. data/lib/cybersource_rest_client/utilities/multipart/multipart_helper.rb +22 -0
  270. data/lib/cybersource_rest_client.rb +58 -17
  271. metadata +61 -19
@@ -1,495 +1,495 @@
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 Ptsv2payoutsSenderInformation
16
- # Reference number generated by you that uniquely identifies the sender.
17
- attr_accessor :reference_number
18
-
19
- attr_accessor :account
20
-
21
- # First name of the sender. This field is applicable for AFT and OCT transactions. Only alpha numeric values are supported.Special characters not in the standard ASCII character set, are not supported and will be stripped before being sent to the processor.
22
- attr_accessor :first_name
23
-
24
- # Recipient middle initial (Optional).
25
- attr_accessor :middle_initial
26
-
27
- # Middle name of the sender. This field is applicable for AFT and OCT transactions. Only alpha numeric values are supported. Special characters not in the standard ASCII character set, are not supported and will be stripped before being sent to sent to the processor.
28
- attr_accessor :middle_name
29
-
30
- # Last name of the sender. This field is applicable for AFT and OCT transactions. Only alpha numeric values are supported. Special characters not in the standard ASCII character set, are not supported and will be stripped before being sent to sent to the processor.
31
- attr_accessor :last_name
32
-
33
- # Name of sender. **Funds Disbursement** This value is the name of the originator sending the funds disbursement. * CTV, Paymentech (30)
34
- attr_accessor :name
35
-
36
- # Street address of sender. **Funds Disbursement** This value is the address of the originator sending the funds disbursement.
37
- attr_accessor :address1
38
-
39
- # City of sender. **Funds Disbursement** This value is the city of the originator sending the funds disbursement.
40
- attr_accessor :locality
41
-
42
- # Sender's state. Use the [State, Province, and Territory Codes for the United States and Canada](https://developer.cybersource.com/library/documentation/sbc/quickref/states_and_provinces.pdf).
43
- attr_accessor :administrative_area
44
-
45
- # Country of sender. Use the [ISO Standard Country Codes](https://developer.cybersource.com/library/documentation/sbc/quickref/countries_alpha_list.pdf). * CTV (3)
46
- attr_accessor :country_code
47
-
48
- # Sender's postal code. Required only for FDCCompass.
49
- attr_accessor :postal_code
50
-
51
- # Sender's phone number. Required only for FDCCompass.
52
- attr_accessor :phone_number
53
-
54
- # Sender's date of birth in YYYYMMDD format. Required only for FDCCompass.
55
- attr_accessor :date_of_birth
56
-
57
- # Customer's government-assigned tax identification number.
58
- attr_accessor :vat_registration_number
59
-
60
- # #### Visa Platform Connect This tag will contain the type of sender identification. The valid values are: • BTHD (Date of birth) • CUID (Customer identification (unspecified)) • NTID (National identification) • PASN (Passport number) • DRLN (Driver license) • TXIN (Tax identification) • CPNY (Company registration number) • PRXY (Proxy identification) • SSNB (Social security number) • ARNB (Alien registration number) • LAWE (Law enforcement identification) • MILI (Military identification) • TRVL (Travel identification (non-passport)) • EMAL (Email) • PHON (Phone number)
61
- attr_accessor :personal_id_type
62
-
63
- # #### Visa Platform Connect This tag will denote whether the tax ID is a business or individual tax ID when personal ID Type contains the value of TXIN (Tax identification). The valid values are: • B (Business) • I (Individual)
64
- attr_accessor :type
65
-
66
- # #### Visa Platform Connect This tag will contain an acquirer-populated value associated with the API : senderInformation.personalIdType which will identify the personal ID type of the sender.
67
- attr_accessor :identification_number
68
-
69
- # Sender's alias name.
70
- attr_accessor :alias_name
71
-
72
- # Attribute mapping from ruby-style variable name to JSON key.
73
- def self.attribute_map
74
- {
75
- :'reference_number' => :'referenceNumber',
76
- :'account' => :'account',
77
- :'first_name' => :'firstName',
78
- :'middle_initial' => :'middleInitial',
79
- :'middle_name' => :'middleName',
80
- :'last_name' => :'lastName',
81
- :'name' => :'name',
82
- :'address1' => :'address1',
83
- :'locality' => :'locality',
84
- :'administrative_area' => :'administrativeArea',
85
- :'country_code' => :'countryCode',
86
- :'postal_code' => :'postalCode',
87
- :'phone_number' => :'phoneNumber',
88
- :'date_of_birth' => :'dateOfBirth',
89
- :'vat_registration_number' => :'vatRegistrationNumber',
90
- :'personal_id_type' => :'personalIdType',
91
- :'type' => :'type',
92
- :'identification_number' => :'identificationNumber',
93
- :'alias_name' => :'aliasName'
94
- }
95
- end
96
-
97
- # Attribute mapping from JSON key to ruby-style variable name.
98
- def self.json_map
99
- {
100
- :'reference_number' => :'reference_number',
101
- :'account' => :'account',
102
- :'first_name' => :'first_name',
103
- :'middle_initial' => :'middle_initial',
104
- :'middle_name' => :'middle_name',
105
- :'last_name' => :'last_name',
106
- :'name' => :'name',
107
- :'address1' => :'address1',
108
- :'locality' => :'locality',
109
- :'administrative_area' => :'administrative_area',
110
- :'country_code' => :'country_code',
111
- :'postal_code' => :'postal_code',
112
- :'phone_number' => :'phone_number',
113
- :'date_of_birth' => :'date_of_birth',
114
- :'vat_registration_number' => :'vat_registration_number',
115
- :'personal_id_type' => :'personal_id_type',
116
- :'type' => :'type',
117
- :'identification_number' => :'identification_number',
118
- :'alias_name' => :'alias_name'
119
- }
120
- end
121
-
122
- # Attribute type mapping.
123
- def self.swagger_types
124
- {
125
- :'reference_number' => :'String',
126
- :'account' => :'Ptsv2payoutsSenderInformationAccount',
127
- :'first_name' => :'String',
128
- :'middle_initial' => :'String',
129
- :'middle_name' => :'String',
130
- :'last_name' => :'String',
131
- :'name' => :'String',
132
- :'address1' => :'String',
133
- :'locality' => :'String',
134
- :'administrative_area' => :'String',
135
- :'country_code' => :'String',
136
- :'postal_code' => :'String',
137
- :'phone_number' => :'String',
138
- :'date_of_birth' => :'String',
139
- :'vat_registration_number' => :'String',
140
- :'personal_id_type' => :'String',
141
- :'type' => :'String',
142
- :'identification_number' => :'String',
143
- :'alias_name' => :'String'
144
- }
145
- end
146
-
147
- # Initializes the object
148
- # @param [Hash] attributes Model attributes in the form of hash
149
- def initialize(attributes = {})
150
- return unless attributes.is_a?(Hash)
151
-
152
- # convert string to symbol for hash key
153
- attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
154
-
155
- if attributes.has_key?(:'referenceNumber')
156
- self.reference_number = attributes[:'referenceNumber']
157
- end
158
-
159
- if attributes.has_key?(:'account')
160
- self.account = attributes[:'account']
161
- end
162
-
163
- if attributes.has_key?(:'firstName')
164
- self.first_name = attributes[:'firstName']
165
- end
166
-
167
- if attributes.has_key?(:'middleInitial')
168
- self.middle_initial = attributes[:'middleInitial']
169
- end
170
-
171
- if attributes.has_key?(:'middleName')
172
- self.middle_name = attributes[:'middleName']
173
- end
174
-
175
- if attributes.has_key?(:'lastName')
176
- self.last_name = attributes[:'lastName']
177
- end
178
-
179
- if attributes.has_key?(:'name')
180
- self.name = attributes[:'name']
181
- end
182
-
183
- if attributes.has_key?(:'address1')
184
- self.address1 = attributes[:'address1']
185
- end
186
-
187
- if attributes.has_key?(:'locality')
188
- self.locality = attributes[:'locality']
189
- end
190
-
191
- if attributes.has_key?(:'administrativeArea')
192
- self.administrative_area = attributes[:'administrativeArea']
193
- end
194
-
195
- if attributes.has_key?(:'countryCode')
196
- self.country_code = attributes[:'countryCode']
197
- end
198
-
199
- if attributes.has_key?(:'postalCode')
200
- self.postal_code = attributes[:'postalCode']
201
- end
202
-
203
- if attributes.has_key?(:'phoneNumber')
204
- self.phone_number = attributes[:'phoneNumber']
205
- end
206
-
207
- if attributes.has_key?(:'dateOfBirth')
208
- self.date_of_birth = attributes[:'dateOfBirth']
209
- end
210
-
211
- if attributes.has_key?(:'vatRegistrationNumber')
212
- self.vat_registration_number = attributes[:'vatRegistrationNumber']
213
- end
214
-
215
- if attributes.has_key?(:'personalIdType')
216
- self.personal_id_type = attributes[:'personalIdType']
217
- end
218
-
219
- if attributes.has_key?(:'type')
220
- self.type = attributes[:'type']
221
- end
222
-
223
- if attributes.has_key?(:'identificationNumber')
224
- self.identification_number = attributes[:'identificationNumber']
225
- end
226
-
227
- if attributes.has_key?(:'aliasName')
228
- self.alias_name = attributes[:'aliasName']
229
- end
230
- end
231
-
232
- # Show invalid properties with the reasons. Usually used together with valid?
233
- # @return Array for valid properties with the reasons
234
- def list_invalid_properties
235
- invalid_properties = Array.new
236
- invalid_properties
237
- end
238
-
239
- # Check to see if the all the properties in the model are valid
240
- # @return true if the model is valid
241
- def valid?
242
- true
243
- end
244
-
245
- # Custom attribute writer method with validation
246
- # @param [Object] reference_number Value to be assigned
247
- def reference_number=(reference_number)
248
- @reference_number = reference_number
249
- end
250
-
251
- # Custom attribute writer method with validation
252
- # @param [Object] first_name Value to be assigned
253
- def first_name=(first_name)
254
- @first_name = first_name
255
- end
256
-
257
- # Custom attribute writer method with validation
258
- # @param [Object] middle_initial Value to be assigned
259
- def middle_initial=(middle_initial)
260
- @middle_initial = middle_initial
261
- end
262
-
263
- # Custom attribute writer method with validation
264
- # @param [Object] middle_name Value to be assigned
265
- def middle_name=(middle_name)
266
- @middle_name = middle_name
267
- end
268
-
269
- # Custom attribute writer method with validation
270
- # @param [Object] last_name Value to be assigned
271
- def last_name=(last_name)
272
- @last_name = last_name
273
- end
274
-
275
- # Custom attribute writer method with validation
276
- # @param [Object] name Value to be assigned
277
- def name=(name)
278
- @name = name
279
- end
280
-
281
- # Custom attribute writer method with validation
282
- # @param [Object] address1 Value to be assigned
283
- def address1=(address1)
284
- @address1 = address1
285
- end
286
-
287
- # Custom attribute writer method with validation
288
- # @param [Object] locality Value to be assigned
289
- def locality=(locality)
290
- @locality = locality
291
- end
292
-
293
- # Custom attribute writer method with validation
294
- # @param [Object] administrative_area Value to be assigned
295
- def administrative_area=(administrative_area)
296
- @administrative_area = administrative_area
297
- end
298
-
299
- # Custom attribute writer method with validation
300
- # @param [Object] country_code Value to be assigned
301
- def country_code=(country_code)
302
- @country_code = country_code
303
- end
304
-
305
- # Custom attribute writer method with validation
306
- # @param [Object] postal_code Value to be assigned
307
- def postal_code=(postal_code)
308
- @postal_code = postal_code
309
- end
310
-
311
- # Custom attribute writer method with validation
312
- # @param [Object] phone_number Value to be assigned
313
- def phone_number=(phone_number)
314
- @phone_number = phone_number
315
- end
316
-
317
- # Custom attribute writer method with validation
318
- # @param [Object] date_of_birth Value to be assigned
319
- def date_of_birth=(date_of_birth)
320
- @date_of_birth = date_of_birth
321
- end
322
-
323
- # Custom attribute writer method with validation
324
- # @param [Object] vat_registration_number Value to be assigned
325
- def vat_registration_number=(vat_registration_number)
326
- @vat_registration_number = vat_registration_number
327
- end
328
-
329
- # Custom attribute writer method with validation
330
- # @param [Object] personal_id_type Value to be assigned
331
- def personal_id_type=(personal_id_type)
332
- @personal_id_type = personal_id_type
333
- end
334
-
335
- # Custom attribute writer method with validation
336
- # @param [Object] type Value to be assigned
337
- def type=(type)
338
- @type = type
339
- end
340
-
341
- # Custom attribute writer method with validation
342
- # @param [Object] identification_number Value to be assigned
343
- def identification_number=(identification_number)
344
- @identification_number = identification_number
345
- end
346
-
347
- # Custom attribute writer method with validation
348
- # @param [Object] alias_name Value to be assigned
349
- def alias_name=(alias_name)
350
- @alias_name = alias_name
351
- end
352
-
353
- # Checks equality by comparing each attribute.
354
- # @param [Object] Object to be compared
355
- def ==(o)
356
- return true if self.equal?(o)
357
- self.class == o.class &&
358
- reference_number == o.reference_number &&
359
- account == o.account &&
360
- first_name == o.first_name &&
361
- middle_initial == o.middle_initial &&
362
- middle_name == o.middle_name &&
363
- last_name == o.last_name &&
364
- name == o.name &&
365
- address1 == o.address1 &&
366
- locality == o.locality &&
367
- administrative_area == o.administrative_area &&
368
- country_code == o.country_code &&
369
- postal_code == o.postal_code &&
370
- phone_number == o.phone_number &&
371
- date_of_birth == o.date_of_birth &&
372
- vat_registration_number == o.vat_registration_number &&
373
- personal_id_type == o.personal_id_type &&
374
- type == o.type &&
375
- identification_number == o.identification_number &&
376
- alias_name == o.alias_name
377
- end
378
-
379
- # @see the `==` method
380
- # @param [Object] Object to be compared
381
- def eql?(o)
382
- self == o
383
- end
384
-
385
- # Calculates hash code according to all attributes.
386
- # @return [Fixnum] Hash code
387
- def hash
388
- [reference_number, account, first_name, middle_initial, middle_name, last_name, name, address1, locality, administrative_area, country_code, postal_code, phone_number, date_of_birth, vat_registration_number, personal_id_type, type, identification_number, alias_name].hash
389
- end
390
-
391
- # Builds the object from hash
392
- # @param [Hash] attributes Model attributes in the form of hash
393
- # @return [Object] Returns the model itself
394
- def build_from_hash(attributes)
395
- return nil unless attributes.is_a?(Hash)
396
- self.class.swagger_types.each_pair do |key, type|
397
- if type =~ /\AArray<(.*)>/i
398
- # check to ensure the input is an array given that the the attribute
399
- # is documented as an array but the input is not
400
- if attributes[self.class.attribute_map[key]].is_a?(Array)
401
- self.send("#{self.class.json_map[key]}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
402
- end
403
- elsif !attributes[self.class.attribute_map[key]].nil?
404
- self.send("#{self.class.json_map[key]}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
405
- end # or else data not found in attributes(hash), not an issue as the data can be optional
406
- end
407
-
408
- self
409
- end
410
-
411
- # Deserializes the data based on type
412
- # @param string type Data type
413
- # @param string value Value to be deserialized
414
- # @return [Object] Deserialized data
415
- def _deserialize(type, value)
416
- case type.to_sym
417
- when :DateTime
418
- DateTime.parse(value)
419
- when :Date
420
- Date.parse(value)
421
- when :String
422
- value.to_s
423
- when :Integer
424
- value.to_i
425
- when :Float
426
- value.to_f
427
- when :BOOLEAN
428
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
429
- true
430
- else
431
- false
432
- end
433
- when :Object
434
- # generic object (usually a Hash), return directly
435
- value
436
- when /\AArray<(?<inner_type>.+)>\z/
437
- inner_type = Regexp.last_match[:inner_type]
438
- value.map { |v| _deserialize(inner_type, v) }
439
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
440
- k_type = Regexp.last_match[:k_type]
441
- v_type = Regexp.last_match[:v_type]
442
- {}.tap do |hash|
443
- value.each do |k, v|
444
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
445
- end
446
- end
447
- else # model
448
- temp_model = CyberSource.const_get(type).new
449
- temp_model.build_from_hash(value)
450
- end
451
- end
452
-
453
- # Returns the string representation of the object
454
- # @return [String] String presentation of the object
455
- def to_s
456
- to_hash.to_s
457
- end
458
-
459
- # to_body is an alias to to_hash (backward compatibility)
460
- # @return [Hash] Returns the object in the form of hash
461
- def to_body
462
- to_hash
463
- end
464
-
465
- # Returns the object in the form of hash
466
- # @return [Hash] Returns the object in the form of hash
467
- def to_hash
468
- hash = {}
469
- self.class.attribute_map.each_pair do |attr, param|
470
- value = self.send(attr)
471
- next if value.nil?
472
- hash[param] = _to_hash(value)
473
- end
474
- hash
475
- end
476
-
477
- # Outputs non-array value in the form of hash
478
- # For object, use to_hash. Otherwise, just return the value
479
- # @param [Object] value Any valid value
480
- # @return [Hash] Returns the value in the form of hash
481
- def _to_hash(value)
482
- if value.is_a?(Array)
483
- value.compact.map { |v| _to_hash(v) }
484
- elsif value.is_a?(Hash)
485
- {}.tap do |hash|
486
- value.each { |k, v| hash[k] = _to_hash(v) }
487
- end
488
- elsif value.respond_to? :to_hash
489
- value.to_hash
490
- else
491
- value
492
- end
493
- end
494
- end
495
- 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 Ptsv2payoutsSenderInformation
16
+ # Reference number generated by you that uniquely identifies the sender.
17
+ attr_accessor :reference_number
18
+
19
+ attr_accessor :account
20
+
21
+ # First name of the sender. This field is applicable for AFT and OCT transactions. Only alpha numeric values are supported.Special characters not in the standard ASCII character set, are not supported and will be stripped before being sent to the processor.
22
+ attr_accessor :first_name
23
+
24
+ # Recipient middle initial (Optional).
25
+ attr_accessor :middle_initial
26
+
27
+ # Middle name of the sender. This field is applicable for AFT and OCT transactions. Only alpha numeric values are supported. Special characters not in the standard ASCII character set, are not supported and will be stripped before being sent to sent to the processor.
28
+ attr_accessor :middle_name
29
+
30
+ # Last name of the sender. This field is applicable for AFT and OCT transactions. Only alpha numeric values are supported. Special characters not in the standard ASCII character set, are not supported and will be stripped before being sent to sent to the processor.
31
+ attr_accessor :last_name
32
+
33
+ # Name of sender. **Funds Disbursement** This value is the name of the originator sending the funds disbursement. * CTV, Paymentech (30)
34
+ attr_accessor :name
35
+
36
+ # Street address of sender. **Funds Disbursement** This value is the address of the originator sending the funds disbursement.
37
+ attr_accessor :address1
38
+
39
+ # City of sender. **Funds Disbursement** This value is the city of the originator sending the funds disbursement.
40
+ attr_accessor :locality
41
+
42
+ # Sender's state. Use the [State, Province, and Territory Codes for the United States and Canada](https://developer.cybersource.com/library/documentation/sbc/quickref/states_and_provinces.pdf).
43
+ attr_accessor :administrative_area
44
+
45
+ # Country of sender. Use the [ISO Standard Country Codes](https://developer.cybersource.com/library/documentation/sbc/quickref/countries_alpha_list.pdf). * CTV (3)
46
+ attr_accessor :country_code
47
+
48
+ # Sender's postal code. Required only for FDCCompass.
49
+ attr_accessor :postal_code
50
+
51
+ # Sender's phone number. Required only for FDCCompass.
52
+ attr_accessor :phone_number
53
+
54
+ # Sender's date of birth in YYYYMMDD format. Required only for FDCCompass.
55
+ attr_accessor :date_of_birth
56
+
57
+ # Customer's government-assigned tax identification number.
58
+ attr_accessor :vat_registration_number
59
+
60
+ # #### Visa Platform Connect This tag will contain the type of sender identification. The valid values are: • BTHD (Date of birth) • CUID (Customer identification (unspecified)) • NTID (National identification) • PASN (Passport number) • DRLN (Driver license) • TXIN (Tax identification) • CPNY (Company registration number) • PRXY (Proxy identification) • SSNB (Social security number) • ARNB (Alien registration number) • LAWE (Law enforcement identification) • MILI (Military identification) • TRVL (Travel identification (non-passport)) • EMAL (Email) • PHON (Phone number)
61
+ attr_accessor :personal_id_type
62
+
63
+ # #### Visa Platform Connect This tag will denote whether the tax ID is a business or individual tax ID when personal ID Type contains the value of TXIN (Tax identification). The valid values are: • B (Business) • I (Individual)
64
+ attr_accessor :type
65
+
66
+ # #### Visa Platform Connect This tag will contain an acquirer-populated value associated with the API : senderInformation.personalIdType which will identify the personal ID type of the sender.
67
+ attr_accessor :identification_number
68
+
69
+ # Sender's alias name.
70
+ attr_accessor :alias_name
71
+
72
+ # Attribute mapping from ruby-style variable name to JSON key.
73
+ def self.attribute_map
74
+ {
75
+ :'reference_number' => :'referenceNumber',
76
+ :'account' => :'account',
77
+ :'first_name' => :'firstName',
78
+ :'middle_initial' => :'middleInitial',
79
+ :'middle_name' => :'middleName',
80
+ :'last_name' => :'lastName',
81
+ :'name' => :'name',
82
+ :'address1' => :'address1',
83
+ :'locality' => :'locality',
84
+ :'administrative_area' => :'administrativeArea',
85
+ :'country_code' => :'countryCode',
86
+ :'postal_code' => :'postalCode',
87
+ :'phone_number' => :'phoneNumber',
88
+ :'date_of_birth' => :'dateOfBirth',
89
+ :'vat_registration_number' => :'vatRegistrationNumber',
90
+ :'personal_id_type' => :'personalIdType',
91
+ :'type' => :'type',
92
+ :'identification_number' => :'identificationNumber',
93
+ :'alias_name' => :'aliasName'
94
+ }
95
+ end
96
+
97
+ # Attribute mapping from JSON key to ruby-style variable name.
98
+ def self.json_map
99
+ {
100
+ :'reference_number' => :'reference_number',
101
+ :'account' => :'account',
102
+ :'first_name' => :'first_name',
103
+ :'middle_initial' => :'middle_initial',
104
+ :'middle_name' => :'middle_name',
105
+ :'last_name' => :'last_name',
106
+ :'name' => :'name',
107
+ :'address1' => :'address1',
108
+ :'locality' => :'locality',
109
+ :'administrative_area' => :'administrative_area',
110
+ :'country_code' => :'country_code',
111
+ :'postal_code' => :'postal_code',
112
+ :'phone_number' => :'phone_number',
113
+ :'date_of_birth' => :'date_of_birth',
114
+ :'vat_registration_number' => :'vat_registration_number',
115
+ :'personal_id_type' => :'personal_id_type',
116
+ :'type' => :'type',
117
+ :'identification_number' => :'identification_number',
118
+ :'alias_name' => :'alias_name'
119
+ }
120
+ end
121
+
122
+ # Attribute type mapping.
123
+ def self.swagger_types
124
+ {
125
+ :'reference_number' => :'String',
126
+ :'account' => :'Ptsv2payoutsSenderInformationAccount',
127
+ :'first_name' => :'String',
128
+ :'middle_initial' => :'String',
129
+ :'middle_name' => :'String',
130
+ :'last_name' => :'String',
131
+ :'name' => :'String',
132
+ :'address1' => :'String',
133
+ :'locality' => :'String',
134
+ :'administrative_area' => :'String',
135
+ :'country_code' => :'String',
136
+ :'postal_code' => :'String',
137
+ :'phone_number' => :'String',
138
+ :'date_of_birth' => :'String',
139
+ :'vat_registration_number' => :'String',
140
+ :'personal_id_type' => :'String',
141
+ :'type' => :'String',
142
+ :'identification_number' => :'String',
143
+ :'alias_name' => :'String'
144
+ }
145
+ end
146
+
147
+ # Initializes the object
148
+ # @param [Hash] attributes Model attributes in the form of hash
149
+ def initialize(attributes = {})
150
+ return unless attributes.is_a?(Hash)
151
+
152
+ # convert string to symbol for hash key
153
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
154
+
155
+ if attributes.has_key?(:'referenceNumber')
156
+ self.reference_number = attributes[:'referenceNumber']
157
+ end
158
+
159
+ if attributes.has_key?(:'account')
160
+ self.account = attributes[:'account']
161
+ end
162
+
163
+ if attributes.has_key?(:'firstName')
164
+ self.first_name = attributes[:'firstName']
165
+ end
166
+
167
+ if attributes.has_key?(:'middleInitial')
168
+ self.middle_initial = attributes[:'middleInitial']
169
+ end
170
+
171
+ if attributes.has_key?(:'middleName')
172
+ self.middle_name = attributes[:'middleName']
173
+ end
174
+
175
+ if attributes.has_key?(:'lastName')
176
+ self.last_name = attributes[:'lastName']
177
+ end
178
+
179
+ if attributes.has_key?(:'name')
180
+ self.name = attributes[:'name']
181
+ end
182
+
183
+ if attributes.has_key?(:'address1')
184
+ self.address1 = attributes[:'address1']
185
+ end
186
+
187
+ if attributes.has_key?(:'locality')
188
+ self.locality = attributes[:'locality']
189
+ end
190
+
191
+ if attributes.has_key?(:'administrativeArea')
192
+ self.administrative_area = attributes[:'administrativeArea']
193
+ end
194
+
195
+ if attributes.has_key?(:'countryCode')
196
+ self.country_code = attributes[:'countryCode']
197
+ end
198
+
199
+ if attributes.has_key?(:'postalCode')
200
+ self.postal_code = attributes[:'postalCode']
201
+ end
202
+
203
+ if attributes.has_key?(:'phoneNumber')
204
+ self.phone_number = attributes[:'phoneNumber']
205
+ end
206
+
207
+ if attributes.has_key?(:'dateOfBirth')
208
+ self.date_of_birth = attributes[:'dateOfBirth']
209
+ end
210
+
211
+ if attributes.has_key?(:'vatRegistrationNumber')
212
+ self.vat_registration_number = attributes[:'vatRegistrationNumber']
213
+ end
214
+
215
+ if attributes.has_key?(:'personalIdType')
216
+ self.personal_id_type = attributes[:'personalIdType']
217
+ end
218
+
219
+ if attributes.has_key?(:'type')
220
+ self.type = attributes[:'type']
221
+ end
222
+
223
+ if attributes.has_key?(:'identificationNumber')
224
+ self.identification_number = attributes[:'identificationNumber']
225
+ end
226
+
227
+ if attributes.has_key?(:'aliasName')
228
+ self.alias_name = attributes[:'aliasName']
229
+ end
230
+ end
231
+
232
+ # Show invalid properties with the reasons. Usually used together with valid?
233
+ # @return Array for valid properties with the reasons
234
+ def list_invalid_properties
235
+ invalid_properties = Array.new
236
+ invalid_properties
237
+ end
238
+
239
+ # Check to see if the all the properties in the model are valid
240
+ # @return true if the model is valid
241
+ def valid?
242
+ true
243
+ end
244
+
245
+ # Custom attribute writer method with validation
246
+ # @param [Object] reference_number Value to be assigned
247
+ def reference_number=(reference_number)
248
+ @reference_number = reference_number
249
+ end
250
+
251
+ # Custom attribute writer method with validation
252
+ # @param [Object] first_name Value to be assigned
253
+ def first_name=(first_name)
254
+ @first_name = first_name
255
+ end
256
+
257
+ # Custom attribute writer method with validation
258
+ # @param [Object] middle_initial Value to be assigned
259
+ def middle_initial=(middle_initial)
260
+ @middle_initial = middle_initial
261
+ end
262
+
263
+ # Custom attribute writer method with validation
264
+ # @param [Object] middle_name Value to be assigned
265
+ def middle_name=(middle_name)
266
+ @middle_name = middle_name
267
+ end
268
+
269
+ # Custom attribute writer method with validation
270
+ # @param [Object] last_name Value to be assigned
271
+ def last_name=(last_name)
272
+ @last_name = last_name
273
+ end
274
+
275
+ # Custom attribute writer method with validation
276
+ # @param [Object] name Value to be assigned
277
+ def name=(name)
278
+ @name = name
279
+ end
280
+
281
+ # Custom attribute writer method with validation
282
+ # @param [Object] address1 Value to be assigned
283
+ def address1=(address1)
284
+ @address1 = address1
285
+ end
286
+
287
+ # Custom attribute writer method with validation
288
+ # @param [Object] locality Value to be assigned
289
+ def locality=(locality)
290
+ @locality = locality
291
+ end
292
+
293
+ # Custom attribute writer method with validation
294
+ # @param [Object] administrative_area Value to be assigned
295
+ def administrative_area=(administrative_area)
296
+ @administrative_area = administrative_area
297
+ end
298
+
299
+ # Custom attribute writer method with validation
300
+ # @param [Object] country_code Value to be assigned
301
+ def country_code=(country_code)
302
+ @country_code = country_code
303
+ end
304
+
305
+ # Custom attribute writer method with validation
306
+ # @param [Object] postal_code Value to be assigned
307
+ def postal_code=(postal_code)
308
+ @postal_code = postal_code
309
+ end
310
+
311
+ # Custom attribute writer method with validation
312
+ # @param [Object] phone_number Value to be assigned
313
+ def phone_number=(phone_number)
314
+ @phone_number = phone_number
315
+ end
316
+
317
+ # Custom attribute writer method with validation
318
+ # @param [Object] date_of_birth Value to be assigned
319
+ def date_of_birth=(date_of_birth)
320
+ @date_of_birth = date_of_birth
321
+ end
322
+
323
+ # Custom attribute writer method with validation
324
+ # @param [Object] vat_registration_number Value to be assigned
325
+ def vat_registration_number=(vat_registration_number)
326
+ @vat_registration_number = vat_registration_number
327
+ end
328
+
329
+ # Custom attribute writer method with validation
330
+ # @param [Object] personal_id_type Value to be assigned
331
+ def personal_id_type=(personal_id_type)
332
+ @personal_id_type = personal_id_type
333
+ end
334
+
335
+ # Custom attribute writer method with validation
336
+ # @param [Object] type Value to be assigned
337
+ def type=(type)
338
+ @type = type
339
+ end
340
+
341
+ # Custom attribute writer method with validation
342
+ # @param [Object] identification_number Value to be assigned
343
+ def identification_number=(identification_number)
344
+ @identification_number = identification_number
345
+ end
346
+
347
+ # Custom attribute writer method with validation
348
+ # @param [Object] alias_name Value to be assigned
349
+ def alias_name=(alias_name)
350
+ @alias_name = alias_name
351
+ end
352
+
353
+ # Checks equality by comparing each attribute.
354
+ # @param [Object] Object to be compared
355
+ def ==(o)
356
+ return true if self.equal?(o)
357
+ self.class == o.class &&
358
+ reference_number == o.reference_number &&
359
+ account == o.account &&
360
+ first_name == o.first_name &&
361
+ middle_initial == o.middle_initial &&
362
+ middle_name == o.middle_name &&
363
+ last_name == o.last_name &&
364
+ name == o.name &&
365
+ address1 == o.address1 &&
366
+ locality == o.locality &&
367
+ administrative_area == o.administrative_area &&
368
+ country_code == o.country_code &&
369
+ postal_code == o.postal_code &&
370
+ phone_number == o.phone_number &&
371
+ date_of_birth == o.date_of_birth &&
372
+ vat_registration_number == o.vat_registration_number &&
373
+ personal_id_type == o.personal_id_type &&
374
+ type == o.type &&
375
+ identification_number == o.identification_number &&
376
+ alias_name == o.alias_name
377
+ end
378
+
379
+ # @see the `==` method
380
+ # @param [Object] Object to be compared
381
+ def eql?(o)
382
+ self == o
383
+ end
384
+
385
+ # Calculates hash code according to all attributes.
386
+ # @return [Fixnum] Hash code
387
+ def hash
388
+ [reference_number, account, first_name, middle_initial, middle_name, last_name, name, address1, locality, administrative_area, country_code, postal_code, phone_number, date_of_birth, vat_registration_number, personal_id_type, type, identification_number, alias_name].hash
389
+ end
390
+
391
+ # Builds the object from hash
392
+ # @param [Hash] attributes Model attributes in the form of hash
393
+ # @return [Object] Returns the model itself
394
+ def build_from_hash(attributes)
395
+ return nil unless attributes.is_a?(Hash)
396
+ self.class.swagger_types.each_pair do |key, type|
397
+ if type =~ /\AArray<(.*)>/i
398
+ # check to ensure the input is an array given that the the attribute
399
+ # is documented as an array but the input is not
400
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
401
+ self.send("#{self.class.json_map[key]}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
402
+ end
403
+ elsif !attributes[self.class.attribute_map[key]].nil?
404
+ self.send("#{self.class.json_map[key]}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
405
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
406
+ end
407
+
408
+ self
409
+ end
410
+
411
+ # Deserializes the data based on type
412
+ # @param string type Data type
413
+ # @param string value Value to be deserialized
414
+ # @return [Object] Deserialized data
415
+ def _deserialize(type, value)
416
+ case type.to_sym
417
+ when :DateTime
418
+ DateTime.parse(value)
419
+ when :Date
420
+ Date.parse(value)
421
+ when :String
422
+ value.to_s
423
+ when :Integer
424
+ value.to_i
425
+ when :Float
426
+ value.to_f
427
+ when :BOOLEAN
428
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
429
+ true
430
+ else
431
+ false
432
+ end
433
+ when :Object
434
+ # generic object (usually a Hash), return directly
435
+ value
436
+ when /\AArray<(?<inner_type>.+)>\z/
437
+ inner_type = Regexp.last_match[:inner_type]
438
+ value.map { |v| _deserialize(inner_type, v) }
439
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
440
+ k_type = Regexp.last_match[:k_type]
441
+ v_type = Regexp.last_match[:v_type]
442
+ {}.tap do |hash|
443
+ value.each do |k, v|
444
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
445
+ end
446
+ end
447
+ else # model
448
+ temp_model = CyberSource.const_get(type).new
449
+ temp_model.build_from_hash(value)
450
+ end
451
+ end
452
+
453
+ # Returns the string representation of the object
454
+ # @return [String] String presentation of the object
455
+ def to_s
456
+ to_hash.to_s
457
+ end
458
+
459
+ # to_body is an alias to to_hash (backward compatibility)
460
+ # @return [Hash] Returns the object in the form of hash
461
+ def to_body
462
+ to_hash
463
+ end
464
+
465
+ # Returns the object in the form of hash
466
+ # @return [Hash] Returns the object in the form of hash
467
+ def to_hash
468
+ hash = {}
469
+ self.class.attribute_map.each_pair do |attr, param|
470
+ value = self.send(attr)
471
+ next if value.nil?
472
+ hash[param] = _to_hash(value)
473
+ end
474
+ hash
475
+ end
476
+
477
+ # Outputs non-array value in the form of hash
478
+ # For object, use to_hash. Otherwise, just return the value
479
+ # @param [Object] value Any valid value
480
+ # @return [Hash] Returns the value in the form of hash
481
+ def _to_hash(value)
482
+ if value.is_a?(Array)
483
+ value.compact.map { |v| _to_hash(v) }
484
+ elsif value.is_a?(Hash)
485
+ {}.tap do |hash|
486
+ value.each { |k, v| hash[k] = _to_hash(v) }
487
+ end
488
+ elsif value.respond_to? :to_hash
489
+ value.to_hash
490
+ else
491
+ value
492
+ end
493
+ end
494
+ end
495
+ end