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,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
23
|
# Get Notification Of Changes
|
24
|
-
# Notification of Change
|
24
|
+
# Download the Notification of Change report. This report shows eCheck-related fields updated as a result of a response to an eCheck settlement transaction.
|
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
|
28
28
|
# @return [ReportingV3NotificationofChangesGet200Response]
|
29
29
|
def get_notification_of_change_report(start_time, end_time, opts = {})
|
30
|
-
data,
|
31
|
-
return data,
|
30
|
+
data, status_code, headers = get_notification_of_change_report_with_http_info(start_time, end_time, opts)
|
31
|
+
return data, status_code, headers
|
32
32
|
end
|
33
33
|
|
34
34
|
# Get Notification Of Changes
|
35
|
-
# Notification of Change
|
35
|
+
# Download the Notification of Change report. This report shows eCheck-related fields updated as a result of a response to an eCheck settlement transaction.
|
36
36
|
# @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
|
37
37
|
# @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
|
38
38
|
# @param [Hash] opts the optional parameters
|
39
39
|
# @return [Array<(ReportingV3NotificationofChangesGet200Response, Fixnum, Hash)>] ReportingV3NotificationofChangesGet200Response data, response status code and response headers
|
40
40
|
def get_notification_of_change_report_with_http_info(start_time, end_time, opts = {})
|
41
|
-
|
42
|
-
|
41
|
+
|
42
|
+
if @api_client.config.debugging
|
43
|
+
begin
|
44
|
+
raise
|
45
|
+
@api_client.config.logger.debug 'Calling API: NotificationOfChangesApi.get_notification_of_change_report ...'
|
46
|
+
rescue
|
47
|
+
puts 'Cannot write to log'
|
48
|
+
end
|
43
49
|
end
|
44
50
|
# verify the required parameter 'start_time' is set
|
45
51
|
if @api_client.config.client_side_validation && start_time.nil?
|
@@ -78,8 +84,13 @@ module CyberSource
|
|
78
84
|
:auth_names => auth_names,
|
79
85
|
:return_type => 'ReportingV3NotificationofChangesGet200Response')
|
80
86
|
if @api_client.config.debugging
|
81
|
-
|
82
|
-
|
87
|
+
begin
|
88
|
+
raise
|
89
|
+
@api_client.config.logger.debug "API called: NotificationOfChangesApi#get_notification_of_change_report\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
90
|
+
rescue
|
91
|
+
puts 'Cannot write to log'
|
92
|
+
end
|
93
|
+
end
|
83
94
|
return data, status_code, headers
|
84
95
|
end
|
85
96
|
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 all Payment Instruments associated with an Instrument Identifier
|
24
24
|
# @param profile_id The id of a profile containing user specific TMS configuration.
|
@@ -28,8 +28,8 @@ module CyberSource
|
|
28
28
|
# @option opts [String] :limit The maximum number of Payment Instruments that can be returned in the array starting from the offset record in zero-based dataset. Default is 20, maximum is 100. (default to 20)
|
29
29
|
# @return [TmsV1InstrumentidentifiersPaymentinstrumentsGet200Response]
|
30
30
|
def tms_v1_instrumentidentifiers_token_id_paymentinstruments_get(profile_id, token_id, opts = {})
|
31
|
-
data,
|
32
|
-
return data,
|
31
|
+
data, status_code, headers = tms_v1_instrumentidentifiers_token_id_paymentinstruments_get_with_http_info(profile_id, token_id, opts)
|
32
|
+
return data, status_code, headers
|
33
33
|
end
|
34
34
|
|
35
35
|
# Retrieve all Payment Instruments associated with an Instrument Identifier
|
@@ -40,32 +40,38 @@ module CyberSource
|
|
40
40
|
# @option opts [String] :limit The maximum number of Payment Instruments that can be returned in the array starting from the offset record in zero-based dataset. Default is 20, maximum is 100.
|
41
41
|
# @return [Array<(TmsV1InstrumentidentifiersPaymentinstrumentsGet200Response, Fixnum, Hash)>] TmsV1InstrumentidentifiersPaymentinstrumentsGet200Response data, response status code and response headers
|
42
42
|
def tms_v1_instrumentidentifiers_token_id_paymentinstruments_get_with_http_info(profile_id, token_id, opts = {})
|
43
|
-
|
44
|
-
|
43
|
+
|
44
|
+
if @api_client.config.debugging
|
45
|
+
begin
|
46
|
+
raise
|
47
|
+
@api_client.config.logger.debug 'Calling API: PaymentInstrumentsApi.tms_v1_instrumentidentifiers_token_id_paymentinstruments_get ...'
|
48
|
+
rescue
|
49
|
+
puts 'Cannot write to log'
|
50
|
+
end
|
45
51
|
end
|
46
52
|
# verify the required parameter 'profile_id' is set
|
47
53
|
if @api_client.config.client_side_validation && profile_id.nil?
|
48
54
|
fail ArgumentError, "Missing the required parameter 'profile_id' when calling PaymentInstrumentsApi.tms_v1_instrumentidentifiers_token_id_paymentinstruments_get"
|
49
55
|
end
|
50
|
-
|
51
|
-
|
52
|
-
|
56
|
+
if @api_client.config.client_side_validation && profile_id.to_s.length > 36
|
57
|
+
fail ArgumentError, 'invalid value for "profile_id" when calling PaymentInstrumentsApi.tms_v1_instrumentidentifiers_token_id_paymentinstruments_get, the character length must be smaller than or equal to 36.'
|
58
|
+
end
|
53
59
|
|
54
|
-
|
55
|
-
|
56
|
-
|
60
|
+
if @api_client.config.client_side_validation && profile_id.to_s.length < 36
|
61
|
+
fail ArgumentError, 'invalid value for "profile_id" when calling PaymentInstrumentsApi.tms_v1_instrumentidentifiers_token_id_paymentinstruments_get, the character length must be great than or equal to 36.'
|
62
|
+
end
|
57
63
|
|
58
64
|
# verify the required parameter 'token_id' is set
|
59
65
|
if @api_client.config.client_side_validation && token_id.nil?
|
60
66
|
fail ArgumentError, "Missing the required parameter 'token_id' when calling PaymentInstrumentsApi.tms_v1_instrumentidentifiers_token_id_paymentinstruments_get"
|
61
67
|
end
|
62
|
-
|
63
|
-
|
64
|
-
|
68
|
+
if @api_client.config.client_side_validation && token_id.to_s.length > 32
|
69
|
+
fail ArgumentError, 'invalid value for "token_id" when calling PaymentInstrumentsApi.tms_v1_instrumentidentifiers_token_id_paymentinstruments_get, the character length must be smaller than or equal to 32.'
|
70
|
+
end
|
65
71
|
|
66
|
-
|
67
|
-
|
68
|
-
|
72
|
+
if @api_client.config.client_side_validation && token_id.to_s.length < 16
|
73
|
+
fail ArgumentError, 'invalid value for "token_id" when calling PaymentInstrumentsApi.tms_v1_instrumentidentifiers_token_id_paymentinstruments_get, the character length must be great than or equal to 16.'
|
74
|
+
end
|
69
75
|
|
70
76
|
if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0
|
71
77
|
fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling PaymentInstrumentsApi.tms_v1_instrumentidentifiers_token_id_paymentinstruments_get, must be greater than or equal to 0.'
|
@@ -109,8 +115,13 @@ module CyberSource
|
|
109
115
|
:auth_names => auth_names,
|
110
116
|
:return_type => 'TmsV1InstrumentidentifiersPaymentinstrumentsGet200Response')
|
111
117
|
if @api_client.config.debugging
|
112
|
-
|
113
|
-
|
118
|
+
begin
|
119
|
+
raise
|
120
|
+
@api_client.config.logger.debug "API called: PaymentInstrumentsApi#tms_v1_instrumentidentifiers_token_id_paymentinstruments_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
121
|
+
rescue
|
122
|
+
puts 'Cannot write to log'
|
123
|
+
end
|
124
|
+
end
|
114
125
|
return data, status_code, headers
|
115
126
|
end
|
116
127
|
# Create a Payment Instrument
|
@@ -119,8 +130,8 @@ module CyberSource
|
|
119
130
|
# @param [Hash] opts the optional parameters
|
120
131
|
# @return [TmsV1PaymentinstrumentsPost201Response]
|
121
132
|
def tms_v1_paymentinstruments_post(profile_id, body, opts = {})
|
122
|
-
data,
|
123
|
-
return data,
|
133
|
+
data, status_code, headers = tms_v1_paymentinstruments_post_with_http_info(profile_id, body, opts)
|
134
|
+
return data, status_code, headers
|
124
135
|
end
|
125
136
|
|
126
137
|
# Create a Payment Instrument
|
@@ -129,20 +140,26 @@ module CyberSource
|
|
129
140
|
# @param [Hash] opts the optional parameters
|
130
141
|
# @return [Array<(TmsV1PaymentinstrumentsPost201Response, Fixnum, Hash)>] TmsV1PaymentinstrumentsPost201Response data, response status code and response headers
|
131
142
|
def tms_v1_paymentinstruments_post_with_http_info(profile_id, body, opts = {})
|
132
|
-
|
133
|
-
|
143
|
+
|
144
|
+
if @api_client.config.debugging
|
145
|
+
begin
|
146
|
+
raise
|
147
|
+
@api_client.config.logger.debug 'Calling API: PaymentInstrumentsApi.tms_v1_paymentinstruments_post ...'
|
148
|
+
rescue
|
149
|
+
puts 'Cannot write to log'
|
150
|
+
end
|
134
151
|
end
|
135
152
|
# verify the required parameter 'profile_id' is set
|
136
153
|
if @api_client.config.client_side_validation && profile_id.nil?
|
137
154
|
fail ArgumentError, "Missing the required parameter 'profile_id' when calling PaymentInstrumentsApi.tms_v1_paymentinstruments_post"
|
138
155
|
end
|
139
|
-
|
140
|
-
|
141
|
-
|
156
|
+
if @api_client.config.client_side_validation && profile_id.to_s.length > 36
|
157
|
+
fail ArgumentError, 'invalid value for "profile_id" when calling PaymentInstrumentsApi.tms_v1_paymentinstruments_post, the character length must be smaller than or equal to 36.'
|
158
|
+
end
|
142
159
|
|
143
|
-
|
144
|
-
|
145
|
-
|
160
|
+
if @api_client.config.client_side_validation && profile_id.to_s.length < 36
|
161
|
+
fail ArgumentError, 'invalid value for "profile_id" when calling PaymentInstrumentsApi.tms_v1_paymentinstruments_post, the character length must be great than or equal to 36.'
|
162
|
+
end
|
146
163
|
|
147
164
|
# verify the required parameter 'body' is set
|
148
165
|
if @api_client.config.client_side_validation && body.nil?
|
@@ -176,8 +193,13 @@ module CyberSource
|
|
176
193
|
:auth_names => auth_names,
|
177
194
|
:return_type => 'TmsV1PaymentinstrumentsPost201Response')
|
178
195
|
if @api_client.config.debugging
|
179
|
-
|
180
|
-
|
196
|
+
begin
|
197
|
+
raise
|
198
|
+
@api_client.config.logger.debug "API called: PaymentInstrumentsApi#tms_v1_paymentinstruments_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
199
|
+
rescue
|
200
|
+
puts 'Cannot write to log'
|
201
|
+
end
|
202
|
+
end
|
181
203
|
return data, status_code, headers
|
182
204
|
end
|
183
205
|
# Delete a Payment Instrument
|
@@ -196,32 +218,38 @@ module CyberSource
|
|
196
218
|
# @param [Hash] opts the optional parameters
|
197
219
|
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
198
220
|
def tms_v1_paymentinstruments_token_id_delete_with_http_info(profile_id, token_id, opts = {})
|
199
|
-
|
200
|
-
|
221
|
+
|
222
|
+
if @api_client.config.debugging
|
223
|
+
begin
|
224
|
+
raise
|
225
|
+
@api_client.config.logger.debug 'Calling API: PaymentInstrumentsApi.tms_v1_paymentinstruments_token_id_delete ...'
|
226
|
+
rescue
|
227
|
+
puts 'Cannot write to log'
|
228
|
+
end
|
201
229
|
end
|
202
230
|
# verify the required parameter 'profile_id' is set
|
203
231
|
if @api_client.config.client_side_validation && profile_id.nil?
|
204
232
|
fail ArgumentError, "Missing the required parameter 'profile_id' when calling PaymentInstrumentsApi.tms_v1_paymentinstruments_token_id_delete"
|
205
233
|
end
|
206
|
-
|
207
|
-
|
208
|
-
|
234
|
+
if @api_client.config.client_side_validation && profile_id.to_s.length > 36
|
235
|
+
fail ArgumentError, 'invalid value for "profile_id" when calling PaymentInstrumentsApi.tms_v1_paymentinstruments_token_id_delete, the character length must be smaller than or equal to 36.'
|
236
|
+
end
|
209
237
|
|
210
|
-
|
211
|
-
|
212
|
-
|
238
|
+
if @api_client.config.client_side_validation && profile_id.to_s.length < 36
|
239
|
+
fail ArgumentError, 'invalid value for "profile_id" when calling PaymentInstrumentsApi.tms_v1_paymentinstruments_token_id_delete, the character length must be great than or equal to 36.'
|
240
|
+
end
|
213
241
|
|
214
242
|
# verify the required parameter 'token_id' is set
|
215
243
|
if @api_client.config.client_side_validation && token_id.nil?
|
216
244
|
fail ArgumentError, "Missing the required parameter 'token_id' when calling PaymentInstrumentsApi.tms_v1_paymentinstruments_token_id_delete"
|
217
245
|
end
|
218
|
-
|
219
|
-
|
220
|
-
|
246
|
+
if @api_client.config.client_side_validation && token_id.to_s.length > 32
|
247
|
+
fail ArgumentError, 'invalid value for "token_id" when calling PaymentInstrumentsApi.tms_v1_paymentinstruments_token_id_delete, the character length must be smaller than or equal to 32.'
|
248
|
+
end
|
221
249
|
|
222
|
-
|
223
|
-
|
224
|
-
|
250
|
+
if @api_client.config.client_side_validation && token_id.to_s.length < 16
|
251
|
+
fail ArgumentError, 'invalid value for "token_id" when calling PaymentInstrumentsApi.tms_v1_paymentinstruments_token_id_delete, the character length must be great than or equal to 16.'
|
252
|
+
end
|
225
253
|
|
226
254
|
# resource path
|
227
255
|
local_var_path = 'tms/v1/paymentinstruments/{tokenId}'.sub('{' + 'tokenId' + '}', token_id.to_s)
|
@@ -250,52 +278,63 @@ module CyberSource
|
|
250
278
|
:body => post_body,
|
251
279
|
:auth_names => auth_names)
|
252
280
|
if @api_client.config.debugging
|
253
|
-
|
254
|
-
|
281
|
+
begin
|
282
|
+
raise
|
283
|
+
@api_client.config.logger.debug "API called: PaymentInstrumentsApi#tms_v1_paymentinstruments_token_id_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
284
|
+
rescue
|
285
|
+
puts 'Cannot write to log'
|
286
|
+
end
|
287
|
+
end
|
255
288
|
return data, status_code, headers
|
256
289
|
end
|
257
290
|
# Retrieve a Payment Instrument
|
258
291
|
# @param profile_id The id of a profile containing user specific TMS configuration.
|
259
292
|
# @param token_id The TokenId of a Payment Instrument.
|
260
293
|
# @param [Hash] opts the optional parameters
|
261
|
-
# @return [
|
294
|
+
# @return [TmsV1PaymentinstrumentsGet200Response]
|
262
295
|
def tms_v1_paymentinstruments_token_id_get(profile_id, token_id, opts = {})
|
263
|
-
data,
|
264
|
-
return data,
|
296
|
+
data, status_code, headers = tms_v1_paymentinstruments_token_id_get_with_http_info(profile_id, token_id, opts)
|
297
|
+
return data, status_code, headers
|
265
298
|
end
|
266
299
|
|
267
300
|
# Retrieve a Payment Instrument
|
268
301
|
# @param profile_id The id of a profile containing user specific TMS configuration.
|
269
302
|
# @param token_id The TokenId of a Payment Instrument.
|
270
303
|
# @param [Hash] opts the optional parameters
|
271
|
-
# @return [Array<(
|
304
|
+
# @return [Array<(TmsV1PaymentinstrumentsGet200Response, Fixnum, Hash)>] TmsV1PaymentinstrumentsGet200Response data, response status code and response headers
|
272
305
|
def tms_v1_paymentinstruments_token_id_get_with_http_info(profile_id, token_id, opts = {})
|
273
|
-
|
274
|
-
|
306
|
+
|
307
|
+
if @api_client.config.debugging
|
308
|
+
begin
|
309
|
+
raise
|
310
|
+
@api_client.config.logger.debug 'Calling API: PaymentInstrumentsApi.tms_v1_paymentinstruments_token_id_get ...'
|
311
|
+
rescue
|
312
|
+
puts 'Cannot write to log'
|
313
|
+
end
|
275
314
|
end
|
276
315
|
# verify the required parameter 'profile_id' is set
|
277
316
|
if @api_client.config.client_side_validation && profile_id.nil?
|
278
317
|
fail ArgumentError, "Missing the required parameter 'profile_id' when calling PaymentInstrumentsApi.tms_v1_paymentinstruments_token_id_get"
|
279
318
|
end
|
280
|
-
|
281
|
-
|
282
|
-
|
319
|
+
if @api_client.config.client_side_validation && profile_id.to_s.length > 36
|
320
|
+
fail ArgumentError, 'invalid value for "profile_id" when calling PaymentInstrumentsApi.tms_v1_paymentinstruments_token_id_get, the character length must be smaller than or equal to 36.'
|
321
|
+
end
|
283
322
|
|
284
|
-
|
285
|
-
|
286
|
-
|
323
|
+
if @api_client.config.client_side_validation && profile_id.to_s.length < 36
|
324
|
+
fail ArgumentError, 'invalid value for "profile_id" when calling PaymentInstrumentsApi.tms_v1_paymentinstruments_token_id_get, the character length must be great than or equal to 36.'
|
325
|
+
end
|
287
326
|
|
288
327
|
# verify the required parameter 'token_id' is set
|
289
328
|
if @api_client.config.client_side_validation && token_id.nil?
|
290
329
|
fail ArgumentError, "Missing the required parameter 'token_id' when calling PaymentInstrumentsApi.tms_v1_paymentinstruments_token_id_get"
|
291
330
|
end
|
292
|
-
|
293
|
-
|
294
|
-
|
331
|
+
if @api_client.config.client_side_validation && token_id.to_s.length > 32
|
332
|
+
fail ArgumentError, 'invalid value for "token_id" when calling PaymentInstrumentsApi.tms_v1_paymentinstruments_token_id_get, the character length must be smaller than or equal to 32.'
|
333
|
+
end
|
295
334
|
|
296
|
-
|
297
|
-
|
298
|
-
|
335
|
+
if @api_client.config.client_side_validation && token_id.to_s.length < 16
|
336
|
+
fail ArgumentError, 'invalid value for "token_id" when calling PaymentInstrumentsApi.tms_v1_paymentinstruments_token_id_get, the character length must be great than or equal to 16.'
|
337
|
+
end
|
299
338
|
|
300
339
|
# resource path
|
301
340
|
local_var_path = 'tms/v1/paymentinstruments/{tokenId}'.sub('{' + 'tokenId' + '}', token_id.to_s)
|
@@ -323,10 +362,15 @@ module CyberSource
|
|
323
362
|
:form_params => form_params,
|
324
363
|
:body => post_body,
|
325
364
|
:auth_names => auth_names,
|
326
|
-
:return_type => '
|
365
|
+
:return_type => 'TmsV1PaymentinstrumentsGet200Response')
|
327
366
|
if @api_client.config.debugging
|
328
|
-
|
329
|
-
|
367
|
+
begin
|
368
|
+
raise
|
369
|
+
@api_client.config.logger.debug "API called: PaymentInstrumentsApi#tms_v1_paymentinstruments_token_id_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
370
|
+
rescue
|
371
|
+
puts 'Cannot write to log'
|
372
|
+
end
|
373
|
+
end
|
330
374
|
return data, status_code, headers
|
331
375
|
end
|
332
376
|
# Update a Payment Instrument
|
@@ -334,10 +378,10 @@ module CyberSource
|
|
334
378
|
# @param token_id The TokenId of a Payment Instrument.
|
335
379
|
# @param body Please specify the customers payment details.
|
336
380
|
# @param [Hash] opts the optional parameters
|
337
|
-
# @return [
|
381
|
+
# @return [TmsV1PaymentinstrumentsGet200Response]
|
338
382
|
def tms_v1_paymentinstruments_token_id_patch(profile_id, token_id, body, opts = {})
|
339
|
-
data,
|
340
|
-
return data,
|
383
|
+
data, status_code, headers = tms_v1_paymentinstruments_token_id_patch_with_http_info(profile_id, token_id, body, opts)
|
384
|
+
return data, status_code, headers
|
341
385
|
end
|
342
386
|
|
343
387
|
# Update a Payment Instrument
|
@@ -345,34 +389,40 @@ module CyberSource
|
|
345
389
|
# @param token_id The TokenId of a Payment Instrument.
|
346
390
|
# @param body Please specify the customers payment details.
|
347
391
|
# @param [Hash] opts the optional parameters
|
348
|
-
# @return [Array<(
|
392
|
+
# @return [Array<(TmsV1PaymentinstrumentsGet200Response, Fixnum, Hash)>] TmsV1PaymentinstrumentsGet200Response data, response status code and response headers
|
349
393
|
def tms_v1_paymentinstruments_token_id_patch_with_http_info(profile_id, token_id, body, opts = {})
|
350
|
-
|
351
|
-
|
394
|
+
|
395
|
+
if @api_client.config.debugging
|
396
|
+
begin
|
397
|
+
raise
|
398
|
+
@api_client.config.logger.debug 'Calling API: PaymentInstrumentsApi.tms_v1_paymentinstruments_token_id_patch ...'
|
399
|
+
rescue
|
400
|
+
puts 'Cannot write to log'
|
401
|
+
end
|
352
402
|
end
|
353
403
|
# verify the required parameter 'profile_id' is set
|
354
404
|
if @api_client.config.client_side_validation && profile_id.nil?
|
355
405
|
fail ArgumentError, "Missing the required parameter 'profile_id' when calling PaymentInstrumentsApi.tms_v1_paymentinstruments_token_id_patch"
|
356
406
|
end
|
357
|
-
|
358
|
-
|
359
|
-
|
407
|
+
if @api_client.config.client_side_validation && profile_id.to_s.length > 36
|
408
|
+
fail ArgumentError, 'invalid value for "profile_id" when calling PaymentInstrumentsApi.tms_v1_paymentinstruments_token_id_patch, the character length must be smaller than or equal to 36.'
|
409
|
+
end
|
360
410
|
|
361
|
-
|
362
|
-
|
363
|
-
|
411
|
+
if @api_client.config.client_side_validation && profile_id.to_s.length < 36
|
412
|
+
fail ArgumentError, 'invalid value for "profile_id" when calling PaymentInstrumentsApi.tms_v1_paymentinstruments_token_id_patch, the character length must be great than or equal to 36.'
|
413
|
+
end
|
364
414
|
|
365
415
|
# verify the required parameter 'token_id' is set
|
366
416
|
if @api_client.config.client_side_validation && token_id.nil?
|
367
417
|
fail ArgumentError, "Missing the required parameter 'token_id' when calling PaymentInstrumentsApi.tms_v1_paymentinstruments_token_id_patch"
|
368
418
|
end
|
369
|
-
|
370
|
-
|
371
|
-
|
419
|
+
if @api_client.config.client_side_validation && token_id.to_s.length > 32
|
420
|
+
fail ArgumentError, 'invalid value for "token_id" when calling PaymentInstrumentsApi.tms_v1_paymentinstruments_token_id_patch, the character length must be smaller than or equal to 32.'
|
421
|
+
end
|
372
422
|
|
373
|
-
|
374
|
-
|
375
|
-
|
423
|
+
if @api_client.config.client_side_validation && token_id.to_s.length < 16
|
424
|
+
fail ArgumentError, 'invalid value for "token_id" when calling PaymentInstrumentsApi.tms_v1_paymentinstruments_token_id_patch, the character length must be great than or equal to 16.'
|
425
|
+
end
|
376
426
|
|
377
427
|
# verify the required parameter 'body' is set
|
378
428
|
if @api_client.config.client_side_validation && body.nil?
|
@@ -404,10 +454,15 @@ module CyberSource
|
|
404
454
|
:form_params => form_params,
|
405
455
|
:body => post_body,
|
406
456
|
:auth_names => auth_names,
|
407
|
-
:return_type => '
|
457
|
+
:return_type => 'TmsV1PaymentinstrumentsGet200Response')
|
408
458
|
if @api_client.config.debugging
|
409
|
-
|
410
|
-
|
459
|
+
begin
|
460
|
+
raise
|
461
|
+
@api_client.config.logger.debug "API called: PaymentInstrumentsApi#tms_v1_paymentinstruments_token_id_patch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
462
|
+
rescue
|
463
|
+
puts 'Cannot write to log'
|
464
|
+
end
|
465
|
+
end
|
411
466
|
return data, status_code, headers
|
412
467
|
end
|
413
468
|
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
|
# Process a Payment
|
24
24
|
# Authorize the payment for the transaction.
|
@@ -26,8 +26,8 @@ module CyberSource
|
|
26
26
|
# @param [Hash] opts the optional parameters
|
27
27
|
# @return [PtsV2PaymentsPost201Response]
|
28
28
|
def create_payment(create_payment_request, opts = {})
|
29
|
-
data,
|
30
|
-
return data,
|
29
|
+
data, status_code, headers = create_payment_with_http_info(create_payment_request, opts)
|
30
|
+
return data, status_code, headers
|
31
31
|
end
|
32
32
|
|
33
33
|
# Process a Payment
|
@@ -36,8 +36,14 @@ module CyberSource
|
|
36
36
|
# @param [Hash] opts the optional parameters
|
37
37
|
# @return [Array<(PtsV2PaymentsPost201Response, Fixnum, Hash)>] PtsV2PaymentsPost201Response data, response status code and response headers
|
38
38
|
def create_payment_with_http_info(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: PaymentsApi.create_payment ...'
|
44
|
+
rescue
|
45
|
+
puts 'Cannot write to log'
|
46
|
+
end
|
41
47
|
end
|
42
48
|
# verify the required parameter 'create_payment_request' is set
|
43
49
|
if @api_client.config.client_side_validation && 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
|
|
@@ -70,8 +76,13 @@ module CyberSource
|
|
70
76
|
:auth_names => auth_names,
|
71
77
|
:return_type => 'PtsV2PaymentsPost201Response')
|
72
78
|
if @api_client.config.debugging
|
73
|
-
|
74
|
-
|
79
|
+
begin
|
80
|
+
raise
|
81
|
+
@api_client.config.logger.debug "API called: PaymentsApi#create_payment\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
|