cybersource_rest_client 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/AuthenticationSDK/Cybersource.gemspec +22 -21
- data/AuthenticationSDK/authentication/http/GetSignatureParameter.rb +3 -1
- data/AuthenticationSDK/authentication/http/HttpSignatureHeader.rb +3 -1
- data/AuthenticationSDK/authentication/jwt/JwtToken.rb +2 -2
- data/AuthenticationSDK/util/Constants.rb +4 -0
- data/lib/{cyberSource_client → cybersource_rest_client}/api/capture_api.rb +4 -53
- data/lib/{cyberSource_client → cybersource_rest_client}/api/credit_api.rb +4 -53
- data/lib/{cyberSource_client/api/tokenization_api.rb → cybersource_rest_client/api/flex_token_api.rb} +9 -6
- data/lib/cybersource_rest_client/api/instrument_identifier_api.rb +254 -0
- data/lib/cybersource_rest_client/api/instrument_identifiers_api.rb +91 -0
- data/lib/{cyberSource_client → cybersource_rest_client}/api/key_generation_api.rb +11 -12
- data/lib/cybersource_rest_client/api/notification_of_changes_api.rb +86 -0
- data/lib/{cyberSource_client/api/instrument_identifier_api.rb → cybersource_rest_client/api/payment_instruments_api.rb} +171 -150
- data/lib/cybersource_rest_client/api/payments_api.rb +78 -0
- data/lib/{cyberSource_client/api/default_api.rb → cybersource_rest_client/api/process_a_payout_api.rb} +8 -6
- data/lib/cybersource_rest_client/api/purchase_and_refund_details_api.rb +129 -0
- data/lib/{cyberSource_client → cybersource_rest_client}/api/refund_api.rb +6 -53
- data/lib/cybersource_rest_client/api/report_definitions_api.rb +156 -0
- data/lib/cybersource_rest_client/api/report_downloads_api.rb +100 -0
- data/lib/cybersource_rest_client/api/report_subscriptions_api.rb +262 -0
- data/lib/cybersource_rest_client/api/reports_api.rb +257 -0
- data/lib/{cyberSource_client → cybersource_rest_client}/api/reversal_api.rb +4 -53
- data/lib/cybersource_rest_client/api/search_transactions_api.rb +132 -0
- data/lib/cybersource_rest_client/api/secure_file_share_api.rb +169 -0
- data/lib/cybersource_rest_client/api/transaction_batch_api.rb +77 -0
- data/lib/cybersource_rest_client/api/transaction_batches_api.rb +86 -0
- data/lib/cybersource_rest_client/api/transaction_details_api.rb +78 -0
- data/lib/cybersource_rest_client/api/user_management_api.rb +84 -0
- data/lib/{cyberSource_client → cybersource_rest_client}/api/void_api.rb +10 -53
- data/lib/{cyberSource_client → cybersource_rest_client}/api_client.rb +33 -23
- data/lib/{cyberSource_client → cybersource_rest_client}/api_error.rb +0 -0
- data/lib/{cyberSource_client → cybersource_rest_client}/configuration.rb +1 -1
- data/lib/{cyberSource_client → cybersource_rest_client}/models/auth_reversal_request.rb +5 -5
- data/lib/{cyberSource_client → cybersource_rest_client}/models/body.rb +5 -5
- data/lib/{cyberSource_client → cybersource_rest_client}/models/body_1.rb +1 -1
- data/lib/{cyberSource_client → cybersource_rest_client}/models/body_2.rb +9 -9
- data/lib/{cyberSource_client → cybersource_rest_client}/models/body_3.rb +9 -9
- data/lib/{cyberSource_client → cybersource_rest_client}/models/capture_payment_request.rb +11 -11
- data/lib/{cyberSource_client → cybersource_rest_client}/models/card_info.rb +0 -0
- data/lib/{cyberSource_client → cybersource_rest_client}/models/create_credit_request.rb +11 -11
- data/lib/{cyberSource_client → cybersource_rest_client}/models/create_payment_request.rb +13 -13
- data/lib/cybersource_rest_client/models/create_search_request.rb +244 -0
- data/lib/{cyberSource_client → cybersource_rest_client}/models/der_public_key.rb +0 -0
- data/lib/{cyberSource_client → cybersource_rest_client}/models/error.rb +0 -0
- data/lib/{cyberSource_client → cybersource_rest_client}/models/error_links.rb +0 -0
- data/lib/{cyberSource_client → cybersource_rest_client}/models/error_response.rb +0 -0
- data/lib/{cyberSource_client/models/paymentsflexv1tokens_card_info.rb → cybersource_rest_client/models/flexv1tokens_card_info.rb} +1 -1
- data/lib/{cyberSource_client → cybersource_rest_client}/models/generate_public_key_request.rb +69 -4
- data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_200.rb +0 -0
- data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_200_1.rb +0 -0
- data/lib/{cyberSource_client/models/inline_response_200_7.rb → cybersource_rest_client/models/inline_response_200_10.rb} +6 -6
- data/lib/{cyberSource_client/models/inline_response_200_8.rb → cybersource_rest_client/models/inline_response_200_11.rb} +2 -2
- data/lib/{cyberSource_client/models/inline_response_200_8__links.rb → cybersource_rest_client/models/inline_response_200_11__links.rb} +6 -6
- data/lib/{cyberSource_client/models/inline_response_200_8__links_first.rb → cybersource_rest_client/models/inline_response_200_11__links_first.rb} +1 -1
- data/lib/{cyberSource_client/models/inline_response_200_8__links_last.rb → cybersource_rest_client/models/inline_response_200_11__links_last.rb} +1 -1
- data/lib/{cyberSource_client/models/inline_response_200_8__links_next.rb → cybersource_rest_client/models/inline_response_200_11__links_next.rb} +1 -1
- data/lib/{cyberSource_client/models/inline_response_200_8__links_prev.rb → cybersource_rest_client/models/inline_response_200_11__links_prev.rb} +1 -1
- data/lib/{cyberSource_client/models/inline_response_200_8__links_self.rb → cybersource_rest_client/models/inline_response_200_11__links_self.rb} +1 -1
- data/lib/{cyberSource_client/models/inline_response_200_4.rb → cybersource_rest_client/models/inline_response_200_12.rb} +176 -82
- data/lib/cybersource_rest_client/models/inline_response_200_12_application_information.rb +225 -0
- data/lib/cybersource_rest_client/models/inline_response_200_12_application_information_applications.rb +254 -0
- data/lib/cybersource_rest_client/models/inline_response_200_12_buyer_information.rb +224 -0
- data/lib/cybersource_rest_client/models/inline_response_200_12_client_reference_information.rb +239 -0
- data/lib/{cyberSource_client/models/inline_response_200_2_processor_information.rb → cybersource_rest_client/models/inline_response_200_12_consumer_authentication_information.rb} +62 -30
- data/lib/{cyberSource_client/models/inline_response_200_2_device_information.rb → cybersource_rest_client/models/inline_response_200_12_device_information.rb} +38 -23
- data/lib/cybersource_rest_client/models/inline_response_200_12_error_information.rb +205 -0
- data/lib/cybersource_rest_client/models/inline_response_200_12_fraud_marking_information.rb +184 -0
- data/lib/cybersource_rest_client/models/inline_response_200_12_installment_information.rb +184 -0
- data/lib/cybersource_rest_client/models/inline_response_200_12_merchant_defined_information.rb +224 -0
- data/lib/{cyberSource_client/models/paymentinstruments_merchant_information.rb → cybersource_rest_client/models/inline_response_200_12_merchant_information.rb} +2 -2
- data/lib/cybersource_rest_client/models/inline_response_200_12_merchant_information_merchant_descriptor.rb +199 -0
- data/lib/{cyberSource_client/models/v2paymentsidrefunds_order_information.rb → cybersource_rest_client/models/inline_response_200_12_order_information.rb} +13 -21
- data/lib/cybersource_rest_client/models/inline_response_200_12_order_information_amount_details.rb +274 -0
- data/lib/{cyberSource_client/models/inline_response_200_2_order_information_bill_to.rb → cybersource_rest_client/models/inline_response_200_12_order_information_bill_to.rb} +108 -43
- data/lib/{cyberSource_client/models/inline_response_200_2_order_information_line_items.rb → cybersource_rest_client/models/inline_response_200_12_order_information_line_items.rb} +34 -255
- data/lib/{cyberSource_client/models/inline_response_200_2_order_information_ship_to.rb → cybersource_rest_client/models/inline_response_200_12_order_information_ship_to.rb} +24 -29
- data/lib/cybersource_rest_client/models/inline_response_200_12_order_information_shipping_details.rb +209 -0
- data/lib/cybersource_rest_client/models/inline_response_200_12_payment_information.rb +228 -0
- data/lib/cybersource_rest_client/models/inline_response_200_12_payment_information_account_features.rb +249 -0
- data/lib/{cyberSource_client/models/inline_response_200_4_order_information.rb → cybersource_rest_client/models/inline_response_200_12_payment_information_bank.rb} +52 -40
- data/lib/cybersource_rest_client/models/inline_response_200_12_payment_information_bank_account.rb +244 -0
- data/lib/cybersource_rest_client/models/inline_response_200_12_payment_information_bank_mandate.rb +204 -0
- data/lib/{cyberSource_client/models/inline_response_200_2_payment_information_card.rb → cybersource_rest_client/models/inline_response_200_12_payment_information_card.rb} +166 -12
- data/lib/cybersource_rest_client/models/inline_response_200_12_payment_information_invoice.rb +204 -0
- data/lib/cybersource_rest_client/models/inline_response_200_12_payment_information_payment_type.rb +244 -0
- data/lib/cybersource_rest_client/models/inline_response_200_12_point_of_sale_information.rb +233 -0
- data/lib/cybersource_rest_client/models/inline_response_200_12_processing_information.rb +252 -0
- data/lib/{cyberSource_client/models/inline_response_200_2_processing_information.rb → cybersource_rest_client/models/inline_response_200_12_processing_information_authorization_options.rb} +17 -17
- data/lib/cybersource_rest_client/models/inline_response_200_12_processing_information_bank_transfer_options.rb +184 -0
- data/lib/cybersource_rest_client/models/inline_response_200_12_processor_information.rb +309 -0
- data/lib/cybersource_rest_client/models/inline_response_200_12_processor_information_ach_verification.rb +224 -0
- data/lib/{cyberSource_client/models/inline_response_200_2_processor_information_card_verification.rb → cybersource_rest_client/models/inline_response_200_12_processor_information_card_verification.rb} +1 -1
- data/lib/cybersource_rest_client/models/inline_response_200_12_processor_information_electronic_verification_results.rb +424 -0
- data/lib/{cyberSource_client/models/inline_response_200_2_processor_information_avs.rb → cybersource_rest_client/models/inline_response_200_12_processor_information_processor.rb} +17 -17
- data/lib/cybersource_rest_client/models/inline_response_200_12_risk_information.rb +233 -0
- data/lib/cybersource_rest_client/models/inline_response_200_12_risk_information_profile.rb +194 -0
- data/lib/{cyberSource_client/models/inline_response_200_2_payment_information.rb → cybersource_rest_client/models/inline_response_200_12_risk_information_score.rb} +18 -14
- data/lib/cybersource_rest_client/models/inline_response_200_12_sender_information.rb +199 -0
- data/lib/{cyberSource_client/models/inline_response_201__embedded.rb → cybersource_rest_client/models/inline_response_200_13.rb} +10 -8
- data/lib/cybersource_rest_client/models/inline_response_200_13_account_information.rb +282 -0
- data/lib/cybersource_rest_client/models/inline_response_200_13_contact_information.rb +210 -0
- data/lib/cybersource_rest_client/models/inline_response_200_13_organization_information.rb +183 -0
- data/lib/cybersource_rest_client/models/inline_response_200_13_users.rb +201 -0
- data/lib/cybersource_rest_client/models/inline_response_200_2.rb +204 -0
- data/lib/cybersource_rest_client/models/inline_response_200_2__links.rb +183 -0
- data/lib/cybersource_rest_client/models/inline_response_200_2__links_self.rb +192 -0
- data/lib/cybersource_rest_client/models/inline_response_200_2_transaction_batches.rb +277 -0
- data/lib/cybersource_rest_client/models/inline_response_200_3.rb +186 -0
- data/lib/cybersource_rest_client/models/inline_response_200_3_notification_of_changes.rb +255 -0
- data/lib/cybersource_rest_client/models/inline_response_200_4.rb +185 -0
- data/lib/cybersource_rest_client/models/inline_response_200_4_report_definitions.rb +243 -0
- data/lib/cybersource_rest_client/models/inline_response_200_5.rb +254 -0
- data/lib/cybersource_rest_client/models/inline_response_200_5_attributes.rb +237 -0
- data/lib/cybersource_rest_client/models/inline_response_200_6.rb +185 -0
- data/lib/cybersource_rest_client/models/inline_response_200_6_report_preferences.rb +229 -0
- data/lib/cybersource_rest_client/models/inline_response_200_6_subscriptions.rb +354 -0
- data/lib/cybersource_rest_client/models/inline_response_200_7.rb +185 -0
- data/lib/cybersource_rest_client/models/inline_response_200_7_reports.rb +373 -0
- data/lib/cybersource_rest_client/models/inline_response_200_8.rb +376 -0
- data/lib/{cyberSource_client/models/inline_response_201__embedded_capture.rb → cybersource_rest_client/models/inline_response_200_9.rb} +11 -10
- data/lib/cybersource_rest_client/models/inline_response_200_9__links.rb +194 -0
- data/lib/cybersource_rest_client/models/inline_response_200_9__links_files.rb +202 -0
- data/lib/cybersource_rest_client/models/inline_response_200_9__links_self.rb +192 -0
- data/lib/cybersource_rest_client/models/inline_response_200_9_file_details.rb +278 -0
- data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_200_der.rb +0 -0
- data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_200_jwk.rb +0 -0
- data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_201.rb +1 -10
- data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_201_1.rb +2 -2
- data/lib/{cyberSource_client/models/inline_response_201__embedded_capture__links.rb → cybersource_rest_client/models/inline_response_201_1__links.rb} +1 -1
- data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_201_1_authorization_information.rb +0 -0
- data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_201_1_processor_information.rb +1 -1
- data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_201_1_reversal_amount_details.rb +0 -0
- data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_201_2.rb +0 -0
- data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_201_2__links.rb +0 -0
- data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_201_2_order_information.rb +0 -0
- data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_201_2_order_information_amount_details.rb +0 -0
- data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_201_2_processor_information.rb +0 -0
- data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_201_3.rb +0 -0
- data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_201_3__links.rb +0 -0
- data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_201_3_order_information.rb +0 -0
- data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_201_3_processor_information.rb +0 -0
- data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_201_3_refund_amount_details.rb +0 -0
- data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_201_4.rb +0 -0
- data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_201_4_credit_amount_details.rb +0 -0
- data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_201_5.rb +1 -1
- data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_201_5_void_amount_details.rb +0 -0
- data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_201_6.rb +9 -9
- data/lib/{cyberSource_client/models/inline_response_200_5.rb → cybersource_rest_client/models/inline_response_201_7.rb} +99 -87
- data/lib/cybersource_rest_client/models/inline_response_201_7__embedded.rb +186 -0
- data/lib/cybersource_rest_client/models/inline_response_201_7__embedded__links.rb +183 -0
- data/lib/cybersource_rest_client/models/inline_response_201_7__embedded_buyer_information.rb +199 -0
- data/lib/cybersource_rest_client/models/inline_response_201_7__embedded_client_reference_information.rb +219 -0
- data/lib/cybersource_rest_client/models/inline_response_201_7__embedded_consumer_authentication_information.rb +209 -0
- data/lib/{cyberSource_client/models/inline_response_200_4_device_information.rb → cybersource_rest_client/models/inline_response_201_7__embedded_device_information.rb} +1 -1
- data/lib/cybersource_rest_client/models/inline_response_201_7__embedded_merchant_information.rb +199 -0
- data/lib/cybersource_rest_client/models/inline_response_201_7__embedded_order_information.rb +201 -0
- data/lib/cybersource_rest_client/models/inline_response_201_7__embedded_order_information_bill_to.rb +299 -0
- data/lib/{cyberSource_client/models/inline_response_200_4_order_information_ship_to.rb → cybersource_rest_client/models/inline_response_201_7__embedded_order_information_ship_to.rb} +85 -35
- data/lib/cybersource_rest_client/models/inline_response_201_7__embedded_payment_information.rb +201 -0
- data/lib/{cyberSource_client/models/inline_response_200_2_payment_information_tokenized_card.rb → cybersource_rest_client/models/inline_response_201_7__embedded_payment_information_card.rb} +31 -81
- data/lib/cybersource_rest_client/models/inline_response_201_7__embedded_payment_information_payment_method.rb +184 -0
- data/lib/cybersource_rest_client/models/inline_response_201_7__embedded_point_of_sale_information.rb +228 -0
- data/lib/cybersource_rest_client/models/inline_response_201_7__embedded_point_of_sale_information_partner.rb +199 -0
- data/lib/{cyberSource_client/models/inline_response_200_4_processing_information.rb → cybersource_rest_client/models/inline_response_201_7__embedded_processing_information.rb} +9 -8
- data/lib/cybersource_rest_client/models/inline_response_201_7__embedded_processor_information.rb +183 -0
- data/lib/cybersource_rest_client/models/inline_response_201_7__embedded_risk_information.rb +183 -0
- data/lib/cybersource_rest_client/models/inline_response_201_7__embedded_risk_information_providers.rb +183 -0
- data/lib/cybersource_rest_client/models/inline_response_201_7__embedded_risk_information_providers_fingerprint.rb +249 -0
- data/lib/{cyberSource_client/models/inline_response_200_2.rb → cybersource_rest_client/models/inline_response_201_7__embedded_transaction_summaries.rb} +103 -123
- data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_201__links.rb +0 -0
- data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_201__links_self.rb +0 -0
- data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_201_client_reference_information.rb +0 -0
- data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_201_error_information.rb +0 -0
- data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_201_error_information_details.rb +0 -0
- data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_201_order_information.rb +0 -0
- data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_201_order_information_amount_details.rb +0 -0
- data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_201_order_information_invoice_details.rb +0 -0
- data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_201_payment_information.rb +0 -0
- data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_201_payment_information_account_features.rb +0 -0
- data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_201_payment_information_card.rb +1 -1
- data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_201_payment_information_tokenized_card.rb +1 -1
- data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_201_point_of_sale_information.rb +0 -0
- data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_201_point_of_sale_information_emv.rb +0 -0
- data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_201_processor_information.rb +5 -5
- data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_201_processor_information_avs.rb +10 -7
- data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_201_processor_information_card_verification.rb +0 -0
- data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_201_processor_information_consumer_authentication_response.rb +0 -0
- data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_201_processor_information_customer.rb +0 -0
- data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_201_processor_information_electronic_verification_results.rb +10 -10
- data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_201_processor_information_issuer.rb +0 -0
- data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_201_processor_information_merchant_advice.rb +0 -0
- data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_400.rb +0 -0
- data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_400_1.rb +0 -0
- data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_400_2.rb +0 -0
- data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_400_3.rb +0 -0
- data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_400_4.rb +0 -0
- data/lib/cybersource_rest_client/models/inline_response_400_5.rb +193 -0
- data/lib/cybersource_rest_client/models/inline_response_400_5_error_information.rb +203 -0
- data/lib/cybersource_rest_client/models/inline_response_400_5_error_information_details.rb +194 -0
- data/lib/{cyberSource_client/models/inline_response_400_5.rb → cybersource_rest_client/models/inline_response_400_6.rb} +1 -1
- data/lib/cybersource_rest_client/models/inline_response_400_7.rb +247 -0
- data/lib/cybersource_rest_client/models/inline_response_400_7_fields.rb +205 -0
- data/lib/{cyberSource_client/models/inline_response_400_6.rb → cybersource_rest_client/models/inline_response_400_8.rb} +2 -2
- data/lib/cybersource_rest_client/models/inline_response_400_9.rb +249 -0
- data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_409.rb +0 -0
- data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_409__links.rb +0 -0
- data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_409__links_payment_instruments.rb +0 -0
- data/lib/cybersource_rest_client/models/inline_response_500.rb +193 -0
- data/lib/cybersource_rest_client/models/inline_response_500_error_information.rb +194 -0
- data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_502.rb +0 -0
- data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_default.rb +0 -0
- data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_default__links.rb +0 -0
- data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_default__links_next.rb +0 -0
- data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_default_response_status.rb +0 -0
- data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_default_response_status_details.rb +0 -0
- data/lib/{cyberSource_client → cybersource_rest_client}/models/json_web_key.rb +0 -0
- data/lib/{cyberSource_client → cybersource_rest_client}/models/key_parameters.rb +0 -0
- data/lib/{cyberSource_client → cybersource_rest_client}/models/key_result.rb +0 -0
- data/lib/{cyberSource_client → cybersource_rest_client}/models/link.rb +0 -0
- data/lib/{cyberSource_client → cybersource_rest_client}/models/links.rb +0 -0
- data/lib/{cyberSource_client → cybersource_rest_client}/models/oct_create_payment_request.rb +6 -6
- data/lib/{cyberSource_client/models/v2credits_point_of_sale_information.rb → cybersource_rest_client/models/ptsv2credits_point_of_sale_information.rb} +2 -2
- data/lib/{cyberSource_client/models/v2credits_point_of_sale_information_emv.rb → cybersource_rest_client/models/ptsv2credits_point_of_sale_information_emv.rb} +1 -1
- data/lib/{cyberSource_client/models/v2credits_processing_information.rb → cybersource_rest_client/models/ptsv2credits_processing_information.rb} +2 -2
- data/lib/{cyberSource_client/models/v2payments_aggregator_information.rb → cybersource_rest_client/models/ptsv2payments_aggregator_information.rb} +2 -2
- data/lib/{cyberSource_client/models/v2payments_aggregator_information_sub_merchant.rb → cybersource_rest_client/models/ptsv2payments_aggregator_information_sub_merchant.rb} +10 -10
- data/lib/{cyberSource_client/models/v2payments_buyer_information.rb → cybersource_rest_client/models/ptsv2payments_buyer_information.rb} +4 -4
- data/lib/{cyberSource_client/models/v2payments_buyer_information_personal_identification.rb → cybersource_rest_client/models/ptsv2payments_buyer_information_personal_identification.rb} +2 -2
- data/lib/{cyberSource_client/models/v2payments_client_reference_information.rb → cybersource_rest_client/models/ptsv2payments_client_reference_information.rb} +1 -1
- data/lib/{cyberSource_client/models/v2payments_consumer_authentication_information.rb → cybersource_rest_client/models/ptsv2payments_consumer_authentication_information.rb} +1 -1
- data/lib/{cyberSource_client/models/v2payments_device_information.rb → cybersource_rest_client/models/ptsv2payments_device_information.rb} +2 -2
- data/lib/{cyberSource_client/models/v2payments_merchant_defined_information.rb → cybersource_rest_client/models/ptsv2payments_merchant_defined_information.rb} +3 -3
- data/lib/{cyberSource_client/models/v2payments_merchant_information.rb → cybersource_rest_client/models/ptsv2payments_merchant_information.rb} +2 -2
- data/lib/{cyberSource_client/models/v2payments_merchant_information_merchant_descriptor.rb → cybersource_rest_client/models/ptsv2payments_merchant_information_merchant_descriptor.rb} +1 -1
- data/lib/{cyberSource_client/models/v2payments_order_information.rb → cybersource_rest_client/models/ptsv2payments_order_information.rb} +7 -7
- data/lib/{cyberSource_client/models/v2payments_order_information_amount_details.rb → cybersource_rest_client/models/ptsv2payments_order_information_amount_details.rb} +5 -5
- data/lib/{cyberSource_client/models/v2payments_order_information_amount_details_amex_additional_amounts.rb → cybersource_rest_client/models/ptsv2payments_order_information_amount_details_amex_additional_amounts.rb} +1 -1
- data/lib/{cyberSource_client/models/v2payments_order_information_amount_details_surcharge.rb → cybersource_rest_client/models/ptsv2payments_order_information_amount_details_surcharge.rb} +2 -2
- data/lib/{cyberSource_client/models/v2payments_order_information_amount_details_tax_details.rb → cybersource_rest_client/models/ptsv2payments_order_information_amount_details_tax_details.rb} +1 -1
- data/lib/{cyberSource_client/models/v2payments_order_information_bill_to.rb → cybersource_rest_client/models/ptsv2payments_order_information_bill_to.rb} +9 -9
- data/lib/{cyberSource_client/models/v2payments_order_information_invoice_details.rb → cybersource_rest_client/models/ptsv2payments_order_information_invoice_details.rb} +34 -4
- data/lib/{cyberSource_client/models/v2payments_order_information_invoice_details_transaction_advice_addendum.rb → cybersource_rest_client/models/ptsv2payments_order_information_invoice_details_transaction_advice_addendum.rb} +2 -2
- data/lib/{cyberSource_client/models/v2payments_order_information_line_items.rb → cybersource_rest_client/models/ptsv2payments_order_information_line_items.rb} +2 -2
- data/lib/{cyberSource_client/models/v2payments_order_information_ship_to.rb → cybersource_rest_client/models/ptsv2payments_order_information_ship_to.rb} +2 -2
- data/lib/{cyberSource_client/models/v2payments_order_information_shipping_details.rb → cybersource_rest_client/models/ptsv2payments_order_information_shipping_details.rb} +2 -2
- data/lib/{cyberSource_client/models/v2payments_payment_information.rb → cybersource_rest_client/models/ptsv2payments_payment_information.rb} +5 -5
- data/lib/{cyberSource_client/models/v2payments_payment_information_card.rb → cybersource_rest_client/models/ptsv2payments_payment_information_card.rb} +3 -3
- data/lib/{cyberSource_client/models/v2payments_payment_information_customer.rb → cybersource_rest_client/models/ptsv2payments_payment_information_customer.rb} +8 -11
- data/lib/{cyberSource_client/models/v2payments_payment_information_fluid_data.rb → cybersource_rest_client/models/ptsv2payments_payment_information_fluid_data.rb} +2 -2
- data/lib/{cyberSource_client/models/v2payments_payment_information_tokenized_card.rb → cybersource_rest_client/models/ptsv2payments_payment_information_tokenized_card.rb} +4 -4
- data/lib/{cyberSource_client/models/v2payments_point_of_sale_information.rb → cybersource_rest_client/models/ptsv2payments_point_of_sale_information.rb} +5 -5
- data/lib/{cyberSource_client/models/v2payments_point_of_sale_information_emv.rb → cybersource_rest_client/models/ptsv2payments_point_of_sale_information_emv.rb} +1 -1
- data/lib/{cyberSource_client/models/v2payments_processing_information.rb → cybersource_rest_client/models/ptsv2payments_processing_information.rb} +6 -6
- data/lib/{cyberSource_client/models/v2payments_processing_information_authorization_options.rb → cybersource_rest_client/models/ptsv2payments_processing_information_authorization_options.rb} +2 -2
- data/lib/{cyberSource_client/models/v2payments_processing_information_authorization_options_initiator.rb → cybersource_rest_client/models/ptsv2payments_processing_information_authorization_options_initiator.rb} +2 -2
- data/lib/{cyberSource_client/models/v2payments_processing_information_authorization_options_merchant_initiated_transaction.rb → cybersource_rest_client/models/ptsv2payments_processing_information_authorization_options_merchant_initiated_transaction.rb} +1 -1
- data/lib/{cyberSource_client/models/v2payments_processing_information_capture_options.rb → cybersource_rest_client/models/ptsv2payments_processing_information_capture_options.rb} +1 -1
- data/lib/{cyberSource_client/models/v2payments_processing_information_issuer.rb → cybersource_rest_client/models/ptsv2payments_processing_information_issuer.rb} +1 -1
- data/lib/{cyberSource_client/models/v2payments_processing_information_recurring_options.rb → cybersource_rest_client/models/ptsv2payments_processing_information_recurring_options.rb} +1 -1
- data/lib/{cyberSource_client/models/v2payments_recipient_information.rb → cybersource_rest_client/models/ptsv2payments_recipient_information.rb} +4 -4
- data/lib/{cyberSource_client/models/v2paymentsidcaptures_aggregator_information.rb → cybersource_rest_client/models/ptsv2paymentsidcaptures_aggregator_information.rb} +2 -2
- data/lib/{cyberSource_client/models/v2paymentsidcaptures_aggregator_information_sub_merchant.rb → cybersource_rest_client/models/ptsv2paymentsidcaptures_aggregator_information_sub_merchant.rb} +9 -9
- data/lib/{cyberSource_client/models/v2paymentsidcaptures_buyer_information.rb → cybersource_rest_client/models/ptsv2paymentsidcaptures_buyer_information.rb} +2 -2
- data/lib/{cyberSource_client/models/v2paymentsidcaptures_merchant_information.rb → cybersource_rest_client/models/ptsv2paymentsidcaptures_merchant_information.rb} +2 -2
- data/lib/{cyberSource_client/models/inline_response_200_2_order_information.rb → cybersource_rest_client/models/ptsv2paymentsidcaptures_order_information.rb} +7 -7
- data/lib/{cyberSource_client/models/v2paymentsidcaptures_order_information_amount_details.rb → cybersource_rest_client/models/ptsv2paymentsidcaptures_order_information_amount_details.rb} +3 -3
- data/lib/{cyberSource_client/models/v2paymentsidcaptures_order_information_bill_to.rb → cybersource_rest_client/models/ptsv2paymentsidcaptures_order_information_bill_to.rb} +6 -6
- data/lib/{cyberSource_client/models/v2paymentsidcaptures_order_information_invoice_details.rb → cybersource_rest_client/models/ptsv2paymentsidcaptures_order_information_invoice_details.rb} +3 -3
- data/lib/{cyberSource_client/models/v2paymentsidcaptures_order_information_ship_to.rb → cybersource_rest_client/models/ptsv2paymentsidcaptures_order_information_ship_to.rb} +1 -1
- data/lib/{cyberSource_client/models/v2paymentsidcaptures_order_information_shipping_details.rb → cybersource_rest_client/models/ptsv2paymentsidcaptures_order_information_shipping_details.rb} +1 -1
- data/lib/{cyberSource_client/models/v2paymentsidcaptures_payment_information.rb → cybersource_rest_client/models/ptsv2paymentsidcaptures_payment_information.rb} +2 -2
- data/lib/{cyberSource_client/models/v2paymentsidcaptures_point_of_sale_information.rb → cybersource_rest_client/models/ptsv2paymentsidcaptures_point_of_sale_information.rb} +2 -2
- data/lib/{cyberSource_client/models/v2paymentsidcaptures_point_of_sale_information_emv.rb → cybersource_rest_client/models/ptsv2paymentsidcaptures_point_of_sale_information_emv.rb} +1 -1
- data/lib/{cyberSource_client/models/v2paymentsidcaptures_processing_information.rb → cybersource_rest_client/models/ptsv2paymentsidcaptures_processing_information.rb} +4 -4
- data/lib/{cyberSource_client/models/v2paymentsidcaptures_processing_information_authorization_options.rb → cybersource_rest_client/models/ptsv2paymentsidcaptures_processing_information_authorization_options.rb} +1 -1
- data/lib/{cyberSource_client/models/v2paymentsidcaptures_processing_information_capture_options.rb → cybersource_rest_client/models/ptsv2paymentsidcaptures_processing_information_capture_options.rb} +1 -1
- data/lib/{cyberSource_client/models/v2paymentsidrefunds_merchant_information.rb → cybersource_rest_client/models/ptsv2paymentsidrefunds_merchant_information.rb} +2 -2
- data/lib/{cyberSource_client/models/v2paymentsidcaptures_order_information.rb → cybersource_rest_client/models/ptsv2paymentsidrefunds_order_information.rb} +7 -7
- data/lib/{cyberSource_client/models/v2paymentsidrefunds_order_information_line_items.rb → cybersource_rest_client/models/ptsv2paymentsidrefunds_order_information_line_items.rb} +2 -2
- data/lib/{cyberSource_client/models/v2paymentsidrefunds_payment_information.rb → cybersource_rest_client/models/ptsv2paymentsidrefunds_payment_information.rb} +2 -2
- data/lib/{cyberSource_client/models/v2paymentsidrefunds_payment_information_card.rb → cybersource_rest_client/models/ptsv2paymentsidrefunds_payment_information_card.rb} +3 -3
- data/lib/{cyberSource_client/models/v2paymentsidrefunds_point_of_sale_information.rb → cybersource_rest_client/models/ptsv2paymentsidrefunds_point_of_sale_information.rb} +2 -2
- data/lib/{cyberSource_client/models/v2paymentsidrefunds_processing_information.rb → cybersource_rest_client/models/ptsv2paymentsidrefunds_processing_information.rb} +2 -2
- data/lib/{cyberSource_client/models/v2paymentsidrefunds_processing_information_recurring_options.rb → cybersource_rest_client/models/ptsv2paymentsidrefunds_processing_information_recurring_options.rb} +1 -1
- data/lib/{cyberSource_client/models/v2paymentsidreversals_client_reference_information.rb → cybersource_rest_client/models/ptsv2paymentsidreversals_client_reference_information.rb} +1 -1
- data/lib/{cyberSource_client/models/v2paymentsidreversals_order_information.rb → cybersource_rest_client/models/ptsv2paymentsidreversals_order_information.rb} +2 -2
- data/lib/{cyberSource_client/models/v2paymentsidreversals_order_information_line_items.rb → cybersource_rest_client/models/ptsv2paymentsidreversals_order_information_line_items.rb} +1 -1
- data/lib/{cyberSource_client/models/v2paymentsidreversals_point_of_sale_information.rb → cybersource_rest_client/models/ptsv2paymentsidreversals_point_of_sale_information.rb} +1 -1
- data/lib/{cyberSource_client/models/v2paymentsidreversals_processing_information.rb → cybersource_rest_client/models/ptsv2paymentsidreversals_processing_information.rb} +2 -2
- data/lib/{cyberSource_client/models/v2paymentsidreversals_reversal_information.rb → cybersource_rest_client/models/ptsv2paymentsidreversals_reversal_information.rb} +8 -5
- data/lib/{cyberSource_client/models/v2paymentsidreversals_reversal_information_amount_details.rb → cybersource_rest_client/models/ptsv2paymentsidreversals_reversal_information_amount_details.rb} +1 -1
- data/lib/{cyberSource_client/models/v2payouts_merchant_information.rb → cybersource_rest_client/models/ptsv2payouts_merchant_information.rb} +2 -2
- data/lib/{cyberSource_client/models/v2payouts_merchant_information_merchant_descriptor.rb → cybersource_rest_client/models/ptsv2payouts_merchant_information_merchant_descriptor.rb} +1 -1
- data/lib/{cyberSource_client/models/v2payouts_order_information.rb → cybersource_rest_client/models/ptsv2payouts_order_information.rb} +3 -3
- data/lib/{cyberSource_client/models/v2payouts_order_information_amount_details.rb → cybersource_rest_client/models/ptsv2payouts_order_information_amount_details.rb} +8 -24
- data/lib/cybersource_rest_client/models/ptsv2payouts_order_information_amount_details_surcharge.rb +199 -0
- data/lib/{cyberSource_client/models/v2payouts_order_information_bill_to.rb → cybersource_rest_client/models/ptsv2payouts_order_information_bill_to.rb} +5 -5
- data/lib/{cyberSource_client/models/v2payouts_payment_information.rb → cybersource_rest_client/models/ptsv2payouts_payment_information.rb} +2 -2
- data/lib/{cyberSource_client/models/v2payouts_payment_information_card.rb → cybersource_rest_client/models/ptsv2payouts_payment_information_card.rb} +4 -4
- data/lib/{cyberSource_client/models/v2payouts_processing_information.rb → cybersource_rest_client/models/ptsv2payouts_processing_information.rb} +3 -3
- data/lib/{cyberSource_client/models/v2payouts_processing_information_payouts_options.rb → cybersource_rest_client/models/ptsv2payouts_processing_information_payouts_options.rb} +1 -1
- data/lib/{cyberSource_client/models/v2payouts_recipient_information.rb → cybersource_rest_client/models/ptsv2payouts_recipient_information.rb} +1 -1
- data/lib/{cyberSource_client/models/v2payouts_sender_information.rb → cybersource_rest_client/models/ptsv2payouts_sender_information.rb} +6 -6
- data/lib/{cyberSource_client/models/v2payouts_sender_information_account.rb → cybersource_rest_client/models/ptsv2payouts_sender_information_account.rb} +2 -2
- data/lib/{cyberSource_client → cybersource_rest_client}/models/refund_capture_request.rb +11 -11
- data/lib/{cyberSource_client → cybersource_rest_client}/models/refund_payment_request.rb +11 -11
- data/lib/cybersource_rest_client/models/request_body.rb +463 -0
- data/lib/cybersource_rest_client/models/request_body_1.rb +415 -0
- data/lib/{cyberSource_client → cybersource_rest_client}/models/response_status.rb +0 -0
- data/lib/{cyberSource_client → cybersource_rest_client}/models/response_status_details.rb +0 -0
- data/lib/{cyberSource_client/models/instrumentidentifiers__links.rb → cybersource_rest_client/models/tmsv1instrumentidentifiers__links.rb} +4 -4
- data/lib/{cyberSource_client/models/instrumentidentifiers__links_self.rb → cybersource_rest_client/models/tmsv1instrumentidentifiers__links_self.rb} +1 -1
- data/lib/{cyberSource_client/models/instrumentidentifiers_authorization_options_merchant_initiated_transaction.rb → cybersource_rest_client/models/tmsv1instrumentidentifiers_authorization_options_merchant_initiated_transaction.rb} +1 -1
- data/lib/{cyberSource_client/models/instrumentidentifiers_bank_account.rb → cybersource_rest_client/models/tmsv1instrumentidentifiers_bank_account.rb} +1 -1
- data/lib/{cyberSource_client/models/instrumentidentifiers_card.rb → cybersource_rest_client/models/tmsv1instrumentidentifiers_card.rb} +1 -1
- data/lib/{cyberSource_client/models/instrumentidentifiers_details.rb → cybersource_rest_client/models/tmsv1instrumentidentifiers_details.rb} +1 -1
- data/lib/{cyberSource_client/models/instrumentidentifiers_metadata.rb → cybersource_rest_client/models/tmsv1instrumentidentifiers_metadata.rb} +1 -1
- data/lib/{cyberSource_client/models/instrumentidentifiers_processing_information.rb → cybersource_rest_client/models/tmsv1instrumentidentifiers_processing_information.rb} +2 -2
- data/lib/{cyberSource_client/models/instrumentidentifiers_processing_information_authorization_options.rb → cybersource_rest_client/models/tmsv1instrumentidentifiers_processing_information_authorization_options.rb} +2 -2
- data/lib/{cyberSource_client/models/instrumentidentifiers_processing_information_authorization_options_initiator.rb → cybersource_rest_client/models/tmsv1instrumentidentifiers_processing_information_authorization_options_initiator.rb} +2 -2
- data/lib/{cyberSource_client/models/paymentinstruments_bank_account.rb → cybersource_rest_client/models/tmsv1paymentinstruments_bank_account.rb} +1 -1
- data/lib/{cyberSource_client/models/paymentinstruments_bill_to.rb → cybersource_rest_client/models/tmsv1paymentinstruments_bill_to.rb} +1 -1
- data/lib/{cyberSource_client/models/paymentinstruments_buyer_information.rb → cybersource_rest_client/models/tmsv1paymentinstruments_buyer_information.rb} +2 -2
- data/lib/{cyberSource_client/models/paymentinstruments_buyer_information_issued_by.rb → cybersource_rest_client/models/tmsv1paymentinstruments_buyer_information_issued_by.rb} +1 -1
- data/lib/{cyberSource_client/models/paymentinstruments_buyer_information_personal_identification.rb → cybersource_rest_client/models/tmsv1paymentinstruments_buyer_information_personal_identification.rb} +2 -2
- data/lib/{cyberSource_client/models/paymentinstruments_card.rb → cybersource_rest_client/models/tmsv1paymentinstruments_card.rb} +1 -1
- data/lib/{cyberSource_client/models/paymentinstruments_instrument_identifier.rb → cybersource_rest_client/models/tmsv1paymentinstruments_instrument_identifier.rb} +6 -6
- data/lib/cybersource_rest_client/models/tmsv1paymentinstruments_merchant_information.rb +183 -0
- data/lib/{cyberSource_client/models/paymentinstruments_merchant_information_merchant_descriptor.rb → cybersource_rest_client/models/tmsv1paymentinstruments_merchant_information_merchant_descriptor.rb} +1 -1
- data/lib/{cyberSource_client/models/paymentinstruments_processing_information.rb → cybersource_rest_client/models/tmsv1paymentinstruments_processing_information.rb} +2 -2
- data/lib/{cyberSource_client/models/paymentinstruments_processing_information_bank_transfer_options.rb → cybersource_rest_client/models/tmsv1paymentinstruments_processing_information_bank_transfer_options.rb} +1 -1
- data/lib/{cyberSource_client → cybersource_rest_client}/models/tokenize_parameters.rb +1 -1
- data/lib/{cyberSource_client → cybersource_rest_client}/models/tokenize_request.rb +1 -1
- data/lib/{cyberSource_client → cybersource_rest_client}/models/tokenize_result.rb +0 -0
- data/lib/{cyberSource_client → cybersource_rest_client}/models/void_capture_request.rb +1 -1
- data/lib/{cyberSource_client → cybersource_rest_client}/models/void_credit_request.rb +1 -1
- data/lib/{cyberSource_client → cybersource_rest_client}/models/void_payment_request.rb +1 -1
- data/lib/{cyberSource_client → cybersource_rest_client}/models/void_refund_request.rb +1 -1
- data/lib/{cyberSource_client → cybersource_rest_client}/version.rb +0 -0
- data/lib/cybersource_rest_client.rb +369 -0
- metadata +338 -255
- data/lib/cyberSource_client/api/payment_api.rb +0 -127
- data/lib/cyberSource_client/api/payment_instrument_api.rb +0 -312
- data/lib/cyberSource_client/models/inline_response_200_2_buyer_information.rb +0 -270
- data/lib/cyberSource_client/models/inline_response_200_2_merchant_information.rb +0 -233
- data/lib/cyberSource_client/models/inline_response_200_2_order_information_amount_details.rb +0 -385
- data/lib/cyberSource_client/models/inline_response_200_2_order_information_invoice_details.rb +0 -315
- data/lib/cyberSource_client/models/inline_response_200_3.rb +0 -314
- data/lib/cyberSource_client/models/inline_response_200_4_order_information_amount_details.rb +0 -360
- data/lib/cyberSource_client/models/inline_response_200_4_order_information_invoice_details.rb +0 -305
- data/lib/cyberSource_client/models/inline_response_200_4_processing_information_authorization_options.rb +0 -199
- data/lib/cyberSource_client/models/inline_response_200_6.rb +0 -305
- data/lib/cyberSource_client.rb +0 -286
@@ -13,112 +13,143 @@ Swagger Codegen version: 2.2.3
|
|
13
13
|
require 'uri'
|
14
14
|
|
15
15
|
module CyberSource
|
16
|
-
class
|
16
|
+
class PaymentInstrumentsApi
|
17
17
|
attr_accessor :api_client
|
18
18
|
|
19
|
-
def initialize(api_client = ApiClient.default)
|
19
|
+
def initialize(api_client = ApiClient.default, config)
|
20
20
|
@api_client = api_client
|
21
|
+
@api_client.set_configuration(config)
|
21
22
|
end
|
22
|
-
#
|
23
|
+
# Retrieve all Payment Instruments associated with an Instrument Identifier
|
23
24
|
# @param profile_id The id of a profile containing user specific TMS configuration.
|
25
|
+
# @param token_id The TokenId of an Instrument Identifier.
|
24
26
|
# @param [Hash] opts the optional parameters
|
25
|
-
# @option opts [
|
26
|
-
# @
|
27
|
-
|
28
|
-
|
27
|
+
# @option opts [String] :offset Starting Payment Instrument record in zero-based dataset that should be returned as the first object in the array. Default is 0.
|
28
|
+
# @option opts [String] :limit The maximum number of Payment Instruments that can be returned in the array starting from the offset record in zero-based dataset. Default is 20, maximum is 100. (default to 20)
|
29
|
+
# @return [InlineResponse20011]
|
30
|
+
def tms_v1_instrumentidentifiers_token_id_paymentinstruments_get(profile_id, token_id, opts = {})
|
31
|
+
data, _status_code, _headers = tms_v1_instrumentidentifiers_token_id_paymentinstruments_get_with_http_info(profile_id, token_id, opts)
|
29
32
|
return data, _status_code, _headers
|
30
33
|
end
|
31
34
|
|
32
|
-
#
|
35
|
+
# Retrieve all Payment Instruments associated with an Instrument Identifier
|
33
36
|
# @param profile_id The id of a profile containing user specific TMS configuration.
|
37
|
+
# @param token_id The TokenId of an Instrument Identifier.
|
34
38
|
# @param [Hash] opts the optional parameters
|
35
|
-
# @option opts [
|
36
|
-
# @
|
37
|
-
|
39
|
+
# @option opts [String] :offset Starting Payment Instrument record in zero-based dataset that should be returned as the first object in the array. Default is 0.
|
40
|
+
# @option opts [String] :limit The maximum number of Payment Instruments that can be returned in the array starting from the offset record in zero-based dataset. Default is 20, maximum is 100.
|
41
|
+
# @return [Array<(InlineResponse20011, Fixnum, Hash)>] InlineResponse20011 data, response status code and response headers
|
42
|
+
def tms_v1_instrumentidentifiers_token_id_paymentinstruments_get_with_http_info(profile_id, token_id, opts = {})
|
38
43
|
if @api_client.config.debugging
|
39
|
-
@api_client.config.logger.debug 'Calling API:
|
44
|
+
@api_client.config.logger.debug 'Calling API: PaymentInstrumentsApi.tms_v1_instrumentidentifiers_token_id_paymentinstruments_get ...'
|
40
45
|
end
|
41
46
|
# verify the required parameter 'profile_id' is set
|
42
47
|
if @api_client.config.client_side_validation && profile_id.nil?
|
43
|
-
fail ArgumentError, "Missing the required parameter 'profile_id' when calling
|
48
|
+
fail ArgumentError, "Missing the required parameter 'profile_id' when calling PaymentInstrumentsApi.tms_v1_instrumentidentifiers_token_id_paymentinstruments_get"
|
44
49
|
end
|
45
50
|
# if @api_client.config.client_side_validation && profile_id > 36
|
46
|
-
# fail ArgumentError, 'invalid value for "profile_id" when calling
|
51
|
+
# fail ArgumentError, 'invalid value for "profile_id" when calling PaymentInstrumentsApi.tms_v1_instrumentidentifiers_token_id_paymentinstruments_get, must be smaller than or equal to 36.'
|
47
52
|
# end
|
48
53
|
|
49
54
|
# if @api_client.config.client_side_validation && profile_id < 36
|
50
|
-
# fail ArgumentError, 'invalid value for "profile_id" when calling
|
55
|
+
# fail ArgumentError, 'invalid value for "profile_id" when calling PaymentInstrumentsApi.tms_v1_instrumentidentifiers_token_id_paymentinstruments_get, must be greater than or equal to 36.'
|
51
56
|
# end
|
52
57
|
|
58
|
+
# # verify the required parameter 'token_id' is set
|
59
|
+
# if @api_client.config.client_side_validation && token_id.nil?
|
60
|
+
# fail ArgumentError, "Missing the required parameter 'token_id' when calling PaymentInstrumentsApi.tms_v1_instrumentidentifiers_token_id_paymentinstruments_get"
|
61
|
+
# end
|
62
|
+
# if @api_client.config.client_side_validation && token_id > 32
|
63
|
+
# fail ArgumentError, 'invalid value for "token_id" when calling PaymentInstrumentsApi.tms_v1_instrumentidentifiers_token_id_paymentinstruments_get, must be smaller than or equal to 32.'
|
64
|
+
# end
|
65
|
+
|
66
|
+
# if @api_client.config.client_side_validation && token_id < 16
|
67
|
+
# fail ArgumentError, 'invalid value for "token_id" when calling PaymentInstrumentsApi.tms_v1_instrumentidentifiers_token_id_paymentinstruments_get, must be greater than or equal to 16.'
|
68
|
+
# end
|
69
|
+
|
70
|
+
if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0
|
71
|
+
fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling PaymentInstrumentsApi.tms_v1_instrumentidentifiers_token_id_paymentinstruments_get, must be greater than or equal to 0.'
|
72
|
+
end
|
73
|
+
|
74
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 100
|
75
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling PaymentInstrumentsApi.tms_v1_instrumentidentifiers_token_id_paymentinstruments_get, must be smaller than or equal to 100.'
|
76
|
+
end
|
77
|
+
|
78
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
79
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling PaymentInstrumentsApi.tms_v1_instrumentidentifiers_token_id_paymentinstruments_get, must be greater than or equal to 1.'
|
80
|
+
end
|
81
|
+
|
53
82
|
# resource path
|
54
|
-
local_var_path = 'tms/v1/instrumentidentifiers'
|
83
|
+
local_var_path = 'tms/v1/instrumentidentifiers/{tokenId}/paymentinstruments'.sub('{' + 'tokenId' + '}', token_id.to_s)
|
55
84
|
|
56
85
|
# query parameters
|
57
86
|
query_params = {}
|
87
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
88
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
58
89
|
|
59
90
|
# header parameters
|
60
91
|
header_params = {}
|
61
92
|
# HTTP header 'Accept' (if needed)
|
62
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
93
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json;charset=utf-8'])
|
94
|
+
# HTTP header 'Content-Type'
|
95
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json;charset=utf-8'])
|
63
96
|
header_params[:'profile-id'] = profile_id
|
64
97
|
|
65
98
|
# form parameters
|
66
99
|
form_params = {}
|
67
100
|
|
68
101
|
# http body (model)
|
69
|
-
post_body =
|
102
|
+
post_body = nil
|
70
103
|
auth_names = []
|
71
|
-
data, status_code, headers = @api_client.call_api(:
|
104
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
72
105
|
:header_params => header_params,
|
73
106
|
:query_params => query_params,
|
74
107
|
:form_params => form_params,
|
75
108
|
:body => post_body,
|
76
109
|
:auth_names => auth_names,
|
77
|
-
:return_type => '
|
110
|
+
:return_type => 'InlineResponse20011')
|
78
111
|
if @api_client.config.debugging
|
79
|
-
@api_client.config.logger.debug "API called:
|
112
|
+
@api_client.config.logger.debug "API called: PaymentInstrumentsApi#tms_v1_instrumentidentifiers_token_id_paymentinstruments_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
80
113
|
end
|
81
114
|
return data, status_code, headers
|
82
115
|
end
|
83
|
-
#
|
116
|
+
# Create a Payment Instrument
|
84
117
|
# @param profile_id The id of a profile containing user specific TMS configuration.
|
85
|
-
# @param
|
118
|
+
# @param body Please specify the customers payment details for card or bank account.
|
86
119
|
# @param [Hash] opts the optional parameters
|
87
|
-
# @return [
|
88
|
-
def
|
89
|
-
data, _status_code, _headers =
|
120
|
+
# @return [InlineResponse2016]
|
121
|
+
def tms_v1_paymentinstruments_post(profile_id, body, opts = {})
|
122
|
+
data, _status_code, _headers = tms_v1_paymentinstruments_post_with_http_info(profile_id, body, opts)
|
90
123
|
return data, _status_code, _headers
|
91
124
|
end
|
92
125
|
|
93
|
-
#
|
126
|
+
# Create a Payment Instrument
|
94
127
|
# @param profile_id The id of a profile containing user specific TMS configuration.
|
95
|
-
# @param
|
128
|
+
# @param body Please specify the customers payment details for card or bank account.
|
96
129
|
# @param [Hash] opts the optional parameters
|
97
|
-
# @return [Array<(
|
98
|
-
def
|
130
|
+
# @return [Array<(InlineResponse2016, Fixnum, Hash)>] InlineResponse2016 data, response status code and response headers
|
131
|
+
def tms_v1_paymentinstruments_post_with_http_info(profile_id, body, opts = {})
|
99
132
|
if @api_client.config.debugging
|
100
|
-
@api_client.config.logger.debug 'Calling API:
|
133
|
+
@api_client.config.logger.debug 'Calling API: PaymentInstrumentsApi.tms_v1_paymentinstruments_post ...'
|
101
134
|
end
|
102
135
|
# verify the required parameter 'profile_id' is set
|
103
136
|
if @api_client.config.client_side_validation && profile_id.nil?
|
104
|
-
fail ArgumentError, "Missing the required parameter 'profile_id' when calling
|
137
|
+
fail ArgumentError, "Missing the required parameter 'profile_id' when calling PaymentInstrumentsApi.tms_v1_paymentinstruments_post"
|
105
138
|
end
|
106
|
-
#
|
107
|
-
|
108
|
-
# verify the required parameter 'token_id' is set
|
109
|
-
if @api_client.config.client_side_validation && token_id.nil?
|
110
|
-
fail ArgumentError, "Missing the required parameter 'token_id' when calling InstrumentIdentifierApi.instrumentidentifiers_token_id_delete"
|
111
|
-
end
|
112
|
-
# if @api_client.config.client_side_validation && token_id > 32
|
113
|
-
# fail ArgumentError, 'invalid value for "token_id" when calling InstrumentIdentifierApi.instrumentidentifiers_token_id_delete, must be smaller than or equal to 32.'
|
139
|
+
# if @api_client.config.client_side_validation && profile_id > 36
|
140
|
+
# fail ArgumentError, 'invalid value for "profile_id" when calling PaymentInstrumentsApi.tms_v1_paymentinstruments_post, must be smaller than or equal to 36.'
|
114
141
|
# end
|
115
142
|
|
116
|
-
# if @api_client.config.client_side_validation &&
|
117
|
-
# fail ArgumentError, 'invalid value for "
|
143
|
+
# if @api_client.config.client_side_validation && profile_id < 36
|
144
|
+
# fail ArgumentError, 'invalid value for "profile_id" when calling PaymentInstrumentsApi.tms_v1_paymentinstruments_post, must be greater than or equal to 36.'
|
118
145
|
# end
|
119
146
|
|
147
|
+
# verify the required parameter 'body' is set
|
148
|
+
if @api_client.config.client_side_validation && body.nil?
|
149
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling PaymentInstrumentsApi.tms_v1_paymentinstruments_post"
|
150
|
+
end
|
120
151
|
# resource path
|
121
|
-
local_var_path = 'tms/v1/
|
152
|
+
local_var_path = 'tms/v1/paymentinstruments'
|
122
153
|
|
123
154
|
# query parameters
|
124
155
|
query_params = {}
|
@@ -126,71 +157,74 @@ module CyberSource
|
|
126
157
|
# header parameters
|
127
158
|
header_params = {}
|
128
159
|
# HTTP header 'Accept' (if needed)
|
129
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
160
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json;charset=utf-8'])
|
161
|
+
# HTTP header 'Content-Type'
|
162
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json;charset=utf-8'])
|
130
163
|
header_params[:'profile-id'] = profile_id
|
131
164
|
|
132
165
|
# form parameters
|
133
166
|
form_params = {}
|
134
167
|
|
135
168
|
# http body (model)
|
136
|
-
post_body =
|
169
|
+
post_body = @api_client.object_to_http_body(body)
|
137
170
|
auth_names = []
|
138
|
-
data, status_code, headers = @api_client.call_api(:
|
171
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
139
172
|
:header_params => header_params,
|
140
173
|
:query_params => query_params,
|
141
174
|
:form_params => form_params,
|
142
175
|
:body => post_body,
|
143
|
-
:auth_names => auth_names
|
176
|
+
:auth_names => auth_names,
|
177
|
+
:return_type => 'InlineResponse2016')
|
144
178
|
if @api_client.config.debugging
|
145
|
-
@api_client.config.logger.debug "API called:
|
179
|
+
@api_client.config.logger.debug "API called: PaymentInstrumentsApi#tms_v1_paymentinstruments_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
146
180
|
end
|
147
181
|
return data, status_code, headers
|
148
182
|
end
|
149
|
-
#
|
183
|
+
# Delete a Payment Instrument
|
150
184
|
# @param profile_id The id of a profile containing user specific TMS configuration.
|
151
|
-
# @param token_id The TokenId of
|
185
|
+
# @param token_id The TokenId of a Payment Instrument.
|
152
186
|
# @param [Hash] opts the optional parameters
|
153
|
-
# @return [
|
154
|
-
def
|
155
|
-
data, _status_code, _headers =
|
187
|
+
# @return [nil]
|
188
|
+
def tms_v1_paymentinstruments_token_id_delete(profile_id, token_id, opts = {})
|
189
|
+
data, _status_code, _headers = tms_v1_paymentinstruments_token_id_delete_with_http_info(profile_id, token_id, opts)
|
156
190
|
return data, _status_code, _headers
|
157
191
|
end
|
158
192
|
|
159
|
-
#
|
193
|
+
# Delete a Payment Instrument
|
160
194
|
# @param profile_id The id of a profile containing user specific TMS configuration.
|
161
|
-
# @param token_id The TokenId of
|
195
|
+
# @param token_id The TokenId of a Payment Instrument.
|
162
196
|
# @param [Hash] opts the optional parameters
|
163
|
-
# @return [Array<(
|
164
|
-
def
|
197
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
198
|
+
def tms_v1_paymentinstruments_token_id_delete_with_http_info(profile_id, token_id, opts = {})
|
165
199
|
if @api_client.config.debugging
|
166
|
-
@api_client.config.logger.debug 'Calling API:
|
200
|
+
@api_client.config.logger.debug 'Calling API: PaymentInstrumentsApi.tms_v1_paymentinstruments_token_id_delete ...'
|
167
201
|
end
|
168
202
|
# verify the required parameter 'profile_id' is set
|
169
203
|
if @api_client.config.client_side_validation && profile_id.nil?
|
170
|
-
fail ArgumentError, "Missing the required parameter 'profile_id' when calling
|
204
|
+
fail ArgumentError, "Missing the required parameter 'profile_id' when calling PaymentInstrumentsApi.tms_v1_paymentinstruments_token_id_delete"
|
171
205
|
end
|
172
|
-
# if @api_client.config.client_side_validation && profile_id >
|
173
|
-
# fail ArgumentError, 'invalid value for "profile_id" when calling
|
206
|
+
# if @api_client.config.client_side_validation && profile_id > 36
|
207
|
+
# fail ArgumentError, 'invalid value for "profile_id" when calling PaymentInstrumentsApi.tms_v1_paymentinstruments_token_id_delete, must be smaller than or equal to 36.'
|
174
208
|
# end
|
175
209
|
|
176
|
-
# if @api_client.config.client_side_validation && profile_id <
|
177
|
-
# fail ArgumentError, 'invalid value for "profile_id" when calling
|
210
|
+
# if @api_client.config.client_side_validation && profile_id < 36
|
211
|
+
# fail ArgumentError, 'invalid value for "profile_id" when calling PaymentInstrumentsApi.tms_v1_paymentinstruments_token_id_delete, must be greater than or equal to 36.'
|
178
212
|
# end
|
179
213
|
|
180
|
-
#
|
181
|
-
|
182
|
-
|
183
|
-
|
214
|
+
# verify the required parameter 'token_id' is set
|
215
|
+
if @api_client.config.client_side_validation && token_id.nil?
|
216
|
+
fail ArgumentError, "Missing the required parameter 'token_id' when calling PaymentInstrumentsApi.tms_v1_paymentinstruments_token_id_delete"
|
217
|
+
end
|
184
218
|
# if @api_client.config.client_side_validation && token_id > 32
|
185
|
-
# fail ArgumentError, 'invalid value for "token_id" when calling
|
219
|
+
# fail ArgumentError, 'invalid value for "token_id" when calling PaymentInstrumentsApi.tms_v1_paymentinstruments_token_id_delete, must be smaller than or equal to 32.'
|
186
220
|
# end
|
187
221
|
|
188
222
|
# if @api_client.config.client_side_validation && token_id < 16
|
189
|
-
# fail ArgumentError, 'invalid value for "token_id" when calling
|
223
|
+
# fail ArgumentError, 'invalid value for "token_id" when calling PaymentInstrumentsApi.tms_v1_paymentinstruments_token_id_delete, must be greater than or equal to 16.'
|
190
224
|
# end
|
191
225
|
|
192
226
|
# resource path
|
193
|
-
local_var_path = 'tms/v1/
|
227
|
+
local_var_path = 'tms/v1/paymentinstruments/{tokenId}'.sub('{' + 'tokenId' + '}', token_id.to_s)
|
194
228
|
|
195
229
|
# query parameters
|
196
230
|
query_params = {}
|
@@ -198,7 +232,9 @@ module CyberSource
|
|
198
232
|
# header parameters
|
199
233
|
header_params = {}
|
200
234
|
# HTTP header 'Accept' (if needed)
|
201
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
235
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json;charset=utf-8'])
|
236
|
+
# HTTP header 'Content-Type'
|
237
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json;charset=utf-8'])
|
202
238
|
header_params[:'profile-id'] = profile_id
|
203
239
|
|
204
240
|
# form parameters
|
@@ -207,69 +243,62 @@ module CyberSource
|
|
207
243
|
# http body (model)
|
208
244
|
post_body = nil
|
209
245
|
auth_names = []
|
210
|
-
data, status_code, headers = @api_client.call_api(:
|
246
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
|
211
247
|
:header_params => header_params,
|
212
248
|
:query_params => query_params,
|
213
249
|
:form_params => form_params,
|
214
250
|
:body => post_body,
|
215
|
-
:auth_names => auth_names
|
216
|
-
:return_type => 'InlineResponse2007')
|
251
|
+
:auth_names => auth_names)
|
217
252
|
if @api_client.config.debugging
|
218
|
-
@api_client.config.logger.debug "API called:
|
253
|
+
@api_client.config.logger.debug "API called: PaymentInstrumentsApi#tms_v1_paymentinstruments_token_id_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
219
254
|
end
|
220
255
|
return data, status_code, headers
|
221
256
|
end
|
222
|
-
#
|
257
|
+
# Retrieve a Payment Instrument
|
223
258
|
# @param profile_id The id of a profile containing user specific TMS configuration.
|
224
|
-
# @param token_id The TokenId of
|
225
|
-
# @param body Please specify the previous transaction Id to update.
|
259
|
+
# @param token_id The TokenId of a Payment Instrument.
|
226
260
|
# @param [Hash] opts the optional parameters
|
227
|
-
# @return [
|
228
|
-
def
|
229
|
-
data, _status_code, _headers =
|
261
|
+
# @return [InlineResponse2016]
|
262
|
+
def tms_v1_paymentinstruments_token_id_get(profile_id, token_id, opts = {})
|
263
|
+
data, _status_code, _headers = tms_v1_paymentinstruments_token_id_get_with_http_info(profile_id, token_id, opts)
|
230
264
|
return data, _status_code, _headers
|
231
265
|
end
|
232
266
|
|
233
|
-
#
|
267
|
+
# Retrieve a Payment Instrument
|
234
268
|
# @param profile_id The id of a profile containing user specific TMS configuration.
|
235
|
-
# @param token_id The TokenId of
|
236
|
-
# @param body Please specify the previous transaction Id to update.
|
269
|
+
# @param token_id The TokenId of a Payment Instrument.
|
237
270
|
# @param [Hash] opts the optional parameters
|
238
|
-
# @return [Array<(
|
239
|
-
def
|
271
|
+
# @return [Array<(InlineResponse2016, Fixnum, Hash)>] InlineResponse2016 data, response status code and response headers
|
272
|
+
def tms_v1_paymentinstruments_token_id_get_with_http_info(profile_id, token_id, opts = {})
|
240
273
|
if @api_client.config.debugging
|
241
|
-
@api_client.config.logger.debug 'Calling API:
|
274
|
+
@api_client.config.logger.debug 'Calling API: PaymentInstrumentsApi.tms_v1_paymentinstruments_token_id_get ...'
|
242
275
|
end
|
243
276
|
# verify the required parameter 'profile_id' is set
|
244
277
|
if @api_client.config.client_side_validation && profile_id.nil?
|
245
|
-
fail ArgumentError, "Missing the required parameter 'profile_id' when calling
|
246
|
-
end
|
247
|
-
if @api_client.config.client_side_validation && profile_id > 36
|
248
|
-
fail ArgumentError, 'invalid value for "profile_id" when calling InstrumentIdentifierApi.instrumentidentifiers_token_id_patch, must be smaller than or equal to 36.'
|
278
|
+
fail ArgumentError, "Missing the required parameter 'profile_id' when calling PaymentInstrumentsApi.tms_v1_paymentinstruments_token_id_get"
|
249
279
|
end
|
280
|
+
# if @api_client.config.client_side_validation && profile_id > 36
|
281
|
+
# fail ArgumentError, 'invalid value for "profile_id" when calling PaymentInstrumentsApi.tms_v1_paymentinstruments_token_id_get, must be smaller than or equal to 36.'
|
282
|
+
# end
|
250
283
|
|
251
|
-
if @api_client.config.client_side_validation && profile_id < 36
|
252
|
-
|
253
|
-
end
|
284
|
+
# if @api_client.config.client_side_validation && profile_id < 36
|
285
|
+
# fail ArgumentError, 'invalid value for "profile_id" when calling PaymentInstrumentsApi.tms_v1_paymentinstruments_token_id_get, must be greater than or equal to 36.'
|
286
|
+
# end
|
254
287
|
|
255
288
|
# verify the required parameter 'token_id' is set
|
256
289
|
if @api_client.config.client_side_validation && token_id.nil?
|
257
|
-
fail ArgumentError, "Missing the required parameter 'token_id' when calling
|
258
|
-
end
|
259
|
-
if @api_client.config.client_side_validation && token_id > 32
|
260
|
-
fail ArgumentError, 'invalid value for "token_id" when calling InstrumentIdentifierApi.instrumentidentifiers_token_id_patch, must be smaller than or equal to 32.'
|
290
|
+
fail ArgumentError, "Missing the required parameter 'token_id' when calling PaymentInstrumentsApi.tms_v1_paymentinstruments_token_id_get"
|
261
291
|
end
|
292
|
+
# if @api_client.config.client_side_validation && token_id > 32
|
293
|
+
# fail ArgumentError, 'invalid value for "token_id" when calling PaymentInstrumentsApi.tms_v1_paymentinstruments_token_id_get, must be smaller than or equal to 32.'
|
294
|
+
# end
|
262
295
|
|
263
|
-
if @api_client.config.client_side_validation && token_id < 16
|
264
|
-
|
265
|
-
end
|
296
|
+
# if @api_client.config.client_side_validation && token_id < 16
|
297
|
+
# fail ArgumentError, 'invalid value for "token_id" when calling PaymentInstrumentsApi.tms_v1_paymentinstruments_token_id_get, must be greater than or equal to 16.'
|
298
|
+
# end
|
266
299
|
|
267
|
-
# verify the required parameter 'body' is set
|
268
|
-
if @api_client.config.client_side_validation && body.nil?
|
269
|
-
fail ArgumentError, "Missing the required parameter 'body' when calling InstrumentIdentifierApi.instrumentidentifiers_token_id_patch"
|
270
|
-
end
|
271
300
|
# resource path
|
272
|
-
local_var_path = '/
|
301
|
+
local_var_path = 'tms/v1/paymentinstruments/{tokenId}'.sub('{' + 'tokenId' + '}', token_id.to_s)
|
273
302
|
|
274
303
|
# query parameters
|
275
304
|
query_params = {}
|
@@ -277,115 +306,107 @@ module CyberSource
|
|
277
306
|
# header parameters
|
278
307
|
header_params = {}
|
279
308
|
# HTTP header 'Accept' (if needed)
|
280
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
309
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json;charset=utf-8'])
|
310
|
+
# HTTP header 'Content-Type'
|
311
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json;charset=utf-8'])
|
281
312
|
header_params[:'profile-id'] = profile_id
|
282
313
|
|
283
314
|
# form parameters
|
284
315
|
form_params = {}
|
285
316
|
|
286
317
|
# http body (model)
|
287
|
-
post_body =
|
318
|
+
post_body = nil
|
288
319
|
auth_names = []
|
289
|
-
data, status_code, headers = @api_client.call_api(:
|
320
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
290
321
|
:header_params => header_params,
|
291
322
|
:query_params => query_params,
|
292
323
|
:form_params => form_params,
|
293
324
|
:body => post_body,
|
294
325
|
:auth_names => auth_names,
|
295
|
-
:return_type => '
|
326
|
+
:return_type => 'InlineResponse2016')
|
296
327
|
if @api_client.config.debugging
|
297
|
-
@api_client.config.logger.debug "API called:
|
328
|
+
@api_client.config.logger.debug "API called: PaymentInstrumentsApi#tms_v1_paymentinstruments_token_id_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
298
329
|
end
|
299
330
|
return data, status_code, headers
|
300
331
|
end
|
301
|
-
#
|
332
|
+
# Update a Payment Instrument
|
302
333
|
# @param profile_id The id of a profile containing user specific TMS configuration.
|
303
|
-
# @param token_id The TokenId of
|
334
|
+
# @param token_id The TokenId of a Payment Instrument.
|
335
|
+
# @param body Please specify the customers payment details.
|
304
336
|
# @param [Hash] opts the optional parameters
|
305
|
-
# @
|
306
|
-
|
307
|
-
|
308
|
-
def instrumentidentifiers_token_id_paymentinstruments_get(profile_id, token_id, opts = {})
|
309
|
-
data, _status_code, _headers = instrumentidentifiers_token_id_paymentinstruments_get_with_http_info(profile_id, token_id, opts)
|
337
|
+
# @return [InlineResponse2016]
|
338
|
+
def tms_v1_paymentinstruments_token_id_patch(profile_id, token_id, body, opts = {})
|
339
|
+
data, _status_code, _headers = tms_v1_paymentinstruments_token_id_patch_with_http_info(profile_id, token_id, body, opts)
|
310
340
|
return data, _status_code, _headers
|
311
341
|
end
|
312
342
|
|
313
|
-
#
|
343
|
+
# Update a Payment Instrument
|
314
344
|
# @param profile_id The id of a profile containing user specific TMS configuration.
|
315
|
-
# @param token_id The TokenId of
|
345
|
+
# @param token_id The TokenId of a Payment Instrument.
|
346
|
+
# @param body Please specify the customers payment details.
|
316
347
|
# @param [Hash] opts the optional parameters
|
317
|
-
# @
|
318
|
-
|
319
|
-
# @return [Array<(InlineResponse2008, Fixnum, Hash)>] InlineResponse2008 data, response status code and response headers
|
320
|
-
def instrumentidentifiers_token_id_paymentinstruments_get_with_http_info(profile_id, token_id, opts = {})
|
348
|
+
# @return [Array<(InlineResponse2016, Fixnum, Hash)>] InlineResponse2016 data, response status code and response headers
|
349
|
+
def tms_v1_paymentinstruments_token_id_patch_with_http_info(profile_id, token_id, body, opts = {})
|
321
350
|
if @api_client.config.debugging
|
322
|
-
@api_client.config.logger.debug 'Calling API:
|
351
|
+
@api_client.config.logger.debug 'Calling API: PaymentInstrumentsApi.tms_v1_paymentinstruments_token_id_patch ...'
|
323
352
|
end
|
324
353
|
# verify the required parameter 'profile_id' is set
|
325
354
|
if @api_client.config.client_side_validation && profile_id.nil?
|
326
|
-
fail ArgumentError, "Missing the required parameter 'profile_id' when calling
|
355
|
+
fail ArgumentError, "Missing the required parameter 'profile_id' when calling PaymentInstrumentsApi.tms_v1_paymentinstruments_token_id_patch"
|
327
356
|
end
|
328
357
|
# if @api_client.config.client_side_validation && profile_id > 36
|
329
|
-
# fail ArgumentError, 'invalid value for "profile_id" when calling
|
358
|
+
# fail ArgumentError, 'invalid value for "profile_id" when calling PaymentInstrumentsApi.tms_v1_paymentinstruments_token_id_patch, must be smaller than or equal to 36.'
|
330
359
|
# end
|
331
360
|
|
332
361
|
# if @api_client.config.client_side_validation && profile_id < 36
|
333
|
-
# fail ArgumentError, 'invalid value for "profile_id" when calling
|
362
|
+
# fail ArgumentError, 'invalid value for "profile_id" when calling PaymentInstrumentsApi.tms_v1_paymentinstruments_token_id_patch, must be greater than or equal to 36.'
|
334
363
|
# end
|
335
364
|
|
336
365
|
# verify the required parameter 'token_id' is set
|
337
366
|
if @api_client.config.client_side_validation && token_id.nil?
|
338
|
-
fail ArgumentError, "Missing the required parameter 'token_id' when calling
|
367
|
+
fail ArgumentError, "Missing the required parameter 'token_id' when calling PaymentInstrumentsApi.tms_v1_paymentinstruments_token_id_patch"
|
339
368
|
end
|
340
369
|
# if @api_client.config.client_side_validation && token_id > 32
|
341
|
-
# fail ArgumentError, 'invalid value for "token_id" when calling
|
370
|
+
# fail ArgumentError, 'invalid value for "token_id" when calling PaymentInstrumentsApi.tms_v1_paymentinstruments_token_id_patch, must be smaller than or equal to 32.'
|
342
371
|
# end
|
343
372
|
|
344
373
|
# if @api_client.config.client_side_validation && token_id < 16
|
345
|
-
# fail ArgumentError, 'invalid value for "token_id" when calling
|
374
|
+
# fail ArgumentError, 'invalid value for "token_id" when calling PaymentInstrumentsApi.tms_v1_paymentinstruments_token_id_patch, must be greater than or equal to 16.'
|
346
375
|
# end
|
347
376
|
|
348
|
-
|
349
|
-
|
350
|
-
|
351
|
-
|
352
|
-
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 100
|
353
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling InstrumentIdentifierApi.instrumentidentifiers_token_id_paymentinstruments_get, must be smaller than or equal to 100.'
|
354
|
-
end
|
355
|
-
|
356
|
-
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
357
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling InstrumentIdentifierApi.instrumentidentifiers_token_id_paymentinstruments_get, must be greater than or equal to 1.'
|
377
|
+
# verify the required parameter 'body' is set
|
378
|
+
if @api_client.config.client_side_validation && body.nil?
|
379
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling PaymentInstrumentsApi.tms_v1_paymentinstruments_token_id_patch"
|
358
380
|
end
|
359
|
-
|
360
381
|
# resource path
|
361
|
-
local_var_path = 'tms/v1/
|
382
|
+
local_var_path = 'tms/v1/paymentinstruments/{tokenId}'.sub('{' + 'tokenId' + '}', token_id.to_s)
|
362
383
|
|
363
384
|
# query parameters
|
364
385
|
query_params = {}
|
365
|
-
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
366
|
-
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
367
386
|
|
368
387
|
# header parameters
|
369
388
|
header_params = {}
|
370
389
|
# HTTP header 'Accept' (if needed)
|
371
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
390
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json;charset=utf-8'])
|
391
|
+
# HTTP header 'Content-Type'
|
392
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json;charset=utf-8'])
|
372
393
|
header_params[:'profile-id'] = profile_id
|
373
394
|
|
374
395
|
# form parameters
|
375
396
|
form_params = {}
|
376
397
|
|
377
398
|
# http body (model)
|
378
|
-
post_body =
|
399
|
+
post_body = @api_client.object_to_http_body(body)
|
379
400
|
auth_names = []
|
380
|
-
data, status_code, headers = @api_client.call_api(:
|
401
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
|
381
402
|
:header_params => header_params,
|
382
403
|
:query_params => query_params,
|
383
404
|
:form_params => form_params,
|
384
405
|
:body => post_body,
|
385
406
|
:auth_names => auth_names,
|
386
|
-
:return_type => '
|
407
|
+
:return_type => 'InlineResponse2016')
|
387
408
|
if @api_client.config.debugging
|
388
|
-
@api_client.config.logger.debug "API called:
|
409
|
+
@api_client.config.logger.debug "API called: PaymentInstrumentsApi#tms_v1_paymentinstruments_token_id_patch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
389
410
|
end
|
390
411
|
return data, status_code, headers
|
391
412
|
end
|