cybersource_rest_client 0.0.49 → 0.0.50
Sign up to get free protection for your applications and to get access to all the features.
- 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/plans_api.rb +573 -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/accountupdaterv1batches_included.rb +185 -0
- 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/generate_capture_context_request.rb +216 -0
- 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/{flex_v1_keys_post200_response_jwk.rb → inline_response_200_6_plan_information.rb} +40 -41
- 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/{generate_public_key_request.rb → inline_response_200_9.rb} +50 -21
- 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_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_order_information_ship_to.rb +1 -1
- 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_post400_response.rb +1 -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/ptsv2payments_installment_information.rb +0 -18
- data/lib/cybersource_rest_client/models/ptsv2payments_merchant_information.rb +0 -18
- 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.rb +1 -21
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_card.rb +1 -1
- 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_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_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_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_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_card.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_order_information_line_items.rb +0 -18
- 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/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/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_point_of_sale_information.rb +0 -18
- 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 +112 -13
- metadata +114 -15
- data/lib/cybersource_rest_client/api/key_generation_api.rb +0 -96
- data/lib/cybersource_rest_client/api/tokenization_api.rb +0 -89
@@ -21,23 +21,25 @@ module CyberSource
|
|
21
21
|
@api_client.set_configuration(config)
|
22
22
|
end
|
23
23
|
# Delete a Customer Shipping Address
|
24
|
-
#
|
25
|
-
# @param
|
24
|
+
# | | | | | --- | --- | --- | |**Customer Shipping Address**<br>A Customer Shipping Address represents tokenized customer shipping information.<br>A [Customer](#token-management_customer_create-a-customer) can have [one or more Shipping Addresses](#token-management_customer-shipping-address_list-shipping-addresses-for-a-customer), with one allocated as the Customers default for use in payments.| |**Deleting a Customers Shipping Address**<br>Your system can use this API to delete an existing Shipping Address for a Customer.<br>If a customer has more than one Shipping Address then the default Shipping Address cannot be deleted without first selecting a [new default Shipping Address](#token-management_customer-shipping-address_update-a-customer-shipping-address_samplerequests-dropdown_make-customer-shipping-address-the-default_liveconsole-tab-request-body).
|
25
|
+
# @param customer_id The Id of a Customer.
|
26
|
+
# @param shipping_address_id The Id of a shipping address.
|
26
27
|
# @param [Hash] opts the optional parameters
|
27
|
-
# @option opts [String] :profile_id The
|
28
|
+
# @option opts [String] :profile_id The Id of a profile containing user specific TMS configuration.
|
28
29
|
# @return [nil]
|
29
|
-
def delete_customer_shipping_address(
|
30
|
-
data, status_code, headers = delete_customer_shipping_address_with_http_info(
|
30
|
+
def delete_customer_shipping_address(customer_id, shipping_address_id, opts = {})
|
31
|
+
data, status_code, headers = delete_customer_shipping_address_with_http_info(customer_id, shipping_address_id, opts)
|
31
32
|
return data, status_code, headers
|
32
33
|
end
|
33
34
|
|
34
35
|
# Delete a Customer Shipping Address
|
35
|
-
#
|
36
|
-
# @param
|
36
|
+
# | | | | | --- | --- | --- | |**Customer Shipping Address**<br>A Customer Shipping Address represents tokenized customer shipping information.<br>A [Customer](#token-management_customer_create-a-customer) can have [one or more Shipping Addresses](#token-management_customer-shipping-address_list-shipping-addresses-for-a-customer), with one allocated as the Customers default for use in payments.|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|**Deleting a Customers Shipping Address**<br>Your system can use this API to delete an existing Shipping Address for a Customer.<br>If a customer has more than one Shipping Address then the default Shipping Address cannot be deleted without first selecting a [new default Shipping Address](#token-management_customer-shipping-address_update-a-customer-shipping-address_samplerequests-dropdown_make-customer-shipping-address-the-default_liveconsole-tab-request-body).
|
37
|
+
# @param customer_id The Id of a Customer.
|
38
|
+
# @param shipping_address_id The Id of a shipping address.
|
37
39
|
# @param [Hash] opts the optional parameters
|
38
|
-
# @option opts [String] :profile_id The
|
40
|
+
# @option opts [String] :profile_id The Id of a profile containing user specific TMS configuration.
|
39
41
|
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
40
|
-
def delete_customer_shipping_address_with_http_info(
|
42
|
+
def delete_customer_shipping_address_with_http_info(customer_id, shipping_address_id, opts = {})
|
41
43
|
|
42
44
|
if @api_client.config.debugging
|
43
45
|
begin
|
@@ -47,28 +49,28 @@ module CyberSource
|
|
47
49
|
puts 'Cannot write to log'
|
48
50
|
end
|
49
51
|
end
|
50
|
-
# verify the required parameter '
|
51
|
-
if @api_client.config.client_side_validation &&
|
52
|
-
fail ArgumentError, "Missing the required parameter '
|
52
|
+
# verify the required parameter 'customer_id' is set
|
53
|
+
if @api_client.config.client_side_validation && customer_id.nil?
|
54
|
+
fail ArgumentError, "Missing the required parameter 'customer_id' when calling CustomerShippingAddressApi.delete_customer_shipping_address"
|
53
55
|
end
|
54
|
-
if @api_client.config.client_side_validation &&
|
55
|
-
fail ArgumentError, 'invalid value for "
|
56
|
+
if @api_client.config.client_side_validation && customer_id.to_s.length > 32
|
57
|
+
fail ArgumentError, 'invalid value for "customer_id" when calling CustomerShippingAddressApi.delete_customer_shipping_address, the character length must be smaller than or equal to 32.'
|
56
58
|
end
|
57
59
|
|
58
|
-
if @api_client.config.client_side_validation &&
|
59
|
-
fail ArgumentError, 'invalid value for "
|
60
|
+
if @api_client.config.client_side_validation && customer_id.to_s.length < 1
|
61
|
+
fail ArgumentError, 'invalid value for "customer_id" when calling CustomerShippingAddressApi.delete_customer_shipping_address, the character length must be great than or equal to 1.'
|
60
62
|
end
|
61
63
|
|
62
|
-
# verify the required parameter '
|
63
|
-
if @api_client.config.client_side_validation &&
|
64
|
-
fail ArgumentError, "Missing the required parameter '
|
64
|
+
# verify the required parameter 'shipping_address_id' is set
|
65
|
+
if @api_client.config.client_side_validation && shipping_address_id.nil?
|
66
|
+
fail ArgumentError, "Missing the required parameter 'shipping_address_id' when calling CustomerShippingAddressApi.delete_customer_shipping_address"
|
65
67
|
end
|
66
|
-
if @api_client.config.client_side_validation &&
|
67
|
-
fail ArgumentError, 'invalid value for "
|
68
|
+
if @api_client.config.client_side_validation && shipping_address_id.to_s.length > 32
|
69
|
+
fail ArgumentError, 'invalid value for "shipping_address_id" when calling CustomerShippingAddressApi.delete_customer_shipping_address, the character length must be smaller than or equal to 32.'
|
68
70
|
end
|
69
71
|
|
70
|
-
if @api_client.config.client_side_validation &&
|
71
|
-
fail ArgumentError, 'invalid value for "
|
72
|
+
if @api_client.config.client_side_validation && shipping_address_id.to_s.length < 1
|
73
|
+
fail ArgumentError, 'invalid value for "shipping_address_id" when calling CustomerShippingAddressApi.delete_customer_shipping_address, the character length must be great than or equal to 1.'
|
72
74
|
end
|
73
75
|
|
74
76
|
if @api_client.config.client_side_validation && !opts[:'profile_id'].nil? && opts[:'profile_id'].to_s.length > 36
|
@@ -80,7 +82,7 @@ module CyberSource
|
|
80
82
|
end
|
81
83
|
|
82
84
|
# resource path
|
83
|
-
local_var_path = 'tms/v2/customers/{
|
85
|
+
local_var_path = 'tms/v2/customers/{customerId}/shipping-addresses/{shippingAddressId}'.sub('{' + 'customerId' + '}', customer_id.to_s).sub('{' + 'shippingAddressId' + '}', shipping_address_id.to_s)
|
84
86
|
|
85
87
|
# query parameters
|
86
88
|
query_params = {}
|
@@ -120,23 +122,25 @@ module CyberSource
|
|
120
122
|
return data, status_code, headers
|
121
123
|
end
|
122
124
|
# Retrieve a Customer Shipping Address
|
123
|
-
#
|
124
|
-
# @param
|
125
|
+
# | | | | | --- | --- | --- | |**Customer Shipping Address**<br>A Customer Shipping Address represents tokenized customer shipping information.<br>A [Customer](#token-management_customer_create-a-customer) can have [one or more Shipping Addresses](#token-management_customer-shipping-address_list-shipping-addresses-for-a-customer), with one allocated as the Customers default for use in payments.| |**Retrieving a Customer Shipping Address**<br>Your system can use this API to retrieve an existing Shipping Address for a Customer.<br>To perform a payment with a particular Shipping Address simply specify the [Shipping Address Id 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).
|
126
|
+
# @param customer_id The Id of a Customer.
|
127
|
+
# @param shipping_address_id The Id of a shipping address.
|
125
128
|
# @param [Hash] opts the optional parameters
|
126
|
-
# @option opts [String] :profile_id The
|
129
|
+
# @option opts [String] :profile_id The Id of a profile containing user specific TMS configuration.
|
127
130
|
# @return [Tmsv2customersEmbeddedDefaultShippingAddress]
|
128
|
-
def get_customer_shipping_address(
|
129
|
-
data, status_code, headers = get_customer_shipping_address_with_http_info(
|
131
|
+
def get_customer_shipping_address(customer_id, shipping_address_id, opts = {})
|
132
|
+
data, status_code, headers = get_customer_shipping_address_with_http_info(customer_id, shipping_address_id, opts)
|
130
133
|
return data, status_code, headers
|
131
134
|
end
|
132
135
|
|
133
136
|
# Retrieve a Customer Shipping Address
|
134
|
-
#
|
135
|
-
# @param
|
137
|
+
# | | | | | --- | --- | --- | |**Customer Shipping Address**<br>A Customer Shipping Address represents tokenized customer shipping information.<br>A [Customer](#token-management_customer_create-a-customer) can have [one or more Shipping Addresses](#token-management_customer-shipping-address_list-shipping-addresses-for-a-customer), with one allocated as the Customers default for use in payments.|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|**Retrieving a Customer Shipping Address**<br>Your system can use this API to retrieve an existing Shipping Address for a Customer.<br>To perform a payment with a particular Shipping Address simply specify the [Shipping Address Id 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).
|
138
|
+
# @param customer_id The Id of a Customer.
|
139
|
+
# @param shipping_address_id The Id of a shipping address.
|
136
140
|
# @param [Hash] opts the optional parameters
|
137
|
-
# @option opts [String] :profile_id The
|
141
|
+
# @option opts [String] :profile_id The Id of a profile containing user specific TMS configuration.
|
138
142
|
# @return [Array<(Tmsv2customersEmbeddedDefaultShippingAddress, Fixnum, Hash)>] Tmsv2customersEmbeddedDefaultShippingAddress data, response status code and response headers
|
139
|
-
def get_customer_shipping_address_with_http_info(
|
143
|
+
def get_customer_shipping_address_with_http_info(customer_id, shipping_address_id, opts = {})
|
140
144
|
|
141
145
|
if @api_client.config.debugging
|
142
146
|
begin
|
@@ -146,28 +150,28 @@ module CyberSource
|
|
146
150
|
puts 'Cannot write to log'
|
147
151
|
end
|
148
152
|
end
|
149
|
-
# verify the required parameter '
|
150
|
-
if @api_client.config.client_side_validation &&
|
151
|
-
fail ArgumentError, "Missing the required parameter '
|
153
|
+
# verify the required parameter 'customer_id' is set
|
154
|
+
if @api_client.config.client_side_validation && customer_id.nil?
|
155
|
+
fail ArgumentError, "Missing the required parameter 'customer_id' when calling CustomerShippingAddressApi.get_customer_shipping_address"
|
152
156
|
end
|
153
|
-
if @api_client.config.client_side_validation &&
|
154
|
-
fail ArgumentError, 'invalid value for "
|
157
|
+
if @api_client.config.client_side_validation && customer_id.to_s.length > 32
|
158
|
+
fail ArgumentError, 'invalid value for "customer_id" when calling CustomerShippingAddressApi.get_customer_shipping_address, the character length must be smaller than or equal to 32.'
|
155
159
|
end
|
156
160
|
|
157
|
-
if @api_client.config.client_side_validation &&
|
158
|
-
fail ArgumentError, 'invalid value for "
|
161
|
+
if @api_client.config.client_side_validation && customer_id.to_s.length < 1
|
162
|
+
fail ArgumentError, 'invalid value for "customer_id" when calling CustomerShippingAddressApi.get_customer_shipping_address, the character length must be great than or equal to 1.'
|
159
163
|
end
|
160
164
|
|
161
|
-
# verify the required parameter '
|
162
|
-
if @api_client.config.client_side_validation &&
|
163
|
-
fail ArgumentError, "Missing the required parameter '
|
165
|
+
# verify the required parameter 'shipping_address_id' is set
|
166
|
+
if @api_client.config.client_side_validation && shipping_address_id.nil?
|
167
|
+
fail ArgumentError, "Missing the required parameter 'shipping_address_id' when calling CustomerShippingAddressApi.get_customer_shipping_address"
|
164
168
|
end
|
165
|
-
if @api_client.config.client_side_validation &&
|
166
|
-
fail ArgumentError, 'invalid value for "
|
169
|
+
if @api_client.config.client_side_validation && shipping_address_id.to_s.length > 32
|
170
|
+
fail ArgumentError, 'invalid value for "shipping_address_id" when calling CustomerShippingAddressApi.get_customer_shipping_address, the character length must be smaller than or equal to 32.'
|
167
171
|
end
|
168
172
|
|
169
|
-
if @api_client.config.client_side_validation &&
|
170
|
-
fail ArgumentError, 'invalid value for "
|
173
|
+
if @api_client.config.client_side_validation && shipping_address_id.to_s.length < 1
|
174
|
+
fail ArgumentError, 'invalid value for "shipping_address_id" when calling CustomerShippingAddressApi.get_customer_shipping_address, the character length must be great than or equal to 1.'
|
171
175
|
end
|
172
176
|
|
173
177
|
if @api_client.config.client_side_validation && !opts[:'profile_id'].nil? && opts[:'profile_id'].to_s.length > 36
|
@@ -179,7 +183,7 @@ module CyberSource
|
|
179
183
|
end
|
180
184
|
|
181
185
|
# resource path
|
182
|
-
local_var_path = 'tms/v2/customers/{
|
186
|
+
local_var_path = 'tms/v2/customers/{customerId}/shipping-addresses/{shippingAddressId}'.sub('{' + 'customerId' + '}', customer_id.to_s).sub('{' + 'shippingAddressId' + '}', shipping_address_id.to_s)
|
183
187
|
|
184
188
|
# query parameters
|
185
189
|
query_params = {}
|
@@ -220,25 +224,27 @@ module CyberSource
|
|
220
224
|
return data, status_code, headers
|
221
225
|
end
|
222
226
|
# List Shipping Addresses for a Customer
|
223
|
-
#
|
227
|
+
# | | | | | --- | --- | --- | |**Customer Shipping Address**<br>A Customer Shipping Address represents tokenized customer shipping information.<br>A [Customer](#token-management_customer_create-a-customer) can have [one or more Shipping Addresses](#token-management_customer-shipping-address_list-shipping-addresses-for-a-customer), with one allocated as the Customers default for use in payments.| |**Retrieving all Customer Shipping Addresses**<br>Your system can use this API to retrieve all existing Shipping Addresses for a Customer.
|
228
|
+
# @param customer_id The Id of a Customer.
|
224
229
|
# @param [Hash] opts the optional parameters
|
225
|
-
# @option opts [String] :profile_id The
|
230
|
+
# @option opts [String] :profile_id The Id of a profile containing user specific TMS configuration.
|
226
231
|
# @option opts [Integer] :offset Starting record in zero-based dataset that should be returned as the first object in the array. Default is 0. (default to 0)
|
227
232
|
# @option opts [Integer] :limit The maximum number that can be returned in the array starting from the offset record in zero-based dataset. Default is 20, maximum is 100. (default to 20)
|
228
233
|
# @return [ShippingAddressListForCustomer]
|
229
|
-
def get_customer_shipping_addresses_list(
|
230
|
-
data, status_code, headers = get_customer_shipping_addresses_list_with_http_info(
|
234
|
+
def get_customer_shipping_addresses_list(customer_id, opts = {})
|
235
|
+
data, status_code, headers = get_customer_shipping_addresses_list_with_http_info(customer_id, opts)
|
231
236
|
return data, status_code, headers
|
232
237
|
end
|
233
238
|
|
234
239
|
# List Shipping Addresses for a Customer
|
235
|
-
#
|
240
|
+
# | | | | | --- | --- | --- | |**Customer Shipping Address**<br>A Customer Shipping Address represents tokenized customer shipping information.<br>A [Customer](#token-management_customer_create-a-customer) can have [one or more Shipping Addresses](#token-management_customer-shipping-address_list-shipping-addresses-for-a-customer), with one allocated as the Customers default for use in payments.|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|**Retrieving all Customer Shipping Addresses**<br>Your system can use this API to retrieve all existing Shipping Addresses for a Customer.
|
241
|
+
# @param customer_id The Id of a Customer.
|
236
242
|
# @param [Hash] opts the optional parameters
|
237
|
-
# @option opts [String] :profile_id The
|
243
|
+
# @option opts [String] :profile_id The Id of a profile containing user specific TMS configuration.
|
238
244
|
# @option opts [Integer] :offset Starting record in zero-based dataset that should be returned as the first object in the array. Default is 0.
|
239
245
|
# @option opts [Integer] :limit The maximum number that can be returned in the array starting from the offset record in zero-based dataset. Default is 20, maximum is 100.
|
240
246
|
# @return [Array<(ShippingAddressListForCustomer, Fixnum, Hash)>] ShippingAddressListForCustomer data, response status code and response headers
|
241
|
-
def get_customer_shipping_addresses_list_with_http_info(
|
247
|
+
def get_customer_shipping_addresses_list_with_http_info(customer_id, opts = {})
|
242
248
|
|
243
249
|
if @api_client.config.debugging
|
244
250
|
begin
|
@@ -248,16 +254,16 @@ module CyberSource
|
|
248
254
|
puts 'Cannot write to log'
|
249
255
|
end
|
250
256
|
end
|
251
|
-
# verify the required parameter '
|
252
|
-
if @api_client.config.client_side_validation &&
|
253
|
-
fail ArgumentError, "Missing the required parameter '
|
257
|
+
# verify the required parameter 'customer_id' is set
|
258
|
+
if @api_client.config.client_side_validation && customer_id.nil?
|
259
|
+
fail ArgumentError, "Missing the required parameter 'customer_id' when calling CustomerShippingAddressApi.get_customer_shipping_addresses_list"
|
254
260
|
end
|
255
|
-
if @api_client.config.client_side_validation &&
|
256
|
-
fail ArgumentError, 'invalid value for "
|
261
|
+
if @api_client.config.client_side_validation && customer_id.to_s.length > 32
|
262
|
+
fail ArgumentError, 'invalid value for "customer_id" when calling CustomerShippingAddressApi.get_customer_shipping_addresses_list, the character length must be smaller than or equal to 32.'
|
257
263
|
end
|
258
264
|
|
259
|
-
if @api_client.config.client_side_validation &&
|
260
|
-
fail ArgumentError, 'invalid value for "
|
265
|
+
if @api_client.config.client_side_validation && customer_id.to_s.length < 1
|
266
|
+
fail ArgumentError, 'invalid value for "customer_id" when calling CustomerShippingAddressApi.get_customer_shipping_addresses_list, the character length must be great than or equal to 1.'
|
261
267
|
end
|
262
268
|
|
263
269
|
if @api_client.config.client_side_validation && !opts[:'profile_id'].nil? && opts[:'profile_id'].to_s.length > 36
|
@@ -281,7 +287,7 @@ module CyberSource
|
|
281
287
|
end
|
282
288
|
|
283
289
|
# resource path
|
284
|
-
local_var_path = 'tms/v2/customers/{
|
290
|
+
local_var_path = 'tms/v2/customers/{customerId}/shipping-addresses'.sub('{' + 'customerId' + '}', customer_id.to_s)
|
285
291
|
|
286
292
|
# query parameters
|
287
293
|
query_params = {}
|
@@ -324,27 +330,29 @@ module CyberSource
|
|
324
330
|
return data, status_code, headers
|
325
331
|
end
|
326
332
|
# Update a Customer Shipping Address
|
327
|
-
#
|
328
|
-
# @param
|
333
|
+
# | | | | | --- | --- | --- | |**Customer Shipping Address**<br>A Customer Shipping Address represents tokenized customer shipping information.<br>A [Customer](#token-management_customer_create-a-customer) can have [one or more Shipping Addresses](#token-management_customer-shipping-address_list-shipping-addresses-for-a-customer), with one allocated as the Customers default for use in payments.| |**Updating a Customers Shipping Address**<br>Your system can use this API to update an existing Shipping Addresses for a Customer, including selecting a [default Shipping Address](#token-management_customer-shipping-address_update-a-customer-shipping-address_samplerequests-dropdown_make-customer-shipping-address-the-default_liveconsole-tab-request-body) for use in payments.
|
334
|
+
# @param customer_id The Id of a Customer.
|
335
|
+
# @param shipping_address_id The Id of a shipping address.
|
329
336
|
# @param patch_customer_shipping_address_request
|
330
337
|
# @param [Hash] opts the optional parameters
|
331
|
-
# @option opts [String] :profile_id The
|
338
|
+
# @option opts [String] :profile_id The Id of a profile containing user specific TMS configuration.
|
332
339
|
# @option opts [String] :if_match Contains an ETag value from a GET request to make the request conditional.
|
333
340
|
# @return [Tmsv2customersEmbeddedDefaultShippingAddress]
|
334
|
-
def patch_customers_shipping_address(
|
335
|
-
data, status_code, headers = patch_customers_shipping_address_with_http_info(
|
341
|
+
def patch_customers_shipping_address(customer_id, shipping_address_id, patch_customer_shipping_address_request, opts = {})
|
342
|
+
data, status_code, headers = patch_customers_shipping_address_with_http_info(customer_id, shipping_address_id, patch_customer_shipping_address_request, opts)
|
336
343
|
return data, status_code, headers
|
337
344
|
end
|
338
345
|
|
339
346
|
# Update a Customer Shipping Address
|
340
|
-
#
|
341
|
-
# @param
|
347
|
+
# | | | | | --- | --- | --- | |**Customer Shipping Address**<br>A Customer Shipping Address represents tokenized customer shipping information.<br>A [Customer](#token-management_customer_create-a-customer) can have [one or more Shipping Addresses](#token-management_customer-shipping-address_list-shipping-addresses-for-a-customer), with one allocated as the Customers default for use in payments.|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|**Updating a Customers Shipping Address**<br>Your system can use this API to update an existing Shipping Addresses for a Customer, including selecting a [default Shipping Address](#token-management_customer-shipping-address_update-a-customer-shipping-address_samplerequests-dropdown_make-customer-shipping-address-the-default_liveconsole-tab-request-body) for use in payments.
|
348
|
+
# @param customer_id The Id of a Customer.
|
349
|
+
# @param shipping_address_id The Id of a shipping address.
|
342
350
|
# @param patch_customer_shipping_address_request
|
343
351
|
# @param [Hash] opts the optional parameters
|
344
|
-
# @option opts [String] :profile_id The
|
352
|
+
# @option opts [String] :profile_id The Id of a profile containing user specific TMS configuration.
|
345
353
|
# @option opts [String] :if_match Contains an ETag value from a GET request to make the request conditional.
|
346
354
|
# @return [Array<(Tmsv2customersEmbeddedDefaultShippingAddress, Fixnum, Hash)>] Tmsv2customersEmbeddedDefaultShippingAddress data, response status code and response headers
|
347
|
-
def patch_customers_shipping_address_with_http_info(
|
355
|
+
def patch_customers_shipping_address_with_http_info(customer_id, shipping_address_id, patch_customer_shipping_address_request, opts = {})
|
348
356
|
|
349
357
|
if @api_client.config.debugging
|
350
358
|
begin
|
@@ -354,28 +362,28 @@ module CyberSource
|
|
354
362
|
puts 'Cannot write to log'
|
355
363
|
end
|
356
364
|
end
|
357
|
-
# verify the required parameter '
|
358
|
-
if @api_client.config.client_side_validation &&
|
359
|
-
fail ArgumentError, "Missing the required parameter '
|
365
|
+
# verify the required parameter 'customer_id' is set
|
366
|
+
if @api_client.config.client_side_validation && customer_id.nil?
|
367
|
+
fail ArgumentError, "Missing the required parameter 'customer_id' when calling CustomerShippingAddressApi.patch_customers_shipping_address"
|
360
368
|
end
|
361
|
-
if @api_client.config.client_side_validation &&
|
362
|
-
fail ArgumentError, 'invalid value for "
|
369
|
+
if @api_client.config.client_side_validation && customer_id.to_s.length > 32
|
370
|
+
fail ArgumentError, 'invalid value for "customer_id" when calling CustomerShippingAddressApi.patch_customers_shipping_address, the character length must be smaller than or equal to 32.'
|
363
371
|
end
|
364
372
|
|
365
|
-
if @api_client.config.client_side_validation &&
|
366
|
-
fail ArgumentError, 'invalid value for "
|
373
|
+
if @api_client.config.client_side_validation && customer_id.to_s.length < 1
|
374
|
+
fail ArgumentError, 'invalid value for "customer_id" when calling CustomerShippingAddressApi.patch_customers_shipping_address, the character length must be great than or equal to 1.'
|
367
375
|
end
|
368
376
|
|
369
|
-
# verify the required parameter '
|
370
|
-
if @api_client.config.client_side_validation &&
|
371
|
-
fail ArgumentError, "Missing the required parameter '
|
377
|
+
# verify the required parameter 'shipping_address_id' is set
|
378
|
+
if @api_client.config.client_side_validation && shipping_address_id.nil?
|
379
|
+
fail ArgumentError, "Missing the required parameter 'shipping_address_id' when calling CustomerShippingAddressApi.patch_customers_shipping_address"
|
372
380
|
end
|
373
|
-
if @api_client.config.client_side_validation &&
|
374
|
-
fail ArgumentError, 'invalid value for "
|
381
|
+
if @api_client.config.client_side_validation && shipping_address_id.to_s.length > 32
|
382
|
+
fail ArgumentError, 'invalid value for "shipping_address_id" when calling CustomerShippingAddressApi.patch_customers_shipping_address, the character length must be smaller than or equal to 32.'
|
375
383
|
end
|
376
384
|
|
377
|
-
if @api_client.config.client_side_validation &&
|
378
|
-
fail ArgumentError, 'invalid value for "
|
385
|
+
if @api_client.config.client_side_validation && shipping_address_id.to_s.length < 1
|
386
|
+
fail ArgumentError, 'invalid value for "shipping_address_id" when calling CustomerShippingAddressApi.patch_customers_shipping_address, the character length must be great than or equal to 1.'
|
379
387
|
end
|
380
388
|
|
381
389
|
# verify the required parameter 'patch_customer_shipping_address_request' is set
|
@@ -399,7 +407,7 @@ module CyberSource
|
|
399
407
|
end
|
400
408
|
|
401
409
|
# resource path
|
402
|
-
local_var_path = 'tms/v2/customers/{
|
410
|
+
local_var_path = 'tms/v2/customers/{customerId}/shipping-addresses/{shippingAddressId}'.sub('{' + 'customerId' + '}', customer_id.to_s).sub('{' + 'shippingAddressId' + '}', shipping_address_id.to_s)
|
403
411
|
|
404
412
|
# query parameters
|
405
413
|
query_params = {}
|
@@ -437,25 +445,25 @@ module CyberSource
|
|
437
445
|
return data, status_code, headers
|
438
446
|
end
|
439
447
|
# Create a Customer Shipping Address
|
440
|
-
#
|
441
|
-
# @param
|
448
|
+
# | | | | | --- | --- | --- | |**Customer Shipping Address**<br>A Customer Shipping Address represents tokenized customer shipping information.<br>A [Customer](#token-management_customer_create-a-customer) can have [one or more Shipping Addresses](#token-management_customer-shipping-address_list-shipping-addresses-for-a-customer), with one allocated as the Customers default for use in payments.| |**Creating a Customer Shipping Address**<br>Your system can use this API to create an existing Customers default or non default Shipping Address.<br>You can also create additional Customer Shipping Addresses via the [Payments API](#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).
|
449
|
+
# @param customer_id The Id of a Customer.
|
442
450
|
# @param post_customer_shipping_address_request
|
443
451
|
# @param [Hash] opts the optional parameters
|
444
|
-
# @option opts [String] :profile_id The
|
452
|
+
# @option opts [String] :profile_id The Id of a profile containing user specific TMS configuration.
|
445
453
|
# @return [Tmsv2customersEmbeddedDefaultShippingAddress]
|
446
|
-
def post_customer_shipping_address(
|
447
|
-
data, status_code, headers = post_customer_shipping_address_with_http_info(
|
454
|
+
def post_customer_shipping_address(customer_id, post_customer_shipping_address_request, opts = {})
|
455
|
+
data, status_code, headers = post_customer_shipping_address_with_http_info(customer_id, post_customer_shipping_address_request, opts)
|
448
456
|
return data, status_code, headers
|
449
457
|
end
|
450
458
|
|
451
459
|
# Create a Customer Shipping Address
|
452
|
-
#
|
453
|
-
# @param
|
460
|
+
# | | | | | --- | --- | --- | |**Customer Shipping Address**<br>A Customer Shipping Address represents tokenized customer shipping information.<br>A [Customer](#token-management_customer_create-a-customer) can have [one or more Shipping Addresses](#token-management_customer-shipping-address_list-shipping-addresses-for-a-customer), with one allocated as the Customers default for use in payments.|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|**Creating a Customer Shipping Address**<br>Your system can use this API to create an existing Customers default or non default Shipping Address.<br>You can also create additional Customer Shipping Addresses via the [Payments API](#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).
|
461
|
+
# @param customer_id The Id of a Customer.
|
454
462
|
# @param post_customer_shipping_address_request
|
455
463
|
# @param [Hash] opts the optional parameters
|
456
|
-
# @option opts [String] :profile_id The
|
464
|
+
# @option opts [String] :profile_id The Id of a profile containing user specific TMS configuration.
|
457
465
|
# @return [Array<(Tmsv2customersEmbeddedDefaultShippingAddress, Fixnum, Hash)>] Tmsv2customersEmbeddedDefaultShippingAddress data, response status code and response headers
|
458
|
-
def post_customer_shipping_address_with_http_info(
|
466
|
+
def post_customer_shipping_address_with_http_info(customer_id, post_customer_shipping_address_request, opts = {})
|
459
467
|
|
460
468
|
if @api_client.config.debugging
|
461
469
|
begin
|
@@ -465,16 +473,16 @@ module CyberSource
|
|
465
473
|
puts 'Cannot write to log'
|
466
474
|
end
|
467
475
|
end
|
468
|
-
# verify the required parameter '
|
469
|
-
if @api_client.config.client_side_validation &&
|
470
|
-
fail ArgumentError, "Missing the required parameter '
|
476
|
+
# verify the required parameter 'customer_id' is set
|
477
|
+
if @api_client.config.client_side_validation && customer_id.nil?
|
478
|
+
fail ArgumentError, "Missing the required parameter 'customer_id' when calling CustomerShippingAddressApi.post_customer_shipping_address"
|
471
479
|
end
|
472
|
-
if @api_client.config.client_side_validation &&
|
473
|
-
fail ArgumentError, 'invalid value for "
|
480
|
+
if @api_client.config.client_side_validation && customer_id.to_s.length > 32
|
481
|
+
fail ArgumentError, 'invalid value for "customer_id" when calling CustomerShippingAddressApi.post_customer_shipping_address, the character length must be smaller than or equal to 32.'
|
474
482
|
end
|
475
483
|
|
476
|
-
if @api_client.config.client_side_validation &&
|
477
|
-
fail ArgumentError, 'invalid value for "
|
484
|
+
if @api_client.config.client_side_validation && customer_id.to_s.length < 1
|
485
|
+
fail ArgumentError, 'invalid value for "customer_id" when calling CustomerShippingAddressApi.post_customer_shipping_address, the character length must be great than or equal to 1.'
|
478
486
|
end
|
479
487
|
|
480
488
|
# verify the required parameter 'post_customer_shipping_address_request' is set
|
@@ -490,7 +498,7 @@ module CyberSource
|
|
490
498
|
end
|
491
499
|
|
492
500
|
# resource path
|
493
|
-
local_var_path = 'tms/v2/customers/{
|
501
|
+
local_var_path = 'tms/v2/customers/{customerId}/shipping-addresses'.sub('{' + 'customerId' + '}', customer_id.to_s)
|
494
502
|
|
495
503
|
# query parameters
|
496
504
|
query_params = {}
|