cybersource_rest_client 0.0.48 → 0.0.50
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/AuthenticationSDK/core/MerchantConfig.rb +5 -0
- data/lib/AuthenticationSDK/util/Constants.rb +2 -0
- data/lib/cybersource_rest_client/api/batches_api.rb +330 -0
- data/lib/cybersource_rest_client/api/customer_api.rb +55 -47
- data/lib/cybersource_rest_client/api/customer_payment_instrument_api.rb +112 -104
- data/lib/cybersource_rest_client/api/customer_shipping_address_api.rb +112 -104
- data/lib/cybersource_rest_client/api/instrument_identifier_api.rb +93 -81
- data/lib/cybersource_rest_client/api/keymanagement_api.rb +3 -3
- data/lib/cybersource_rest_client/api/microform_integration_api.rb +89 -0
- data/lib/cybersource_rest_client/api/payment_instrument_api.rb +55 -49
- data/lib/cybersource_rest_client/api/payments_api.rb +71 -0
- data/lib/cybersource_rest_client/api/plans_api.rb +573 -0
- data/lib/cybersource_rest_client/api/push_funds_api.rb +131 -0
- data/lib/cybersource_rest_client/api/subscriptions_api.rb +568 -0
- data/lib/cybersource_rest_client/api/taxes_api.rb +2 -2
- data/lib/cybersource_rest_client/api/token_api.rb +112 -0
- data/lib/cybersource_rest_client/api/transient_token_data_api.rb +2 -2
- data/lib/cybersource_rest_client/api/unified_checkout_capture_context_api.rb +6 -5
- data/lib/cybersource_rest_client/api_client.rb +11 -0
- data/lib/cybersource_rest_client/models/{pts_v2_payments_post201_response_risk_information_providers.rb → accountupdaterv1batches_included.rb} +9 -9
- data/lib/cybersource_rest_client/models/accountupdaterv1batches_included_tokens.rb +228 -0
- data/lib/cybersource_rest_client/models/body.rb +42 -32
- data/lib/cybersource_rest_client/models/create_plan_request.rb +201 -0
- data/lib/cybersource_rest_client/models/create_report_subscription_request.rb +0 -18
- data/lib/cybersource_rest_client/models/{flexv1tokens_card_info.rb → create_subscription_request.rb} +44 -40
- data/lib/cybersource_rest_client/models/{pts_v2_payments_post201_response_risk_information_providers_provider_name.rb → generate_capture_context_request.rb} +36 -17
- data/lib/cybersource_rest_client/models/generate_unified_checkout_capture_context_request.rb +1 -1
- data/lib/cybersource_rest_client/models/inline_response_200.rb +19 -41
- data/lib/cybersource_rest_client/models/inline_response_200_1.rb +227 -0
- data/lib/cybersource_rest_client/models/inline_response_200_10.rb +200 -0
- data/lib/cybersource_rest_client/models/inline_response_200_11.rb +236 -0
- data/lib/cybersource_rest_client/models/{inline_response_200_keys.rb → inline_response_200_11_keys.rb} +1 -1
- data/lib/cybersource_rest_client/models/inline_response_200_12.rb +239 -0
- data/lib/cybersource_rest_client/models/inline_response_200_12__embedded.rb +185 -0
- data/lib/cybersource_rest_client/models/inline_response_200_12__embedded__links.rb +185 -0
- data/lib/cybersource_rest_client/models/inline_response_200_12__embedded__links_reports.rb +184 -0
- data/lib/cybersource_rest_client/models/inline_response_200_12__embedded_batches.rb +280 -0
- data/lib/cybersource_rest_client/models/inline_response_200_12__embedded_totals.rb +219 -0
- data/lib/cybersource_rest_client/models/inline_response_200_12__links.rb +193 -0
- data/lib/cybersource_rest_client/models/inline_response_200_13.rb +275 -0
- data/lib/cybersource_rest_client/models/inline_response_200_13__links.rb +194 -0
- data/lib/cybersource_rest_client/models/inline_response_200_13__links_report.rb +183 -0
- data/lib/cybersource_rest_client/models/{tokenize_request.rb → inline_response_200_13_billing.rb} +32 -20
- data/lib/cybersource_rest_client/models/inline_response_200_14.rb +277 -0
- data/lib/cybersource_rest_client/models/inline_response_200_14_records.rb +201 -0
- data/lib/cybersource_rest_client/models/inline_response_200_14_response_record.rb +292 -0
- data/lib/cybersource_rest_client/models/inline_response_200_14_response_record_additional_updates.rb +232 -0
- data/lib/cybersource_rest_client/models/inline_response_200_14_source_record.rb +282 -0
- data/lib/cybersource_rest_client/models/inline_response_200_2.rb +194 -0
- data/lib/cybersource_rest_client/models/inline_response_200_3.rb +228 -0
- data/lib/cybersource_rest_client/models/inline_response_200_3_plan_information.rb +200 -0
- data/lib/cybersource_rest_client/models/inline_response_200_4.rb +228 -0
- data/lib/cybersource_rest_client/models/inline_response_200_5.rb +200 -0
- data/lib/cybersource_rest_client/models/inline_response_200_6.rb +214 -0
- data/lib/cybersource_rest_client/models/inline_response_200_6__links.rb +210 -0
- data/lib/cybersource_rest_client/models/inline_response_200_6_order_information.rb +192 -0
- data/lib/cybersource_rest_client/models/inline_response_200_6_order_information_bill_to.rb +206 -0
- data/lib/cybersource_rest_client/models/inline_response_200_6_payment_information.rb +183 -0
- data/lib/cybersource_rest_client/models/inline_response_200_6_payment_information_customer.rb +190 -0
- data/lib/cybersource_rest_client/models/inline_response_200_6_plan_information.rb +224 -0
- data/lib/cybersource_rest_client/models/inline_response_200_6_plan_information_billing_cycles.rb +194 -0
- data/lib/cybersource_rest_client/models/inline_response_200_6_subscription_information.rb +242 -0
- data/lib/cybersource_rest_client/models/inline_response_200_6_subscriptions.rb +236 -0
- data/lib/cybersource_rest_client/models/inline_response_200_7.rb +245 -0
- data/lib/cybersource_rest_client/models/inline_response_200_8.rb +228 -0
- data/lib/cybersource_rest_client/models/inline_response_200_9.rb +228 -0
- data/lib/cybersource_rest_client/models/inline_response_200_9_subscription_information.rb +200 -0
- data/lib/cybersource_rest_client/models/{flex_v1_keys_post200_response.rb → inline_response_200__links.rb} +20 -21
- data/lib/cybersource_rest_client/models/inline_response_200_order_information.rb +183 -0
- data/lib/cybersource_rest_client/models/inline_response_200_order_information_amount_details.rb +222 -0
- data/lib/cybersource_rest_client/models/inline_response_200_plan_information.rb +250 -0
- data/lib/cybersource_rest_client/models/inline_response_200_plan_information_billing_cycles.rb +184 -0
- data/lib/cybersource_rest_client/models/inline_response_200_plan_information_billing_period.rb +195 -0
- data/lib/cybersource_rest_client/models/inline_response_200_plans.rb +218 -0
- data/lib/cybersource_rest_client/models/inline_response_201.rb +228 -0
- data/lib/cybersource_rest_client/models/inline_response_201_1.rb +228 -0
- data/lib/cybersource_rest_client/models/{invoicing_v2_invoices_all_get200_response__links_1.rb → inline_response_201_1__links.rb} +23 -14
- data/lib/cybersource_rest_client/models/inline_response_201_1_subscription_information.rb +200 -0
- data/lib/cybersource_rest_client/models/inline_response_201_plan_information.rb +200 -0
- data/lib/cybersource_rest_client/models/inline_response_202.rb +228 -0
- data/lib/cybersource_rest_client/models/inline_response_202_1.rb +228 -0
- data/lib/cybersource_rest_client/models/inline_response_202_1_subscription_information.rb +200 -0
- data/lib/cybersource_rest_client/models/inline_response_202_2.rb +202 -0
- data/lib/cybersource_rest_client/models/inline_response_202_2__links.rb +194 -0
- data/lib/cybersource_rest_client/models/inline_response_202_2__links_status.rb +183 -0
- data/lib/cybersource_rest_client/models/inline_response_202_subscription_information.rb +200 -0
- data/lib/cybersource_rest_client/models/inline_response_400_1.rb +33 -55
- data/lib/cybersource_rest_client/models/inline_response_400_2.rb +10 -9
- data/lib/cybersource_rest_client/models/inline_response_400_3.rb +55 -33
- data/lib/cybersource_rest_client/models/{inline_response_400_1_fields.rb → inline_response_400_3_fields.rb} +1 -1
- data/lib/cybersource_rest_client/models/inline_response_400_4.rb +30 -71
- data/lib/cybersource_rest_client/models/inline_response_400_5.rb +225 -0
- data/lib/cybersource_rest_client/models/inline_response_400_6.rb +265 -0
- data/lib/cybersource_rest_client/models/{inline_response_400_4_details.rb → inline_response_400_6_details.rb} +1 -1
- data/lib/cybersource_rest_client/models/inline_response_400_errors.rb +2 -2
- data/lib/cybersource_rest_client/models/inline_response_401.rb +241 -0
- data/lib/cybersource_rest_client/models/inline_response_401__links.rb +183 -0
- data/lib/cybersource_rest_client/models/inline_response_401__links_self.rb +183 -0
- data/lib/cybersource_rest_client/models/inline_response_401_fields.rb +202 -0
- data/lib/cybersource_rest_client/models/inline_response_403.rb +185 -0
- data/lib/cybersource_rest_client/models/inline_response_403_errors.rb +194 -0
- data/lib/cybersource_rest_client/models/inline_response_404.rb +194 -0
- data/lib/cybersource_rest_client/models/inline_response_409.rb +185 -0
- data/lib/cybersource_rest_client/models/inline_response_409_errors.rb +194 -0
- data/lib/cybersource_rest_client/models/inline_response_410.rb +185 -0
- data/lib/cybersource_rest_client/models/inline_response_410_errors.rb +194 -0
- data/lib/cybersource_rest_client/models/inline_response_412.rb +185 -0
- data/lib/cybersource_rest_client/models/inline_response_412_errors.rb +194 -0
- data/lib/cybersource_rest_client/models/inline_response_424.rb +185 -0
- data/lib/cybersource_rest_client/models/inline_response_424_errors.rb +194 -0
- data/lib/cybersource_rest_client/models/inline_response_500.rb +9 -38
- data/lib/cybersource_rest_client/models/inline_response_500_1.rb +214 -0
- data/lib/cybersource_rest_client/models/inline_response_500_errors.rb +194 -0
- data/lib/cybersource_rest_client/models/invoicing_v2_invoices_all_get200_response.rb +1 -1
- data/lib/cybersource_rest_client/models/invoicing_v2_invoices_all_get200_response__links.rb +22 -13
- data/lib/cybersource_rest_client/models/invoicing_v2_invoices_all_get200_response_invoices.rb +1 -1
- data/lib/cybersource_rest_client/models/invoicing_v2_invoices_get200_response.rb +1 -1
- data/lib/cybersource_rest_client/models/invoicing_v2_invoices_post201_response.rb +1 -1
- data/lib/cybersource_rest_client/models/invoicingv2invoices_order_information_amount_details_tax_details.rb +2 -2
- data/lib/cybersource_rest_client/models/invoicingv2invoices_order_information_line_items.rb +0 -18
- data/lib/cybersource_rest_client/models/{flex_v1_tokens_post200_response.rb → microformv2sessions_checkout_api_initialization.rb} +68 -59
- data/lib/cybersource_rest_client/models/patch_customer_payment_instrument_request.rb +15 -5
- data/lib/cybersource_rest_client/models/patch_customer_request.rb +1 -1
- data/lib/cybersource_rest_client/models/patch_customer_shipping_address_request.rb +2 -2
- data/lib/cybersource_rest_client/models/patch_instrument_identifier_request.rb +4 -4
- data/lib/cybersource_rest_client/models/patch_payment_instrument_request.rb +15 -5
- data/lib/cybersource_rest_client/models/post_customer_payment_instrument_request.rb +15 -5
- data/lib/cybersource_rest_client/models/post_customer_request.rb +1 -1
- data/lib/cybersource_rest_client/models/post_customer_shipping_address_request.rb +2 -2
- data/lib/cybersource_rest_client/models/post_instrument_identifier_enrollment_request.rb +4 -4
- data/lib/cybersource_rest_client/models/post_instrument_identifier_request.rb +4 -4
- data/lib/cybersource_rest_client/models/post_payment_instrument_request.rb +15 -5
- data/lib/cybersource_rest_client/models/predefined_subscription_request_bean.rb +0 -18
- data/lib/cybersource_rest_client/models/pts_v2_incremental_authorization_patch400_response.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_captures_post400_response.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_1.rb +262 -0
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_1_order_information.rb +192 -0
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_1_order_information_bill_to.rb +344 -0
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_1_order_information_ship_to.rb +318 -0
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_1_payment_information.rb +201 -0
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_1_payment_information_bank.rb +183 -0
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_1_payment_information_bank_account.rb +184 -0
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_1_payment_information_payment_type.rb +183 -0
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_1_payment_information_payment_type_method.rb +184 -0
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_1_processor_information.rb +238 -0
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_1_processor_information_avs.rb +190 -0
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_1_processor_information_seller_protection.rb +184 -0
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_installment_information.rb +0 -18
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_order_information_invoice_details.rb +0 -9
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_account_information_card.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information_tokenized_card.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information.rb +22 -4
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_risk_information.rb +5 -2
- data/lib/cybersource_rest_client/models/pts_v2_payments_post400_response.rb +1 -1
- 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_client_reference_information.rb +226 -0
- data/lib/cybersource_rest_client/models/pts_v2_payments_refund_post201_response_refund_amount_details.rb +17 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_refund_post400_response.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_reversals_post400_response.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_voids_post400_response.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_aggregator_information.rb +215 -0
- data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_aggregator_information_sub_merchant.rb +318 -0
- data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_client_reference_information.rb +238 -0
- data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_merchant_defined_information.rb +206 -0
- data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_merchant_information.rb +225 -0
- data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_merchant_information_merchant_descriptor.rb +270 -0
- data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_order_information.rb +208 -0
- data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_order_information_amount_details.rb +224 -0
- data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_order_information_surcharge.rb +190 -0
- data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_point_of_service_information.rb +236 -0
- data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_processing_information.rb +297 -0
- data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_processing_information_payouts_options.rb +206 -0
- data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_processing_information_recurring_options.rb +184 -0
- data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_processing_options.rb +183 -0
- data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_processing_options_funding_options.rb +183 -0
- data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_processing_options_funding_options_initiator.rb +190 -0
- data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_recipient_information.rb +384 -0
- data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_recipient_information_payment_information.rb +183 -0
- data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_recipient_information_payment_information_card.rb +281 -0
- data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_recipient_information_payment_information_card_customer.rb +190 -0
- data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_recipient_information_payment_information_card_instrument_identifier.rb +190 -0
- data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_recipient_information_payment_information_card_payment_instrument.rb +190 -0
- data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_recipient_information_personal_identification.rb +206 -0
- data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_sender_information.rb +425 -0
- data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_sender_information_account.rb +206 -0
- data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_sender_information_payment_information.rb +183 -0
- data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_sender_information_payment_information_card.rb +270 -0
- data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_sender_information_personal_identification.rb +222 -0
- data/lib/cybersource_rest_client/models/ptsv2payments_device_information.rb +11 -1
- data/lib/cybersource_rest_client/models/ptsv2payments_installment_information.rb +0 -18
- data/lib/cybersource_rest_client/models/ptsv2payments_merchant_information.rb +17 -19
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_amount_details_tax_details.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_bill_to.rb +30 -4
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_invoice_details.rb +0 -9
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_line_items.rb +1 -19
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_ship_to.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_bank.rb +20 -4
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_card.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_payment_type.rb +2 -12
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_payment_type_method.rb +15 -5
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_tokenized_card.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2payments_point_of_sale_information.rb +12 -47
- data/lib/cybersource_rest_client/models/ptsv2payments_processing_information.rb +12 -2
- data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_capture_options.rb +0 -36
- data/lib/cybersource_rest_client/models/ptsv2payments_travel_information_lodging.rb +0 -36
- data/lib/cybersource_rest_client/models/ptsv2payments_travel_information_lodging_room.rb +0 -18
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_buyer_information.rb +63 -4
- data/lib/cybersource_rest_client/models/{generate_public_key_request.rb → ptsv2paymentsidcaptures_buyer_information_personal_identification.rb} +15 -24
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_installment_information.rb +0 -18
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_merchant_information.rb +0 -9
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_order_information_bill_to.rb +65 -1
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_order_information_ship_to.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_processing_information_capture_options.rb +0 -36
- data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_client_reference_information.rb +297 -0
- data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_merchant_information.rb +0 -9
- data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_order_information_line_items.rb +1 -19
- data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_payment_information.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_payment_information_bank.rb +14 -4
- data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_payment_information_card.rb +37 -5
- data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_payment_information_e_wallet.rb +190 -0
- data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_payment_information_payment_type.rb +203 -0
- data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_payment_information_payment_type_method.rb +184 -0
- data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_processing_information.rb +35 -4
- data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_processing_information_refund_options.rb +184 -0
- data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_order_information_line_items.rb +0 -18
- data/lib/cybersource_rest_client/models/ptsv2paymentsidvoids_payment_information.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2payouts_merchant_information.rb +0 -9
- data/lib/cybersource_rest_client/models/ptsv2payouts_payment_information_card.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2refreshpaymentstatusid_agreement_information.rb +184 -0
- data/lib/cybersource_rest_client/models/ptsv2refreshpaymentstatusid_client_reference_information.rb +206 -0
- data/lib/cybersource_rest_client/models/ptsv2refreshpaymentstatusid_payment_information.rb +192 -0
- data/lib/cybersource_rest_client/models/{tss_v2_transactions_post201_response__embedded_payment_information_customer.rb → ptsv2refreshpaymentstatusid_payment_information_customer.rb} +1 -1
- data/lib/cybersource_rest_client/models/ptsv2refreshpaymentstatusid_payment_information_payment_type.rb +193 -0
- data/lib/cybersource_rest_client/models/ptsv2refreshpaymentstatusid_processing_information.rb +186 -0
- data/lib/cybersource_rest_client/models/push_funds201_response.rb +301 -0
- data/lib/cybersource_rest_client/models/push_funds201_response__links.rb +210 -0
- data/lib/cybersource_rest_client/models/push_funds201_response__links_customer.rb +195 -0
- data/lib/cybersource_rest_client/models/push_funds201_response__links_instrument_identifier.rb +195 -0
- data/lib/cybersource_rest_client/models/push_funds201_response__links_payment_instrument.rb +195 -0
- data/lib/cybersource_rest_client/models/push_funds201_response__links_self.rb +195 -0
- data/lib/cybersource_rest_client/models/{flex_v1_keys_post200_response_jwk.rb → push_funds201_response_client_reference_information.rb} +28 -47
- data/lib/cybersource_rest_client/models/push_funds201_response_error_information.rb +217 -0
- data/lib/cybersource_rest_client/models/push_funds201_response_error_information_details.rb +206 -0
- data/lib/cybersource_rest_client/models/push_funds201_response_merchant_information.rb +183 -0
- data/lib/cybersource_rest_client/models/push_funds201_response_merchant_information_merchant_descriptor.rb +222 -0
- data/lib/cybersource_rest_client/models/push_funds201_response_order_information.rb +183 -0
- data/lib/cybersource_rest_client/models/push_funds201_response_order_information_amount_details.rb +247 -0
- data/lib/cybersource_rest_client/models/push_funds201_response_processor_information.rb +264 -0
- data/lib/cybersource_rest_client/models/push_funds201_response_recipient_information.rb +183 -0
- data/lib/cybersource_rest_client/models/push_funds201_response_recipient_information_card.rb +206 -0
- data/lib/cybersource_rest_client/models/push_funds400_response.rb +247 -0
- data/lib/cybersource_rest_client/models/push_funds400_response_details.rb +194 -0
- data/lib/cybersource_rest_client/models/push_funds401_response.rb +226 -0
- data/lib/cybersource_rest_client/models/push_funds404_response.rb +226 -0
- data/lib/cybersource_rest_client/models/push_funds502_response.rb +236 -0
- data/lib/cybersource_rest_client/models/push_funds_request.rb +264 -0
- data/lib/cybersource_rest_client/models/rbsv1plans_client_reference_information.rb +229 -0
- data/lib/cybersource_rest_client/models/rbsv1plans_order_information.rb +183 -0
- data/lib/cybersource_rest_client/models/rbsv1plans_order_information_amount_details.rb +240 -0
- data/lib/cybersource_rest_client/models/rbsv1plans_plan_information.rb +259 -0
- data/lib/cybersource_rest_client/models/rbsv1plans_plan_information_billing_cycles.rb +185 -0
- data/lib/cybersource_rest_client/models/rbsv1plansid_plan_information.rb +250 -0
- data/lib/cybersource_rest_client/models/rbsv1plansid_processing_information.rb +183 -0
- data/lib/cybersource_rest_client/models/rbsv1plansid_processing_information_subscription_billing_options.rb +184 -0
- data/lib/cybersource_rest_client/models/rbsv1subscriptions_client_reference_information.rb +245 -0
- data/lib/cybersource_rest_client/models/rbsv1subscriptions_payment_information.rb +183 -0
- data/lib/cybersource_rest_client/models/rbsv1subscriptions_payment_information_customer.rb +199 -0
- data/lib/cybersource_rest_client/models/rbsv1subscriptions_plan_information.rb +192 -0
- data/lib/cybersource_rest_client/models/rbsv1subscriptions_processing_information.rb +199 -0
- data/lib/cybersource_rest_client/models/rbsv1subscriptions_processing_information_authorization_options.rb +183 -0
- data/lib/cybersource_rest_client/models/rbsv1subscriptions_processing_information_authorization_options_initiator.rb +184 -0
- data/lib/cybersource_rest_client/models/rbsv1subscriptions_subscription_information.rb +246 -0
- data/lib/cybersource_rest_client/models/rbsv1subscriptionsid_order_information.rb +183 -0
- data/lib/cybersource_rest_client/models/rbsv1subscriptionsid_order_information_amount_details.rb +206 -0
- data/lib/cybersource_rest_client/models/rbsv1subscriptionsid_plan_information.rb +183 -0
- data/lib/cybersource_rest_client/models/rbsv1subscriptionsid_subscription_information.rb +232 -0
- data/lib/cybersource_rest_client/models/refresh_payment_status_request.rb +210 -0
- 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/risk_v1_decisions_post201_response_consumer_authentication_information.rb +88 -4
- data/lib/cybersource_rest_client/models/risk_v1_export_compliance_inquiries_post201_response_export_compliance_information.rb +0 -18
- data/lib/cybersource_rest_client/models/riskv1addressverifications_order_information_line_items.rb +1 -19
- data/lib/cybersource_rest_client/models/riskv1addressverifications_order_information_ship_to.rb +1 -1
- data/lib/cybersource_rest_client/models/riskv1authenticationresults_consumer_authentication_information.rb +20 -4
- data/lib/cybersource_rest_client/models/riskv1authenticationresults_order_information_line_items.rb +0 -18
- data/lib/cybersource_rest_client/models/riskv1authenticationresults_payment_information_card.rb +1 -1
- data/lib/cybersource_rest_client/models/riskv1authenticationresults_payment_information_tokenized_card.rb +1 -1
- data/lib/cybersource_rest_client/models/riskv1authentications_buyer_information.rb +14 -4
- data/lib/cybersource_rest_client/models/riskv1authentications_order_information_bill_to.rb +17 -1
- data/lib/cybersource_rest_client/models/riskv1authentications_order_information_line_items.rb +152 -22
- data/lib/cybersource_rest_client/models/riskv1authentications_payment_information_card.rb +1 -1
- data/lib/cybersource_rest_client/models/riskv1authentications_payment_information_tokenized_card.rb +1 -1
- data/lib/cybersource_rest_client/models/riskv1authenticationsetups_payment_information_card.rb +1 -1
- data/lib/cybersource_rest_client/models/riskv1authenticationsetups_payment_information_tokenized_card.rb +1 -1
- data/lib/cybersource_rest_client/models/riskv1decisions_consumer_authentication_information.rb +14 -4
- data/lib/cybersource_rest_client/models/riskv1decisions_order_information_line_items.rb +1 -19
- data/lib/cybersource_rest_client/models/riskv1decisions_order_information_ship_to.rb +34 -2
- data/lib/cybersource_rest_client/models/riskv1decisions_payment_information_card.rb +1 -1
- data/lib/cybersource_rest_client/models/riskv1decisions_payment_information_tokenized_card.rb +1 -1
- data/lib/cybersource_rest_client/models/riskv1exportcomplianceinquiries_order_information_line_items.rb +1 -19
- data/lib/cybersource_rest_client/models/riskv1liststypeentries_order_information_ship_to.rb +1 -1
- data/lib/cybersource_rest_client/models/riskv1liststypeentries_payment_information_card.rb +1 -1
- data/lib/cybersource_rest_client/models/tms_v2_customers_response.rb +1 -1
- data/lib/cybersource_rest_client/models/tmsv2customers__embedded.rb +1 -1
- data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument.rb +15 -5
- data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument__embedded.rb +1 -1
- data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument__embedded_instrument_identifier.rb +4 -4
- data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument__embedded_instrument_identifier_bill_to.rb +1 -1
- data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument__embedded_instrument_identifier_card.rb +3 -3
- data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument__embedded_instrument_identifier_metadata.rb +1 -1
- data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument_bank_account.rb +1 -1
- data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument_buyer_information_personal_identification.rb +1 -1
- data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument_card.rb +22 -4
- data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument_card_tokenized_information.rb +1 -1
- data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument_instrument_identifier.rb +1 -1
- data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument_merchant_information_merchant_descriptor.rb +1 -1
- data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument_metadata.rb +1 -1
- data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument_processing_information.rb +1 -1
- data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument_processing_information_bank_transfer_options.rb +1 -1
- data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_shipping_address.rb +2 -2
- data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_shipping_address_metadata.rb +1 -1
- data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_shipping_address_ship_to.rb +1 -1
- data/lib/cybersource_rest_client/models/tmsv2customers__embedded_merchant_initiated_transaction.rb +20 -4
- data/lib/cybersource_rest_client/models/tmsv2customers__embedded_tokenized_card.rb +15 -5
- data/lib/cybersource_rest_client/models/tmsv2customers__embedded_tokenized_card_card.rb +1 -1
- data/lib/cybersource_rest_client/models/tmsv2customers_default_payment_instrument.rb +1 -1
- data/lib/cybersource_rest_client/models/tmsv2customers_default_shipping_address.rb +1 -1
- data/lib/cybersource_rest_client/models/tmsv2customers_merchant_defined_information.rb +2 -2
- data/lib/cybersource_rest_client/models/tmsv2customers_metadata.rb +1 -1
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_order_information_invoice_details.rb +0 -9
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_order_information_line_items.rb +0 -18
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_card.rb +1 -1
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_payment_type.rb +1 -1
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_point_of_sale_information.rb +0 -18
- 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 +1 -1
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_point_of_sale_information.rb +13 -4
- data/lib/cybersource_rest_client/models/ums_v1_users_get200_response_users.rb +15 -4
- data/lib/cybersource_rest_client/models/{flex_v1_keys_post200_response_der.rb → update_plan_request.rb} +20 -24
- data/lib/cybersource_rest_client/models/update_subscription.rb +219 -0
- data/lib/cybersource_rest_client/models/vas_v2_payments_post201_response_tax_information.rb +2 -2
- data/lib/cybersource_rest_client/models/vas_v2_payments_post400_response.rb +1 -1
- data/lib/cybersource_rest_client/models/vasv2tax_order_information_line_items.rb +1 -19
- data/lib/cybersource_rest_client/models/vasv2tax_order_information_order_acceptance.rb +5 -5
- data/lib/cybersource_rest_client/models/vasv2tax_order_information_order_origin.rb +5 -5
- data/lib/cybersource_rest_client/models/vasv2tax_order_information_ship_to.rb +1 -1
- data/lib/cybersource_rest_client/models/vasv2tax_tax_information.rb +3 -3
- data/lib/cybersource_rest_client.rb +189 -16
- metadata +191 -18
- data/lib/cybersource_rest_client/api/key_generation_api.rb +0 -96
- data/lib/cybersource_rest_client/api/tokenization_api.rb +0 -89
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b7e401e44fe02ff210acad48913fb8e434c024f0274e1c325b69c8f49692de96
|
4
|
+
data.tar.gz: 9dda987001ed8216d14e1e139e1f31889f19dbc9ba329af48dd47172e6512434
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 905b94eaaa550331d3df557685a9cbf09be9cdb46bb823508b35d4797c870933dfa34cee95ddfaf1ad528c262b070704ba51affb0b62d3a96e4023cfd6438629
|
7
|
+
data.tar.gz: 6eefbba3bd42fadae429d1333ed786ed231002c1a8919f4b36ee89792db9d57bcb523af9e5c3a02841da9ec44fa84a9f25d72e2e7e5b16bda341d405e4199294
|
@@ -10,6 +10,7 @@ public
|
|
10
10
|
# Common Parameters
|
11
11
|
@merchantId = cybsPropertyObj['merchantID']
|
12
12
|
@runEnvironment = cybsPropertyObj['runEnvironment']
|
13
|
+
@intermediateHost = cybsPropertyObj['intermediateHost']
|
13
14
|
@authenticationType = cybsPropertyObj['authenticationType']
|
14
15
|
@proxyAddress = cybsPropertyObj['proxyAddress']
|
15
16
|
@proxyPort = cybsPropertyObj['proxyPort']
|
@@ -40,6 +41,8 @@ public
|
|
40
41
|
@refreshToken = cybsPropertyObj['refreshToken']
|
41
42
|
# LogConfiguration
|
42
43
|
@log_config = LogConfiguration.new(cybsPropertyObj['logConfiguration'])
|
44
|
+
# Custom Default Headers
|
45
|
+
@defaultCustomHeaders = cybsPropertyObj['defaultCustomHeaders']
|
43
46
|
validateMerchantDetails()
|
44
47
|
logAllProperties(cybsPropertyObj)
|
45
48
|
end
|
@@ -240,6 +243,7 @@ public
|
|
240
243
|
attr_accessor :authenticationType
|
241
244
|
attr_accessor :keysDirectory
|
242
245
|
attr_accessor :requestHost
|
246
|
+
attr_accessor :intermediateHost
|
243
247
|
attr_accessor :keyAlias
|
244
248
|
attr_accessor :keyPass
|
245
249
|
attr_accessor :keyFilename
|
@@ -265,4 +269,5 @@ public
|
|
265
269
|
attr_accessor :requestTarget
|
266
270
|
attr_accessor :log_obj
|
267
271
|
attr_accessor :solutionId
|
272
|
+
attr_accessor :defaultCustomHeaders
|
268
273
|
end
|
@@ -34,6 +34,8 @@
|
|
34
34
|
|
35
35
|
HTTPS_URI_PREFIX = 'https://' unless const_defined?(:HTTPS_URI_PREFIX)
|
36
36
|
|
37
|
+
HTTP_URI_PREFIX = 'http://' unless const_defined?(:HTTP_URI_PREFIX)
|
38
|
+
|
37
39
|
BEARER = 'Bearer' unless const_defined?(:BEARER)
|
38
40
|
|
39
41
|
MEDIA_TYPE_JSON = 'application/json' unless const_defined?(:MEDIA_TYPE_JSON)
|
@@ -0,0 +1,330 @@
|
|
1
|
+
=begin
|
2
|
+
#CyberSource Merged Spec
|
3
|
+
|
4
|
+
#All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html
|
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 BatchesApi
|
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
|
+
# Retrieve a Batch Report
|
24
|
+
# **Get Batch Report**<br>This resource accepts a batch id and returns: - The batch status. - The total number of accepted, rejected, updated records. - The total number of card association responses. - The billable quantities of: - New Account Numbers (NAN) - New Expiry Dates (NED) - Account Closures (ACL) - Contact Card Holders (CCH) - Source record information including token ids, masked card number, expiration dates & card type. - Response record information including response code, reason, token ids, masked card number, expiration dates & card type.
|
25
|
+
# @param batch_id Unique identification number assigned to the submitted request.
|
26
|
+
# @param [Hash] opts the optional parameters
|
27
|
+
# @return [InlineResponse20014]
|
28
|
+
def get_batch_report(batch_id, opts = {})
|
29
|
+
data, status_code, headers = get_batch_report_with_http_info(batch_id, opts)
|
30
|
+
return data, status_code, headers
|
31
|
+
end
|
32
|
+
|
33
|
+
# Retrieve a Batch Report
|
34
|
+
# **Get Batch Report**<br>This resource accepts a batch id and returns: - The batch status. - The total number of accepted, rejected, updated records. - The total number of card association responses. - The billable quantities of: - New Account Numbers (NAN) - New Expiry Dates (NED) - Account Closures (ACL) - Contact Card Holders (CCH) - Source record information including token ids, masked card number, expiration dates & card type. - Response record information including response code, reason, token ids, masked card number, expiration dates & card type.
|
35
|
+
# @param batch_id Unique identification number assigned to the submitted request.
|
36
|
+
# @param [Hash] opts the optional parameters
|
37
|
+
# @return [Array<(InlineResponse20014, Fixnum, Hash)>] InlineResponse20014 data, response status code and response headers
|
38
|
+
def get_batch_report_with_http_info(batch_id, opts = {})
|
39
|
+
|
40
|
+
if @api_client.config.debugging
|
41
|
+
begin
|
42
|
+
raise
|
43
|
+
@api_client.config.logger.debug 'Calling API: BatchesApi.get_batch_report ...'
|
44
|
+
rescue
|
45
|
+
puts 'Cannot write to log'
|
46
|
+
end
|
47
|
+
end
|
48
|
+
# verify the required parameter 'batch_id' is set
|
49
|
+
if @api_client.config.client_side_validation && batch_id.nil?
|
50
|
+
fail ArgumentError, "Missing the required parameter 'batch_id' when calling BatchesApi.get_batch_report"
|
51
|
+
end
|
52
|
+
if @api_client.config.client_side_validation && batch_id > 32
|
53
|
+
fail ArgumentError, 'invalid value for "batch_id" when calling BatchesApi.get_batch_report, must be smaller than or equal to 32.'
|
54
|
+
end
|
55
|
+
|
56
|
+
if @api_client.config.client_side_validation && batch_id < 16
|
57
|
+
fail ArgumentError, 'invalid value for "batch_id" when calling BatchesApi.get_batch_report, must be greater than or equal to 16.'
|
58
|
+
end
|
59
|
+
|
60
|
+
# resource path
|
61
|
+
local_var_path = 'accountupdater/v1/batches/{batchId}/report'.sub('{' + 'batchId' + '}', batch_id.to_s)
|
62
|
+
|
63
|
+
# query parameters
|
64
|
+
query_params = {}
|
65
|
+
|
66
|
+
# header parameters
|
67
|
+
header_params = {}
|
68
|
+
# HTTP header 'Accept' (if needed)
|
69
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json;charset=utf-8'])
|
70
|
+
# HTTP header 'Content-Type'
|
71
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json;charset=utf-8'])
|
72
|
+
|
73
|
+
# form parameters
|
74
|
+
form_params = {}
|
75
|
+
|
76
|
+
# http body (model)
|
77
|
+
if 'GET' == 'POST'
|
78
|
+
post_body = '{}'
|
79
|
+
else
|
80
|
+
post_body = nil
|
81
|
+
end
|
82
|
+
auth_names = []
|
83
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
84
|
+
:header_params => header_params,
|
85
|
+
:query_params => query_params,
|
86
|
+
:form_params => form_params,
|
87
|
+
:body => post_body,
|
88
|
+
:auth_names => auth_names,
|
89
|
+
:return_type => 'InlineResponse20014')
|
90
|
+
if @api_client.config.debugging
|
91
|
+
begin
|
92
|
+
raise
|
93
|
+
@api_client.config.logger.debug "API called: BatchesApi#get_batch_report\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
94
|
+
rescue
|
95
|
+
puts 'Cannot write to log'
|
96
|
+
end
|
97
|
+
end
|
98
|
+
return data, status_code, headers
|
99
|
+
end
|
100
|
+
# Retrieve a Batch Status
|
101
|
+
# **Get Batch Status**<br>This resource accepts a batch id and returns: - The batch status. - The total number of accepted, rejected, updated records. - The total number of card association responses. - The billable quantities of: - New Account Numbers (NAN) - New Expiry Dates (NED) - Account Closures (ACL) - Contact Card Holders (CCH)
|
102
|
+
# @param batch_id Unique identification number assigned to the submitted request.
|
103
|
+
# @param [Hash] opts the optional parameters
|
104
|
+
# @return [InlineResponse20013]
|
105
|
+
def get_batch_status(batch_id, opts = {})
|
106
|
+
data, status_code, headers = get_batch_status_with_http_info(batch_id, opts)
|
107
|
+
return data, status_code, headers
|
108
|
+
end
|
109
|
+
|
110
|
+
# Retrieve a Batch Status
|
111
|
+
# **Get Batch Status**<br>This resource accepts a batch id and returns: - The batch status. - The total number of accepted, rejected, updated records. - The total number of card association responses. - The billable quantities of: - New Account Numbers (NAN) - New Expiry Dates (NED) - Account Closures (ACL) - Contact Card Holders (CCH)
|
112
|
+
# @param batch_id Unique identification number assigned to the submitted request.
|
113
|
+
# @param [Hash] opts the optional parameters
|
114
|
+
# @return [Array<(InlineResponse20013, Fixnum, Hash)>] InlineResponse20013 data, response status code and response headers
|
115
|
+
def get_batch_status_with_http_info(batch_id, opts = {})
|
116
|
+
|
117
|
+
if @api_client.config.debugging
|
118
|
+
begin
|
119
|
+
raise
|
120
|
+
@api_client.config.logger.debug 'Calling API: BatchesApi.get_batch_status ...'
|
121
|
+
rescue
|
122
|
+
puts 'Cannot write to log'
|
123
|
+
end
|
124
|
+
end
|
125
|
+
# verify the required parameter 'batch_id' is set
|
126
|
+
if @api_client.config.client_side_validation && batch_id.nil?
|
127
|
+
fail ArgumentError, "Missing the required parameter 'batch_id' when calling BatchesApi.get_batch_status"
|
128
|
+
end
|
129
|
+
if @api_client.config.client_side_validation && batch_id > 32
|
130
|
+
fail ArgumentError, 'invalid value for "batch_id" when calling BatchesApi.get_batch_status, must be smaller than or equal to 32.'
|
131
|
+
end
|
132
|
+
|
133
|
+
if @api_client.config.client_side_validation && batch_id < 16
|
134
|
+
fail ArgumentError, 'invalid value for "batch_id" when calling BatchesApi.get_batch_status, must be greater than or equal to 16.'
|
135
|
+
end
|
136
|
+
|
137
|
+
# resource path
|
138
|
+
local_var_path = 'accountupdater/v1/batches/{batchId}/status'.sub('{' + 'batchId' + '}', batch_id.to_s)
|
139
|
+
|
140
|
+
# query parameters
|
141
|
+
query_params = {}
|
142
|
+
|
143
|
+
# header parameters
|
144
|
+
header_params = {}
|
145
|
+
# HTTP header 'Accept' (if needed)
|
146
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json;charset=utf-8'])
|
147
|
+
# HTTP header 'Content-Type'
|
148
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json;charset=utf-8'])
|
149
|
+
|
150
|
+
# form parameters
|
151
|
+
form_params = {}
|
152
|
+
|
153
|
+
# http body (model)
|
154
|
+
if 'GET' == 'POST'
|
155
|
+
post_body = '{}'
|
156
|
+
else
|
157
|
+
post_body = nil
|
158
|
+
end
|
159
|
+
auth_names = []
|
160
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
161
|
+
:header_params => header_params,
|
162
|
+
:query_params => query_params,
|
163
|
+
:form_params => form_params,
|
164
|
+
:body => post_body,
|
165
|
+
:auth_names => auth_names,
|
166
|
+
:return_type => 'InlineResponse20013')
|
167
|
+
if @api_client.config.debugging
|
168
|
+
begin
|
169
|
+
raise
|
170
|
+
@api_client.config.logger.debug "API called: BatchesApi#get_batch_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
171
|
+
rescue
|
172
|
+
puts 'Cannot write to log'
|
173
|
+
end
|
174
|
+
end
|
175
|
+
return data, status_code, headers
|
176
|
+
end
|
177
|
+
# List Batches
|
178
|
+
# **List Batches**<br>This resource accepts a optional date range, record offset and limit, returning a paginated response of batches containing: - The batch id. - The batch status. - The batch created / modified dates. - The total number of accepted, rejected, updated records. - The total number of card association responses.
|
179
|
+
# @param [Hash] opts the optional parameters
|
180
|
+
# @option opts [Integer] :offset Starting record in zero-based dataset that should be returned as the first object in the array. (default to 0)
|
181
|
+
# @option opts [Integer] :limit The maximum number that can be returned in the array starting from the offset record in zero-based dataset. (default to 20)
|
182
|
+
# @option opts [String] :from_date ISO-8601 format: yyyyMMddTHHmmssZ
|
183
|
+
# @option opts [String] :to_date ISO-8601 format: yyyyMMddTHHmmssZ
|
184
|
+
# @return [InlineResponse20012]
|
185
|
+
def get_batches_list(opts = {})
|
186
|
+
data, status_code, headers = get_batches_list_with_http_info(opts)
|
187
|
+
return data, status_code, headers
|
188
|
+
end
|
189
|
+
|
190
|
+
# List Batches
|
191
|
+
# **List Batches**<br>This resource accepts a optional date range, record offset and limit, returning a paginated response of batches containing: - The batch id. - The batch status. - The batch created / modified dates. - The total number of accepted, rejected, updated records. - The total number of card association responses.
|
192
|
+
# @param [Hash] opts the optional parameters
|
193
|
+
# @option opts [Integer] :offset Starting record in zero-based dataset that should be returned as the first object in the array.
|
194
|
+
# @option opts [Integer] :limit The maximum number that can be returned in the array starting from the offset record in zero-based dataset.
|
195
|
+
# @option opts [String] :from_date ISO-8601 format: yyyyMMddTHHmmssZ
|
196
|
+
# @option opts [String] :to_date ISO-8601 format: yyyyMMddTHHmmssZ
|
197
|
+
# @return [Array<(InlineResponse20012, Fixnum, Hash)>] InlineResponse20012 data, response status code and response headers
|
198
|
+
def get_batches_list_with_http_info(opts = {})
|
199
|
+
|
200
|
+
if @api_client.config.debugging
|
201
|
+
begin
|
202
|
+
raise
|
203
|
+
@api_client.config.logger.debug 'Calling API: BatchesApi.get_batches_list ...'
|
204
|
+
rescue
|
205
|
+
puts 'Cannot write to log'
|
206
|
+
end
|
207
|
+
end
|
208
|
+
if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0
|
209
|
+
fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling BatchesApi.get_batches_list, must be greater than or equal to 0.'
|
210
|
+
end
|
211
|
+
|
212
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
213
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling BatchesApi.get_batches_list, must be smaller than or equal to 500.'
|
214
|
+
end
|
215
|
+
|
216
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
217
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling BatchesApi.get_batches_list, must be greater than or equal to 1.'
|
218
|
+
end
|
219
|
+
|
220
|
+
# resource path
|
221
|
+
local_var_path = 'accountupdater/v1/batches'
|
222
|
+
|
223
|
+
# query parameters
|
224
|
+
query_params = {}
|
225
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
226
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
227
|
+
query_params[:'fromDate'] = opts[:'from_date'] if !opts[:'from_date'].nil?
|
228
|
+
query_params[:'toDate'] = opts[:'to_date'] if !opts[:'to_date'].nil?
|
229
|
+
|
230
|
+
# header parameters
|
231
|
+
header_params = {}
|
232
|
+
# HTTP header 'Accept' (if needed)
|
233
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json;charset=utf-8'])
|
234
|
+
# HTTP header 'Content-Type'
|
235
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json;charset=utf-8'])
|
236
|
+
|
237
|
+
# form parameters
|
238
|
+
form_params = {}
|
239
|
+
|
240
|
+
# http body (model)
|
241
|
+
if 'GET' == 'POST'
|
242
|
+
post_body = '{}'
|
243
|
+
else
|
244
|
+
post_body = nil
|
245
|
+
end
|
246
|
+
auth_names = []
|
247
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
248
|
+
:header_params => header_params,
|
249
|
+
:query_params => query_params,
|
250
|
+
:form_params => form_params,
|
251
|
+
:body => post_body,
|
252
|
+
:auth_names => auth_names,
|
253
|
+
:return_type => 'InlineResponse20012')
|
254
|
+
if @api_client.config.debugging
|
255
|
+
begin
|
256
|
+
raise
|
257
|
+
@api_client.config.logger.debug "API called: BatchesApi#get_batches_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
258
|
+
rescue
|
259
|
+
puts 'Cannot write to log'
|
260
|
+
end
|
261
|
+
end
|
262
|
+
return data, status_code, headers
|
263
|
+
end
|
264
|
+
# Create a Batch
|
265
|
+
# **Create a Batch**<br>This resource accepts TMS tokens ids of a Customer, Payment Instrument or Instrument Identifier. <br> The card numbers for the supplied tokens ids are then sent to the relevant card associations to check for updates.<br>The following type of batches can be submitted: - **oneOff** batch containing tokens id for Visa or MasterCard card numbers. - **amexRegistration** batch containing tokens id for Amex card numbers. A batch id will be returned on a successful response which can be used to get the batch status and the batch report.
|
266
|
+
# @param body
|
267
|
+
# @param [Hash] opts the optional parameters
|
268
|
+
# @return [InlineResponse2022]
|
269
|
+
def post_batch(body, opts = {})
|
270
|
+
data, status_code, headers = post_batch_with_http_info(body, opts)
|
271
|
+
return data, status_code, headers
|
272
|
+
end
|
273
|
+
|
274
|
+
# Create a Batch
|
275
|
+
# **Create a Batch**<br>This resource accepts TMS tokens ids of a Customer, Payment Instrument or Instrument Identifier. <br> The card numbers for the supplied tokens ids are then sent to the relevant card associations to check for updates.<br>The following type of batches can be submitted: - **oneOff** batch containing tokens id for Visa or MasterCard card numbers. - **amexRegistration** batch containing tokens id for Amex card numbers. A batch id will be returned on a successful response which can be used to get the batch status and the batch report.
|
276
|
+
# @param body
|
277
|
+
# @param [Hash] opts the optional parameters
|
278
|
+
# @return [Array<(InlineResponse2022, Fixnum, Hash)>] InlineResponse2022 data, response status code and response headers
|
279
|
+
def post_batch_with_http_info(body, opts = {})
|
280
|
+
|
281
|
+
if @api_client.config.debugging
|
282
|
+
begin
|
283
|
+
raise
|
284
|
+
@api_client.config.logger.debug 'Calling API: BatchesApi.post_batch ...'
|
285
|
+
rescue
|
286
|
+
puts 'Cannot write to log'
|
287
|
+
end
|
288
|
+
end
|
289
|
+
# verify the required parameter 'body' is set
|
290
|
+
if @api_client.config.client_side_validation && body.nil?
|
291
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling BatchesApi.post_batch"
|
292
|
+
end
|
293
|
+
# resource path
|
294
|
+
local_var_path = 'accountupdater/v1/batches'
|
295
|
+
|
296
|
+
# query parameters
|
297
|
+
query_params = {}
|
298
|
+
|
299
|
+
# header parameters
|
300
|
+
header_params = {}
|
301
|
+
# HTTP header 'Accept' (if needed)
|
302
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json;charset=utf-8'])
|
303
|
+
# HTTP header 'Content-Type'
|
304
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json;charset=utf-8'])
|
305
|
+
|
306
|
+
# form parameters
|
307
|
+
form_params = {}
|
308
|
+
|
309
|
+
# http body (model)
|
310
|
+
post_body = @api_client.object_to_http_body(body)
|
311
|
+
auth_names = []
|
312
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
313
|
+
:header_params => header_params,
|
314
|
+
:query_params => query_params,
|
315
|
+
:form_params => form_params,
|
316
|
+
:body => post_body,
|
317
|
+
:auth_names => auth_names,
|
318
|
+
:return_type => 'InlineResponse2022')
|
319
|
+
if @api_client.config.debugging
|
320
|
+
begin
|
321
|
+
raise
|
322
|
+
@api_client.config.logger.debug "API called: BatchesApi#post_batch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
323
|
+
rescue
|
324
|
+
puts 'Cannot write to log'
|
325
|
+
end
|
326
|
+
end
|
327
|
+
return data, status_code, headers
|
328
|
+
end
|
329
|
+
end
|
330
|
+
end
|
@@ -21,21 +21,23 @@ module CyberSource
|
|
21
21
|
@api_client.set_configuration(config)
|
22
22
|
end
|
23
23
|
# Delete a Customer
|
24
|
-
#
|
24
|
+
# | | | | | --- | --- | --- | |**Customers**<br>A Customer represents your tokenized customer information.<br>You should associate the Customer Id with the customer account on your systems.<br>A Customer can have one or more [Payment Instruments](#token-management_customer-payment-instrument_create-a-customer-payment-instrumentl) or [Shipping Addresses](#token-management_customer-shipping-address_create-a-customer-shipping-address) with one allocated as the Customers default.| |**Deleting a Customer**<br>Your system can use this API to delete a complete Customer.<br>When a Customer is deleted all associated Payment Instruments & Shipping Addresses are deleted.<br>Any Instrument Identifiers representing the card number will also be deleted if they are not associated with any other Payment Instruments.<br>Note: Individual [Payment Instruments](#token-management_customer-payment-instrument_delete-a-customer-payment-instrument) or [Shipping Addresses](#token-management_customer-shipping-address_delete-a-customer-shipping-address) can be deleted via their own dedicated API resources.
|
25
|
+
# @param customer_id The Id of a Customer.
|
25
26
|
# @param [Hash] opts the optional parameters
|
26
|
-
# @option opts [String] :profile_id The
|
27
|
+
# @option opts [String] :profile_id The Id of a profile containing user specific TMS configuration.
|
27
28
|
# @return [nil]
|
28
|
-
def delete_customer(
|
29
|
-
data, status_code, headers = delete_customer_with_http_info(
|
29
|
+
def delete_customer(customer_id, opts = {})
|
30
|
+
data, status_code, headers = delete_customer_with_http_info(customer_id, opts)
|
30
31
|
return data, status_code, headers
|
31
32
|
end
|
32
33
|
|
33
34
|
# Delete a Customer
|
34
|
-
#
|
35
|
+
# | | | | | --- | --- | --- | |**Customers**<br>A Customer represents your tokenized customer information.<br>You should associate the Customer Id with the customer account on your systems.<br>A Customer can have one or more [Payment Instruments](#token-management_customer-payment-instrument_create-a-customer-payment-instrumentl) or [Shipping Addresses](#token-management_customer-shipping-address_create-a-customer-shipping-address) with one allocated as the Customers default.|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|**Deleting a Customer**<br>Your system can use this API to delete a complete Customer.<br>When a Customer is deleted all associated Payment Instruments & Shipping Addresses are deleted.<br>Any Instrument Identifiers representing the card number will also be deleted if they are not associated with any other Payment Instruments.<br>Note: Individual [Payment Instruments](#token-management_customer-payment-instrument_delete-a-customer-payment-instrument) or [Shipping Addresses](#token-management_customer-shipping-address_delete-a-customer-shipping-address) can be deleted via their own dedicated API resources.
|
36
|
+
# @param customer_id The Id of a Customer.
|
35
37
|
# @param [Hash] opts the optional parameters
|
36
|
-
# @option opts [String] :profile_id The
|
38
|
+
# @option opts [String] :profile_id The Id of a profile containing user specific TMS configuration.
|
37
39
|
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
38
|
-
def delete_customer_with_http_info(
|
40
|
+
def delete_customer_with_http_info(customer_id, opts = {})
|
39
41
|
|
40
42
|
if @api_client.config.debugging
|
41
43
|
begin
|
@@ -45,16 +47,16 @@ module CyberSource
|
|
45
47
|
puts 'Cannot write to log'
|
46
48
|
end
|
47
49
|
end
|
48
|
-
# verify the required parameter '
|
49
|
-
if @api_client.config.client_side_validation &&
|
50
|
-
fail ArgumentError, "Missing the required parameter '
|
50
|
+
# verify the required parameter 'customer_id' is set
|
51
|
+
if @api_client.config.client_side_validation && customer_id.nil?
|
52
|
+
fail ArgumentError, "Missing the required parameter 'customer_id' when calling CustomerApi.delete_customer"
|
51
53
|
end
|
52
|
-
if @api_client.config.client_side_validation &&
|
53
|
-
fail ArgumentError, 'invalid value for "
|
54
|
+
if @api_client.config.client_side_validation && customer_id.to_s.length > 32
|
55
|
+
fail ArgumentError, 'invalid value for "customer_id" when calling CustomerApi.delete_customer, the character length must be smaller than or equal to 32.'
|
54
56
|
end
|
55
57
|
|
56
|
-
if @api_client.config.client_side_validation &&
|
57
|
-
fail ArgumentError, 'invalid value for "
|
58
|
+
if @api_client.config.client_side_validation && customer_id.to_s.length < 1
|
59
|
+
fail ArgumentError, 'invalid value for "customer_id" when calling CustomerApi.delete_customer, the character length must be great than or equal to 1.'
|
58
60
|
end
|
59
61
|
|
60
62
|
if @api_client.config.client_side_validation && !opts[:'profile_id'].nil? && opts[:'profile_id'].to_s.length > 36
|
@@ -66,7 +68,7 @@ module CyberSource
|
|
66
68
|
end
|
67
69
|
|
68
70
|
# resource path
|
69
|
-
local_var_path = 'tms/v2/customers/{
|
71
|
+
local_var_path = 'tms/v2/customers/{customerId}'.sub('{' + 'customerId' + '}', customer_id.to_s)
|
70
72
|
|
71
73
|
# query parameters
|
72
74
|
query_params = {}
|
@@ -106,21 +108,23 @@ module CyberSource
|
|
106
108
|
return data, status_code, headers
|
107
109
|
end
|
108
110
|
# Retrieve a Customer
|
109
|
-
#
|
111
|
+
# | | | | | --- | --- | --- | |**Customers**<br>A Customer represents your tokenized customer information.<br>You should associate the Customer Id with the customer account on your systems.<br>A Customer can have one or more [Payment Instruments](#token-management_customer-payment-instrument_create-a-customer-payment-instrumentl) or [Shipping Addresses](#token-management_customer-shipping-address_create-a-customer-shipping-address) with one allocated as the Customers default.<br><br>**Retrieving a Customer**<br>When your customer signs into their account, your system can use this API to retrieve the Customers default Payment Instrument and Shipping Address.<br>**Note: the actual card data will be masked.**<br>If your customer wants to see other available Payment Instruments, your system can [retrieve all Payment Instruments](#token-management_customer-payment-instrument_list-payment-instruments-for-a-customer) associated with the Customer.<br>The same applies to [Shipping Addresses](#token-management_customer-shipping-address_list-shipping-addresses-for-a-customer).| |**Payment Network Tokens**<br>Network tokens perform better than regular card numbers and they are not necessarily invalidated when a cardholder loses their card, or it expires.<br>A Payment Network Token will be automatically created and used in future payments if you are enabled for the service.<br>A Payment Network Token can also be [provisioned for an existing Instrument Identifier](#token-management_instrument-identifier_enroll-an-instrument-identifier-for-payment-network-token).<br>For more information about Payment Network Tokens see the Developer Guide.<br><br>**Payments with Customers**<br>To perform a payment with the Customers default details specify the [Customer Id in the payments request](#payments_payments_process-a-payment_samplerequests-dropdown_authorization-using-tokens_authorization-with-customer-token-id_liveconsole-tab-request-body).<br>To perform a payment with a particular Payment Instrument or Shipping Address <br>specify the [Payment Instrument or Shipping Address Ids in the payments request](#payments_payments_process-a-payment_samplerequests-dropdown_authorization-using-tokens_authorization-with-customer-payment-instrument-and-shipping-address-token-id_liveconsole-tab-request-body).
|
112
|
+
# @param customer_id The Id of a Customer.
|
110
113
|
# @param [Hash] opts the optional parameters
|
111
|
-
# @option opts [String] :profile_id The
|
114
|
+
# @option opts [String] :profile_id The Id of a profile containing user specific TMS configuration.
|
112
115
|
# @return [TmsV2CustomersResponse]
|
113
|
-
def get_customer(
|
114
|
-
data, status_code, headers = get_customer_with_http_info(
|
116
|
+
def get_customer(customer_id, opts = {})
|
117
|
+
data, status_code, headers = get_customer_with_http_info(customer_id, opts)
|
115
118
|
return data, status_code, headers
|
116
119
|
end
|
117
120
|
|
118
121
|
# Retrieve a Customer
|
119
|
-
#
|
122
|
+
# | | | | | --- | --- | --- | |**Customers**<br>A Customer represents your tokenized customer information.<br>You should associate the Customer Id with the customer account on your systems.<br>A Customer can have one or more [Payment Instruments](#token-management_customer-payment-instrument_create-a-customer-payment-instrumentl) or [Shipping Addresses](#token-management_customer-shipping-address_create-a-customer-shipping-address) with one allocated as the Customers default.<br><br>**Retrieving a Customer**<br>When your customer signs into their account, your system can use this API to retrieve the Customers default Payment Instrument and Shipping Address.<br>**Note: the actual card data will be masked.**<br>If your customer wants to see other available Payment Instruments, your system can [retrieve all Payment Instruments](#token-management_customer-payment-instrument_list-payment-instruments-for-a-customer) associated with the Customer.<br>The same applies to [Shipping Addresses](#token-management_customer-shipping-address_list-shipping-addresses-for-a-customer).|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|**Payment Network Tokens**<br>Network tokens perform better than regular card numbers and they are not necessarily invalidated when a cardholder loses their card, or it expires.<br>A Payment Network Token will be automatically created and used in future payments if you are enabled for the service.<br>A Payment Network Token can also be [provisioned for an existing Instrument Identifier](#token-management_instrument-identifier_enroll-an-instrument-identifier-for-payment-network-token).<br>For more information about Payment Network Tokens see the Developer Guide.<br><br>**Payments with Customers**<br>To perform a payment with the Customers default details specify the [Customer Id in the payments request](#payments_payments_process-a-payment_samplerequests-dropdown_authorization-using-tokens_authorization-with-customer-token-id_liveconsole-tab-request-body).<br>To perform a payment with a particular Payment Instrument or Shipping Address <br>specify the [Payment Instrument or Shipping Address Ids in the payments request](#payments_payments_process-a-payment_samplerequests-dropdown_authorization-using-tokens_authorization-with-customer-payment-instrument-and-shipping-address-token-id_liveconsole-tab-request-body).
|
123
|
+
# @param customer_id The Id of a Customer.
|
120
124
|
# @param [Hash] opts the optional parameters
|
121
|
-
# @option opts [String] :profile_id The
|
125
|
+
# @option opts [String] :profile_id The Id of a profile containing user specific TMS configuration.
|
122
126
|
# @return [Array<(TmsV2CustomersResponse, Fixnum, Hash)>] TmsV2CustomersResponse data, response status code and response headers
|
123
|
-
def get_customer_with_http_info(
|
127
|
+
def get_customer_with_http_info(customer_id, opts = {})
|
124
128
|
|
125
129
|
if @api_client.config.debugging
|
126
130
|
begin
|
@@ -130,16 +134,16 @@ module CyberSource
|
|
130
134
|
puts 'Cannot write to log'
|
131
135
|
end
|
132
136
|
end
|
133
|
-
# verify the required parameter '
|
134
|
-
if @api_client.config.client_side_validation &&
|
135
|
-
fail ArgumentError, "Missing the required parameter '
|
137
|
+
# verify the required parameter 'customer_id' is set
|
138
|
+
if @api_client.config.client_side_validation && customer_id.nil?
|
139
|
+
fail ArgumentError, "Missing the required parameter 'customer_id' when calling CustomerApi.get_customer"
|
136
140
|
end
|
137
|
-
if @api_client.config.client_side_validation &&
|
138
|
-
fail ArgumentError, 'invalid value for "
|
141
|
+
if @api_client.config.client_side_validation && customer_id.to_s.length > 32
|
142
|
+
fail ArgumentError, 'invalid value for "customer_id" when calling CustomerApi.get_customer, the character length must be smaller than or equal to 32.'
|
139
143
|
end
|
140
144
|
|
141
|
-
if @api_client.config.client_side_validation &&
|
142
|
-
fail ArgumentError, 'invalid value for "
|
145
|
+
if @api_client.config.client_side_validation && customer_id.to_s.length < 1
|
146
|
+
fail ArgumentError, 'invalid value for "customer_id" when calling CustomerApi.get_customer, the character length must be great than or equal to 1.'
|
143
147
|
end
|
144
148
|
|
145
149
|
if @api_client.config.client_side_validation && !opts[:'profile_id'].nil? && opts[:'profile_id'].to_s.length > 36
|
@@ -151,7 +155,7 @@ module CyberSource
|
|
151
155
|
end
|
152
156
|
|
153
157
|
# resource path
|
154
|
-
local_var_path = 'tms/v2/customers/{
|
158
|
+
local_var_path = 'tms/v2/customers/{customerId}'.sub('{' + 'customerId' + '}', customer_id.to_s)
|
155
159
|
|
156
160
|
# query parameters
|
157
161
|
query_params = {}
|
@@ -192,25 +196,27 @@ module CyberSource
|
|
192
196
|
return data, status_code, headers
|
193
197
|
end
|
194
198
|
# Update a Customer
|
195
|
-
#
|
199
|
+
# | | | | | --- | --- | --- | |**Customers**<br>A Customer represents your tokenized customer information.<br>You should associate the Customer Id with the customer account on your systems.<br>A Customer can have one or more [Payment Instruments](#token-management_customer-payment-instrument_create-a-customer-payment-instrumentl) or [Shipping Addresses](#token-management_customer-shipping-address_create-a-customer-shipping-address) with one allocated as the Customers default.| |**Updating a Customer**<br>Your system can use this API to update a Customers details including selecting a [default Payment Instrument](#token-management_customer_update-a-customer_samplerequests-dropdown_update-customers-default-payment-instrument_liveconsole-tab-request-body) or [default Shipping Address](#token-management_customer_update-a-customer_samplerequests-dropdown_update-customers-default-shipping-address_liveconsole-tab-request-body) for use in payments.<br>Note: Updating a Customers [Payment Instrument](#token-management_customer-payment-instrument_update-a-customer-payment-instrument) or [Shipping Address](#token-management_customer-shipping-address_update-a-customer-shipping-address) details is performed using their own dedicated API resources.
|
200
|
+
# @param customer_id The Id of a Customer.
|
196
201
|
# @param patch_customer_request
|
197
202
|
# @param [Hash] opts the optional parameters
|
198
|
-
# @option opts [String] :profile_id The
|
203
|
+
# @option opts [String] :profile_id The Id of a profile containing user specific TMS configuration.
|
199
204
|
# @option opts [String] :if_match Contains an ETag value from a GET request to make the request conditional.
|
200
205
|
# @return [TmsV2CustomersResponse]
|
201
|
-
def patch_customer(
|
202
|
-
data, status_code, headers = patch_customer_with_http_info(
|
206
|
+
def patch_customer(customer_id, patch_customer_request, opts = {})
|
207
|
+
data, status_code, headers = patch_customer_with_http_info(customer_id, patch_customer_request, opts)
|
203
208
|
return data, status_code, headers
|
204
209
|
end
|
205
210
|
|
206
211
|
# Update a Customer
|
207
|
-
#
|
212
|
+
# | | | | | --- | --- | --- | |**Customers**<br>A Customer represents your tokenized customer information.<br>You should associate the Customer Id with the customer account on your systems.<br>A Customer can have one or more [Payment Instruments](#token-management_customer-payment-instrument_create-a-customer-payment-instrumentl) or [Shipping Addresses](#token-management_customer-shipping-address_create-a-customer-shipping-address) with one allocated as the Customers default.|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|**Updating a Customer**<br>Your system can use this API to update a Customers details including selecting a [default Payment Instrument](#token-management_customer_update-a-customer_samplerequests-dropdown_update-customers-default-payment-instrument_liveconsole-tab-request-body) or [default Shipping Address](#token-management_customer_update-a-customer_samplerequests-dropdown_update-customers-default-shipping-address_liveconsole-tab-request-body) for use in payments.<br>Note: Updating a Customers [Payment Instrument](#token-management_customer-payment-instrument_update-a-customer-payment-instrument) or [Shipping Address](#token-management_customer-shipping-address_update-a-customer-shipping-address) details is performed using their own dedicated API resources.
|
213
|
+
# @param customer_id The Id of a Customer.
|
208
214
|
# @param patch_customer_request
|
209
215
|
# @param [Hash] opts the optional parameters
|
210
|
-
# @option opts [String] :profile_id The
|
216
|
+
# @option opts [String] :profile_id The Id of a profile containing user specific TMS configuration.
|
211
217
|
# @option opts [String] :if_match Contains an ETag value from a GET request to make the request conditional.
|
212
218
|
# @return [Array<(TmsV2CustomersResponse, Fixnum, Hash)>] TmsV2CustomersResponse data, response status code and response headers
|
213
|
-
def patch_customer_with_http_info(
|
219
|
+
def patch_customer_with_http_info(customer_id, patch_customer_request, opts = {})
|
214
220
|
|
215
221
|
if @api_client.config.debugging
|
216
222
|
begin
|
@@ -220,16 +226,16 @@ module CyberSource
|
|
220
226
|
puts 'Cannot write to log'
|
221
227
|
end
|
222
228
|
end
|
223
|
-
# verify the required parameter '
|
224
|
-
if @api_client.config.client_side_validation &&
|
225
|
-
fail ArgumentError, "Missing the required parameter '
|
229
|
+
# verify the required parameter 'customer_id' is set
|
230
|
+
if @api_client.config.client_side_validation && customer_id.nil?
|
231
|
+
fail ArgumentError, "Missing the required parameter 'customer_id' when calling CustomerApi.patch_customer"
|
226
232
|
end
|
227
|
-
if @api_client.config.client_side_validation &&
|
228
|
-
fail ArgumentError, 'invalid value for "
|
233
|
+
if @api_client.config.client_side_validation && customer_id.to_s.length > 32
|
234
|
+
fail ArgumentError, 'invalid value for "customer_id" when calling CustomerApi.patch_customer, the character length must be smaller than or equal to 32.'
|
229
235
|
end
|
230
236
|
|
231
|
-
if @api_client.config.client_side_validation &&
|
232
|
-
fail ArgumentError, 'invalid value for "
|
237
|
+
if @api_client.config.client_side_validation && customer_id.to_s.length < 1
|
238
|
+
fail ArgumentError, 'invalid value for "customer_id" when calling CustomerApi.patch_customer, the character length must be great than or equal to 1.'
|
233
239
|
end
|
234
240
|
|
235
241
|
# verify the required parameter 'patch_customer_request' is set
|
@@ -253,7 +259,7 @@ module CyberSource
|
|
253
259
|
end
|
254
260
|
|
255
261
|
# resource path
|
256
|
-
local_var_path = 'tms/v2/customers/{
|
262
|
+
local_var_path = 'tms/v2/customers/{customerId}'.sub('{' + 'customerId' + '}', customer_id.to_s)
|
257
263
|
|
258
264
|
# query parameters
|
259
265
|
query_params = {}
|
@@ -291,9 +297,10 @@ module CyberSource
|
|
291
297
|
return data, status_code, headers
|
292
298
|
end
|
293
299
|
# Create a Customer
|
300
|
+
# | | | | | --- | --- | --- | |**Customers**<br>A Customer represents your tokenized customer information.<br>You should associate the Customer Id with the customer account on your systems.<br>A Customer can have one or more [Payment Instruments](#token-management_customer-payment-instrument_create-a-customer-payment-instrumentl) or [Shipping Addresses](#token-management_customer-shipping-address_create-a-customer-shipping-address) with one allocated as the Customers default.<br><br>**Creating a Customer**<br>It is recommended you [create a Customer via a Payment Authorization](#payments_payments_process-a-payment_samplerequests-dropdown_authorization-with-token-create_authorization-with-customer-token-creation_liveconsole-tab-request-body), this can be for a zero amount.<br>The Customer will be created with a Payment Instrument and Shipping Address.<br>You can also [add additional Payment Instruments to a Customer via a Payment Authorization](#payments_payments_process-a-payment_samplerequests-dropdown_authorization-with-token-create_authorization-create-default-payment-instrument-shipping-address-for-existing-customer_liveconsole-tab-request-body).<br>In Europe: You should perform Payer Authentication alongside the Authorization.| |**Payment Network Tokens**<br>Network tokens perform better than regular card numbers and they are not necessarily invalidated when a cardholder loses their card, or it expires.<br>A Payment Network Token will be automatically created and used in future payments if you are enabled for the service.<br>A Payment Network Token can also be [provisioned for an existing Instrument Identifier](#token-management_instrument-identifier_enroll-an-instrument-identifier-for-payment-network-token).<br>For more information about Payment Network Tokens see the Developer Guide.<br><br>**Payments with Customers**<br>To perform a payment with the Customers default details specify the [Customer Id in the payments request](#payments_payments_process-a-payment_samplerequests-dropdown_authorization-using-tokens_authorization-with-customer-token-id_liveconsole-tab-request-body).<br>To perform a payment with a particular Payment Instrument or Shipping Address <br>specify the [Payment Instrument or Shipping Address Ids in the payments request](#payments_payments_process-a-payment_samplerequests-dropdown_authorization-using-tokens_authorization-with-customer-payment-instrument-and-shipping-address-token-id_liveconsole-tab-request-body).
|
294
301
|
# @param post_customer_request
|
295
302
|
# @param [Hash] opts the optional parameters
|
296
|
-
# @option opts [String] :profile_id The
|
303
|
+
# @option opts [String] :profile_id The Id of a profile containing user specific TMS configuration.
|
297
304
|
# @return [TmsV2CustomersResponse]
|
298
305
|
def post_customer(post_customer_request, opts = {})
|
299
306
|
data, status_code, headers = post_customer_with_http_info(post_customer_request, opts)
|
@@ -301,9 +308,10 @@ module CyberSource
|
|
301
308
|
end
|
302
309
|
|
303
310
|
# Create a Customer
|
311
|
+
# | | | | | --- | --- | --- | |**Customers**<br>A Customer represents your tokenized customer information.<br>You should associate the Customer Id with the customer account on your systems.<br>A Customer can have one or more [Payment Instruments](#token-management_customer-payment-instrument_create-a-customer-payment-instrumentl) or [Shipping Addresses](#token-management_customer-shipping-address_create-a-customer-shipping-address) with one allocated as the Customers default.<br><br>**Creating a Customer**<br>It is recommended you [create a Customer via a Payment Authorization](#payments_payments_process-a-payment_samplerequests-dropdown_authorization-with-token-create_authorization-with-customer-token-creation_liveconsole-tab-request-body), this can be for a zero amount.<br>The Customer will be created with a Payment Instrument and Shipping Address.<br>You can also [add additional Payment Instruments to a Customer via a Payment Authorization](#payments_payments_process-a-payment_samplerequests-dropdown_authorization-with-token-create_authorization-create-default-payment-instrument-shipping-address-for-existing-customer_liveconsole-tab-request-body).<br>In Europe: You should perform Payer Authentication alongside the Authorization.|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|**Payment Network Tokens**<br>Network tokens perform better than regular card numbers and they are not necessarily invalidated when a cardholder loses their card, or it expires.<br>A Payment Network Token will be automatically created and used in future payments if you are enabled for the service.<br>A Payment Network Token can also be [provisioned for an existing Instrument Identifier](#token-management_instrument-identifier_enroll-an-instrument-identifier-for-payment-network-token).<br>For more information about Payment Network Tokens see the Developer Guide.<br><br>**Payments with Customers**<br>To perform a payment with the Customers default details specify the [Customer Id in the payments request](#payments_payments_process-a-payment_samplerequests-dropdown_authorization-using-tokens_authorization-with-customer-token-id_liveconsole-tab-request-body).<br>To perform a payment with a particular Payment Instrument or Shipping Address <br>specify the [Payment Instrument or Shipping Address Ids in the payments request](#payments_payments_process-a-payment_samplerequests-dropdown_authorization-using-tokens_authorization-with-customer-payment-instrument-and-shipping-address-token-id_liveconsole-tab-request-body).
|
304
312
|
# @param post_customer_request
|
305
313
|
# @param [Hash] opts the optional parameters
|
306
|
-
# @option opts [String] :profile_id The
|
314
|
+
# @option opts [String] :profile_id The Id of a profile containing user specific TMS configuration.
|
307
315
|
# @return [Array<(TmsV2CustomersResponse, Fixnum, Hash)>] TmsV2CustomersResponse data, response status code and response headers
|
308
316
|
def post_customer_with_http_info(post_customer_request, opts = {})
|
309
317
|
|