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,13 +18,13 @@ 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
|
# Process a Payout
|
24
24
|
# Send funds from a selected funding source to a designated credit/debit card account or a prepaid card using an Original Credit Transaction (OCT).
|
25
25
|
# @param oct_create_payment_request
|
26
26
|
# @param [Hash] opts the optional parameters
|
27
|
-
# @return [
|
27
|
+
# @return [PtsV2PayoutsPost201Response]
|
28
28
|
def oct_create_payment(oct_create_payment_request, opts = {})
|
29
29
|
data, status_code, headers = oct_create_payment_with_http_info(oct_create_payment_request, opts)
|
30
30
|
return data, status_code, headers
|
@@ -34,10 +34,16 @@ module CyberSource
|
|
34
34
|
# Send funds from a selected funding source to a designated credit/debit card account or a prepaid card using an Original Credit Transaction (OCT).
|
35
35
|
# @param oct_create_payment_request
|
36
36
|
# @param [Hash] opts the optional parameters
|
37
|
-
# @return [Array<(
|
37
|
+
# @return [Array<(PtsV2PayoutsPost201Response, Fixnum, Hash)>] PtsV2PayoutsPost201Response data, response status code and response headers
|
38
38
|
def oct_create_payment_with_http_info(oct_create_payment_request, opts = {})
|
39
|
-
|
40
|
-
|
39
|
+
|
40
|
+
if @api_client.config.debugging
|
41
|
+
begin
|
42
|
+
raise
|
43
|
+
@api_client.config.logger.debug 'Calling API: ProcessAPayoutApi.oct_create_payment ...'
|
44
|
+
rescue
|
45
|
+
puts 'Cannot write to log'
|
46
|
+
end
|
41
47
|
end
|
42
48
|
# verify the required parameter 'oct_create_payment_request' is set
|
43
49
|
if @api_client.config.client_side_validation && oct_create_payment_request.nil?
|
@@ -52,7 +58,7 @@ module CyberSource
|
|
52
58
|
# header parameters
|
53
59
|
header_params = {}
|
54
60
|
# HTTP header 'Accept' (if needed)
|
55
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/hal+json'])
|
61
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/hal+json;charset=utf-8'])
|
56
62
|
# HTTP header 'Content-Type'
|
57
63
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json;charset=utf-8'])
|
58
64
|
|
@@ -67,10 +73,16 @@ module CyberSource
|
|
67
73
|
:query_params => query_params,
|
68
74
|
:form_params => form_params,
|
69
75
|
:body => post_body,
|
70
|
-
:auth_names => auth_names
|
76
|
+
:auth_names => auth_names,
|
77
|
+
:return_type => 'PtsV2PayoutsPost201Response')
|
71
78
|
if @api_client.config.debugging
|
72
|
-
|
73
|
-
|
79
|
+
begin
|
80
|
+
raise
|
81
|
+
@api_client.config.logger.debug "API called: ProcessAPayoutApi#oct_create_payment\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
82
|
+
rescue
|
83
|
+
puts 'Cannot write to log'
|
84
|
+
end
|
85
|
+
end
|
74
86
|
return data, status_code, headers
|
75
87
|
end
|
76
88
|
end
|
@@ -18,10 +18,10 @@ 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
|
# Get Purchase and Refund details
|
24
|
-
# Purchase
|
24
|
+
# Download the Purchase and Refund Details report. This report report includes all purchases and refund transactions, as well as all activities related to transactions resulting in an adjustment to the net proceeds.
|
25
25
|
# @param start_time Valid report Start Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format. - https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14 **Example date format:** - yyyy-MM-dd'T'HH:mm:ssXXX
|
26
26
|
# @param end_time Valid report End Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format. - https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14 **Example date format:** - yyyy-MM-dd'T'HH:mm:ssXXX
|
27
27
|
# @param [Hash] opts the optional parameters
|
@@ -31,14 +31,14 @@ module CyberSource
|
|
31
31
|
# @option opts [String] :group_name Valid CyberSource Group Name.User can define groups using CBAPI and Group Management Module in EBC2. Groups are collection of organizationIds
|
32
32
|
# @option opts [Integer] :offset Offset of the Purchase and Refund Results.
|
33
33
|
# @option opts [Integer] :limit Results count per page. Range(1-2000) (default to 2000)
|
34
|
-
# @return [
|
34
|
+
# @return [ReportingV3PurchaseRefundDetailsGet200Response]
|
35
35
|
def get_purchase_and_refund_details(start_time, end_time, opts = {})
|
36
36
|
data, status_code, headers = get_purchase_and_refund_details_with_http_info(start_time, end_time, opts)
|
37
37
|
return data, status_code, headers
|
38
38
|
end
|
39
39
|
|
40
40
|
# Get Purchase and Refund details
|
41
|
-
# Purchase
|
41
|
+
# Download the Purchase and Refund Details report. This report report includes all purchases and refund transactions, as well as all activities related to transactions resulting in an adjustment to the net proceeds.
|
42
42
|
# @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
|
43
43
|
# @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
|
44
44
|
# @param [Hash] opts the optional parameters
|
@@ -48,10 +48,16 @@ module CyberSource
|
|
48
48
|
# @option opts [String] :group_name Valid CyberSource Group Name.User can define groups using CBAPI and Group Management Module in EBC2. Groups are collection of organizationIds
|
49
49
|
# @option opts [Integer] :offset Offset of the Purchase and Refund Results.
|
50
50
|
# @option opts [Integer] :limit Results count per page. Range(1-2000)
|
51
|
-
# @return [Array<(
|
51
|
+
# @return [Array<(ReportingV3PurchaseRefundDetailsGet200Response, Fixnum, Hash)>] ReportingV3PurchaseRefundDetailsGet200Response data, response status code and response headers
|
52
52
|
def get_purchase_and_refund_details_with_http_info(start_time, end_time, opts = {})
|
53
|
-
|
54
|
-
|
53
|
+
|
54
|
+
if @api_client.config.debugging
|
55
|
+
begin
|
56
|
+
raise
|
57
|
+
@api_client.config.logger.debug 'Calling API: PurchaseAndRefundDetailsApi.get_purchase_and_refund_details ...'
|
58
|
+
rescue
|
59
|
+
puts 'Cannot write to log'
|
60
|
+
end
|
55
61
|
end
|
56
62
|
# verify the required parameter 'start_time' is set
|
57
63
|
if @api_client.config.client_side_validation && start_time.nil?
|
@@ -68,6 +74,11 @@ module CyberSource
|
|
68
74
|
if @api_client.config.client_side_validation && !opts[:'organization_id'].nil? && opts[:'organization_id'].to_s.length < 1
|
69
75
|
fail ArgumentError, 'invalid value for "opts[:"organization_id"]" when calling PurchaseAndRefundDetailsApi.get_purchase_and_refund_details, the character length must be great than or equal to 1.'
|
70
76
|
end
|
77
|
+
|
78
|
+
#if @api_client.config.client_side_validation && !opts[:'organization_id'].nil? && opts[:'organization_id'] !~ Regexp.new(/[a-zA-Z0-9-_]+/)
|
79
|
+
#fail ArgumentError, "invalid value for 'opts[:\"organization_id\"]' when calling PurchaseAndRefundDetailsApi.get_purchase_and_refund_details, must conform to the pattern /[a-zA-Z0-9-_]+/."
|
80
|
+
#end
|
81
|
+
|
71
82
|
if @api_client.config.client_side_validation && opts[:'payment_subtype'] && !['ALL', 'VI', 'MC', 'AX', 'DI', 'DP'].include?(opts[:'payment_subtype'])
|
72
83
|
fail ArgumentError, 'invalid value for "payment_subtype", must be one of ALL, VI, MC, AX, DI, DP'
|
73
84
|
end
|
@@ -114,10 +125,16 @@ module CyberSource
|
|
114
125
|
:query_params => query_params,
|
115
126
|
:form_params => form_params,
|
116
127
|
:body => post_body,
|
117
|
-
:auth_names => auth_names
|
128
|
+
:auth_names => auth_names,
|
129
|
+
:return_type => 'ReportingV3PurchaseRefundDetailsGet200Response')
|
118
130
|
if @api_client.config.debugging
|
119
|
-
|
120
|
-
|
131
|
+
begin
|
132
|
+
raise
|
133
|
+
@api_client.config.logger.debug "API called: PurchaseAndRefundDetailsApi#get_purchase_and_refund_details\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
134
|
+
rescue
|
135
|
+
puts 'Cannot write to log'
|
136
|
+
end
|
137
|
+
end
|
121
138
|
return data, status_code, headers
|
122
139
|
end
|
123
140
|
end
|
@@ -18,7 +18,7 @@ module CyberSource
|
|
18
18
|
|
19
19
|
def initialize(api_client = ApiClient.default, config)
|
20
20
|
@api_client = api_client
|
21
|
-
|
21
|
+
@api_client.set_configuration(config)
|
22
22
|
end
|
23
23
|
# Refund a Capture
|
24
24
|
# Include the capture ID in the POST request to refund the captured amount.
|
@@ -27,8 +27,8 @@ module CyberSource
|
|
27
27
|
# @param [Hash] opts the optional parameters
|
28
28
|
# @return [PtsV2PaymentsRefundPost201Response]
|
29
29
|
def refund_capture(refund_capture_request, id, opts = {})
|
30
|
-
data,
|
31
|
-
return data,
|
30
|
+
data, status_code, headers = refund_capture_with_http_info(refund_capture_request, id, opts)
|
31
|
+
return data, status_code, headers
|
32
32
|
end
|
33
33
|
|
34
34
|
# Refund a Capture
|
@@ -38,8 +38,14 @@ module CyberSource
|
|
38
38
|
# @param [Hash] opts the optional parameters
|
39
39
|
# @return [Array<(PtsV2PaymentsRefundPost201Response, Fixnum, Hash)>] PtsV2PaymentsRefundPost201Response data, response status code and response headers
|
40
40
|
def refund_capture_with_http_info(refund_capture_request, id, opts = {})
|
41
|
-
|
42
|
-
|
41
|
+
|
42
|
+
if @api_client.config.debugging
|
43
|
+
begin
|
44
|
+
raise
|
45
|
+
@api_client.config.logger.debug 'Calling API: RefundApi.refund_capture ...'
|
46
|
+
rescue
|
47
|
+
puts 'Cannot write to log'
|
48
|
+
end
|
43
49
|
end
|
44
50
|
# verify the required parameter 'refund_capture_request' is set
|
45
51
|
if @api_client.config.client_side_validation && refund_capture_request.nil?
|
@@ -58,7 +64,7 @@ module CyberSource
|
|
58
64
|
# header parameters
|
59
65
|
header_params = {}
|
60
66
|
# HTTP header 'Accept' (if needed)
|
61
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/hal+json'])
|
67
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/hal+json;charset=utf-8'])
|
62
68
|
# HTTP header 'Content-Type'
|
63
69
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json;charset=utf-8'])
|
64
70
|
|
@@ -76,8 +82,13 @@ module CyberSource
|
|
76
82
|
:auth_names => auth_names,
|
77
83
|
:return_type => 'PtsV2PaymentsRefundPost201Response')
|
78
84
|
if @api_client.config.debugging
|
79
|
-
|
80
|
-
|
85
|
+
begin
|
86
|
+
raise
|
87
|
+
@api_client.config.logger.debug "API called: RefundApi#refund_capture\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
88
|
+
rescue
|
89
|
+
puts 'Cannot write to log'
|
90
|
+
end
|
91
|
+
end
|
81
92
|
return data, status_code, headers
|
82
93
|
end
|
83
94
|
# Refund a Payment
|
@@ -87,8 +98,8 @@ module CyberSource
|
|
87
98
|
# @param [Hash] opts the optional parameters
|
88
99
|
# @return [PtsV2PaymentsRefundPost201Response]
|
89
100
|
def refund_payment(refund_payment_request, id, opts = {})
|
90
|
-
data,
|
91
|
-
return data,
|
101
|
+
data, status_code, headers = refund_payment_with_http_info(refund_payment_request, id, opts)
|
102
|
+
return data, status_code, headers
|
92
103
|
end
|
93
104
|
|
94
105
|
# Refund a Payment
|
@@ -98,8 +109,14 @@ module CyberSource
|
|
98
109
|
# @param [Hash] opts the optional parameters
|
99
110
|
# @return [Array<(PtsV2PaymentsRefundPost201Response, Fixnum, Hash)>] PtsV2PaymentsRefundPost201Response data, response status code and response headers
|
100
111
|
def refund_payment_with_http_info(refund_payment_request, id, opts = {})
|
101
|
-
|
102
|
-
|
112
|
+
|
113
|
+
if @api_client.config.debugging
|
114
|
+
begin
|
115
|
+
raise
|
116
|
+
@api_client.config.logger.debug 'Calling API: RefundApi.refund_payment ...'
|
117
|
+
rescue
|
118
|
+
puts 'Cannot write to log'
|
119
|
+
end
|
103
120
|
end
|
104
121
|
# verify the required parameter 'refund_payment_request' is set
|
105
122
|
if @api_client.config.client_side_validation && refund_payment_request.nil?
|
@@ -118,7 +135,7 @@ module CyberSource
|
|
118
135
|
# header parameters
|
119
136
|
header_params = {}
|
120
137
|
# HTTP header 'Accept' (if needed)
|
121
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/hal+json'])
|
138
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/hal+json;charset=utf-8'])
|
122
139
|
# HTTP header 'Content-Type'
|
123
140
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json;charset=utf-8'])
|
124
141
|
|
@@ -136,8 +153,13 @@ module CyberSource
|
|
136
153
|
:auth_names => auth_names,
|
137
154
|
:return_type => 'PtsV2PaymentsRefundPost201Response')
|
138
155
|
if @api_client.config.debugging
|
139
|
-
|
140
|
-
|
156
|
+
begin
|
157
|
+
raise
|
158
|
+
@api_client.config.logger.debug "API called: RefundApi#refund_payment\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
159
|
+
rescue
|
160
|
+
puts 'Cannot write to log'
|
161
|
+
end
|
162
|
+
end
|
141
163
|
return data, status_code, headers
|
142
164
|
end
|
143
165
|
end
|
@@ -18,28 +18,34 @@ 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
|
-
# Get
|
24
|
-
#
|
23
|
+
# Get report definition
|
24
|
+
# View the attributes of an individual report type. For a list of values for reportDefinitionName, see the [Reporting Developer Guide](https://www.cybersource.com/developers/documentation/reporting_and_reconciliation/)
|
25
25
|
# @param report_definition_name Name of the Report definition to retrieve
|
26
26
|
# @param [Hash] opts the optional parameters
|
27
27
|
# @option opts [String] :organization_id Valid Cybersource Organization Id
|
28
28
|
# @return [ReportingV3ReportDefinitionsNameGet200Response]
|
29
29
|
def get_resource_info_by_report_definition(report_definition_name, opts = {})
|
30
|
-
data,
|
31
|
-
return data,
|
30
|
+
data, status_code, headers = get_resource_info_by_report_definition_with_http_info(report_definition_name, opts)
|
31
|
+
return data, status_code, headers
|
32
32
|
end
|
33
33
|
|
34
|
-
# Get
|
35
|
-
#
|
34
|
+
# Get report definition
|
35
|
+
# View the attributes of an individual report type. For a list of values for reportDefinitionName, see the [Reporting Developer Guide](https://www.cybersource.com/developers/documentation/reporting_and_reconciliation/)
|
36
36
|
# @param report_definition_name Name of the Report definition to retrieve
|
37
37
|
# @param [Hash] opts the optional parameters
|
38
38
|
# @option opts [String] :organization_id Valid Cybersource Organization Id
|
39
39
|
# @return [Array<(ReportingV3ReportDefinitionsNameGet200Response, Fixnum, Hash)>] ReportingV3ReportDefinitionsNameGet200Response data, response status code and response headers
|
40
40
|
def get_resource_info_by_report_definition_with_http_info(report_definition_name, opts = {})
|
41
|
-
|
42
|
-
|
41
|
+
|
42
|
+
if @api_client.config.debugging
|
43
|
+
begin
|
44
|
+
raise
|
45
|
+
@api_client.config.logger.debug 'Calling API: ReportDefinitionsApi.get_resource_info_by_report_definition ...'
|
46
|
+
rescue
|
47
|
+
puts 'Cannot write to log'
|
48
|
+
end
|
43
49
|
end
|
44
50
|
# verify the required parameter 'report_definition_name' is set
|
45
51
|
if @api_client.config.client_side_validation && report_definition_name.nil?
|
@@ -52,6 +58,11 @@ module CyberSource
|
|
52
58
|
if @api_client.config.client_side_validation && !opts[:'organization_id'].nil? && opts[:'organization_id'].to_s.length < 1
|
53
59
|
fail ArgumentError, 'invalid value for "opts[:"organization_id"]" when calling ReportDefinitionsApi.get_resource_info_by_report_definition, the character length must be great than or equal to 1.'
|
54
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 ReportDefinitionsApi.get_resource_info_by_report_definition, must conform to the pattern /[a-zA-Z0-9-_]+/."
|
64
|
+
#end
|
65
|
+
|
55
66
|
# resource path
|
56
67
|
local_var_path = 'reporting/v3/report-definitions/{reportDefinitionName}'.sub('{' + 'reportDefinitionName' + '}', report_definition_name.to_s)
|
57
68
|
|
@@ -80,28 +91,39 @@ module CyberSource
|
|
80
91
|
:auth_names => auth_names,
|
81
92
|
:return_type => 'ReportingV3ReportDefinitionsNameGet200Response')
|
82
93
|
if @api_client.config.debugging
|
83
|
-
|
84
|
-
|
94
|
+
begin
|
95
|
+
raise
|
96
|
+
@api_client.config.logger.debug "API called: ReportDefinitionsApi#get_resource_info_by_report_definition\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
97
|
+
rescue
|
98
|
+
puts 'Cannot write to log'
|
99
|
+
end
|
100
|
+
end
|
85
101
|
return data, status_code, headers
|
86
102
|
end
|
87
103
|
# Get reporting resource information
|
88
|
-
#
|
104
|
+
# View a list of supported reports and their attributes before subscribing to them.
|
89
105
|
# @param [Hash] opts the optional parameters
|
90
106
|
# @option opts [String] :organization_id Valid Cybersource Organization Id
|
91
107
|
# @return [ReportingV3ReportDefinitionsGet200Response]
|
92
108
|
def get_resource_v2_info(opts = {})
|
93
|
-
data,
|
94
|
-
return data,
|
109
|
+
data, status_code, headers = get_resource_v2_info_with_http_info(opts)
|
110
|
+
return data, status_code, headers
|
95
111
|
end
|
96
112
|
|
97
113
|
# Get reporting resource information
|
98
|
-
#
|
114
|
+
# View a list of supported reports and their attributes before subscribing to them.
|
99
115
|
# @param [Hash] opts the optional parameters
|
100
116
|
# @option opts [String] :organization_id Valid Cybersource Organization Id
|
101
117
|
# @return [Array<(ReportingV3ReportDefinitionsGet200Response, Fixnum, Hash)>] ReportingV3ReportDefinitionsGet200Response data, response status code and response headers
|
102
118
|
def get_resource_v2_info_with_http_info(opts = {})
|
103
|
-
|
104
|
-
|
119
|
+
|
120
|
+
if @api_client.config.debugging
|
121
|
+
begin
|
122
|
+
raise
|
123
|
+
@api_client.config.logger.debug 'Calling API: ReportDefinitionsApi.get_resource_v2_info ...'
|
124
|
+
rescue
|
125
|
+
puts 'Cannot write to log'
|
126
|
+
end
|
105
127
|
end
|
106
128
|
if @api_client.config.client_side_validation && !opts[:'organization_id'].nil? && opts[:'organization_id'].to_s.length > 32
|
107
129
|
fail ArgumentError, 'invalid value for "opts[:"organization_id"]" when calling ReportDefinitionsApi.get_resource_v2_info, the character length must be smaller than or equal to 32.'
|
@@ -111,6 +133,10 @@ module CyberSource
|
|
111
133
|
fail ArgumentError, 'invalid value for "opts[:"organization_id"]" when calling ReportDefinitionsApi.get_resource_v2_info, the character length must be great than or equal to 1.'
|
112
134
|
end
|
113
135
|
|
136
|
+
#if @api_client.config.client_side_validation && !opts[:'organization_id'].nil? && opts[:'organization_id'] !~ Regexp.new(/[a-zA-Z0-9-_]+/)
|
137
|
+
#fail ArgumentError, "invalid value for 'opts[:\"organization_id\"]' when calling ReportDefinitionsApi.get_resource_v2_info, must conform to the pattern /[a-zA-Z0-9-_]+/."
|
138
|
+
#end
|
139
|
+
|
114
140
|
# resource path
|
115
141
|
local_var_path = 'reporting/v3/report-definitions'
|
116
142
|
|
@@ -139,8 +165,13 @@ module CyberSource
|
|
139
165
|
:auth_names => auth_names,
|
140
166
|
:return_type => 'ReportingV3ReportDefinitionsGet200Response')
|
141
167
|
if @api_client.config.debugging
|
142
|
-
|
143
|
-
|
168
|
+
begin
|
169
|
+
raise
|
170
|
+
@api_client.config.logger.debug "API called: ReportDefinitionsApi#get_resource_v2_info\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
171
|
+
rescue
|
172
|
+
puts 'Cannot write to log'
|
173
|
+
end
|
174
|
+
end
|
144
175
|
return data, status_code, headers
|
145
176
|
end
|
146
177
|
end
|
@@ -18,30 +18,36 @@ 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
|
# Download a report
|
24
|
-
# Download a report
|
24
|
+
# Download a report using the unique report name and date.
|
25
25
|
# @param report_date Valid date on which to download the report 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
|
26
26
|
# @param report_name Name of the report to download
|
27
27
|
# @param [Hash] opts the optional parameters
|
28
28
|
# @option opts [String] :organization_id Valid Cybersource Organization Id
|
29
29
|
# @return [nil]
|
30
30
|
def download_report(report_date, report_name, opts = {})
|
31
|
-
data,
|
32
|
-
return data,
|
31
|
+
data, status_code, headers = download_report_with_http_info(report_date, report_name, opts)
|
32
|
+
return data, status_code, headers
|
33
33
|
end
|
34
34
|
|
35
35
|
# Download a report
|
36
|
-
# Download a report
|
36
|
+
# Download a report using the unique report name and date.
|
37
37
|
# @param report_date Valid date on which to download the report 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
|
38
38
|
# @param report_name Name of the report to download
|
39
39
|
# @param [Hash] opts the optional parameters
|
40
40
|
# @option opts [String] :organization_id Valid Cybersource Organization Id
|
41
41
|
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
42
42
|
def download_report_with_http_info(report_date, report_name, opts = {})
|
43
|
-
|
44
|
-
|
43
|
+
|
44
|
+
if @api_client.config.debugging
|
45
|
+
begin
|
46
|
+
raise
|
47
|
+
@api_client.config.logger.debug 'Calling API: ReportDownloadsApi.download_report ...'
|
48
|
+
rescue
|
49
|
+
puts 'Cannot write to log'
|
50
|
+
end
|
45
51
|
end
|
46
52
|
# verify the required parameter 'report_date' is set
|
47
53
|
if @api_client.config.client_side_validation && report_date.nil?
|
@@ -59,6 +65,10 @@ module CyberSource
|
|
59
65
|
fail ArgumentError, 'invalid value for "opts[:"organization_id"]" when calling ReportDownloadsApi.download_report, the character length must be great than or equal to 1.'
|
60
66
|
end
|
61
67
|
|
68
|
+
#if @api_client.config.client_side_validation && !opts[:'organization_id'].nil? && opts[:'organization_id'] !~ Regexp.new(/[a-zA-Z0-9-_]+/)
|
69
|
+
#fail ArgumentError, "invalid value for 'opts[:\"organization_id\"]' when calling ReportDownloadsApi.download_report, must conform to the pattern /[a-zA-Z0-9-_]+/."
|
70
|
+
#end
|
71
|
+
|
62
72
|
# resource path
|
63
73
|
local_var_path = 'reporting/v3/report-downloads'
|
64
74
|
|
@@ -71,7 +81,7 @@ module CyberSource
|
|
71
81
|
# header parameters
|
72
82
|
header_params = {}
|
73
83
|
# HTTP header 'Accept' (if needed)
|
74
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/xml', '
|
84
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/xml', 'text/csv'])
|
75
85
|
# HTTP header 'Content-Type'
|
76
86
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json;charset=utf-8'])
|
77
87
|
|
@@ -88,8 +98,13 @@ module CyberSource
|
|
88
98
|
:body => post_body,
|
89
99
|
:auth_names => auth_names)
|
90
100
|
if @api_client.config.debugging
|
91
|
-
|
92
|
-
|
101
|
+
begin
|
102
|
+
raise
|
103
|
+
@api_client.config.logger.debug "API called: ReportDownloadsApi#download_report\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
104
|
+
rescue
|
105
|
+
puts 'Cannot write to log'
|
106
|
+
end
|
107
|
+
end
|
93
108
|
return data, status_code, headers
|
94
109
|
end
|
95
110
|
end
|