cybersource_rest_client 0.0.48 → 0.0.50

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 (352) hide show
  1. checksums.yaml +4 -4
  2. data/lib/AuthenticationSDK/core/MerchantConfig.rb +5 -0
  3. data/lib/AuthenticationSDK/util/Constants.rb +2 -0
  4. data/lib/cybersource_rest_client/api/batches_api.rb +330 -0
  5. data/lib/cybersource_rest_client/api/customer_api.rb +55 -47
  6. data/lib/cybersource_rest_client/api/customer_payment_instrument_api.rb +112 -104
  7. data/lib/cybersource_rest_client/api/customer_shipping_address_api.rb +112 -104
  8. data/lib/cybersource_rest_client/api/instrument_identifier_api.rb +93 -81
  9. data/lib/cybersource_rest_client/api/keymanagement_api.rb +3 -3
  10. data/lib/cybersource_rest_client/api/microform_integration_api.rb +89 -0
  11. data/lib/cybersource_rest_client/api/payment_instrument_api.rb +55 -49
  12. data/lib/cybersource_rest_client/api/payments_api.rb +71 -0
  13. data/lib/cybersource_rest_client/api/plans_api.rb +573 -0
  14. data/lib/cybersource_rest_client/api/push_funds_api.rb +131 -0
  15. data/lib/cybersource_rest_client/api/subscriptions_api.rb +568 -0
  16. data/lib/cybersource_rest_client/api/taxes_api.rb +2 -2
  17. data/lib/cybersource_rest_client/api/token_api.rb +112 -0
  18. data/lib/cybersource_rest_client/api/transient_token_data_api.rb +2 -2
  19. data/lib/cybersource_rest_client/api/unified_checkout_capture_context_api.rb +6 -5
  20. data/lib/cybersource_rest_client/api_client.rb +11 -0
  21. data/lib/cybersource_rest_client/models/{pts_v2_payments_post201_response_risk_information_providers.rb → accountupdaterv1batches_included.rb} +9 -9
  22. data/lib/cybersource_rest_client/models/accountupdaterv1batches_included_tokens.rb +228 -0
  23. data/lib/cybersource_rest_client/models/body.rb +42 -32
  24. data/lib/cybersource_rest_client/models/create_plan_request.rb +201 -0
  25. data/lib/cybersource_rest_client/models/create_report_subscription_request.rb +0 -18
  26. data/lib/cybersource_rest_client/models/{flexv1tokens_card_info.rb → create_subscription_request.rb} +44 -40
  27. data/lib/cybersource_rest_client/models/{pts_v2_payments_post201_response_risk_information_providers_provider_name.rb → generate_capture_context_request.rb} +36 -17
  28. data/lib/cybersource_rest_client/models/generate_unified_checkout_capture_context_request.rb +1 -1
  29. data/lib/cybersource_rest_client/models/inline_response_200.rb +19 -41
  30. data/lib/cybersource_rest_client/models/inline_response_200_1.rb +227 -0
  31. data/lib/cybersource_rest_client/models/inline_response_200_10.rb +200 -0
  32. data/lib/cybersource_rest_client/models/inline_response_200_11.rb +236 -0
  33. data/lib/cybersource_rest_client/models/{inline_response_200_keys.rb → inline_response_200_11_keys.rb} +1 -1
  34. data/lib/cybersource_rest_client/models/inline_response_200_12.rb +239 -0
  35. data/lib/cybersource_rest_client/models/inline_response_200_12__embedded.rb +185 -0
  36. data/lib/cybersource_rest_client/models/inline_response_200_12__embedded__links.rb +185 -0
  37. data/lib/cybersource_rest_client/models/inline_response_200_12__embedded__links_reports.rb +184 -0
  38. data/lib/cybersource_rest_client/models/inline_response_200_12__embedded_batches.rb +280 -0
  39. data/lib/cybersource_rest_client/models/inline_response_200_12__embedded_totals.rb +219 -0
  40. data/lib/cybersource_rest_client/models/inline_response_200_12__links.rb +193 -0
  41. data/lib/cybersource_rest_client/models/inline_response_200_13.rb +275 -0
  42. data/lib/cybersource_rest_client/models/inline_response_200_13__links.rb +194 -0
  43. data/lib/cybersource_rest_client/models/inline_response_200_13__links_report.rb +183 -0
  44. data/lib/cybersource_rest_client/models/{tokenize_request.rb → inline_response_200_13_billing.rb} +32 -20
  45. data/lib/cybersource_rest_client/models/inline_response_200_14.rb +277 -0
  46. data/lib/cybersource_rest_client/models/inline_response_200_14_records.rb +201 -0
  47. data/lib/cybersource_rest_client/models/inline_response_200_14_response_record.rb +292 -0
  48. data/lib/cybersource_rest_client/models/inline_response_200_14_response_record_additional_updates.rb +232 -0
  49. data/lib/cybersource_rest_client/models/inline_response_200_14_source_record.rb +282 -0
  50. data/lib/cybersource_rest_client/models/inline_response_200_2.rb +194 -0
  51. data/lib/cybersource_rest_client/models/inline_response_200_3.rb +228 -0
  52. data/lib/cybersource_rest_client/models/inline_response_200_3_plan_information.rb +200 -0
  53. data/lib/cybersource_rest_client/models/inline_response_200_4.rb +228 -0
  54. data/lib/cybersource_rest_client/models/inline_response_200_5.rb +200 -0
  55. data/lib/cybersource_rest_client/models/inline_response_200_6.rb +214 -0
  56. data/lib/cybersource_rest_client/models/inline_response_200_6__links.rb +210 -0
  57. data/lib/cybersource_rest_client/models/inline_response_200_6_order_information.rb +192 -0
  58. data/lib/cybersource_rest_client/models/inline_response_200_6_order_information_bill_to.rb +206 -0
  59. data/lib/cybersource_rest_client/models/inline_response_200_6_payment_information.rb +183 -0
  60. data/lib/cybersource_rest_client/models/inline_response_200_6_payment_information_customer.rb +190 -0
  61. data/lib/cybersource_rest_client/models/inline_response_200_6_plan_information.rb +224 -0
  62. data/lib/cybersource_rest_client/models/inline_response_200_6_plan_information_billing_cycles.rb +194 -0
  63. data/lib/cybersource_rest_client/models/inline_response_200_6_subscription_information.rb +242 -0
  64. data/lib/cybersource_rest_client/models/inline_response_200_6_subscriptions.rb +236 -0
  65. data/lib/cybersource_rest_client/models/inline_response_200_7.rb +245 -0
  66. data/lib/cybersource_rest_client/models/inline_response_200_8.rb +228 -0
  67. data/lib/cybersource_rest_client/models/inline_response_200_9.rb +228 -0
  68. data/lib/cybersource_rest_client/models/inline_response_200_9_subscription_information.rb +200 -0
  69. data/lib/cybersource_rest_client/models/{flex_v1_keys_post200_response.rb → inline_response_200__links.rb} +20 -21
  70. data/lib/cybersource_rest_client/models/inline_response_200_order_information.rb +183 -0
  71. data/lib/cybersource_rest_client/models/inline_response_200_order_information_amount_details.rb +222 -0
  72. data/lib/cybersource_rest_client/models/inline_response_200_plan_information.rb +250 -0
  73. data/lib/cybersource_rest_client/models/inline_response_200_plan_information_billing_cycles.rb +184 -0
  74. data/lib/cybersource_rest_client/models/inline_response_200_plan_information_billing_period.rb +195 -0
  75. data/lib/cybersource_rest_client/models/inline_response_200_plans.rb +218 -0
  76. data/lib/cybersource_rest_client/models/inline_response_201.rb +228 -0
  77. data/lib/cybersource_rest_client/models/inline_response_201_1.rb +228 -0
  78. data/lib/cybersource_rest_client/models/{invoicing_v2_invoices_all_get200_response__links_1.rb → inline_response_201_1__links.rb} +23 -14
  79. data/lib/cybersource_rest_client/models/inline_response_201_1_subscription_information.rb +200 -0
  80. data/lib/cybersource_rest_client/models/inline_response_201_plan_information.rb +200 -0
  81. data/lib/cybersource_rest_client/models/inline_response_202.rb +228 -0
  82. data/lib/cybersource_rest_client/models/inline_response_202_1.rb +228 -0
  83. data/lib/cybersource_rest_client/models/inline_response_202_1_subscription_information.rb +200 -0
  84. data/lib/cybersource_rest_client/models/inline_response_202_2.rb +202 -0
  85. data/lib/cybersource_rest_client/models/inline_response_202_2__links.rb +194 -0
  86. data/lib/cybersource_rest_client/models/inline_response_202_2__links_status.rb +183 -0
  87. data/lib/cybersource_rest_client/models/inline_response_202_subscription_information.rb +200 -0
  88. data/lib/cybersource_rest_client/models/inline_response_400_1.rb +33 -55
  89. data/lib/cybersource_rest_client/models/inline_response_400_2.rb +10 -9
  90. data/lib/cybersource_rest_client/models/inline_response_400_3.rb +55 -33
  91. data/lib/cybersource_rest_client/models/{inline_response_400_1_fields.rb → inline_response_400_3_fields.rb} +1 -1
  92. data/lib/cybersource_rest_client/models/inline_response_400_4.rb +30 -71
  93. data/lib/cybersource_rest_client/models/inline_response_400_5.rb +225 -0
  94. data/lib/cybersource_rest_client/models/inline_response_400_6.rb +265 -0
  95. data/lib/cybersource_rest_client/models/{inline_response_400_4_details.rb → inline_response_400_6_details.rb} +1 -1
  96. data/lib/cybersource_rest_client/models/inline_response_400_errors.rb +2 -2
  97. data/lib/cybersource_rest_client/models/inline_response_401.rb +241 -0
  98. data/lib/cybersource_rest_client/models/inline_response_401__links.rb +183 -0
  99. data/lib/cybersource_rest_client/models/inline_response_401__links_self.rb +183 -0
  100. data/lib/cybersource_rest_client/models/inline_response_401_fields.rb +202 -0
  101. data/lib/cybersource_rest_client/models/inline_response_403.rb +185 -0
  102. data/lib/cybersource_rest_client/models/inline_response_403_errors.rb +194 -0
  103. data/lib/cybersource_rest_client/models/inline_response_404.rb +194 -0
  104. data/lib/cybersource_rest_client/models/inline_response_409.rb +185 -0
  105. data/lib/cybersource_rest_client/models/inline_response_409_errors.rb +194 -0
  106. data/lib/cybersource_rest_client/models/inline_response_410.rb +185 -0
  107. data/lib/cybersource_rest_client/models/inline_response_410_errors.rb +194 -0
  108. data/lib/cybersource_rest_client/models/inline_response_412.rb +185 -0
  109. data/lib/cybersource_rest_client/models/inline_response_412_errors.rb +194 -0
  110. data/lib/cybersource_rest_client/models/inline_response_424.rb +185 -0
  111. data/lib/cybersource_rest_client/models/inline_response_424_errors.rb +194 -0
  112. data/lib/cybersource_rest_client/models/inline_response_500.rb +9 -38
  113. data/lib/cybersource_rest_client/models/inline_response_500_1.rb +214 -0
  114. data/lib/cybersource_rest_client/models/inline_response_500_errors.rb +194 -0
  115. data/lib/cybersource_rest_client/models/invoicing_v2_invoices_all_get200_response.rb +1 -1
  116. data/lib/cybersource_rest_client/models/invoicing_v2_invoices_all_get200_response__links.rb +22 -13
  117. data/lib/cybersource_rest_client/models/invoicing_v2_invoices_all_get200_response_invoices.rb +1 -1
  118. data/lib/cybersource_rest_client/models/invoicing_v2_invoices_get200_response.rb +1 -1
  119. data/lib/cybersource_rest_client/models/invoicing_v2_invoices_post201_response.rb +1 -1
  120. data/lib/cybersource_rest_client/models/invoicingv2invoices_order_information_amount_details_tax_details.rb +2 -2
  121. data/lib/cybersource_rest_client/models/invoicingv2invoices_order_information_line_items.rb +0 -18
  122. data/lib/cybersource_rest_client/models/{flex_v1_tokens_post200_response.rb → microformv2sessions_checkout_api_initialization.rb} +68 -59
  123. data/lib/cybersource_rest_client/models/patch_customer_payment_instrument_request.rb +15 -5
  124. data/lib/cybersource_rest_client/models/patch_customer_request.rb +1 -1
  125. data/lib/cybersource_rest_client/models/patch_customer_shipping_address_request.rb +2 -2
  126. data/lib/cybersource_rest_client/models/patch_instrument_identifier_request.rb +4 -4
  127. data/lib/cybersource_rest_client/models/patch_payment_instrument_request.rb +15 -5
  128. data/lib/cybersource_rest_client/models/post_customer_payment_instrument_request.rb +15 -5
  129. data/lib/cybersource_rest_client/models/post_customer_request.rb +1 -1
  130. data/lib/cybersource_rest_client/models/post_customer_shipping_address_request.rb +2 -2
  131. data/lib/cybersource_rest_client/models/post_instrument_identifier_enrollment_request.rb +4 -4
  132. data/lib/cybersource_rest_client/models/post_instrument_identifier_request.rb +4 -4
  133. data/lib/cybersource_rest_client/models/post_payment_instrument_request.rb +15 -5
  134. data/lib/cybersource_rest_client/models/predefined_subscription_request_bean.rb +0 -18
  135. data/lib/cybersource_rest_client/models/pts_v2_incremental_authorization_patch400_response.rb +1 -1
  136. data/lib/cybersource_rest_client/models/pts_v2_payments_captures_post400_response.rb +1 -1
  137. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_1.rb +262 -0
  138. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_1_order_information.rb +192 -0
  139. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_1_order_information_bill_to.rb +344 -0
  140. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_1_order_information_ship_to.rb +318 -0
  141. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_1_payment_information.rb +201 -0
  142. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_1_payment_information_bank.rb +183 -0
  143. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_1_payment_information_bank_account.rb +184 -0
  144. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_1_payment_information_payment_type.rb +183 -0
  145. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_1_payment_information_payment_type_method.rb +184 -0
  146. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_1_processor_information.rb +238 -0
  147. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_1_processor_information_avs.rb +190 -0
  148. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_1_processor_information_seller_protection.rb +184 -0
  149. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_installment_information.rb +0 -18
  150. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_order_information_invoice_details.rb +0 -9
  151. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_account_information_card.rb +1 -1
  152. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information_tokenized_card.rb +1 -1
  153. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information.rb +22 -4
  154. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_risk_information.rb +5 -2
  155. data/lib/cybersource_rest_client/models/pts_v2_payments_post400_response.rb +1 -1
  156. data/lib/cybersource_rest_client/models/pts_v2_payments_refund_post201_response.rb +1 -1
  157. data/lib/cybersource_rest_client/models/pts_v2_payments_refund_post201_response_client_reference_information.rb +226 -0
  158. data/lib/cybersource_rest_client/models/pts_v2_payments_refund_post201_response_refund_amount_details.rb +17 -1
  159. data/lib/cybersource_rest_client/models/pts_v2_payments_refund_post400_response.rb +1 -1
  160. data/lib/cybersource_rest_client/models/pts_v2_payments_reversals_post400_response.rb +1 -1
  161. data/lib/cybersource_rest_client/models/pts_v2_payments_voids_post400_response.rb +1 -1
  162. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_aggregator_information.rb +215 -0
  163. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_aggregator_information_sub_merchant.rb +318 -0
  164. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_client_reference_information.rb +238 -0
  165. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_merchant_defined_information.rb +206 -0
  166. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_merchant_information.rb +225 -0
  167. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_merchant_information_merchant_descriptor.rb +270 -0
  168. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_order_information.rb +208 -0
  169. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_order_information_amount_details.rb +224 -0
  170. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_order_information_surcharge.rb +190 -0
  171. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_point_of_service_information.rb +236 -0
  172. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_processing_information.rb +297 -0
  173. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_processing_information_payouts_options.rb +206 -0
  174. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_processing_information_recurring_options.rb +184 -0
  175. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_processing_options.rb +183 -0
  176. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_processing_options_funding_options.rb +183 -0
  177. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_processing_options_funding_options_initiator.rb +190 -0
  178. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_recipient_information.rb +384 -0
  179. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_recipient_information_payment_information.rb +183 -0
  180. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_recipient_information_payment_information_card.rb +281 -0
  181. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_recipient_information_payment_information_card_customer.rb +190 -0
  182. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_recipient_information_payment_information_card_instrument_identifier.rb +190 -0
  183. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_recipient_information_payment_information_card_payment_instrument.rb +190 -0
  184. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_recipient_information_personal_identification.rb +206 -0
  185. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_sender_information.rb +425 -0
  186. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_sender_information_account.rb +206 -0
  187. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_sender_information_payment_information.rb +183 -0
  188. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_sender_information_payment_information_card.rb +270 -0
  189. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_sender_information_personal_identification.rb +222 -0
  190. data/lib/cybersource_rest_client/models/ptsv2payments_device_information.rb +11 -1
  191. data/lib/cybersource_rest_client/models/ptsv2payments_installment_information.rb +0 -18
  192. data/lib/cybersource_rest_client/models/ptsv2payments_merchant_information.rb +17 -19
  193. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_amount_details_tax_details.rb +2 -2
  194. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_bill_to.rb +30 -4
  195. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_invoice_details.rb +0 -9
  196. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_line_items.rb +1 -19
  197. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_ship_to.rb +1 -1
  198. data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_bank.rb +20 -4
  199. data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_card.rb +1 -1
  200. data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_payment_type.rb +2 -12
  201. data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_payment_type_method.rb +15 -5
  202. data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_tokenized_card.rb +1 -1
  203. data/lib/cybersource_rest_client/models/ptsv2payments_point_of_sale_information.rb +12 -47
  204. data/lib/cybersource_rest_client/models/ptsv2payments_processing_information.rb +12 -2
  205. data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_capture_options.rb +0 -36
  206. data/lib/cybersource_rest_client/models/ptsv2payments_travel_information_lodging.rb +0 -36
  207. data/lib/cybersource_rest_client/models/ptsv2payments_travel_information_lodging_room.rb +0 -18
  208. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_buyer_information.rb +63 -4
  209. data/lib/cybersource_rest_client/models/{generate_public_key_request.rb → ptsv2paymentsidcaptures_buyer_information_personal_identification.rb} +15 -24
  210. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_installment_information.rb +0 -18
  211. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_merchant_information.rb +0 -9
  212. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_order_information_bill_to.rb +65 -1
  213. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_order_information_ship_to.rb +1 -1
  214. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_processing_information_capture_options.rb +0 -36
  215. data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_client_reference_information.rb +297 -0
  216. data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_merchant_information.rb +0 -9
  217. data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_order_information_line_items.rb +1 -19
  218. data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_payment_information.rb +2 -2
  219. data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_payment_information_bank.rb +14 -4
  220. data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_payment_information_card.rb +37 -5
  221. data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_payment_information_e_wallet.rb +190 -0
  222. data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_payment_information_payment_type.rb +203 -0
  223. data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_payment_information_payment_type_method.rb +184 -0
  224. data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_processing_information.rb +35 -4
  225. data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_processing_information_refund_options.rb +184 -0
  226. data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_order_information_line_items.rb +0 -18
  227. data/lib/cybersource_rest_client/models/ptsv2paymentsidvoids_payment_information.rb +1 -1
  228. data/lib/cybersource_rest_client/models/ptsv2payouts_merchant_information.rb +0 -9
  229. data/lib/cybersource_rest_client/models/ptsv2payouts_payment_information_card.rb +1 -1
  230. data/lib/cybersource_rest_client/models/ptsv2refreshpaymentstatusid_agreement_information.rb +184 -0
  231. data/lib/cybersource_rest_client/models/ptsv2refreshpaymentstatusid_client_reference_information.rb +206 -0
  232. data/lib/cybersource_rest_client/models/ptsv2refreshpaymentstatusid_payment_information.rb +192 -0
  233. data/lib/cybersource_rest_client/models/{tss_v2_transactions_post201_response__embedded_payment_information_customer.rb → ptsv2refreshpaymentstatusid_payment_information_customer.rb} +1 -1
  234. data/lib/cybersource_rest_client/models/ptsv2refreshpaymentstatusid_payment_information_payment_type.rb +193 -0
  235. data/lib/cybersource_rest_client/models/ptsv2refreshpaymentstatusid_processing_information.rb +186 -0
  236. data/lib/cybersource_rest_client/models/push_funds201_response.rb +301 -0
  237. data/lib/cybersource_rest_client/models/push_funds201_response__links.rb +210 -0
  238. data/lib/cybersource_rest_client/models/push_funds201_response__links_customer.rb +195 -0
  239. data/lib/cybersource_rest_client/models/push_funds201_response__links_instrument_identifier.rb +195 -0
  240. data/lib/cybersource_rest_client/models/push_funds201_response__links_payment_instrument.rb +195 -0
  241. data/lib/cybersource_rest_client/models/push_funds201_response__links_self.rb +195 -0
  242. data/lib/cybersource_rest_client/models/{flex_v1_keys_post200_response_jwk.rb → push_funds201_response_client_reference_information.rb} +28 -47
  243. data/lib/cybersource_rest_client/models/push_funds201_response_error_information.rb +217 -0
  244. data/lib/cybersource_rest_client/models/push_funds201_response_error_information_details.rb +206 -0
  245. data/lib/cybersource_rest_client/models/push_funds201_response_merchant_information.rb +183 -0
  246. data/lib/cybersource_rest_client/models/push_funds201_response_merchant_information_merchant_descriptor.rb +222 -0
  247. data/lib/cybersource_rest_client/models/push_funds201_response_order_information.rb +183 -0
  248. data/lib/cybersource_rest_client/models/push_funds201_response_order_information_amount_details.rb +247 -0
  249. data/lib/cybersource_rest_client/models/push_funds201_response_processor_information.rb +264 -0
  250. data/lib/cybersource_rest_client/models/push_funds201_response_recipient_information.rb +183 -0
  251. data/lib/cybersource_rest_client/models/push_funds201_response_recipient_information_card.rb +206 -0
  252. data/lib/cybersource_rest_client/models/push_funds400_response.rb +247 -0
  253. data/lib/cybersource_rest_client/models/push_funds400_response_details.rb +194 -0
  254. data/lib/cybersource_rest_client/models/push_funds401_response.rb +226 -0
  255. data/lib/cybersource_rest_client/models/push_funds404_response.rb +226 -0
  256. data/lib/cybersource_rest_client/models/push_funds502_response.rb +236 -0
  257. data/lib/cybersource_rest_client/models/push_funds_request.rb +264 -0
  258. data/lib/cybersource_rest_client/models/rbsv1plans_client_reference_information.rb +229 -0
  259. data/lib/cybersource_rest_client/models/rbsv1plans_order_information.rb +183 -0
  260. data/lib/cybersource_rest_client/models/rbsv1plans_order_information_amount_details.rb +240 -0
  261. data/lib/cybersource_rest_client/models/rbsv1plans_plan_information.rb +259 -0
  262. data/lib/cybersource_rest_client/models/rbsv1plans_plan_information_billing_cycles.rb +185 -0
  263. data/lib/cybersource_rest_client/models/rbsv1plansid_plan_information.rb +250 -0
  264. data/lib/cybersource_rest_client/models/rbsv1plansid_processing_information.rb +183 -0
  265. data/lib/cybersource_rest_client/models/rbsv1plansid_processing_information_subscription_billing_options.rb +184 -0
  266. data/lib/cybersource_rest_client/models/rbsv1subscriptions_client_reference_information.rb +245 -0
  267. data/lib/cybersource_rest_client/models/rbsv1subscriptions_payment_information.rb +183 -0
  268. data/lib/cybersource_rest_client/models/rbsv1subscriptions_payment_information_customer.rb +199 -0
  269. data/lib/cybersource_rest_client/models/rbsv1subscriptions_plan_information.rb +192 -0
  270. data/lib/cybersource_rest_client/models/rbsv1subscriptions_processing_information.rb +199 -0
  271. data/lib/cybersource_rest_client/models/rbsv1subscriptions_processing_information_authorization_options.rb +183 -0
  272. data/lib/cybersource_rest_client/models/rbsv1subscriptions_processing_information_authorization_options_initiator.rb +184 -0
  273. data/lib/cybersource_rest_client/models/rbsv1subscriptions_subscription_information.rb +246 -0
  274. data/lib/cybersource_rest_client/models/rbsv1subscriptionsid_order_information.rb +183 -0
  275. data/lib/cybersource_rest_client/models/rbsv1subscriptionsid_order_information_amount_details.rb +206 -0
  276. data/lib/cybersource_rest_client/models/rbsv1subscriptionsid_plan_information.rb +183 -0
  277. data/lib/cybersource_rest_client/models/rbsv1subscriptionsid_subscription_information.rb +232 -0
  278. data/lib/cybersource_rest_client/models/refresh_payment_status_request.rb +210 -0
  279. data/lib/cybersource_rest_client/models/refund_capture_request.rb +1 -1
  280. data/lib/cybersource_rest_client/models/refund_payment_request.rb +1 -1
  281. data/lib/cybersource_rest_client/models/risk_v1_decisions_post201_response_consumer_authentication_information.rb +88 -4
  282. data/lib/cybersource_rest_client/models/risk_v1_export_compliance_inquiries_post201_response_export_compliance_information.rb +0 -18
  283. data/lib/cybersource_rest_client/models/riskv1addressverifications_order_information_line_items.rb +1 -19
  284. data/lib/cybersource_rest_client/models/riskv1addressverifications_order_information_ship_to.rb +1 -1
  285. data/lib/cybersource_rest_client/models/riskv1authenticationresults_consumer_authentication_information.rb +20 -4
  286. data/lib/cybersource_rest_client/models/riskv1authenticationresults_order_information_line_items.rb +0 -18
  287. data/lib/cybersource_rest_client/models/riskv1authenticationresults_payment_information_card.rb +1 -1
  288. data/lib/cybersource_rest_client/models/riskv1authenticationresults_payment_information_tokenized_card.rb +1 -1
  289. data/lib/cybersource_rest_client/models/riskv1authentications_buyer_information.rb +14 -4
  290. data/lib/cybersource_rest_client/models/riskv1authentications_order_information_bill_to.rb +17 -1
  291. data/lib/cybersource_rest_client/models/riskv1authentications_order_information_line_items.rb +152 -22
  292. data/lib/cybersource_rest_client/models/riskv1authentications_payment_information_card.rb +1 -1
  293. data/lib/cybersource_rest_client/models/riskv1authentications_payment_information_tokenized_card.rb +1 -1
  294. data/lib/cybersource_rest_client/models/riskv1authenticationsetups_payment_information_card.rb +1 -1
  295. data/lib/cybersource_rest_client/models/riskv1authenticationsetups_payment_information_tokenized_card.rb +1 -1
  296. data/lib/cybersource_rest_client/models/riskv1decisions_consumer_authentication_information.rb +14 -4
  297. data/lib/cybersource_rest_client/models/riskv1decisions_order_information_line_items.rb +1 -19
  298. data/lib/cybersource_rest_client/models/riskv1decisions_order_information_ship_to.rb +34 -2
  299. data/lib/cybersource_rest_client/models/riskv1decisions_payment_information_card.rb +1 -1
  300. data/lib/cybersource_rest_client/models/riskv1decisions_payment_information_tokenized_card.rb +1 -1
  301. data/lib/cybersource_rest_client/models/riskv1exportcomplianceinquiries_order_information_line_items.rb +1 -19
  302. data/lib/cybersource_rest_client/models/riskv1liststypeentries_order_information_ship_to.rb +1 -1
  303. data/lib/cybersource_rest_client/models/riskv1liststypeentries_payment_information_card.rb +1 -1
  304. data/lib/cybersource_rest_client/models/tms_v2_customers_response.rb +1 -1
  305. data/lib/cybersource_rest_client/models/tmsv2customers__embedded.rb +1 -1
  306. data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument.rb +15 -5
  307. data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument__embedded.rb +1 -1
  308. data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument__embedded_instrument_identifier.rb +4 -4
  309. data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument__embedded_instrument_identifier_bill_to.rb +1 -1
  310. data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument__embedded_instrument_identifier_card.rb +3 -3
  311. data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument__embedded_instrument_identifier_metadata.rb +1 -1
  312. data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument_bank_account.rb +1 -1
  313. data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument_buyer_information_personal_identification.rb +1 -1
  314. data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument_card.rb +22 -4
  315. data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument_card_tokenized_information.rb +1 -1
  316. data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument_instrument_identifier.rb +1 -1
  317. data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument_merchant_information_merchant_descriptor.rb +1 -1
  318. data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument_metadata.rb +1 -1
  319. data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument_processing_information.rb +1 -1
  320. data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument_processing_information_bank_transfer_options.rb +1 -1
  321. data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_shipping_address.rb +2 -2
  322. data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_shipping_address_metadata.rb +1 -1
  323. data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_shipping_address_ship_to.rb +1 -1
  324. data/lib/cybersource_rest_client/models/tmsv2customers__embedded_merchant_initiated_transaction.rb +20 -4
  325. data/lib/cybersource_rest_client/models/tmsv2customers__embedded_tokenized_card.rb +15 -5
  326. data/lib/cybersource_rest_client/models/tmsv2customers__embedded_tokenized_card_card.rb +1 -1
  327. data/lib/cybersource_rest_client/models/tmsv2customers_default_payment_instrument.rb +1 -1
  328. data/lib/cybersource_rest_client/models/tmsv2customers_default_shipping_address.rb +1 -1
  329. data/lib/cybersource_rest_client/models/tmsv2customers_merchant_defined_information.rb +2 -2
  330. data/lib/cybersource_rest_client/models/tmsv2customers_metadata.rb +1 -1
  331. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_order_information_invoice_details.rb +0 -9
  332. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_order_information_line_items.rb +0 -18
  333. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_card.rb +1 -1
  334. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_payment_type.rb +1 -1
  335. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_point_of_sale_information.rb +0 -18
  336. data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_payment_information.rb +1 -1
  337. data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_payment_information_card.rb +1 -1
  338. data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_point_of_sale_information.rb +13 -4
  339. data/lib/cybersource_rest_client/models/ums_v1_users_get200_response_users.rb +15 -4
  340. data/lib/cybersource_rest_client/models/{flex_v1_keys_post200_response_der.rb → update_plan_request.rb} +20 -24
  341. data/lib/cybersource_rest_client/models/update_subscription.rb +219 -0
  342. data/lib/cybersource_rest_client/models/vas_v2_payments_post201_response_tax_information.rb +2 -2
  343. data/lib/cybersource_rest_client/models/vas_v2_payments_post400_response.rb +1 -1
  344. data/lib/cybersource_rest_client/models/vasv2tax_order_information_line_items.rb +1 -19
  345. data/lib/cybersource_rest_client/models/vasv2tax_order_information_order_acceptance.rb +5 -5
  346. data/lib/cybersource_rest_client/models/vasv2tax_order_information_order_origin.rb +5 -5
  347. data/lib/cybersource_rest_client/models/vasv2tax_order_information_ship_to.rb +1 -1
  348. data/lib/cybersource_rest_client/models/vasv2tax_tax_information.rb +3 -3
  349. data/lib/cybersource_rest_client.rb +189 -16
  350. metadata +191 -18
  351. data/lib/cybersource_rest_client/api/key_generation_api.rb +0 -96
  352. data/lib/cybersource_rest_client/api/tokenization_api.rb +0 -89
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ae3f8196cbbdd30fe85c9f0aa71b0e3e5ef445db059bb34eeb2017c7d52e396c
4
- data.tar.gz: 6a78ec9b9d605586871749ba391b51ff0df6ec04253281f39ad787cfbb7bccaf
3
+ metadata.gz: b7e401e44fe02ff210acad48913fb8e434c024f0274e1c325b69c8f49692de96
4
+ data.tar.gz: 9dda987001ed8216d14e1e139e1f31889f19dbc9ba329af48dd47172e6512434
5
5
  SHA512:
6
- metadata.gz: c245093d3223982617f582df35e412b1841dfa8e46f3195412c2225836844bb012337c2ee8c1e6789cb269eaa4d06f9dae16df02a388da772ca223007cfde79c
7
- data.tar.gz: ea5906bbaa0570dfcd8f31b2b45724a75ea31c7a8a9583edc7457a6abecb9f0ecf00935f4fc641524522d1916e281a48b60cb8d0ebf4654f3b5ef3a9b02cc1dd
6
+ metadata.gz: 905b94eaaa550331d3df557685a9cbf09be9cdb46bb823508b35d4797c870933dfa34cee95ddfaf1ad528c262b070704ba51affb0b62d3a96e4023cfd6438629
7
+ data.tar.gz: 6eefbba3bd42fadae429d1333ed786ed231002c1a8919f4b36ee89792db9d57bcb523af9e5c3a02841da9ec44fa84a9f25d72e2e7e5b16bda341d405e4199294
@@ -10,6 +10,7 @@ public
10
10
  # Common Parameters
11
11
  @merchantId = cybsPropertyObj['merchantID']
12
12
  @runEnvironment = cybsPropertyObj['runEnvironment']
13
+ @intermediateHost = cybsPropertyObj['intermediateHost']
13
14
  @authenticationType = cybsPropertyObj['authenticationType']
14
15
  @proxyAddress = cybsPropertyObj['proxyAddress']
15
16
  @proxyPort = cybsPropertyObj['proxyPort']
@@ -40,6 +41,8 @@ public
40
41
  @refreshToken = cybsPropertyObj['refreshToken']
41
42
  # LogConfiguration
42
43
  @log_config = LogConfiguration.new(cybsPropertyObj['logConfiguration'])
44
+ # Custom Default Headers
45
+ @defaultCustomHeaders = cybsPropertyObj['defaultCustomHeaders']
43
46
  validateMerchantDetails()
44
47
  logAllProperties(cybsPropertyObj)
45
48
  end
@@ -240,6 +243,7 @@ public
240
243
  attr_accessor :authenticationType
241
244
  attr_accessor :keysDirectory
242
245
  attr_accessor :requestHost
246
+ attr_accessor :intermediateHost
243
247
  attr_accessor :keyAlias
244
248
  attr_accessor :keyPass
245
249
  attr_accessor :keyFilename
@@ -265,4 +269,5 @@ public
265
269
  attr_accessor :requestTarget
266
270
  attr_accessor :log_obj
267
271
  attr_accessor :solutionId
272
+ attr_accessor :defaultCustomHeaders
268
273
  end
@@ -34,6 +34,8 @@
34
34
 
35
35
  HTTPS_URI_PREFIX = 'https://' unless const_defined?(:HTTPS_URI_PREFIX)
36
36
 
37
+ HTTP_URI_PREFIX = 'http://' unless const_defined?(:HTTP_URI_PREFIX)
38
+
37
39
  BEARER = 'Bearer' unless const_defined?(:BEARER)
38
40
 
39
41
  MEDIA_TYPE_JSON = 'application/json' unless const_defined?(:MEDIA_TYPE_JSON)
@@ -0,0 +1,330 @@
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.2.3
10
+
11
+ =end
12
+
13
+ require 'uri'
14
+
15
+ module CyberSource
16
+ class BatchesApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default, config)
20
+ @api_client = api_client
21
+ @api_client.set_configuration(config)
22
+ end
23
+ # Retrieve a Batch Report
24
+ # **Get Batch Report**<br>This resource accepts a batch id and returns: - The batch status. - The total number of accepted, rejected, updated records. - The total number of card association responses. - The billable quantities of: - New Account Numbers (NAN) - New Expiry Dates (NED) - Account Closures (ACL) - Contact Card Holders (CCH) - Source record information including token ids, masked card number, expiration dates & card type. - Response record information including response code, reason, token ids, masked card number, expiration dates & card type.
25
+ # @param batch_id Unique identification number assigned to the submitted request.
26
+ # @param [Hash] opts the optional parameters
27
+ # @return [InlineResponse20014]
28
+ def get_batch_report(batch_id, opts = {})
29
+ data, status_code, headers = get_batch_report_with_http_info(batch_id, opts)
30
+ return data, status_code, headers
31
+ end
32
+
33
+ # Retrieve a Batch Report
34
+ # **Get Batch Report**&lt;br&gt;This resource accepts a batch id and returns: - The batch status. - The total number of accepted, rejected, updated records. - The total number of card association responses. - The billable quantities of: - New Account Numbers (NAN) - New Expiry Dates (NED) - Account Closures (ACL) - Contact Card Holders (CCH) - Source record information including token ids, masked card number, expiration dates &amp; card type. - Response record information including response code, reason, token ids, masked card number, expiration dates &amp; card type.
35
+ # @param batch_id Unique identification number assigned to the submitted request.
36
+ # @param [Hash] opts the optional parameters
37
+ # @return [Array<(InlineResponse20014, Fixnum, Hash)>] InlineResponse20014 data, response status code and response headers
38
+ def get_batch_report_with_http_info(batch_id, opts = {})
39
+
40
+ if @api_client.config.debugging
41
+ begin
42
+ raise
43
+ @api_client.config.logger.debug 'Calling API: BatchesApi.get_batch_report ...'
44
+ rescue
45
+ puts 'Cannot write to log'
46
+ end
47
+ end
48
+ # verify the required parameter 'batch_id' is set
49
+ if @api_client.config.client_side_validation && batch_id.nil?
50
+ fail ArgumentError, "Missing the required parameter 'batch_id' when calling BatchesApi.get_batch_report"
51
+ end
52
+ if @api_client.config.client_side_validation && batch_id > 32
53
+ fail ArgumentError, 'invalid value for "batch_id" when calling BatchesApi.get_batch_report, must be smaller than or equal to 32.'
54
+ end
55
+
56
+ if @api_client.config.client_side_validation && batch_id < 16
57
+ fail ArgumentError, 'invalid value for "batch_id" when calling BatchesApi.get_batch_report, must be greater than or equal to 16.'
58
+ end
59
+
60
+ # resource path
61
+ local_var_path = 'accountupdater/v1/batches/{batchId}/report'.sub('{' + 'batchId' + '}', batch_id.to_s)
62
+
63
+ # query parameters
64
+ query_params = {}
65
+
66
+ # header parameters
67
+ header_params = {}
68
+ # HTTP header 'Accept' (if needed)
69
+ header_params['Accept'] = @api_client.select_header_accept(['application/json;charset=utf-8'])
70
+ # HTTP header 'Content-Type'
71
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json;charset=utf-8'])
72
+
73
+ # form parameters
74
+ form_params = {}
75
+
76
+ # http body (model)
77
+ if 'GET' == 'POST'
78
+ post_body = '{}'
79
+ else
80
+ post_body = nil
81
+ end
82
+ auth_names = []
83
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
84
+ :header_params => header_params,
85
+ :query_params => query_params,
86
+ :form_params => form_params,
87
+ :body => post_body,
88
+ :auth_names => auth_names,
89
+ :return_type => 'InlineResponse20014')
90
+ if @api_client.config.debugging
91
+ begin
92
+ raise
93
+ @api_client.config.logger.debug "API called: BatchesApi#get_batch_report\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
94
+ rescue
95
+ puts 'Cannot write to log'
96
+ end
97
+ end
98
+ return data, status_code, headers
99
+ end
100
+ # Retrieve a Batch Status
101
+ # **Get Batch Status**<br>This resource accepts a batch id and returns: - The batch status. - The total number of accepted, rejected, updated records. - The total number of card association responses. - The billable quantities of: - New Account Numbers (NAN) - New Expiry Dates (NED) - Account Closures (ACL) - Contact Card Holders (CCH)
102
+ # @param batch_id Unique identification number assigned to the submitted request.
103
+ # @param [Hash] opts the optional parameters
104
+ # @return [InlineResponse20013]
105
+ def get_batch_status(batch_id, opts = {})
106
+ data, status_code, headers = get_batch_status_with_http_info(batch_id, opts)
107
+ return data, status_code, headers
108
+ end
109
+
110
+ # Retrieve a Batch Status
111
+ # **Get Batch Status**&lt;br&gt;This resource accepts a batch id and returns: - The batch status. - The total number of accepted, rejected, updated records. - The total number of card association responses. - The billable quantities of: - New Account Numbers (NAN) - New Expiry Dates (NED) - Account Closures (ACL) - Contact Card Holders (CCH)
112
+ # @param batch_id Unique identification number assigned to the submitted request.
113
+ # @param [Hash] opts the optional parameters
114
+ # @return [Array<(InlineResponse20013, Fixnum, Hash)>] InlineResponse20013 data, response status code and response headers
115
+ def get_batch_status_with_http_info(batch_id, opts = {})
116
+
117
+ if @api_client.config.debugging
118
+ begin
119
+ raise
120
+ @api_client.config.logger.debug 'Calling API: BatchesApi.get_batch_status ...'
121
+ rescue
122
+ puts 'Cannot write to log'
123
+ end
124
+ end
125
+ # verify the required parameter 'batch_id' is set
126
+ if @api_client.config.client_side_validation && batch_id.nil?
127
+ fail ArgumentError, "Missing the required parameter 'batch_id' when calling BatchesApi.get_batch_status"
128
+ end
129
+ if @api_client.config.client_side_validation && batch_id > 32
130
+ fail ArgumentError, 'invalid value for "batch_id" when calling BatchesApi.get_batch_status, must be smaller than or equal to 32.'
131
+ end
132
+
133
+ if @api_client.config.client_side_validation && batch_id < 16
134
+ fail ArgumentError, 'invalid value for "batch_id" when calling BatchesApi.get_batch_status, must be greater than or equal to 16.'
135
+ end
136
+
137
+ # resource path
138
+ local_var_path = 'accountupdater/v1/batches/{batchId}/status'.sub('{' + 'batchId' + '}', batch_id.to_s)
139
+
140
+ # query parameters
141
+ query_params = {}
142
+
143
+ # header parameters
144
+ header_params = {}
145
+ # HTTP header 'Accept' (if needed)
146
+ header_params['Accept'] = @api_client.select_header_accept(['application/json;charset=utf-8'])
147
+ # HTTP header 'Content-Type'
148
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json;charset=utf-8'])
149
+
150
+ # form parameters
151
+ form_params = {}
152
+
153
+ # http body (model)
154
+ if 'GET' == 'POST'
155
+ post_body = '{}'
156
+ else
157
+ post_body = nil
158
+ end
159
+ auth_names = []
160
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
161
+ :header_params => header_params,
162
+ :query_params => query_params,
163
+ :form_params => form_params,
164
+ :body => post_body,
165
+ :auth_names => auth_names,
166
+ :return_type => 'InlineResponse20013')
167
+ if @api_client.config.debugging
168
+ begin
169
+ raise
170
+ @api_client.config.logger.debug "API called: BatchesApi#get_batch_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
171
+ rescue
172
+ puts 'Cannot write to log'
173
+ end
174
+ end
175
+ return data, status_code, headers
176
+ end
177
+ # List Batches
178
+ # **List Batches**<br>This resource accepts a optional date range, record offset and limit, returning a paginated response of batches containing: - The batch id. - The batch status. - The batch created / modified dates. - The total number of accepted, rejected, updated records. - The total number of card association responses.
179
+ # @param [Hash] opts the optional parameters
180
+ # @option opts [Integer] :offset Starting record in zero-based dataset that should be returned as the first object in the array. (default to 0)
181
+ # @option opts [Integer] :limit The maximum number that can be returned in the array starting from the offset record in zero-based dataset. (default to 20)
182
+ # @option opts [String] :from_date ISO-8601 format: yyyyMMddTHHmmssZ
183
+ # @option opts [String] :to_date ISO-8601 format: yyyyMMddTHHmmssZ
184
+ # @return [InlineResponse20012]
185
+ def get_batches_list(opts = {})
186
+ data, status_code, headers = get_batches_list_with_http_info(opts)
187
+ return data, status_code, headers
188
+ end
189
+
190
+ # List Batches
191
+ # **List Batches**&lt;br&gt;This resource accepts a optional date range, record offset and limit, returning a paginated response of batches containing: - The batch id. - The batch status. - The batch created / modified dates. - The total number of accepted, rejected, updated records. - The total number of card association responses.
192
+ # @param [Hash] opts the optional parameters
193
+ # @option opts [Integer] :offset Starting record in zero-based dataset that should be returned as the first object in the array.
194
+ # @option opts [Integer] :limit The maximum number that can be returned in the array starting from the offset record in zero-based dataset.
195
+ # @option opts [String] :from_date ISO-8601 format: yyyyMMddTHHmmssZ
196
+ # @option opts [String] :to_date ISO-8601 format: yyyyMMddTHHmmssZ
197
+ # @return [Array<(InlineResponse20012, Fixnum, Hash)>] InlineResponse20012 data, response status code and response headers
198
+ def get_batches_list_with_http_info(opts = {})
199
+
200
+ if @api_client.config.debugging
201
+ begin
202
+ raise
203
+ @api_client.config.logger.debug 'Calling API: BatchesApi.get_batches_list ...'
204
+ rescue
205
+ puts 'Cannot write to log'
206
+ end
207
+ end
208
+ if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0
209
+ fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling BatchesApi.get_batches_list, must be greater than or equal to 0.'
210
+ end
211
+
212
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
213
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling BatchesApi.get_batches_list, must be smaller than or equal to 500.'
214
+ end
215
+
216
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
217
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling BatchesApi.get_batches_list, must be greater than or equal to 1.'
218
+ end
219
+
220
+ # resource path
221
+ local_var_path = 'accountupdater/v1/batches'
222
+
223
+ # query parameters
224
+ query_params = {}
225
+ query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
226
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
227
+ query_params[:'fromDate'] = opts[:'from_date'] if !opts[:'from_date'].nil?
228
+ query_params[:'toDate'] = opts[:'to_date'] if !opts[:'to_date'].nil?
229
+
230
+ # header parameters
231
+ header_params = {}
232
+ # HTTP header 'Accept' (if needed)
233
+ header_params['Accept'] = @api_client.select_header_accept(['application/json;charset=utf-8'])
234
+ # HTTP header 'Content-Type'
235
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json;charset=utf-8'])
236
+
237
+ # form parameters
238
+ form_params = {}
239
+
240
+ # http body (model)
241
+ if 'GET' == 'POST'
242
+ post_body = '{}'
243
+ else
244
+ post_body = nil
245
+ end
246
+ auth_names = []
247
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
248
+ :header_params => header_params,
249
+ :query_params => query_params,
250
+ :form_params => form_params,
251
+ :body => post_body,
252
+ :auth_names => auth_names,
253
+ :return_type => 'InlineResponse20012')
254
+ if @api_client.config.debugging
255
+ begin
256
+ raise
257
+ @api_client.config.logger.debug "API called: BatchesApi#get_batches_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
258
+ rescue
259
+ puts 'Cannot write to log'
260
+ end
261
+ end
262
+ return data, status_code, headers
263
+ end
264
+ # Create a Batch
265
+ # **Create a Batch**<br>This resource accepts TMS tokens ids of a Customer, Payment Instrument or Instrument Identifier. <br> The card numbers for the supplied tokens ids are then sent to the relevant card associations to check for updates.<br>The following type of batches can be submitted: - **oneOff** batch containing tokens id for Visa or MasterCard card numbers. - **amexRegistration** batch containing tokens id for Amex card numbers. A batch id will be returned on a successful response which can be used to get the batch status and the batch report.
266
+ # @param body
267
+ # @param [Hash] opts the optional parameters
268
+ # @return [InlineResponse2022]
269
+ def post_batch(body, opts = {})
270
+ data, status_code, headers = post_batch_with_http_info(body, opts)
271
+ return data, status_code, headers
272
+ end
273
+
274
+ # Create a Batch
275
+ # **Create a Batch**&lt;br&gt;This resource accepts TMS tokens ids of a Customer, Payment Instrument or Instrument Identifier. &lt;br&gt; The card numbers for the supplied tokens ids are then sent to the relevant card associations to check for updates.&lt;br&gt;The following type of batches can be submitted: - **oneOff** batch containing tokens id for Visa or MasterCard card numbers. - **amexRegistration** batch containing tokens id for Amex card numbers. A batch id will be returned on a successful response which can be used to get the batch status and the batch report.
276
+ # @param body
277
+ # @param [Hash] opts the optional parameters
278
+ # @return [Array<(InlineResponse2022, Fixnum, Hash)>] InlineResponse2022 data, response status code and response headers
279
+ def post_batch_with_http_info(body, opts = {})
280
+
281
+ if @api_client.config.debugging
282
+ begin
283
+ raise
284
+ @api_client.config.logger.debug 'Calling API: BatchesApi.post_batch ...'
285
+ rescue
286
+ puts 'Cannot write to log'
287
+ end
288
+ end
289
+ # verify the required parameter 'body' is set
290
+ if @api_client.config.client_side_validation && body.nil?
291
+ fail ArgumentError, "Missing the required parameter 'body' when calling BatchesApi.post_batch"
292
+ end
293
+ # resource path
294
+ local_var_path = 'accountupdater/v1/batches'
295
+
296
+ # query parameters
297
+ query_params = {}
298
+
299
+ # header parameters
300
+ header_params = {}
301
+ # HTTP header 'Accept' (if needed)
302
+ header_params['Accept'] = @api_client.select_header_accept(['application/json;charset=utf-8'])
303
+ # HTTP header 'Content-Type'
304
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json;charset=utf-8'])
305
+
306
+ # form parameters
307
+ form_params = {}
308
+
309
+ # http body (model)
310
+ post_body = @api_client.object_to_http_body(body)
311
+ auth_names = []
312
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
313
+ :header_params => header_params,
314
+ :query_params => query_params,
315
+ :form_params => form_params,
316
+ :body => post_body,
317
+ :auth_names => auth_names,
318
+ :return_type => 'InlineResponse2022')
319
+ if @api_client.config.debugging
320
+ begin
321
+ raise
322
+ @api_client.config.logger.debug "API called: BatchesApi#post_batch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
323
+ rescue
324
+ puts 'Cannot write to log'
325
+ end
326
+ end
327
+ return data, status_code, headers
328
+ end
329
+ end
330
+ end
@@ -21,21 +21,23 @@ module CyberSource
21
21
  @api_client.set_configuration(config)
22
22
  end
23
23
  # Delete a Customer
24
- # @param customer_token_id The TokenId of a customer.
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
+ # @param customer_id The Id of a Customer.
25
26
  # @param [Hash] opts the optional parameters
26
- # @option opts [String] :profile_id The id of a profile containing user specific TMS configuration.
27
+ # @option opts [String] :profile_id The Id of a profile containing user specific TMS configuration.
27
28
  # @return [nil]
28
- def delete_customer(customer_token_id, opts = {})
29
- data, status_code, headers = delete_customer_with_http_info(customer_token_id, opts)
29
+ def delete_customer(customer_id, opts = {})
30
+ data, status_code, headers = delete_customer_with_http_info(customer_id, opts)
30
31
  return data, status_code, headers
31
32
  end
32
33
 
33
34
  # Delete a Customer
34
- # @param customer_token_id The TokenId of a customer.
35
+ # | | | | | --- | --- | --- | |**Customers**&lt;br&gt;A Customer represents your tokenized customer information.&lt;br&gt;You should associate the Customer Id with the customer account on your systems.&lt;br&gt;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.|&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;|**Deleting a Customer**&lt;br&gt;Your system can use this API to delete a complete Customer.&lt;br&gt;When a Customer is deleted all associated Payment Instruments &amp; Shipping Addresses are deleted.&lt;br&gt;Any Instrument Identifiers representing the card number will also be deleted if they are not associated with any other Payment Instruments.&lt;br&gt;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.
36
+ # @param customer_id The Id of a Customer.
35
37
  # @param [Hash] opts the optional parameters
36
- # @option opts [String] :profile_id The id of a profile containing user specific TMS configuration.
38
+ # @option opts [String] :profile_id The Id of a profile containing user specific TMS configuration.
37
39
  # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
38
- def delete_customer_with_http_info(customer_token_id, opts = {})
40
+ def delete_customer_with_http_info(customer_id, opts = {})
39
41
 
40
42
  if @api_client.config.debugging
41
43
  begin
@@ -45,16 +47,16 @@ module CyberSource
45
47
  puts 'Cannot write to log'
46
48
  end
47
49
  end
48
- # verify the required parameter 'customer_token_id' is set
49
- if @api_client.config.client_side_validation && customer_token_id.nil?
50
- fail ArgumentError, "Missing the required parameter 'customer_token_id' when calling CustomerApi.delete_customer"
50
+ # verify the required parameter 'customer_id' is set
51
+ if @api_client.config.client_side_validation && customer_id.nil?
52
+ fail ArgumentError, "Missing the required parameter 'customer_id' when calling CustomerApi.delete_customer"
51
53
  end
52
- if @api_client.config.client_side_validation && customer_token_id.to_s.length > 32
53
- fail ArgumentError, 'invalid value for "customer_token_id" when calling CustomerApi.delete_customer, the character length must be smaller than or equal to 32.'
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.'
54
56
  end
55
57
 
56
- if @api_client.config.client_side_validation && customer_token_id.to_s.length < 1
57
- fail ArgumentError, 'invalid value for "customer_token_id" when calling CustomerApi.delete_customer, the character length must be great than or equal to 1.'
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.'
58
60
  end
59
61
 
60
62
  if @api_client.config.client_side_validation && !opts[:'profile_id'].nil? && opts[:'profile_id'].to_s.length > 36
@@ -66,7 +68,7 @@ module CyberSource
66
68
  end
67
69
 
68
70
  # resource path
69
- local_var_path = 'tms/v2/customers/{customerTokenId}'.sub('{' + 'customerTokenId' + '}', customer_token_id.to_s)
71
+ local_var_path = 'tms/v2/customers/{customerId}'.sub('{' + 'customerId' + '}', customer_id.to_s)
70
72
 
71
73
  # query parameters
72
74
  query_params = {}
@@ -106,21 +108,23 @@ module CyberSource
106
108
  return data, status_code, headers
107
109
  end
108
110
  # Retrieve a Customer
109
- # @param customer_token_id The TokenId of a customer.
111
+ # | | | | | --- | --- | --- | |**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).
112
+ # @param customer_id The Id of a Customer.
110
113
  # @param [Hash] opts the optional parameters
111
- # @option opts [String] :profile_id The id of a profile containing user specific TMS configuration.
114
+ # @option opts [String] :profile_id The Id of a profile containing user specific TMS configuration.
112
115
  # @return [TmsV2CustomersResponse]
113
- def get_customer(customer_token_id, opts = {})
114
- data, status_code, headers = get_customer_with_http_info(customer_token_id, opts)
116
+ def get_customer(customer_id, opts = {})
117
+ data, status_code, headers = get_customer_with_http_info(customer_id, opts)
115
118
  return data, status_code, headers
116
119
  end
117
120
 
118
121
  # Retrieve a Customer
119
- # @param customer_token_id The TokenId of a customer.
122
+ # | | | | | --- | --- | --- | |**Customers**&lt;br&gt;A Customer represents your tokenized customer information.&lt;br&gt;You should associate the Customer Id with the customer account on your systems.&lt;br&gt;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.&lt;br&gt;&lt;br&gt;**Retrieving a Customer**&lt;br&gt;When your customer signs into their account, your system can use this API to retrieve the Customers default Payment Instrument and Shipping Address.&lt;br&gt;**Note: the actual card data will be masked.**&lt;br&gt;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.&lt;br&gt;The same applies to [Shipping Addresses](#token-management_customer-shipping-address_list-shipping-addresses-for-a-customer).|&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;|**Payment Network Tokens**&lt;br&gt;Network tokens perform better than regular card numbers and they are not necessarily invalidated when a cardholder loses their card, or it expires.&lt;br&gt;A Payment Network Token will be automatically created and used in future payments if you are enabled for the service.&lt;br&gt;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).&lt;br&gt;For more information about Payment Network Tokens see the Developer Guide.&lt;br&gt;&lt;br&gt;**Payments with Customers**&lt;br&gt;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).&lt;br&gt;To perform a payment with a particular Payment Instrument or Shipping Address &lt;br&gt;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).
123
+ # @param customer_id The Id of a Customer.
120
124
  # @param [Hash] opts the optional parameters
121
- # @option opts [String] :profile_id The id of a profile containing user specific TMS configuration.
125
+ # @option opts [String] :profile_id The Id of a profile containing user specific TMS configuration.
122
126
  # @return [Array<(TmsV2CustomersResponse, Fixnum, Hash)>] TmsV2CustomersResponse data, response status code and response headers
123
- def get_customer_with_http_info(customer_token_id, opts = {})
127
+ def get_customer_with_http_info(customer_id, opts = {})
124
128
 
125
129
  if @api_client.config.debugging
126
130
  begin
@@ -130,16 +134,16 @@ module CyberSource
130
134
  puts 'Cannot write to log'
131
135
  end
132
136
  end
133
- # verify the required parameter 'customer_token_id' is set
134
- if @api_client.config.client_side_validation && customer_token_id.nil?
135
- fail ArgumentError, "Missing the required parameter 'customer_token_id' when calling CustomerApi.get_customer"
137
+ # verify the required parameter 'customer_id' is set
138
+ if @api_client.config.client_side_validation && customer_id.nil?
139
+ fail ArgumentError, "Missing the required parameter 'customer_id' when calling CustomerApi.get_customer"
136
140
  end
137
- if @api_client.config.client_side_validation && customer_token_id.to_s.length > 32
138
- fail ArgumentError, 'invalid value for "customer_token_id" when calling CustomerApi.get_customer, the character length must be smaller than or equal to 32.'
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.'
139
143
  end
140
144
 
141
- if @api_client.config.client_side_validation && customer_token_id.to_s.length < 1
142
- fail ArgumentError, 'invalid value for "customer_token_id" when calling CustomerApi.get_customer, the character length must be great than or equal to 1.'
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.'
143
147
  end
144
148
 
145
149
  if @api_client.config.client_side_validation && !opts[:'profile_id'].nil? && opts[:'profile_id'].to_s.length > 36
@@ -151,7 +155,7 @@ module CyberSource
151
155
  end
152
156
 
153
157
  # resource path
154
- local_var_path = 'tms/v2/customers/{customerTokenId}'.sub('{' + 'customerTokenId' + '}', customer_token_id.to_s)
158
+ local_var_path = 'tms/v2/customers/{customerId}'.sub('{' + 'customerId' + '}', customer_id.to_s)
155
159
 
156
160
  # query parameters
157
161
  query_params = {}
@@ -192,25 +196,27 @@ module CyberSource
192
196
  return data, status_code, headers
193
197
  end
194
198
  # Update a Customer
195
- # @param customer_token_id The TokenId of a customer.
199
+ # | | | | | --- | --- | --- | |**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.
200
+ # @param customer_id The Id of a Customer.
196
201
  # @param patch_customer_request
197
202
  # @param [Hash] opts the optional parameters
198
- # @option opts [String] :profile_id The id of a profile containing user specific TMS configuration.
203
+ # @option opts [String] :profile_id The Id of a profile containing user specific TMS configuration.
199
204
  # @option opts [String] :if_match Contains an ETag value from a GET request to make the request conditional.
200
205
  # @return [TmsV2CustomersResponse]
201
- def patch_customer(customer_token_id, patch_customer_request, opts = {})
202
- data, status_code, headers = patch_customer_with_http_info(customer_token_id, patch_customer_request, opts)
206
+ def patch_customer(customer_id, patch_customer_request, opts = {})
207
+ data, status_code, headers = patch_customer_with_http_info(customer_id, patch_customer_request, opts)
203
208
  return data, status_code, headers
204
209
  end
205
210
 
206
211
  # Update a Customer
207
- # @param customer_token_id The TokenId of a customer.
212
+ # | | | | | --- | --- | --- | |**Customers**&lt;br&gt;A Customer represents your tokenized customer information.&lt;br&gt;You should associate the Customer Id with the customer account on your systems.&lt;br&gt;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.|&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;|**Updating a Customer**&lt;br&gt;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.&lt;br&gt;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.
213
+ # @param customer_id The Id of a Customer.
208
214
  # @param patch_customer_request
209
215
  # @param [Hash] opts the optional parameters
210
- # @option opts [String] :profile_id The id of a profile containing user specific TMS configuration.
216
+ # @option opts [String] :profile_id The Id of a profile containing user specific TMS configuration.
211
217
  # @option opts [String] :if_match Contains an ETag value from a GET request to make the request conditional.
212
218
  # @return [Array<(TmsV2CustomersResponse, Fixnum, Hash)>] TmsV2CustomersResponse data, response status code and response headers
213
- def patch_customer_with_http_info(customer_token_id, patch_customer_request, opts = {})
219
+ def patch_customer_with_http_info(customer_id, patch_customer_request, opts = {})
214
220
 
215
221
  if @api_client.config.debugging
216
222
  begin
@@ -220,16 +226,16 @@ module CyberSource
220
226
  puts 'Cannot write to log'
221
227
  end
222
228
  end
223
- # verify the required parameter 'customer_token_id' is set
224
- if @api_client.config.client_side_validation && customer_token_id.nil?
225
- fail ArgumentError, "Missing the required parameter 'customer_token_id' when calling CustomerApi.patch_customer"
229
+ # verify the required parameter 'customer_id' is set
230
+ if @api_client.config.client_side_validation && customer_id.nil?
231
+ fail ArgumentError, "Missing the required parameter 'customer_id' when calling CustomerApi.patch_customer"
226
232
  end
227
- if @api_client.config.client_side_validation && customer_token_id.to_s.length > 32
228
- fail ArgumentError, 'invalid value for "customer_token_id" when calling CustomerApi.patch_customer, the character length must be smaller than or equal to 32.'
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.'
229
235
  end
230
236
 
231
- if @api_client.config.client_side_validation && customer_token_id.to_s.length < 1
232
- fail ArgumentError, 'invalid value for "customer_token_id" when calling CustomerApi.patch_customer, the character length must be great than or equal to 1.'
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.'
233
239
  end
234
240
 
235
241
  # verify the required parameter 'patch_customer_request' is set
@@ -253,7 +259,7 @@ module CyberSource
253
259
  end
254
260
 
255
261
  # resource path
256
- local_var_path = 'tms/v2/customers/{customerTokenId}'.sub('{' + 'customerTokenId' + '}', customer_token_id.to_s)
262
+ local_var_path = 'tms/v2/customers/{customerId}'.sub('{' + 'customerId' + '}', customer_id.to_s)
257
263
 
258
264
  # query parameters
259
265
  query_params = {}
@@ -291,9 +297,10 @@ module CyberSource
291
297
  return data, status_code, headers
292
298
  end
293
299
  # Create a Customer
300
+ # | | | | | --- | --- | --- | |**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).
294
301
  # @param post_customer_request
295
302
  # @param [Hash] opts the optional parameters
296
- # @option opts [String] :profile_id The id of a profile containing user specific TMS configuration.
303
+ # @option opts [String] :profile_id The Id of a profile containing user specific TMS configuration.
297
304
  # @return [TmsV2CustomersResponse]
298
305
  def post_customer(post_customer_request, opts = {})
299
306
  data, status_code, headers = post_customer_with_http_info(post_customer_request, opts)
@@ -301,9 +308,10 @@ module CyberSource
301
308
  end
302
309
 
303
310
  # Create a Customer
311
+ # | | | | | --- | --- | --- | |**Customers**&lt;br&gt;A Customer represents your tokenized customer information.&lt;br&gt;You should associate the Customer Id with the customer account on your systems.&lt;br&gt;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.&lt;br&gt;&lt;br&gt;**Creating a Customer**&lt;br&gt;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.&lt;br&gt;The Customer will be created with a Payment Instrument and Shipping Address.&lt;br&gt;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).&lt;br&gt;In Europe: You should perform Payer Authentication alongside the Authorization.|&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;|**Payment Network Tokens**&lt;br&gt;Network tokens perform better than regular card numbers and they are not necessarily invalidated when a cardholder loses their card, or it expires.&lt;br&gt;A Payment Network Token will be automatically created and used in future payments if you are enabled for the service.&lt;br&gt;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).&lt;br&gt;For more information about Payment Network Tokens see the Developer Guide.&lt;br&gt;&lt;br&gt;**Payments with Customers**&lt;br&gt;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).&lt;br&gt;To perform a payment with a particular Payment Instrument or Shipping Address &lt;br&gt;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).
304
312
  # @param post_customer_request
305
313
  # @param [Hash] opts the optional parameters
306
- # @option opts [String] :profile_id The id of a profile containing user specific TMS configuration.
314
+ # @option opts [String] :profile_id The Id of a profile containing user specific TMS configuration.
307
315
  # @return [Array<(TmsV2CustomersResponse, Fixnum, Hash)>] TmsV2CustomersResponse data, response status code and response headers
308
316
  def post_customer_with_http_info(post_customer_request, opts = {})
309
317