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,42 +18,57 @@ 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 Report Subscription for a report name by organization
24
- #
25
- # @param report_name Name of the Report to Create
24
+ # Create a report subscription for your organization. The report name must be unique.
26
25
  # @param request_body Report subscription request payload
27
26
  # @param [Hash] opts the optional parameters
27
+ # @option opts [String] :organization_id Valid Cybersource Organization Id
28
28
  # @return [nil]
29
29
  def create_subscription(request_body, opts = {})
30
- data, _status_code, _headers = create_subscription_with_http_info(request_body, opts)
31
- return data, _status_code, _headers
30
+ data, status_code, headers = create_subscription_with_http_info(request_body, opts)
31
+ return data, status_code, headers
32
32
  end
33
33
 
34
34
  # Create Report Subscription for a report name by organization
35
- #
36
- # @param report_name Name of the Report to Create
35
+ # Create a report subscription for your organization. The report name must be unique.
37
36
  # @param request_body Report subscription request payload
38
37
  # @param [Hash] opts the optional parameters
38
+ # @option opts [String] :organization_id Valid Cybersource Organization Id
39
39
  # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
40
40
  def create_subscription_with_http_info(request_body, opts = {})
41
- if @api_client.config.debugging
42
- @api_client.config.logger.debug 'Calling API: ReportSubscriptionsApi.create_subscription ...'
41
+
42
+ if @api_client.config.debugging
43
+ begin
44
+ raise
45
+ @api_client.config.logger.debug 'Calling API: ReportSubscriptionsApi.create_subscription ...'
46
+ rescue
47
+ puts 'Cannot write to log'
48
+ end
43
49
  end
44
- # verify the required parameter 'report_name' is set
45
- # if @api_client.config.client_side_validation && report_name.nil?
46
- # fail ArgumentError, "Missing the required parameter 'report_name' when calling ReportSubscriptionsApi.create_subscription"
47
- # end
48
50
  # verify the required parameter 'request_body' is set
49
51
  if @api_client.config.client_side_validation && request_body.nil?
50
52
  fail ArgumentError, "Missing the required parameter 'request_body' when calling ReportSubscriptionsApi.create_subscription"
51
53
  end
54
+ if @api_client.config.client_side_validation && !opts[:'organization_id'].nil? && opts[:'organization_id'].to_s.length > 32
55
+ fail ArgumentError, 'invalid value for "opts[:"organization_id"]" when calling ReportSubscriptionsApi.create_subscription, the character length must be smaller than or equal to 32.'
56
+ end
57
+
58
+ if @api_client.config.client_side_validation && !opts[:'organization_id'].nil? && opts[:'organization_id'].to_s.length < 1
59
+ fail ArgumentError, 'invalid value for "opts[:"organization_id"]" when calling ReportSubscriptionsApi.create_subscription, the character length must be great than or equal to 1.'
60
+ end
61
+
62
+ #if @api_client.config.client_side_validation && !opts[:'organization_id'].nil? && opts[:'organization_id'] !~ Regexp.new(/[a-zA-Z0-9-_]+/)
63
+ #fail ArgumentError, "invalid value for 'opts[:\"organization_id\"]' when calling ReportSubscriptionsApi.create_subscription, must conform to the pattern /[a-zA-Z0-9-_]+/."
64
+ #end
65
+
52
66
  # resource path
53
67
  local_var_path = 'reporting/v3/report-subscriptions'
54
68
 
55
69
  # query parameters
56
70
  query_params = {}
71
+ query_params[:'organizationId'] = opts[:'organization_id'] if !opts[:'organization_id'].nil?
57
72
 
58
73
  # header parameters
59
74
  header_params = {}
@@ -75,28 +90,39 @@ module CyberSource
75
90
  :body => post_body,
76
91
  :auth_names => auth_names)
77
92
  if @api_client.config.debugging
78
- @api_client.config.logger.debug "API called: ReportSubscriptionsApi#create_subscription\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
79
- end
93
+ begin
94
+ raise
95
+ @api_client.config.logger.debug "API called: ReportSubscriptionsApi#create_subscription\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
96
+ rescue
97
+ puts 'Cannot write to log'
98
+ end
99
+ end
80
100
  return data, status_code, headers
81
101
  end
82
102
  # Delete subscription of a report name by organization
83
- #
103
+ # Delete a report subscription for your organization. You must know the unique name of the report you want to delete.
84
104
  # @param report_name Name of the Report to Delete
85
105
  # @param [Hash] opts the optional parameters
86
106
  # @return [nil]
87
107
  def delete_subscription(report_name, opts = {})
88
- data, _status_code, _headers = delete_subscription_with_http_info(report_name, opts)
89
- return data, _status_code, _headers
108
+ data, status_code, headers = delete_subscription_with_http_info(report_name, opts)
109
+ return data, status_code, headers
90
110
  end
91
111
 
92
112
  # Delete subscription of a report name by organization
93
- #
113
+ # Delete a report subscription for your organization. You must know the unique name of the report you want to delete.
94
114
  # @param report_name Name of the Report to Delete
95
115
  # @param [Hash] opts the optional parameters
96
116
  # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
97
117
  def delete_subscription_with_http_info(report_name, opts = {})
98
- if @api_client.config.debugging
99
- @api_client.config.logger.debug 'Calling API: ReportSubscriptionsApi.delete_subscription ...'
118
+
119
+ if @api_client.config.debugging
120
+ begin
121
+ raise
122
+ @api_client.config.logger.debug 'Calling API: ReportSubscriptionsApi.delete_subscription ...'
123
+ rescue
124
+ puts 'Cannot write to log'
125
+ end
100
126
  end
101
127
  # verify the required parameter 'report_name' is set
102
128
  if @api_client.config.client_side_validation && report_name.nil?
@@ -110,6 +136,10 @@ module CyberSource
110
136
  fail ArgumentError, 'invalid value for "report_name" when calling ReportSubscriptionsApi.delete_subscription, the character length must be great than or equal to 1.'
111
137
  end
112
138
 
139
+ #if @api_client.config.client_side_validation && report_name !~ Regexp.new(/[a-zA-Z0-9-_+]+/)
140
+ #fail ArgumentError, "invalid value for 'report_name' when calling ReportSubscriptionsApi.delete_subscription, must conform to the pattern /[a-zA-Z0-9-_+]+/."
141
+ #end
142
+
113
143
  # resource path
114
144
  local_var_path = 'reporting/v3/report-subscriptions/{reportName}'.sub('{' + 'reportName' + '}', report_name.to_s)
115
145
 
@@ -136,26 +166,37 @@ module CyberSource
136
166
  :body => post_body,
137
167
  :auth_names => auth_names)
138
168
  if @api_client.config.debugging
139
- @api_client.config.logger.debug "API called: ReportSubscriptionsApi#delete_subscription\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
140
- end
169
+ begin
170
+ raise
171
+ @api_client.config.logger.debug "API called: ReportSubscriptionsApi#delete_subscription\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
172
+ rescue
173
+ puts 'Cannot write to log'
174
+ end
175
+ end
141
176
  return data, status_code, headers
142
177
  end
143
- # Retrieve all subscriptions by organization
144
- #
178
+ # Get all subscriptions
179
+ # View a summary of all report subscriptions.
145
180
  # @param [Hash] opts the optional parameters
146
181
  # @return [ReportingV3ReportSubscriptionsGet200Response]
147
182
  def get_all_subscriptions(opts = {})
148
- data, _status_code, _headers = get_all_subscriptions_with_http_info(opts)
149
- return data, _status_code, _headers
183
+ data, status_code, headers = get_all_subscriptions_with_http_info(opts)
184
+ return data, status_code, headers
150
185
  end
151
186
 
152
- # Retrieve all subscriptions by organization
153
- #
187
+ # Get all subscriptions
188
+ # View a summary of all report subscriptions.
154
189
  # @param [Hash] opts the optional parameters
155
190
  # @return [Array<(ReportingV3ReportSubscriptionsGet200Response, Fixnum, Hash)>] ReportingV3ReportSubscriptionsGet200Response data, response status code and response headers
156
191
  def get_all_subscriptions_with_http_info(opts = {})
157
- if @api_client.config.debugging
158
- @api_client.config.logger.debug 'Calling API: ReportSubscriptionsApi.get_all_subscriptions ...'
192
+
193
+ if @api_client.config.debugging
194
+ begin
195
+ raise
196
+ @api_client.config.logger.debug 'Calling API: ReportSubscriptionsApi.get_all_subscriptions ...'
197
+ rescue
198
+ puts 'Cannot write to log'
199
+ end
159
200
  end
160
201
  # resource path
161
202
  local_var_path = 'reporting/v3/report-subscriptions'
@@ -184,28 +225,39 @@ module CyberSource
184
225
  :auth_names => auth_names,
185
226
  :return_type => 'ReportingV3ReportSubscriptionsGet200Response')
186
227
  if @api_client.config.debugging
187
- @api_client.config.logger.debug "API called: ReportSubscriptionsApi#get_all_subscriptions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
188
- end
228
+ begin
229
+ raise
230
+ @api_client.config.logger.debug "API called: ReportSubscriptionsApi#get_all_subscriptions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
231
+ rescue
232
+ puts 'Cannot write to log'
233
+ end
234
+ end
189
235
  return data, status_code, headers
190
236
  end
191
- # Retrieve subscription for a report name by organization
192
- #
237
+ # Get subscription for report name
238
+ # View the details of a report subscription, such as the report format or report frequency, using the report’s unique name.
193
239
  # @param report_name Name of the Report to Retrieve
194
240
  # @param [Hash] opts the optional parameters
195
241
  # @return [ReportingV3ReportSubscriptionsGet200ResponseSubscriptions]
196
242
  def get_subscription(report_name, opts = {})
197
- data, _status_code, _headers = get_subscription_with_http_info(report_name, opts)
198
- return data, _status_code, _headers
243
+ data, status_code, headers = get_subscription_with_http_info(report_name, opts)
244
+ return data, status_code, headers
199
245
  end
200
246
 
201
- # Retrieve subscription for a report name by organization
202
- #
247
+ # Get subscription for report name
248
+ # View the details of a report subscription, such as the report format or report frequency, using the report’s unique name.
203
249
  # @param report_name Name of the Report to Retrieve
204
250
  # @param [Hash] opts the optional parameters
205
251
  # @return [Array<(ReportingV3ReportSubscriptionsGet200ResponseSubscriptions, Fixnum, Hash)>] ReportingV3ReportSubscriptionsGet200ResponseSubscriptions data, response status code and response headers
206
252
  def get_subscription_with_http_info(report_name, opts = {})
207
- if @api_client.config.debugging
208
- @api_client.config.logger.debug 'Calling API: ReportSubscriptionsApi.get_subscription ...'
253
+
254
+ if @api_client.config.debugging
255
+ begin
256
+ raise
257
+ @api_client.config.logger.debug 'Calling API: ReportSubscriptionsApi.get_subscription ...'
258
+ rescue
259
+ puts 'Cannot write to log'
260
+ end
209
261
  end
210
262
  # verify the required parameter 'report_name' is set
211
263
  if @api_client.config.client_side_validation && report_name.nil?
@@ -219,6 +271,10 @@ module CyberSource
219
271
  fail ArgumentError, 'invalid value for "report_name" when calling ReportSubscriptionsApi.get_subscription, the character length must be great than or equal to 1.'
220
272
  end
221
273
 
274
+ #if @api_client.config.client_side_validation && report_name !~ Regexp.new(/[a-zA-Z0-9-_+]+/)
275
+ #fail ArgumentError, "invalid value for 'report_name' when calling ReportSubscriptionsApi.get_subscription, must conform to the pattern /[a-zA-Z0-9-_+]+/."
276
+ #end
277
+
222
278
  # resource path
223
279
  local_var_path = 'reporting/v3/report-subscriptions/{reportName}'.sub('{' + 'reportName' + '}', report_name.to_s)
224
280
 
@@ -246,8 +302,13 @@ module CyberSource
246
302
  :auth_names => auth_names,
247
303
  :return_type => 'ReportingV3ReportSubscriptionsGet200ResponseSubscriptions')
248
304
  if @api_client.config.debugging
249
- @api_client.config.logger.debug "API called: ReportSubscriptionsApi#get_subscription\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
250
- end
305
+ begin
306
+ raise
307
+ @api_client.config.logger.debug "API called: ReportSubscriptionsApi#get_subscription\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
308
+ rescue
309
+ puts 'Cannot write to log'
310
+ end
311
+ end
251
312
  return data, status_code, headers
252
313
  end
253
314
  end
@@ -18,36 +18,57 @@ 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 Adhoc Report
24
- # Create one time report
24
+ # Create a one-time report. You must specify the type of report in reportDefinitionName. For a list of values for reportDefinitionName, see the [Reporting Developer Guide](https://www.cybersource.com/developers/documentation/reporting_and_reconciliation)
25
25
  # @param request_body Report subscription request payload
26
26
  # @param [Hash] opts the optional parameters
27
+ # @option opts [String] :organization_id Valid Cybersource Organization Id
27
28
  # @return [nil]
28
29
  def create_report(request_body, opts = {})
29
- data, _status_code, _headers = create_report_with_http_info(request_body, opts)
30
- return data, _status_code, _headers
30
+ data, status_code, headers = create_report_with_http_info(request_body, opts)
31
+ return data, status_code, headers
31
32
  end
32
33
 
33
34
  # Create Adhoc Report
34
- # Create one time report
35
+ # Create a one-time report. You must specify the type of report in reportDefinitionName. For a list of values for reportDefinitionName, see the [Reporting Developer Guide](https://www.cybersource.com/developers/documentation/reporting_and_reconciliation)
35
36
  # @param request_body Report subscription request payload
36
37
  # @param [Hash] opts the optional parameters
38
+ # @option opts [String] :organization_id Valid Cybersource Organization Id
37
39
  # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
38
40
  def create_report_with_http_info(request_body, opts = {})
39
- if @api_client.config.debugging
40
- @api_client.config.logger.debug 'Calling API: ReportsApi.create_report ...'
41
+
42
+ if @api_client.config.debugging
43
+ begin
44
+ raise
45
+ @api_client.config.logger.debug 'Calling API: ReportsApi.create_report ...'
46
+ rescue
47
+ puts 'Cannot write to log'
48
+ end
41
49
  end
42
50
  # verify the required parameter 'request_body' is set
43
51
  if @api_client.config.client_side_validation && request_body.nil?
44
52
  fail ArgumentError, "Missing the required parameter 'request_body' when calling ReportsApi.create_report"
45
53
  end
54
+ if @api_client.config.client_side_validation && !opts[:'organization_id'].nil? && opts[:'organization_id'].to_s.length > 32
55
+ fail ArgumentError, 'invalid value for "opts[:"organization_id"]" when calling ReportsApi.create_report, the character length must be smaller than or equal to 32.'
56
+ end
57
+
58
+ if @api_client.config.client_side_validation && !opts[:'organization_id'].nil? && opts[:'organization_id'].to_s.length < 1
59
+ fail ArgumentError, 'invalid value for "opts[:"organization_id"]" when calling ReportsApi.create_report, the character length must be great than or equal to 1.'
60
+ end
61
+
62
+ #if @api_client.config.client_side_validation && !opts[:'organization_id'].nil? && opts[:'organization_id'] !~ Regexp.new(/[a-zA-Z0-9-_]+/)
63
+ #fail ArgumentError, "invalid value for 'opts[:\"organization_id\"]' when calling ReportsApi.create_report, must conform to the pattern /[a-zA-Z0-9-_]+/."
64
+ #end
65
+
46
66
  # resource path
47
67
  local_var_path = 'reporting/v3/reports'
48
68
 
49
69
  # query parameters
50
70
  query_params = {}
71
+ query_params[:'organizationId'] = opts[:'organization_id'] if !opts[:'organization_id'].nil?
51
72
 
52
73
  # header parameters
53
74
  header_params = {}
@@ -69,30 +90,41 @@ module CyberSource
69
90
  :body => post_body,
70
91
  :auth_names => auth_names)
71
92
  if @api_client.config.debugging
72
- @api_client.config.logger.debug "API called: ReportsApi#create_report\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
73
- end
93
+ begin
94
+ raise
95
+ @api_client.config.logger.debug "API called: ReportsApi#create_report\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
96
+ rescue
97
+ puts 'Cannot write to log'
98
+ end
99
+ end
74
100
  return data, status_code, headers
75
101
  end
76
102
  # Get Report based on reportId
77
- # ReportId is mandatory input
103
+ # Download a report using the reportId value. If you don’t already know this value, you can obtain it using the Retrieve available reports call.
78
104
  # @param report_id Valid Report Id
79
105
  # @param [Hash] opts the optional parameters
80
106
  # @option opts [String] :organization_id Valid Cybersource Organization Id
81
107
  # @return [ReportingV3ReportsIdGet200Response]
82
108
  def get_report_by_report_id(report_id, opts = {})
83
- data, _status_code, _headers = get_report_by_report_id_with_http_info(report_id, opts)
84
- return data, _status_code, _headers
109
+ data, status_code, headers = get_report_by_report_id_with_http_info(report_id, opts)
110
+ return data, status_code, headers
85
111
  end
86
112
 
87
113
  # Get Report based on reportId
88
- # ReportId is mandatory input
114
+ # Download a report using the reportId value. If you don’t already know this value, you can obtain it using the Retrieve available reports call.
89
115
  # @param report_id Valid Report Id
90
116
  # @param [Hash] opts the optional parameters
91
117
  # @option opts [String] :organization_id Valid Cybersource Organization Id
92
118
  # @return [Array<(ReportingV3ReportsIdGet200Response, Fixnum, Hash)>] ReportingV3ReportsIdGet200Response data, response status code and response headers
93
119
  def get_report_by_report_id_with_http_info(report_id, opts = {})
94
- if @api_client.config.debugging
95
- @api_client.config.logger.debug 'Calling API: ReportsApi.get_report_by_report_id ...'
120
+
121
+ if @api_client.config.debugging
122
+ begin
123
+ raise
124
+ @api_client.config.logger.debug 'Calling API: ReportsApi.get_report_by_report_id ...'
125
+ rescue
126
+ puts 'Cannot write to log'
127
+ end
96
128
  end
97
129
  # verify the required parameter 'report_id' is set
98
130
  if @api_client.config.client_side_validation && report_id.nil?
@@ -106,6 +138,10 @@ module CyberSource
106
138
  fail ArgumentError, 'invalid value for "opts[:"organization_id"]" when calling ReportsApi.get_report_by_report_id, the character length must be great than or equal to 1.'
107
139
  end
108
140
 
141
+ #if @api_client.config.client_side_validation && !opts[:'organization_id'].nil? && opts[:'organization_id'] !~ Regexp.new(/[a-zA-Z0-9-_]+/)
142
+ #fail ArgumentError, "invalid value for 'opts[:\"organization_id\"]' when calling ReportsApi.get_report_by_report_id, must conform to the pattern /[a-zA-Z0-9-_]+/."
143
+ #end
144
+
109
145
  # resource path
110
146
  local_var_path = 'reporting/v3/reports/{reportId}'.sub('{' + 'reportId' + '}', report_id.to_s)
111
147
 
@@ -134,15 +170,20 @@ module CyberSource
134
170
  :auth_names => auth_names,
135
171
  :return_type => 'ReportingV3ReportsIdGet200Response')
136
172
  if @api_client.config.debugging
137
- @api_client.config.logger.debug "API called: ReportsApi#get_report_by_report_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
138
- end
173
+ begin
174
+ raise
175
+ @api_client.config.logger.debug "API called: ReportsApi#get_report_by_report_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
176
+ rescue
177
+ puts 'Cannot write to log'
178
+ end
179
+ end
139
180
  return data, status_code, headers
140
181
  end
141
182
  # Retrieve available reports
142
- # Retrieve list of available reports
183
+ # Retrieve a list of the available reports to which you are subscribed. This will also give you the reportId value, which you can also use to download a report.
143
184
  # @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
144
185
  # @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
145
- # @param time_query_type Specify time you woud like to search
186
+ # @param time_query_type Specify time you would like to search
146
187
  # @param [Hash] opts the optional parameters
147
188
  # @option opts [String] :organization_id Valid Cybersource Organization Id
148
189
  # @option opts [String] :report_mime_type Valid Report Format
@@ -152,15 +193,15 @@ module CyberSource
152
193
  # @option opts [String] :report_status Valid Report Status
153
194
  # @return [ReportingV3ReportsGet200Response]
154
195
  def search_reports(start_time, end_time, time_query_type, opts = {})
155
- data, _status_code, _headers = search_reports_with_http_info(start_time, end_time, time_query_type, opts)
156
- return data, _status_code, _headers
196
+ data, status_code, headers = search_reports_with_http_info(start_time, end_time, time_query_type, opts)
197
+ return data, status_code, headers
157
198
  end
158
199
 
159
200
  # Retrieve available reports
160
- # Retrieve list of available reports
201
+ # Retrieve a list of the available reports to which you are subscribed. This will also give you the reportId value, which you can also use to download a report.
161
202
  # @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
162
203
  # @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
163
- # @param time_query_type Specify time you woud like to search
204
+ # @param time_query_type Specify time you would like to search
164
205
  # @param [Hash] opts the optional parameters
165
206
  # @option opts [String] :organization_id Valid Cybersource Organization Id
166
207
  # @option opts [String] :report_mime_type Valid Report Format
@@ -170,8 +211,14 @@ module CyberSource
170
211
  # @option opts [String] :report_status Valid Report Status
171
212
  # @return [Array<(ReportingV3ReportsGet200Response, Fixnum, Hash)>] ReportingV3ReportsGet200Response data, response status code and response headers
172
213
  def search_reports_with_http_info(start_time, end_time, time_query_type, opts = {})
173
- if @api_client.config.debugging
174
- @api_client.config.logger.debug 'Calling API: ReportsApi.search_reports ...'
214
+
215
+ if @api_client.config.debugging
216
+ begin
217
+ raise
218
+ @api_client.config.logger.debug 'Calling API: ReportsApi.search_reports ...'
219
+ rescue
220
+ puts 'Cannot write to log'
221
+ end
175
222
  end
176
223
  # verify the required parameter 'start_time' is set
177
224
  if @api_client.config.client_side_validation && start_time.nil?
@@ -197,6 +244,10 @@ module CyberSource
197
244
  fail ArgumentError, 'invalid value for "opts[:"organization_id"]" when calling ReportsApi.search_reports, the character length must be great than or equal to 1.'
198
245
  end
199
246
 
247
+ #if @api_client.config.client_side_validation && !opts[:'organization_id'].nil? && opts[:'organization_id'] !~ Regexp.new(/[a-zA-Z0-9-_]+/)
248
+ #fail ArgumentError, "invalid value for 'opts[:\"organization_id\"]' when calling ReportsApi.search_reports, must conform to the pattern /[a-zA-Z0-9-_]+/."
249
+ #end
250
+
200
251
  if @api_client.config.client_side_validation && opts[:'report_mime_type'] && !['application/xml', 'text/csv'].include?(opts[:'report_mime_type'])
201
252
  fail ArgumentError, 'invalid value for "report_mime_type", must be one of application/xml, text/csv'
202
253
  end
@@ -242,8 +293,13 @@ module CyberSource
242
293
  :auth_names => auth_names,
243
294
  :return_type => 'ReportingV3ReportsGet200Response')
244
295
  if @api_client.config.debugging
245
- @api_client.config.logger.debug "API called: ReportsApi#search_reports\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
246
- end
296
+ begin
297
+ raise
298
+ @api_client.config.logger.debug "API called: ReportsApi#search_reports\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
299
+ rescue
300
+ puts 'Cannot write to log'
301
+ end
302
+ end
247
303
  return data, status_code, headers
248
304
  end
249
305
  end