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.
- checksums.yaml +4 -4
- data/lib/cybersource_rest_client.rb +68 -8
- data/lib/cybersource_rest_client/api/capture_api.rb +19 -8
- data/lib/cybersource_rest_client/api/conversion_details_api.rb +112 -0
- data/lib/cybersource_rest_client/api/credit_api.rb +19 -8
- data/lib/cybersource_rest_client/api/flex_token_api.rb +18 -7
- data/lib/cybersource_rest_client/api/instrument_identifier_api.rb +88 -55
- data/lib/cybersource_rest_client/api/instrument_identifiers_api.rb +24 -13
- data/lib/cybersource_rest_client/api/key_generation_api.rb +18 -7
- data/lib/cybersource_rest_client/api/net_fundings_api.rb +115 -0
- data/lib/cybersource_rest_client/api/notification_of_changes_api.rb +20 -9
- data/lib/cybersource_rest_client/api/payment_instruments_api.rb +144 -89
- data/lib/cybersource_rest_client/api/payments_api.rb +19 -8
- data/lib/cybersource_rest_client/api/process_a_payout_api.rb +21 -9
- data/lib/cybersource_rest_client/api/purchase_and_refund_details_api.rb +27 -10
- data/lib/cybersource_rest_client/api/refund_api.rb +37 -15
- data/lib/cybersource_rest_client/api/report_definitions_api.rb +50 -19
- data/lib/cybersource_rest_client/api/report_downloads_api.rb +25 -10
- data/lib/cybersource_rest_client/api/report_subscriptions_api.rb +104 -43
- data/lib/cybersource_rest_client/api/reports_api.rb +83 -27
- data/lib/cybersource_rest_client/api/reversal_api.rb +19 -8
- data/lib/cybersource_rest_client/api/search_transactions_api.rb +39 -17
- data/lib/cybersource_rest_client/api/secure_file_share_api.rb +45 -15
- data/lib/cybersource_rest_client/api/transaction_batches_api.rb +89 -13
- data/lib/cybersource_rest_client/api/transaction_details_api.rb +19 -8
- data/lib/cybersource_rest_client/api/user_management_api.rb +19 -8
- data/lib/cybersource_rest_client/api/void_api.rb +73 -29
- data/lib/cybersource_rest_client/api_client.rb +24 -12
- data/lib/cybersource_rest_client/configuration.rb +1 -1
- data/lib/cybersource_rest_client/models/capture_payment_request.rb +14 -5
- data/lib/cybersource_rest_client/models/create_credit_request.rb +1 -1
- data/lib/cybersource_rest_client/models/create_payment_request.rb +23 -5
- data/lib/cybersource_rest_client/models/inline_response_400.rb +59 -14
- data/lib/cybersource_rest_client/models/inline_response_400_1.rb +202 -0
- data/lib/cybersource_rest_client/models/{reporting_v3_notificationof_changes_get400_response_fields.rb → inline_response_400_fields.rb} +1 -1
- data/lib/cybersource_rest_client/models/pts_v1_transaction_batches_get200_response_transaction_batches.rb +7 -7
- data/lib/cybersource_rest_client/models/pts_v1_transaction_batches_id_get200_response.rb +286 -0
- data/lib/cybersource_rest_client/models/{tmsv1instrumentidentifiers_authorization_options_merchant_initiated_transaction.rb → pts_v1_transaction_batches_id_get200_response__links.rb} +10 -9
- data/lib/cybersource_rest_client/models/pts_v1_transaction_batches_id_get200_response__links_transactions.rb +193 -0
- data/lib/cybersource_rest_client/models/pts_v2_credits_post201_response.rb +20 -2
- data/lib/cybersource_rest_client/models/pts_v2_credits_post201_response_credit_amount_details.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_credits_post201_response_payment_information.rb +183 -0
- data/lib/cybersource_rest_client/models/pts_v2_credits_post201_response_processing_information.rb +183 -0
- data/lib/cybersource_rest_client/models/pts_v2_credits_post201_response_processing_information_bank_transfer_options.rb +199 -0
- data/lib/cybersource_rest_client/models/pts_v2_payments_captures_post201_response.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_captures_post201_response_order_information_amount_details.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_captures_post400_response.rb +2 -2
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response.rb +34 -7
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_client_reference_information.rb +40 -5
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_error_information.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_error_information_details.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_installment_information.rb +519 -0
- 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
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_order_information_amount_details.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_order_information_invoice_details.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information.rb +13 -4
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information_account_features.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information_bank.rb +208 -0
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information_bank_account.rb +199 -0
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information_tokenized_card.rb +2 -17
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_point_of_sale_information_emv.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processing_information.rb +183 -0
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processing_information_bank_transfer_options.rb +224 -0
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information.rb +75 -16
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information_ach_verification.rb +224 -0
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information_avs.rb +0 -15
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information_electronic_verification_results.rb +2 -2
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information_routing.rb +249 -0
- data/lib/cybersource_rest_client/models/pts_v2_payments_post400_response.rb +2 -2
- data/lib/cybersource_rest_client/models/pts_v2_payments_post502_response.rb +2 -2
- data/lib/cybersource_rest_client/models/pts_v2_payments_refund_post201_response.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_refund_post201_response_processor_information.rb +63 -4
- data/lib/cybersource_rest_client/models/pts_v2_payments_refund_post201_response_refund_amount_details.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_refund_post400_response.rb +2 -2
- data/lib/cybersource_rest_client/models/pts_v2_payments_reversals_post201_response.rb +11 -2
- data/lib/cybersource_rest_client/models/pts_v2_payments_reversals_post201_response_authorization_information.rb +29 -4
- data/lib/cybersource_rest_client/models/pts_v2_payments_reversals_post201_response_issuer_information.rb +199 -0
- data/lib/cybersource_rest_client/models/pts_v2_payments_reversals_post201_response_reversal_amount_details.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_reversals_post400_response.rb +2 -2
- data/lib/cybersource_rest_client/models/pts_v2_payments_voids_post201_response.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_voids_post201_response_void_amount_details.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_voids_post400_response.rb +2 -2
- data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response.rb +350 -0
- data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_error_information.rb +239 -0
- data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_error_information_details.rb +228 -0
- data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_merchant_information.rb +183 -0
- data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_merchant_information_merchant_descriptor.rb +234 -0
- data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_order_information.rb +183 -0
- data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_order_information_amount_details.rb +274 -0
- data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_processor_information.rb +299 -0
- data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_recipient_information.rb +183 -0
- data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_recipient_information_card.rb +224 -0
- data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_status_information.rb +228 -0
- data/lib/cybersource_rest_client/models/pts_v2_payouts_post400_response.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payouts_post502_response.rb +260 -0
- data/lib/cybersource_rest_client/models/pts_v2_payouts_post_response.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2credits_point_of_sale_information.rb +186 -4
- data/lib/cybersource_rest_client/models/ptsv2credits_point_of_sale_information_emv.rb +3 -3
- data/lib/cybersource_rest_client/models/ptsv2credits_processing_information.rb +18 -9
- data/lib/cybersource_rest_client/models/ptsv2credits_processing_information_bank_transfer_options.rb +349 -0
- data/lib/cybersource_rest_client/models/ptsv2payments_aggregator_information.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2payments_aggregator_information_sub_merchant.rb +9 -9
- data/lib/cybersource_rest_client/models/ptsv2payments_buyer_information.rb +29 -4
- data/lib/cybersource_rest_client/models/ptsv2payments_buyer_information_personal_identification.rb +3 -2
- data/lib/cybersource_rest_client/models/ptsv2payments_client_reference_information.rb +15 -6
- data/lib/cybersource_rest_client/models/ptsv2payments_client_reference_information_partner.rb +249 -0
- data/lib/cybersource_rest_client/models/ptsv2payments_consumer_authentication_information.rb +7 -7
- data/lib/cybersource_rest_client/models/ptsv2payments_installment_information.rb +364 -0
- data/lib/cybersource_rest_client/models/{ptsv2payments_processing_information_issuer.rb → ptsv2payments_issuer_information.rb} +2 -2
- data/lib/cybersource_rest_client/models/ptsv2payments_merchant_defined_information.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2payments_merchant_information.rb +66 -7
- data/lib/cybersource_rest_client/models/ptsv2payments_merchant_information_merchant_descriptor.rb +0 -6
- data/lib/cybersource_rest_client/models/ptsv2payments_merchant_information_service_fee_descriptor.rb +249 -0
- data/lib/cybersource_rest_client/models/{ptsv2payments_processing_information_authorization_options_merchant_initiated_transaction.rb → ptsv2payments_merchant_initiated_transaction.rb} +3 -3
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_amount_details.rb +84 -9
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_amount_details_surcharge.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_amount_details_tax_details.rb +32 -7
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_bill_to.rb +12 -28
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_bill_to_company.rb +349 -0
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_invoice_details.rb +55 -5
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_line_items.rb +139 -14
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_ship_to.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_shipping_details.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information.rb +13 -4
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_bank.rb +208 -0
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_bank_account.rb +299 -0
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_card.rb +47 -37
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_customer.rb +1 -7
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_fluid_data.rb +4 -4
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_tokenized_card.rb +3 -18
- data/lib/cybersource_rest_client/models/ptsv2payments_point_of_sale_information.rb +253 -16
- data/lib/cybersource_rest_client/models/ptsv2payments_point_of_sale_information_emv.rb +12 -12
- data/lib/cybersource_rest_client/models/ptsv2payments_processing_information.rb +20 -20
- data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_authorization_options.rb +32 -12
- data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_authorization_options_initiator.rb +4 -4
- data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_bank_transfer_options.rb +424 -0
- data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_capture_options.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_recurring_options.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2payments_recipient_information.rb +3 -3
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_aggregator_information.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_aggregator_information_sub_merchant.rb +8 -8
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_buyer_information.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_installment_information.rb +579 -0
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_merchant_information.rb +39 -5
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_order_information_amount_details.rb +59 -9
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_order_information_bill_to.rb +11 -27
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_order_information_invoice_details.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_order_information_ship_to.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_point_of_sale_information_emv.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_processing_information.rb +5 -5
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_processing_information_authorization_options.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_merchant_information.rb +30 -5
- data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_order_information_line_items.rb +9 -9
- data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_payment_information.rb +22 -4
- data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_payment_information_card.rb +5 -20
- data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_processing_information.rb +4 -4
- data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_processing_information_recurring_options.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_client_reference_information.rb +14 -5
- data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_client_reference_information_partner.rb +224 -0
- data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_order_information.rb +10 -1
- data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_order_information_amount_details.rb +199 -0
- data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_order_information_line_items.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_processing_information.rb +5 -5
- data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_reversal_information.rb +0 -15
- data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_reversal_information_amount_details.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2payouts_client_reference_information.rb +199 -0
- data/lib/cybersource_rest_client/models/ptsv2payouts_merchant_information_merchant_descriptor.rb +0 -15
- data/lib/cybersource_rest_client/models/ptsv2payouts_payment_information_card.rb +0 -15
- data/lib/cybersource_rest_client/models/refund_capture_request.rb +1 -1
- data/lib/cybersource_rest_client/models/refund_payment_request.rb +1 -1
- data/lib/cybersource_rest_client/models/reporting_v3_conversion_details_get200_response.rb +213 -0
- data/lib/cybersource_rest_client/models/reporting_v3_conversion_details_get200_response_conversion_details.rb +275 -0
- data/lib/cybersource_rest_client/models/reporting_v3_conversion_details_get200_response_notes.rb +204 -0
- data/lib/cybersource_rest_client/models/reporting_v3_net_fundings_get200_response.rb +266 -0
- data/lib/cybersource_rest_client/models/reporting_v3_net_fundings_get200_response_net_funding_summaries.rb +281 -0
- data/lib/cybersource_rest_client/models/reporting_v3_net_fundings_get200_response_total_purchases.rb +203 -0
- data/lib/cybersource_rest_client/models/reporting_v3_purchase_refund_details_get200_response.rb +273 -0
- data/lib/cybersource_rest_client/models/reporting_v3_purchase_refund_details_get200_response_authorizations.rb +255 -0
- data/lib/cybersource_rest_client/models/reporting_v3_purchase_refund_details_get200_response_fee_and_funding_details.rb +290 -0
- data/lib/cybersource_rest_client/models/reporting_v3_purchase_refund_details_get200_response_others.rb +260 -0
- data/lib/cybersource_rest_client/models/reporting_v3_purchase_refund_details_get200_response_request_details.rb +235 -0
- data/lib/cybersource_rest_client/models/reporting_v3_purchase_refund_details_get200_response_settlement_statuses.rb +240 -0
- data/lib/cybersource_rest_client/models/reporting_v3_purchase_refund_details_get200_response_settlements.rb +304 -0
- data/lib/cybersource_rest_client/models/reporting_v3_report_definitions_get200_response_report_definitions.rb +1 -0
- data/lib/cybersource_rest_client/models/reporting_v3_report_definitions_name_get200_response_attributes.rb +2 -0
- data/lib/cybersource_rest_client/models/reporting_v3_report_subscriptions_get200_response_subscriptions.rb +13 -13
- data/lib/cybersource_rest_client/models/reporting_v3_reports_get200_response_reports.rb +18 -8
- data/lib/cybersource_rest_client/models/reporting_v3_reports_id_get200_response.rb +15 -15
- 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
- data/lib/cybersource_rest_client/models/{reporting_v3_notificationof_changes_get400_response.rb → reportingv3_report_downloads_get400_response.rb} +42 -52
- data/lib/cybersource_rest_client/models/reportingv3_report_downloads_get400_response_details.rb +195 -0
- data/lib/cybersource_rest_client/models/reportingv3reports_report_preferences.rb +229 -0
- data/lib/cybersource_rest_client/models/request_body.rb +74 -104
- data/lib/cybersource_rest_client/models/request_body_1.rb +159 -55
- data/lib/cybersource_rest_client/models/tms_v1_paymentinstruments_get200_response.rb +331 -0
- data/lib/cybersource_rest_client/models/tms_v1_paymentinstruments_post201_response.rb +1 -1
- data/lib/cybersource_rest_client/models/tms_v1_paymentinstruments_post201_response_card.rb +302 -0
- data/lib/cybersource_rest_client/models/tmsv1instrumentidentifiers_bank_account.rb +48 -0
- data/lib/cybersource_rest_client/models/tmsv1instrumentidentifiers_card.rb +24 -0
- data/lib/cybersource_rest_client/models/tmsv1instrumentidentifiers_merchant_initiated_transaction.rb +199 -0
- data/lib/cybersource_rest_client/models/tmsv1instrumentidentifiers_processing_information_authorization_options_initiator.rb +1 -1
- data/lib/cybersource_rest_client/models/tmsv1paymentinstruments_bill_to.rb +183 -0
- data/lib/cybersource_rest_client/models/tmsv1paymentinstruments_buyer_information.rb +39 -0
- data/lib/cybersource_rest_client/models/tmsv1paymentinstruments_instrument_identifier.rb +24 -0
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_error_information.rb +1 -1
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_merchant_information_merchant_descriptor.rb +0 -15
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information.rb +1 -1
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_card.rb +0 -30
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_customer.rb +184 -0
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_order_information.rb +1 -1
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_order_information_amount_details.rb +224 -0
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_payment_information.rb +1 -1
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_payment_information_card.rb +0 -15
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post400_response.rb +1 -1
- data/lib/cybersource_rest_client/models/ums_v1_users_get400_response.rb +271 -0
- metadata +70 -10
- 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
|
-
|
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,
|
31
|
-
return data,
|
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
|
-
|
42
|
-
|
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
|
-
|
79
|
-
|
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,
|
89
|
-
return data,
|
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
|
-
|
99
|
-
|
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
|
-
|
140
|
-
|
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
|
-
#
|
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,
|
149
|
-
return data,
|
183
|
+
data, status_code, headers = get_all_subscriptions_with_http_info(opts)
|
184
|
+
return data, status_code, headers
|
150
185
|
end
|
151
186
|
|
152
|
-
#
|
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
|
-
|
158
|
-
|
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
|
-
|
188
|
-
|
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
|
-
#
|
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,
|
198
|
-
return data,
|
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
|
-
#
|
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
|
-
|
208
|
-
|
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
|
-
|
250
|
-
|
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
|
-
|
21
|
+
@api_client.set_configuration(config)
|
22
22
|
end
|
23
23
|
# Create Adhoc Report
|
24
|
-
# Create one
|
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,
|
30
|
-
return data,
|
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
|
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
|
-
|
40
|
-
|
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
|
-
|
73
|
-
|
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
|
-
#
|
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,
|
84
|
-
return data,
|
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
|
-
#
|
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
|
-
|
95
|
-
|
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
|
-
|
138
|
-
|
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'T'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'T'HH:mm:ssXXX
|
145
|
-
# @param time_query_type Specify time you
|
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,
|
156
|
-
return data,
|
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'T'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'T'HH:mm:ssXXX
|
163
|
-
# @param time_query_type Specify time you
|
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
|
-
|
174
|
-
|
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
|
-
|
246
|
-
|
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
|