cybersource_rest_client 0.0.56 → 0.0.57

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 (357) hide show
  1. checksums.yaml +4 -4
  2. data/lib/cybersource_rest_client/api/asymmetric_key_management_api.rb +8 -0
  3. data/lib/cybersource_rest_client/api/batches_api.rb +8 -28
  4. data/lib/cybersource_rest_client/api/billing_agreements_api.rb +6 -0
  5. data/lib/cybersource_rest_client/api/capture_api.rb +2 -0
  6. data/lib/cybersource_rest_client/api/chargeback_details_api.rb +2 -8
  7. data/lib/cybersource_rest_client/api/chargeback_summaries_api.rb +2 -8
  8. data/lib/cybersource_rest_client/api/conversion_details_api.rb +2 -8
  9. data/lib/cybersource_rest_client/api/create_new_webhooks_api.rb +21 -37
  10. data/lib/cybersource_rest_client/api/credit_api.rb +2 -0
  11. data/lib/cybersource_rest_client/api/customer_api.rb +8 -64
  12. data/lib/cybersource_rest_client/api/customer_payment_instrument_api.rb +10 -124
  13. data/lib/cybersource_rest_client/api/customer_shipping_address_api.rb +10 -124
  14. data/lib/cybersource_rest_client/api/decision_manager_api.rb +10 -0
  15. data/lib/cybersource_rest_client/api/download_dtd_api.rb +2 -0
  16. data/lib/cybersource_rest_client/api/download_xsd_api.rb +2 -0
  17. data/lib/cybersource_rest_client/api/emv_tag_details_api.rb +4 -0
  18. data/lib/cybersource_rest_client/api/instrument_identifier_api.rb +12 -108
  19. data/lib/cybersource_rest_client/api/interchange_clearing_level_details_api.rb +2 -8
  20. data/lib/cybersource_rest_client/api/invoice_settings_api.rb +4 -0
  21. data/lib/cybersource_rest_client/api/invoices_api.rb +12 -0
  22. data/lib/cybersource_rest_client/api/keymanagement_api.rb +2 -0
  23. data/lib/cybersource_rest_client/api/keymanagementpassword_api.rb +2 -0
  24. data/lib/cybersource_rest_client/api/keymanagementpgp_api.rb +2 -0
  25. data/lib/cybersource_rest_client/api/keymanagementscmp_api.rb +2 -0
  26. data/lib/cybersource_rest_client/api/manage_webhooks_api.rb +77 -93
  27. data/lib/cybersource_rest_client/api/merchant_boarding_api.rb +2 -2
  28. data/lib/cybersource_rest_client/api/microform_integration_api.rb +2 -0
  29. data/lib/cybersource_rest_client/api/net_fundings_api.rb +2 -8
  30. data/lib/cybersource_rest_client/api/notification_of_changes_api.rb +2 -0
  31. data/lib/cybersource_rest_client/api/payer_authentication_api.rb +6 -0
  32. data/lib/cybersource_rest_client/api/payment_batch_summaries_api.rb +2 -16
  33. data/lib/cybersource_rest_client/api/payment_instrument_api.rb +8 -64
  34. data/lib/cybersource_rest_client/api/payments_api.rb +6 -0
  35. data/lib/cybersource_rest_client/api/payouts_api.rb +2 -0
  36. data/lib/cybersource_rest_client/api/plans_api.rb +16 -0
  37. data/lib/cybersource_rest_client/api/purchase_and_refund_details_api.rb +2 -16
  38. data/lib/cybersource_rest_client/api/push_funds_api.rb +2 -0
  39. data/lib/cybersource_rest_client/api/refund_api.rb +4 -0
  40. data/lib/cybersource_rest_client/api/report_definitions_api.rb +4 -16
  41. data/lib/cybersource_rest_client/api/report_downloads_api.rb +2 -8
  42. data/lib/cybersource_rest_client/api/report_subscriptions_api.rb +12 -58
  43. data/lib/cybersource_rest_client/api/reports_api.rb +8 -26
  44. data/lib/cybersource_rest_client/api/retrieval_details_api.rb +2 -8
  45. data/lib/cybersource_rest_client/api/retrieval_summaries_api.rb +2 -8
  46. data/lib/cybersource_rest_client/api/reversal_api.rb +4 -0
  47. data/lib/cybersource_rest_client/api/search_transactions_api.rb +4 -0
  48. data/lib/cybersource_rest_client/api/secure_file_share_api.rb +4 -16
  49. data/lib/cybersource_rest_client/api/subscriptions_api.rb +16 -0
  50. data/lib/cybersource_rest_client/api/symmetric_key_management_api.rb +8 -0
  51. data/lib/cybersource_rest_client/api/taxes_api.rb +4 -0
  52. data/lib/cybersource_rest_client/api/token_api.rb +2 -16
  53. data/lib/cybersource_rest_client/api/transaction_batches_api.rb +6 -0
  54. data/lib/cybersource_rest_client/api/transaction_details_api.rb +2 -0
  55. data/lib/cybersource_rest_client/api/transient_token_data_api.rb +2 -0
  56. data/lib/cybersource_rest_client/api/unified_checkout_capture_context_api.rb +2 -0
  57. data/lib/cybersource_rest_client/api/user_management_api.rb +2 -0
  58. data/lib/cybersource_rest_client/api/user_management_search_api.rb +2 -0
  59. data/lib/cybersource_rest_client/api/verification_api.rb +4 -0
  60. data/lib/cybersource_rest_client/api/void_api.rb +10 -0
  61. data/lib/cybersource_rest_client/models/boardingv1registrations_product_information_selected_products.rb +1 -1
  62. data/lib/cybersource_rest_client/models/commerce_solutions_products_account_updater.rb +1 -1
  63. data/lib/cybersource_rest_client/models/commerce_solutions_products_bin_lookup.rb +1 -1
  64. data/lib/cybersource_rest_client/models/commerce_solutions_products_token_management.rb +1 -1
  65. data/lib/cybersource_rest_client/models/create_search_request.rb +1 -1
  66. data/lib/cybersource_rest_client/models/{create_webhook.rb → create_webhook_request.rb} +1 -1
  67. data/lib/cybersource_rest_client/models/get_all_subscriptions_response_order_information_bill_to.rb +2 -2
  68. data/lib/cybersource_rest_client/models/invoicing_v2_invoices_all_get200_response_customer_information.rb +1 -1
  69. data/lib/cybersource_rest_client/models/invoicingv2invoices_customer_information.rb +1 -1
  70. data/lib/cybersource_rest_client/models/invoicingv2invoices_customer_information_company.rb +1 -1
  71. data/lib/cybersource_rest_client/models/kms_v2_keys_asym_deletes_post200_response_key_information.rb +1 -1
  72. data/lib/cybersource_rest_client/models/kms_v2_keys_asym_get200_response_key_information.rb +1 -1
  73. data/lib/cybersource_rest_client/models/kms_v2_keys_asym_post201_response_key_information.rb +1 -1
  74. data/lib/cybersource_rest_client/models/kms_v2_keys_sym_post201_response_key_information.rb +1 -1
  75. data/lib/cybersource_rest_client/models/kmsv2keysasym_key_information.rb +1 -1
  76. data/lib/cybersource_rest_client/models/kmsv2keyssym_key_information.rb +1 -1
  77. data/lib/cybersource_rest_client/models/kmsv2keyssymdeletes_key_information.rb +1 -1
  78. data/lib/cybersource_rest_client/models/kmsv2keyssymverifi_key_information.rb +1 -1
  79. data/lib/cybersource_rest_client/models/payment_products_card_processing_config_card_not_present.rb +4 -4
  80. data/lib/cybersource_rest_client/models/payment_products_card_processing_config_card_not_present_installment.rb +1 -1
  81. data/lib/cybersource_rest_client/models/payment_products_card_processing_config_card_not_present_payouts.rb +2 -2
  82. data/lib/cybersource_rest_client/models/payment_products_card_processing_config_card_not_present_processors.rb +2 -2
  83. data/lib/cybersource_rest_client/models/payment_products_card_processing_config_card_present_processors.rb +1 -1
  84. data/lib/cybersource_rest_client/models/payment_products_card_processing_config_common_merchant_descriptor_info.rb +2 -2
  85. data/lib/cybersource_rest_client/models/payment_products_card_processing_config_features_card_not_present_payouts_currencies.rb +1 -1
  86. data/lib/cybersource_rest_client/models/payment_products_e_check_config_account_validation_service.rb +3 -3
  87. data/lib/cybersource_rest_client/models/payment_products_e_check_config_account_validation_service_internal_only.rb +1 -1
  88. data/lib/cybersource_rest_client/models/payment_products_e_check_config_account_validation_service_processors.rb +1 -1
  89. data/lib/cybersource_rest_client/models/payment_products_payer_authentication_config_card_types_j_cbj_secure.rb +2 -2
  90. data/lib/cybersource_rest_client/models/payment_products_payer_authentication_config_card_types_verified.rb +2 -2
  91. data/lib/cybersource_rest_client/models/payment_products_payer_authentication_config_card_types_verified_currencies.rb +1 -1
  92. data/lib/cybersource_rest_client/models/payment_products_secure_acceptance_config_notifications_customer_notifications.rb +1 -1
  93. data/lib/cybersource_rest_client/models/payment_products_secure_acceptance_config_notifications_merchant_notifications.rb +1 -1
  94. data/lib/cybersource_rest_client/models/payment_products_secure_acceptance_config_payment_types_card_types.rb +5 -5
  95. data/lib/cybersource_rest_client/models/payment_products_secure_acceptance_config_payment_types_card_types_discover.rb +1 -1
  96. data/lib/cybersource_rest_client/models/payment_products_virtual_terminal_config_card_not_present_global_payment_info.rb +4 -4
  97. data/lib/cybersource_rest_client/models/payment_products_virtual_terminal_config_card_not_present_global_payment_info_basic_info.rb +1 -1
  98. data/lib/cybersource_rest_client/models/payment_products_virtual_terminal_config_card_not_present_merchant_defined_data_fields.rb +1 -1
  99. data/lib/cybersource_rest_client/models/payment_products_virtual_terminal_config_card_not_present_payment_info.rb +1 -1
  100. data/lib/cybersource_rest_client/models/payment_products_virtual_terminal_config_card_not_present_receipt_info.rb +4 -4
  101. data/lib/cybersource_rest_client/models/payment_products_virtual_terminal_config_card_not_present_receipt_info_email_receipt.rb +1 -1
  102. data/lib/cybersource_rest_client/models/payment_products_virtual_terminal_config_card_not_present_receipt_info_header.rb +1 -1
  103. data/lib/cybersource_rest_client/models/payment_products_virtual_terminal_config_card_not_present_receipt_info_order_info.rb +1 -1
  104. data/lib/cybersource_rest_client/models/{payment_products.rb → payments_products.rb} +18 -18
  105. data/lib/cybersource_rest_client/models/{payment_products_currency_conversion.rb → payments_products_card_present_connect.rb} +3 -3
  106. data/lib/cybersource_rest_client/models/{payment_products_currency_conversion_configuration_information.rb → payments_products_card_present_connect_configuration_information.rb} +2 -2
  107. data/lib/cybersource_rest_client/models/{payment_products_card_present_connect_configuration_information_configurations.rb → payments_products_card_present_connect_configuration_information_configurations.rb} +1 -1
  108. data/lib/cybersource_rest_client/models/{payment_products_card_present_connect_subscription_information.rb → payments_products_card_present_connect_subscription_information.rb} +1 -1
  109. data/lib/cybersource_rest_client/models/{payment_products_card_processing.rb → payments_products_card_processing.rb} +3 -3
  110. data/lib/cybersource_rest_client/models/{payment_products_virtual_terminal_configuration_information.rb → payments_products_card_processing_configuration_information.rb} +2 -2
  111. data/lib/cybersource_rest_client/models/{payment_products_card_processing_configuration_information_configurations.rb → payments_products_card_processing_configuration_information_configurations.rb} +3 -3
  112. data/lib/cybersource_rest_client/models/{payment_products_card_processing_configuration_information_configurations_common.rb → payments_products_card_processing_configuration_information_configurations_common.rb} +4 -4
  113. data/lib/cybersource_rest_client/models/{payment_products_card_processing_configuration_information_configurations_common_acquirer.rb → payments_products_card_processing_configuration_information_configurations_common_acquirer.rb} +1 -1
  114. data/lib/cybersource_rest_client/models/{payment_products_card_processing_configuration_information_configurations_common_currencies.rb → payments_products_card_processing_configuration_information_configurations_common_currencies.rb} +1 -1
  115. data/lib/cybersource_rest_client/models/{payment_products_card_processing_configuration_information_configurations_common_currencies_1.rb → payments_products_card_processing_configuration_information_configurations_common_currencies_1.rb} +1 -1
  116. data/lib/cybersource_rest_client/models/{payment_products_card_processing_configuration_information_configurations_common_payment_types.rb → payments_products_card_processing_configuration_information_configurations_common_payment_types.rb} +2 -2
  117. data/lib/cybersource_rest_client/models/{payment_products_card_processing_configuration_information_configurations_common_processors.rb → payments_products_card_processing_configuration_information_configurations_common_processors.rb} +10 -10
  118. data/lib/cybersource_rest_client/models/{payment_products_card_processing_configuration_information_configurations_features.rb → payments_products_card_processing_configuration_information_configurations_features.rb} +3 -3
  119. data/lib/cybersource_rest_client/models/{payment_products_card_processing_configuration_information_configurations_features_card_present.rb → payments_products_card_processing_configuration_information_configurations_features_card_present.rb} +2 -2
  120. data/lib/cybersource_rest_client/models/{payment_products_card_processing_subscription_information.rb → payments_products_card_processing_subscription_information.rb} +2 -2
  121. data/lib/cybersource_rest_client/models/{payment_products_card_processing_subscription_information_features.rb → payments_products_card_processing_subscription_information_features.rb} +1 -1
  122. data/lib/cybersource_rest_client/models/payments_products_currency_conversion.rb +200 -0
  123. data/lib/cybersource_rest_client/models/{payment_products_payer_authentication_configuration_information.rb → payments_products_currency_conversion_configuration_information.rb} +2 -2
  124. data/lib/cybersource_rest_client/models/{payment_products_currency_conversion_configuration_information_configurations.rb → payments_products_currency_conversion_configuration_information_configurations.rb} +2 -2
  125. data/lib/cybersource_rest_client/models/{payment_products_currency_conversion_configuration_information_configurations_processors.rb → payments_products_currency_conversion_configuration_information_configurations_processors.rb} +1 -1
  126. data/lib/cybersource_rest_client/models/{payment_products_cybs_ready_terminal.rb → payments_products_cybs_ready_terminal.rb} +2 -2
  127. data/lib/cybersource_rest_client/models/{payment_products_differential_fee.rb → payments_products_differential_fee.rb} +2 -2
  128. data/lib/cybersource_rest_client/models/{payment_products_differential_fee_subscription_information.rb → payments_products_differential_fee_subscription_information.rb} +2 -2
  129. data/lib/cybersource_rest_client/models/{payment_products_differential_fee_subscription_information_features.rb → payments_products_differential_fee_subscription_information_features.rb} +2 -2
  130. data/lib/cybersource_rest_client/models/{payment_products_digital_payments.rb → payments_products_digital_payments.rb} +2 -2
  131. data/lib/cybersource_rest_client/models/{payment_products_digital_payments_subscription_information.rb → payments_products_digital_payments_subscription_information.rb} +2 -2
  132. data/lib/cybersource_rest_client/models/{payment_products_payouts.rb → payments_products_e_check.rb} +3 -3
  133. data/lib/cybersource_rest_client/models/{payment_products_e_check_configuration_information_configurations_common_internal_only_processors.rb → payments_products_e_check_config_common_internal_only_processors.rb} +1 -1
  134. data/lib/cybersource_rest_client/models/{payment_products_e_check_configuration_information.rb → payments_products_e_check_configuration_information.rb} +2 -2
  135. data/lib/cybersource_rest_client/models/{payment_products_e_check_configuration_information_configurations.rb → payments_products_e_check_configuration_information_configurations.rb} +4 -4
  136. data/lib/cybersource_rest_client/models/{payment_products_e_check_configuration_information_configurations_common.rb → payments_products_e_check_configuration_information_configurations_common.rb} +3 -3
  137. data/lib/cybersource_rest_client/models/{payment_products_e_check_configuration_information_configurations_common_internal_only.rb → payments_products_e_check_configuration_information_configurations_common_internal_only.rb} +2 -2
  138. data/lib/cybersource_rest_client/models/{payment_products_e_check_configuration_information_configurations_common_processors.rb → payments_products_e_check_configuration_information_configurations_common_processors.rb} +1 -1
  139. data/lib/cybersource_rest_client/models/{payment_products_e_check_configuration_information_configurations_features.rb → payments_products_e_check_configuration_information_configurations_features.rb} +2 -2
  140. data/lib/cybersource_rest_client/models/{payment_products_e_check_configuration_information_configurations_underwriting.rb → payments_products_e_check_configuration_information_configurations_underwriting.rb} +4 -4
  141. data/lib/cybersource_rest_client/models/{payment_products_e_check_subscription_information.rb → payments_products_e_check_subscription_information.rb} +1 -1
  142. data/lib/cybersource_rest_client/models/payments_products_payer_authentication.rb +200 -0
  143. data/lib/cybersource_rest_client/models/{payment_products_card_present_connect_configuration_information.rb → payments_products_payer_authentication_configuration_information.rb} +2 -2
  144. data/lib/cybersource_rest_client/models/{payment_products_payer_authentication_configuration_information_configurations.rb → payments_products_payer_authentication_configuration_information_configurations.rb} +2 -2
  145. data/lib/cybersource_rest_client/models/{payment_products_payer_authentication_configuration_information_configurations_card_types.rb → payments_products_payer_authentication_configuration_information_configurations_card_types.rb} +9 -9
  146. data/lib/cybersource_rest_client/models/{payment_products_payer_authentication_configuration_information_configurations_card_types_cb.rb → payments_products_payer_authentication_configuration_information_configurations_card_types_cb.rb} +2 -2
  147. data/lib/cybersource_rest_client/models/{payment_products_payer_authentication_subscription_information.rb → payments_products_payer_authentication_subscription_information.rb} +1 -1
  148. data/lib/cybersource_rest_client/models/{payment_products_e_check.rb → payments_products_payouts.rb} +3 -3
  149. data/lib/cybersource_rest_client/models/{payment_products_payouts_configuration_information.rb → payments_products_payouts_configuration_information.rb} +2 -2
  150. data/lib/cybersource_rest_client/models/{payment_products_payouts_configuration_information_configurations.rb → payments_products_payouts_configuration_information_configurations.rb} +3 -3
  151. data/lib/cybersource_rest_client/models/{payment_products_payouts_configuration_information_configurations_processor_account.rb → payments_products_payouts_configuration_information_configurations_processor_account.rb} +1 -1
  152. data/lib/cybersource_rest_client/models/{payment_products_payouts_configuration_information_configurations_pullfunds.rb → payments_products_payouts_configuration_information_configurations_pullfunds.rb} +1 -1
  153. data/lib/cybersource_rest_client/models/{payment_products_payouts_configuration_information_configurations_pushfunds.rb → payments_products_payouts_configuration_information_configurations_pushfunds.rb} +2 -2
  154. data/lib/cybersource_rest_client/models/{payment_products_card_present_connect.rb → payments_products_secure_acceptance.rb} +3 -3
  155. data/lib/cybersource_rest_client/models/{payment_products_card_processing_configuration_information.rb → payments_products_secure_acceptance_configuration_information.rb} +2 -2
  156. data/lib/cybersource_rest_client/models/{payment_products_secure_acceptance_configuration_information_configurations.rb → payments_products_secure_acceptance_configuration_information_configurations.rb} +7 -7
  157. data/lib/cybersource_rest_client/models/{payment_products_secure_acceptance_configuration_information_configurations_checkout.rb → payments_products_secure_acceptance_configuration_information_configurations_checkout.rb} +1 -1
  158. data/lib/cybersource_rest_client/models/{payment_products_secure_acceptance_configuration_information_configurations_contact_information.rb → payments_products_secure_acceptance_configuration_information_configurations_contact_information.rb} +1 -1
  159. data/lib/cybersource_rest_client/models/{payment_products_secure_acceptance_configuration_information_configurations_notifications.rb → payments_products_secure_acceptance_configuration_information_configurations_notifications.rb} +3 -3
  160. data/lib/cybersource_rest_client/models/{payment_products_secure_acceptance_configuration_information_configurations_payment_methods.rb → payments_products_secure_acceptance_configuration_information_configurations_payment_methods.rb} +1 -1
  161. data/lib/cybersource_rest_client/models/{payment_products_secure_acceptance_configuration_information_configurations_payment_types.rb → payments_products_secure_acceptance_configuration_information_configurations_payment_types.rb} +2 -2
  162. data/lib/cybersource_rest_client/models/{payment_products_secure_acceptance_configuration_information_configurations_service.rb → payments_products_secure_acceptance_configuration_information_configurations_service.rb} +1 -1
  163. data/lib/cybersource_rest_client/models/{payment_products_tax.rb → payments_products_tax.rb} +2 -2
  164. data/lib/cybersource_rest_client/models/{payment_products_secure_acceptance.rb → payments_products_virtual_terminal.rb} +3 -3
  165. data/lib/cybersource_rest_client/models/{payment_products_secure_acceptance_configuration_information.rb → payments_products_virtual_terminal_configuration_information.rb} +2 -2
  166. data/lib/cybersource_rest_client/models/{payment_products_virtual_terminal_configuration_information_configurations.rb → payments_products_virtual_terminal_configuration_information_configurations.rb} +3 -3
  167. data/lib/cybersource_rest_client/models/{payment_products_virtual_terminal_configuration_information_configurations_card_not_present.rb → payments_products_virtual_terminal_configuration_information_configurations_card_not_present.rb} +3 -3
  168. data/lib/cybersource_rest_client/models/pts_v2_credits_post201_response_credit_amount_details.rb +1 -1
  169. data/lib/cybersource_rest_client/models/pts_v2_incremental_authorization_patch201_response_processor_information.rb +1 -1
  170. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_1_order_information_bill_to.rb +4 -4
  171. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_1_order_information_ship_to.rb +6 -6
  172. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_1_payment_information_payment_type_method.rb +1 -1
  173. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_buyer_information.rb +3 -3
  174. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_consumer_authentication_information.rb +4 -4
  175. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_installment_information.rb +3 -3
  176. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_issuer_information.rb +1 -1
  177. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_account_information_card.rb +1 -1
  178. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information.rb +1 -1
  179. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information_tokenized_card.rb +1 -1
  180. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_point_of_sale_information_emv.rb +1 -1
  181. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information.rb +3 -3
  182. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information_electronic_verification_results.rb +18 -18
  183. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_risk_information_info_codes.rb +3 -3
  184. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_risk_information_score.rb +1 -1
  185. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_watchlist_screening_information.rb +1 -1
  186. data/lib/cybersource_rest_client/models/pts_v2_payments_refund_post201_response_refund_amount_details.rb +1 -1
  187. data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_merchant_information_merchant_descriptor.rb +3 -3
  188. data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_order_information_amount_details.rb +1 -1
  189. data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_processor_information.rb +1 -1
  190. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_aggregator_information_sub_merchant.rb +8 -8
  191. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_merchant_information.rb +1 -1
  192. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_merchant_information_merchant_descriptor.rb +4 -4
  193. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_point_of_service_information.rb +1 -1
  194. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_processing_information.rb +1 -1
  195. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_recipient_information.rb +1 -1
  196. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_recipient_information_payment_information_card.rb +1 -1
  197. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_sender_information.rb +4 -4
  198. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_sender_information_account.rb +1 -1
  199. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_sender_information_payment_information_card.rb +1 -1
  200. data/lib/cybersource_rest_client/models/ptsv2billingagreements_device_information.rb +2 -2
  201. data/lib/cybersource_rest_client/models/ptsv2billingagreements_installment_information.rb +1 -1
  202. data/lib/cybersource_rest_client/models/ptsv2billingagreements_merchant_information.rb +2 -2
  203. data/lib/cybersource_rest_client/models/ptsv2billingagreements_merchant_information_merchant_descriptor.rb +3 -3
  204. data/lib/cybersource_rest_client/models/ptsv2billingagreements_order_information_bill_to.rb +5 -5
  205. data/lib/cybersource_rest_client/models/ptsv2billingagreements_payment_information_card.rb +1 -1
  206. data/lib/cybersource_rest_client/models/ptsv2billingagreements_payment_information_tokenized_card.rb +2 -2
  207. data/lib/cybersource_rest_client/models/ptsv2credits_installment_information.rb +1 -1
  208. data/lib/cybersource_rest_client/models/ptsv2credits_processing_information.rb +3 -3
  209. data/lib/cybersource_rest_client/models/ptsv2credits_processing_information_bank_transfer_options.rb +1 -1
  210. data/lib/cybersource_rest_client/models/ptsv2payments_aggregator_information_sub_merchant.rb +9 -9
  211. data/lib/cybersource_rest_client/models/ptsv2payments_buyer_information.rb +5 -5
  212. data/lib/cybersource_rest_client/models/ptsv2payments_buyer_information_personal_identification.rb +1 -1
  213. data/lib/cybersource_rest_client/models/ptsv2payments_client_reference_information_partner.rb +1 -1
  214. data/lib/cybersource_rest_client/models/ptsv2payments_consumer_authentication_information.rb +1 -1
  215. data/lib/cybersource_rest_client/models/ptsv2payments_device_information.rb +5 -5
  216. data/lib/cybersource_rest_client/models/ptsv2payments_installment_information.rb +3 -3
  217. data/lib/cybersource_rest_client/models/ptsv2payments_merchant_information.rb +4 -4
  218. data/lib/cybersource_rest_client/models/ptsv2payments_merchant_information_merchant_descriptor.rb +5 -5
  219. data/lib/cybersource_rest_client/models/ptsv2payments_merchant_information_service_fee_descriptor.rb +3 -3
  220. data/lib/cybersource_rest_client/models/ptsv2payments_merchant_information_service_location.rb +4 -4
  221. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_amount_details.rb +2 -2
  222. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_bill_to.rb +9 -9
  223. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_bill_to_company.rb +1 -1
  224. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_invoice_details.rb +1 -1
  225. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_invoice_details_transaction_advice_addendum.rb +1 -1
  226. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_line_items.rb +1 -1
  227. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_ship_to.rb +7 -7
  228. data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_bank.rb +2 -2
  229. data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_bank_account.rb +1 -1
  230. data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_card.rb +2 -2
  231. data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_customer.rb +1 -1
  232. data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_payment_type_method.rb +1 -1
  233. data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_tokenized_card.rb +3 -3
  234. data/lib/cybersource_rest_client/models/ptsv2payments_point_of_sale_information.rb +4 -4
  235. data/lib/cybersource_rest_client/models/ptsv2payments_point_of_sale_information_emv.rb +2 -2
  236. data/lib/cybersource_rest_client/models/ptsv2payments_processing_information.rb +6 -6
  237. data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_authorization_options.rb +1 -1
  238. data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_authorization_options_initiator.rb +1 -1
  239. data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_bank_transfer_options.rb +2 -2
  240. data/lib/cybersource_rest_client/models/ptsv2payments_recipient_information.rb +5 -5
  241. data/lib/cybersource_rest_client/models/ptsv2payments_risk_information_buyer_history_customer_account.rb +1 -1
  242. data/lib/cybersource_rest_client/models/ptsv2payments_travel_information_auto_rental.rb +4 -4
  243. data/lib/cybersource_rest_client/models/ptsv2payments_travel_information_transit_airline.rb +1 -1
  244. data/lib/cybersource_rest_client/models/ptsv2payments_travel_information_transit_airline_ancillary_information.rb +1 -1
  245. data/lib/cybersource_rest_client/models/ptsv2payments_travel_information_transit_airline_legs.rb +1 -1
  246. data/lib/cybersource_rest_client/models/ptsv2payments_watchlist_screening_information.rb +1 -1
  247. data/lib/cybersource_rest_client/models/ptsv2payments_watchlist_screening_information_weights.rb +2 -2
  248. data/lib/cybersource_rest_client/models/ptsv2paymentsid_client_reference_information_partner.rb +1 -1
  249. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_aggregator_information_sub_merchant.rb +8 -8
  250. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_buyer_information.rb +3 -3
  251. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_device_information.rb +1 -1
  252. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_installment_information.rb +3 -3
  253. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_merchant_information.rb +1 -1
  254. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_order_information_amount_details.rb +1 -1
  255. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_order_information_bill_to.rb +6 -6
  256. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_order_information_invoice_details.rb +1 -1
  257. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_order_information_ship_to.rb +3 -3
  258. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_point_of_sale_information_emv.rb +1 -1
  259. data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_merchant_information.rb +1 -1
  260. data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_order_information_line_items.rb +1 -1
  261. data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_payment_information_bank.rb +1 -1
  262. data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_payment_information_card.rb +2 -2
  263. data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_point_of_sale_information_emv.rb +1 -1
  264. data/lib/cybersource_rest_client/models/ptsv2payouts_merchant_information.rb +1 -1
  265. data/lib/cybersource_rest_client/models/ptsv2payouts_merchant_information_merchant_descriptor.rb +5 -5
  266. data/lib/cybersource_rest_client/models/ptsv2payouts_order_information_bill_to.rb +4 -4
  267. data/lib/cybersource_rest_client/models/ptsv2payouts_payment_information_card.rb +1 -1
  268. data/lib/cybersource_rest_client/models/ptsv2payouts_processing_information.rb +1 -1
  269. data/lib/cybersource_rest_client/models/ptsv2payouts_recipient_information.rb +1 -1
  270. data/lib/cybersource_rest_client/models/ptsv2payouts_sender_information.rb +5 -5
  271. data/lib/cybersource_rest_client/models/ptsv2payouts_sender_information_account.rb +1 -1
  272. data/lib/cybersource_rest_client/models/ptsv2refreshpaymentstatusid_payment_information_customer.rb +1 -1
  273. data/lib/cybersource_rest_client/models/push_funds201_response_order_information_amount_details.rb +1 -1
  274. data/lib/cybersource_rest_client/models/push_funds201_response_processor_information.rb +1 -1
  275. data/lib/cybersource_rest_client/models/{replay_webhooks.rb → replay_webhooks_request.rb} +1 -1
  276. data/lib/cybersource_rest_client/models/risk_products_decision_manager.rb +1 -1
  277. data/lib/cybersource_rest_client/models/risk_products_fraud_management_essentials.rb +1 -1
  278. data/lib/cybersource_rest_client/models/risk_v1_decisions_post201_response_consumer_authentication_information.rb +4 -4
  279. data/lib/cybersource_rest_client/models/risk_v1_decisions_post201_response_payment_information.rb +1 -1
  280. data/lib/cybersource_rest_client/models/riskv1addressverifications_buyer_information.rb +1 -1
  281. data/lib/cybersource_rest_client/models/riskv1addressverifications_order_information_bill_to.rb +1 -1
  282. data/lib/cybersource_rest_client/models/riskv1addressverifications_order_information_line_items.rb +1 -1
  283. data/lib/cybersource_rest_client/models/riskv1addressverifications_order_information_ship_to.rb +7 -7
  284. data/lib/cybersource_rest_client/models/riskv1authenticationresults_payment_information_card.rb +1 -1
  285. data/lib/cybersource_rest_client/models/riskv1authenticationresults_payment_information_tokenized_card.rb +2 -2
  286. data/lib/cybersource_rest_client/models/riskv1authentications_buyer_information.rb +2 -2
  287. data/lib/cybersource_rest_client/models/riskv1authentications_device_information.rb +2 -2
  288. data/lib/cybersource_rest_client/models/riskv1authentications_order_information_bill_to.rb +4 -4
  289. data/lib/cybersource_rest_client/models/riskv1authentications_payment_information_card.rb +1 -1
  290. data/lib/cybersource_rest_client/models/riskv1authentications_payment_information_tokenized_card.rb +2 -2
  291. data/lib/cybersource_rest_client/models/riskv1authenticationsetups_payment_information_card.rb +1 -1
  292. data/lib/cybersource_rest_client/models/riskv1authenticationsetups_payment_information_tokenized_card.rb +2 -2
  293. data/lib/cybersource_rest_client/models/riskv1decisions_buyer_information.rb +2 -2
  294. data/lib/cybersource_rest_client/models/riskv1decisions_consumer_authentication_information.rb +1 -1
  295. data/lib/cybersource_rest_client/models/riskv1decisions_device_information.rb +6 -6
  296. data/lib/cybersource_rest_client/models/riskv1decisions_merchant_information.rb +1 -1
  297. data/lib/cybersource_rest_client/models/riskv1decisions_merchant_information_merchant_descriptor.rb +1 -1
  298. data/lib/cybersource_rest_client/models/riskv1decisions_order_information_bill_to.rb +4 -4
  299. data/lib/cybersource_rest_client/models/riskv1decisions_order_information_line_items.rb +2 -2
  300. data/lib/cybersource_rest_client/models/riskv1decisions_order_information_ship_to.rb +7 -7
  301. data/lib/cybersource_rest_client/models/riskv1decisions_payment_information_card.rb +1 -1
  302. data/lib/cybersource_rest_client/models/riskv1decisions_payment_information_tokenized_card.rb +2 -2
  303. data/lib/cybersource_rest_client/models/riskv1exportcomplianceinquiries_export_compliance_information.rb +1 -1
  304. data/lib/cybersource_rest_client/models/riskv1exportcomplianceinquiries_order_information_bill_to.rb +3 -3
  305. data/lib/cybersource_rest_client/models/riskv1exportcomplianceinquiries_order_information_line_items.rb +1 -1
  306. data/lib/cybersource_rest_client/models/riskv1exportcomplianceinquiries_order_information_ship_to.rb +1 -1
  307. data/lib/cybersource_rest_client/models/riskv1liststypeentries_order_information_bill_to.rb +4 -4
  308. data/lib/cybersource_rest_client/models/riskv1liststypeentries_order_information_ship_to.rb +6 -6
  309. data/lib/cybersource_rest_client/models/riskv1liststypeentries_payment_information_bank.rb +1 -1
  310. data/lib/cybersource_rest_client/models/riskv1liststypeentries_payment_information_card.rb +1 -1
  311. data/lib/cybersource_rest_client/models/riskv1liststypeentries_risk_information_marking_details.rb +2 -2
  312. data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument__embedded_instrument_identifier_bill_to.rb +1 -1
  313. data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument__embedded_instrument_identifier_card.rb +1 -1
  314. data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument_bill_to.rb +5 -5
  315. data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument_buyer_information.rb +1 -1
  316. data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument_buyer_information_issued_by.rb +1 -1
  317. data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument_card_tokenized_information.rb +2 -2
  318. data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument_merchant_information_merchant_descriptor.rb +1 -1
  319. data/lib/cybersource_rest_client/models/tmsv2customers__embedded_tokenized_card_card.rb +3 -3
  320. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_buyer_information.rb +1 -1
  321. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_device_information.rb +1 -1
  322. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_merchant_information_merchant_descriptor.rb +1 -1
  323. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_order_information_amount_details.rb +1 -1
  324. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_order_information_bill_to.rb +7 -7
  325. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_order_information_ship_to.rb +6 -6
  326. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_bank.rb +3 -3
  327. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_bank_account.rb +3 -3
  328. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_card.rb +2 -2
  329. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_customer.rb +1 -1
  330. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_point_of_sale_information.rb +1 -1
  331. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_processing_information.rb +2 -2
  332. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_processing_information_authorization_options_initiator.rb +1 -1
  333. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_processor_information.rb +2 -2
  334. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_processor_information_electronic_verification_results.rb +10 -10
  335. data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response.rb +1 -1
  336. data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_buyer_information.rb +1 -1
  337. data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_order_information_bill_to.rb +4 -4
  338. data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_order_information_ship_to.rb +2 -2
  339. data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_payment_information_bank_account.rb +1 -1
  340. data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_payment_information_card.rb +1 -1
  341. data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_point_of_sale_information_partner.rb +1 -1
  342. data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_processing_information.rb +2 -2
  343. data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_risk_information_providers_fingerprint.rb +1 -1
  344. data/lib/cybersource_rest_client/models/tssv2transactionsemv_tag_details_emv_details_list.rb +1 -1
  345. data/lib/cybersource_rest_client/models/{update_webhook.rb → update_webhook_request.rb} +1 -1
  346. data/lib/cybersource_rest_client/models/upv1capturecontexts_order_information_bill_to.rb +7 -7
  347. data/lib/cybersource_rest_client/models/upv1capturecontexts_order_information_bill_to_company.rb +3 -3
  348. data/lib/cybersource_rest_client/models/value_added_services_products.rb +2 -2
  349. data/lib/cybersource_rest_client/models/vas_v2_payments_post201_response_tax_information.rb +1 -1
  350. data/lib/cybersource_rest_client/models/vasv2tax_buyer_information.rb +1 -1
  351. data/lib/cybersource_rest_client/models/vasv2tax_order_information_line_items.rb +2 -2
  352. data/lib/cybersource_rest_client/models/vasv2tax_order_information_ship_to.rb +7 -7
  353. data/lib/cybersource_rest_client/models/vasv2tax_tax_information.rb +1 -1
  354. data/lib/cybersource_rest_client.rb +67 -67
  355. metadata +70 -70
  356. data/lib/cybersource_rest_client/models/payment_products_payer_authentication.rb +0 -200
  357. data/lib/cybersource_rest_client/models/payment_products_virtual_terminal.rb +0 -200
@@ -22,10 +22,12 @@ module CyberSource
22
22
  end
23
23
  # Delete a Customer
24
24
  # | | | | | --- | --- | --- | |**Customers**<br>A Customer represents your tokenized customer information.<br>You should associate the Customer Id with the customer account on your systems.<br>A Customer can have one or more [Payment Instruments](#token-management_customer-payment-instrument_create-a-customer-payment-instrumentl) or [Shipping Addresses](#token-management_customer-shipping-address_create-a-customer-shipping-address) with one allocated as the Customers default.|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|**Deleting a Customer**<br>Your system can use this API to delete a complete Customer.<br>When a Customer is deleted all associated Payment Instruments & Shipping Addresses are deleted.<br>Any Instrument Identifiers representing the card number will also be deleted if they are not associated with any other Payment Instruments.<br>Note: Individual [Payment Instruments](#token-management_customer-payment-instrument_delete-a-customer-payment-instrument) or [Shipping Addresses](#token-management_customer-shipping-address_delete-a-customer-shipping-address) can be deleted via their own dedicated API resources.
25
+ #
25
26
  # @param customer_id The Id of a Customer.
26
27
  # @param [Hash] opts the optional parameters
27
28
  # @option opts [String] :profile_id The Id of a profile containing user specific TMS configuration.
28
29
  # @return [nil]
30
+ #
29
31
  def delete_customer(customer_id, opts = {})
30
32
  data, status_code, headers = delete_customer_with_http_info(customer_id, opts)
31
33
  return data, status_code, headers
@@ -51,22 +53,6 @@ module CyberSource
51
53
  if @api_client.config.client_side_validation && customer_id.nil?
52
54
  fail ArgumentError, "Missing the required parameter 'customer_id' when calling CustomerApi.delete_customer"
53
55
  end
54
- if @api_client.config.client_side_validation && customer_id.to_s.length > 32
55
- fail ArgumentError, 'invalid value for "customer_id" when calling CustomerApi.delete_customer, the character length must be smaller than or equal to 32.'
56
- end
57
-
58
- if @api_client.config.client_side_validation && customer_id.to_s.length < 1
59
- fail ArgumentError, 'invalid value for "customer_id" when calling CustomerApi.delete_customer, the character length must be great than or equal to 1.'
60
- end
61
-
62
- if @api_client.config.client_side_validation && !opts[:'profile_id'].nil? && opts[:'profile_id'].to_s.length > 36
63
- fail ArgumentError, 'invalid value for "opts[:"profile_id"]" when calling CustomerApi.delete_customer, the character length must be smaller than or equal to 36.'
64
- end
65
-
66
- if @api_client.config.client_side_validation && !opts[:'profile_id'].nil? && opts[:'profile_id'].to_s.length < 36
67
- fail ArgumentError, 'invalid value for "opts[:"profile_id"]" when calling CustomerApi.delete_customer, the character length must be great than or equal to 36.'
68
- end
69
-
70
56
  # resource path
71
57
  local_var_path = 'tms/v2/customers/{customerId}'.sub('{' + 'customerId' + '}', customer_id.to_s)
72
58
 
@@ -109,10 +95,12 @@ module CyberSource
109
95
  end
110
96
  # Retrieve a Customer
111
97
  # | | | | | --- | --- | --- | |**Customers**<br>A Customer represents your tokenized customer information.<br>You should associate the Customer Id with the customer account on your systems.<br>A Customer can have one or more [Payment Instruments](#token-management_customer-payment-instrument_create-a-customer-payment-instrumentl) or [Shipping Addresses](#token-management_customer-shipping-address_create-a-customer-shipping-address) with one allocated as the Customers default.<br><br>**Retrieving a Customer**<br>When your customer signs into their account, your system can use this API to retrieve the Customers default Payment Instrument and Shipping Address.<br>**Note: the actual card data will be masked.**<br>If your customer wants to see other available Payment Instruments, your system can [retrieve all Payment Instruments](#token-management_customer-payment-instrument_list-payment-instruments-for-a-customer) associated with the Customer.<br>The same applies to [Shipping Addresses](#token-management_customer-shipping-address_list-shipping-addresses-for-a-customer).|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|**Payment Network Tokens**<br>Network tokens perform better than regular card numbers and they are not necessarily invalidated when a cardholder loses their card, or it expires.<br>A Payment Network Token will be automatically created and used in future payments if you are enabled for the service.<br>A Payment Network Token can also be [provisioned for an existing Instrument Identifier](#token-management_instrument-identifier_enroll-an-instrument-identifier-for-payment-network-token).<br>For more information about Payment Network Tokens see the Developer Guide.<br><br>**Payments with Customers**<br>To perform a payment with the Customers default details specify the [Customer Id in the payments request](#payments_payments_process-a-payment_samplerequests-dropdown_authorization-using-tokens_authorization-with-customer-token-id_liveconsole-tab-request-body).<br>To perform a payment with a particular Payment Instrument or Shipping Address <br>specify the [Payment Instrument or Shipping Address Ids in the payments request](#payments_payments_process-a-payment_samplerequests-dropdown_authorization-using-tokens_authorization-with-customer-payment-instrument-and-shipping-address-token-id_liveconsole-tab-request-body).
98
+ #
112
99
  # @param customer_id The Id of a Customer.
113
100
  # @param [Hash] opts the optional parameters
114
101
  # @option opts [String] :profile_id The Id of a profile containing user specific TMS configuration.
115
102
  # @return [TmsV2CustomersResponse]
103
+ #
116
104
  def get_customer(customer_id, opts = {})
117
105
  data, status_code, headers = get_customer_with_http_info(customer_id, opts)
118
106
  return data, status_code, headers
@@ -138,22 +126,6 @@ module CyberSource
138
126
  if @api_client.config.client_side_validation && customer_id.nil?
139
127
  fail ArgumentError, "Missing the required parameter 'customer_id' when calling CustomerApi.get_customer"
140
128
  end
141
- if @api_client.config.client_side_validation && customer_id.to_s.length > 32
142
- fail ArgumentError, 'invalid value for "customer_id" when calling CustomerApi.get_customer, the character length must be smaller than or equal to 32.'
143
- end
144
-
145
- if @api_client.config.client_side_validation && customer_id.to_s.length < 1
146
- fail ArgumentError, 'invalid value for "customer_id" when calling CustomerApi.get_customer, the character length must be great than or equal to 1.'
147
- end
148
-
149
- if @api_client.config.client_side_validation && !opts[:'profile_id'].nil? && opts[:'profile_id'].to_s.length > 36
150
- fail ArgumentError, 'invalid value for "opts[:"profile_id"]" when calling CustomerApi.get_customer, the character length must be smaller than or equal to 36.'
151
- end
152
-
153
- if @api_client.config.client_side_validation && !opts[:'profile_id'].nil? && opts[:'profile_id'].to_s.length < 36
154
- fail ArgumentError, 'invalid value for "opts[:"profile_id"]" when calling CustomerApi.get_customer, the character length must be great than or equal to 36.'
155
- end
156
-
157
129
  # resource path
158
130
  local_var_path = 'tms/v2/customers/{customerId}'.sub('{' + 'customerId' + '}', customer_id.to_s)
159
131
 
@@ -197,12 +169,14 @@ module CyberSource
197
169
  end
198
170
  # Update a Customer
199
171
  # | | | | | --- | --- | --- | |**Customers**<br>A Customer represents your tokenized customer information.<br>You should associate the Customer Id with the customer account on your systems.<br>A Customer can have one or more [Payment Instruments](#token-management_customer-payment-instrument_create-a-customer-payment-instrumentl) or [Shipping Addresses](#token-management_customer-shipping-address_create-a-customer-shipping-address) with one allocated as the Customers default.|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|**Updating a Customer**<br>Your system can use this API to update a Customers details including selecting a [default Payment Instrument](#token-management_customer_update-a-customer_samplerequests-dropdown_update-customers-default-payment-instrument_liveconsole-tab-request-body) or [default Shipping Address](#token-management_customer_update-a-customer_samplerequests-dropdown_update-customers-default-shipping-address_liveconsole-tab-request-body) for use in payments.<br>Note: Updating a Customers [Payment Instrument](#token-management_customer-payment-instrument_update-a-customer-payment-instrument) or [Shipping Address](#token-management_customer-shipping-address_update-a-customer-shipping-address) details is performed using their own dedicated API resources.
172
+ #
200
173
  # @param customer_id The Id of a Customer.
201
174
  # @param patch_customer_request
202
175
  # @param [Hash] opts the optional parameters
203
176
  # @option opts [String] :profile_id The Id of a profile containing user specific TMS configuration.
204
177
  # @option opts [String] :if_match Contains an ETag value from a GET request to make the request conditional.
205
178
  # @return [TmsV2CustomersResponse]
179
+ #
206
180
  def patch_customer(customer_id, patch_customer_request, opts = {})
207
181
  data, status_code, headers = patch_customer_with_http_info(customer_id, patch_customer_request, opts)
208
182
  return data, status_code, headers
@@ -230,34 +204,10 @@ module CyberSource
230
204
  if @api_client.config.client_side_validation && customer_id.nil?
231
205
  fail ArgumentError, "Missing the required parameter 'customer_id' when calling CustomerApi.patch_customer"
232
206
  end
233
- if @api_client.config.client_side_validation && customer_id.to_s.length > 32
234
- fail ArgumentError, 'invalid value for "customer_id" when calling CustomerApi.patch_customer, the character length must be smaller than or equal to 32.'
235
- end
236
-
237
- if @api_client.config.client_side_validation && customer_id.to_s.length < 1
238
- fail ArgumentError, 'invalid value for "customer_id" when calling CustomerApi.patch_customer, the character length must be great than or equal to 1.'
239
- end
240
-
241
207
  # verify the required parameter 'patch_customer_request' is set
242
208
  if @api_client.config.client_side_validation && patch_customer_request.nil?
243
209
  fail ArgumentError, "Missing the required parameter 'patch_customer_request' when calling CustomerApi.patch_customer"
244
210
  end
245
- if @api_client.config.client_side_validation && !opts[:'profile_id'].nil? && opts[:'profile_id'].to_s.length > 36
246
- fail ArgumentError, 'invalid value for "opts[:"profile_id"]" when calling CustomerApi.patch_customer, the character length must be smaller than or equal to 36.'
247
- end
248
-
249
- if @api_client.config.client_side_validation && !opts[:'profile_id'].nil? && opts[:'profile_id'].to_s.length < 36
250
- fail ArgumentError, 'invalid value for "opts[:"profile_id"]" when calling CustomerApi.patch_customer, the character length must be great than or equal to 36.'
251
- end
252
-
253
- if @api_client.config.client_side_validation && !opts[:'if_match'].nil? && opts[:'if_match'].to_s.length > 32
254
- fail ArgumentError, 'invalid value for "opts[:"if_match"]" when calling CustomerApi.patch_customer, the character length must be smaller than or equal to 32.'
255
- end
256
-
257
- if @api_client.config.client_side_validation && !opts[:'if_match'].nil? && opts[:'if_match'].to_s.length < 1
258
- fail ArgumentError, 'invalid value for "opts[:"if_match"]" when calling CustomerApi.patch_customer, the character length must be great than or equal to 1.'
259
- end
260
-
261
211
  # resource path
262
212
  local_var_path = 'tms/v2/customers/{customerId}'.sub('{' + 'customerId' + '}', customer_id.to_s)
263
213
 
@@ -300,10 +250,12 @@ module CyberSource
300
250
  end
301
251
  # Create a Customer
302
252
  # | | | | | --- | --- | --- | |**Customers**<br>A Customer represents your tokenized customer information.<br>You should associate the Customer Id with the customer account on your systems.<br>A Customer can have one or more [Payment Instruments](#token-management_customer-payment-instrument_create-a-customer-payment-instrumentl) or [Shipping Addresses](#token-management_customer-shipping-address_create-a-customer-shipping-address) with one allocated as the Customers default.<br><br>**Creating a Customer**<br>It is recommended you [create a Customer via a Payment Authorization](#payments_payments_process-a-payment_samplerequests-dropdown_authorization-with-token-create_authorization-with-customer-token-creation_liveconsole-tab-request-body), this can be for a zero amount.<br>The Customer will be created with a Payment Instrument and Shipping Address.<br>You can also [add additional Payment Instruments to a Customer via a Payment Authorization](#payments_payments_process-a-payment_samplerequests-dropdown_authorization-with-token-create_authorization-create-default-payment-instrument-shipping-address-for-existing-customer_liveconsole-tab-request-body).<br>In Europe: You should perform Payer Authentication alongside the Authorization.|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|**Payment Network Tokens**<br>Network tokens perform better than regular card numbers and they are not necessarily invalidated when a cardholder loses their card, or it expires.<br>A Payment Network Token will be automatically created and used in future payments if you are enabled for the service.<br>A Payment Network Token can also be [provisioned for an existing Instrument Identifier](#token-management_instrument-identifier_enroll-an-instrument-identifier-for-payment-network-token).<br>For more information about Payment Network Tokens see the Developer Guide.<br><br>**Payments with Customers**<br>To perform a payment with the Customers default details specify the [Customer Id in the payments request](#payments_payments_process-a-payment_samplerequests-dropdown_authorization-using-tokens_authorization-with-customer-token-id_liveconsole-tab-request-body).<br>To perform a payment with a particular Payment Instrument or Shipping Address <br>specify the [Payment Instrument or Shipping Address Ids in the payments request](#payments_payments_process-a-payment_samplerequests-dropdown_authorization-using-tokens_authorization-with-customer-payment-instrument-and-shipping-address-token-id_liveconsole-tab-request-body).
253
+ #
303
254
  # @param post_customer_request
304
255
  # @param [Hash] opts the optional parameters
305
256
  # @option opts [String] :profile_id The Id of a profile containing user specific TMS configuration.
306
257
  # @return [TmsV2CustomersResponse]
258
+ #
307
259
  def post_customer(post_customer_request, opts = {})
308
260
  data, status_code, headers = post_customer_with_http_info(post_customer_request, opts)
309
261
  return data, status_code, headers
@@ -329,14 +281,6 @@ module CyberSource
329
281
  if @api_client.config.client_side_validation && post_customer_request.nil?
330
282
  fail ArgumentError, "Missing the required parameter 'post_customer_request' when calling CustomerApi.post_customer"
331
283
  end
332
- if @api_client.config.client_side_validation && !opts[:'profile_id'].nil? && opts[:'profile_id'].to_s.length > 36
333
- fail ArgumentError, 'invalid value for "opts[:"profile_id"]" when calling CustomerApi.post_customer, the character length must be smaller than or equal to 36.'
334
- end
335
-
336
- if @api_client.config.client_side_validation && !opts[:'profile_id'].nil? && opts[:'profile_id'].to_s.length < 36
337
- fail ArgumentError, 'invalid value for "opts[:"profile_id"]" when calling CustomerApi.post_customer, the character length must be great than or equal to 36.'
338
- end
339
-
340
284
  # resource path
341
285
  local_var_path = 'tms/v2/customers'
342
286
 
@@ -22,11 +22,13 @@ module CyberSource
22
22
  end
23
23
  # Delete a Customer Payment Instrument
24
24
  # | | | | | --- | --- | --- | |**Customer Payment Instrument**<br>A Customer Payment Instrument represents tokenized customer payment information such as expiration date, billing address & card type.<br>A [Customer](#token-management_customer_create-a-customer) can have [one or more Payment Instruments](#token-management_customer-payment-instrument_retrieve-a-customer-payment-instrument), with one allocated as the Customers default for use in payments.<br>A Payment Instrument token does not store the card number. A Payment Instrument is associated with an [Instrument Identifier](#token-management_instrument-identifier_create-an-instrument-identifier) that represents either a payment card number, or in the case of an ACH bank account, the routing and account number.<br>|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|**Deleting a Customers Payment Instrument**<br>Your system can use this API to delete an existing Payment Instrument for a Customer.<br>Any Instrument Identifiers representing the card number will also be deleted if they are not associated with any other Payment Instruments.<br>If a customer has more than one Payment Instrument then the default Payment Instrument cannot be deleted without first selecting a [new default Payment Instrument](#token-management_customer-payment-instrument_update-a-customer-payment-instrument_samplerequests-dropdown_make-customer-payment-instrument-the-default_liveconsole-tab-request-body).
25
+ #
25
26
  # @param customer_id The Id of a Customer.
26
27
  # @param payment_instrument_id The Id of a payment instrument.
27
28
  # @param [Hash] opts the optional parameters
28
29
  # @option opts [String] :profile_id The Id of a profile containing user specific TMS configuration.
29
30
  # @return [nil]
31
+ #
30
32
  def delete_customer_payment_instrument(customer_id, payment_instrument_id, opts = {})
31
33
  data, status_code, headers = delete_customer_payment_instrument_with_http_info(customer_id, payment_instrument_id, opts)
32
34
  return data, status_code, headers
@@ -53,34 +55,10 @@ module CyberSource
53
55
  if @api_client.config.client_side_validation && customer_id.nil?
54
56
  fail ArgumentError, "Missing the required parameter 'customer_id' when calling CustomerPaymentInstrumentApi.delete_customer_payment_instrument"
55
57
  end
56
- if @api_client.config.client_side_validation && customer_id.to_s.length > 32
57
- fail ArgumentError, 'invalid value for "customer_id" when calling CustomerPaymentInstrumentApi.delete_customer_payment_instrument, the character length must be smaller than or equal to 32.'
58
- end
59
-
60
- if @api_client.config.client_side_validation && customer_id.to_s.length < 1
61
- fail ArgumentError, 'invalid value for "customer_id" when calling CustomerPaymentInstrumentApi.delete_customer_payment_instrument, the character length must be great than or equal to 1.'
62
- end
63
-
64
58
  # verify the required parameter 'payment_instrument_id' is set
65
59
  if @api_client.config.client_side_validation && payment_instrument_id.nil?
66
60
  fail ArgumentError, "Missing the required parameter 'payment_instrument_id' when calling CustomerPaymentInstrumentApi.delete_customer_payment_instrument"
67
61
  end
68
- if @api_client.config.client_side_validation && payment_instrument_id.to_s.length > 32
69
- fail ArgumentError, 'invalid value for "payment_instrument_id" when calling CustomerPaymentInstrumentApi.delete_customer_payment_instrument, the character length must be smaller than or equal to 32.'
70
- end
71
-
72
- if @api_client.config.client_side_validation && payment_instrument_id.to_s.length < 1
73
- fail ArgumentError, 'invalid value for "payment_instrument_id" when calling CustomerPaymentInstrumentApi.delete_customer_payment_instrument, the character length must be great than or equal to 1.'
74
- end
75
-
76
- if @api_client.config.client_side_validation && !opts[:'profile_id'].nil? && opts[:'profile_id'].to_s.length > 36
77
- fail ArgumentError, 'invalid value for "opts[:"profile_id"]" when calling CustomerPaymentInstrumentApi.delete_customer_payment_instrument, the character length must be smaller than or equal to 36.'
78
- end
79
-
80
- if @api_client.config.client_side_validation && !opts[:'profile_id'].nil? && opts[:'profile_id'].to_s.length < 36
81
- fail ArgumentError, 'invalid value for "opts[:"profile_id"]" when calling CustomerPaymentInstrumentApi.delete_customer_payment_instrument, the character length must be great than or equal to 36.'
82
- end
83
-
84
62
  # resource path
85
63
  local_var_path = 'tms/v2/customers/{customerId}/payment-instruments/{paymentInstrumentId}'.sub('{' + 'customerId' + '}', customer_id.to_s).sub('{' + 'paymentInstrumentId' + '}', payment_instrument_id.to_s)
86
64
 
@@ -123,11 +101,13 @@ module CyberSource
123
101
  end
124
102
  # Retrieve a Customer Payment Instrument
125
103
  # | | | | | --- | --- | --- | |**Customer Payment Instrument**<br>A Customer Payment Instrument represents tokenized customer payment information such as expiration date, billing address & card type.<br>A [Customer](#token-management_customer_create-a-customer) can have [one or more Payment Instruments](#token-management_customer-payment-instrument_retrieve-a-customer-payment-instrument), with one allocated as the Customers default for use in payments.<br>A Payment Instrument token does not store the card number. A Payment Instrument is associated with an [Instrument Identifier](#token-management_instrument-identifier_create-an-instrument-identifier) that represents either a payment card number, or in the case of an ACH bank account, the routing and account number.<br>|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|**Retrieving a Customer Payment Instrument**<br>Your system can use this API to retrieve an existing Payment Instrument for a Customer.<br>To perform a payment with a particular Payment Instrument simply specify the [Payment Instrument Id in the payments request](#payments_payments_process-a-payment_samplerequests-dropdown_authorization-using-tokens_authorization-with-customer-payment-instrument-and-shipping-address-token-id_liveconsole-tab-request-body).
104
+ #
126
105
  # @param customer_id The Id of a Customer.
127
106
  # @param payment_instrument_id The Id of a payment instrument.
128
107
  # @param [Hash] opts the optional parameters
129
108
  # @option opts [String] :profile_id The Id of a profile containing user specific TMS configuration.
130
109
  # @return [Tmsv2customersEmbeddedDefaultPaymentInstrument]
110
+ #
131
111
  def get_customer_payment_instrument(customer_id, payment_instrument_id, opts = {})
132
112
  data, status_code, headers = get_customer_payment_instrument_with_http_info(customer_id, payment_instrument_id, opts)
133
113
  return data, status_code, headers
@@ -154,34 +134,10 @@ module CyberSource
154
134
  if @api_client.config.client_side_validation && customer_id.nil?
155
135
  fail ArgumentError, "Missing the required parameter 'customer_id' when calling CustomerPaymentInstrumentApi.get_customer_payment_instrument"
156
136
  end
157
- if @api_client.config.client_side_validation && customer_id.to_s.length > 32
158
- fail ArgumentError, 'invalid value for "customer_id" when calling CustomerPaymentInstrumentApi.get_customer_payment_instrument, the character length must be smaller than or equal to 32.'
159
- end
160
-
161
- if @api_client.config.client_side_validation && customer_id.to_s.length < 1
162
- fail ArgumentError, 'invalid value for "customer_id" when calling CustomerPaymentInstrumentApi.get_customer_payment_instrument, the character length must be great than or equal to 1.'
163
- end
164
-
165
137
  # verify the required parameter 'payment_instrument_id' is set
166
138
  if @api_client.config.client_side_validation && payment_instrument_id.nil?
167
139
  fail ArgumentError, "Missing the required parameter 'payment_instrument_id' when calling CustomerPaymentInstrumentApi.get_customer_payment_instrument"
168
140
  end
169
- if @api_client.config.client_side_validation && payment_instrument_id.to_s.length > 32
170
- fail ArgumentError, 'invalid value for "payment_instrument_id" when calling CustomerPaymentInstrumentApi.get_customer_payment_instrument, the character length must be smaller than or equal to 32.'
171
- end
172
-
173
- if @api_client.config.client_side_validation && payment_instrument_id.to_s.length < 1
174
- fail ArgumentError, 'invalid value for "payment_instrument_id" when calling CustomerPaymentInstrumentApi.get_customer_payment_instrument, the character length must be great than or equal to 1.'
175
- end
176
-
177
- if @api_client.config.client_side_validation && !opts[:'profile_id'].nil? && opts[:'profile_id'].to_s.length > 36
178
- fail ArgumentError, 'invalid value for "opts[:"profile_id"]" when calling CustomerPaymentInstrumentApi.get_customer_payment_instrument, the character length must be smaller than or equal to 36.'
179
- end
180
-
181
- if @api_client.config.client_side_validation && !opts[:'profile_id'].nil? && opts[:'profile_id'].to_s.length < 36
182
- fail ArgumentError, 'invalid value for "opts[:"profile_id"]" when calling CustomerPaymentInstrumentApi.get_customer_payment_instrument, the character length must be great than or equal to 36.'
183
- end
184
-
185
141
  # resource path
186
142
  local_var_path = 'tms/v2/customers/{customerId}/payment-instruments/{paymentInstrumentId}'.sub('{' + 'customerId' + '}', customer_id.to_s).sub('{' + 'paymentInstrumentId' + '}', payment_instrument_id.to_s)
187
143
 
@@ -225,12 +181,14 @@ module CyberSource
225
181
  end
226
182
  # List Payment Instruments for a Customer
227
183
  # | | | | | --- | --- | --- | |**Customer Payment Instrument**<br>A Customer Payment Instrument represents tokenized customer payment information such as expiration date, billing address & card type.<br>A [Customer](#token-management_customer_create-a-customer) can have [one or more Payment Instruments](#token-management_customer-payment-instrument_retrieve-a-customer-payment-instrument), with one allocated as the Customers default for use in payments.<br>A Payment Instrument token does not store the card number. A Payment Instrument is associated with an [Instrument Identifier](#token-management_instrument-identifier_create-an-instrument-identifier) that represents either a payment card number, or in the case of an ACH bank account, the routing and account number.<br>|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|**Retrieving all Customer Payment Instruments**<br>Your system can use this API to retrieve all existing Payment Instruments for a Customer.
184
+ #
228
185
  # @param customer_id The Id of a Customer.
229
186
  # @param [Hash] opts the optional parameters
230
187
  # @option opts [String] :profile_id The Id of a profile containing user specific TMS configuration.
231
188
  # @option opts [Integer] :offset Starting record in zero-based dataset that should be returned as the first object in the array. Default is 0. (default to 0)
232
189
  # @option opts [Integer] :limit The maximum number that can be returned in the array starting from the offset record in zero-based dataset. Default is 20, maximum is 100. (default to 20)
233
190
  # @return [PaymentInstrumentList]
191
+ #
234
192
  def get_customer_payment_instruments_list(customer_id, opts = {})
235
193
  data, status_code, headers = get_customer_payment_instruments_list_with_http_info(customer_id, opts)
236
194
  return data, status_code, headers
@@ -258,34 +216,6 @@ module CyberSource
258
216
  if @api_client.config.client_side_validation && customer_id.nil?
259
217
  fail ArgumentError, "Missing the required parameter 'customer_id' when calling CustomerPaymentInstrumentApi.get_customer_payment_instruments_list"
260
218
  end
261
- if @api_client.config.client_side_validation && customer_id.to_s.length > 32
262
- fail ArgumentError, 'invalid value for "customer_id" when calling CustomerPaymentInstrumentApi.get_customer_payment_instruments_list, the character length must be smaller than or equal to 32.'
263
- end
264
-
265
- if @api_client.config.client_side_validation && customer_id.to_s.length < 1
266
- fail ArgumentError, 'invalid value for "customer_id" when calling CustomerPaymentInstrumentApi.get_customer_payment_instruments_list, the character length must be great than or equal to 1.'
267
- end
268
-
269
- if @api_client.config.client_side_validation && !opts[:'profile_id'].nil? && opts[:'profile_id'].to_s.length > 36
270
- fail ArgumentError, 'invalid value for "opts[:"profile_id"]" when calling CustomerPaymentInstrumentApi.get_customer_payment_instruments_list, the character length must be smaller than or equal to 36.'
271
- end
272
-
273
- if @api_client.config.client_side_validation && !opts[:'profile_id'].nil? && opts[:'profile_id'].to_s.length < 36
274
- fail ArgumentError, 'invalid value for "opts[:"profile_id"]" when calling CustomerPaymentInstrumentApi.get_customer_payment_instruments_list, the character length must be great than or equal to 36.'
275
- end
276
-
277
- if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0
278
- fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling CustomerPaymentInstrumentApi.get_customer_payment_instruments_list, must be greater than or equal to 0.'
279
- end
280
-
281
- if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 100
282
- fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CustomerPaymentInstrumentApi.get_customer_payment_instruments_list, must be smaller than or equal to 100.'
283
- end
284
-
285
- if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
286
- fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CustomerPaymentInstrumentApi.get_customer_payment_instruments_list, must be greater than or equal to 1.'
287
- end
288
-
289
219
  # resource path
290
220
  local_var_path = 'tms/v2/customers/{customerId}/payment-instruments'.sub('{' + 'customerId' + '}', customer_id.to_s)
291
221
 
@@ -331,6 +261,7 @@ module CyberSource
331
261
  end
332
262
  # Update a Customer Payment Instrument
333
263
  # | | | | | --- | --- | --- | |**Customer Payment Instrument**<br>A Customer Payment Instrument represents tokenized customer payment information such as expiration date, billing address & card type.<br>A [Customer](#token-management_customer_create-a-customer) can have [one or more Payment Instruments](#token-management_customer-payment-instrument_retrieve-a-customer-payment-instrument), with one allocated as the Customers default for use in payments.<br>A Payment Instrument token does not store the card number. A Payment Instrument is associated with an [Instrument Identifier](#token-management_instrument-identifier_create-an-instrument-identifier) that represents either a payment card number, or in the case of an ACH bank account, the routing and account number.<br>|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|**Updating a Customers Payment Instrument**<br>Your system can use this API to update an existing Payment Instrument for a Customer, including selecting a [default Payment Instrument](#token-management_customer-payment-instrument_update-a-customer-payment-instrument_samplerequests-dropdown_make-customer-payment-instrument-the-default_liveconsole-tab-request-body) for use in payments.
264
+ #
334
265
  # @param customer_id The Id of a Customer.
335
266
  # @param payment_instrument_id The Id of a payment instrument.
336
267
  # @param patch_customer_payment_instrument_request
@@ -338,6 +269,7 @@ module CyberSource
338
269
  # @option opts [String] :profile_id The Id of a profile containing user specific TMS configuration.
339
270
  # @option opts [String] :if_match Contains an ETag value from a GET request to make the request conditional.
340
271
  # @return [Tmsv2customersEmbeddedDefaultPaymentInstrument]
272
+ #
341
273
  def patch_customers_payment_instrument(customer_id, payment_instrument_id, patch_customer_payment_instrument_request, opts = {})
342
274
  data, status_code, headers = patch_customers_payment_instrument_with_http_info(customer_id, payment_instrument_id, patch_customer_payment_instrument_request, opts)
343
275
  return data, status_code, headers
@@ -366,46 +298,14 @@ module CyberSource
366
298
  if @api_client.config.client_side_validation && customer_id.nil?
367
299
  fail ArgumentError, "Missing the required parameter 'customer_id' when calling CustomerPaymentInstrumentApi.patch_customers_payment_instrument"
368
300
  end
369
- if @api_client.config.client_side_validation && customer_id.to_s.length > 32
370
- fail ArgumentError, 'invalid value for "customer_id" when calling CustomerPaymentInstrumentApi.patch_customers_payment_instrument, the character length must be smaller than or equal to 32.'
371
- end
372
-
373
- if @api_client.config.client_side_validation && customer_id.to_s.length < 1
374
- fail ArgumentError, 'invalid value for "customer_id" when calling CustomerPaymentInstrumentApi.patch_customers_payment_instrument, the character length must be great than or equal to 1.'
375
- end
376
-
377
301
  # verify the required parameter 'payment_instrument_id' is set
378
302
  if @api_client.config.client_side_validation && payment_instrument_id.nil?
379
303
  fail ArgumentError, "Missing the required parameter 'payment_instrument_id' when calling CustomerPaymentInstrumentApi.patch_customers_payment_instrument"
380
304
  end
381
- if @api_client.config.client_side_validation && payment_instrument_id.to_s.length > 32
382
- fail ArgumentError, 'invalid value for "payment_instrument_id" when calling CustomerPaymentInstrumentApi.patch_customers_payment_instrument, the character length must be smaller than or equal to 32.'
383
- end
384
-
385
- if @api_client.config.client_side_validation && payment_instrument_id.to_s.length < 1
386
- fail ArgumentError, 'invalid value for "payment_instrument_id" when calling CustomerPaymentInstrumentApi.patch_customers_payment_instrument, the character length must be great than or equal to 1.'
387
- end
388
-
389
305
  # verify the required parameter 'patch_customer_payment_instrument_request' is set
390
306
  if @api_client.config.client_side_validation && patch_customer_payment_instrument_request.nil?
391
307
  fail ArgumentError, "Missing the required parameter 'patch_customer_payment_instrument_request' when calling CustomerPaymentInstrumentApi.patch_customers_payment_instrument"
392
308
  end
393
- if @api_client.config.client_side_validation && !opts[:'profile_id'].nil? && opts[:'profile_id'].to_s.length > 36
394
- fail ArgumentError, 'invalid value for "opts[:"profile_id"]" when calling CustomerPaymentInstrumentApi.patch_customers_payment_instrument, the character length must be smaller than or equal to 36.'
395
- end
396
-
397
- if @api_client.config.client_side_validation && !opts[:'profile_id'].nil? && opts[:'profile_id'].to_s.length < 36
398
- fail ArgumentError, 'invalid value for "opts[:"profile_id"]" when calling CustomerPaymentInstrumentApi.patch_customers_payment_instrument, the character length must be great than or equal to 36.'
399
- end
400
-
401
- if @api_client.config.client_side_validation && !opts[:'if_match'].nil? && opts[:'if_match'].to_s.length > 32
402
- fail ArgumentError, 'invalid value for "opts[:"if_match"]" when calling CustomerPaymentInstrumentApi.patch_customers_payment_instrument, the character length must be smaller than or equal to 32.'
403
- end
404
-
405
- if @api_client.config.client_side_validation && !opts[:'if_match'].nil? && opts[:'if_match'].to_s.length < 1
406
- fail ArgumentError, 'invalid value for "opts[:"if_match"]" when calling CustomerPaymentInstrumentApi.patch_customers_payment_instrument, the character length must be great than or equal to 1.'
407
- end
408
-
409
309
  # resource path
410
310
  local_var_path = 'tms/v2/customers/{customerId}/payment-instruments/{paymentInstrumentId}'.sub('{' + 'customerId' + '}', customer_id.to_s).sub('{' + 'paymentInstrumentId' + '}', payment_instrument_id.to_s)
411
311
 
@@ -448,11 +348,13 @@ module CyberSource
448
348
  end
449
349
  # Create a Customer Payment Instrument
450
350
  # | | | | | --- | --- | --- | |**Customer Payment Instrument**<br>A Customer Payment Instrument represents tokenized customer payment information such as expiration date, billing address & card type.<br>A [Customer](#token-management_customer_create-a-customer) can have [one or more Payment Instruments](#token-management_customer-payment-instrument_retrieve-a-customer-payment-instrument), with one allocated as the Customers default for use in payments.<br>A Payment Instrument token does not store the card number. A Payment Instrument is associated with an [Instrument Identifier](#token-management_instrument-identifier_create-an-instrument-identifier) that represents either a payment card number, or in the case of an ACH bank account, the routing and account number.<br><br>**Creating a Customer Payment Instrument**<br>It is recommended you [create a Customer Payment Instrument via a Payment Authorization](#payments_payments_process-a-payment_samplerequests-dropdown_authorization-with-token-create_authorization-create-default-payment-instrument-shipping-address-for-existing-customer_liveconsole-tab-request-body), this can be for a zero amount.<br>In Europe: You should perform Payer Authentication alongside the Authorization.|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|**Payment Network Tokens**<br>Network tokens perform better than regular card numbers and they are not necessarily invalidated when a cardholder loses their card, or it expires.<br>A Payment Network Token will be automatically created and used in future payments if you are enabled for the service.<br>A Payment Network Token can also be [provisioned for an existing Instrument Identifier](#token-management_instrument-identifier_enroll-an-instrument-identifier-for-payment-network-token).<br>For more information about Payment Network Tokens see the Developer Guide.<br><br>**Payments with Customers Payment Instrument**<br>To perform a payment with a particular Payment Instrument or Shipping Address specify the [Payment Instrument in the payment request](#payments_payments_process-a-payment_samplerequests-dropdown_authorization-using-tokens_authorization-with-customer-payment-instrument-and-shipping-address-token-id_liveconsole-tab-request-body).
351
+ #
451
352
  # @param customer_id The Id of a Customer.
452
353
  # @param post_customer_payment_instrument_request
453
354
  # @param [Hash] opts the optional parameters
454
355
  # @option opts [String] :profile_id The Id of a profile containing user specific TMS configuration.
455
356
  # @return [Tmsv2customersEmbeddedDefaultPaymentInstrument]
357
+ #
456
358
  def post_customer_payment_instrument(customer_id, post_customer_payment_instrument_request, opts = {})
457
359
  data, status_code, headers = post_customer_payment_instrument_with_http_info(customer_id, post_customer_payment_instrument_request, opts)
458
360
  return data, status_code, headers
@@ -479,26 +381,10 @@ module CyberSource
479
381
  if @api_client.config.client_side_validation && customer_id.nil?
480
382
  fail ArgumentError, "Missing the required parameter 'customer_id' when calling CustomerPaymentInstrumentApi.post_customer_payment_instrument"
481
383
  end
482
- if @api_client.config.client_side_validation && customer_id.to_s.length > 32
483
- fail ArgumentError, 'invalid value for "customer_id" when calling CustomerPaymentInstrumentApi.post_customer_payment_instrument, the character length must be smaller than or equal to 32.'
484
- end
485
-
486
- if @api_client.config.client_side_validation && customer_id.to_s.length < 1
487
- fail ArgumentError, 'invalid value for "customer_id" when calling CustomerPaymentInstrumentApi.post_customer_payment_instrument, the character length must be great than or equal to 1.'
488
- end
489
-
490
384
  # verify the required parameter 'post_customer_payment_instrument_request' is set
491
385
  if @api_client.config.client_side_validation && post_customer_payment_instrument_request.nil?
492
386
  fail ArgumentError, "Missing the required parameter 'post_customer_payment_instrument_request' when calling CustomerPaymentInstrumentApi.post_customer_payment_instrument"
493
387
  end
494
- if @api_client.config.client_side_validation && !opts[:'profile_id'].nil? && opts[:'profile_id'].to_s.length > 36
495
- fail ArgumentError, 'invalid value for "opts[:"profile_id"]" when calling CustomerPaymentInstrumentApi.post_customer_payment_instrument, the character length must be smaller than or equal to 36.'
496
- end
497
-
498
- if @api_client.config.client_side_validation && !opts[:'profile_id'].nil? && opts[:'profile_id'].to_s.length < 36
499
- fail ArgumentError, 'invalid value for "opts[:"profile_id"]" when calling CustomerPaymentInstrumentApi.post_customer_payment_instrument, the character length must be great than or equal to 36.'
500
- end
501
-
502
388
  # resource path
503
389
  local_var_path = 'tms/v2/customers/{customerId}/payment-instruments'.sub('{' + 'customerId' + '}', customer_id.to_s)
504
390