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,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
|
# Process an Authorization Reversal
|
24
24
|
# Include the payment ID in the POST request to reverse the payment amount.
|
@@ -27,8 +27,8 @@ module CyberSource
|
|
27
27
|
# @param [Hash] opts the optional parameters
|
28
28
|
# @return [PtsV2PaymentsReversalsPost201Response]
|
29
29
|
def auth_reversal(id, auth_reversal_request, opts = {})
|
30
|
-
data,
|
31
|
-
return data,
|
30
|
+
data, status_code, headers = auth_reversal_with_http_info(id, auth_reversal_request, opts)
|
31
|
+
return data, status_code, headers
|
32
32
|
end
|
33
33
|
|
34
34
|
# Process an Authorization Reversal
|
@@ -38,8 +38,14 @@ module CyberSource
|
|
38
38
|
# @param [Hash] opts the optional parameters
|
39
39
|
# @return [Array<(PtsV2PaymentsReversalsPost201Response, Fixnum, Hash)>] PtsV2PaymentsReversalsPost201Response data, response status code and response headers
|
40
40
|
def auth_reversal_with_http_info(id, auth_reversal_request, opts = {})
|
41
|
-
|
42
|
-
|
41
|
+
|
42
|
+
if @api_client.config.debugging
|
43
|
+
begin
|
44
|
+
raise
|
45
|
+
@api_client.config.logger.debug 'Calling API: ReversalApi.auth_reversal ...'
|
46
|
+
rescue
|
47
|
+
puts 'Cannot write to log'
|
48
|
+
end
|
43
49
|
end
|
44
50
|
# verify the required parameter 'id' is set
|
45
51
|
if @api_client.config.client_side_validation && id.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 => 'PtsV2PaymentsReversalsPost201Response')
|
78
84
|
if @api_client.config.debugging
|
79
|
-
|
80
|
-
|
85
|
+
begin
|
86
|
+
raise
|
87
|
+
@api_client.config.logger.debug "API called: ReversalApi#auth_reversal\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
|
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
|
# Create a search request
|
24
24
|
# Create a search request.
|
@@ -26,8 +26,8 @@ module CyberSource
|
|
26
26
|
# @param [Hash] opts the optional parameters
|
27
27
|
# @return [TssV2TransactionsPost201Response]
|
28
28
|
def create_search(create_search_request, opts = {})
|
29
|
-
data,
|
30
|
-
return data,
|
29
|
+
data, status_code, headers = create_search_with_http_info(create_search_request, opts)
|
30
|
+
return data, status_code, headers
|
31
31
|
end
|
32
32
|
|
33
33
|
# Create a search request
|
@@ -36,8 +36,14 @@ module CyberSource
|
|
36
36
|
# @param [Hash] opts the optional parameters
|
37
37
|
# @return [Array<(TssV2TransactionsPost201Response, Fixnum, Hash)>] TssV2TransactionsPost201Response data, response status code and response headers
|
38
38
|
def create_search_with_http_info(create_search_request, opts = {})
|
39
|
-
|
40
|
-
|
39
|
+
|
40
|
+
if @api_client.config.debugging
|
41
|
+
begin
|
42
|
+
raise
|
43
|
+
@api_client.config.logger.debug 'Calling API: SearchTransactionsApi.create_search ...'
|
44
|
+
rescue
|
45
|
+
puts 'Cannot write to log'
|
46
|
+
end
|
41
47
|
end
|
42
48
|
# verify the required parameter 'create_search_request' is set
|
43
49
|
if @api_client.config.client_side_validation && create_search_request.nil?
|
@@ -52,9 +58,9 @@ 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([])
|
61
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
56
62
|
# HTTP header 'Content-Type'
|
57
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
63
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json;charset=utf-8'])
|
58
64
|
|
59
65
|
# form parameters
|
60
66
|
form_params = {}
|
@@ -70,8 +76,13 @@ module CyberSource
|
|
70
76
|
:auth_names => auth_names,
|
71
77
|
:return_type => 'TssV2TransactionsPost201Response')
|
72
78
|
if @api_client.config.debugging
|
73
|
-
|
74
|
-
|
79
|
+
begin
|
80
|
+
raise
|
81
|
+
@api_client.config.logger.debug "API called: SearchTransactionsApi#create_search\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
82
|
+
rescue
|
83
|
+
puts 'Cannot write to log'
|
84
|
+
end
|
85
|
+
end
|
75
86
|
return data, status_code, headers
|
76
87
|
end
|
77
88
|
# Get Search results
|
@@ -80,8 +91,8 @@ module CyberSource
|
|
80
91
|
# @param [Hash] opts the optional parameters
|
81
92
|
# @return [TssV2TransactionsPost201Response]
|
82
93
|
def get_search(id, opts = {})
|
83
|
-
data,
|
84
|
-
return data,
|
94
|
+
data, status_code, headers = get_search_with_http_info(id, opts)
|
95
|
+
return data, status_code, headers
|
85
96
|
end
|
86
97
|
|
87
98
|
# Get Search results
|
@@ -90,8 +101,14 @@ module CyberSource
|
|
90
101
|
# @param [Hash] opts the optional parameters
|
91
102
|
# @return [Array<(TssV2TransactionsPost201Response, Fixnum, Hash)>] TssV2TransactionsPost201Response data, response status code and response headers
|
92
103
|
def get_search_with_http_info(id, opts = {})
|
93
|
-
|
94
|
-
|
104
|
+
|
105
|
+
if @api_client.config.debugging
|
106
|
+
begin
|
107
|
+
raise
|
108
|
+
@api_client.config.logger.debug 'Calling API: SearchTransactionsApi.get_search ...'
|
109
|
+
rescue
|
110
|
+
puts 'Cannot write to log'
|
111
|
+
end
|
95
112
|
end
|
96
113
|
# verify the required parameter 'id' is set
|
97
114
|
if @api_client.config.client_side_validation && id.nil?
|
@@ -106,9 +123,9 @@ module CyberSource
|
|
106
123
|
# header parameters
|
107
124
|
header_params = {}
|
108
125
|
# HTTP header 'Accept' (if needed)
|
109
|
-
header_params['Accept'] = @api_client.select_header_accept([])
|
126
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
110
127
|
# HTTP header 'Content-Type'
|
111
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
128
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json;charset=utf-8'])
|
112
129
|
|
113
130
|
# form parameters
|
114
131
|
form_params = {}
|
@@ -124,8 +141,13 @@ module CyberSource
|
|
124
141
|
:auth_names => auth_names,
|
125
142
|
:return_type => 'TssV2TransactionsPost201Response')
|
126
143
|
if @api_client.config.debugging
|
127
|
-
|
128
|
-
|
144
|
+
begin
|
145
|
+
raise
|
146
|
+
@api_client.config.logger.debug "API called: SearchTransactionsApi#get_search\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
147
|
+
rescue
|
148
|
+
puts 'Cannot write to log'
|
149
|
+
end
|
150
|
+
end
|
129
151
|
return data, status_code, headers
|
130
152
|
end
|
131
153
|
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
|
# Download a file with file identifier
|
24
24
|
# Download a file for the given file identifier
|
@@ -27,8 +27,8 @@ module CyberSource
|
|
27
27
|
# @option opts [String] :organization_id Valid Cybersource Organization Id
|
28
28
|
# @return [nil]
|
29
29
|
def get_file(file_id, opts = {})
|
30
|
-
data,
|
31
|
-
return data,
|
30
|
+
data, status_code, headers = get_file_with_http_info(file_id, opts)
|
31
|
+
return data, status_code, headers
|
32
32
|
end
|
33
33
|
|
34
34
|
# Download a file with file identifier
|
@@ -38,8 +38,14 @@ module CyberSource
|
|
38
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 get_file_with_http_info(file_id, opts = {})
|
41
|
-
|
42
|
-
|
41
|
+
|
42
|
+
if @api_client.config.debugging
|
43
|
+
begin
|
44
|
+
raise
|
45
|
+
@api_client.config.logger.debug 'Calling API: SecureFileShareApi.get_file ...'
|
46
|
+
rescue
|
47
|
+
puts 'Cannot write to log'
|
48
|
+
end
|
43
49
|
end
|
44
50
|
# verify the required parameter 'file_id' is set
|
45
51
|
if @api_client.config.client_side_validation && file_id.nil?
|
@@ -53,6 +59,10 @@ module CyberSource
|
|
53
59
|
fail ArgumentError, 'invalid value for "opts[:"organization_id"]" when calling SecureFileShareApi.get_file, the character length must be great than or equal to 1.'
|
54
60
|
end
|
55
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 SecureFileShareApi.get_file, must conform to the pattern /[a-zA-Z0-9-_]+/."
|
64
|
+
#end
|
65
|
+
|
56
66
|
# resource path
|
57
67
|
local_var_path = 'sfs/v1/files/{fileId}'.sub('{' + 'fileId' + '}', file_id.to_s)
|
58
68
|
|
@@ -65,7 +75,7 @@ module CyberSource
|
|
65
75
|
# HTTP header 'Accept' (if needed)
|
66
76
|
header_params['Accept'] = @api_client.select_header_accept(['application/xml', 'text/csv', 'application/pdf'])
|
67
77
|
# HTTP header 'Content-Type'
|
68
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['
|
78
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['*/*'])
|
69
79
|
|
70
80
|
# form parameters
|
71
81
|
form_params = {}
|
@@ -80,8 +90,13 @@ module CyberSource
|
|
80
90
|
:body => post_body,
|
81
91
|
:auth_names => auth_names)
|
82
92
|
if @api_client.config.debugging
|
83
|
-
|
84
|
-
|
93
|
+
begin
|
94
|
+
raise
|
95
|
+
@api_client.config.logger.debug "API called: SecureFileShareApi#get_file\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
96
|
+
rescue
|
97
|
+
puts 'Cannot write to log'
|
98
|
+
end
|
99
|
+
end
|
85
100
|
return data, status_code, headers
|
86
101
|
end
|
87
102
|
# Get list of files
|
@@ -92,8 +107,8 @@ module CyberSource
|
|
92
107
|
# @option opts [String] :organization_id Valid Cybersource Organization Id
|
93
108
|
# @return [V1FileDetailsGet200Response]
|
94
109
|
def get_file_details(start_date, end_date, opts = {})
|
95
|
-
data,
|
96
|
-
return data,
|
110
|
+
data, status_code, headers = get_file_details_with_http_info(start_date, end_date, opts)
|
111
|
+
return data, status_code, headers
|
97
112
|
end
|
98
113
|
|
99
114
|
# Get list of files
|
@@ -104,8 +119,14 @@ module CyberSource
|
|
104
119
|
# @option opts [String] :organization_id Valid Cybersource Organization Id
|
105
120
|
# @return [Array<(V1FileDetailsGet200Response, Fixnum, Hash)>] V1FileDetailsGet200Response data, response status code and response headers
|
106
121
|
def get_file_details_with_http_info(start_date, end_date, opts = {})
|
107
|
-
|
108
|
-
|
122
|
+
|
123
|
+
if @api_client.config.debugging
|
124
|
+
begin
|
125
|
+
raise
|
126
|
+
@api_client.config.logger.debug 'Calling API: SecureFileShareApi.get_file_details ...'
|
127
|
+
rescue
|
128
|
+
puts 'Cannot write to log'
|
129
|
+
end
|
109
130
|
end
|
110
131
|
# verify the required parameter 'start_date' is set
|
111
132
|
if @api_client.config.client_side_validation && start_date.nil?
|
@@ -123,6 +144,10 @@ module CyberSource
|
|
123
144
|
fail ArgumentError, 'invalid value for "opts[:"organization_id"]" when calling SecureFileShareApi.get_file_details, the character length must be great than or equal to 1.'
|
124
145
|
end
|
125
146
|
|
147
|
+
#if @api_client.config.client_side_validation && !opts[:'organization_id'].nil? && opts[:'organization_id'] !~ Regexp.new(/[a-zA-Z0-9-_]+/)
|
148
|
+
#fail ArgumentError, "invalid value for 'opts[:\"organization_id\"]' when calling SecureFileShareApi.get_file_details, must conform to the pattern /[a-zA-Z0-9-_]+/."
|
149
|
+
#end
|
150
|
+
|
126
151
|
# resource path
|
127
152
|
local_var_path = 'sfs/v1/file-details'
|
128
153
|
|
@@ -137,7 +162,7 @@ module CyberSource
|
|
137
162
|
# HTTP header 'Accept' (if needed)
|
138
163
|
header_params['Accept'] = @api_client.select_header_accept(['application/hal+json'])
|
139
164
|
# HTTP header 'Content-Type'
|
140
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['
|
165
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['*/*'])
|
141
166
|
|
142
167
|
# form parameters
|
143
168
|
form_params = {}
|
@@ -153,8 +178,13 @@ module CyberSource
|
|
153
178
|
:auth_names => auth_names,
|
154
179
|
:return_type => 'V1FileDetailsGet200Response')
|
155
180
|
if @api_client.config.debugging
|
156
|
-
|
157
|
-
|
181
|
+
begin
|
182
|
+
raise
|
183
|
+
@api_client.config.logger.debug "API called: SecureFileShareApi#get_file_details\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
184
|
+
rescue
|
185
|
+
puts 'Cannot write to log'
|
186
|
+
end
|
187
|
+
end
|
158
188
|
return data, status_code, headers
|
159
189
|
end
|
160
190
|
end
|
@@ -18,36 +18,107 @@ 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
|
23
|
+
# Get individual batch file
|
24
|
+
# Provide the search range
|
25
|
+
# @param id The batch id assigned for the template.
|
26
|
+
# @param [Hash] opts the optional parameters
|
27
|
+
# @return [PtsV1TransactionBatchesIdGet200Response]
|
28
|
+
def get_transaction_batch_id(id, opts = {})
|
29
|
+
data, status_code, headers = get_transaction_batch_id_with_http_info(id, opts)
|
30
|
+
return data, status_code, headers
|
31
|
+
end
|
32
|
+
|
33
|
+
# Get individual batch file
|
34
|
+
# Provide the search range
|
35
|
+
# @param id The batch id assigned for the template.
|
36
|
+
# @param [Hash] opts the optional parameters
|
37
|
+
# @return [Array<(PtsV1TransactionBatchesIdGet200Response, Fixnum, Hash)>] PtsV1TransactionBatchesIdGet200Response data, response status code and response headers
|
38
|
+
def get_transaction_batch_id_with_http_info(id, opts = {})
|
39
|
+
|
40
|
+
if @api_client.config.debugging
|
41
|
+
begin
|
42
|
+
raise
|
43
|
+
@api_client.config.logger.debug 'Calling API: TransactionBatchesApi.get_transaction_batch_id ...'
|
44
|
+
rescue
|
45
|
+
puts 'Cannot write to log'
|
46
|
+
end
|
47
|
+
end
|
48
|
+
# verify the required parameter 'id' is set
|
49
|
+
if @api_client.config.client_side_validation && id.nil?
|
50
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling TransactionBatchesApi.get_transaction_batch_id"
|
51
|
+
end
|
52
|
+
# resource path
|
53
|
+
local_var_path = 'pts/v1/transaction-batches/{id}'.sub('{' + 'id' + '}', id.to_s)
|
54
|
+
|
55
|
+
# query parameters
|
56
|
+
query_params = {}
|
57
|
+
|
58
|
+
# header parameters
|
59
|
+
header_params = {}
|
60
|
+
# HTTP header 'Accept' (if needed)
|
61
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/hal+json'])
|
62
|
+
# HTTP header 'Content-Type'
|
63
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json;charset=utf-8'])
|
64
|
+
|
65
|
+
# form parameters
|
66
|
+
form_params = {}
|
67
|
+
|
68
|
+
# http body (model)
|
69
|
+
post_body = nil
|
70
|
+
auth_names = []
|
71
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
72
|
+
:header_params => header_params,
|
73
|
+
:query_params => query_params,
|
74
|
+
:form_params => form_params,
|
75
|
+
:body => post_body,
|
76
|
+
:auth_names => auth_names,
|
77
|
+
:return_type => 'PtsV1TransactionBatchesIdGet200Response')
|
78
|
+
if @api_client.config.debugging
|
79
|
+
begin
|
80
|
+
raise
|
81
|
+
@api_client.config.logger.debug "API called: TransactionBatchesApi#get_transaction_batch_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
82
|
+
rescue
|
83
|
+
puts 'Cannot write to log'
|
84
|
+
end
|
85
|
+
end
|
86
|
+
return data, status_code, headers
|
87
|
+
end
|
88
|
+
# Get a list of batch files
|
24
89
|
# Provide the search range
|
25
90
|
# @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:ss.SSSZZ
|
26
91
|
# @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:ss.SSSZZ
|
27
92
|
# @param [Hash] opts the optional parameters
|
28
93
|
# @return [PtsV1TransactionBatchesGet200Response]
|
29
|
-
def
|
30
|
-
data,
|
31
|
-
return data,
|
94
|
+
def get_transaction_batches(start_time, end_time, opts = {})
|
95
|
+
data, status_code, headers = get_transaction_batches_with_http_info(start_time, end_time, opts)
|
96
|
+
return data, status_code, headers
|
32
97
|
end
|
33
98
|
|
34
|
-
# Get a list of batch files
|
99
|
+
# Get a list of batch files
|
35
100
|
# Provide the search range
|
36
101
|
# @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:ss.SSSZZ
|
37
102
|
# @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:ss.SSSZZ
|
38
103
|
# @param [Hash] opts the optional parameters
|
39
104
|
# @return [Array<(PtsV1TransactionBatchesGet200Response, Fixnum, Hash)>] PtsV1TransactionBatchesGet200Response data, response status code and response headers
|
40
|
-
def
|
41
|
-
|
42
|
-
|
105
|
+
def get_transaction_batches_with_http_info(start_time, end_time, opts = {})
|
106
|
+
|
107
|
+
if @api_client.config.debugging
|
108
|
+
begin
|
109
|
+
raise
|
110
|
+
@api_client.config.logger.debug 'Calling API: TransactionBatchesApi.get_transaction_batches ...'
|
111
|
+
rescue
|
112
|
+
puts 'Cannot write to log'
|
113
|
+
end
|
43
114
|
end
|
44
115
|
# verify the required parameter 'start_time' is set
|
45
116
|
if @api_client.config.client_side_validation && start_time.nil?
|
46
|
-
fail ArgumentError, "Missing the required parameter 'start_time' when calling TransactionBatchesApi.
|
117
|
+
fail ArgumentError, "Missing the required parameter 'start_time' when calling TransactionBatchesApi.get_transaction_batches"
|
47
118
|
end
|
48
119
|
# verify the required parameter 'end_time' is set
|
49
120
|
if @api_client.config.client_side_validation && end_time.nil?
|
50
|
-
fail ArgumentError, "Missing the required parameter 'end_time' when calling TransactionBatchesApi.
|
121
|
+
fail ArgumentError, "Missing the required parameter 'end_time' when calling TransactionBatchesApi.get_transaction_batches"
|
51
122
|
end
|
52
123
|
# resource path
|
53
124
|
local_var_path = 'pts/v1/transaction-batches'
|
@@ -78,8 +149,13 @@ module CyberSource
|
|
78
149
|
:auth_names => auth_names,
|
79
150
|
:return_type => 'PtsV1TransactionBatchesGet200Response')
|
80
151
|
if @api_client.config.debugging
|
81
|
-
|
82
|
-
|
152
|
+
begin
|
153
|
+
raise
|
154
|
+
@api_client.config.logger.debug "API called: TransactionBatchesApi#get_transaction_batches\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
155
|
+
rescue
|
156
|
+
puts 'Cannot write to log'
|
157
|
+
end
|
158
|
+
end
|
83
159
|
return data, status_code, headers
|
84
160
|
end
|
85
161
|
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
|
# Retrieve a Transaction
|
24
24
|
# Include the Request ID in the GET request to retrieve the transaction details.
|
@@ -26,8 +26,8 @@ module CyberSource
|
|
26
26
|
# @param [Hash] opts the optional parameters
|
27
27
|
# @return [TssV2TransactionsGet200Response]
|
28
28
|
def get_transaction(id, opts = {})
|
29
|
-
data,
|
30
|
-
return data,
|
29
|
+
data, status_code, headers = get_transaction_with_http_info(id, opts)
|
30
|
+
return data, status_code, headers
|
31
31
|
end
|
32
32
|
|
33
33
|
# Retrieve a Transaction
|
@@ -36,8 +36,14 @@ module CyberSource
|
|
36
36
|
# @param [Hash] opts the optional parameters
|
37
37
|
# @return [Array<(TssV2TransactionsGet200Response, Fixnum, Hash)>] TssV2TransactionsGet200Response data, response status code and response headers
|
38
38
|
def get_transaction_with_http_info(id, opts = {})
|
39
|
-
|
40
|
-
|
39
|
+
|
40
|
+
if @api_client.config.debugging
|
41
|
+
begin
|
42
|
+
raise
|
43
|
+
@api_client.config.logger.debug 'Calling API: TransactionDetailsApi.get_transaction ...'
|
44
|
+
rescue
|
45
|
+
puts 'Cannot write to log'
|
46
|
+
end
|
41
47
|
end
|
42
48
|
# verify the required parameter 'id' is set
|
43
49
|
if @api_client.config.client_side_validation && id.nil?
|
@@ -52,7 +58,7 @@ module CyberSource
|
|
52
58
|
# header parameters
|
53
59
|
header_params = {}
|
54
60
|
# HTTP header 'Accept' (if needed)
|
55
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/hal+json'])
|
61
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/hal+json;charset=utf-8'])
|
56
62
|
# HTTP header 'Content-Type'
|
57
63
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json;charset=utf-8'])
|
58
64
|
|
@@ -70,8 +76,13 @@ module CyberSource
|
|
70
76
|
:auth_names => auth_names,
|
71
77
|
:return_type => 'TssV2TransactionsGet200Response')
|
72
78
|
if @api_client.config.debugging
|
73
|
-
|
74
|
-
|
79
|
+
begin
|
80
|
+
raise
|
81
|
+
@api_client.config.logger.debug "API called: TransactionDetailsApi#get_transaction\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
82
|
+
rescue
|
83
|
+
puts 'Cannot write to log'
|
84
|
+
end
|
85
|
+
end
|
75
86
|
return data, status_code, headers
|
76
87
|
end
|
77
88
|
end
|