cybersource_rest_client 0.0.8 → 0.0.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (217) hide show
  1. checksums.yaml +4 -4
  2. data/lib/cybersource_rest_client.rb +68 -8
  3. data/lib/cybersource_rest_client/api/capture_api.rb +19 -8
  4. data/lib/cybersource_rest_client/api/conversion_details_api.rb +112 -0
  5. data/lib/cybersource_rest_client/api/credit_api.rb +19 -8
  6. data/lib/cybersource_rest_client/api/flex_token_api.rb +18 -7
  7. data/lib/cybersource_rest_client/api/instrument_identifier_api.rb +88 -55
  8. data/lib/cybersource_rest_client/api/instrument_identifiers_api.rb +24 -13
  9. data/lib/cybersource_rest_client/api/key_generation_api.rb +18 -7
  10. data/lib/cybersource_rest_client/api/net_fundings_api.rb +115 -0
  11. data/lib/cybersource_rest_client/api/notification_of_changes_api.rb +20 -9
  12. data/lib/cybersource_rest_client/api/payment_instruments_api.rb +144 -89
  13. data/lib/cybersource_rest_client/api/payments_api.rb +19 -8
  14. data/lib/cybersource_rest_client/api/process_a_payout_api.rb +21 -9
  15. data/lib/cybersource_rest_client/api/purchase_and_refund_details_api.rb +27 -10
  16. data/lib/cybersource_rest_client/api/refund_api.rb +37 -15
  17. data/lib/cybersource_rest_client/api/report_definitions_api.rb +50 -19
  18. data/lib/cybersource_rest_client/api/report_downloads_api.rb +25 -10
  19. data/lib/cybersource_rest_client/api/report_subscriptions_api.rb +104 -43
  20. data/lib/cybersource_rest_client/api/reports_api.rb +83 -27
  21. data/lib/cybersource_rest_client/api/reversal_api.rb +19 -8
  22. data/lib/cybersource_rest_client/api/search_transactions_api.rb +39 -17
  23. data/lib/cybersource_rest_client/api/secure_file_share_api.rb +45 -15
  24. data/lib/cybersource_rest_client/api/transaction_batches_api.rb +89 -13
  25. data/lib/cybersource_rest_client/api/transaction_details_api.rb +19 -8
  26. data/lib/cybersource_rest_client/api/user_management_api.rb +19 -8
  27. data/lib/cybersource_rest_client/api/void_api.rb +73 -29
  28. data/lib/cybersource_rest_client/api_client.rb +24 -12
  29. data/lib/cybersource_rest_client/configuration.rb +1 -1
  30. data/lib/cybersource_rest_client/models/capture_payment_request.rb +14 -5
  31. data/lib/cybersource_rest_client/models/create_credit_request.rb +1 -1
  32. data/lib/cybersource_rest_client/models/create_payment_request.rb +23 -5
  33. data/lib/cybersource_rest_client/models/inline_response_400.rb +59 -14
  34. data/lib/cybersource_rest_client/models/inline_response_400_1.rb +202 -0
  35. data/lib/cybersource_rest_client/models/{reporting_v3_notificationof_changes_get400_response_fields.rb → inline_response_400_fields.rb} +1 -1
  36. data/lib/cybersource_rest_client/models/pts_v1_transaction_batches_get200_response_transaction_batches.rb +7 -7
  37. data/lib/cybersource_rest_client/models/pts_v1_transaction_batches_id_get200_response.rb +286 -0
  38. data/lib/cybersource_rest_client/models/{tmsv1instrumentidentifiers_authorization_options_merchant_initiated_transaction.rb → pts_v1_transaction_batches_id_get200_response__links.rb} +10 -9
  39. data/lib/cybersource_rest_client/models/pts_v1_transaction_batches_id_get200_response__links_transactions.rb +193 -0
  40. data/lib/cybersource_rest_client/models/pts_v2_credits_post201_response.rb +20 -2
  41. data/lib/cybersource_rest_client/models/pts_v2_credits_post201_response_credit_amount_details.rb +1 -1
  42. data/lib/cybersource_rest_client/models/pts_v2_credits_post201_response_payment_information.rb +183 -0
  43. data/lib/cybersource_rest_client/models/pts_v2_credits_post201_response_processing_information.rb +183 -0
  44. data/lib/cybersource_rest_client/models/pts_v2_credits_post201_response_processing_information_bank_transfer_options.rb +199 -0
  45. data/lib/cybersource_rest_client/models/pts_v2_payments_captures_post201_response.rb +1 -1
  46. data/lib/cybersource_rest_client/models/pts_v2_payments_captures_post201_response_order_information_amount_details.rb +1 -1
  47. data/lib/cybersource_rest_client/models/pts_v2_payments_captures_post400_response.rb +2 -2
  48. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response.rb +34 -7
  49. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_client_reference_information.rb +40 -5
  50. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_error_information.rb +1 -1
  51. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_error_information_details.rb +1 -1
  52. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_installment_information.rb +519 -0
  53. data/lib/cybersource_rest_client/models/{pts_v2_payments_post201_response_processor_information_issuer.rb → pts_v2_payments_post201_response_issuer_information.rb} +31 -6
  54. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_order_information_amount_details.rb +1 -1
  55. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_order_information_invoice_details.rb +1 -1
  56. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information.rb +13 -4
  57. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information_account_features.rb +1 -1
  58. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information_bank.rb +208 -0
  59. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information_bank_account.rb +199 -0
  60. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information_tokenized_card.rb +2 -17
  61. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_point_of_sale_information_emv.rb +1 -1
  62. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processing_information.rb +183 -0
  63. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processing_information_bank_transfer_options.rb +224 -0
  64. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information.rb +75 -16
  65. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information_ach_verification.rb +224 -0
  66. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information_avs.rb +0 -15
  67. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information_electronic_verification_results.rb +2 -2
  68. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information_routing.rb +249 -0
  69. data/lib/cybersource_rest_client/models/pts_v2_payments_post400_response.rb +2 -2
  70. data/lib/cybersource_rest_client/models/pts_v2_payments_post502_response.rb +2 -2
  71. data/lib/cybersource_rest_client/models/pts_v2_payments_refund_post201_response.rb +1 -1
  72. data/lib/cybersource_rest_client/models/pts_v2_payments_refund_post201_response_processor_information.rb +63 -4
  73. data/lib/cybersource_rest_client/models/pts_v2_payments_refund_post201_response_refund_amount_details.rb +1 -1
  74. data/lib/cybersource_rest_client/models/pts_v2_payments_refund_post400_response.rb +2 -2
  75. data/lib/cybersource_rest_client/models/pts_v2_payments_reversals_post201_response.rb +11 -2
  76. data/lib/cybersource_rest_client/models/pts_v2_payments_reversals_post201_response_authorization_information.rb +29 -4
  77. data/lib/cybersource_rest_client/models/pts_v2_payments_reversals_post201_response_issuer_information.rb +199 -0
  78. data/lib/cybersource_rest_client/models/pts_v2_payments_reversals_post201_response_reversal_amount_details.rb +1 -1
  79. data/lib/cybersource_rest_client/models/pts_v2_payments_reversals_post400_response.rb +2 -2
  80. data/lib/cybersource_rest_client/models/pts_v2_payments_voids_post201_response.rb +1 -1
  81. data/lib/cybersource_rest_client/models/pts_v2_payments_voids_post201_response_void_amount_details.rb +1 -1
  82. data/lib/cybersource_rest_client/models/pts_v2_payments_voids_post400_response.rb +2 -2
  83. data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response.rb +350 -0
  84. data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_error_information.rb +239 -0
  85. data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_error_information_details.rb +228 -0
  86. data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_merchant_information.rb +183 -0
  87. data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_merchant_information_merchant_descriptor.rb +234 -0
  88. data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_order_information.rb +183 -0
  89. data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_order_information_amount_details.rb +274 -0
  90. data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_processor_information.rb +299 -0
  91. data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_recipient_information.rb +183 -0
  92. data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_recipient_information_card.rb +224 -0
  93. data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_status_information.rb +228 -0
  94. data/lib/cybersource_rest_client/models/pts_v2_payouts_post400_response.rb +1 -1
  95. data/lib/cybersource_rest_client/models/pts_v2_payouts_post502_response.rb +260 -0
  96. data/lib/cybersource_rest_client/models/pts_v2_payouts_post_response.rb +1 -1
  97. data/lib/cybersource_rest_client/models/ptsv2credits_point_of_sale_information.rb +186 -4
  98. data/lib/cybersource_rest_client/models/ptsv2credits_point_of_sale_information_emv.rb +3 -3
  99. data/lib/cybersource_rest_client/models/ptsv2credits_processing_information.rb +18 -9
  100. data/lib/cybersource_rest_client/models/ptsv2credits_processing_information_bank_transfer_options.rb +349 -0
  101. data/lib/cybersource_rest_client/models/ptsv2payments_aggregator_information.rb +2 -2
  102. data/lib/cybersource_rest_client/models/ptsv2payments_aggregator_information_sub_merchant.rb +9 -9
  103. data/lib/cybersource_rest_client/models/ptsv2payments_buyer_information.rb +29 -4
  104. data/lib/cybersource_rest_client/models/ptsv2payments_buyer_information_personal_identification.rb +3 -2
  105. data/lib/cybersource_rest_client/models/ptsv2payments_client_reference_information.rb +15 -6
  106. data/lib/cybersource_rest_client/models/ptsv2payments_client_reference_information_partner.rb +249 -0
  107. data/lib/cybersource_rest_client/models/ptsv2payments_consumer_authentication_information.rb +7 -7
  108. data/lib/cybersource_rest_client/models/ptsv2payments_installment_information.rb +364 -0
  109. data/lib/cybersource_rest_client/models/{ptsv2payments_processing_information_issuer.rb → ptsv2payments_issuer_information.rb} +2 -2
  110. data/lib/cybersource_rest_client/models/ptsv2payments_merchant_defined_information.rb +2 -2
  111. data/lib/cybersource_rest_client/models/ptsv2payments_merchant_information.rb +66 -7
  112. data/lib/cybersource_rest_client/models/ptsv2payments_merchant_information_merchant_descriptor.rb +0 -6
  113. data/lib/cybersource_rest_client/models/ptsv2payments_merchant_information_service_fee_descriptor.rb +249 -0
  114. data/lib/cybersource_rest_client/models/{ptsv2payments_processing_information_authorization_options_merchant_initiated_transaction.rb → ptsv2payments_merchant_initiated_transaction.rb} +3 -3
  115. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_amount_details.rb +84 -9
  116. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_amount_details_surcharge.rb +2 -2
  117. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_amount_details_tax_details.rb +32 -7
  118. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_bill_to.rb +12 -28
  119. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_bill_to_company.rb +349 -0
  120. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_invoice_details.rb +55 -5
  121. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_line_items.rb +139 -14
  122. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_ship_to.rb +2 -2
  123. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_shipping_details.rb +2 -2
  124. data/lib/cybersource_rest_client/models/ptsv2payments_payment_information.rb +13 -4
  125. data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_bank.rb +208 -0
  126. data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_bank_account.rb +299 -0
  127. data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_card.rb +47 -37
  128. data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_customer.rb +1 -7
  129. data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_fluid_data.rb +4 -4
  130. data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_tokenized_card.rb +3 -18
  131. data/lib/cybersource_rest_client/models/ptsv2payments_point_of_sale_information.rb +253 -16
  132. data/lib/cybersource_rest_client/models/ptsv2payments_point_of_sale_information_emv.rb +12 -12
  133. data/lib/cybersource_rest_client/models/ptsv2payments_processing_information.rb +20 -20
  134. data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_authorization_options.rb +32 -12
  135. data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_authorization_options_initiator.rb +4 -4
  136. data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_bank_transfer_options.rb +424 -0
  137. data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_capture_options.rb +1 -1
  138. data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_recurring_options.rb +2 -2
  139. data/lib/cybersource_rest_client/models/ptsv2payments_recipient_information.rb +3 -3
  140. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_aggregator_information.rb +2 -2
  141. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_aggregator_information_sub_merchant.rb +8 -8
  142. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_buyer_information.rb +1 -1
  143. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_installment_information.rb +579 -0
  144. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_merchant_information.rb +39 -5
  145. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_order_information_amount_details.rb +59 -9
  146. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_order_information_bill_to.rb +11 -27
  147. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_order_information_invoice_details.rb +1 -1
  148. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_order_information_ship_to.rb +1 -1
  149. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_point_of_sale_information_emv.rb +2 -2
  150. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_processing_information.rb +5 -5
  151. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_processing_information_authorization_options.rb +2 -2
  152. data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_merchant_information.rb +30 -5
  153. data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_order_information_line_items.rb +9 -9
  154. data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_payment_information.rb +22 -4
  155. data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_payment_information_card.rb +5 -20
  156. data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_processing_information.rb +4 -4
  157. data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_processing_information_recurring_options.rb +1 -1
  158. data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_client_reference_information.rb +14 -5
  159. data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_client_reference_information_partner.rb +224 -0
  160. data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_order_information.rb +10 -1
  161. data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_order_information_amount_details.rb +199 -0
  162. data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_order_information_line_items.rb +2 -2
  163. data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_processing_information.rb +5 -5
  164. data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_reversal_information.rb +0 -15
  165. data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_reversal_information_amount_details.rb +2 -2
  166. data/lib/cybersource_rest_client/models/ptsv2payouts_client_reference_information.rb +199 -0
  167. data/lib/cybersource_rest_client/models/ptsv2payouts_merchant_information_merchant_descriptor.rb +0 -15
  168. data/lib/cybersource_rest_client/models/ptsv2payouts_payment_information_card.rb +0 -15
  169. data/lib/cybersource_rest_client/models/refund_capture_request.rb +1 -1
  170. data/lib/cybersource_rest_client/models/refund_payment_request.rb +1 -1
  171. data/lib/cybersource_rest_client/models/reporting_v3_conversion_details_get200_response.rb +213 -0
  172. data/lib/cybersource_rest_client/models/reporting_v3_conversion_details_get200_response_conversion_details.rb +275 -0
  173. data/lib/cybersource_rest_client/models/reporting_v3_conversion_details_get200_response_notes.rb +204 -0
  174. data/lib/cybersource_rest_client/models/reporting_v3_net_fundings_get200_response.rb +266 -0
  175. data/lib/cybersource_rest_client/models/reporting_v3_net_fundings_get200_response_net_funding_summaries.rb +281 -0
  176. data/lib/cybersource_rest_client/models/reporting_v3_net_fundings_get200_response_total_purchases.rb +203 -0
  177. data/lib/cybersource_rest_client/models/reporting_v3_purchase_refund_details_get200_response.rb +273 -0
  178. data/lib/cybersource_rest_client/models/reporting_v3_purchase_refund_details_get200_response_authorizations.rb +255 -0
  179. data/lib/cybersource_rest_client/models/reporting_v3_purchase_refund_details_get200_response_fee_and_funding_details.rb +290 -0
  180. data/lib/cybersource_rest_client/models/reporting_v3_purchase_refund_details_get200_response_others.rb +260 -0
  181. data/lib/cybersource_rest_client/models/reporting_v3_purchase_refund_details_get200_response_request_details.rb +235 -0
  182. data/lib/cybersource_rest_client/models/reporting_v3_purchase_refund_details_get200_response_settlement_statuses.rb +240 -0
  183. data/lib/cybersource_rest_client/models/reporting_v3_purchase_refund_details_get200_response_settlements.rb +304 -0
  184. data/lib/cybersource_rest_client/models/reporting_v3_report_definitions_get200_response_report_definitions.rb +1 -0
  185. data/lib/cybersource_rest_client/models/reporting_v3_report_definitions_name_get200_response_attributes.rb +2 -0
  186. data/lib/cybersource_rest_client/models/reporting_v3_report_subscriptions_get200_response_subscriptions.rb +13 -13
  187. data/lib/cybersource_rest_client/models/reporting_v3_reports_get200_response_reports.rb +18 -8
  188. data/lib/cybersource_rest_client/models/reporting_v3_reports_id_get200_response.rb +15 -15
  189. data/lib/cybersource_rest_client/models/{reporting_v3_report_subscriptions_get200_response_report_preferences.rb → reporting_v3_reports_id_get200_response_report_preferences.rb} +1 -1
  190. data/lib/cybersource_rest_client/models/{reporting_v3_notificationof_changes_get400_response.rb → reportingv3_report_downloads_get400_response.rb} +42 -52
  191. data/lib/cybersource_rest_client/models/reportingv3_report_downloads_get400_response_details.rb +195 -0
  192. data/lib/cybersource_rest_client/models/reportingv3reports_report_preferences.rb +229 -0
  193. data/lib/cybersource_rest_client/models/request_body.rb +74 -104
  194. data/lib/cybersource_rest_client/models/request_body_1.rb +159 -55
  195. data/lib/cybersource_rest_client/models/tms_v1_paymentinstruments_get200_response.rb +331 -0
  196. data/lib/cybersource_rest_client/models/tms_v1_paymentinstruments_post201_response.rb +1 -1
  197. data/lib/cybersource_rest_client/models/tms_v1_paymentinstruments_post201_response_card.rb +302 -0
  198. data/lib/cybersource_rest_client/models/tmsv1instrumentidentifiers_bank_account.rb +48 -0
  199. data/lib/cybersource_rest_client/models/tmsv1instrumentidentifiers_card.rb +24 -0
  200. data/lib/cybersource_rest_client/models/tmsv1instrumentidentifiers_merchant_initiated_transaction.rb +199 -0
  201. data/lib/cybersource_rest_client/models/tmsv1instrumentidentifiers_processing_information_authorization_options_initiator.rb +1 -1
  202. data/lib/cybersource_rest_client/models/tmsv1paymentinstruments_bill_to.rb +183 -0
  203. data/lib/cybersource_rest_client/models/tmsv1paymentinstruments_buyer_information.rb +39 -0
  204. data/lib/cybersource_rest_client/models/tmsv1paymentinstruments_instrument_identifier.rb +24 -0
  205. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_error_information.rb +1 -1
  206. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_merchant_information_merchant_descriptor.rb +0 -15
  207. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information.rb +1 -1
  208. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_card.rb +0 -30
  209. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_customer.rb +184 -0
  210. data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_order_information.rb +1 -1
  211. data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_order_information_amount_details.rb +224 -0
  212. data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_payment_information.rb +1 -1
  213. data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_payment_information_card.rb +0 -15
  214. data/lib/cybersource_rest_client/models/tss_v2_transactions_post400_response.rb +1 -1
  215. data/lib/cybersource_rest_client/models/ums_v1_users_get400_response.rb +271 -0
  216. metadata +70 -10
  217. data/lib/cybersource_rest_client/api/transaction_batch_api.rb +0 -77
@@ -18,28 +18,34 @@ module CyberSource
18
18
 
19
19
  def initialize(api_client = ApiClient.default, config)
20
20
  @api_client = api_client
21
- @api_client.set_configuration(config)
21
+ @api_client.set_configuration(config)
22
22
  end
23
23
  # Get Notification Of Changes
24
- # Notification of Change Report
24
+ # Download the Notification of Change report. This report shows eCheck-related fields updated as a result of a response to an eCheck settlement transaction.
25
25
  # @param start_time Valid report Start Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format. - https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14 **Example date format:** - yyyy-MM-dd'T'HH:mm:ssXXX
26
26
  # @param end_time Valid report End Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format. - https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14 **Example date format:** - yyyy-MM-dd'T'HH:mm:ssXXX
27
27
  # @param [Hash] opts the optional parameters
28
28
  # @return [ReportingV3NotificationofChangesGet200Response]
29
29
  def get_notification_of_change_report(start_time, end_time, opts = {})
30
- data, _status_code, _headers = get_notification_of_change_report_with_http_info(start_time, end_time, opts)
31
- return data, _status_code, _headers
30
+ data, status_code, headers = get_notification_of_change_report_with_http_info(start_time, end_time, opts)
31
+ return data, status_code, headers
32
32
  end
33
33
 
34
34
  # Get Notification Of Changes
35
- # Notification of Change Report
35
+ # Download the Notification of Change report. This report shows eCheck-related fields updated as a result of a response to an eCheck settlement transaction.
36
36
  # @param start_time Valid report Start Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format. - https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14 **Example date format:** - yyyy-MM-dd'T'HH:mm:ssXXX
37
37
  # @param end_time Valid report End Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format. - https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14 **Example date format:** - yyyy-MM-dd'T'HH:mm:ssXXX
38
38
  # @param [Hash] opts the optional parameters
39
39
  # @return [Array<(ReportingV3NotificationofChangesGet200Response, Fixnum, Hash)>] ReportingV3NotificationofChangesGet200Response data, response status code and response headers
40
40
  def get_notification_of_change_report_with_http_info(start_time, end_time, opts = {})
41
- if @api_client.config.debugging
42
- @api_client.config.logger.debug 'Calling API: NotificationOfChangesApi.get_notification_of_change_report ...'
41
+
42
+ if @api_client.config.debugging
43
+ begin
44
+ raise
45
+ @api_client.config.logger.debug 'Calling API: NotificationOfChangesApi.get_notification_of_change_report ...'
46
+ rescue
47
+ puts 'Cannot write to log'
48
+ end
43
49
  end
44
50
  # verify the required parameter 'start_time' is set
45
51
  if @api_client.config.client_side_validation && start_time.nil?
@@ -78,8 +84,13 @@ module CyberSource
78
84
  :auth_names => auth_names,
79
85
  :return_type => 'ReportingV3NotificationofChangesGet200Response')
80
86
  if @api_client.config.debugging
81
- @api_client.config.logger.debug "API called: NotificationOfChangesApi#get_notification_of_change_report\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
82
- end
87
+ begin
88
+ raise
89
+ @api_client.config.logger.debug "API called: NotificationOfChangesApi#get_notification_of_change_report\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
90
+ rescue
91
+ puts 'Cannot write to log'
92
+ end
93
+ end
83
94
  return data, status_code, headers
84
95
  end
85
96
  end
@@ -18,7 +18,7 @@ module CyberSource
18
18
 
19
19
  def initialize(api_client = ApiClient.default, config)
20
20
  @api_client = api_client
21
- @api_client.set_configuration(config)
21
+ @api_client.set_configuration(config)
22
22
  end
23
23
  # Retrieve all Payment Instruments associated with an Instrument Identifier
24
24
  # @param profile_id The id of a profile containing user specific TMS configuration.
@@ -28,8 +28,8 @@ module CyberSource
28
28
  # @option opts [String] :limit The maximum number of Payment Instruments that can be returned in the array starting from the offset record in zero-based dataset. Default is 20, maximum is 100. (default to 20)
29
29
  # @return [TmsV1InstrumentidentifiersPaymentinstrumentsGet200Response]
30
30
  def tms_v1_instrumentidentifiers_token_id_paymentinstruments_get(profile_id, token_id, opts = {})
31
- data, _status_code, _headers = tms_v1_instrumentidentifiers_token_id_paymentinstruments_get_with_http_info(profile_id, token_id, opts)
32
- return data, _status_code, _headers
31
+ data, status_code, headers = tms_v1_instrumentidentifiers_token_id_paymentinstruments_get_with_http_info(profile_id, token_id, opts)
32
+ return data, status_code, headers
33
33
  end
34
34
 
35
35
  # Retrieve all Payment Instruments associated with an Instrument Identifier
@@ -40,32 +40,38 @@ module CyberSource
40
40
  # @option opts [String] :limit The maximum number of Payment Instruments that can be returned in the array starting from the offset record in zero-based dataset. Default is 20, maximum is 100.
41
41
  # @return [Array<(TmsV1InstrumentidentifiersPaymentinstrumentsGet200Response, Fixnum, Hash)>] TmsV1InstrumentidentifiersPaymentinstrumentsGet200Response data, response status code and response headers
42
42
  def tms_v1_instrumentidentifiers_token_id_paymentinstruments_get_with_http_info(profile_id, token_id, opts = {})
43
- if @api_client.config.debugging
44
- @api_client.config.logger.debug 'Calling API: PaymentInstrumentsApi.tms_v1_instrumentidentifiers_token_id_paymentinstruments_get ...'
43
+
44
+ if @api_client.config.debugging
45
+ begin
46
+ raise
47
+ @api_client.config.logger.debug 'Calling API: PaymentInstrumentsApi.tms_v1_instrumentidentifiers_token_id_paymentinstruments_get ...'
48
+ rescue
49
+ puts 'Cannot write to log'
50
+ end
45
51
  end
46
52
  # verify the required parameter 'profile_id' is set
47
53
  if @api_client.config.client_side_validation && profile_id.nil?
48
54
  fail ArgumentError, "Missing the required parameter 'profile_id' when calling PaymentInstrumentsApi.tms_v1_instrumentidentifiers_token_id_paymentinstruments_get"
49
55
  end
50
- # if @api_client.config.client_side_validation && profile_id > 36
51
- # fail ArgumentError, 'invalid value for "profile_id" when calling PaymentInstrumentsApi.tms_v1_instrumentidentifiers_token_id_paymentinstruments_get, must be smaller than or equal to 36.'
52
- # end
56
+ if @api_client.config.client_side_validation && profile_id.to_s.length > 36
57
+ fail ArgumentError, 'invalid value for "profile_id" when calling PaymentInstrumentsApi.tms_v1_instrumentidentifiers_token_id_paymentinstruments_get, the character length must be smaller than or equal to 36.'
58
+ end
53
59
 
54
- # if @api_client.config.client_side_validation && profile_id < 36
55
- # fail ArgumentError, 'invalid value for "profile_id" when calling PaymentInstrumentsApi.tms_v1_instrumentidentifiers_token_id_paymentinstruments_get, must be greater than or equal to 36.'
56
- # end
60
+ if @api_client.config.client_side_validation && profile_id.to_s.length < 36
61
+ fail ArgumentError, 'invalid value for "profile_id" when calling PaymentInstrumentsApi.tms_v1_instrumentidentifiers_token_id_paymentinstruments_get, the character length must be great than or equal to 36.'
62
+ end
57
63
 
58
64
  # verify the required parameter 'token_id' is set
59
65
  if @api_client.config.client_side_validation && token_id.nil?
60
66
  fail ArgumentError, "Missing the required parameter 'token_id' when calling PaymentInstrumentsApi.tms_v1_instrumentidentifiers_token_id_paymentinstruments_get"
61
67
  end
62
- # if @api_client.config.client_side_validation && token_id > 32
63
- # fail ArgumentError, 'invalid value for "token_id" when calling PaymentInstrumentsApi.tms_v1_instrumentidentifiers_token_id_paymentinstruments_get, must be smaller than or equal to 32.'
64
- # end
68
+ if @api_client.config.client_side_validation && token_id.to_s.length > 32
69
+ fail ArgumentError, 'invalid value for "token_id" when calling PaymentInstrumentsApi.tms_v1_instrumentidentifiers_token_id_paymentinstruments_get, the character length must be smaller than or equal to 32.'
70
+ end
65
71
 
66
- # if @api_client.config.client_side_validation && token_id < 16
67
- # fail ArgumentError, 'invalid value for "token_id" when calling PaymentInstrumentsApi.tms_v1_instrumentidentifiers_token_id_paymentinstruments_get, must be greater than or equal to 16.'
68
- # end
72
+ if @api_client.config.client_side_validation && token_id.to_s.length < 16
73
+ fail ArgumentError, 'invalid value for "token_id" when calling PaymentInstrumentsApi.tms_v1_instrumentidentifiers_token_id_paymentinstruments_get, the character length must be great than or equal to 16.'
74
+ end
69
75
 
70
76
  if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0
71
77
  fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling PaymentInstrumentsApi.tms_v1_instrumentidentifiers_token_id_paymentinstruments_get, must be greater than or equal to 0.'
@@ -109,8 +115,13 @@ module CyberSource
109
115
  :auth_names => auth_names,
110
116
  :return_type => 'TmsV1InstrumentidentifiersPaymentinstrumentsGet200Response')
111
117
  if @api_client.config.debugging
112
- @api_client.config.logger.debug "API called: PaymentInstrumentsApi#tms_v1_instrumentidentifiers_token_id_paymentinstruments_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
113
- end
118
+ begin
119
+ raise
120
+ @api_client.config.logger.debug "API called: PaymentInstrumentsApi#tms_v1_instrumentidentifiers_token_id_paymentinstruments_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
121
+ rescue
122
+ puts 'Cannot write to log'
123
+ end
124
+ end
114
125
  return data, status_code, headers
115
126
  end
116
127
  # Create a Payment Instrument
@@ -119,8 +130,8 @@ module CyberSource
119
130
  # @param [Hash] opts the optional parameters
120
131
  # @return [TmsV1PaymentinstrumentsPost201Response]
121
132
  def tms_v1_paymentinstruments_post(profile_id, body, opts = {})
122
- data, _status_code, _headers = tms_v1_paymentinstruments_post_with_http_info(profile_id, body, opts)
123
- return data, _status_code, _headers
133
+ data, status_code, headers = tms_v1_paymentinstruments_post_with_http_info(profile_id, body, opts)
134
+ return data, status_code, headers
124
135
  end
125
136
 
126
137
  # Create a Payment Instrument
@@ -129,20 +140,26 @@ module CyberSource
129
140
  # @param [Hash] opts the optional parameters
130
141
  # @return [Array<(TmsV1PaymentinstrumentsPost201Response, Fixnum, Hash)>] TmsV1PaymentinstrumentsPost201Response data, response status code and response headers
131
142
  def tms_v1_paymentinstruments_post_with_http_info(profile_id, body, opts = {})
132
- if @api_client.config.debugging
133
- @api_client.config.logger.debug 'Calling API: PaymentInstrumentsApi.tms_v1_paymentinstruments_post ...'
143
+
144
+ if @api_client.config.debugging
145
+ begin
146
+ raise
147
+ @api_client.config.logger.debug 'Calling API: PaymentInstrumentsApi.tms_v1_paymentinstruments_post ...'
148
+ rescue
149
+ puts 'Cannot write to log'
150
+ end
134
151
  end
135
152
  # verify the required parameter 'profile_id' is set
136
153
  if @api_client.config.client_side_validation && profile_id.nil?
137
154
  fail ArgumentError, "Missing the required parameter 'profile_id' when calling PaymentInstrumentsApi.tms_v1_paymentinstruments_post"
138
155
  end
139
- # if @api_client.config.client_side_validation && profile_id > 36
140
- # fail ArgumentError, 'invalid value for "profile_id" when calling PaymentInstrumentsApi.tms_v1_paymentinstruments_post, must be smaller than or equal to 36.'
141
- # end
156
+ if @api_client.config.client_side_validation && profile_id.to_s.length > 36
157
+ fail ArgumentError, 'invalid value for "profile_id" when calling PaymentInstrumentsApi.tms_v1_paymentinstruments_post, the character length must be smaller than or equal to 36.'
158
+ end
142
159
 
143
- # if @api_client.config.client_side_validation && profile_id < 36
144
- # fail ArgumentError, 'invalid value for "profile_id" when calling PaymentInstrumentsApi.tms_v1_paymentinstruments_post, must be greater than or equal to 36.'
145
- # end
160
+ if @api_client.config.client_side_validation && profile_id.to_s.length < 36
161
+ fail ArgumentError, 'invalid value for "profile_id" when calling PaymentInstrumentsApi.tms_v1_paymentinstruments_post, the character length must be great than or equal to 36.'
162
+ end
146
163
 
147
164
  # verify the required parameter 'body' is set
148
165
  if @api_client.config.client_side_validation && body.nil?
@@ -176,8 +193,13 @@ module CyberSource
176
193
  :auth_names => auth_names,
177
194
  :return_type => 'TmsV1PaymentinstrumentsPost201Response')
178
195
  if @api_client.config.debugging
179
- @api_client.config.logger.debug "API called: PaymentInstrumentsApi#tms_v1_paymentinstruments_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
180
- end
196
+ begin
197
+ raise
198
+ @api_client.config.logger.debug "API called: PaymentInstrumentsApi#tms_v1_paymentinstruments_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
199
+ rescue
200
+ puts 'Cannot write to log'
201
+ end
202
+ end
181
203
  return data, status_code, headers
182
204
  end
183
205
  # Delete a Payment Instrument
@@ -196,32 +218,38 @@ module CyberSource
196
218
  # @param [Hash] opts the optional parameters
197
219
  # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
198
220
  def tms_v1_paymentinstruments_token_id_delete_with_http_info(profile_id, token_id, opts = {})
199
- if @api_client.config.debugging
200
- @api_client.config.logger.debug 'Calling API: PaymentInstrumentsApi.tms_v1_paymentinstruments_token_id_delete ...'
221
+
222
+ if @api_client.config.debugging
223
+ begin
224
+ raise
225
+ @api_client.config.logger.debug 'Calling API: PaymentInstrumentsApi.tms_v1_paymentinstruments_token_id_delete ...'
226
+ rescue
227
+ puts 'Cannot write to log'
228
+ end
201
229
  end
202
230
  # verify the required parameter 'profile_id' is set
203
231
  if @api_client.config.client_side_validation && profile_id.nil?
204
232
  fail ArgumentError, "Missing the required parameter 'profile_id' when calling PaymentInstrumentsApi.tms_v1_paymentinstruments_token_id_delete"
205
233
  end
206
- # if @api_client.config.client_side_validation && profile_id > 36
207
- # fail ArgumentError, 'invalid value for "profile_id" when calling PaymentInstrumentsApi.tms_v1_paymentinstruments_token_id_delete, must be smaller than or equal to 36.'
208
- # end
234
+ if @api_client.config.client_side_validation && profile_id.to_s.length > 36
235
+ fail ArgumentError, 'invalid value for "profile_id" when calling PaymentInstrumentsApi.tms_v1_paymentinstruments_token_id_delete, the character length must be smaller than or equal to 36.'
236
+ end
209
237
 
210
- # if @api_client.config.client_side_validation && profile_id < 36
211
- # fail ArgumentError, 'invalid value for "profile_id" when calling PaymentInstrumentsApi.tms_v1_paymentinstruments_token_id_delete, must be greater than or equal to 36.'
212
- # end
238
+ if @api_client.config.client_side_validation && profile_id.to_s.length < 36
239
+ fail ArgumentError, 'invalid value for "profile_id" when calling PaymentInstrumentsApi.tms_v1_paymentinstruments_token_id_delete, the character length must be great than or equal to 36.'
240
+ end
213
241
 
214
242
  # verify the required parameter 'token_id' is set
215
243
  if @api_client.config.client_side_validation && token_id.nil?
216
244
  fail ArgumentError, "Missing the required parameter 'token_id' when calling PaymentInstrumentsApi.tms_v1_paymentinstruments_token_id_delete"
217
245
  end
218
- # if @api_client.config.client_side_validation && token_id > 32
219
- # fail ArgumentError, 'invalid value for "token_id" when calling PaymentInstrumentsApi.tms_v1_paymentinstruments_token_id_delete, must be smaller than or equal to 32.'
220
- # end
246
+ if @api_client.config.client_side_validation && token_id.to_s.length > 32
247
+ fail ArgumentError, 'invalid value for "token_id" when calling PaymentInstrumentsApi.tms_v1_paymentinstruments_token_id_delete, the character length must be smaller than or equal to 32.'
248
+ end
221
249
 
222
- # if @api_client.config.client_side_validation && token_id < 16
223
- # fail ArgumentError, 'invalid value for "token_id" when calling PaymentInstrumentsApi.tms_v1_paymentinstruments_token_id_delete, must be greater than or equal to 16.'
224
- # end
250
+ if @api_client.config.client_side_validation && token_id.to_s.length < 16
251
+ fail ArgumentError, 'invalid value for "token_id" when calling PaymentInstrumentsApi.tms_v1_paymentinstruments_token_id_delete, the character length must be great than or equal to 16.'
252
+ end
225
253
 
226
254
  # resource path
227
255
  local_var_path = 'tms/v1/paymentinstruments/{tokenId}'.sub('{' + 'tokenId' + '}', token_id.to_s)
@@ -250,52 +278,63 @@ module CyberSource
250
278
  :body => post_body,
251
279
  :auth_names => auth_names)
252
280
  if @api_client.config.debugging
253
- @api_client.config.logger.debug "API called: PaymentInstrumentsApi#tms_v1_paymentinstruments_token_id_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
254
- end
281
+ begin
282
+ raise
283
+ @api_client.config.logger.debug "API called: PaymentInstrumentsApi#tms_v1_paymentinstruments_token_id_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
284
+ rescue
285
+ puts 'Cannot write to log'
286
+ end
287
+ end
255
288
  return data, status_code, headers
256
289
  end
257
290
  # Retrieve a Payment Instrument
258
291
  # @param profile_id The id of a profile containing user specific TMS configuration.
259
292
  # @param token_id The TokenId of a Payment Instrument.
260
293
  # @param [Hash] opts the optional parameters
261
- # @return [TmsV1PaymentinstrumentsPost201Response]
294
+ # @return [TmsV1PaymentinstrumentsGet200Response]
262
295
  def tms_v1_paymentinstruments_token_id_get(profile_id, token_id, opts = {})
263
- data, _status_code, _headers = tms_v1_paymentinstruments_token_id_get_with_http_info(profile_id, token_id, opts)
264
- return data, _status_code, _headers
296
+ data, status_code, headers = tms_v1_paymentinstruments_token_id_get_with_http_info(profile_id, token_id, opts)
297
+ return data, status_code, headers
265
298
  end
266
299
 
267
300
  # Retrieve a Payment Instrument
268
301
  # @param profile_id The id of a profile containing user specific TMS configuration.
269
302
  # @param token_id The TokenId of a Payment Instrument.
270
303
  # @param [Hash] opts the optional parameters
271
- # @return [Array<(TmsV1PaymentinstrumentsPost201Response, Fixnum, Hash)>] TmsV1PaymentinstrumentsPost201Response data, response status code and response headers
304
+ # @return [Array<(TmsV1PaymentinstrumentsGet200Response, Fixnum, Hash)>] TmsV1PaymentinstrumentsGet200Response data, response status code and response headers
272
305
  def tms_v1_paymentinstruments_token_id_get_with_http_info(profile_id, token_id, opts = {})
273
- if @api_client.config.debugging
274
- @api_client.config.logger.debug 'Calling API: PaymentInstrumentsApi.tms_v1_paymentinstruments_token_id_get ...'
306
+
307
+ if @api_client.config.debugging
308
+ begin
309
+ raise
310
+ @api_client.config.logger.debug 'Calling API: PaymentInstrumentsApi.tms_v1_paymentinstruments_token_id_get ...'
311
+ rescue
312
+ puts 'Cannot write to log'
313
+ end
275
314
  end
276
315
  # verify the required parameter 'profile_id' is set
277
316
  if @api_client.config.client_side_validation && profile_id.nil?
278
317
  fail ArgumentError, "Missing the required parameter 'profile_id' when calling PaymentInstrumentsApi.tms_v1_paymentinstruments_token_id_get"
279
318
  end
280
- # if @api_client.config.client_side_validation && profile_id > 36
281
- # fail ArgumentError, 'invalid value for "profile_id" when calling PaymentInstrumentsApi.tms_v1_paymentinstruments_token_id_get, must be smaller than or equal to 36.'
282
- # end
319
+ if @api_client.config.client_side_validation && profile_id.to_s.length > 36
320
+ fail ArgumentError, 'invalid value for "profile_id" when calling PaymentInstrumentsApi.tms_v1_paymentinstruments_token_id_get, the character length must be smaller than or equal to 36.'
321
+ end
283
322
 
284
- # if @api_client.config.client_side_validation && profile_id < 36
285
- # fail ArgumentError, 'invalid value for "profile_id" when calling PaymentInstrumentsApi.tms_v1_paymentinstruments_token_id_get, must be greater than or equal to 36.'
286
- # end
323
+ if @api_client.config.client_side_validation && profile_id.to_s.length < 36
324
+ fail ArgumentError, 'invalid value for "profile_id" when calling PaymentInstrumentsApi.tms_v1_paymentinstruments_token_id_get, the character length must be great than or equal to 36.'
325
+ end
287
326
 
288
327
  # verify the required parameter 'token_id' is set
289
328
  if @api_client.config.client_side_validation && token_id.nil?
290
329
  fail ArgumentError, "Missing the required parameter 'token_id' when calling PaymentInstrumentsApi.tms_v1_paymentinstruments_token_id_get"
291
330
  end
292
- # if @api_client.config.client_side_validation && token_id > 32
293
- # fail ArgumentError, 'invalid value for "token_id" when calling PaymentInstrumentsApi.tms_v1_paymentinstruments_token_id_get, must be smaller than or equal to 32.'
294
- # end
331
+ if @api_client.config.client_side_validation && token_id.to_s.length > 32
332
+ fail ArgumentError, 'invalid value for "token_id" when calling PaymentInstrumentsApi.tms_v1_paymentinstruments_token_id_get, the character length must be smaller than or equal to 32.'
333
+ end
295
334
 
296
- # if @api_client.config.client_side_validation && token_id < 16
297
- # fail ArgumentError, 'invalid value for "token_id" when calling PaymentInstrumentsApi.tms_v1_paymentinstruments_token_id_get, must be greater than or equal to 16.'
298
- # end
335
+ if @api_client.config.client_side_validation && token_id.to_s.length < 16
336
+ fail ArgumentError, 'invalid value for "token_id" when calling PaymentInstrumentsApi.tms_v1_paymentinstruments_token_id_get, the character length must be great than or equal to 16.'
337
+ end
299
338
 
300
339
  # resource path
301
340
  local_var_path = 'tms/v1/paymentinstruments/{tokenId}'.sub('{' + 'tokenId' + '}', token_id.to_s)
@@ -323,10 +362,15 @@ module CyberSource
323
362
  :form_params => form_params,
324
363
  :body => post_body,
325
364
  :auth_names => auth_names,
326
- :return_type => 'TmsV1PaymentinstrumentsPost201Response')
365
+ :return_type => 'TmsV1PaymentinstrumentsGet200Response')
327
366
  if @api_client.config.debugging
328
- @api_client.config.logger.debug "API called: PaymentInstrumentsApi#tms_v1_paymentinstruments_token_id_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
329
- end
367
+ begin
368
+ raise
369
+ @api_client.config.logger.debug "API called: PaymentInstrumentsApi#tms_v1_paymentinstruments_token_id_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
370
+ rescue
371
+ puts 'Cannot write to log'
372
+ end
373
+ end
330
374
  return data, status_code, headers
331
375
  end
332
376
  # Update a Payment Instrument
@@ -334,10 +378,10 @@ module CyberSource
334
378
  # @param token_id The TokenId of a Payment Instrument.
335
379
  # @param body Please specify the customers payment details.
336
380
  # @param [Hash] opts the optional parameters
337
- # @return [TmsV1PaymentinstrumentsPost201Response]
381
+ # @return [TmsV1PaymentinstrumentsGet200Response]
338
382
  def tms_v1_paymentinstruments_token_id_patch(profile_id, token_id, body, opts = {})
339
- data, _status_code, _headers = tms_v1_paymentinstruments_token_id_patch_with_http_info(profile_id, token_id, body, opts)
340
- return data, _status_code, _headers
383
+ data, status_code, headers = tms_v1_paymentinstruments_token_id_patch_with_http_info(profile_id, token_id, body, opts)
384
+ return data, status_code, headers
341
385
  end
342
386
 
343
387
  # Update a Payment Instrument
@@ -345,34 +389,40 @@ module CyberSource
345
389
  # @param token_id The TokenId of a Payment Instrument.
346
390
  # @param body Please specify the customers payment details.
347
391
  # @param [Hash] opts the optional parameters
348
- # @return [Array<(TmsV1PaymentinstrumentsPost201Response, Fixnum, Hash)>] TmsV1PaymentinstrumentsPost201Response data, response status code and response headers
392
+ # @return [Array<(TmsV1PaymentinstrumentsGet200Response, Fixnum, Hash)>] TmsV1PaymentinstrumentsGet200Response data, response status code and response headers
349
393
  def tms_v1_paymentinstruments_token_id_patch_with_http_info(profile_id, token_id, body, opts = {})
350
- if @api_client.config.debugging
351
- @api_client.config.logger.debug 'Calling API: PaymentInstrumentsApi.tms_v1_paymentinstruments_token_id_patch ...'
394
+
395
+ if @api_client.config.debugging
396
+ begin
397
+ raise
398
+ @api_client.config.logger.debug 'Calling API: PaymentInstrumentsApi.tms_v1_paymentinstruments_token_id_patch ...'
399
+ rescue
400
+ puts 'Cannot write to log'
401
+ end
352
402
  end
353
403
  # verify the required parameter 'profile_id' is set
354
404
  if @api_client.config.client_side_validation && profile_id.nil?
355
405
  fail ArgumentError, "Missing the required parameter 'profile_id' when calling PaymentInstrumentsApi.tms_v1_paymentinstruments_token_id_patch"
356
406
  end
357
- # if @api_client.config.client_side_validation && profile_id > 36
358
- # fail ArgumentError, 'invalid value for "profile_id" when calling PaymentInstrumentsApi.tms_v1_paymentinstruments_token_id_patch, must be smaller than or equal to 36.'
359
- # end
407
+ if @api_client.config.client_side_validation && profile_id.to_s.length > 36
408
+ fail ArgumentError, 'invalid value for "profile_id" when calling PaymentInstrumentsApi.tms_v1_paymentinstruments_token_id_patch, the character length must be smaller than or equal to 36.'
409
+ end
360
410
 
361
- # if @api_client.config.client_side_validation && profile_id < 36
362
- # fail ArgumentError, 'invalid value for "profile_id" when calling PaymentInstrumentsApi.tms_v1_paymentinstruments_token_id_patch, must be greater than or equal to 36.'
363
- # end
411
+ if @api_client.config.client_side_validation && profile_id.to_s.length < 36
412
+ fail ArgumentError, 'invalid value for "profile_id" when calling PaymentInstrumentsApi.tms_v1_paymentinstruments_token_id_patch, the character length must be great than or equal to 36.'
413
+ end
364
414
 
365
415
  # verify the required parameter 'token_id' is set
366
416
  if @api_client.config.client_side_validation && token_id.nil?
367
417
  fail ArgumentError, "Missing the required parameter 'token_id' when calling PaymentInstrumentsApi.tms_v1_paymentinstruments_token_id_patch"
368
418
  end
369
- # if @api_client.config.client_side_validation && token_id > 32
370
- # fail ArgumentError, 'invalid value for "token_id" when calling PaymentInstrumentsApi.tms_v1_paymentinstruments_token_id_patch, must be smaller than or equal to 32.'
371
- # end
419
+ if @api_client.config.client_side_validation && token_id.to_s.length > 32
420
+ fail ArgumentError, 'invalid value for "token_id" when calling PaymentInstrumentsApi.tms_v1_paymentinstruments_token_id_patch, the character length must be smaller than or equal to 32.'
421
+ end
372
422
 
373
- # if @api_client.config.client_side_validation && token_id < 16
374
- # fail ArgumentError, 'invalid value for "token_id" when calling PaymentInstrumentsApi.tms_v1_paymentinstruments_token_id_patch, must be greater than or equal to 16.'
375
- # end
423
+ if @api_client.config.client_side_validation && token_id.to_s.length < 16
424
+ fail ArgumentError, 'invalid value for "token_id" when calling PaymentInstrumentsApi.tms_v1_paymentinstruments_token_id_patch, the character length must be great than or equal to 16.'
425
+ end
376
426
 
377
427
  # verify the required parameter 'body' is set
378
428
  if @api_client.config.client_side_validation && body.nil?
@@ -404,10 +454,15 @@ module CyberSource
404
454
  :form_params => form_params,
405
455
  :body => post_body,
406
456
  :auth_names => auth_names,
407
- :return_type => 'TmsV1PaymentinstrumentsPost201Response')
457
+ :return_type => 'TmsV1PaymentinstrumentsGet200Response')
408
458
  if @api_client.config.debugging
409
- @api_client.config.logger.debug "API called: PaymentInstrumentsApi#tms_v1_paymentinstruments_token_id_patch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
410
- end
459
+ begin
460
+ raise
461
+ @api_client.config.logger.debug "API called: PaymentInstrumentsApi#tms_v1_paymentinstruments_token_id_patch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
462
+ rescue
463
+ puts 'Cannot write to log'
464
+ end
465
+ end
411
466
  return data, status_code, headers
412
467
  end
413
468
  end
@@ -18,7 +18,7 @@ module CyberSource
18
18
 
19
19
  def initialize(api_client = ApiClient.default, config)
20
20
  @api_client = api_client
21
- @api_client.set_configuration(config)
21
+ @api_client.set_configuration(config)
22
22
  end
23
23
  # Process a Payment
24
24
  # Authorize the payment for the transaction.
@@ -26,8 +26,8 @@ module CyberSource
26
26
  # @param [Hash] opts the optional parameters
27
27
  # @return [PtsV2PaymentsPost201Response]
28
28
  def create_payment(create_payment_request, opts = {})
29
- data, _status_code, _headers = create_payment_with_http_info(create_payment_request, opts)
30
- return data, _status_code, _headers
29
+ data, status_code, headers = create_payment_with_http_info(create_payment_request, opts)
30
+ return data, status_code, headers
31
31
  end
32
32
 
33
33
  # Process a Payment
@@ -36,8 +36,14 @@ module CyberSource
36
36
  # @param [Hash] opts the optional parameters
37
37
  # @return [Array<(PtsV2PaymentsPost201Response, Fixnum, Hash)>] PtsV2PaymentsPost201Response data, response status code and response headers
38
38
  def create_payment_with_http_info(create_payment_request, opts = {})
39
- if @api_client.config.debugging
40
- @api_client.config.logger.debug 'Calling API: PaymentsApi.create_payment ...'
39
+
40
+ if @api_client.config.debugging
41
+ begin
42
+ raise
43
+ @api_client.config.logger.debug 'Calling API: PaymentsApi.create_payment ...'
44
+ rescue
45
+ puts 'Cannot write to log'
46
+ end
41
47
  end
42
48
  # verify the required parameter 'create_payment_request' is set
43
49
  if @api_client.config.client_side_validation && create_payment_request.nil?
@@ -52,7 +58,7 @@ module CyberSource
52
58
  # header parameters
53
59
  header_params = {}
54
60
  # HTTP header 'Accept' (if needed)
55
- header_params['Accept'] = @api_client.select_header_accept(['application/hal+json'])
61
+ header_params['Accept'] = @api_client.select_header_accept(['application/hal+json;charset=utf-8'])
56
62
  # HTTP header 'Content-Type'
57
63
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json;charset=utf-8'])
58
64
 
@@ -70,8 +76,13 @@ module CyberSource
70
76
  :auth_names => auth_names,
71
77
  :return_type => 'PtsV2PaymentsPost201Response')
72
78
  if @api_client.config.debugging
73
- @api_client.config.logger.debug "API called: PaymentsApi#create_payment\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
74
- end
79
+ begin
80
+ raise
81
+ @api_client.config.logger.debug "API called: PaymentsApi#create_payment\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
82
+ rescue
83
+ puts 'Cannot write to log'
84
+ end
85
+ end
75
86
  return data, status_code, headers
76
87
  end
77
88
  end