cybersource_rest_client 0.0.83 → 0.0.84
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/AuthenticationSDK/authentication/jwt/JwtToken.rb +46 -27
- data/lib/AuthenticationSDK/core/MerchantConfig.rb +82 -48
- data/lib/AuthenticationSDK/util/Cache.rb +7 -4
- data/lib/AuthenticationSDK/util/Constants.rb +6 -0
- data/lib/AuthenticationSDK/util/MLEUtility.rb +9 -0
- data/lib/cybersource_rest_client/api/batches_api.rb +1 -1
- data/lib/cybersource_rest_client/api/create_new_webhooks_api.rb +14 -22
- data/lib/cybersource_rest_client/api/credentials_api.rb +104 -0
- data/lib/cybersource_rest_client/api/customer_payment_instrument_api.rb +3 -3
- data/lib/cybersource_rest_client/api/enrollment_api.rb +2 -2
- data/lib/cybersource_rest_client/api/instructions_api.rb +10 -10
- data/lib/cybersource_rest_client/api/instrument_identifier_api.rb +3 -3
- data/lib/cybersource_rest_client/api/manage_webhooks_api.rb +20 -28
- data/lib/cybersource_rest_client/api/network_tokens_api.rb +654 -0
- data/lib/cybersource_rest_client/api/plans_api.rb +1 -1
- data/lib/cybersource_rest_client/api/subscriptions_api.rb +183 -1
- data/lib/cybersource_rest_client/api/subscriptions_follow_ons_api.rb +1 -1
- data/lib/cybersource_rest_client/api_client.rb +4 -0
- data/lib/cybersource_rest_client/models/account_validations_request.rb +15 -5
- data/lib/cybersource_rest_client/models/acpv1instructions_decline_threshold.rb +1 -1
- data/lib/cybersource_rest_client/models/acpv1instructions_mandates.rb +1 -1
- data/lib/cybersource_rest_client/models/acpv1instructions_recurring_payment_information.rb +1 -1
- data/lib/cybersource_rest_client/models/acpv1instructionsinstruction_idconfirmations_processor_information.rb +1 -1
- data/lib/cybersource_rest_client/models/acpv1instructionsinstruction_idconfirmations_processor_information_payment_instrument.rb +1 -1
- data/lib/cybersource_rest_client/models/acpv1instructionsinstruction_idcredentials_order_information_amount_detail.rb +1 -1
- data/lib/cybersource_rest_client/models/acpv1mppcredentials_challenge.rb +369 -0
- data/lib/cybersource_rest_client/models/acpv1mppcredentials_challenge_encryption_jwk.rb +336 -0
- data/lib/cybersource_rest_client/models/acpv1tokens_assurance_data.rb +7 -7
- data/lib/cybersource_rest_client/models/acpv1tokens_authenticated_identities.rb +1 -1
- data/lib/cybersource_rest_client/models/acpv1tokens_authentication_context.rb +1 -1
- data/lib/cybersource_rest_client/models/acpv1tokens_bill_to.rb +1 -1
- data/lib/cybersource_rest_client/models/acpv1tokens_buyer_information.rb +1 -1
- data/lib/cybersource_rest_client/models/acpv1tokens_consumer_identity.rb +1 -1
- data/lib/cybersource_rest_client/models/acpv1tokens_device_information.rb +1 -1
- data/lib/cybersource_rest_client/models/acpv1tokens_enrollment_reference_data.rb +1 -1
- data/lib/cybersource_rest_client/models/acpv1tokens_payment_information.rb +1 -1
- data/lib/cybersource_rest_client/models/auth_reversal_request.rb +11 -1
- data/lib/cybersource_rest_client/models/bavsv1accountvalidations_payment_information.rb +32 -6
- data/lib/cybersource_rest_client/models/bavsv1accountvalidations_payment_information_bank.rb +1 -1
- data/lib/cybersource_rest_client/models/bavsv1accountvalidations_payment_information_bank_account.rb +1 -1
- data/lib/cybersource_rest_client/models/bavsv1accountvalidations_payment_information_customer.rb +196 -0
- data/lib/cybersource_rest_client/models/bavsv1accountvalidations_payment_information_instrument_identifier.rb +196 -0
- data/lib/cybersource_rest_client/models/bavsv1accountvalidations_payment_information_payment_instrument.rb +196 -0
- data/lib/cybersource_rest_client/models/bavsv1accountvalidations_token_information.rb +208 -0
- data/lib/cybersource_rest_client/models/card_processing_config_common_processors.rb +105 -1
- data/lib/cybersource_rest_client/models/commerce_solutions_products.rb +15 -5
- data/lib/cybersource_rest_client/models/create_credit_request.rb +15 -5
- data/lib/cybersource_rest_client/models/get_all_subscriptions_response_order_information_amount_details_surcharge.rb +22 -5
- data/lib/cybersource_rest_client/models/get_subscriptions_payments_response.rb +247 -0
- data/lib/cybersource_rest_client/models/get_subscriptions_payments_response_1.rb +224 -0
- data/lib/cybersource_rest_client/models/{pbl_payment_links_post201_response__links.rb → get_subscriptions_payments_response_1__links.rb} +1 -1
- data/lib/cybersource_rest_client/models/get_subscriptions_payments_response__links.rb +209 -0
- data/lib/cybersource_rest_client/models/get_subscriptions_payments_response_cycles_completed_count.rb +191 -0
- data/lib/cybersource_rest_client/models/get_subscriptions_payments_response_subscription_payment.rb +356 -0
- data/lib/cybersource_rest_client/models/inline_response_201_1_tokenized_card.rb +26 -5
- data/lib/cybersource_rest_client/models/inline_response_201_4_setups_commerce_solutions.rb +15 -5
- data/lib/cybersource_rest_client/models/inline_response_201_4_setups_payments.rb +25 -5
- data/lib/cybersource_rest_client/models/inline_response_201_4_setups_risk.rb +15 -5
- data/lib/cybersource_rest_client/models/inline_response_201_4_setups_value_added_services.rb +25 -5
- data/lib/cybersource_rest_client/models/inline_response_400_10.rb +30 -75
- data/lib/cybersource_rest_client/models/{inline_response_400_8_details.rb → inline_response_400_10_details.rb} +1 -1
- data/lib/cybersource_rest_client/models/inline_response_400_11.rb +235 -0
- data/lib/cybersource_rest_client/models/{inline_response_400_7_details.rb → inline_response_400_11_details.rb} +3 -3
- data/lib/cybersource_rest_client/models/inline_response_400_12.rb +281 -0
- data/lib/cybersource_rest_client/models/inline_response_400_6.rb +37 -60
- data/lib/cybersource_rest_client/models/inline_response_400_7.rb +6 -6
- data/lib/cybersource_rest_client/models/inline_response_400_8.rb +58 -36
- data/lib/cybersource_rest_client/models/{inline_response_400_6_fields.rb → inline_response_400_8_fields.rb} +1 -1
- data/lib/cybersource_rest_client/models/inline_response_400_9.rb +16 -16
- data/lib/cybersource_rest_client/models/inline_response_400_9_details.rb +2 -2
- data/lib/cybersource_rest_client/models/inline_response_404_3.rb +1 -1
- data/lib/cybersource_rest_client/models/inline_response_422_1.rb +1 -1
- data/lib/cybersource_rest_client/models/iplv2paymentlinks_order_information_line_items.rb +73 -5
- data/lib/cybersource_rest_client/models/mit_reversal_request.rb +11 -1
- data/lib/cybersource_rest_client/models/mpp_credentials_request.rb +221 -0
- data/lib/cybersource_rest_client/models/mpp_credentials_response200.rb +338 -0
- data/lib/cybersource_rest_client/models/patch_customer_payment_instrument_request.rb +1 -1
- data/lib/cybersource_rest_client/models/patch_customer_request.rb +1 -1
- data/lib/cybersource_rest_client/models/patch_payment_instrument_request.rb +1 -1
- data/lib/cybersource_rest_client/models/payment_instrument_list_1__embedded.rb +1 -1
- data/lib/cybersource_rest_client/models/payment_instrument_list__embedded.rb +1 -1
- data/lib/cybersource_rest_client/models/{payment_instrument_list_1__embedded__embedded.rb → payment_instrument_list__embedded__embedded.rb} +1 -1
- data/lib/cybersource_rest_client/models/{payment_instrument_list_1__embedded_payment_instruments.rb → payment_instrument_list__embedded_payment_instruments.rb} +2 -2
- data/lib/cybersource_rest_client/models/payments_products.rb +25 -5
- data/lib/cybersource_rest_client/models/payments_products_currency_conversion_configuration_information_configurations_processors.rb +14 -2
- data/lib/cybersource_rest_client/models/payments_products_microform.rb +199 -0
- data/lib/cybersource_rest_client/models/payments_products_microform_configuration_information.rb +199 -0
- data/lib/cybersource_rest_client/models/payments_products_microform_configuration_information_configurations.rb +189 -0
- data/lib/cybersource_rest_client/models/payments_products_microform_configuration_information_configurations_features.rb +189 -0
- data/lib/cybersource_rest_client/models/payments_products_microform_configuration_information_configurations_features_gateway_agnostic.rb +189 -0
- data/lib/cybersource_rest_client/models/payments_products_microform_subscription_information.rb +227 -0
- data/lib/cybersource_rest_client/models/pbl_payment_links_get200_response.rb +1 -1
- data/lib/cybersource_rest_client/models/pbl_payment_links_post201_response.rb +1 -1
- data/lib/cybersource_rest_client/models/post_customer_payment_instrument_request.rb +1 -1
- data/lib/cybersource_rest_client/models/post_customer_request.rb +1 -1
- data/lib/cybersource_rest_client/models/post_payment_instrument_request.rb +1 -1
- data/lib/cybersource_rest_client/models/post_tokenized_card_request.rb +15 -5
- data/lib/cybersource_rest_client/models/pts_v2_create_billing_agreement_post201_response_agreement_information.rb +80 -1
- data/lib/cybersource_rest_client/models/pts_v2_credits_post201_response.rb +41 -1
- data/lib/cybersource_rest_client/models/pts_v2_credits_post201_response_merchant_information.rb +196 -0
- data/lib/cybersource_rest_client/models/pts_v2_credits_post201_response_payment_account_information.rb +189 -0
- data/lib/cybersource_rest_client/models/pts_v2_credits_post201_response_payment_information.rb +15 -5
- data/lib/cybersource_rest_client/models/pts_v2_credits_post201_response_payment_information_account_features.rb +196 -0
- data/lib/cybersource_rest_client/models/pts_v2_credits_post201_response_token_information.rb +189 -0
- data/lib/cybersource_rest_client/models/pts_v2_modify_billing_agreement_post201_response_agreement_information.rb +35 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_captures_post201_response_point_of_sale_information.rb +22 -5
- data/lib/cybersource_rest_client/models/pts_v2_payments_captures_post201_response_processor_information.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_order_post201_response_order_information_shipping_details.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_consumer_authentication_information.rb +106 -5
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_consumer_authentication_information_strong_authentication.rb +22 -5
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_account_information.rb +15 -5
- data/lib/cybersource_rest_client/models/{pts_v2_payments_post201_response_payment_information_tokenized_card.rb → pts_v2_payments_post201_response_payment_account_information_tokenized_card.rb} +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processing_information.rb +18 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information.rb +23 -6
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_token_information.rb +15 -5
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_token_information_third_party_token.rb +213 -0
- data/lib/cybersource_rest_client/models/pts_v2_payments_refund_post201_response.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_refund_post201_response_error_information.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_refund_post201_response_order_information_amount_details.rb +18 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_refund_post201_response_processor_information.rb +19 -2
- data/lib/cybersource_rest_client/models/pts_v2_payments_reversals_post201_response_processor_information.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_voids_post201_response_processor_information.rb +7 -1
- data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_processor_information.rb +45 -5
- data/lib/cybersource_rest_client/models/{pull_funds201_response_processor_information_avs.rb → pts_v2_payouts_post201_response_processor_information_avs.rb} +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_processor_information_customer.rb +196 -0
- data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_processor_information_electronic_verification_results.rb +281 -0
- data/lib/cybersource_rest_client/models/ptsv1pullfundstransfer_buyer_information.rb +196 -0
- data/lib/cybersource_rest_client/models/ptsv1pullfundstransfer_order_information_amount_details.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv1pullfundstransfer_processing_information.rb +18 -5
- data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_processing_information.rb +19 -6
- data/lib/cybersource_rest_client/models/ptsv2billingagreements_agreement_information.rb +84 -5
- data/lib/cybersource_rest_client/models/ptsv2billingagreements_order_information.rb +12 -2
- data/lib/cybersource_rest_client/models/ptsv2billingagreements_order_information_amount_details.rb +230 -0
- data/lib/cybersource_rest_client/models/{ptsv2intents_order_information_invoice_details.rb → ptsv2billingagreements_order_information_invoice_details.rb} +1 -1
- data/lib/cybersource_rest_client/models/ptsv2billingagreements_payment_information_bank.rb +15 -5
- data/lib/cybersource_rest_client/models/ptsv2billingagreements_payment_information_bank_account_alias.rb +207 -0
- data/lib/cybersource_rest_client/models/ptsv2billingagreements_processing_information.rb +18 -1
- data/lib/cybersource_rest_client/models/ptsv2billingagreementsid_agreement_information.rb +56 -5
- data/lib/cybersource_rest_client/models/ptsv2billingagreementsid_processing_information.rb +18 -1
- data/lib/cybersource_rest_client/models/ptsv2credits_processing_information.rb +35 -5
- data/lib/cybersource_rest_client/models/ptsv2credits_token_information.rb +228 -0
- data/lib/cybersource_rest_client/models/ptsv2intents_order_information.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2intentsid_order_information.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2payments_aggregator_information_sub_merchant.rb +15 -5
- data/lib/cybersource_rest_client/models/ptsv2payments_consumer_authentication_information.rb +16 -5
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information.rb +28 -1
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_digital_currency.rb +231 -0
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_shipping_details.rb +23 -6
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information.rb +32 -5
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_bank.rb +15 -5
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_bank_account_alias.rb +207 -0
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_third_party_token.rb +196 -0
- data/lib/cybersource_rest_client/models/ptsv2payments_point_of_sale_information.rb +18 -1
- data/lib/cybersource_rest_client/models/ptsv2payments_processing_information.rb +72 -6
- data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_program_indicators.rb +202 -0
- data/lib/cybersource_rest_client/models/ptsv2payments_processor_information.rb +56 -5
- data/lib/cybersource_rest_client/models/ptsv2payments_recipient_information.rb +16 -5
- data/lib/cybersource_rest_client/models/ptsv2payments_sender_information.rb +16 -5
- data/lib/cybersource_rest_client/models/ptsv2payments_token_information.rb +32 -5
- data/lib/cybersource_rest_client/models/ptsv2payments_token_information_token_authentication_information.rb +193 -0
- data/lib/cybersource_rest_client/models/ptsv2payments_token_information_token_authentication_information_authenticated_identities.rb +252 -0
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_aggregator_information_sub_merchant.rb +15 -5
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_order_information_shipping_details.rb +100 -5
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_point_of_sale_information.rb +22 -5
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_processing_information.rb +18 -1
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_processor_information.rb +39 -5
- data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_order_information.rb +15 -5
- data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_order_information_shipping_details.rb +196 -0
- data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_payment_information.rb +32 -5
- data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_device_information.rb +196 -0
- data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_payment_information.rb +22 -5
- data/lib/cybersource_rest_client/models/ptsv2payouts_processing_information.rb +18 -5
- data/lib/cybersource_rest_client/models/pull_funds201_response_processor_information.rb +36 -6
- data/lib/cybersource_rest_client/models/pull_funds_request.rb +11 -1
- data/lib/cybersource_rest_client/models/push_funds201_response_processor_information.rb +45 -5
- data/lib/cybersource_rest_client/models/risk_products.rb +15 -5
- data/lib/cybersource_rest_client/models/riskv1decisions_order_information_ship_to.rb +39 -5
- data/lib/cybersource_rest_client/models/riskv1decisions_order_information_shipping_details.rb +1 -1
- data/lib/cybersource_rest_client/models/tms_card_art.rb +23 -1
- data/lib/cybersource_rest_client/models/tms_embedded_instrument_identifier_bill_to.rb +22 -5
- data/lib/cybersource_rest_client/models/tms_tokenized_card_delete_request.rb +189 -0
- data/lib/cybersource_rest_client/models/tmsv1paymentinstruments__embedded.rb +190 -0
- data/lib/cybersource_rest_client/models/tmsv2_tokenized_card.rb +22 -1
- data/lib/cybersource_rest_client/models/tmsv2_tokenized_card_card.rb +1 -1
- data/lib/cybersource_rest_client/models/tmsv2_tokenized_card_metadata.rb +16 -5
- data/lib/cybersource_rest_client/models/tmsv2_tokenized_card_metadata_issuer.rb +41 -8
- data/lib/cybersource_rest_client/models/tmsv2_tokenized_card_metadata_issuer_bank_applications.rb +201 -0
- data/lib/cybersource_rest_client/models/tmsv2_tokenized_card_metadata_issuer_capabilities.rb +257 -0
- data/lib/cybersource_rest_client/models/tmsv2_tokenized_card_verification_results.rb +202 -0
- data/lib/cybersource_rest_client/models/tmsv2customers__embedded.rb +200 -0
- data/lib/cybersource_rest_client/models/{tmsv3tokenstoken_idpaymentcredentials_order_information_bill_to.rb → tmsv2tokenizedcards_bill_to.rb} +1 -1
- data/lib/cybersource_rest_client/models/tmsv2tokenizedcardstokenized_card_iddelete_reason.rb +208 -0
- data/lib/cybersource_rest_client/models/tmsv3tokenstoken_idpaymentcredentials_order_information.rb +1 -1
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_order_information_shipping_details.rb +1 -1
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_sender_information.rb +1 -1
- data/lib/cybersource_rest_client/models/ucv1sessions_data.rb +44 -14
- data/lib/cybersource_rest_client/models/ucv1sessions_data_aggregator_information.rb +325 -0
- data/lib/cybersource_rest_client/models/ucv1sessions_data_aggregator_information_sub_merchant.rb +366 -0
- data/lib/cybersource_rest_client/models/ucv1sessions_data_consumer_authentication_information.rb +22 -5
- data/lib/cybersource_rest_client/models/ucv1sessions_data_installment_information.rb +196 -0
- data/lib/cybersource_rest_client/models/ucv1sessions_data_merchant_information.rb +22 -5
- data/lib/cybersource_rest_client/models/ucv1sessions_data_merchant_information_merchant_descriptor.rb +18 -1
- data/lib/cybersource_rest_client/models/ucv1sessions_data_order_information.rb +16 -6
- data/lib/cybersource_rest_client/models/ucv1sessions_data_order_information_amount_details.rb +86 -12
- data/lib/cybersource_rest_client/models/ucv1sessions_data_order_information_invoice_details.rb +242 -0
- data/lib/cybersource_rest_client/models/ucv1sessions_data_order_information_invoice_details_transaction_advice_addendum.rb +196 -0
- data/lib/cybersource_rest_client/models/ucv1sessions_data_order_information_line_items.rb +702 -0
- data/lib/cybersource_rest_client/models/ucv1sessions_data_order_information_shipping_details.rb +213 -0
- data/lib/cybersource_rest_client/models/ucv1sessions_data_processing_information.rb +38 -1
- data/lib/cybersource_rest_client/models/ucv1sessions_data_processing_information_bank_transfer_options.rb +196 -0
- data/lib/cybersource_rest_client/models/ucv1sessions_data_processing_information_recurring_options.rb +192 -0
- data/lib/cybersource_rest_client/models/ucv1sessions_data_recipient_information.rb +107 -53
- data/lib/cybersource_rest_client/models/ucv1sessions_data_sender_information.rb +376 -0
- data/lib/cybersource_rest_client/models/ucv1sessions_data_sender_information_account.rb +213 -0
- data/lib/cybersource_rest_client/models/update_payments.rb +192 -0
- data/lib/cybersource_rest_client/models/value_added_services_products.rb +25 -5
- data/lib/cybersource_rest_client.rb +71 -12
- metadata +78 -19
- data/lib/cybersource_rest_client/api/token_api.rb +0 -306
- data/lib/cybersource_rest_client/api/tokenized_card_api.rb +0 -371
|
@@ -1,371 +0,0 @@
|
|
|
1
|
-
=begin
|
|
2
|
-
#CyberSource Merged Spec
|
|
3
|
-
|
|
4
|
-
#All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html
|
|
5
|
-
|
|
6
|
-
OpenAPI spec version: 0.0.1
|
|
7
|
-
|
|
8
|
-
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
-
Swagger Codegen version: 2.4.38
|
|
10
|
-
=end
|
|
11
|
-
|
|
12
|
-
require 'uri'
|
|
13
|
-
require 'AuthenticationSDK/util/MLEUtility'
|
|
14
|
-
module CyberSource
|
|
15
|
-
class TokenizedCardApi
|
|
16
|
-
attr_accessor :api_client
|
|
17
|
-
|
|
18
|
-
def initialize(api_client = ApiClient.default, config)
|
|
19
|
-
@api_client = api_client
|
|
20
|
-
@api_client.set_configuration(config)
|
|
21
|
-
end
|
|
22
|
-
# Delete a Tokenized Card
|
|
23
|
-
# | | | | | --- | --- | --- | | The Network Token will attempt to be deleted from the card association and if successful the corresponding TMS Network Token will be deleted.
|
|
24
|
-
#
|
|
25
|
-
# @param tokenized_card_id The Id of a tokenized card.
|
|
26
|
-
# @param [Hash] opts the optional parameters
|
|
27
|
-
# @option opts [String] :profile_id The Id of a profile containing user specific TMS configuration.
|
|
28
|
-
# @return [nil]
|
|
29
|
-
#
|
|
30
|
-
def delete_tokenized_card(tokenized_card_id, opts = {})
|
|
31
|
-
data, status_code, headers = delete_tokenized_card_with_http_info(tokenized_card_id, opts)
|
|
32
|
-
return data, status_code, headers
|
|
33
|
-
end
|
|
34
|
-
|
|
35
|
-
# Delete a Tokenized Card
|
|
36
|
-
# | | | | | --- | --- | --- | | The Network Token will attempt to be deleted from the card association and if successful the corresponding TMS Network Token will be deleted.
|
|
37
|
-
# @param tokenized_card_id The Id of a tokenized card.
|
|
38
|
-
# @param [Hash] opts the optional parameters
|
|
39
|
-
# @option opts [String] :profile_id The Id of a profile containing user specific TMS configuration.
|
|
40
|
-
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
|
41
|
-
def delete_tokenized_card_with_http_info(tokenized_card_id, opts = {})
|
|
42
|
-
|
|
43
|
-
if @api_client.config.debugging
|
|
44
|
-
begin
|
|
45
|
-
raise
|
|
46
|
-
@api_client.config.logger.debug 'Calling API: TokenizedCardApi.delete_tokenized_card ...'
|
|
47
|
-
rescue
|
|
48
|
-
puts 'Cannot write to log'
|
|
49
|
-
end
|
|
50
|
-
end
|
|
51
|
-
# verify the required parameter 'tokenized_card_id' is set
|
|
52
|
-
if @api_client.config.client_side_validation && tokenized_card_id.nil?
|
|
53
|
-
fail ArgumentError, "Missing the required parameter 'tokenized_card_id' when calling TokenizedCardApi.delete_tokenized_card"
|
|
54
|
-
end
|
|
55
|
-
# resource path
|
|
56
|
-
local_var_path = 'tms/v2/tokenized-cards/{tokenizedCardId}'.sub('{' + 'tokenizedCardId' + '}', tokenized_card_id.to_s)
|
|
57
|
-
|
|
58
|
-
# query parameters
|
|
59
|
-
query_params = {}
|
|
60
|
-
|
|
61
|
-
# header parameters
|
|
62
|
-
header_params = {}
|
|
63
|
-
# HTTP header 'Accept' (if needed)
|
|
64
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json;charset=utf-8'])
|
|
65
|
-
# HTTP header 'Content-Type'
|
|
66
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json;charset=utf-8'])
|
|
67
|
-
header_params[:'profile-id'] = opts[:'profile_id'] if !opts[:'profile_id'].nil?
|
|
68
|
-
|
|
69
|
-
# form parameters
|
|
70
|
-
form_params = {}
|
|
71
|
-
|
|
72
|
-
# http body (model)
|
|
73
|
-
if 'DELETE' == 'POST'
|
|
74
|
-
post_body = '{}'
|
|
75
|
-
else
|
|
76
|
-
post_body = nil
|
|
77
|
-
end
|
|
78
|
-
inbound_mle_status = "false"
|
|
79
|
-
if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["delete_tokenized_card","delete_tokenized_card_with_http_info"])
|
|
80
|
-
begin
|
|
81
|
-
post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
|
|
82
|
-
rescue
|
|
83
|
-
raise
|
|
84
|
-
end
|
|
85
|
-
end
|
|
86
|
-
|
|
87
|
-
is_response_mle_for_api = MLEUtility.check_is_response_mle_for_api(@api_client.merchantconfig, ["delete_tokenized_card","delete_tokenized_card_with_http_info"])
|
|
88
|
-
|
|
89
|
-
auth_names = []
|
|
90
|
-
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
|
|
91
|
-
:header_params => header_params,
|
|
92
|
-
:query_params => query_params,
|
|
93
|
-
:form_params => form_params,
|
|
94
|
-
:body => post_body,
|
|
95
|
-
:auth_names => auth_names,
|
|
96
|
-
:isResponseMLEForApi => is_response_mle_for_api)
|
|
97
|
-
if @api_client.config.debugging
|
|
98
|
-
begin
|
|
99
|
-
raise
|
|
100
|
-
@api_client.config.logger.debug "API called: TokenizedCardApi#delete_tokenized_card\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
101
|
-
rescue
|
|
102
|
-
puts 'Cannot write to log'
|
|
103
|
-
end
|
|
104
|
-
end
|
|
105
|
-
return data, status_code, headers
|
|
106
|
-
end
|
|
107
|
-
# Retrieve a Tokenized Card
|
|
108
|
-
# | | | | | --- | --- | --- | |**Tokenized Cards**<br>A Tokenized Card represents a network token. Network tokens perform better than regular card numbers and they are not necessarily invalidated when a cardholder loses their card, or it expires.
|
|
109
|
-
#
|
|
110
|
-
# @param tokenized_card_id The Id of a tokenized card.
|
|
111
|
-
# @param [Hash] opts the optional parameters
|
|
112
|
-
# @option opts [String] :profile_id The Id of a profile containing user specific TMS configuration.
|
|
113
|
-
# @return [InlineResponse2001]
|
|
114
|
-
#
|
|
115
|
-
def get_tokenized_card(tokenized_card_id, opts = {})
|
|
116
|
-
data, status_code, headers = get_tokenized_card_with_http_info(tokenized_card_id, opts)
|
|
117
|
-
return data, status_code, headers
|
|
118
|
-
end
|
|
119
|
-
|
|
120
|
-
# Retrieve a Tokenized Card
|
|
121
|
-
# | | | | | --- | --- | --- | |**Tokenized Cards**<br>A Tokenized Card represents a network token. Network tokens perform better than regular card numbers and they are not necessarily invalidated when a cardholder loses their card, or it expires.
|
|
122
|
-
# @param tokenized_card_id The Id of a tokenized card.
|
|
123
|
-
# @param [Hash] opts the optional parameters
|
|
124
|
-
# @option opts [String] :profile_id The Id of a profile containing user specific TMS configuration.
|
|
125
|
-
# @return [Array<(InlineResponse2001, Fixnum, Hash)>] InlineResponse2001 data, response status code and response headers
|
|
126
|
-
def get_tokenized_card_with_http_info(tokenized_card_id, opts = {})
|
|
127
|
-
|
|
128
|
-
if @api_client.config.debugging
|
|
129
|
-
begin
|
|
130
|
-
raise
|
|
131
|
-
@api_client.config.logger.debug 'Calling API: TokenizedCardApi.get_tokenized_card ...'
|
|
132
|
-
rescue
|
|
133
|
-
puts 'Cannot write to log'
|
|
134
|
-
end
|
|
135
|
-
end
|
|
136
|
-
# verify the required parameter 'tokenized_card_id' is set
|
|
137
|
-
if @api_client.config.client_side_validation && tokenized_card_id.nil?
|
|
138
|
-
fail ArgumentError, "Missing the required parameter 'tokenized_card_id' when calling TokenizedCardApi.get_tokenized_card"
|
|
139
|
-
end
|
|
140
|
-
# resource path
|
|
141
|
-
local_var_path = 'tms/v2/tokenized-cards/{tokenizedCardId}'.sub('{' + 'tokenizedCardId' + '}', tokenized_card_id.to_s)
|
|
142
|
-
|
|
143
|
-
# query parameters
|
|
144
|
-
query_params = {}
|
|
145
|
-
|
|
146
|
-
# header parameters
|
|
147
|
-
header_params = {}
|
|
148
|
-
# HTTP header 'Accept' (if needed)
|
|
149
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json;charset=utf-8'])
|
|
150
|
-
# HTTP header 'Content-Type'
|
|
151
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json;charset=utf-8'])
|
|
152
|
-
header_params[:'profile-id'] = opts[:'profile_id'] if !opts[:'profile_id'].nil?
|
|
153
|
-
|
|
154
|
-
# form parameters
|
|
155
|
-
form_params = {}
|
|
156
|
-
|
|
157
|
-
# http body (model)
|
|
158
|
-
if 'GET' == 'POST'
|
|
159
|
-
post_body = '{}'
|
|
160
|
-
else
|
|
161
|
-
post_body = nil
|
|
162
|
-
end
|
|
163
|
-
inbound_mle_status = "false"
|
|
164
|
-
if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["get_tokenized_card","get_tokenized_card_with_http_info"])
|
|
165
|
-
begin
|
|
166
|
-
post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
|
|
167
|
-
rescue
|
|
168
|
-
raise
|
|
169
|
-
end
|
|
170
|
-
end
|
|
171
|
-
|
|
172
|
-
is_response_mle_for_api = MLEUtility.check_is_response_mle_for_api(@api_client.merchantconfig, ["get_tokenized_card","get_tokenized_card_with_http_info"])
|
|
173
|
-
|
|
174
|
-
auth_names = []
|
|
175
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
|
176
|
-
:header_params => header_params,
|
|
177
|
-
:query_params => query_params,
|
|
178
|
-
:form_params => form_params,
|
|
179
|
-
:body => post_body,
|
|
180
|
-
:auth_names => auth_names,
|
|
181
|
-
:return_type => 'InlineResponse2001',
|
|
182
|
-
:isResponseMLEForApi => is_response_mle_for_api)
|
|
183
|
-
if @api_client.config.debugging
|
|
184
|
-
begin
|
|
185
|
-
raise
|
|
186
|
-
@api_client.config.logger.debug "API called: TokenizedCardApi#get_tokenized_card\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
187
|
-
rescue
|
|
188
|
-
puts 'Cannot write to log'
|
|
189
|
-
end
|
|
190
|
-
end
|
|
191
|
-
return data, status_code, headers
|
|
192
|
-
end
|
|
193
|
-
# Simulate Issuer Life Cycle Management Events
|
|
194
|
-
# **Lifecycle Management Events**<br>Simulates an issuer life cycle manegement event for updates on the tokenized card. The events that can be simulated are: - Token status changes (e.g. active, suspended, deleted) - Updates to the underlying card, including card art changes, expiration date changes, and card number suffix. **Note:** This is only available in CAS environment.
|
|
195
|
-
#
|
|
196
|
-
# @param profile_id The Id of a profile containing user specific TMS configuration.
|
|
197
|
-
# @param tokenized_card_id The Id of a tokenized card.
|
|
198
|
-
# @param post_issuer_life_cycle_simulation_request
|
|
199
|
-
# @param [Hash] opts the optional parameters
|
|
200
|
-
# @return [nil]
|
|
201
|
-
#
|
|
202
|
-
def post_issuer_life_cycle_simulation(profile_id, tokenized_card_id, post_issuer_life_cycle_simulation_request, opts = {})
|
|
203
|
-
data, status_code, headers = post_issuer_life_cycle_simulation_with_http_info(profile_id, tokenized_card_id, post_issuer_life_cycle_simulation_request, opts)
|
|
204
|
-
return data, status_code, headers
|
|
205
|
-
end
|
|
206
|
-
|
|
207
|
-
# Simulate Issuer Life Cycle Management Events
|
|
208
|
-
# **Lifecycle Management Events**<br>Simulates an issuer life cycle manegement event for updates on the tokenized card. The events that can be simulated are: - Token status changes (e.g. active, suspended, deleted) - Updates to the underlying card, including card art changes, expiration date changes, and card number suffix. **Note:** This is only available in CAS environment.
|
|
209
|
-
# @param profile_id The Id of a profile containing user specific TMS configuration.
|
|
210
|
-
# @param tokenized_card_id The Id of a tokenized card.
|
|
211
|
-
# @param post_issuer_life_cycle_simulation_request
|
|
212
|
-
# @param [Hash] opts the optional parameters
|
|
213
|
-
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
|
214
|
-
def post_issuer_life_cycle_simulation_with_http_info(profile_id, tokenized_card_id, post_issuer_life_cycle_simulation_request, opts = {})
|
|
215
|
-
|
|
216
|
-
if @api_client.config.debugging
|
|
217
|
-
begin
|
|
218
|
-
raise
|
|
219
|
-
@api_client.config.logger.debug 'Calling API: TokenizedCardApi.post_issuer_life_cycle_simulation ...'
|
|
220
|
-
rescue
|
|
221
|
-
puts 'Cannot write to log'
|
|
222
|
-
end
|
|
223
|
-
end
|
|
224
|
-
# verify the required parameter 'profile_id' is set
|
|
225
|
-
if @api_client.config.client_side_validation && profile_id.nil?
|
|
226
|
-
fail ArgumentError, "Missing the required parameter 'profile_id' when calling TokenizedCardApi.post_issuer_life_cycle_simulation"
|
|
227
|
-
end
|
|
228
|
-
# verify the required parameter 'tokenized_card_id' is set
|
|
229
|
-
if @api_client.config.client_side_validation && tokenized_card_id.nil?
|
|
230
|
-
fail ArgumentError, "Missing the required parameter 'tokenized_card_id' when calling TokenizedCardApi.post_issuer_life_cycle_simulation"
|
|
231
|
-
end
|
|
232
|
-
# verify the required parameter 'post_issuer_life_cycle_simulation_request' is set
|
|
233
|
-
if @api_client.config.client_side_validation && post_issuer_life_cycle_simulation_request.nil?
|
|
234
|
-
fail ArgumentError, "Missing the required parameter 'post_issuer_life_cycle_simulation_request' when calling TokenizedCardApi.post_issuer_life_cycle_simulation"
|
|
235
|
-
end
|
|
236
|
-
# resource path
|
|
237
|
-
local_var_path = 'tms/v2/tokenized-cards/{tokenizedCardId}/issuer-life-cycle-event-simulations'.sub('{' + 'tokenizedCardId' + '}', tokenized_card_id.to_s)
|
|
238
|
-
|
|
239
|
-
# query parameters
|
|
240
|
-
query_params = {}
|
|
241
|
-
|
|
242
|
-
# header parameters
|
|
243
|
-
header_params = {}
|
|
244
|
-
# HTTP header 'Accept' (if needed)
|
|
245
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json;charset=utf-8'])
|
|
246
|
-
# HTTP header 'Content-Type'
|
|
247
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json;charset=utf-8'])
|
|
248
|
-
header_params[:'profile-id'] = profile_id
|
|
249
|
-
|
|
250
|
-
# form parameters
|
|
251
|
-
form_params = {}
|
|
252
|
-
|
|
253
|
-
# http body (model)
|
|
254
|
-
post_body = @api_client.object_to_http_body(post_issuer_life_cycle_simulation_request)
|
|
255
|
-
sdk_tracker = SdkTracker.new
|
|
256
|
-
post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'PostIssuerLifeCycleSimulationRequest', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId)
|
|
257
|
-
inbound_mle_status = "false"
|
|
258
|
-
if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["post_issuer_life_cycle_simulation","post_issuer_life_cycle_simulation_with_http_info"])
|
|
259
|
-
begin
|
|
260
|
-
post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
|
|
261
|
-
rescue
|
|
262
|
-
raise
|
|
263
|
-
end
|
|
264
|
-
end
|
|
265
|
-
|
|
266
|
-
is_response_mle_for_api = MLEUtility.check_is_response_mle_for_api(@api_client.merchantconfig, ["post_issuer_life_cycle_simulation","post_issuer_life_cycle_simulation_with_http_info"])
|
|
267
|
-
|
|
268
|
-
auth_names = []
|
|
269
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
270
|
-
:header_params => header_params,
|
|
271
|
-
:query_params => query_params,
|
|
272
|
-
:form_params => form_params,
|
|
273
|
-
:body => post_body,
|
|
274
|
-
:auth_names => auth_names,
|
|
275
|
-
:isResponseMLEForApi => is_response_mle_for_api)
|
|
276
|
-
if @api_client.config.debugging
|
|
277
|
-
begin
|
|
278
|
-
raise
|
|
279
|
-
@api_client.config.logger.debug "API called: TokenizedCardApi#post_issuer_life_cycle_simulation\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
280
|
-
rescue
|
|
281
|
-
puts 'Cannot write to log'
|
|
282
|
-
end
|
|
283
|
-
end
|
|
284
|
-
return data, status_code, headers
|
|
285
|
-
end
|
|
286
|
-
# Create a Tokenized Card
|
|
287
|
-
# | | | | | --- | --- | --- | |**Tokenized cards**<br>A Tokenized card represents a network token. Network tokens perform better than regular card numbers and they are not necessarily invalidated when a cardholder loses their card, or it expires.
|
|
288
|
-
#
|
|
289
|
-
# @param post_tokenized_card_request
|
|
290
|
-
# @param [Hash] opts the optional parameters
|
|
291
|
-
# @option opts [String] :profile_id The Id of a profile containing user specific TMS configuration.
|
|
292
|
-
# @return [InlineResponse2001]
|
|
293
|
-
#
|
|
294
|
-
def post_tokenized_card(post_tokenized_card_request, opts = {})
|
|
295
|
-
data, status_code, headers = post_tokenized_card_with_http_info(post_tokenized_card_request, opts)
|
|
296
|
-
return data, status_code, headers
|
|
297
|
-
end
|
|
298
|
-
|
|
299
|
-
# Create a Tokenized Card
|
|
300
|
-
# | | | | | --- | --- | --- | |**Tokenized cards**<br>A Tokenized card represents a network token. Network tokens perform better than regular card numbers and they are not necessarily invalidated when a cardholder loses their card, or it expires.
|
|
301
|
-
# @param post_tokenized_card_request
|
|
302
|
-
# @param [Hash] opts the optional parameters
|
|
303
|
-
# @option opts [String] :profile_id The Id of a profile containing user specific TMS configuration.
|
|
304
|
-
# @return [Array<(InlineResponse2001, Fixnum, Hash)>] InlineResponse2001 data, response status code and response headers
|
|
305
|
-
def post_tokenized_card_with_http_info(post_tokenized_card_request, opts = {})
|
|
306
|
-
|
|
307
|
-
if @api_client.config.debugging
|
|
308
|
-
begin
|
|
309
|
-
raise
|
|
310
|
-
@api_client.config.logger.debug 'Calling API: TokenizedCardApi.post_tokenized_card ...'
|
|
311
|
-
rescue
|
|
312
|
-
puts 'Cannot write to log'
|
|
313
|
-
end
|
|
314
|
-
end
|
|
315
|
-
# verify the required parameter 'post_tokenized_card_request' is set
|
|
316
|
-
if @api_client.config.client_side_validation && post_tokenized_card_request.nil?
|
|
317
|
-
fail ArgumentError, "Missing the required parameter 'post_tokenized_card_request' when calling TokenizedCardApi.post_tokenized_card"
|
|
318
|
-
end
|
|
319
|
-
# resource path
|
|
320
|
-
local_var_path = 'tms/v2/tokenized-cards'
|
|
321
|
-
|
|
322
|
-
# query parameters
|
|
323
|
-
query_params = {}
|
|
324
|
-
|
|
325
|
-
# header parameters
|
|
326
|
-
header_params = {}
|
|
327
|
-
# HTTP header 'Accept' (if needed)
|
|
328
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json;charset=utf-8'])
|
|
329
|
-
# HTTP header 'Content-Type'
|
|
330
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json;charset=utf-8'])
|
|
331
|
-
header_params[:'profile-id'] = opts[:'profile_id'] if !opts[:'profile_id'].nil?
|
|
332
|
-
|
|
333
|
-
# form parameters
|
|
334
|
-
form_params = {}
|
|
335
|
-
|
|
336
|
-
# http body (model)
|
|
337
|
-
post_body = @api_client.object_to_http_body(post_tokenized_card_request)
|
|
338
|
-
sdk_tracker = SdkTracker.new
|
|
339
|
-
post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'PostTokenizedCardRequest', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId)
|
|
340
|
-
inbound_mle_status = "optional"
|
|
341
|
-
if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["post_tokenized_card","post_tokenized_card_with_http_info"])
|
|
342
|
-
begin
|
|
343
|
-
post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
|
|
344
|
-
rescue
|
|
345
|
-
raise
|
|
346
|
-
end
|
|
347
|
-
end
|
|
348
|
-
|
|
349
|
-
is_response_mle_for_api = MLEUtility.check_is_response_mle_for_api(@api_client.merchantconfig, ["post_tokenized_card","post_tokenized_card_with_http_info"])
|
|
350
|
-
|
|
351
|
-
auth_names = []
|
|
352
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
353
|
-
:header_params => header_params,
|
|
354
|
-
:query_params => query_params,
|
|
355
|
-
:form_params => form_params,
|
|
356
|
-
:body => post_body,
|
|
357
|
-
:auth_names => auth_names,
|
|
358
|
-
:return_type => 'InlineResponse2001',
|
|
359
|
-
:isResponseMLEForApi => is_response_mle_for_api)
|
|
360
|
-
if @api_client.config.debugging
|
|
361
|
-
begin
|
|
362
|
-
raise
|
|
363
|
-
@api_client.config.logger.debug "API called: TokenizedCardApi#post_tokenized_card\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
364
|
-
rescue
|
|
365
|
-
puts 'Cannot write to log'
|
|
366
|
-
end
|
|
367
|
-
end
|
|
368
|
-
return data, status_code, headers
|
|
369
|
-
end
|
|
370
|
-
end
|
|
371
|
-
end
|