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,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
  # Flex Tokenize card
24
24
  # Returns a token representing the supplied card details. The token replaces card data and can be used as the Subscription ID in the CyberSource Simple Order API or SCMP API. This is an unauthenticated call that you should initiate from your customer’s device or browser.
@@ -26,8 +26,8 @@ module CyberSource
26
26
  # @option opts [TokenizeRequest] :tokenize_request
27
27
  # @return [FlexV1TokensPost200Response]
28
28
  def tokenize(opts = {})
29
- data, _status_code, _headers = tokenize_with_http_info(opts)
30
- return data, _status_code, _headers
29
+ data, status_code, headers = tokenize_with_http_info(opts)
30
+ return data, status_code, headers
31
31
  end
32
32
 
33
33
  # Flex Tokenize card
@@ -36,8 +36,14 @@ module CyberSource
36
36
  # @option opts [TokenizeRequest] :tokenize_request
37
37
  # @return [Array<(FlexV1TokensPost200Response, Fixnum, Hash)>] FlexV1TokensPost200Response data, response status code and response headers
38
38
  def tokenize_with_http_info(opts = {})
39
- if @api_client.config.debugging
40
- @api_client.config.logger.debug 'Calling API: FlexTokenApi.tokenize ...'
39
+
40
+ if @api_client.config.debugging
41
+ begin
42
+ raise
43
+ @api_client.config.logger.debug 'Calling API: FlexTokenApi.tokenize ...'
44
+ rescue
45
+ puts 'Cannot write to log'
46
+ end
41
47
  end
42
48
  # resource path
43
49
  local_var_path = 'flex/v1/tokens/'
@@ -66,8 +72,13 @@ module CyberSource
66
72
  :auth_names => auth_names,
67
73
  :return_type => 'FlexV1TokensPost200Response')
68
74
  if @api_client.config.debugging
69
- @api_client.config.logger.debug "API called: FlexTokenApi#tokenize\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
70
- end
75
+ begin
76
+ raise
77
+ @api_client.config.logger.debug "API called: FlexTokenApi#tokenize\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
78
+ rescue
79
+ puts 'Cannot write to log'
80
+ end
81
+ end
71
82
  return data, status_code, headers
72
83
  end
73
84
  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
  # Delete an Instrument Identifier
24
24
  # @param profile_id The id of a profile containing user specific TMS configuration.
@@ -26,8 +26,8 @@ module CyberSource
26
26
  # @param [Hash] opts the optional parameters
27
27
  # @return [nil]
28
28
  def tms_v1_instrumentidentifiers_token_id_delete(profile_id, token_id, opts = {})
29
- data, _status_code, _headers = tms_v1_instrumentidentifiers_token_id_delete_with_http_info(profile_id, token_id, opts)
30
- return data, _status_code, _headers
29
+ data, status_code, headers = tms_v1_instrumentidentifiers_token_id_delete_with_http_info(profile_id, token_id, opts)
30
+ return data, status_code, headers
31
31
  end
32
32
 
33
33
  # Delete an Instrument Identifier
@@ -36,32 +36,38 @@ module CyberSource
36
36
  # @param [Hash] opts the optional parameters
37
37
  # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
38
38
  def tms_v1_instrumentidentifiers_token_id_delete_with_http_info(profile_id, token_id, opts = {})
39
- if @api_client.config.debugging
40
- @api_client.config.logger.debug 'Calling API: InstrumentIdentifierApi.tms_v1_instrumentidentifiers_token_id_delete ...'
39
+
40
+ if @api_client.config.debugging
41
+ begin
42
+ raise
43
+ @api_client.config.logger.debug 'Calling API: InstrumentIdentifierApi.tms_v1_instrumentidentifiers_token_id_delete ...'
44
+ rescue
45
+ puts 'Cannot write to log'
46
+ end
41
47
  end
42
48
  # verify the required parameter 'profile_id' is set
43
49
  if @api_client.config.client_side_validation && profile_id.nil?
44
50
  fail ArgumentError, "Missing the required parameter 'profile_id' when calling InstrumentIdentifierApi.tms_v1_instrumentidentifiers_token_id_delete"
45
51
  end
46
- # if @api_client.config.client_side_validation && profile_id > 36
47
- # fail ArgumentError, 'invalid value for "profile_id" when calling InstrumentIdentifierApi.tms_v1_instrumentidentifiers_token_id_delete, must be smaller than or equal to 36.'
48
- # end
52
+ if @api_client.config.client_side_validation && profile_id.to_s.length > 36
53
+ fail ArgumentError, 'invalid value for "profile_id" when calling InstrumentIdentifierApi.tms_v1_instrumentidentifiers_token_id_delete, the character length must be smaller than or equal to 36.'
54
+ end
49
55
 
50
- # if @api_client.config.client_side_validation && profile_id < 36
51
- # fail ArgumentError, 'invalid value for "profile_id" when calling InstrumentIdentifierApi.tms_v1_instrumentidentifiers_token_id_delete, must be greater 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 InstrumentIdentifierApi.tms_v1_instrumentidentifiers_token_id_delete, the character length must be great than or equal to 36.'
58
+ end
53
59
 
54
60
  # verify the required parameter 'token_id' is set
55
61
  if @api_client.config.client_side_validation && token_id.nil?
56
62
  fail ArgumentError, "Missing the required parameter 'token_id' when calling InstrumentIdentifierApi.tms_v1_instrumentidentifiers_token_id_delete"
57
63
  end
58
- # if @api_client.config.client_side_validation && token_id > 32
59
- # fail ArgumentError, 'invalid value for "token_id" when calling InstrumentIdentifierApi.tms_v1_instrumentidentifiers_token_id_delete, must be smaller than or equal to 32.'
60
- # end
64
+ if @api_client.config.client_side_validation && token_id.to_s.length > 32
65
+ fail ArgumentError, 'invalid value for "token_id" when calling InstrumentIdentifierApi.tms_v1_instrumentidentifiers_token_id_delete, the character length must be smaller than or equal to 32.'
66
+ end
61
67
 
62
- # if @api_client.config.client_side_validation && token_id < 16
63
- # fail ArgumentError, 'invalid value for "token_id" when calling InstrumentIdentifierApi.tms_v1_instrumentidentifiers_token_id_delete, must be greater than or equal to 16.'
64
- # end
68
+ if @api_client.config.client_side_validation && token_id.to_s.length < 16
69
+ fail ArgumentError, 'invalid value for "token_id" when calling InstrumentIdentifierApi.tms_v1_instrumentidentifiers_token_id_delete, the character length must be great than or equal to 16.'
70
+ end
65
71
 
66
72
  # resource path
67
73
  local_var_path = 'tms/v1/instrumentidentifiers/{tokenId}'.sub('{' + 'tokenId' + '}', token_id.to_s)
@@ -90,8 +96,13 @@ module CyberSource
90
96
  :body => post_body,
91
97
  :auth_names => auth_names)
92
98
  if @api_client.config.debugging
93
- @api_client.config.logger.debug "API called: InstrumentIdentifierApi#tms_v1_instrumentidentifiers_token_id_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
94
- end
99
+ begin
100
+ raise
101
+ @api_client.config.logger.debug "API called: InstrumentIdentifierApi#tms_v1_instrumentidentifiers_token_id_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
102
+ rescue
103
+ puts 'Cannot write to log'
104
+ end
105
+ end
95
106
  return data, status_code, headers
96
107
  end
97
108
  # Retrieve an Instrument Identifier
@@ -100,8 +111,8 @@ module CyberSource
100
111
  # @param [Hash] opts the optional parameters
101
112
  # @return [TmsV1InstrumentidentifiersPost200Response]
102
113
  def tms_v1_instrumentidentifiers_token_id_get(profile_id, token_id, opts = {})
103
- data, _status_code, _headers = tms_v1_instrumentidentifiers_token_id_get_with_http_info(profile_id, token_id, opts)
104
- return data, _status_code, _headers
114
+ data, status_code, headers = tms_v1_instrumentidentifiers_token_id_get_with_http_info(profile_id, token_id, opts)
115
+ return data, status_code, headers
105
116
  end
106
117
 
107
118
  # Retrieve an Instrument Identifier
@@ -110,32 +121,38 @@ module CyberSource
110
121
  # @param [Hash] opts the optional parameters
111
122
  # @return [Array<(TmsV1InstrumentidentifiersPost200Response, Fixnum, Hash)>] TmsV1InstrumentidentifiersPost200Response data, response status code and response headers
112
123
  def tms_v1_instrumentidentifiers_token_id_get_with_http_info(profile_id, token_id, opts = {})
113
- if @api_client.config.debugging
114
- @api_client.config.logger.debug 'Calling API: InstrumentIdentifierApi.tms_v1_instrumentidentifiers_token_id_get ...'
124
+
125
+ if @api_client.config.debugging
126
+ begin
127
+ raise
128
+ @api_client.config.logger.debug 'Calling API: InstrumentIdentifierApi.tms_v1_instrumentidentifiers_token_id_get ...'
129
+ rescue
130
+ puts 'Cannot write to log'
131
+ end
115
132
  end
116
133
  # verify the required parameter 'profile_id' is set
117
134
  if @api_client.config.client_side_validation && profile_id.nil?
118
135
  fail ArgumentError, "Missing the required parameter 'profile_id' when calling InstrumentIdentifierApi.tms_v1_instrumentidentifiers_token_id_get"
119
136
  end
120
- # if @api_client.config.client_side_validation && profile_id > 36
121
- # fail ArgumentError, 'invalid value for "profile_id" when calling InstrumentIdentifierApi.tms_v1_instrumentidentifiers_token_id_get, must be smaller than or equal to 36.'
122
- # end
137
+ if @api_client.config.client_side_validation && profile_id.to_s.length > 36
138
+ fail ArgumentError, 'invalid value for "profile_id" when calling InstrumentIdentifierApi.tms_v1_instrumentidentifiers_token_id_get, the character length must be smaller than or equal to 36.'
139
+ end
123
140
 
124
- # if @api_client.config.client_side_validation && profile_id < 36
125
- # fail ArgumentError, 'invalid value for "profile_id" when calling InstrumentIdentifierApi.tms_v1_instrumentidentifiers_token_id_get, must be greater than or equal to 36.'
126
- # end
141
+ if @api_client.config.client_side_validation && profile_id.to_s.length < 36
142
+ fail ArgumentError, 'invalid value for "profile_id" when calling InstrumentIdentifierApi.tms_v1_instrumentidentifiers_token_id_get, the character length must be great than or equal to 36.'
143
+ end
127
144
 
128
145
  # verify the required parameter 'token_id' is set
129
146
  if @api_client.config.client_side_validation && token_id.nil?
130
147
  fail ArgumentError, "Missing the required parameter 'token_id' when calling InstrumentIdentifierApi.tms_v1_instrumentidentifiers_token_id_get"
131
148
  end
132
- # if @api_client.config.client_side_validation && token_id > 32
133
- # fail ArgumentError, 'invalid value for "token_id" when calling InstrumentIdentifierApi.tms_v1_instrumentidentifiers_token_id_get, must be smaller than or equal to 32.'
134
- # end
149
+ if @api_client.config.client_side_validation && token_id.to_s.length > 32
150
+ fail ArgumentError, 'invalid value for "token_id" when calling InstrumentIdentifierApi.tms_v1_instrumentidentifiers_token_id_get, the character length must be smaller than or equal to 32.'
151
+ end
135
152
 
136
- # if @api_client.config.client_side_validation && token_id < 16
137
- # fail ArgumentError, 'invalid value for "token_id" when calling InstrumentIdentifierApi.tms_v1_instrumentidentifiers_token_id_get, must be greater than or equal to 16.'
138
- # end
153
+ if @api_client.config.client_side_validation && token_id.to_s.length < 16
154
+ fail ArgumentError, 'invalid value for "token_id" when calling InstrumentIdentifierApi.tms_v1_instrumentidentifiers_token_id_get, the character length must be great than or equal to 16.'
155
+ end
139
156
 
140
157
  # resource path
141
158
  local_var_path = 'tms/v1/instrumentidentifiers/{tokenId}'.sub('{' + 'tokenId' + '}', token_id.to_s)
@@ -165,8 +182,13 @@ module CyberSource
165
182
  :auth_names => auth_names,
166
183
  :return_type => 'TmsV1InstrumentidentifiersPost200Response')
167
184
  if @api_client.config.debugging
168
- @api_client.config.logger.debug "API called: InstrumentIdentifierApi#tms_v1_instrumentidentifiers_token_id_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
169
- end
185
+ begin
186
+ raise
187
+ @api_client.config.logger.debug "API called: InstrumentIdentifierApi#tms_v1_instrumentidentifiers_token_id_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
188
+ rescue
189
+ puts 'Cannot write to log'
190
+ end
191
+ end
170
192
  return data, status_code, headers
171
193
  end
172
194
  # Update a Instrument Identifier
@@ -176,8 +198,8 @@ module CyberSource
176
198
  # @param [Hash] opts the optional parameters
177
199
  # @return [TmsV1InstrumentidentifiersPost200Response]
178
200
  def tms_v1_instrumentidentifiers_token_id_patch(profile_id, token_id, body, opts = {})
179
- data, _status_code, _headers = tms_v1_instrumentidentifiers_token_id_patch_with_http_info(profile_id, token_id, body, opts)
180
- return data, _status_code, _headers
201
+ data, status_code, headers = tms_v1_instrumentidentifiers_token_id_patch_with_http_info(profile_id, token_id, body, opts)
202
+ return data, status_code, headers
181
203
  end
182
204
 
183
205
  # Update a Instrument Identifier
@@ -187,32 +209,38 @@ module CyberSource
187
209
  # @param [Hash] opts the optional parameters
188
210
  # @return [Array<(TmsV1InstrumentidentifiersPost200Response, Fixnum, Hash)>] TmsV1InstrumentidentifiersPost200Response data, response status code and response headers
189
211
  def tms_v1_instrumentidentifiers_token_id_patch_with_http_info(profile_id, token_id, body, opts = {})
190
- if @api_client.config.debugging
191
- @api_client.config.logger.debug 'Calling API: InstrumentIdentifierApi.tms_v1_instrumentidentifiers_token_id_patch ...'
212
+
213
+ if @api_client.config.debugging
214
+ begin
215
+ raise
216
+ @api_client.config.logger.debug 'Calling API: InstrumentIdentifierApi.tms_v1_instrumentidentifiers_token_id_patch ...'
217
+ rescue
218
+ puts 'Cannot write to log'
219
+ end
192
220
  end
193
221
  # verify the required parameter 'profile_id' is set
194
222
  if @api_client.config.client_side_validation && profile_id.nil?
195
223
  fail ArgumentError, "Missing the required parameter 'profile_id' when calling InstrumentIdentifierApi.tms_v1_instrumentidentifiers_token_id_patch"
196
224
  end
197
- # if @api_client.config.client_side_validation && profile_id > 36
198
- # fail ArgumentError, 'invalid value for "profile_id" when calling InstrumentIdentifierApi.tms_v1_instrumentidentifiers_token_id_patch, must be smaller than or equal to 36.'
199
- # end
225
+ if @api_client.config.client_side_validation && profile_id.to_s.length > 36
226
+ fail ArgumentError, 'invalid value for "profile_id" when calling InstrumentIdentifierApi.tms_v1_instrumentidentifiers_token_id_patch, the character length must be smaller than or equal to 36.'
227
+ end
200
228
 
201
- # if @api_client.config.client_side_validation && profile_id < 36
202
- # fail ArgumentError, 'invalid value for "profile_id" when calling InstrumentIdentifierApi.tms_v1_instrumentidentifiers_token_id_patch, must be greater than or equal to 36.'
203
- # end
229
+ if @api_client.config.client_side_validation && profile_id.to_s.length < 36
230
+ fail ArgumentError, 'invalid value for "profile_id" when calling InstrumentIdentifierApi.tms_v1_instrumentidentifiers_token_id_patch, the character length must be great than or equal to 36.'
231
+ end
204
232
 
205
233
  # verify the required parameter 'token_id' is set
206
234
  if @api_client.config.client_side_validation && token_id.nil?
207
235
  fail ArgumentError, "Missing the required parameter 'token_id' when calling InstrumentIdentifierApi.tms_v1_instrumentidentifiers_token_id_patch"
208
236
  end
209
- # if @api_client.config.client_side_validation && token_id > 32
210
- # fail ArgumentError, 'invalid value for "token_id" when calling InstrumentIdentifierApi.tms_v1_instrumentidentifiers_token_id_patch, must be smaller than or equal to 32.'
211
- # end
237
+ if @api_client.config.client_side_validation && token_id.to_s.length > 32
238
+ fail ArgumentError, 'invalid value for "token_id" when calling InstrumentIdentifierApi.tms_v1_instrumentidentifiers_token_id_patch, the character length must be smaller than or equal to 32.'
239
+ end
212
240
 
213
- # if @api_client.config.client_side_validation && token_id < 16
214
- # fail ArgumentError, 'invalid value for "token_id" when calling InstrumentIdentifierApi.tms_v1_instrumentidentifiers_token_id_patch, must be greater than or equal to 16.'
215
- # end
241
+ if @api_client.config.client_side_validation && token_id.to_s.length < 16
242
+ fail ArgumentError, 'invalid value for "token_id" when calling InstrumentIdentifierApi.tms_v1_instrumentidentifiers_token_id_patch, the character length must be great than or equal to 16.'
243
+ end
216
244
 
217
245
  # verify the required parameter 'body' is set
218
246
  if @api_client.config.client_side_validation && body.nil?
@@ -246,8 +274,13 @@ module CyberSource
246
274
  :auth_names => auth_names,
247
275
  :return_type => 'TmsV1InstrumentidentifiersPost200Response')
248
276
  if @api_client.config.debugging
249
- @api_client.config.logger.debug "API called: InstrumentIdentifierApi#tms_v1_instrumentidentifiers_token_id_patch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
250
- end
277
+ begin
278
+ raise
279
+ @api_client.config.logger.debug "API called: InstrumentIdentifierApi#tms_v1_instrumentidentifiers_token_id_patch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
280
+ rescue
281
+ puts 'Cannot write to log'
282
+ end
283
+ end
251
284
  return data, status_code, headers
252
285
  end
253
286
  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
  # Create an Instrument Identifier
24
24
  # @param profile_id The id of a profile containing user specific TMS configuration.
@@ -26,8 +26,8 @@ module CyberSource
26
26
  # @param [Hash] opts the optional parameters
27
27
  # @return [TmsV1InstrumentidentifiersPost200Response]
28
28
  def tms_v1_instrumentidentifiers_post(profile_id, body, opts = {})
29
- data, _status_code, _headers = tms_v1_instrumentidentifiers_post_with_http_info(profile_id, body, opts)
30
- return data, _status_code, _headers
29
+ data, status_code, headers = tms_v1_instrumentidentifiers_post_with_http_info(profile_id, body, opts)
30
+ return data, status_code, headers
31
31
  end
32
32
 
33
33
  # Create an Instrument Identifier
@@ -36,20 +36,26 @@ module CyberSource
36
36
  # @param [Hash] opts the optional parameters
37
37
  # @return [Array<(TmsV1InstrumentidentifiersPost200Response, Fixnum, Hash)>] TmsV1InstrumentidentifiersPost200Response data, response status code and response headers
38
38
  def tms_v1_instrumentidentifiers_post_with_http_info(profile_id, body, opts = {})
39
- if @api_client.config.debugging
40
- @api_client.config.logger.debug 'Calling API: InstrumentIdentifiersApi.tms_v1_instrumentidentifiers_post ...'
39
+
40
+ if @api_client.config.debugging
41
+ begin
42
+ raise
43
+ @api_client.config.logger.debug 'Calling API: InstrumentIdentifiersApi.tms_v1_instrumentidentifiers_post ...'
44
+ rescue
45
+ puts 'Cannot write to log'
46
+ end
41
47
  end
42
48
  # verify the required parameter 'profile_id' is set
43
49
  if @api_client.config.client_side_validation && profile_id.nil?
44
50
  fail ArgumentError, "Missing the required parameter 'profile_id' when calling InstrumentIdentifiersApi.tms_v1_instrumentidentifiers_post"
45
51
  end
46
- # if @api_client.config.client_side_validation && profile_id > 36
47
- # fail ArgumentError, 'invalid value for "profile_id" when calling InstrumentIdentifiersApi.tms_v1_instrumentidentifiers_post, must be smaller than or equal to 36.'
48
- # end
52
+ if @api_client.config.client_side_validation && profile_id.to_s.length > 36
53
+ fail ArgumentError, 'invalid value for "profile_id" when calling InstrumentIdentifiersApi.tms_v1_instrumentidentifiers_post, the character length must be smaller than or equal to 36.'
54
+ end
49
55
 
50
- # if @api_client.config.client_side_validation && profile_id < 36
51
- # fail ArgumentError, 'invalid value for "profile_id" when calling InstrumentIdentifiersApi.tms_v1_instrumentidentifiers_post, must be greater 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 InstrumentIdentifiersApi.tms_v1_instrumentidentifiers_post, the character length must be great than or equal to 36.'
58
+ end
53
59
 
54
60
  # verify the required parameter 'body' is set
55
61
  if @api_client.config.client_side_validation && body.nil?
@@ -83,8 +89,13 @@ module CyberSource
83
89
  :auth_names => auth_names,
84
90
  :return_type => 'TmsV1InstrumentidentifiersPost200Response')
85
91
  if @api_client.config.debugging
86
- @api_client.config.logger.debug "API called: InstrumentIdentifiersApi#tms_v1_instrumentidentifiers_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
87
- end
92
+ begin
93
+ raise
94
+ @api_client.config.logger.debug "API called: InstrumentIdentifiersApi#tms_v1_instrumentidentifiers_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
95
+ rescue
96
+ puts 'Cannot write to log'
97
+ end
98
+ end
88
99
  return data, status_code, headers
89
100
  end
90
101
  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
  # Generate Key
24
24
  # Generate a one-time use public key and key ID to encrypt the card number in the follow-on Tokenize Card request. The key used to encrypt the card number on the cardholder’s device or browser is valid for 15 minutes and must be used to verify the signature in the response message. CyberSource recommends creating a new key for each order. Generating a key is an authenticated request initiated from your servers, prior to requesting to tokenize the card data from your customer’s device or browser.
@@ -26,8 +26,8 @@ module CyberSource
26
26
  # @option opts [GeneratePublicKeyRequest] :generate_public_key_request
27
27
  # @return [FlexV1KeysPost200Response]
28
28
  def generate_public_key(opts = {})
29
- data, _status_code, _headers = generate_public_key_with_http_info(opts)
30
- return data, _status_code, _headers
29
+ data, status_code, headers = generate_public_key_with_http_info(opts)
30
+ return data, status_code, headers
31
31
  end
32
32
 
33
33
  # Generate Key
@@ -36,8 +36,14 @@ module CyberSource
36
36
  # @option opts [GeneratePublicKeyRequest] :generate_public_key_request
37
37
  # @return [Array<(FlexV1KeysPost200Response, Fixnum, Hash)>] FlexV1KeysPost200Response data, response status code and response headers
38
38
  def generate_public_key_with_http_info(opts = {})
39
- if @api_client.config.debugging
40
- @api_client.config.logger.debug 'Calling API: KeyGenerationApi.generate_public_key ...'
39
+
40
+ if @api_client.config.debugging
41
+ begin
42
+ raise
43
+ @api_client.config.logger.debug 'Calling API: KeyGenerationApi.generate_public_key ...'
44
+ rescue
45
+ puts 'Cannot write to log'
46
+ end
41
47
  end
42
48
  # resource path
43
49
  local_var_path = 'flex/v1/keys/'
@@ -66,8 +72,13 @@ module CyberSource
66
72
  :auth_names => auth_names,
67
73
  :return_type => 'FlexV1KeysPost200Response')
68
74
  if @api_client.config.debugging
69
- @api_client.config.logger.debug "API called: KeyGenerationApi#generate_public_key\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
70
- end
75
+ begin
76
+ raise
77
+ @api_client.config.logger.debug "API called: KeyGenerationApi#generate_public_key\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
78
+ rescue
79
+ puts 'Cannot write to log'
80
+ end
81
+ end
71
82
  return data, status_code, headers
72
83
  end
73
84
  end
@@ -0,0 +1,115 @@
1
+ =begin
2
+ #CyberSource Flex API
3
+
4
+ #Simple PAN tokenization service
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 NetFundingsApi
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
+ # Get Netfunding information for an account or a merchant
24
+ # Get Netfunding information for an account or a merchant.
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&#39;T&#39;HH:mm:ssXXX
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&#39;T&#39;HH:mm:ssXXX
27
+ # @param [Hash] opts the optional parameters
28
+ # @option opts [String] :organization_id Valid Cybersource Organization Id
29
+ # @option opts [String] :group_name Valid CyberSource Group Name.
30
+ # @return [ReportingV3NetFundingsGet200Response]
31
+ def get_net_funding_info(start_time, end_time, opts = {})
32
+ data, status_code, headers = get_net_funding_info_with_http_info(start_time, end_time, opts)
33
+ return data, status_code, headers
34
+ end
35
+
36
+ # Get Netfunding information for an account or a merchant
37
+ # Get Netfunding information for an account or a merchant.
38
+ # @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&#39;T&#39;HH:mm:ssXXX
39
+ # @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&#39;T&#39;HH:mm:ssXXX
40
+ # @param [Hash] opts the optional parameters
41
+ # @option opts [String] :organization_id Valid Cybersource Organization Id
42
+ # @option opts [String] :group_name Valid CyberSource Group Name.
43
+ # @return [Array<(ReportingV3NetFundingsGet200Response, Fixnum, Hash)>] ReportingV3NetFundingsGet200Response data, response status code and response headers
44
+ def get_net_funding_info_with_http_info(start_time, end_time, opts = {})
45
+
46
+ if @api_client.config.debugging
47
+ begin
48
+ raise
49
+ @api_client.config.logger.debug 'Calling API: NetFundingsApi.get_net_funding_info ...'
50
+ rescue
51
+ puts 'Cannot write to log'
52
+ end
53
+ end
54
+ # verify the required parameter 'start_time' is set
55
+ if @api_client.config.client_side_validation && start_time.nil?
56
+ fail ArgumentError, "Missing the required parameter 'start_time' when calling NetFundingsApi.get_net_funding_info"
57
+ end
58
+ # verify the required parameter 'end_time' is set
59
+ if @api_client.config.client_side_validation && end_time.nil?
60
+ fail ArgumentError, "Missing the required parameter 'end_time' when calling NetFundingsApi.get_net_funding_info"
61
+ end
62
+ if @api_client.config.client_side_validation && !opts[:'organization_id'].nil? && opts[:'organization_id'].to_s.length > 32
63
+ fail ArgumentError, 'invalid value for "opts[:"organization_id"]" when calling NetFundingsApi.get_net_funding_info, the character length must be smaller than or equal to 32.'
64
+ end
65
+
66
+ if @api_client.config.client_side_validation && !opts[:'organization_id'].nil? && opts[:'organization_id'].to_s.length < 1
67
+ fail ArgumentError, 'invalid value for "opts[:"organization_id"]" when calling NetFundingsApi.get_net_funding_info, the character length must be great than or equal to 1.'
68
+ end
69
+
70
+ #if @api_client.config.client_side_validation && !opts[:'organization_id'].nil? && opts[:'organization_id'] !~ Regexp.new(/[a-zA-Z0-9-_]+/)
71
+ #fail ArgumentError, "invalid value for 'opts[:\"organization_id\"]' when calling NetFundingsApi.get_net_funding_info, must conform to the pattern /[a-zA-Z0-9-_]+/."
72
+ #end
73
+
74
+ # resource path
75
+ local_var_path = 'reporting/v3/net-fundings'
76
+
77
+ # query parameters
78
+ query_params = {}
79
+ query_params[:'startTime'] = start_time
80
+ query_params[:'endTime'] = end_time
81
+ query_params[:'organizationId'] = opts[:'organization_id'] if !opts[:'organization_id'].nil?
82
+ query_params[:'groupName'] = opts[:'group_name'] if !opts[:'group_name'].nil?
83
+
84
+ # header parameters
85
+ header_params = {}
86
+ # HTTP header 'Accept' (if needed)
87
+ header_params['Accept'] = @api_client.select_header_accept(['application/hal+json'])
88
+ # HTTP header 'Content-Type'
89
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json;charset=utf-8'])
90
+
91
+ # form parameters
92
+ form_params = {}
93
+
94
+ # http body (model)
95
+ post_body = nil
96
+ auth_names = []
97
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
98
+ :header_params => header_params,
99
+ :query_params => query_params,
100
+ :form_params => form_params,
101
+ :body => post_body,
102
+ :auth_names => auth_names,
103
+ :return_type => 'ReportingV3NetFundingsGet200Response')
104
+ if @api_client.config.debugging
105
+ begin
106
+ raise
107
+ @api_client.config.logger.debug "API called: NetFundingsApi#get_net_funding_info\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
108
+ rescue
109
+ puts 'Cannot write to log'
110
+ end
111
+ end
112
+ return data, status_code, headers
113
+ end
114
+ end
115
+ end