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
|
# Flex Tokenize card
|
24
24
|
# Returns a token representing the supplied card details. The token replaces card data and can be used as the Subscription ID in the CyberSource Simple Order API or SCMP API. This is an unauthenticated call that you should initiate from your customer’s device or browser.
|
@@ -26,8 +26,8 @@ module CyberSource
|
|
26
26
|
# @option opts [TokenizeRequest] :tokenize_request
|
27
27
|
# @return [FlexV1TokensPost200Response]
|
28
28
|
def tokenize(opts = {})
|
29
|
-
data,
|
30
|
-
return data,
|
29
|
+
data, status_code, headers = tokenize_with_http_info(opts)
|
30
|
+
return data, status_code, headers
|
31
31
|
end
|
32
32
|
|
33
33
|
# Flex Tokenize card
|
@@ -36,8 +36,14 @@ module CyberSource
|
|
36
36
|
# @option opts [TokenizeRequest] :tokenize_request
|
37
37
|
# @return [Array<(FlexV1TokensPost200Response, Fixnum, Hash)>] FlexV1TokensPost200Response data, response status code and response headers
|
38
38
|
def tokenize_with_http_info(opts = {})
|
39
|
-
|
40
|
-
|
39
|
+
|
40
|
+
if @api_client.config.debugging
|
41
|
+
begin
|
42
|
+
raise
|
43
|
+
@api_client.config.logger.debug 'Calling API: FlexTokenApi.tokenize ...'
|
44
|
+
rescue
|
45
|
+
puts 'Cannot write to log'
|
46
|
+
end
|
41
47
|
end
|
42
48
|
# resource path
|
43
49
|
local_var_path = 'flex/v1/tokens/'
|
@@ -66,8 +72,13 @@ module CyberSource
|
|
66
72
|
:auth_names => auth_names,
|
67
73
|
:return_type => 'FlexV1TokensPost200Response')
|
68
74
|
if @api_client.config.debugging
|
69
|
-
|
70
|
-
|
75
|
+
begin
|
76
|
+
raise
|
77
|
+
@api_client.config.logger.debug "API called: FlexTokenApi#tokenize\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
78
|
+
rescue
|
79
|
+
puts 'Cannot write to log'
|
80
|
+
end
|
81
|
+
end
|
71
82
|
return data, status_code, headers
|
72
83
|
end
|
73
84
|
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
|
# Delete an Instrument Identifier
|
24
24
|
# @param profile_id The id of a profile containing user specific TMS configuration.
|
@@ -26,8 +26,8 @@ module CyberSource
|
|
26
26
|
# @param [Hash] opts the optional parameters
|
27
27
|
# @return [nil]
|
28
28
|
def tms_v1_instrumentidentifiers_token_id_delete(profile_id, token_id, opts = {})
|
29
|
-
data,
|
30
|
-
return data,
|
29
|
+
data, status_code, headers = tms_v1_instrumentidentifiers_token_id_delete_with_http_info(profile_id, token_id, opts)
|
30
|
+
return data, status_code, headers
|
31
31
|
end
|
32
32
|
|
33
33
|
# Delete an Instrument Identifier
|
@@ -36,32 +36,38 @@ module CyberSource
|
|
36
36
|
# @param [Hash] opts the optional parameters
|
37
37
|
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
38
38
|
def tms_v1_instrumentidentifiers_token_id_delete_with_http_info(profile_id, token_id, opts = {})
|
39
|
-
|
40
|
-
|
39
|
+
|
40
|
+
if @api_client.config.debugging
|
41
|
+
begin
|
42
|
+
raise
|
43
|
+
@api_client.config.logger.debug 'Calling API: InstrumentIdentifierApi.tms_v1_instrumentidentifiers_token_id_delete ...'
|
44
|
+
rescue
|
45
|
+
puts 'Cannot write to log'
|
46
|
+
end
|
41
47
|
end
|
42
48
|
# verify the required parameter 'profile_id' is set
|
43
49
|
if @api_client.config.client_side_validation && profile_id.nil?
|
44
50
|
fail ArgumentError, "Missing the required parameter 'profile_id' when calling InstrumentIdentifierApi.tms_v1_instrumentidentifiers_token_id_delete"
|
45
51
|
end
|
46
|
-
|
47
|
-
|
48
|
-
|
52
|
+
if @api_client.config.client_side_validation && profile_id.to_s.length > 36
|
53
|
+
fail ArgumentError, 'invalid value for "profile_id" when calling InstrumentIdentifierApi.tms_v1_instrumentidentifiers_token_id_delete, the character length must be smaller than or equal to 36.'
|
54
|
+
end
|
49
55
|
|
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 InstrumentIdentifierApi.tms_v1_instrumentidentifiers_token_id_delete, the character length must be great than or equal to 36.'
|
58
|
+
end
|
53
59
|
|
54
60
|
# verify the required parameter 'token_id' is set
|
55
61
|
if @api_client.config.client_side_validation && token_id.nil?
|
56
62
|
fail ArgumentError, "Missing the required parameter 'token_id' when calling InstrumentIdentifierApi.tms_v1_instrumentidentifiers_token_id_delete"
|
57
63
|
end
|
58
|
-
|
59
|
-
|
60
|
-
|
64
|
+
if @api_client.config.client_side_validation && token_id.to_s.length > 32
|
65
|
+
fail ArgumentError, 'invalid value for "token_id" when calling InstrumentIdentifierApi.tms_v1_instrumentidentifiers_token_id_delete, the character length must be smaller than or equal to 32.'
|
66
|
+
end
|
61
67
|
|
62
|
-
|
63
|
-
|
64
|
-
|
68
|
+
if @api_client.config.client_side_validation && token_id.to_s.length < 16
|
69
|
+
fail ArgumentError, 'invalid value for "token_id" when calling InstrumentIdentifierApi.tms_v1_instrumentidentifiers_token_id_delete, the character length must be great than or equal to 16.'
|
70
|
+
end
|
65
71
|
|
66
72
|
# resource path
|
67
73
|
local_var_path = 'tms/v1/instrumentidentifiers/{tokenId}'.sub('{' + 'tokenId' + '}', token_id.to_s)
|
@@ -90,8 +96,13 @@ module CyberSource
|
|
90
96
|
:body => post_body,
|
91
97
|
:auth_names => auth_names)
|
92
98
|
if @api_client.config.debugging
|
93
|
-
|
94
|
-
|
99
|
+
begin
|
100
|
+
raise
|
101
|
+
@api_client.config.logger.debug "API called: InstrumentIdentifierApi#tms_v1_instrumentidentifiers_token_id_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
102
|
+
rescue
|
103
|
+
puts 'Cannot write to log'
|
104
|
+
end
|
105
|
+
end
|
95
106
|
return data, status_code, headers
|
96
107
|
end
|
97
108
|
# Retrieve an Instrument Identifier
|
@@ -100,8 +111,8 @@ module CyberSource
|
|
100
111
|
# @param [Hash] opts the optional parameters
|
101
112
|
# @return [TmsV1InstrumentidentifiersPost200Response]
|
102
113
|
def tms_v1_instrumentidentifiers_token_id_get(profile_id, token_id, opts = {})
|
103
|
-
data,
|
104
|
-
return data,
|
114
|
+
data, status_code, headers = tms_v1_instrumentidentifiers_token_id_get_with_http_info(profile_id, token_id, opts)
|
115
|
+
return data, status_code, headers
|
105
116
|
end
|
106
117
|
|
107
118
|
# Retrieve an Instrument Identifier
|
@@ -110,32 +121,38 @@ module CyberSource
|
|
110
121
|
# @param [Hash] opts the optional parameters
|
111
122
|
# @return [Array<(TmsV1InstrumentidentifiersPost200Response, Fixnum, Hash)>] TmsV1InstrumentidentifiersPost200Response data, response status code and response headers
|
112
123
|
def tms_v1_instrumentidentifiers_token_id_get_with_http_info(profile_id, token_id, opts = {})
|
113
|
-
|
114
|
-
|
124
|
+
|
125
|
+
if @api_client.config.debugging
|
126
|
+
begin
|
127
|
+
raise
|
128
|
+
@api_client.config.logger.debug 'Calling API: InstrumentIdentifierApi.tms_v1_instrumentidentifiers_token_id_get ...'
|
129
|
+
rescue
|
130
|
+
puts 'Cannot write to log'
|
131
|
+
end
|
115
132
|
end
|
116
133
|
# verify the required parameter 'profile_id' is set
|
117
134
|
if @api_client.config.client_side_validation && profile_id.nil?
|
118
135
|
fail ArgumentError, "Missing the required parameter 'profile_id' when calling InstrumentIdentifierApi.tms_v1_instrumentidentifiers_token_id_get"
|
119
136
|
end
|
120
|
-
|
121
|
-
|
122
|
-
|
137
|
+
if @api_client.config.client_side_validation && profile_id.to_s.length > 36
|
138
|
+
fail ArgumentError, 'invalid value for "profile_id" when calling InstrumentIdentifierApi.tms_v1_instrumentidentifiers_token_id_get, the character length must be smaller than or equal to 36.'
|
139
|
+
end
|
123
140
|
|
124
|
-
|
125
|
-
|
126
|
-
|
141
|
+
if @api_client.config.client_side_validation && profile_id.to_s.length < 36
|
142
|
+
fail ArgumentError, 'invalid value for "profile_id" when calling InstrumentIdentifierApi.tms_v1_instrumentidentifiers_token_id_get, the character length must be great than or equal to 36.'
|
143
|
+
end
|
127
144
|
|
128
145
|
# verify the required parameter 'token_id' is set
|
129
146
|
if @api_client.config.client_side_validation && token_id.nil?
|
130
147
|
fail ArgumentError, "Missing the required parameter 'token_id' when calling InstrumentIdentifierApi.tms_v1_instrumentidentifiers_token_id_get"
|
131
148
|
end
|
132
|
-
|
133
|
-
|
134
|
-
|
149
|
+
if @api_client.config.client_side_validation && token_id.to_s.length > 32
|
150
|
+
fail ArgumentError, 'invalid value for "token_id" when calling InstrumentIdentifierApi.tms_v1_instrumentidentifiers_token_id_get, the character length must be smaller than or equal to 32.'
|
151
|
+
end
|
135
152
|
|
136
|
-
|
137
|
-
|
138
|
-
|
153
|
+
if @api_client.config.client_side_validation && token_id.to_s.length < 16
|
154
|
+
fail ArgumentError, 'invalid value for "token_id" when calling InstrumentIdentifierApi.tms_v1_instrumentidentifiers_token_id_get, the character length must be great than or equal to 16.'
|
155
|
+
end
|
139
156
|
|
140
157
|
# resource path
|
141
158
|
local_var_path = 'tms/v1/instrumentidentifiers/{tokenId}'.sub('{' + 'tokenId' + '}', token_id.to_s)
|
@@ -165,8 +182,13 @@ module CyberSource
|
|
165
182
|
:auth_names => auth_names,
|
166
183
|
:return_type => 'TmsV1InstrumentidentifiersPost200Response')
|
167
184
|
if @api_client.config.debugging
|
168
|
-
|
169
|
-
|
185
|
+
begin
|
186
|
+
raise
|
187
|
+
@api_client.config.logger.debug "API called: InstrumentIdentifierApi#tms_v1_instrumentidentifiers_token_id_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
188
|
+
rescue
|
189
|
+
puts 'Cannot write to log'
|
190
|
+
end
|
191
|
+
end
|
170
192
|
return data, status_code, headers
|
171
193
|
end
|
172
194
|
# Update a Instrument Identifier
|
@@ -176,8 +198,8 @@ module CyberSource
|
|
176
198
|
# @param [Hash] opts the optional parameters
|
177
199
|
# @return [TmsV1InstrumentidentifiersPost200Response]
|
178
200
|
def tms_v1_instrumentidentifiers_token_id_patch(profile_id, token_id, body, opts = {})
|
179
|
-
data,
|
180
|
-
return data,
|
201
|
+
data, status_code, headers = tms_v1_instrumentidentifiers_token_id_patch_with_http_info(profile_id, token_id, body, opts)
|
202
|
+
return data, status_code, headers
|
181
203
|
end
|
182
204
|
|
183
205
|
# Update a Instrument Identifier
|
@@ -187,32 +209,38 @@ module CyberSource
|
|
187
209
|
# @param [Hash] opts the optional parameters
|
188
210
|
# @return [Array<(TmsV1InstrumentidentifiersPost200Response, Fixnum, Hash)>] TmsV1InstrumentidentifiersPost200Response data, response status code and response headers
|
189
211
|
def tms_v1_instrumentidentifiers_token_id_patch_with_http_info(profile_id, token_id, body, opts = {})
|
190
|
-
|
191
|
-
|
212
|
+
|
213
|
+
if @api_client.config.debugging
|
214
|
+
begin
|
215
|
+
raise
|
216
|
+
@api_client.config.logger.debug 'Calling API: InstrumentIdentifierApi.tms_v1_instrumentidentifiers_token_id_patch ...'
|
217
|
+
rescue
|
218
|
+
puts 'Cannot write to log'
|
219
|
+
end
|
192
220
|
end
|
193
221
|
# verify the required parameter 'profile_id' is set
|
194
222
|
if @api_client.config.client_side_validation && profile_id.nil?
|
195
223
|
fail ArgumentError, "Missing the required parameter 'profile_id' when calling InstrumentIdentifierApi.tms_v1_instrumentidentifiers_token_id_patch"
|
196
224
|
end
|
197
|
-
|
198
|
-
|
199
|
-
|
225
|
+
if @api_client.config.client_side_validation && profile_id.to_s.length > 36
|
226
|
+
fail ArgumentError, 'invalid value for "profile_id" when calling InstrumentIdentifierApi.tms_v1_instrumentidentifiers_token_id_patch, the character length must be smaller than or equal to 36.'
|
227
|
+
end
|
200
228
|
|
201
|
-
|
202
|
-
|
203
|
-
|
229
|
+
if @api_client.config.client_side_validation && profile_id.to_s.length < 36
|
230
|
+
fail ArgumentError, 'invalid value for "profile_id" when calling InstrumentIdentifierApi.tms_v1_instrumentidentifiers_token_id_patch, the character length must be great than or equal to 36.'
|
231
|
+
end
|
204
232
|
|
205
233
|
# verify the required parameter 'token_id' is set
|
206
234
|
if @api_client.config.client_side_validation && token_id.nil?
|
207
235
|
fail ArgumentError, "Missing the required parameter 'token_id' when calling InstrumentIdentifierApi.tms_v1_instrumentidentifiers_token_id_patch"
|
208
236
|
end
|
209
|
-
|
210
|
-
|
211
|
-
|
237
|
+
if @api_client.config.client_side_validation && token_id.to_s.length > 32
|
238
|
+
fail ArgumentError, 'invalid value for "token_id" when calling InstrumentIdentifierApi.tms_v1_instrumentidentifiers_token_id_patch, the character length must be smaller than or equal to 32.'
|
239
|
+
end
|
212
240
|
|
213
|
-
|
214
|
-
|
215
|
-
|
241
|
+
if @api_client.config.client_side_validation && token_id.to_s.length < 16
|
242
|
+
fail ArgumentError, 'invalid value for "token_id" when calling InstrumentIdentifierApi.tms_v1_instrumentidentifiers_token_id_patch, the character length must be great than or equal to 16.'
|
243
|
+
end
|
216
244
|
|
217
245
|
# verify the required parameter 'body' is set
|
218
246
|
if @api_client.config.client_side_validation && body.nil?
|
@@ -246,8 +274,13 @@ module CyberSource
|
|
246
274
|
:auth_names => auth_names,
|
247
275
|
:return_type => 'TmsV1InstrumentidentifiersPost200Response')
|
248
276
|
if @api_client.config.debugging
|
249
|
-
|
250
|
-
|
277
|
+
begin
|
278
|
+
raise
|
279
|
+
@api_client.config.logger.debug "API called: InstrumentIdentifierApi#tms_v1_instrumentidentifiers_token_id_patch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
280
|
+
rescue
|
281
|
+
puts 'Cannot write to log'
|
282
|
+
end
|
283
|
+
end
|
251
284
|
return data, status_code, headers
|
252
285
|
end
|
253
286
|
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 an Instrument Identifier
|
24
24
|
# @param profile_id The id of a profile containing user specific TMS configuration.
|
@@ -26,8 +26,8 @@ module CyberSource
|
|
26
26
|
# @param [Hash] opts the optional parameters
|
27
27
|
# @return [TmsV1InstrumentidentifiersPost200Response]
|
28
28
|
def tms_v1_instrumentidentifiers_post(profile_id, body, opts = {})
|
29
|
-
data,
|
30
|
-
return data,
|
29
|
+
data, status_code, headers = tms_v1_instrumentidentifiers_post_with_http_info(profile_id, body, opts)
|
30
|
+
return data, status_code, headers
|
31
31
|
end
|
32
32
|
|
33
33
|
# Create an Instrument Identifier
|
@@ -36,20 +36,26 @@ module CyberSource
|
|
36
36
|
# @param [Hash] opts the optional parameters
|
37
37
|
# @return [Array<(TmsV1InstrumentidentifiersPost200Response, Fixnum, Hash)>] TmsV1InstrumentidentifiersPost200Response data, response status code and response headers
|
38
38
|
def tms_v1_instrumentidentifiers_post_with_http_info(profile_id, body, opts = {})
|
39
|
-
|
40
|
-
|
39
|
+
|
40
|
+
if @api_client.config.debugging
|
41
|
+
begin
|
42
|
+
raise
|
43
|
+
@api_client.config.logger.debug 'Calling API: InstrumentIdentifiersApi.tms_v1_instrumentidentifiers_post ...'
|
44
|
+
rescue
|
45
|
+
puts 'Cannot write to log'
|
46
|
+
end
|
41
47
|
end
|
42
48
|
# verify the required parameter 'profile_id' is set
|
43
49
|
if @api_client.config.client_side_validation && profile_id.nil?
|
44
50
|
fail ArgumentError, "Missing the required parameter 'profile_id' when calling InstrumentIdentifiersApi.tms_v1_instrumentidentifiers_post"
|
45
51
|
end
|
46
|
-
|
47
|
-
|
48
|
-
|
52
|
+
if @api_client.config.client_side_validation && profile_id.to_s.length > 36
|
53
|
+
fail ArgumentError, 'invalid value for "profile_id" when calling InstrumentIdentifiersApi.tms_v1_instrumentidentifiers_post, the character length must be smaller than or equal to 36.'
|
54
|
+
end
|
49
55
|
|
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 InstrumentIdentifiersApi.tms_v1_instrumentidentifiers_post, the character length must be great than or equal to 36.'
|
58
|
+
end
|
53
59
|
|
54
60
|
# verify the required parameter 'body' is set
|
55
61
|
if @api_client.config.client_side_validation && body.nil?
|
@@ -83,8 +89,13 @@ module CyberSource
|
|
83
89
|
:auth_names => auth_names,
|
84
90
|
:return_type => 'TmsV1InstrumentidentifiersPost200Response')
|
85
91
|
if @api_client.config.debugging
|
86
|
-
|
87
|
-
|
92
|
+
begin
|
93
|
+
raise
|
94
|
+
@api_client.config.logger.debug "API called: InstrumentIdentifiersApi#tms_v1_instrumentidentifiers_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
95
|
+
rescue
|
96
|
+
puts 'Cannot write to log'
|
97
|
+
end
|
98
|
+
end
|
88
99
|
return data, status_code, headers
|
89
100
|
end
|
90
101
|
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
|
# Generate Key
|
24
24
|
# Generate a one-time use public key and key ID to encrypt the card number in the follow-on Tokenize Card request. The key used to encrypt the card number on the cardholder’s device or browser is valid for 15 minutes and must be used to verify the signature in the response message. CyberSource recommends creating a new key for each order. Generating a key is an authenticated request initiated from your servers, prior to requesting to tokenize the card data from your customer’s device or browser.
|
@@ -26,8 +26,8 @@ module CyberSource
|
|
26
26
|
# @option opts [GeneratePublicKeyRequest] :generate_public_key_request
|
27
27
|
# @return [FlexV1KeysPost200Response]
|
28
28
|
def generate_public_key(opts = {})
|
29
|
-
data,
|
30
|
-
return data,
|
29
|
+
data, status_code, headers = generate_public_key_with_http_info(opts)
|
30
|
+
return data, status_code, headers
|
31
31
|
end
|
32
32
|
|
33
33
|
# Generate Key
|
@@ -36,8 +36,14 @@ module CyberSource
|
|
36
36
|
# @option opts [GeneratePublicKeyRequest] :generate_public_key_request
|
37
37
|
# @return [Array<(FlexV1KeysPost200Response, Fixnum, Hash)>] FlexV1KeysPost200Response data, response status code and response headers
|
38
38
|
def generate_public_key_with_http_info(opts = {})
|
39
|
-
|
40
|
-
|
39
|
+
|
40
|
+
if @api_client.config.debugging
|
41
|
+
begin
|
42
|
+
raise
|
43
|
+
@api_client.config.logger.debug 'Calling API: KeyGenerationApi.generate_public_key ...'
|
44
|
+
rescue
|
45
|
+
puts 'Cannot write to log'
|
46
|
+
end
|
41
47
|
end
|
42
48
|
# resource path
|
43
49
|
local_var_path = 'flex/v1/keys/'
|
@@ -66,8 +72,13 @@ module CyberSource
|
|
66
72
|
:auth_names => auth_names,
|
67
73
|
:return_type => 'FlexV1KeysPost200Response')
|
68
74
|
if @api_client.config.debugging
|
69
|
-
|
70
|
-
|
75
|
+
begin
|
76
|
+
raise
|
77
|
+
@api_client.config.logger.debug "API called: KeyGenerationApi#generate_public_key\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
78
|
+
rescue
|
79
|
+
puts 'Cannot write to log'
|
80
|
+
end
|
81
|
+
end
|
71
82
|
return data, status_code, headers
|
72
83
|
end
|
73
84
|
end
|
@@ -0,0 +1,115 @@
|
|
1
|
+
=begin
|
2
|
+
#CyberSource Flex API
|
3
|
+
|
4
|
+
#Simple PAN tokenization service
|
5
|
+
|
6
|
+
OpenAPI spec version: 0.0.1
|
7
|
+
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.2.3
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'uri'
|
14
|
+
|
15
|
+
module CyberSource
|
16
|
+
class NetFundingsApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default, config)
|
20
|
+
@api_client = api_client
|
21
|
+
@api_client.set_configuration(config)
|
22
|
+
end
|
23
|
+
# Get Netfunding information for an account or a merchant
|
24
|
+
# Get Netfunding information for an account or a merchant.
|
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
|
+
# @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
|
+
# @param [Hash] opts the optional parameters
|
28
|
+
# @option opts [String] :organization_id Valid Cybersource Organization Id
|
29
|
+
# @option opts [String] :group_name Valid CyberSource Group Name.
|
30
|
+
# @return [ReportingV3NetFundingsGet200Response]
|
31
|
+
def get_net_funding_info(start_time, end_time, opts = {})
|
32
|
+
data, status_code, headers = get_net_funding_info_with_http_info(start_time, end_time, opts)
|
33
|
+
return data, status_code, headers
|
34
|
+
end
|
35
|
+
|
36
|
+
# Get Netfunding information for an account or a merchant
|
37
|
+
# Get Netfunding information for an account or a merchant.
|
38
|
+
# @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
|
39
|
+
# @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
|
40
|
+
# @param [Hash] opts the optional parameters
|
41
|
+
# @option opts [String] :organization_id Valid Cybersource Organization Id
|
42
|
+
# @option opts [String] :group_name Valid CyberSource Group Name.
|
43
|
+
# @return [Array<(ReportingV3NetFundingsGet200Response, Fixnum, Hash)>] ReportingV3NetFundingsGet200Response data, response status code and response headers
|
44
|
+
def get_net_funding_info_with_http_info(start_time, end_time, opts = {})
|
45
|
+
|
46
|
+
if @api_client.config.debugging
|
47
|
+
begin
|
48
|
+
raise
|
49
|
+
@api_client.config.logger.debug 'Calling API: NetFundingsApi.get_net_funding_info ...'
|
50
|
+
rescue
|
51
|
+
puts 'Cannot write to log'
|
52
|
+
end
|
53
|
+
end
|
54
|
+
# verify the required parameter 'start_time' is set
|
55
|
+
if @api_client.config.client_side_validation && start_time.nil?
|
56
|
+
fail ArgumentError, "Missing the required parameter 'start_time' when calling NetFundingsApi.get_net_funding_info"
|
57
|
+
end
|
58
|
+
# verify the required parameter 'end_time' is set
|
59
|
+
if @api_client.config.client_side_validation && end_time.nil?
|
60
|
+
fail ArgumentError, "Missing the required parameter 'end_time' when calling NetFundingsApi.get_net_funding_info"
|
61
|
+
end
|
62
|
+
if @api_client.config.client_side_validation && !opts[:'organization_id'].nil? && opts[:'organization_id'].to_s.length > 32
|
63
|
+
fail ArgumentError, 'invalid value for "opts[:"organization_id"]" when calling NetFundingsApi.get_net_funding_info, the character length must be smaller than or equal to 32.'
|
64
|
+
end
|
65
|
+
|
66
|
+
if @api_client.config.client_side_validation && !opts[:'organization_id'].nil? && opts[:'organization_id'].to_s.length < 1
|
67
|
+
fail ArgumentError, 'invalid value for "opts[:"organization_id"]" when calling NetFundingsApi.get_net_funding_info, the character length must be great than or equal to 1.'
|
68
|
+
end
|
69
|
+
|
70
|
+
#if @api_client.config.client_side_validation && !opts[:'organization_id'].nil? && opts[:'organization_id'] !~ Regexp.new(/[a-zA-Z0-9-_]+/)
|
71
|
+
#fail ArgumentError, "invalid value for 'opts[:\"organization_id\"]' when calling NetFundingsApi.get_net_funding_info, must conform to the pattern /[a-zA-Z0-9-_]+/."
|
72
|
+
#end
|
73
|
+
|
74
|
+
# resource path
|
75
|
+
local_var_path = 'reporting/v3/net-fundings'
|
76
|
+
|
77
|
+
# query parameters
|
78
|
+
query_params = {}
|
79
|
+
query_params[:'startTime'] = start_time
|
80
|
+
query_params[:'endTime'] = end_time
|
81
|
+
query_params[:'organizationId'] = opts[:'organization_id'] if !opts[:'organization_id'].nil?
|
82
|
+
query_params[:'groupName'] = opts[:'group_name'] if !opts[:'group_name'].nil?
|
83
|
+
|
84
|
+
# header parameters
|
85
|
+
header_params = {}
|
86
|
+
# HTTP header 'Accept' (if needed)
|
87
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/hal+json'])
|
88
|
+
# HTTP header 'Content-Type'
|
89
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json;charset=utf-8'])
|
90
|
+
|
91
|
+
# form parameters
|
92
|
+
form_params = {}
|
93
|
+
|
94
|
+
# http body (model)
|
95
|
+
post_body = nil
|
96
|
+
auth_names = []
|
97
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
98
|
+
:header_params => header_params,
|
99
|
+
:query_params => query_params,
|
100
|
+
:form_params => form_params,
|
101
|
+
:body => post_body,
|
102
|
+
:auth_names => auth_names,
|
103
|
+
:return_type => 'ReportingV3NetFundingsGet200Response')
|
104
|
+
if @api_client.config.debugging
|
105
|
+
begin
|
106
|
+
raise
|
107
|
+
@api_client.config.logger.debug "API called: NetFundingsApi#get_net_funding_info\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
108
|
+
rescue
|
109
|
+
puts 'Cannot write to log'
|
110
|
+
end
|
111
|
+
end
|
112
|
+
return data, status_code, headers
|
113
|
+
end
|
114
|
+
end
|
115
|
+
end
|