cybersource_rest_client 0.0.49 → 0.0.50

Sign up to get free protection for your applications and to get access to all the features.
Files changed (254) 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/plans_api.rb +573 -0
  13. data/lib/cybersource_rest_client/api/subscriptions_api.rb +568 -0
  14. data/lib/cybersource_rest_client/api/taxes_api.rb +2 -2
  15. data/lib/cybersource_rest_client/api/token_api.rb +112 -0
  16. data/lib/cybersource_rest_client/api/transient_token_data_api.rb +2 -2
  17. data/lib/cybersource_rest_client/api/unified_checkout_capture_context_api.rb +6 -5
  18. data/lib/cybersource_rest_client/api_client.rb +11 -0
  19. data/lib/cybersource_rest_client/models/accountupdaterv1batches_included.rb +185 -0
  20. data/lib/cybersource_rest_client/models/accountupdaterv1batches_included_tokens.rb +228 -0
  21. data/lib/cybersource_rest_client/models/body.rb +42 -32
  22. data/lib/cybersource_rest_client/models/create_plan_request.rb +201 -0
  23. data/lib/cybersource_rest_client/models/create_report_subscription_request.rb +0 -18
  24. data/lib/cybersource_rest_client/models/{flexv1tokens_card_info.rb → create_subscription_request.rb} +44 -40
  25. data/lib/cybersource_rest_client/models/generate_capture_context_request.rb +216 -0
  26. data/lib/cybersource_rest_client/models/generate_unified_checkout_capture_context_request.rb +1 -1
  27. data/lib/cybersource_rest_client/models/inline_response_200.rb +19 -41
  28. data/lib/cybersource_rest_client/models/inline_response_200_1.rb +227 -0
  29. data/lib/cybersource_rest_client/models/inline_response_200_10.rb +200 -0
  30. data/lib/cybersource_rest_client/models/inline_response_200_11.rb +236 -0
  31. data/lib/cybersource_rest_client/models/{inline_response_200_keys.rb → inline_response_200_11_keys.rb} +1 -1
  32. data/lib/cybersource_rest_client/models/inline_response_200_12.rb +239 -0
  33. data/lib/cybersource_rest_client/models/inline_response_200_12__embedded.rb +185 -0
  34. data/lib/cybersource_rest_client/models/inline_response_200_12__embedded__links.rb +185 -0
  35. data/lib/cybersource_rest_client/models/inline_response_200_12__embedded__links_reports.rb +184 -0
  36. data/lib/cybersource_rest_client/models/inline_response_200_12__embedded_batches.rb +280 -0
  37. data/lib/cybersource_rest_client/models/inline_response_200_12__embedded_totals.rb +219 -0
  38. data/lib/cybersource_rest_client/models/inline_response_200_12__links.rb +193 -0
  39. data/lib/cybersource_rest_client/models/inline_response_200_13.rb +275 -0
  40. data/lib/cybersource_rest_client/models/inline_response_200_13__links.rb +194 -0
  41. data/lib/cybersource_rest_client/models/inline_response_200_13__links_report.rb +183 -0
  42. data/lib/cybersource_rest_client/models/{tokenize_request.rb → inline_response_200_13_billing.rb} +32 -20
  43. data/lib/cybersource_rest_client/models/inline_response_200_14.rb +277 -0
  44. data/lib/cybersource_rest_client/models/inline_response_200_14_records.rb +201 -0
  45. data/lib/cybersource_rest_client/models/inline_response_200_14_response_record.rb +292 -0
  46. data/lib/cybersource_rest_client/models/inline_response_200_14_response_record_additional_updates.rb +232 -0
  47. data/lib/cybersource_rest_client/models/inline_response_200_14_source_record.rb +282 -0
  48. data/lib/cybersource_rest_client/models/inline_response_200_2.rb +194 -0
  49. data/lib/cybersource_rest_client/models/inline_response_200_3.rb +228 -0
  50. data/lib/cybersource_rest_client/models/inline_response_200_3_plan_information.rb +200 -0
  51. data/lib/cybersource_rest_client/models/inline_response_200_4.rb +228 -0
  52. data/lib/cybersource_rest_client/models/inline_response_200_5.rb +200 -0
  53. data/lib/cybersource_rest_client/models/inline_response_200_6.rb +214 -0
  54. data/lib/cybersource_rest_client/models/inline_response_200_6__links.rb +210 -0
  55. data/lib/cybersource_rest_client/models/inline_response_200_6_order_information.rb +192 -0
  56. data/lib/cybersource_rest_client/models/inline_response_200_6_order_information_bill_to.rb +206 -0
  57. data/lib/cybersource_rest_client/models/inline_response_200_6_payment_information.rb +183 -0
  58. data/lib/cybersource_rest_client/models/inline_response_200_6_payment_information_customer.rb +190 -0
  59. data/lib/cybersource_rest_client/models/{flex_v1_keys_post200_response_jwk.rb → inline_response_200_6_plan_information.rb} +40 -41
  60. data/lib/cybersource_rest_client/models/inline_response_200_6_plan_information_billing_cycles.rb +194 -0
  61. data/lib/cybersource_rest_client/models/inline_response_200_6_subscription_information.rb +242 -0
  62. data/lib/cybersource_rest_client/models/inline_response_200_6_subscriptions.rb +236 -0
  63. data/lib/cybersource_rest_client/models/inline_response_200_7.rb +245 -0
  64. data/lib/cybersource_rest_client/models/inline_response_200_8.rb +228 -0
  65. data/lib/cybersource_rest_client/models/{generate_public_key_request.rb → inline_response_200_9.rb} +50 -21
  66. data/lib/cybersource_rest_client/models/inline_response_200_9_subscription_information.rb +200 -0
  67. data/lib/cybersource_rest_client/models/{flex_v1_keys_post200_response.rb → inline_response_200__links.rb} +20 -21
  68. data/lib/cybersource_rest_client/models/inline_response_200_order_information.rb +183 -0
  69. data/lib/cybersource_rest_client/models/inline_response_200_order_information_amount_details.rb +222 -0
  70. data/lib/cybersource_rest_client/models/inline_response_200_plan_information.rb +250 -0
  71. data/lib/cybersource_rest_client/models/inline_response_200_plan_information_billing_cycles.rb +184 -0
  72. data/lib/cybersource_rest_client/models/inline_response_200_plan_information_billing_period.rb +195 -0
  73. data/lib/cybersource_rest_client/models/inline_response_200_plans.rb +218 -0
  74. data/lib/cybersource_rest_client/models/inline_response_201.rb +228 -0
  75. data/lib/cybersource_rest_client/models/inline_response_201_1.rb +228 -0
  76. data/lib/cybersource_rest_client/models/{invoicing_v2_invoices_all_get200_response__links_1.rb → inline_response_201_1__links.rb} +23 -14
  77. data/lib/cybersource_rest_client/models/inline_response_201_1_subscription_information.rb +200 -0
  78. data/lib/cybersource_rest_client/models/inline_response_201_plan_information.rb +200 -0
  79. data/lib/cybersource_rest_client/models/inline_response_202.rb +228 -0
  80. data/lib/cybersource_rest_client/models/inline_response_202_1.rb +228 -0
  81. data/lib/cybersource_rest_client/models/inline_response_202_1_subscription_information.rb +200 -0
  82. data/lib/cybersource_rest_client/models/inline_response_202_2.rb +202 -0
  83. data/lib/cybersource_rest_client/models/inline_response_202_2__links.rb +194 -0
  84. data/lib/cybersource_rest_client/models/inline_response_202_2__links_status.rb +183 -0
  85. data/lib/cybersource_rest_client/models/inline_response_202_subscription_information.rb +200 -0
  86. data/lib/cybersource_rest_client/models/inline_response_400_1.rb +33 -55
  87. data/lib/cybersource_rest_client/models/inline_response_400_2.rb +10 -9
  88. data/lib/cybersource_rest_client/models/inline_response_400_3.rb +55 -33
  89. data/lib/cybersource_rest_client/models/{inline_response_400_1_fields.rb → inline_response_400_3_fields.rb} +1 -1
  90. data/lib/cybersource_rest_client/models/inline_response_400_4.rb +30 -71
  91. data/lib/cybersource_rest_client/models/inline_response_400_5.rb +225 -0
  92. data/lib/cybersource_rest_client/models/inline_response_400_6.rb +265 -0
  93. data/lib/cybersource_rest_client/models/{inline_response_400_4_details.rb → inline_response_400_6_details.rb} +1 -1
  94. data/lib/cybersource_rest_client/models/inline_response_400_errors.rb +2 -2
  95. data/lib/cybersource_rest_client/models/inline_response_401.rb +241 -0
  96. data/lib/cybersource_rest_client/models/inline_response_401__links.rb +183 -0
  97. data/lib/cybersource_rest_client/models/inline_response_401__links_self.rb +183 -0
  98. data/lib/cybersource_rest_client/models/inline_response_401_fields.rb +202 -0
  99. data/lib/cybersource_rest_client/models/inline_response_403.rb +185 -0
  100. data/lib/cybersource_rest_client/models/inline_response_403_errors.rb +194 -0
  101. data/lib/cybersource_rest_client/models/inline_response_404.rb +194 -0
  102. data/lib/cybersource_rest_client/models/inline_response_409.rb +185 -0
  103. data/lib/cybersource_rest_client/models/inline_response_409_errors.rb +194 -0
  104. data/lib/cybersource_rest_client/models/inline_response_410.rb +185 -0
  105. data/lib/cybersource_rest_client/models/inline_response_410_errors.rb +194 -0
  106. data/lib/cybersource_rest_client/models/inline_response_412.rb +185 -0
  107. data/lib/cybersource_rest_client/models/inline_response_412_errors.rb +194 -0
  108. data/lib/cybersource_rest_client/models/inline_response_424.rb +185 -0
  109. data/lib/cybersource_rest_client/models/inline_response_424_errors.rb +194 -0
  110. data/lib/cybersource_rest_client/models/inline_response_500.rb +9 -38
  111. data/lib/cybersource_rest_client/models/inline_response_500_1.rb +214 -0
  112. data/lib/cybersource_rest_client/models/inline_response_500_errors.rb +194 -0
  113. data/lib/cybersource_rest_client/models/invoicing_v2_invoices_all_get200_response.rb +1 -1
  114. data/lib/cybersource_rest_client/models/invoicing_v2_invoices_all_get200_response__links.rb +22 -13
  115. data/lib/cybersource_rest_client/models/invoicing_v2_invoices_all_get200_response_invoices.rb +1 -1
  116. data/lib/cybersource_rest_client/models/invoicing_v2_invoices_get200_response.rb +1 -1
  117. data/lib/cybersource_rest_client/models/invoicing_v2_invoices_post201_response.rb +1 -1
  118. data/lib/cybersource_rest_client/models/invoicingv2invoices_order_information_line_items.rb +0 -18
  119. data/lib/cybersource_rest_client/models/{flex_v1_tokens_post200_response.rb → microformv2sessions_checkout_api_initialization.rb} +68 -59
  120. data/lib/cybersource_rest_client/models/patch_customer_payment_instrument_request.rb +15 -5
  121. data/lib/cybersource_rest_client/models/patch_customer_request.rb +1 -1
  122. data/lib/cybersource_rest_client/models/patch_customer_shipping_address_request.rb +2 -2
  123. data/lib/cybersource_rest_client/models/patch_instrument_identifier_request.rb +4 -4
  124. data/lib/cybersource_rest_client/models/patch_payment_instrument_request.rb +15 -5
  125. data/lib/cybersource_rest_client/models/post_customer_payment_instrument_request.rb +15 -5
  126. data/lib/cybersource_rest_client/models/post_customer_request.rb +1 -1
  127. data/lib/cybersource_rest_client/models/post_customer_shipping_address_request.rb +2 -2
  128. data/lib/cybersource_rest_client/models/post_instrument_identifier_enrollment_request.rb +4 -4
  129. data/lib/cybersource_rest_client/models/post_instrument_identifier_request.rb +4 -4
  130. data/lib/cybersource_rest_client/models/post_payment_instrument_request.rb +15 -5
  131. data/lib/cybersource_rest_client/models/predefined_subscription_request_bean.rb +0 -18
  132. data/lib/cybersource_rest_client/models/pts_v2_incremental_authorization_patch400_response.rb +1 -1
  133. data/lib/cybersource_rest_client/models/pts_v2_payments_captures_post400_response.rb +1 -1
  134. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_1_order_information_ship_to.rb +1 -1
  135. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_installment_information.rb +0 -18
  136. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_order_information_invoice_details.rb +0 -9
  137. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_account_information_card.rb +1 -1
  138. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information_tokenized_card.rb +1 -1
  139. data/lib/cybersource_rest_client/models/pts_v2_payments_post400_response.rb +1 -1
  140. data/lib/cybersource_rest_client/models/pts_v2_payments_refund_post400_response.rb +1 -1
  141. data/lib/cybersource_rest_client/models/pts_v2_payments_reversals_post400_response.rb +1 -1
  142. data/lib/cybersource_rest_client/models/pts_v2_payments_voids_post400_response.rb +1 -1
  143. data/lib/cybersource_rest_client/models/ptsv2payments_installment_information.rb +0 -18
  144. data/lib/cybersource_rest_client/models/ptsv2payments_merchant_information.rb +0 -18
  145. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_invoice_details.rb +0 -9
  146. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_line_items.rb +1 -19
  147. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_ship_to.rb +1 -1
  148. data/lib/cybersource_rest_client/models/ptsv2payments_payment_information.rb +1 -21
  149. data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_card.rb +1 -1
  150. data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_tokenized_card.rb +1 -1
  151. data/lib/cybersource_rest_client/models/ptsv2payments_point_of_sale_information.rb +12 -47
  152. data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_capture_options.rb +0 -36
  153. data/lib/cybersource_rest_client/models/ptsv2payments_travel_information_lodging.rb +0 -36
  154. data/lib/cybersource_rest_client/models/ptsv2payments_travel_information_lodging_room.rb +0 -18
  155. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_installment_information.rb +0 -18
  156. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_merchant_information.rb +0 -9
  157. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_order_information_ship_to.rb +1 -1
  158. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_processing_information_capture_options.rb +0 -36
  159. data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_merchant_information.rb +0 -9
  160. data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_order_information_line_items.rb +1 -19
  161. data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_payment_information_card.rb +1 -1
  162. data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_order_information_line_items.rb +0 -18
  163. data/lib/cybersource_rest_client/models/ptsv2payouts_merchant_information.rb +0 -9
  164. data/lib/cybersource_rest_client/models/ptsv2payouts_payment_information_card.rb +1 -1
  165. data/lib/cybersource_rest_client/models/rbsv1plans_client_reference_information.rb +229 -0
  166. data/lib/cybersource_rest_client/models/rbsv1plans_order_information.rb +183 -0
  167. data/lib/cybersource_rest_client/models/rbsv1plans_order_information_amount_details.rb +240 -0
  168. data/lib/cybersource_rest_client/models/rbsv1plans_plan_information.rb +259 -0
  169. data/lib/cybersource_rest_client/models/rbsv1plans_plan_information_billing_cycles.rb +185 -0
  170. data/lib/cybersource_rest_client/models/rbsv1plansid_plan_information.rb +250 -0
  171. data/lib/cybersource_rest_client/models/rbsv1plansid_processing_information.rb +183 -0
  172. data/lib/cybersource_rest_client/models/rbsv1plansid_processing_information_subscription_billing_options.rb +184 -0
  173. data/lib/cybersource_rest_client/models/rbsv1subscriptions_client_reference_information.rb +245 -0
  174. data/lib/cybersource_rest_client/models/rbsv1subscriptions_payment_information.rb +183 -0
  175. data/lib/cybersource_rest_client/models/rbsv1subscriptions_payment_information_customer.rb +199 -0
  176. data/lib/cybersource_rest_client/models/rbsv1subscriptions_plan_information.rb +192 -0
  177. data/lib/cybersource_rest_client/models/rbsv1subscriptions_processing_information.rb +199 -0
  178. data/lib/cybersource_rest_client/models/rbsv1subscriptions_processing_information_authorization_options.rb +183 -0
  179. data/lib/cybersource_rest_client/models/rbsv1subscriptions_processing_information_authorization_options_initiator.rb +184 -0
  180. data/lib/cybersource_rest_client/models/rbsv1subscriptions_subscription_information.rb +246 -0
  181. data/lib/cybersource_rest_client/models/rbsv1subscriptionsid_order_information.rb +183 -0
  182. data/lib/cybersource_rest_client/models/rbsv1subscriptionsid_order_information_amount_details.rb +206 -0
  183. data/lib/cybersource_rest_client/models/rbsv1subscriptionsid_plan_information.rb +183 -0
  184. data/lib/cybersource_rest_client/models/rbsv1subscriptionsid_subscription_information.rb +232 -0
  185. data/lib/cybersource_rest_client/models/risk_v1_decisions_post201_response_consumer_authentication_information.rb +88 -4
  186. data/lib/cybersource_rest_client/models/risk_v1_export_compliance_inquiries_post201_response_export_compliance_information.rb +0 -18
  187. data/lib/cybersource_rest_client/models/riskv1addressverifications_order_information_line_items.rb +1 -19
  188. data/lib/cybersource_rest_client/models/riskv1addressverifications_order_information_ship_to.rb +1 -1
  189. data/lib/cybersource_rest_client/models/riskv1authenticationresults_consumer_authentication_information.rb +20 -4
  190. data/lib/cybersource_rest_client/models/riskv1authenticationresults_order_information_line_items.rb +0 -18
  191. data/lib/cybersource_rest_client/models/riskv1authenticationresults_payment_information_card.rb +1 -1
  192. data/lib/cybersource_rest_client/models/riskv1authenticationresults_payment_information_tokenized_card.rb +1 -1
  193. data/lib/cybersource_rest_client/models/riskv1authentications_buyer_information.rb +14 -4
  194. data/lib/cybersource_rest_client/models/riskv1authentications_order_information_bill_to.rb +17 -1
  195. data/lib/cybersource_rest_client/models/riskv1authentications_order_information_line_items.rb +152 -22
  196. data/lib/cybersource_rest_client/models/riskv1authentications_payment_information_card.rb +1 -1
  197. data/lib/cybersource_rest_client/models/riskv1authentications_payment_information_tokenized_card.rb +1 -1
  198. data/lib/cybersource_rest_client/models/riskv1authenticationsetups_payment_information_card.rb +1 -1
  199. data/lib/cybersource_rest_client/models/riskv1authenticationsetups_payment_information_tokenized_card.rb +1 -1
  200. data/lib/cybersource_rest_client/models/riskv1decisions_consumer_authentication_information.rb +14 -4
  201. data/lib/cybersource_rest_client/models/riskv1decisions_order_information_line_items.rb +1 -19
  202. data/lib/cybersource_rest_client/models/riskv1decisions_order_information_ship_to.rb +34 -2
  203. data/lib/cybersource_rest_client/models/riskv1decisions_payment_information_card.rb +1 -1
  204. data/lib/cybersource_rest_client/models/riskv1decisions_payment_information_tokenized_card.rb +1 -1
  205. data/lib/cybersource_rest_client/models/riskv1exportcomplianceinquiries_order_information_line_items.rb +1 -19
  206. data/lib/cybersource_rest_client/models/riskv1liststypeentries_order_information_ship_to.rb +1 -1
  207. data/lib/cybersource_rest_client/models/riskv1liststypeentries_payment_information_card.rb +1 -1
  208. data/lib/cybersource_rest_client/models/tms_v2_customers_response.rb +1 -1
  209. data/lib/cybersource_rest_client/models/tmsv2customers__embedded.rb +1 -1
  210. data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument.rb +15 -5
  211. data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument__embedded.rb +1 -1
  212. data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument__embedded_instrument_identifier.rb +4 -4
  213. data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument__embedded_instrument_identifier_bill_to.rb +1 -1
  214. data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument__embedded_instrument_identifier_card.rb +3 -3
  215. data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument__embedded_instrument_identifier_metadata.rb +1 -1
  216. data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument_bank_account.rb +1 -1
  217. data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument_buyer_information_personal_identification.rb +1 -1
  218. data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument_card.rb +22 -4
  219. data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument_card_tokenized_information.rb +1 -1
  220. data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument_instrument_identifier.rb +1 -1
  221. data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument_merchant_information_merchant_descriptor.rb +1 -1
  222. data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument_metadata.rb +1 -1
  223. data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument_processing_information.rb +1 -1
  224. data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument_processing_information_bank_transfer_options.rb +1 -1
  225. data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_shipping_address.rb +2 -2
  226. data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_shipping_address_metadata.rb +1 -1
  227. data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_shipping_address_ship_to.rb +1 -1
  228. data/lib/cybersource_rest_client/models/tmsv2customers__embedded_merchant_initiated_transaction.rb +20 -4
  229. data/lib/cybersource_rest_client/models/tmsv2customers__embedded_tokenized_card.rb +15 -5
  230. data/lib/cybersource_rest_client/models/tmsv2customers__embedded_tokenized_card_card.rb +1 -1
  231. data/lib/cybersource_rest_client/models/tmsv2customers_default_payment_instrument.rb +1 -1
  232. data/lib/cybersource_rest_client/models/tmsv2customers_default_shipping_address.rb +1 -1
  233. data/lib/cybersource_rest_client/models/tmsv2customers_merchant_defined_information.rb +2 -2
  234. data/lib/cybersource_rest_client/models/tmsv2customers_metadata.rb +1 -1
  235. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_order_information_invoice_details.rb +0 -9
  236. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_order_information_line_items.rb +0 -18
  237. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_card.rb +1 -1
  238. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_point_of_sale_information.rb +0 -18
  239. data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_payment_information_card.rb +1 -1
  240. data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_point_of_sale_information.rb +13 -4
  241. data/lib/cybersource_rest_client/models/ums_v1_users_get200_response_users.rb +15 -4
  242. data/lib/cybersource_rest_client/models/{flex_v1_keys_post200_response_der.rb → update_plan_request.rb} +20 -24
  243. data/lib/cybersource_rest_client/models/update_subscription.rb +219 -0
  244. data/lib/cybersource_rest_client/models/vas_v2_payments_post201_response_tax_information.rb +2 -2
  245. data/lib/cybersource_rest_client/models/vas_v2_payments_post400_response.rb +1 -1
  246. data/lib/cybersource_rest_client/models/vasv2tax_order_information_line_items.rb +1 -19
  247. data/lib/cybersource_rest_client/models/vasv2tax_order_information_order_acceptance.rb +5 -5
  248. data/lib/cybersource_rest_client/models/vasv2tax_order_information_order_origin.rb +5 -5
  249. data/lib/cybersource_rest_client/models/vasv2tax_order_information_ship_to.rb +1 -1
  250. data/lib/cybersource_rest_client/models/vasv2tax_tax_information.rb +3 -3
  251. data/lib/cybersource_rest_client.rb +112 -13
  252. metadata +114 -15
  253. data/lib/cybersource_rest_client/api/key_generation_api.rb +0 -96
  254. data/lib/cybersource_rest_client/api/tokenization_api.rb +0 -89
@@ -0,0 +1,568 @@
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 SubscriptionsApi
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
+ # Activate a Subscription
24
+ # Activate a `CANCELLED` Or `SUSPENDED` Subscription
25
+ # @param id Subscription Id
26
+ # @param [Hash] opts the optional parameters
27
+ # @option opts [Object] :activate_subscription_request
28
+ # @return [InlineResponse2009]
29
+ def activate_subscription(id, opts = {})
30
+ data, status_code, headers = activate_subscription_with_http_info(id, opts)
31
+ return data, status_code, headers
32
+ end
33
+
34
+ # Activate a Subscription
35
+ # Activate a `CANCELLED` Or `SUSPENDED` Subscription
36
+ # @param id Subscription Id
37
+ # @param [Hash] opts the optional parameters
38
+ # @option opts [Object] :activate_subscription_request
39
+ # @return [Array<(InlineResponse2009, Fixnum, Hash)>] InlineResponse2009 data, response status code and response headers
40
+ def activate_subscription_with_http_info(id, opts = {})
41
+
42
+ if @api_client.config.debugging
43
+ begin
44
+ raise
45
+ @api_client.config.logger.debug 'Calling API: SubscriptionsApi.activate_subscription ...'
46
+ rescue
47
+ puts 'Cannot write to log'
48
+ end
49
+ end
50
+ # verify the required parameter 'id' is set
51
+ if @api_client.config.client_side_validation && id.nil?
52
+ fail ArgumentError, "Missing the required parameter 'id' when calling SubscriptionsApi.activate_subscription"
53
+ end
54
+ # resource path
55
+ local_var_path = 'rbs/v1/subscriptions/{id}/activate'.sub('{' + 'id' + '}', id.to_s)
56
+
57
+ # query parameters
58
+ query_params = {}
59
+
60
+ # header parameters
61
+ header_params = {}
62
+ # HTTP header 'Accept' (if needed)
63
+ header_params['Accept'] = @api_client.select_header_accept(['application/hal+json;charset=utf-8'])
64
+ # HTTP header 'Content-Type'
65
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json;charset=utf-8'])
66
+
67
+ # form parameters
68
+ form_params = {}
69
+
70
+ # http body (model)
71
+ post_body = @api_client.object_to_http_body(opts[:'activate_subscription_request'])
72
+ auth_names = []
73
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
74
+ :header_params => header_params,
75
+ :query_params => query_params,
76
+ :form_params => form_params,
77
+ :body => post_body,
78
+ :auth_names => auth_names,
79
+ :return_type => 'InlineResponse2009')
80
+ if @api_client.config.debugging
81
+ begin
82
+ raise
83
+ @api_client.config.logger.debug "API called: SubscriptionsApi#activate_subscription\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
84
+ rescue
85
+ puts 'Cannot write to log'
86
+ end
87
+ end
88
+ return data, status_code, headers
89
+ end
90
+ # Cancel a Subscription
91
+ # Cancel a Subscription
92
+ # @param id Subscription Id
93
+ # @param [Hash] opts the optional parameters
94
+ # @option opts [Object] :cancel_subscription_request
95
+ # @return [InlineResponse202]
96
+ def cancel_subscription(id, opts = {})
97
+ data, status_code, headers = cancel_subscription_with_http_info(id, opts)
98
+ return data, status_code, headers
99
+ end
100
+
101
+ # Cancel a Subscription
102
+ # Cancel a Subscription
103
+ # @param id Subscription Id
104
+ # @param [Hash] opts the optional parameters
105
+ # @option opts [Object] :cancel_subscription_request
106
+ # @return [Array<(InlineResponse202, Fixnum, Hash)>] InlineResponse202 data, response status code and response headers
107
+ def cancel_subscription_with_http_info(id, opts = {})
108
+
109
+ if @api_client.config.debugging
110
+ begin
111
+ raise
112
+ @api_client.config.logger.debug 'Calling API: SubscriptionsApi.cancel_subscription ...'
113
+ rescue
114
+ puts 'Cannot write to log'
115
+ end
116
+ end
117
+ # verify the required parameter 'id' is set
118
+ if @api_client.config.client_side_validation && id.nil?
119
+ fail ArgumentError, "Missing the required parameter 'id' when calling SubscriptionsApi.cancel_subscription"
120
+ end
121
+ # resource path
122
+ local_var_path = 'rbs/v1/subscriptions/{id}/cancel'.sub('{' + 'id' + '}', id.to_s)
123
+
124
+ # query parameters
125
+ query_params = {}
126
+
127
+ # header parameters
128
+ header_params = {}
129
+ # HTTP header 'Accept' (if needed)
130
+ header_params['Accept'] = @api_client.select_header_accept(['application/hal+json;charset=utf-8'])
131
+ # HTTP header 'Content-Type'
132
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json;charset=utf-8'])
133
+
134
+ # form parameters
135
+ form_params = {}
136
+
137
+ # http body (model)
138
+ post_body = @api_client.object_to_http_body(opts[:'cancel_subscription_request'])
139
+ auth_names = []
140
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
141
+ :header_params => header_params,
142
+ :query_params => query_params,
143
+ :form_params => form_params,
144
+ :body => post_body,
145
+ :auth_names => auth_names,
146
+ :return_type => 'InlineResponse202')
147
+ if @api_client.config.debugging
148
+ begin
149
+ raise
150
+ @api_client.config.logger.debug "API called: SubscriptionsApi#cancel_subscription\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
151
+ rescue
152
+ puts 'Cannot write to log'
153
+ end
154
+ end
155
+ return data, status_code, headers
156
+ end
157
+ # Create a Subscription
158
+ # Create a Recurring Billing Subscription
159
+ # @param create_subscription_request
160
+ # @param [Hash] opts the optional parameters
161
+ # @return [InlineResponse2011]
162
+ def create_subscription(create_subscription_request, opts = {})
163
+ data, status_code, headers = create_subscription_with_http_info(create_subscription_request, opts)
164
+ return data, status_code, headers
165
+ end
166
+
167
+ # Create a Subscription
168
+ # Create a Recurring Billing Subscription
169
+ # @param create_subscription_request
170
+ # @param [Hash] opts the optional parameters
171
+ # @return [Array<(InlineResponse2011, Fixnum, Hash)>] InlineResponse2011 data, response status code and response headers
172
+ def create_subscription_with_http_info(create_subscription_request, opts = {})
173
+
174
+ if @api_client.config.debugging
175
+ begin
176
+ raise
177
+ @api_client.config.logger.debug 'Calling API: SubscriptionsApi.create_subscription ...'
178
+ rescue
179
+ puts 'Cannot write to log'
180
+ end
181
+ end
182
+ # verify the required parameter 'create_subscription_request' is set
183
+ if @api_client.config.client_side_validation && create_subscription_request.nil?
184
+ fail ArgumentError, "Missing the required parameter 'create_subscription_request' when calling SubscriptionsApi.create_subscription"
185
+ end
186
+ # resource path
187
+ local_var_path = 'rbs/v1/subscriptions'
188
+
189
+ # query parameters
190
+ query_params = {}
191
+
192
+ # header parameters
193
+ header_params = {}
194
+ # HTTP header 'Accept' (if needed)
195
+ header_params['Accept'] = @api_client.select_header_accept(['application/hal+json;charset=utf-8'])
196
+ # HTTP header 'Content-Type'
197
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json;charset=utf-8'])
198
+
199
+ # form parameters
200
+ form_params = {}
201
+
202
+ # http body (model)
203
+ post_body = @api_client.object_to_http_body(create_subscription_request)
204
+ auth_names = []
205
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
206
+ :header_params => header_params,
207
+ :query_params => query_params,
208
+ :form_params => form_params,
209
+ :body => post_body,
210
+ :auth_names => auth_names,
211
+ :return_type => 'InlineResponse2011')
212
+ if @api_client.config.debugging
213
+ begin
214
+ raise
215
+ @api_client.config.logger.debug "API called: SubscriptionsApi#create_subscription\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
216
+ rescue
217
+ puts 'Cannot write to log'
218
+ end
219
+ end
220
+ return data, status_code, headers
221
+ end
222
+ # Get a List of Subscriptions
223
+ # Retrieve Subscriptions by Subscription Code & Subscription Status.
224
+ # @param [Hash] opts the optional parameters
225
+ # @option opts [Integer] :offset Page offset number.
226
+ # @option opts [Integer] :limit Number of items to be returned. Default - &#x60;20&#x60;, Max - &#x60;100&#x60;
227
+ # @option opts [String] :code Filter by Subscription Code
228
+ # @option opts [String] :status Filter by Subscription Status
229
+ # @return [InlineResponse2006]
230
+ def get_all_subscriptions(opts = {})
231
+ data, status_code, headers = get_all_subscriptions_with_http_info(opts)
232
+ return data, status_code, headers
233
+ end
234
+
235
+ # Get a List of Subscriptions
236
+ # Retrieve Subscriptions by Subscription Code &amp; Subscription Status.
237
+ # @param [Hash] opts the optional parameters
238
+ # @option opts [Integer] :offset Page offset number.
239
+ # @option opts [Integer] :limit Number of items to be returned. Default - &#x60;20&#x60;, Max - &#x60;100&#x60;
240
+ # @option opts [String] :code Filter by Subscription Code
241
+ # @option opts [String] :status Filter by Subscription Status
242
+ # @return [Array<(InlineResponse2006, Fixnum, Hash)>] InlineResponse2006 data, response status code and response headers
243
+ def get_all_subscriptions_with_http_info(opts = {})
244
+
245
+ if @api_client.config.debugging
246
+ begin
247
+ raise
248
+ @api_client.config.logger.debug 'Calling API: SubscriptionsApi.get_all_subscriptions ...'
249
+ rescue
250
+ puts 'Cannot write to log'
251
+ end
252
+ end
253
+ # resource path
254
+ local_var_path = 'rbs/v1/subscriptions'
255
+
256
+ # query parameters
257
+ query_params = {}
258
+ query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
259
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
260
+ query_params[:'code'] = opts[:'code'] if !opts[:'code'].nil?
261
+ query_params[:'status'] = opts[:'status'] if !opts[:'status'].nil?
262
+
263
+ # header parameters
264
+ header_params = {}
265
+ # HTTP header 'Accept' (if needed)
266
+ header_params['Accept'] = @api_client.select_header_accept(['application/hal+json;charset=utf-8'])
267
+ # HTTP header 'Content-Type'
268
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json;charset=utf-8'])
269
+
270
+ # form parameters
271
+ form_params = {}
272
+
273
+ # http body (model)
274
+ if 'GET' == 'POST'
275
+ post_body = '{}'
276
+ else
277
+ post_body = nil
278
+ end
279
+ auth_names = []
280
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
281
+ :header_params => header_params,
282
+ :query_params => query_params,
283
+ :form_params => form_params,
284
+ :body => post_body,
285
+ :auth_names => auth_names,
286
+ :return_type => 'InlineResponse2006')
287
+ if @api_client.config.debugging
288
+ begin
289
+ raise
290
+ @api_client.config.logger.debug "API called: SubscriptionsApi#get_all_subscriptions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
291
+ rescue
292
+ puts 'Cannot write to log'
293
+ end
294
+ end
295
+ return data, status_code, headers
296
+ end
297
+ # Get a Subscription
298
+ # Get a Subscription by Subscription Id
299
+ # @param id Subscription Id
300
+ # @param [Hash] opts the optional parameters
301
+ # @return [InlineResponse2007]
302
+ def get_subscription(id, opts = {})
303
+ data, status_code, headers = get_subscription_with_http_info(id, opts)
304
+ return data, status_code, headers
305
+ end
306
+
307
+ # Get a Subscription
308
+ # Get a Subscription by Subscription Id
309
+ # @param id Subscription Id
310
+ # @param [Hash] opts the optional parameters
311
+ # @return [Array<(InlineResponse2007, Fixnum, Hash)>] InlineResponse2007 data, response status code and response headers
312
+ def get_subscription_with_http_info(id, opts = {})
313
+
314
+ if @api_client.config.debugging
315
+ begin
316
+ raise
317
+ @api_client.config.logger.debug 'Calling API: SubscriptionsApi.get_subscription ...'
318
+ rescue
319
+ puts 'Cannot write to log'
320
+ end
321
+ end
322
+ # verify the required parameter 'id' is set
323
+ if @api_client.config.client_side_validation && id.nil?
324
+ fail ArgumentError, "Missing the required parameter 'id' when calling SubscriptionsApi.get_subscription"
325
+ end
326
+ # resource path
327
+ local_var_path = 'rbs/v1/subscriptions/{id}'.sub('{' + 'id' + '}', id.to_s)
328
+
329
+ # query parameters
330
+ query_params = {}
331
+
332
+ # header parameters
333
+ header_params = {}
334
+ # HTTP header 'Accept' (if needed)
335
+ header_params['Accept'] = @api_client.select_header_accept(['application/hal+json;charset=utf-8'])
336
+ # HTTP header 'Content-Type'
337
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json;charset=utf-8'])
338
+
339
+ # form parameters
340
+ form_params = {}
341
+
342
+ # http body (model)
343
+ if 'GET' == 'POST'
344
+ post_body = '{}'
345
+ else
346
+ post_body = nil
347
+ end
348
+ auth_names = []
349
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
350
+ :header_params => header_params,
351
+ :query_params => query_params,
352
+ :form_params => form_params,
353
+ :body => post_body,
354
+ :auth_names => auth_names,
355
+ :return_type => 'InlineResponse2007')
356
+ if @api_client.config.debugging
357
+ begin
358
+ raise
359
+ @api_client.config.logger.debug "API called: SubscriptionsApi#get_subscription\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
360
+ rescue
361
+ puts 'Cannot write to log'
362
+ end
363
+ end
364
+ return data, status_code, headers
365
+ end
366
+ # Get a Subscription Code
367
+ # Get a Unique Subscription Code
368
+ # @param [Hash] opts the optional parameters
369
+ # @return [InlineResponse20010]
370
+ def get_subscription_code(opts = {})
371
+ data, status_code, headers = get_subscription_code_with_http_info(opts)
372
+ return data, status_code, headers
373
+ end
374
+
375
+ # Get a Subscription Code
376
+ # Get a Unique Subscription Code
377
+ # @param [Hash] opts the optional parameters
378
+ # @return [Array<(InlineResponse20010, Fixnum, Hash)>] InlineResponse20010 data, response status code and response headers
379
+ def get_subscription_code_with_http_info(opts = {})
380
+
381
+ if @api_client.config.debugging
382
+ begin
383
+ raise
384
+ @api_client.config.logger.debug 'Calling API: SubscriptionsApi.get_subscription_code ...'
385
+ rescue
386
+ puts 'Cannot write to log'
387
+ end
388
+ end
389
+ # resource path
390
+ local_var_path = 'rbs/v1/subscriptions/code'
391
+
392
+ # query parameters
393
+ query_params = {}
394
+
395
+ # header parameters
396
+ header_params = {}
397
+ # HTTP header 'Accept' (if needed)
398
+ header_params['Accept'] = @api_client.select_header_accept(['application/hal+json;charset=utf-8'])
399
+ # HTTP header 'Content-Type'
400
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json;charset=utf-8'])
401
+
402
+ # form parameters
403
+ form_params = {}
404
+
405
+ # http body (model)
406
+ if 'GET' == 'POST'
407
+ post_body = '{}'
408
+ else
409
+ post_body = nil
410
+ end
411
+ auth_names = []
412
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
413
+ :header_params => header_params,
414
+ :query_params => query_params,
415
+ :form_params => form_params,
416
+ :body => post_body,
417
+ :auth_names => auth_names,
418
+ :return_type => 'InlineResponse20010')
419
+ if @api_client.config.debugging
420
+ begin
421
+ raise
422
+ @api_client.config.logger.debug "API called: SubscriptionsApi#get_subscription_code\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
423
+ rescue
424
+ puts 'Cannot write to log'
425
+ end
426
+ end
427
+ return data, status_code, headers
428
+ end
429
+ # Suspend a Subscription
430
+ # Suspend a Subscription
431
+ # @param id Subscription Id
432
+ # @param [Hash] opts the optional parameters
433
+ # @option opts [Object] :suspend_subscription_request
434
+ # @return [InlineResponse2021]
435
+ def suspend_subscription(id, opts = {})
436
+ data, status_code, headers = suspend_subscription_with_http_info(id, opts)
437
+ return data, status_code, headers
438
+ end
439
+
440
+ # Suspend a Subscription
441
+ # Suspend a Subscription
442
+ # @param id Subscription Id
443
+ # @param [Hash] opts the optional parameters
444
+ # @option opts [Object] :suspend_subscription_request
445
+ # @return [Array<(InlineResponse2021, Fixnum, Hash)>] InlineResponse2021 data, response status code and response headers
446
+ def suspend_subscription_with_http_info(id, opts = {})
447
+
448
+ if @api_client.config.debugging
449
+ begin
450
+ raise
451
+ @api_client.config.logger.debug 'Calling API: SubscriptionsApi.suspend_subscription ...'
452
+ rescue
453
+ puts 'Cannot write to log'
454
+ end
455
+ end
456
+ # verify the required parameter 'id' is set
457
+ if @api_client.config.client_side_validation && id.nil?
458
+ fail ArgumentError, "Missing the required parameter 'id' when calling SubscriptionsApi.suspend_subscription"
459
+ end
460
+ # resource path
461
+ local_var_path = 'rbs/v1/subscriptions/{id}/suspend'.sub('{' + 'id' + '}', id.to_s)
462
+
463
+ # query parameters
464
+ query_params = {}
465
+
466
+ # header parameters
467
+ header_params = {}
468
+ # HTTP header 'Accept' (if needed)
469
+ header_params['Accept'] = @api_client.select_header_accept(['application/hal+json;charset=utf-8'])
470
+ # HTTP header 'Content-Type'
471
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json;charset=utf-8'])
472
+
473
+ # form parameters
474
+ form_params = {}
475
+
476
+ # http body (model)
477
+ post_body = @api_client.object_to_http_body(opts[:'suspend_subscription_request'])
478
+ auth_names = []
479
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
480
+ :header_params => header_params,
481
+ :query_params => query_params,
482
+ :form_params => form_params,
483
+ :body => post_body,
484
+ :auth_names => auth_names,
485
+ :return_type => 'InlineResponse2021')
486
+ if @api_client.config.debugging
487
+ begin
488
+ raise
489
+ @api_client.config.logger.debug "API called: SubscriptionsApi#suspend_subscription\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
490
+ rescue
491
+ puts 'Cannot write to log'
492
+ end
493
+ end
494
+ return data, status_code, headers
495
+ end
496
+ # Update a Subscription
497
+ # Update a Subscription by Subscription Id
498
+ # @param id Subscription Id
499
+ # @param update_subscription Update Subscription
500
+ # @param [Hash] opts the optional parameters
501
+ # @return [InlineResponse2008]
502
+ def update_subscription(id, update_subscription, opts = {})
503
+ data, status_code, headers = update_subscription_with_http_info(id, update_subscription, opts)
504
+ return data, status_code, headers
505
+ end
506
+
507
+ # Update a Subscription
508
+ # Update a Subscription by Subscription Id
509
+ # @param id Subscription Id
510
+ # @param update_subscription Update Subscription
511
+ # @param [Hash] opts the optional parameters
512
+ # @return [Array<(InlineResponse2008, Fixnum, Hash)>] InlineResponse2008 data, response status code and response headers
513
+ def update_subscription_with_http_info(id, update_subscription, opts = {})
514
+
515
+ if @api_client.config.debugging
516
+ begin
517
+ raise
518
+ @api_client.config.logger.debug 'Calling API: SubscriptionsApi.update_subscription ...'
519
+ rescue
520
+ puts 'Cannot write to log'
521
+ end
522
+ end
523
+ # verify the required parameter 'id' is set
524
+ if @api_client.config.client_side_validation && id.nil?
525
+ fail ArgumentError, "Missing the required parameter 'id' when calling SubscriptionsApi.update_subscription"
526
+ end
527
+ # verify the required parameter 'update_subscription' is set
528
+ if @api_client.config.client_side_validation && update_subscription.nil?
529
+ fail ArgumentError, "Missing the required parameter 'update_subscription' when calling SubscriptionsApi.update_subscription"
530
+ end
531
+ # resource path
532
+ local_var_path = 'rbs/v1/subscriptions/{id}'.sub('{' + 'id' + '}', id.to_s)
533
+
534
+ # query parameters
535
+ query_params = {}
536
+
537
+ # header parameters
538
+ header_params = {}
539
+ # HTTP header 'Accept' (if needed)
540
+ header_params['Accept'] = @api_client.select_header_accept(['application/hal+json;charset=utf-8'])
541
+ # HTTP header 'Content-Type'
542
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json;charset=utf-8'])
543
+
544
+ # form parameters
545
+ form_params = {}
546
+
547
+ # http body (model)
548
+ post_body = @api_client.object_to_http_body(update_subscription)
549
+ auth_names = []
550
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
551
+ :header_params => header_params,
552
+ :query_params => query_params,
553
+ :form_params => form_params,
554
+ :body => post_body,
555
+ :auth_names => auth_names,
556
+ :return_type => 'InlineResponse2008')
557
+ if @api_client.config.debugging
558
+ begin
559
+ raise
560
+ @api_client.config.logger.debug "API called: SubscriptionsApi#update_subscription\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
561
+ rescue
562
+ puts 'Cannot write to log'
563
+ end
564
+ end
565
+ return data, status_code, headers
566
+ end
567
+ end
568
+ end
@@ -21,7 +21,7 @@ module CyberSource
21
21
  @api_client.set_configuration(config)
22
22
  end
23
23
  # Calculate Taxes
24
- # Get tax details for a transaction.
24
+ # The tax calculation service provides real-time sales tax and VAT calculations for orders placed with your business worldwide. It enhances your ability to conduct business globally and enables you to avoid the risk and complexity of managing online tax calculation. The service supports product-based tax rules and exemptions for goods and services. The tax rates are updated twice a month and calculations include sub-level detail (rates per taxing jurisdiction, names and types of jurisdictions). Implementation guidance, list of supported countries, and information on tax reporting are in the [Tax User Guide](https://developer.cybersource.com/docs/cybs/en-us/tax-calculation/developer/all/rest/tax-calculation/tax-overview.html).
25
25
  # @param tax_request
26
26
  # @param [Hash] opts the optional parameters
27
27
  # @return [VasV2PaymentsPost201Response]
@@ -31,7 +31,7 @@ module CyberSource
31
31
  end
32
32
 
33
33
  # Calculate Taxes
34
- # Get tax details for a transaction.
34
+ # The tax calculation service provides real-time sales tax and VAT calculations for orders placed with your business worldwide. It enhances your ability to conduct business globally and enables you to avoid the risk and complexity of managing online tax calculation. The service supports product-based tax rules and exemptions for goods and services. The tax rates are updated twice a month and calculations include sub-level detail (rates per taxing jurisdiction, names and types of jurisdictions). Implementation guidance, list of supported countries, and information on tax reporting are in the [Tax User Guide](https://developer.cybersource.com/docs/cybs/en-us/tax-calculation/developer/all/rest/tax-calculation/tax-overview.html).
35
35
  # @param tax_request
36
36
  # @param [Hash] opts the optional parameters
37
37
  # @return [Array<(VasV2PaymentsPost201Response, Fixnum, Hash)>] VasV2PaymentsPost201Response data, response status code and response headers