cybersource-rest-client 0.0.76 → 0.0.77
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.
- package/docs/AddNegativeListRequest.md +1 -1
- package/docs/Boardingv1registrationsIntegrationInformation.md +1 -0
- package/docs/Boardingv1registrationsIntegrationInformationMsd.md +8 -0
- package/docs/CheckPayerAuthEnrollmentRequest.md +1 -1
- package/docs/CreateSubscriptionRequest.md +1 -1
- package/docs/CreateSubscriptionRequest1.md +1 -1
- package/docs/FraudMarkingActionRequest.md +1 -1
- package/docs/GenerateUnifiedCheckoutV1CaptureContextRequest.md +20 -0
- package/docs/GetAllSubscriptionsResponseOrderInformation.md +1 -1
- package/docs/GetAllSubscriptionsResponseOrderInformationAmountDetails.md +11 -0
- package/docs/GetAllSubscriptionsResponseOrderInformationAmountDetailsSurcharge.md +8 -0
- package/docs/InlineResponse20016.md +2 -2
- package/docs/InlineResponse2005IntegrationInformation.md +1 -0
- package/docs/InlineResponse2011TokenizedCard.md +1 -1
- package/docs/InlineResponse2019.md +14 -0
- package/docs/InlineResponse2019ClientReferenceInformation.md +8 -0
- package/docs/{InlineResponse20016ErrorInformation.md → InlineResponse2019ErrorInformation.md} +1 -1
- package/docs/InlineResponse2019OrderInformation.md +8 -0
- package/docs/{InlineResponse20016OrderInformationCurrencyConversion.md → InlineResponse2019OrderInformationCurrencyConversion.md} +2 -2
- package/docs/{InlineResponse20016OrderInformationCurrencyConversionOffer.md → InlineResponse2019OrderInformationCurrencyConversionOffer.md} +1 -1
- package/docs/InlineResponse2019ProcessorInformation.md +8 -0
- package/docs/InlineResponse40010.md +13 -0
- package/docs/InlineResponse404.md +1 -2
- package/docs/InlineResponse4041.md +2 -5
- package/docs/InlineResponse4042.md +5 -5
- package/docs/{InlineResponse4041Details.md → InlineResponse4042Details.md} +1 -1
- package/docs/InlineResponse4043.md +5 -3
- package/docs/InlineResponse4044.md +3 -4
- package/docs/{InlineResponse4043Details.md → InlineResponse4044Details.md} +1 -1
- package/docs/InlineResponse4045.md +3 -3
- package/docs/InlineResponse4046.md +11 -0
- package/docs/InlineResponse404Errors.md +9 -0
- package/docs/{InlineResponse5004.md → InlineResponse5022.md} +1 -1
- package/docs/OfferRequest.md +11 -0
- package/docs/OffersApi.md +62 -0
- package/docs/PayerAuthSetupRequest.md +1 -1
- package/docs/PaymentsProductsUnifiedCheckoutSubscriptionInformationFeatures.md +20 -0
- package/docs/PaymentsProductsUnifiedCheckoutSubscriptionInformationFeaturesAfterPay.md +8 -0
- package/docs/PaymentsProductsUnifiedCheckoutSubscriptionInformationFeaturesApplePay.md +8 -0
- package/docs/PaymentsProductsUnifiedCheckoutSubscriptionInformationFeaturesBancontact.md +8 -0
- package/docs/PaymentsProductsUnifiedCheckoutSubscriptionInformationFeaturesClickToPay.md +8 -0
- package/docs/PaymentsProductsUnifiedCheckoutSubscriptionInformationFeaturesDecisionManager.md +8 -0
- package/docs/PaymentsProductsUnifiedCheckoutSubscriptionInformationFeaturesDragonPay.md +8 -0
- package/docs/PaymentsProductsUnifiedCheckoutSubscriptionInformationFeaturesECheck.md +8 -0
- package/docs/PaymentsProductsUnifiedCheckoutSubscriptionInformationFeaturesGooglePay.md +8 -0
- package/docs/PaymentsProductsUnifiedCheckoutSubscriptionInformationFeaturesIdeal.md +8 -0
- package/docs/PaymentsProductsUnifiedCheckoutSubscriptionInformationFeaturesKonbini.md +8 -0
- package/docs/PaymentsProductsUnifiedCheckoutSubscriptionInformationFeaturesMultibanco.md +8 -0
- package/docs/PaymentsProductsUnifiedCheckoutSubscriptionInformationFeaturesMyBank.md +8 -0
- package/docs/PaymentsProductsUnifiedCheckoutSubscriptionInformationFeaturesP24.md +8 -0
- package/docs/PaymentsProductsUnifiedCheckoutSubscriptionInformationFeaturesPayPal.md +8 -0
- package/docs/PaymentsProductsUnifiedCheckoutSubscriptionInformationFeaturesPayerAuthentication.md +8 -0
- package/docs/PaymentsProductsUnifiedCheckoutSubscriptionInformationFeaturesPortfolioAccessofSensitiveData.md +8 -0
- package/docs/PaymentsProductsUnifiedCheckoutSubscriptionInformationFeaturesTinkPayByBank.md +8 -0
- package/docs/PaymentsProductsUnifiedCheckoutSubscriptionInformationFeaturesTokenManagement.md +8 -0
- package/docs/PaymentsProductsUnifiedCheckoutSubscriptionInformationFeaturesUnifiedClickToPaySDK.md +8 -0
- package/docs/PaymentsProductsUnifiedCheckoutSubscriptionInformationFeaturesVenmo.md +8 -0
- package/docs/PtsV2CreditsPost201Response.md +1 -0
- package/docs/PtsV2IncrementalAuthorizationPatch201ResponseErrorInformation.md +1 -1
- package/docs/PtsV2PaymentsCapturesPost201ResponseProcessorInformation.md +1 -1
- package/docs/PtsV2PaymentsPost201ResponseErrorInformation.md +1 -1
- package/docs/PtsV2PaymentsRefundPost201Response.md +1 -0
- package/docs/PtsV2PaymentsRefundPost201ResponseErrorInformation.md +10 -0
- package/docs/Ptsv1pullfundstransferAggregatorInformation.md +15 -0
- package/docs/Ptsv1pullfundstransferAggregatorInformationSubMerchant.md +8 -0
- package/docs/Ptsv1pullfundstransferClientReferenceInformation.md +11 -0
- package/docs/Ptsv1pullfundstransferMerchantInformation.md +8 -0
- package/docs/Ptsv1pullfundstransferMerchantInformationMerchantDescriptor.md +17 -0
- package/docs/Ptsv1pullfundstransferOrderInformation.md +9 -0
- package/docs/Ptsv1pullfundstransferOrderInformationAmountDetails.md +12 -0
- package/docs/Ptsv1pullfundstransferProcessingInformation.md +14 -0
- package/docs/Ptsv1pullfundstransferProcessingInformationFundingOptions.md +8 -0
- package/docs/Ptsv1pullfundstransferProcessingInformationFundingOptionsInitiator.md +11 -0
- package/docs/Ptsv1pullfundstransferProcessingInformationFundingOptionsInitiatorOriginatorInitiatedTransaction.md +9 -0
- package/docs/Ptsv1pullfundstransferProcessingInformationPayoutsOptions.md +8 -0
- package/docs/Ptsv1pullfundstransferProcessingInformationRecurringOptions.md +8 -0
- package/docs/Ptsv1pullfundstransferRecipientInformation.md +31 -0
- package/docs/Ptsv1pullfundstransferRecipientInformationPersonalIdentification.md +11 -0
- package/docs/Ptsv1pullfundstransferSenderInformation.md +31 -0
- package/docs/Ptsv1pullfundstransferSenderInformationAccount.md +9 -0
- package/docs/Ptsv1pullfundstransferSenderInformationConsumerAuthentication.md +9 -0
- package/docs/Ptsv1pullfundstransferSenderInformationConsumerAuthenticationStrongAuthentication.md +12 -0
- package/docs/Ptsv1pullfundstransferSenderInformationPaymentInformation.md +13 -0
- package/docs/Ptsv1pullfundstransferSenderInformationPaymentInformationCard.md +12 -0
- package/docs/Ptsv1pullfundstransferSenderInformationPaymentInformationCustomer.md +8 -0
- package/docs/Ptsv1pullfundstransferSenderInformationPaymentInformationInstrumentIdentifier.md +8 -0
- package/docs/Ptsv1pullfundstransferSenderInformationPaymentInformationPaymentInstrument.md +8 -0
- package/docs/Ptsv1pullfundstransferSenderInformationPaymentInformationTokenizedCard.md +13 -0
- package/docs/Ptsv1pullfundstransferSenderInformationPersonalIdentification.md +11 -0
- package/docs/Ptsv1pullfundstransferidrefundOrderInformation.md +8 -0
- package/docs/Ptsv1pullfundstransferidrefundOrderInformationAmountDetails.md +8 -0
- package/docs/Ptsv1pullfundstransferidreversalReversalInformation.md +8 -0
- package/docs/Ptsv1pullfundstransferidreversalReversalInformationAmountDetails.md +8 -0
- package/docs/Ptsv1pushfundstransferMerchantInformation.md +2 -1
- package/docs/Ptsv1pushfundstransferMerchantInformationMerchantDescriptor.md +14 -0
- package/docs/Ptsv1pushfundstransferPaymentInformation.md +11 -0
- package/docs/Ptsv1pushfundstransferPaymentInformationCard.md +12 -0
- package/docs/Ptsv1pushfundstransferPaymentInformationCustomer.md +8 -0
- package/docs/Ptsv1pushfundstransferPaymentInformationInstrumentIdentifier.md +8 -0
- package/docs/Ptsv1pushfundstransferPaymentInformationPaymentInstrument.md +8 -0
- package/docs/Ptsv1pushfundstransferProcessingInformation.md +1 -0
- package/docs/Ptsv1pushfundstransferProcessingInformationPayoutsOptions.md +1 -1
- package/docs/Ptsv1pushfundstransferRecipientInformationPaymentInformationCard.md +1 -1
- package/docs/Ptsv2creditsProcessingInformation.md +1 -0
- package/docs/Ptsv2creditsSenderInformation.md +1 -0
- package/docs/Ptsv2paymentsProcessingInformation.md +1 -0
- package/docs/Ptsv2paymentsidrefundsProcessingInformation.md +1 -0
- package/docs/Ptsv2payoutsProcessingInformationPayoutsOptions.md +1 -1
- package/docs/PullFunds201Response.md +14 -0
- package/docs/PullFunds201ResponseErrorInformation.md +10 -0
- package/docs/PullFunds201ResponseErrorInformationDetails.md +9 -0
- package/docs/PullFunds201ResponseLinks.md +13 -0
- package/docs/PullFunds201ResponseLinksCustomer.md +9 -0
- package/docs/PullFunds201ResponseLinksInstrumentIdentifier.md +9 -0
- package/docs/PullFunds201ResponseLinksPaymentInstrument.md +9 -0
- package/docs/PullFunds201ResponseLinksRefund.md +9 -0
- package/docs/PullFunds201ResponseLinksReversal.md +9 -0
- package/docs/PullFunds201ResponseLinksSelf.md +9 -0
- package/docs/PullFunds201ResponseOrderInformation.md +8 -0
- package/docs/PullFunds201ResponseOrderInformationAmountDetails.md +9 -0
- package/docs/PullFunds201ResponseProcessorInformation.md +15 -0
- package/docs/PullFunds201ResponseProcessorInformationAvs.md +8 -0
- package/docs/PullFunds201ResponseProcessorInformationConsumerAuthenticationResponse.md +8 -0
- package/docs/PullFundsApi.md +209 -0
- package/docs/PullFundsRefund201Response.md +13 -0
- package/docs/PullFundsRefund201ResponseLinks.md +8 -0
- package/docs/PullFundsRefund201ResponseLinksSelf.md +9 -0
- package/docs/PullFundsRefund201ResponseProcessorInformation.md +9 -0
- package/docs/PullFundsRefundRequest.md +9 -0
- package/docs/PullFundsRequest.md +14 -0
- package/docs/PullFundsReversal201Response.md +13 -0
- package/docs/PullFundsReversal201ResponseErrorInformation.md +10 -0
- package/docs/PullFundsReversal201ResponseErrorInformationDetails.md +9 -0
- package/docs/PullFundsReversal201ResponseLinks.md +8 -0
- package/docs/PullFundsReversal201ResponseLinksSelf.md +9 -0
- package/docs/PullFundsReversal201ResponseProcessorInformation.md +11 -0
- package/docs/PullFundsReversal400Response.md +13 -0
- package/docs/PullFundsReversalRequest.md +9 -0
- package/docs/PushFunds201ResponseErrorInformation.md +1 -1
- package/docs/PushFunds201ResponseProcessorInformation.md +1 -0
- package/docs/PushFunds201ResponseProcessorInformationMerchantAdvice.md +9 -0
- package/docs/PushFundsRequest.md +1 -0
- package/docs/Rbsv1subscriptionsOrderInformation.md +8 -0
- package/docs/Rbsv1subscriptionsidOrderInformationAmountDetails.md +1 -0
- package/docs/Riskv1addressverificationsOrderInformationLineItems.md +1 -1
- package/docs/Riskv1decisionsClientReferenceInformation.md +1 -1
- package/docs/Riskv1decisionsOrderInformationLineItems.md +1 -1
- package/docs/Riskv1liststypeentriesOrderInformationLineItems.md +1 -1
- package/docs/SaveAsymEgressKey.md +1 -1
- package/docs/TmsBinLookupPaymentAccountInformationFeatures.md +4 -1
- package/docs/Tmsv2TokenizedCard.md +1 -1
- package/docs/Tmsv2tokenizeProcessingInformation.md +1 -1
- package/docs/{TransientTokenDataApi.md → TransientTokenDataV2Api.md} +54 -7
- package/docs/Ucv1sessionsAppearance.md +9 -0
- package/docs/Ucv1sessionsAppearanceVariables.md +72 -0
- package/docs/Ucv1sessionsCaptureMandate.md +17 -0
- package/docs/Ucv1sessionsCaptureMandateCPF.md +8 -0
- package/docs/Ucv1sessionsCompleteMandate.md +11 -0
- package/docs/Ucv1sessionsCompleteMandateTms.md +9 -0
- package/docs/Ucv1sessionsData.md +17 -0
- package/docs/Ucv1sessionsDataBuyerInformation.md +12 -0
- package/docs/Ucv1sessionsDataBuyerInformationPersonalIdentification.md +10 -0
- package/docs/Ucv1sessionsDataConsumerAuthenticationInformation.md +10 -0
- package/docs/Ucv1sessionsDataDeviceInformation.md +8 -0
- package/docs/Ucv1sessionsDataMerchantDefinedInformation.md +9 -0
- package/docs/Ucv1sessionsDataMerchantInformation.md +8 -0
- package/docs/Ucv1sessionsDataMerchantInformationMerchantDescriptor.md +15 -0
- package/docs/Ucv1sessionsDataOrderInformation.md +12 -0
- package/docs/Ucv1sessionsDataOrderInformationAmountDetails.md +15 -0
- package/docs/Ucv1sessionsDataOrderInformationAmountDetailsTaxDetails.md +9 -0
- package/docs/Ucv1sessionsDataOrderInformationBillTo.md +26 -0
- package/docs/Ucv1sessionsDataOrderInformationBillToCompany.md +14 -0
- package/docs/Ucv1sessionsDataPaymentInformation.md +8 -0
- package/docs/Ucv1sessionsDataPaymentInformationCard.md +8 -0
- package/docs/Ucv1sessionsDataProcessingInformation.md +12 -0
- package/docs/Ucv1sessionsDataProcessingInformationAuthorizationOptions.md +12 -0
- package/docs/Ucv1sessionsDataProcessingInformationAuthorizationOptionsInitiator.md +9 -0
- package/docs/Ucv1sessionsDataRecipientInformation.md +16 -0
- package/docs/Ucv1sessionsPaymentConfigurations.md +10 -0
- package/docs/Ucv1sessionsPaymentConfigurationsCLICKTOPAY.md +8 -0
- package/docs/Ucv1sessionsPaymentConfigurationsGOOGLEPAY.md +8 -0
- package/docs/Ucv1sessionsPaymentConfigurationsTMSTOKEN.md +10 -0
- package/docs/Ucv1sessionsPaymentConfigurationsTMSTOKENCustomer.md +8 -0
- package/docs/Ucv1sessionsPaymentConfigurationsTMSTOKENInstrumentIdentifiers.md +8 -0
- package/docs/Ucv1sessionsPaymentConfigurationsTMSTOKENPaymentInstruments.md +8 -0
- package/docs/Ucv1sessionsTransientTokenResponseOptions.md +8 -0
- package/docs/UnifiedCheckoutV1CaptureContextApi.md +55 -0
- package/docs/Upv1capturecontextsDataOrderInformationBillToCompany.md +3 -3
- package/docs/Upv1capturecontextsOrderInformation.md +1 -1
- package/docs/Upv1capturecontextsOrderInformationBillTo.md +26 -0
- package/docs/Upv1capturecontextsOrderInformationBillToCompany.md +18 -0
- package/docs/ValidateExportComplianceRequest.md +1 -1
- package/docs/ValidateRequest.md +1 -1
- package/docs/Vasv1currencyconversionClientReferenceInformation.md +12 -0
- package/docs/Vasv1currencyconversionClientReferenceInformationPartner.md +9 -0
- package/docs/Vasv1currencyconversionOrderInformation.md +9 -0
- package/docs/Vasv1currencyconversionOrderInformationAmountDetails.md +9 -0
- package/docs/Vasv1currencyconversionOrderInformationCurrencyConversion.md +8 -0
- package/docs/Vasv1currencyconversionPaymentInformation.md +8 -0
- package/docs/Vasv1currencyconversionPaymentInformationCard.md +8 -0
- package/docs/Vasv1currencyconversionPointOfSaleInformation.md +9 -0
- package/docs/VerifyCustomerAddressRequest.md +1 -1
- package/package.json +5 -2
- package/src/api/BankAccountValidationApi.js +4 -4
- package/src/api/CustomerApi.js +4 -4
- package/src/api/CustomerPaymentInstrumentApi.js +4 -4
- package/src/api/CustomerShippingAddressApi.js +4 -4
- package/src/api/DeviceDeAssociationApi.js +4 -4
- package/src/api/DeviceSearchApi.js +4 -4
- package/src/api/InstrumentIdentifierApi.js +4 -4
- package/src/api/ManageWebhooksApi.js +4 -4
- package/src/api/MerchantBoardingApi.js +4 -4
- package/src/api/MerchantDefinedFieldsApi.js +4 -4
- package/src/api/OffersApi.js +107 -4
- package/src/api/PaymentInstrumentApi.js +4 -4
- package/src/api/PlansApi.js +4 -4
- package/src/api/PullFundsApi.js +392 -0
- package/src/api/SubscriptionsApi.js +4 -4
- package/src/api/SubscriptionsFollowOnsApi.js +4 -4
- package/src/api/TokenApi.js +4 -4
- package/src/api/TokenizedCardApi.js +4 -4
- package/src/api/{TransientTokenDataApi.js → TransientTokenDataV2Api.js} +75 -10
- package/src/api/UnifiedCheckoutV1CaptureContextApi.js +120 -0
- package/src/authentication/core/MerchantConfig.js +7 -1
- package/src/authentication/jwt/JWTSigToken.js +104 -32
- package/src/authentication/util/Constants.js +1 -0
- package/src/index.js +761 -56
- package/src/model/AddNegativeListRequest.js +6 -6
- package/src/model/Boardingv1registrationsIntegrationInformation.js +12 -4
- package/src/model/Boardingv1registrationsIntegrationInformationMsd.js +82 -0
- package/src/model/CheckPayerAuthEnrollmentRequest.js +6 -6
- package/src/model/CreateSubscriptionRequest.js +6 -6
- package/src/model/CreateSubscriptionRequest1.js +6 -6
- package/src/model/FraudMarkingActionRequest.js +6 -6
- package/src/model/GenerateUnifiedCheckoutV1CaptureContextRequest.js +184 -0
- package/src/model/GetAllSubscriptionsResponseOrderInformation.js +6 -6
- package/src/model/GetAllSubscriptionsResponseOrderInformationAmountDetails.js +108 -0
- package/src/model/GetAllSubscriptionsResponseOrderInformationAmountDetailsSurcharge.js +82 -0
- package/src/model/InlineResponse20016.js +8 -8
- package/src/model/InlineResponse2005IntegrationInformation.js +12 -4
- package/src/model/InlineResponse2011TokenizedCard.js +1 -1
- package/src/model/InlineResponse2019.js +135 -0
- package/src/model/{Kmsegressv2keysasymClientReferenceInformation.js → InlineResponse2019ClientReferenceInformation.js} +9 -10
- package/src/model/{InlineResponse20016ErrorInformation.js → InlineResponse2019ErrorInformation.js} +8 -8
- package/src/model/InlineResponse2019OrderInformation.js +81 -0
- package/src/model/{InlineResponse20016OrderInformationCurrencyConversion.js → InlineResponse2019OrderInformationCurrencyConversion.js} +13 -13
- package/src/model/{InlineResponse20016OrderInformationCurrencyConversionOffer.js → InlineResponse2019OrderInformationCurrencyConversionOffer.js} +8 -8
- package/src/model/InlineResponse2019ProcessorInformation.js +82 -0
- package/src/model/InlineResponse40010.js +129 -0
- package/src/model/InlineResponse404.js +8 -18
- package/src/model/InlineResponse4041.js +8 -35
- package/src/model/InlineResponse4042.js +15 -14
- package/src/model/{InlineResponse4041Details.js → InlineResponse4042Details.js} +8 -8
- package/src/model/InlineResponse4043.js +26 -6
- package/src/model/InlineResponse4044.js +12 -24
- package/src/model/{InlineResponse4043Details.js → InlineResponse4044Details.js} +8 -8
- package/src/model/InlineResponse4045.js +17 -17
- package/src/model/InlineResponse4046.js +109 -0
- package/src/model/InlineResponse404Errors.js +91 -0
- package/src/model/{InlineResponse5004.js → InlineResponse5022.js} +8 -8
- package/src/model/OfferRequest.js +105 -0
- package/src/model/PayerAuthSetupRequest.js +6 -6
- package/src/model/PaymentsProductsUnifiedCheckoutSubscriptionInformationFeatures.js +164 -4
- package/src/model/PaymentsProductsUnifiedCheckoutSubscriptionInformationFeaturesAfterPay.js +82 -0
- package/src/model/PaymentsProductsUnifiedCheckoutSubscriptionInformationFeaturesApplePay.js +82 -0
- package/src/model/PaymentsProductsUnifiedCheckoutSubscriptionInformationFeaturesBancontact.js +82 -0
- package/src/model/PaymentsProductsUnifiedCheckoutSubscriptionInformationFeaturesClickToPay.js +82 -0
- package/src/model/PaymentsProductsUnifiedCheckoutSubscriptionInformationFeaturesDecisionManager.js +82 -0
- package/src/model/PaymentsProductsUnifiedCheckoutSubscriptionInformationFeaturesDragonPay.js +82 -0
- package/src/model/PaymentsProductsUnifiedCheckoutSubscriptionInformationFeaturesECheck.js +82 -0
- package/src/model/PaymentsProductsUnifiedCheckoutSubscriptionInformationFeaturesGooglePay.js +82 -0
- package/src/model/PaymentsProductsUnifiedCheckoutSubscriptionInformationFeaturesIdeal.js +82 -0
- package/src/model/PaymentsProductsUnifiedCheckoutSubscriptionInformationFeaturesKonbini.js +82 -0
- package/src/model/PaymentsProductsUnifiedCheckoutSubscriptionInformationFeaturesMultibanco.js +82 -0
- package/src/model/PaymentsProductsUnifiedCheckoutSubscriptionInformationFeaturesMyBank.js +82 -0
- package/src/model/PaymentsProductsUnifiedCheckoutSubscriptionInformationFeaturesP24.js +82 -0
- package/src/model/PaymentsProductsUnifiedCheckoutSubscriptionInformationFeaturesPayPal.js +82 -0
- package/src/model/PaymentsProductsUnifiedCheckoutSubscriptionInformationFeaturesPayerAuthentication.js +82 -0
- package/src/model/PaymentsProductsUnifiedCheckoutSubscriptionInformationFeaturesPortfolioAccessofSensitiveData.js +82 -0
- package/src/model/PaymentsProductsUnifiedCheckoutSubscriptionInformationFeaturesTinkPayByBank.js +82 -0
- package/src/model/PaymentsProductsUnifiedCheckoutSubscriptionInformationFeaturesTokenManagement.js +82 -0
- package/src/model/PaymentsProductsUnifiedCheckoutSubscriptionInformationFeaturesUnifiedClickToPaySDK.js +82 -0
- package/src/model/PaymentsProductsUnifiedCheckoutSubscriptionInformationFeaturesVenmo.js +82 -0
- package/src/model/PtsV2CreditsPost201Response.js +12 -4
- package/src/model/PtsV2IncrementalAuthorizationPatch201ResponseErrorInformation.js +1 -1
- package/src/model/PtsV2PaymentsCapturesPost201ResponseProcessorInformation.js +1 -1
- package/src/model/PtsV2PaymentsPost201ResponseErrorInformation.js +1 -1
- package/src/model/PtsV2PaymentsRefundPost201Response.js +12 -4
- package/src/model/PtsV2PaymentsRefundPost201ResponseErrorInformation.js +99 -0
- package/src/model/Ptsv1pullfundstransferAggregatorInformation.js +144 -0
- package/src/model/Ptsv1pullfundstransferAggregatorInformationSubMerchant.js +82 -0
- package/src/model/Ptsv1pullfundstransferClientReferenceInformation.js +109 -0
- package/src/model/Ptsv1pullfundstransferMerchantInformation.js +81 -0
- package/src/model/Ptsv1pullfundstransferMerchantInformationMerchantDescriptor.js +163 -0
- package/src/model/Ptsv1pullfundstransferOrderInformation.js +90 -0
- package/src/model/Ptsv1pullfundstransferOrderInformationAmountDetails.js +119 -0
- package/src/model/Ptsv1pullfundstransferProcessingInformation.js +134 -0
- package/src/model/Ptsv1pullfundstransferProcessingInformationFundingOptions.js +81 -0
- package/src/model/Ptsv1pullfundstransferProcessingInformationFundingOptionsInitiator.js +108 -0
- package/src/model/Ptsv1pullfundstransferProcessingInformationFundingOptionsInitiatorOriginatorInitiatedTransaction.js +91 -0
- package/src/model/Ptsv1pullfundstransferProcessingInformationPayoutsOptions.js +82 -0
- package/src/model/Ptsv1pullfundstransferProcessingInformationRecurringOptions.js +82 -0
- package/src/model/Ptsv1pullfundstransferRecipientInformation.js +288 -0
- package/src/model/Ptsv1pullfundstransferRecipientInformationPersonalIdentification.js +109 -0
- package/src/model/Ptsv1pullfundstransferSenderInformation.js +285 -0
- package/src/model/Ptsv1pullfundstransferSenderInformationAccount.js +91 -0
- package/src/model/Ptsv1pullfundstransferSenderInformationConsumerAuthentication.js +90 -0
- package/src/model/Ptsv1pullfundstransferSenderInformationConsumerAuthenticationStrongAuthentication.js +118 -0
- package/src/model/Ptsv1pullfundstransferSenderInformationPaymentInformation.js +122 -0
- package/src/model/Ptsv1pullfundstransferSenderInformationPaymentInformationCard.js +118 -0
- package/src/model/Ptsv1pullfundstransferSenderInformationPaymentInformationCustomer.js +82 -0
- package/src/model/Ptsv1pullfundstransferSenderInformationPaymentInformationInstrumentIdentifier.js +82 -0
- package/src/model/Ptsv1pullfundstransferSenderInformationPaymentInformationPaymentInstrument.js +82 -0
- package/src/model/Ptsv1pullfundstransferSenderInformationPaymentInformationTokenizedCard.js +127 -0
- package/src/model/Ptsv1pullfundstransferSenderInformationPersonalIdentification.js +109 -0
- package/src/model/Ptsv1pullfundstransferidrefundOrderInformation.js +82 -0
- package/src/model/Ptsv1pullfundstransferidrefundOrderInformationAmountDetails.js +83 -0
- package/src/model/Ptsv1pullfundstransferidreversalReversalInformation.js +82 -0
- package/src/model/Ptsv1pullfundstransferidreversalReversalInformationAmountDetails.js +83 -0
- package/src/model/Ptsv1pushfundstransferMerchantInformation.js +14 -6
- package/src/model/Ptsv1pushfundstransferMerchantInformationMerchantDescriptor.js +136 -0
- package/src/model/Ptsv1pushfundstransferPaymentInformation.js +105 -0
- package/src/model/Ptsv1pushfundstransferPaymentInformationCard.js +118 -0
- package/src/model/Ptsv1pushfundstransferPaymentInformationCustomer.js +82 -0
- package/src/model/Ptsv1pushfundstransferPaymentInformationInstrumentIdentifier.js +82 -0
- package/src/model/Ptsv1pushfundstransferPaymentInformationPaymentInstrument.js +82 -0
- package/src/model/Ptsv1pushfundstransferProcessingInformation.js +9 -0
- package/src/model/Ptsv1pushfundstransferProcessingInformationPayoutsOptions.js +1 -1
- package/src/model/Ptsv1pushfundstransferRecipientInformationPaymentInformationCard.js +1 -1
- package/src/model/Ptsv2creditsProcessingInformation.js +9 -0
- package/src/model/Ptsv2creditsSenderInformation.js +9 -0
- package/src/model/Ptsv2paymentsProcessingInformation.js +9 -0
- package/src/model/Ptsv2paymentsidrefundsProcessingInformation.js +9 -0
- package/src/model/Ptsv2payoutsProcessingInformationPayoutsOptions.js +1 -1
- package/src/model/PullFunds201Response.js +132 -0
- package/src/model/PullFunds201ResponseErrorInformation.js +99 -0
- package/src/model/PullFunds201ResponseErrorInformationDetails.js +91 -0
- package/src/model/PullFunds201ResponseLinks.js +121 -0
- package/src/model/PullFunds201ResponseLinksCustomer.js +92 -0
- package/src/model/PullFunds201ResponseLinksInstrumentIdentifier.js +92 -0
- package/src/model/PullFunds201ResponseLinksPaymentInstrument.js +92 -0
- package/src/model/PullFunds201ResponseLinksRefund.js +92 -0
- package/src/model/PullFunds201ResponseLinksReversal.js +92 -0
- package/src/model/PullFunds201ResponseLinksSelf.js +92 -0
- package/src/model/PullFunds201ResponseOrderInformation.js +81 -0
- package/src/model/PullFunds201ResponseOrderInformationAmountDetails.js +91 -0
- package/src/model/PullFunds201ResponseProcessorInformation.js +143 -0
- package/src/model/PullFunds201ResponseProcessorInformationAvs.js +82 -0
- package/src/model/PullFunds201ResponseProcessorInformationConsumerAuthenticationResponse.js +82 -0
- package/src/model/PullFundsRefund201Response.js +124 -0
- package/src/model/PullFundsRefund201ResponseLinks.js +81 -0
- package/src/model/PullFundsRefund201ResponseLinksSelf.js +92 -0
- package/src/model/PullFundsRefund201ResponseProcessorInformation.js +91 -0
- package/src/model/PullFundsRefundRequest.js +90 -0
- package/src/model/PullFundsRequest.js +129 -0
- package/src/model/PullFundsReversal201Response.js +124 -0
- package/src/model/PullFundsReversal201ResponseErrorInformation.js +99 -0
- package/src/model/PullFundsReversal201ResponseErrorInformationDetails.js +91 -0
- package/src/model/PullFundsReversal201ResponseLinks.js +81 -0
- package/src/model/PullFundsReversal201ResponseLinksSelf.js +92 -0
- package/src/model/PullFundsReversal201ResponseProcessorInformation.js +109 -0
- package/src/model/PullFundsReversal400Response.js +126 -0
- package/src/model/PullFundsReversalRequest.js +90 -0
- package/src/model/PushFunds201ResponseErrorInformation.js +1 -1
- package/src/model/PushFunds201ResponseProcessorInformation.js +12 -4
- package/src/model/PushFunds201ResponseProcessorInformationMerchantAdvice.js +91 -0
- package/src/model/PushFundsRequest.js +12 -4
- package/src/model/Rbsv1subscriptionsOrderInformation.js +81 -0
- package/src/model/Rbsv1subscriptionsidOrderInformationAmountDetails.js +12 -4
- package/src/model/Riskv1addressverificationsOrderInformationLineItems.js +3 -4
- package/src/model/Riskv1decisionsClientReferenceInformation.js +2 -3
- package/src/model/Riskv1decisionsOrderInformationLineItems.js +1 -1
- package/src/model/Riskv1liststypeentriesOrderInformationLineItems.js +1 -1
- package/src/model/SaveAsymEgressKey.js +6 -6
- package/src/model/TmsBinLookupPaymentAccountInformationFeatures.js +28 -1
- package/src/model/Tmsv2TokenizedCard.js +1 -1
- package/src/model/Tmsv2tokenizeProcessingInformation.js +1 -1
- package/src/model/Ucv1sessionsAppearance.js +91 -0
- package/src/model/Ucv1sessionsAppearanceVariables.js +659 -0
- package/src/model/Ucv1sessionsCaptureMandate.js +162 -0
- package/src/model/Ucv1sessionsCaptureMandateCPF.js +82 -0
- package/src/model/Ucv1sessionsCompleteMandate.js +109 -0
- package/src/model/Ucv1sessionsCompleteMandateTms.js +92 -0
- package/src/model/Ucv1sessionsData.js +153 -0
- package/src/model/Ucv1sessionsDataBuyerInformation.js +117 -0
- package/src/model/Ucv1sessionsDataBuyerInformationPersonalIdentification.js +100 -0
- package/src/model/Ucv1sessionsDataConsumerAuthenticationInformation.js +100 -0
- package/src/model/Ucv1sessionsDataDeviceInformation.js +82 -0
- package/src/model/Ucv1sessionsDataMerchantDefinedInformation.js +92 -0
- package/src/model/{InlineResponse20016OrderInformation.js → Ucv1sessionsDataMerchantInformation.js} +15 -15
- package/src/model/Ucv1sessionsDataMerchantInformationMerchantDescriptor.js +145 -0
- package/src/model/Ucv1sessionsDataOrderInformation.js +113 -0
- package/src/model/Ucv1sessionsDataOrderInformationAmountDetails.js +143 -0
- package/src/model/Ucv1sessionsDataOrderInformationAmountDetailsTaxDetails.js +91 -0
- package/src/model/Ucv1sessionsDataOrderInformationBillTo.js +243 -0
- package/src/model/Ucv1sessionsDataOrderInformationBillToCompany.js +136 -0
- package/src/model/Ucv1sessionsDataPaymentInformation.js +81 -0
- package/src/model/Ucv1sessionsDataPaymentInformationCard.js +82 -0
- package/src/model/Ucv1sessionsDataProcessingInformation.js +117 -0
- package/src/model/Ucv1sessionsDataProcessingInformationAuthorizationOptions.js +117 -0
- package/src/model/Ucv1sessionsDataProcessingInformationAuthorizationOptionsInitiator.js +90 -0
- package/src/model/Ucv1sessionsDataRecipientInformation.js +151 -0
- package/src/model/Ucv1sessionsPaymentConfigurations.js +98 -0
- package/src/model/Ucv1sessionsPaymentConfigurationsCLICKTOPAY.js +82 -0
- package/src/model/Ucv1sessionsPaymentConfigurationsGOOGLEPAY.js +82 -0
- package/src/model/Ucv1sessionsPaymentConfigurationsTMSTOKEN.js +100 -0
- package/src/model/Ucv1sessionsPaymentConfigurationsTMSTOKENCustomer.js +82 -0
- package/src/model/Ucv1sessionsPaymentConfigurationsTMSTOKENInstrumentIdentifiers.js +81 -0
- package/src/model/Ucv1sessionsPaymentConfigurationsTMSTOKENPaymentInstruments.js +81 -0
- package/src/model/Ucv1sessionsTransientTokenResponseOptions.js +82 -0
- package/src/model/Upv1capturecontextsDataOrderInformationBillToCompany.js +10 -10
- package/src/model/Upv1capturecontextsOrderInformation.js +6 -6
- package/src/model/Upv1capturecontextsOrderInformationBillTo.js +243 -0
- package/src/model/Upv1capturecontextsOrderInformationBillToCompany.js +172 -0
- package/src/model/ValidateExportComplianceRequest.js +6 -6
- package/src/model/ValidateRequest.js +6 -6
- package/src/model/Vasv1currencyconversionClientReferenceInformation.js +117 -0
- package/src/model/Vasv1currencyconversionClientReferenceInformationPartner.js +91 -0
- package/src/model/Vasv1currencyconversionOrderInformation.js +89 -0
- package/src/model/Vasv1currencyconversionOrderInformationAmountDetails.js +91 -0
- package/src/model/Vasv1currencyconversionOrderInformationCurrencyConversion.js +83 -0
- package/src/model/Vasv1currencyconversionPaymentInformation.js +81 -0
- package/src/model/Vasv1currencyconversionPaymentInformationCard.js +82 -0
- package/src/model/Vasv1currencyconversionPointOfSaleInformation.js +91 -0
- package/src/model/VerifyCustomerAddressRequest.js +6 -6
- package/docs/InlineResponse20016OrderInformation.md +0 -8
- package/docs/Kmsegressv2keysasymClientReferenceInformation.md +0 -8
- package/docs/Riskv1authenticationsetupsClientReferenceInformation.md +0 -11
- package/docs/Riskv1liststypeentriesClientReferenceInformation.md +0 -10
- package/src/model/Riskv1authenticationsetupsClientReferenceInformation.js +0 -108
- package/src/model/Riskv1liststypeentriesClientReferenceInformation.js +0 -100
|
@@ -0,0 +1,392 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CyberSource Merged Spec
|
|
3
|
+
* All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html
|
|
4
|
+
*
|
|
5
|
+
* OpenAPI spec version: 0.0.1
|
|
6
|
+
*
|
|
7
|
+
* NOTE: This class is auto generated by the swagger code generator program.
|
|
8
|
+
* https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
+
*
|
|
10
|
+
* Swagger Codegen version: 2.4.38
|
|
11
|
+
*
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*
|
|
14
|
+
*/
|
|
15
|
+
|
|
16
|
+
(function(root, factory) {
|
|
17
|
+
if (typeof define === 'function' && define.amd) {
|
|
18
|
+
// AMD. Register as an anonymous module.
|
|
19
|
+
define(['Authentication/MLEUtility', 'ApiClient', 'model/PullFunds201Response', 'model/PullFundsRefund201Response', 'model/PullFundsRefundRequest', 'model/PullFundsRequest', 'model/PullFundsReversal201Response', 'model/PullFundsReversal400Response', 'model/PullFundsReversalRequest', 'model/PushFunds400Response', 'model/PushFunds401Response', 'model/PushFunds404Response', 'model/PushFunds502Response'], factory);
|
|
20
|
+
} else if (typeof module === 'object' && module.exports) {
|
|
21
|
+
// CommonJS-like environments that support module.exports, like Node.
|
|
22
|
+
module.exports = factory(require('../authentication/util/MLEUtility'), require('../ApiClient'), require('../model/PullFunds201Response'), require('../model/PullFundsRefund201Response'), require('../model/PullFundsRefundRequest'), require('../model/PullFundsRequest'), require('../model/PullFundsReversal201Response'), require('../model/PullFundsReversal400Response'), require('../model/PullFundsReversalRequest'), require('../model/PushFunds400Response'), require('../model/PushFunds401Response'), require('../model/PushFunds404Response'), require('../model/PushFunds502Response'));
|
|
23
|
+
} else {
|
|
24
|
+
// Browser globals (root is window)
|
|
25
|
+
if (!root.CyberSource) {
|
|
26
|
+
root.CyberSource = {};
|
|
27
|
+
}
|
|
28
|
+
root.CyberSource.PullFundsApi = factory(root.Authentication.MLEUtility, root.CyberSource.ApiClient, root.CyberSource.PullFunds201Response, root.CyberSource.PullFundsRefund201Response, root.CyberSource.PullFundsRefundRequest, root.CyberSource.PullFundsRequest, root.CyberSource.PullFundsReversal201Response, root.CyberSource.PullFundsReversal400Response, root.CyberSource.PullFundsReversalRequest, root.CyberSource.PushFunds400Response, root.CyberSource.PushFunds401Response, root.CyberSource.PushFunds404Response, root.CyberSource.PushFunds502Response);
|
|
29
|
+
}
|
|
30
|
+
}(this, function(MLEUtility, ApiClient, PullFunds201Response, PullFundsRefund201Response, PullFundsRefundRequest, PullFundsRequest, PullFundsReversal201Response, PullFundsReversal400Response, PullFundsReversalRequest, PushFunds400Response, PushFunds401Response, PushFunds404Response, PushFunds502Response) {
|
|
31
|
+
'use strict';
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* PullFunds service.
|
|
35
|
+
* @module api/PullFundsApi
|
|
36
|
+
* @version 0.0.1
|
|
37
|
+
*/
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Constructs a new PullFundsApi.
|
|
41
|
+
* @alias module:api/PullFundsApi
|
|
42
|
+
* @class
|
|
43
|
+
* @param {module:ApiClient} apiClient Optional API client implementation to use,
|
|
44
|
+
* default to {@link module:ApiClient#instance} if unspecified.
|
|
45
|
+
*/
|
|
46
|
+
var exports = function(configObject, apiClient) {
|
|
47
|
+
this.apiClient = apiClient || ApiClient.instance;
|
|
48
|
+
|
|
49
|
+
this.apiClient.setConfiguration(configObject);
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Callback function to receive the result of the createPullFundsRefund operation.
|
|
54
|
+
* @callback module:api/PullFundsApi~createPullFundsRefundCallback
|
|
55
|
+
* @param {String} error Error message, if any.
|
|
56
|
+
* @param {module:model/PullFundsRefund201Response} data The data returned by the service call.
|
|
57
|
+
* @param {String} response The complete HTTP response.
|
|
58
|
+
*/
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Process a Pull Funds Refund
|
|
62
|
+
* Refund an Account Funding Transaction (AFT).
|
|
63
|
+
* @param {module:model/PullFundsRefundRequest} pullFundsRefundRequest
|
|
64
|
+
* @param {String} id The transaction id of a previous Account Funding Transaction.
|
|
65
|
+
* @param {String} contentType
|
|
66
|
+
* @param {String} xRequestid
|
|
67
|
+
* @param {String} vCMerchantId
|
|
68
|
+
* @param {String} vCPermissions
|
|
69
|
+
* @param {String} vCCorrelationId
|
|
70
|
+
* @param {String} vCOrganizationId
|
|
71
|
+
* @param {module:api/PullFundsApi~createPullFundsRefundCallback} callback The callback function, accepting three arguments: error, data, response
|
|
72
|
+
* data is of type: {@link module:model/PullFundsRefund201Response}
|
|
73
|
+
*/
|
|
74
|
+
this.createPullFundsRefund = function(pullFundsRefundRequest, id, contentType, xRequestid, vCMerchantId, vCPermissions, vCCorrelationId, vCOrganizationId, callback) {
|
|
75
|
+
var postBody = pullFundsRefundRequest;
|
|
76
|
+
|
|
77
|
+
// verify the required parameter 'pullFundsRefundRequest' is set
|
|
78
|
+
if (pullFundsRefundRequest === undefined || pullFundsRefundRequest === null) {
|
|
79
|
+
throw new Error("Missing the required parameter 'pullFundsRefundRequest' when calling createPullFundsRefund");
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
// verify the required parameter 'id' is set
|
|
83
|
+
if (id === undefined || id === null) {
|
|
84
|
+
throw new Error("Missing the required parameter 'id' when calling createPullFundsRefund");
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
// verify the required parameter 'contentType' is set
|
|
88
|
+
if (contentType === undefined || contentType === null) {
|
|
89
|
+
throw new Error("Missing the required parameter 'contentType' when calling createPullFundsRefund");
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
// verify the required parameter 'xRequestid' is set
|
|
93
|
+
if (xRequestid === undefined || xRequestid === null) {
|
|
94
|
+
throw new Error("Missing the required parameter 'xRequestid' when calling createPullFundsRefund");
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
// verify the required parameter 'vCMerchantId' is set
|
|
98
|
+
if (vCMerchantId === undefined || vCMerchantId === null) {
|
|
99
|
+
throw new Error("Missing the required parameter 'vCMerchantId' when calling createPullFundsRefund");
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
// verify the required parameter 'vCPermissions' is set
|
|
103
|
+
if (vCPermissions === undefined || vCPermissions === null) {
|
|
104
|
+
throw new Error("Missing the required parameter 'vCPermissions' when calling createPullFundsRefund");
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
// verify the required parameter 'vCCorrelationId' is set
|
|
108
|
+
if (vCCorrelationId === undefined || vCCorrelationId === null) {
|
|
109
|
+
throw new Error("Missing the required parameter 'vCCorrelationId' when calling createPullFundsRefund");
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
// verify the required parameter 'vCOrganizationId' is set
|
|
113
|
+
if (vCOrganizationId === undefined || vCOrganizationId === null) {
|
|
114
|
+
throw new Error("Missing the required parameter 'vCOrganizationId' when calling createPullFundsRefund");
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
var SdkTracker = require('../utilities/tracking/SdkTracker');
|
|
118
|
+
|
|
119
|
+
var sdkTracker = new SdkTracker();
|
|
120
|
+
postBody = sdkTracker.insertDeveloperIdTracker(postBody, 'module:model/PullFundsRefundRequest', this.apiClient.merchantConfig.runEnvironment, this.apiClient.merchantConfig.defaultDeveloperId);
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
var pathParams = {
|
|
124
|
+
'id': id
|
|
125
|
+
};
|
|
126
|
+
var queryParams = {
|
|
127
|
+
};
|
|
128
|
+
var headerParams = {
|
|
129
|
+
'Content-Type': contentType,
|
|
130
|
+
'x-requestid': xRequestid,
|
|
131
|
+
'v-c-merchant-id': vCMerchantId,
|
|
132
|
+
'v-c-permissions': vCPermissions,
|
|
133
|
+
'v-c-correlation-id': vCCorrelationId,
|
|
134
|
+
'v-c-organization-id': vCOrganizationId
|
|
135
|
+
};
|
|
136
|
+
var formParams = {
|
|
137
|
+
};
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
var authNames = [];
|
|
141
|
+
var contentTypes = ['application/json;charset=utf-8'];
|
|
142
|
+
var accepts = ['application/hal+json;charset=utf-8'];
|
|
143
|
+
var returnType = PullFundsRefund201Response;
|
|
144
|
+
|
|
145
|
+
//check isMLE for an api method 'this.createPullFundsRefund'
|
|
146
|
+
var inboundMLEStatus = 'false';
|
|
147
|
+
var isMLEForApi = MLEUtility.checkIsMLEForAPI(this.apiClient.merchantConfig, inboundMLEStatus, 'createPullFundsRefund');
|
|
148
|
+
const isResponseMLEForApi = MLEUtility.checkIsResponseMLEForAPI(this.apiClient.merchantConfig, ['createPullFundsRefund']);
|
|
149
|
+
|
|
150
|
+
if (isMLEForApi === true) {
|
|
151
|
+
MLEUtility.encryptRequestPayload(this.apiClient.merchantConfig, postBody).then(postBody => {
|
|
152
|
+
return this.apiClient.callApi(
|
|
153
|
+
'/pts/v1/pull-funds-transfer/{id}/refund', 'POST',
|
|
154
|
+
pathParams, queryParams, headerParams, formParams, postBody,
|
|
155
|
+
authNames, contentTypes, accepts, returnType, isResponseMLEForApi, callback
|
|
156
|
+
);
|
|
157
|
+
});
|
|
158
|
+
} else {
|
|
159
|
+
return this.apiClient.callApi(
|
|
160
|
+
'/pts/v1/pull-funds-transfer/{id}/refund', 'POST',
|
|
161
|
+
pathParams, queryParams, headerParams, formParams, postBody,
|
|
162
|
+
authNames, contentTypes, accepts, returnType, isResponseMLEForApi, callback
|
|
163
|
+
);
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
/**
|
|
168
|
+
* Callback function to receive the result of the createPullFundsReversal operation.
|
|
169
|
+
* @callback module:api/PullFundsApi~createPullFundsReversalCallback
|
|
170
|
+
* @param {String} error Error message, if any.
|
|
171
|
+
* @param {module:model/PullFundsReversal201Response} data The data returned by the service call.
|
|
172
|
+
* @param {String} response The complete HTTP response.
|
|
173
|
+
*/
|
|
174
|
+
|
|
175
|
+
/**
|
|
176
|
+
* Process a Pull Funds Reversal
|
|
177
|
+
* Reverse an Account Funding Transaction (AFT).
|
|
178
|
+
* @param {module:model/PullFundsReversalRequest} pullFundsReversalRequest
|
|
179
|
+
* @param {String} id The transaction id of a previous Account Funding Transaction.
|
|
180
|
+
* @param {String} contentType
|
|
181
|
+
* @param {String} xRequestid
|
|
182
|
+
* @param {String} vCMerchantId
|
|
183
|
+
* @param {String} vCPermissions
|
|
184
|
+
* @param {String} vCCorrelationId
|
|
185
|
+
* @param {String} vCOrganizationId
|
|
186
|
+
* @param {module:api/PullFundsApi~createPullFundsReversalCallback} callback The callback function, accepting three arguments: error, data, response
|
|
187
|
+
* data is of type: {@link module:model/PullFundsReversal201Response}
|
|
188
|
+
*/
|
|
189
|
+
this.createPullFundsReversal = function(pullFundsReversalRequest, id, contentType, xRequestid, vCMerchantId, vCPermissions, vCCorrelationId, vCOrganizationId, callback) {
|
|
190
|
+
var postBody = pullFundsReversalRequest;
|
|
191
|
+
|
|
192
|
+
// verify the required parameter 'pullFundsReversalRequest' is set
|
|
193
|
+
if (pullFundsReversalRequest === undefined || pullFundsReversalRequest === null) {
|
|
194
|
+
throw new Error("Missing the required parameter 'pullFundsReversalRequest' when calling createPullFundsReversal");
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
// verify the required parameter 'id' is set
|
|
198
|
+
if (id === undefined || id === null) {
|
|
199
|
+
throw new Error("Missing the required parameter 'id' when calling createPullFundsReversal");
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
// verify the required parameter 'contentType' is set
|
|
203
|
+
if (contentType === undefined || contentType === null) {
|
|
204
|
+
throw new Error("Missing the required parameter 'contentType' when calling createPullFundsReversal");
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
// verify the required parameter 'xRequestid' is set
|
|
208
|
+
if (xRequestid === undefined || xRequestid === null) {
|
|
209
|
+
throw new Error("Missing the required parameter 'xRequestid' when calling createPullFundsReversal");
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
// verify the required parameter 'vCMerchantId' is set
|
|
213
|
+
if (vCMerchantId === undefined || vCMerchantId === null) {
|
|
214
|
+
throw new Error("Missing the required parameter 'vCMerchantId' when calling createPullFundsReversal");
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
// verify the required parameter 'vCPermissions' is set
|
|
218
|
+
if (vCPermissions === undefined || vCPermissions === null) {
|
|
219
|
+
throw new Error("Missing the required parameter 'vCPermissions' when calling createPullFundsReversal");
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
// verify the required parameter 'vCCorrelationId' is set
|
|
223
|
+
if (vCCorrelationId === undefined || vCCorrelationId === null) {
|
|
224
|
+
throw new Error("Missing the required parameter 'vCCorrelationId' when calling createPullFundsReversal");
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
// verify the required parameter 'vCOrganizationId' is set
|
|
228
|
+
if (vCOrganizationId === undefined || vCOrganizationId === null) {
|
|
229
|
+
throw new Error("Missing the required parameter 'vCOrganizationId' when calling createPullFundsReversal");
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
var SdkTracker = require('../utilities/tracking/SdkTracker');
|
|
233
|
+
|
|
234
|
+
var sdkTracker = new SdkTracker();
|
|
235
|
+
postBody = sdkTracker.insertDeveloperIdTracker(postBody, 'module:model/PullFundsReversalRequest', this.apiClient.merchantConfig.runEnvironment, this.apiClient.merchantConfig.defaultDeveloperId);
|
|
236
|
+
|
|
237
|
+
|
|
238
|
+
var pathParams = {
|
|
239
|
+
'id': id
|
|
240
|
+
};
|
|
241
|
+
var queryParams = {
|
|
242
|
+
};
|
|
243
|
+
var headerParams = {
|
|
244
|
+
'Content-Type': contentType,
|
|
245
|
+
'x-requestid': xRequestid,
|
|
246
|
+
'v-c-merchant-id': vCMerchantId,
|
|
247
|
+
'v-c-permissions': vCPermissions,
|
|
248
|
+
'v-c-correlation-id': vCCorrelationId,
|
|
249
|
+
'v-c-organization-id': vCOrganizationId
|
|
250
|
+
};
|
|
251
|
+
var formParams = {
|
|
252
|
+
};
|
|
253
|
+
|
|
254
|
+
|
|
255
|
+
var authNames = [];
|
|
256
|
+
var contentTypes = ['application/json;charset=utf-8'];
|
|
257
|
+
var accepts = ['application/hal+json;charset=utf-8'];
|
|
258
|
+
var returnType = PullFundsReversal201Response;
|
|
259
|
+
|
|
260
|
+
//check isMLE for an api method 'this.createPullFundsReversal'
|
|
261
|
+
var inboundMLEStatus = 'false';
|
|
262
|
+
var isMLEForApi = MLEUtility.checkIsMLEForAPI(this.apiClient.merchantConfig, inboundMLEStatus, 'createPullFundsReversal');
|
|
263
|
+
const isResponseMLEForApi = MLEUtility.checkIsResponseMLEForAPI(this.apiClient.merchantConfig, ['createPullFundsReversal']);
|
|
264
|
+
|
|
265
|
+
if (isMLEForApi === true) {
|
|
266
|
+
MLEUtility.encryptRequestPayload(this.apiClient.merchantConfig, postBody).then(postBody => {
|
|
267
|
+
return this.apiClient.callApi(
|
|
268
|
+
'/pts/v1/pull-funds-transfer/{id}/reversal', 'POST',
|
|
269
|
+
pathParams, queryParams, headerParams, formParams, postBody,
|
|
270
|
+
authNames, contentTypes, accepts, returnType, isResponseMLEForApi, callback
|
|
271
|
+
);
|
|
272
|
+
});
|
|
273
|
+
} else {
|
|
274
|
+
return this.apiClient.callApi(
|
|
275
|
+
'/pts/v1/pull-funds-transfer/{id}/reversal', 'POST',
|
|
276
|
+
pathParams, queryParams, headerParams, formParams, postBody,
|
|
277
|
+
authNames, contentTypes, accepts, returnType, isResponseMLEForApi, callback
|
|
278
|
+
);
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
/**
|
|
283
|
+
* Callback function to receive the result of the createPullFundsTransfer operation.
|
|
284
|
+
* @callback module:api/PullFundsApi~createPullFundsTransferCallback
|
|
285
|
+
* @param {String} error Error message, if any.
|
|
286
|
+
* @param {module:model/PullFunds201Response} data The data returned by the service call.
|
|
287
|
+
* @param {String} response The complete HTTP response.
|
|
288
|
+
*/
|
|
289
|
+
|
|
290
|
+
/**
|
|
291
|
+
* Process a Pull Funds Transfer
|
|
292
|
+
* Receive funds using an Account Funding Transaction (AFT).
|
|
293
|
+
* @param {module:model/PullFundsRequest} pullFundsRequest
|
|
294
|
+
* @param {String} contentType
|
|
295
|
+
* @param {String} xRequestid
|
|
296
|
+
* @param {String} vCMerchantId
|
|
297
|
+
* @param {String} vCPermissions
|
|
298
|
+
* @param {String} vCCorrelationId
|
|
299
|
+
* @param {String} vCOrganizationId
|
|
300
|
+
* @param {module:api/PullFundsApi~createPullFundsTransferCallback} callback The callback function, accepting three arguments: error, data, response
|
|
301
|
+
* data is of type: {@link module:model/PullFunds201Response}
|
|
302
|
+
*/
|
|
303
|
+
this.createPullFundsTransfer = function(pullFundsRequest, contentType, xRequestid, vCMerchantId, vCPermissions, vCCorrelationId, vCOrganizationId, callback) {
|
|
304
|
+
var postBody = pullFundsRequest;
|
|
305
|
+
|
|
306
|
+
// verify the required parameter 'pullFundsRequest' is set
|
|
307
|
+
if (pullFundsRequest === undefined || pullFundsRequest === null) {
|
|
308
|
+
throw new Error("Missing the required parameter 'pullFundsRequest' when calling createPullFundsTransfer");
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
// verify the required parameter 'contentType' is set
|
|
312
|
+
if (contentType === undefined || contentType === null) {
|
|
313
|
+
throw new Error("Missing the required parameter 'contentType' when calling createPullFundsTransfer");
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
// verify the required parameter 'xRequestid' is set
|
|
317
|
+
if (xRequestid === undefined || xRequestid === null) {
|
|
318
|
+
throw new Error("Missing the required parameter 'xRequestid' when calling createPullFundsTransfer");
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
// verify the required parameter 'vCMerchantId' is set
|
|
322
|
+
if (vCMerchantId === undefined || vCMerchantId === null) {
|
|
323
|
+
throw new Error("Missing the required parameter 'vCMerchantId' when calling createPullFundsTransfer");
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
// verify the required parameter 'vCPermissions' is set
|
|
327
|
+
if (vCPermissions === undefined || vCPermissions === null) {
|
|
328
|
+
throw new Error("Missing the required parameter 'vCPermissions' when calling createPullFundsTransfer");
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
// verify the required parameter 'vCCorrelationId' is set
|
|
332
|
+
if (vCCorrelationId === undefined || vCCorrelationId === null) {
|
|
333
|
+
throw new Error("Missing the required parameter 'vCCorrelationId' when calling createPullFundsTransfer");
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
// verify the required parameter 'vCOrganizationId' is set
|
|
337
|
+
if (vCOrganizationId === undefined || vCOrganizationId === null) {
|
|
338
|
+
throw new Error("Missing the required parameter 'vCOrganizationId' when calling createPullFundsTransfer");
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
var SdkTracker = require('../utilities/tracking/SdkTracker');
|
|
342
|
+
|
|
343
|
+
var sdkTracker = new SdkTracker();
|
|
344
|
+
postBody = sdkTracker.insertDeveloperIdTracker(postBody, 'module:model/PullFundsRequest', this.apiClient.merchantConfig.runEnvironment, this.apiClient.merchantConfig.defaultDeveloperId);
|
|
345
|
+
|
|
346
|
+
|
|
347
|
+
var pathParams = {
|
|
348
|
+
};
|
|
349
|
+
var queryParams = {
|
|
350
|
+
};
|
|
351
|
+
var headerParams = {
|
|
352
|
+
'Content-Type': contentType,
|
|
353
|
+
'x-requestid': xRequestid,
|
|
354
|
+
'v-c-merchant-id': vCMerchantId,
|
|
355
|
+
'v-c-permissions': vCPermissions,
|
|
356
|
+
'v-c-correlation-id': vCCorrelationId,
|
|
357
|
+
'v-c-organization-id': vCOrganizationId
|
|
358
|
+
};
|
|
359
|
+
var formParams = {
|
|
360
|
+
};
|
|
361
|
+
|
|
362
|
+
|
|
363
|
+
var authNames = [];
|
|
364
|
+
var contentTypes = ['application/json;charset=utf-8'];
|
|
365
|
+
var accepts = ['application/hal+json;charset=utf-8'];
|
|
366
|
+
var returnType = PullFunds201Response;
|
|
367
|
+
|
|
368
|
+
//check isMLE for an api method 'this.createPullFundsTransfer'
|
|
369
|
+
var inboundMLEStatus = 'false';
|
|
370
|
+
var isMLEForApi = MLEUtility.checkIsMLEForAPI(this.apiClient.merchantConfig, inboundMLEStatus, 'createPullFundsTransfer');
|
|
371
|
+
const isResponseMLEForApi = MLEUtility.checkIsResponseMLEForAPI(this.apiClient.merchantConfig, ['createPullFundsTransfer']);
|
|
372
|
+
|
|
373
|
+
if (isMLEForApi === true) {
|
|
374
|
+
MLEUtility.encryptRequestPayload(this.apiClient.merchantConfig, postBody).then(postBody => {
|
|
375
|
+
return this.apiClient.callApi(
|
|
376
|
+
'/pts/v1/pull-funds-transfer', 'POST',
|
|
377
|
+
pathParams, queryParams, headerParams, formParams, postBody,
|
|
378
|
+
authNames, contentTypes, accepts, returnType, isResponseMLEForApi, callback
|
|
379
|
+
);
|
|
380
|
+
});
|
|
381
|
+
} else {
|
|
382
|
+
return this.apiClient.callApi(
|
|
383
|
+
'/pts/v1/pull-funds-transfer', 'POST',
|
|
384
|
+
pathParams, queryParams, headerParams, formParams, postBody,
|
|
385
|
+
authNames, contentTypes, accepts, returnType, isResponseMLEForApi, callback
|
|
386
|
+
);
|
|
387
|
+
}
|
|
388
|
+
}
|
|
389
|
+
};
|
|
390
|
+
|
|
391
|
+
return exports;
|
|
392
|
+
}));
|
|
@@ -16,18 +16,18 @@
|
|
|
16
16
|
(function(root, factory) {
|
|
17
17
|
if (typeof define === 'function' && define.amd) {
|
|
18
18
|
// AMD. Register as an anonymous module.
|
|
19
|
-
define(['Authentication/MLEUtility', 'ApiClient', 'model/ActivateSubscriptionResponse', 'model/CancelSubscriptionResponse', 'model/CreateSubscriptionRequest', 'model/CreateSubscriptionResponse', 'model/GetAllSubscriptionsResponse', 'model/GetSubscriptionCodeResponse', 'model/GetSubscriptionResponse', 'model/InlineResponse4003', 'model/InlineResponse4004', 'model/
|
|
19
|
+
define(['Authentication/MLEUtility', 'ApiClient', 'model/ActivateSubscriptionResponse', 'model/CancelSubscriptionResponse', 'model/CreateSubscriptionRequest', 'model/CreateSubscriptionResponse', 'model/GetAllSubscriptionsResponse', 'model/GetSubscriptionCodeResponse', 'model/GetSubscriptionResponse', 'model/InlineResponse4003', 'model/InlineResponse4004', 'model/InlineResponse4041', 'model/PtsV2PaymentsPost502Response', 'model/SuspendSubscriptionResponse', 'model/UpdateSubscription', 'model/UpdateSubscriptionResponse'], factory);
|
|
20
20
|
} else if (typeof module === 'object' && module.exports) {
|
|
21
21
|
// CommonJS-like environments that support module.exports, like Node.
|
|
22
|
-
module.exports = factory(require('../authentication/util/MLEUtility'), require('../ApiClient'), require('../model/ActivateSubscriptionResponse'), require('../model/CancelSubscriptionResponse'), require('../model/CreateSubscriptionRequest'), require('../model/CreateSubscriptionResponse'), require('../model/GetAllSubscriptionsResponse'), require('../model/GetSubscriptionCodeResponse'), require('../model/GetSubscriptionResponse'), require('../model/InlineResponse4003'), require('../model/InlineResponse4004'), require('../model/
|
|
22
|
+
module.exports = factory(require('../authentication/util/MLEUtility'), require('../ApiClient'), require('../model/ActivateSubscriptionResponse'), require('../model/CancelSubscriptionResponse'), require('../model/CreateSubscriptionRequest'), require('../model/CreateSubscriptionResponse'), require('../model/GetAllSubscriptionsResponse'), require('../model/GetSubscriptionCodeResponse'), require('../model/GetSubscriptionResponse'), require('../model/InlineResponse4003'), require('../model/InlineResponse4004'), require('../model/InlineResponse4041'), require('../model/PtsV2PaymentsPost502Response'), require('../model/SuspendSubscriptionResponse'), require('../model/UpdateSubscription'), require('../model/UpdateSubscriptionResponse'));
|
|
23
23
|
} else {
|
|
24
24
|
// Browser globals (root is window)
|
|
25
25
|
if (!root.CyberSource) {
|
|
26
26
|
root.CyberSource = {};
|
|
27
27
|
}
|
|
28
|
-
root.CyberSource.SubscriptionsApi = factory(root.Authentication.MLEUtility, root.CyberSource.ApiClient, root.CyberSource.ActivateSubscriptionResponse, root.CyberSource.CancelSubscriptionResponse, root.CyberSource.CreateSubscriptionRequest, root.CyberSource.CreateSubscriptionResponse, root.CyberSource.GetAllSubscriptionsResponse, root.CyberSource.GetSubscriptionCodeResponse, root.CyberSource.GetSubscriptionResponse, root.CyberSource.InlineResponse4003, root.CyberSource.InlineResponse4004, root.CyberSource.
|
|
28
|
+
root.CyberSource.SubscriptionsApi = factory(root.Authentication.MLEUtility, root.CyberSource.ApiClient, root.CyberSource.ActivateSubscriptionResponse, root.CyberSource.CancelSubscriptionResponse, root.CyberSource.CreateSubscriptionRequest, root.CyberSource.CreateSubscriptionResponse, root.CyberSource.GetAllSubscriptionsResponse, root.CyberSource.GetSubscriptionCodeResponse, root.CyberSource.GetSubscriptionResponse, root.CyberSource.InlineResponse4003, root.CyberSource.InlineResponse4004, root.CyberSource.InlineResponse4041, root.CyberSource.PtsV2PaymentsPost502Response, root.CyberSource.SuspendSubscriptionResponse, root.CyberSource.UpdateSubscription, root.CyberSource.UpdateSubscriptionResponse);
|
|
29
29
|
}
|
|
30
|
-
}(this, function(MLEUtility, ApiClient, ActivateSubscriptionResponse, CancelSubscriptionResponse, CreateSubscriptionRequest, CreateSubscriptionResponse, GetAllSubscriptionsResponse, GetSubscriptionCodeResponse, GetSubscriptionResponse, InlineResponse4003, InlineResponse4004,
|
|
30
|
+
}(this, function(MLEUtility, ApiClient, ActivateSubscriptionResponse, CancelSubscriptionResponse, CreateSubscriptionRequest, CreateSubscriptionResponse, GetAllSubscriptionsResponse, GetSubscriptionCodeResponse, GetSubscriptionResponse, InlineResponse4003, InlineResponse4004, InlineResponse4041, PtsV2PaymentsPost502Response, SuspendSubscriptionResponse, UpdateSubscription, UpdateSubscriptionResponse) {
|
|
31
31
|
'use strict';
|
|
32
32
|
|
|
33
33
|
/**
|
|
@@ -16,18 +16,18 @@
|
|
|
16
16
|
(function(root, factory) {
|
|
17
17
|
if (typeof define === 'function' && define.amd) {
|
|
18
18
|
// AMD. Register as an anonymous module.
|
|
19
|
-
define(['Authentication/MLEUtility', 'ApiClient', 'model/CreateSubscriptionRequest1', 'model/CreateSubscriptionResponse', 'model/GetSubscriptionResponse1', 'model/InlineResponse4005', 'model/
|
|
19
|
+
define(['Authentication/MLEUtility', 'ApiClient', 'model/CreateSubscriptionRequest1', 'model/CreateSubscriptionResponse', 'model/GetSubscriptionResponse1', 'model/InlineResponse4005', 'model/InlineResponse4041', 'model/PtsV2PaymentsPost502Response'], factory);
|
|
20
20
|
} else if (typeof module === 'object' && module.exports) {
|
|
21
21
|
// CommonJS-like environments that support module.exports, like Node.
|
|
22
|
-
module.exports = factory(require('../authentication/util/MLEUtility'), require('../ApiClient'), require('../model/CreateSubscriptionRequest1'), require('../model/CreateSubscriptionResponse'), require('../model/GetSubscriptionResponse1'), require('../model/InlineResponse4005'), require('../model/
|
|
22
|
+
module.exports = factory(require('../authentication/util/MLEUtility'), require('../ApiClient'), require('../model/CreateSubscriptionRequest1'), require('../model/CreateSubscriptionResponse'), require('../model/GetSubscriptionResponse1'), require('../model/InlineResponse4005'), require('../model/InlineResponse4041'), require('../model/PtsV2PaymentsPost502Response'));
|
|
23
23
|
} else {
|
|
24
24
|
// Browser globals (root is window)
|
|
25
25
|
if (!root.CyberSource) {
|
|
26
26
|
root.CyberSource = {};
|
|
27
27
|
}
|
|
28
|
-
root.CyberSource.SubscriptionsFollowOnsApi = factory(root.Authentication.MLEUtility, root.CyberSource.ApiClient, root.CyberSource.CreateSubscriptionRequest1, root.CyberSource.CreateSubscriptionResponse, root.CyberSource.GetSubscriptionResponse1, root.CyberSource.InlineResponse4005, root.CyberSource.
|
|
28
|
+
root.CyberSource.SubscriptionsFollowOnsApi = factory(root.Authentication.MLEUtility, root.CyberSource.ApiClient, root.CyberSource.CreateSubscriptionRequest1, root.CyberSource.CreateSubscriptionResponse, root.CyberSource.GetSubscriptionResponse1, root.CyberSource.InlineResponse4005, root.CyberSource.InlineResponse4041, root.CyberSource.PtsV2PaymentsPost502Response);
|
|
29
29
|
}
|
|
30
|
-
}(this, function(MLEUtility, ApiClient, CreateSubscriptionRequest1, CreateSubscriptionResponse, GetSubscriptionResponse1, InlineResponse4005,
|
|
30
|
+
}(this, function(MLEUtility, ApiClient, CreateSubscriptionRequest1, CreateSubscriptionResponse, GetSubscriptionResponse1, InlineResponse4005, InlineResponse4041, PtsV2PaymentsPost502Response) {
|
|
31
31
|
'use strict';
|
|
32
32
|
|
|
33
33
|
/**
|
package/src/api/TokenApi.js
CHANGED
|
@@ -16,18 +16,18 @@
|
|
|
16
16
|
(function(root, factory) {
|
|
17
17
|
if (typeof define === 'function' && define.amd) {
|
|
18
18
|
// AMD. Register as an anonymous module.
|
|
19
|
-
define(['Authentication/MLEUtility', 'ApiClient', 'model/InlineResponse2002', 'model/InlineResponse2011', 'model/InlineResponse400', 'model/InlineResponse403', 'model/
|
|
19
|
+
define(['Authentication/MLEUtility', 'ApiClient', 'model/InlineResponse2002', 'model/InlineResponse2011', 'model/InlineResponse400', 'model/InlineResponse403', 'model/InlineResponse404', 'model/InlineResponse409', 'model/InlineResponse410', 'model/InlineResponse500', 'model/PostPaymentCredentialsRequest', 'model/PostPaymentCredentialsRequest1'], factory);
|
|
20
20
|
} else if (typeof module === 'object' && module.exports) {
|
|
21
21
|
// CommonJS-like environments that support module.exports, like Node.
|
|
22
|
-
module.exports = factory(require('../authentication/util/MLEUtility'), require('../ApiClient'), require('../model/InlineResponse2002'), require('../model/InlineResponse2011'), require('../model/InlineResponse400'), require('../model/InlineResponse403'), require('../model/
|
|
22
|
+
module.exports = factory(require('../authentication/util/MLEUtility'), require('../ApiClient'), require('../model/InlineResponse2002'), require('../model/InlineResponse2011'), require('../model/InlineResponse400'), require('../model/InlineResponse403'), require('../model/InlineResponse404'), require('../model/InlineResponse409'), require('../model/InlineResponse410'), require('../model/InlineResponse500'), require('../model/PostPaymentCredentialsRequest'), require('../model/PostPaymentCredentialsRequest1'));
|
|
23
23
|
} else {
|
|
24
24
|
// Browser globals (root is window)
|
|
25
25
|
if (!root.CyberSource) {
|
|
26
26
|
root.CyberSource = {};
|
|
27
27
|
}
|
|
28
|
-
root.CyberSource.TokenApi = factory(root.Authentication.MLEUtility, root.CyberSource.ApiClient, root.CyberSource.InlineResponse2002, root.CyberSource.InlineResponse2011, root.CyberSource.InlineResponse400, root.CyberSource.InlineResponse403, root.CyberSource.
|
|
28
|
+
root.CyberSource.TokenApi = factory(root.Authentication.MLEUtility, root.CyberSource.ApiClient, root.CyberSource.InlineResponse2002, root.CyberSource.InlineResponse2011, root.CyberSource.InlineResponse400, root.CyberSource.InlineResponse403, root.CyberSource.InlineResponse404, root.CyberSource.InlineResponse409, root.CyberSource.InlineResponse410, root.CyberSource.InlineResponse500, root.CyberSource.PostPaymentCredentialsRequest, root.CyberSource.PostPaymentCredentialsRequest1);
|
|
29
29
|
}
|
|
30
|
-
}(this, function(MLEUtility, ApiClient, InlineResponse2002, InlineResponse2011, InlineResponse400, InlineResponse403, InlineResponse409, InlineResponse410,
|
|
30
|
+
}(this, function(MLEUtility, ApiClient, InlineResponse2002, InlineResponse2011, InlineResponse400, InlineResponse403, InlineResponse404, InlineResponse409, InlineResponse410, InlineResponse500, PostPaymentCredentialsRequest, PostPaymentCredentialsRequest1) {
|
|
31
31
|
'use strict';
|
|
32
32
|
|
|
33
33
|
/**
|
|
@@ -16,18 +16,18 @@
|
|
|
16
16
|
(function(root, factory) {
|
|
17
17
|
if (typeof define === 'function' && define.amd) {
|
|
18
18
|
// AMD. Register as an anonymous module.
|
|
19
|
-
define(['Authentication/MLEUtility', 'ApiClient', 'model/InlineResponse2001', 'model/InlineResponse400', 'model/InlineResponse403', 'model/InlineResponse409', 'model/InlineResponse410', 'model/InlineResponse424', 'model/InlineResponse500', 'model/PostIssuerLifeCycleSimulationRequest', 'model/PostTokenizedCardRequest'], factory);
|
|
19
|
+
define(['Authentication/MLEUtility', 'ApiClient', 'model/InlineResponse2001', 'model/InlineResponse400', 'model/InlineResponse403', 'model/InlineResponse404', 'model/InlineResponse409', 'model/InlineResponse410', 'model/InlineResponse424', 'model/InlineResponse500', 'model/PostIssuerLifeCycleSimulationRequest', 'model/PostTokenizedCardRequest'], factory);
|
|
20
20
|
} else if (typeof module === 'object' && module.exports) {
|
|
21
21
|
// CommonJS-like environments that support module.exports, like Node.
|
|
22
|
-
module.exports = factory(require('../authentication/util/MLEUtility'), require('../ApiClient'), require('../model/InlineResponse2001'), require('../model/InlineResponse400'), require('../model/InlineResponse403'), require('../model/InlineResponse409'), require('../model/InlineResponse410'), require('../model/InlineResponse424'), require('../model/InlineResponse500'), require('../model/PostIssuerLifeCycleSimulationRequest'), require('../model/PostTokenizedCardRequest'));
|
|
22
|
+
module.exports = factory(require('../authentication/util/MLEUtility'), require('../ApiClient'), require('../model/InlineResponse2001'), require('../model/InlineResponse400'), require('../model/InlineResponse403'), require('../model/InlineResponse404'), require('../model/InlineResponse409'), require('../model/InlineResponse410'), require('../model/InlineResponse424'), require('../model/InlineResponse500'), require('../model/PostIssuerLifeCycleSimulationRequest'), require('../model/PostTokenizedCardRequest'));
|
|
23
23
|
} else {
|
|
24
24
|
// Browser globals (root is window)
|
|
25
25
|
if (!root.CyberSource) {
|
|
26
26
|
root.CyberSource = {};
|
|
27
27
|
}
|
|
28
|
-
root.CyberSource.TokenizedCardApi = factory(root.Authentication.MLEUtility, root.CyberSource.ApiClient, root.CyberSource.InlineResponse2001, root.CyberSource.InlineResponse400, root.CyberSource.InlineResponse403, root.CyberSource.InlineResponse409, root.CyberSource.InlineResponse410, root.CyberSource.InlineResponse424, root.CyberSource.InlineResponse500, root.CyberSource.PostIssuerLifeCycleSimulationRequest, root.CyberSource.PostTokenizedCardRequest);
|
|
28
|
+
root.CyberSource.TokenizedCardApi = factory(root.Authentication.MLEUtility, root.CyberSource.ApiClient, root.CyberSource.InlineResponse2001, root.CyberSource.InlineResponse400, root.CyberSource.InlineResponse403, root.CyberSource.InlineResponse404, root.CyberSource.InlineResponse409, root.CyberSource.InlineResponse410, root.CyberSource.InlineResponse424, root.CyberSource.InlineResponse500, root.CyberSource.PostIssuerLifeCycleSimulationRequest, root.CyberSource.PostTokenizedCardRequest);
|
|
29
29
|
}
|
|
30
|
-
}(this, function(MLEUtility, ApiClient, InlineResponse2001, InlineResponse400, InlineResponse403, InlineResponse409, InlineResponse410, InlineResponse424, InlineResponse500, PostIssuerLifeCycleSimulationRequest, PostTokenizedCardRequest) {
|
|
30
|
+
}(this, function(MLEUtility, ApiClient, InlineResponse2001, InlineResponse400, InlineResponse403, InlineResponse404, InlineResponse409, InlineResponse410, InlineResponse424, InlineResponse500, PostIssuerLifeCycleSimulationRequest, PostTokenizedCardRequest) {
|
|
31
31
|
'use strict';
|
|
32
32
|
|
|
33
33
|
/**
|
|
@@ -25,20 +25,20 @@
|
|
|
25
25
|
if (!root.CyberSource) {
|
|
26
26
|
root.CyberSource = {};
|
|
27
27
|
}
|
|
28
|
-
root.CyberSource.
|
|
28
|
+
root.CyberSource.TransientTokenDataV2Api = factory(root.Authentication.MLEUtility, root.CyberSource.ApiClient);
|
|
29
29
|
}
|
|
30
30
|
}(this, function(MLEUtility, ApiClient) {
|
|
31
31
|
'use strict';
|
|
32
32
|
|
|
33
33
|
/**
|
|
34
|
-
*
|
|
35
|
-
* @module api/
|
|
34
|
+
* TransientTokenDataV2 service.
|
|
35
|
+
* @module api/TransientTokenDataV2Api
|
|
36
36
|
* @version 0.0.1
|
|
37
37
|
*/
|
|
38
38
|
|
|
39
39
|
/**
|
|
40
|
-
* Constructs a new
|
|
41
|
-
* @alias module:api/
|
|
40
|
+
* Constructs a new TransientTokenDataV2Api.
|
|
41
|
+
* @alias module:api/TransientTokenDataV2Api
|
|
42
42
|
* @class
|
|
43
43
|
* @param {module:ApiClient} apiClient Optional API client implementation to use,
|
|
44
44
|
* default to {@link module:ApiClient#instance} if unspecified.
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
|
|
52
52
|
/**
|
|
53
53
|
* Callback function to receive the result of the getPaymentCredentialsForTransientToken operation.
|
|
54
|
-
* @callback module:api/
|
|
54
|
+
* @callback module:api/TransientTokenDataV2Api~getPaymentCredentialsForTransientTokenCallback
|
|
55
55
|
* @param {String} error Error message, if any.
|
|
56
56
|
* @param {'String'} data The data returned by the service call.
|
|
57
57
|
* @param {String} response The complete HTTP response.
|
|
@@ -60,8 +60,8 @@
|
|
|
60
60
|
/**
|
|
61
61
|
* Get Payment Credentials
|
|
62
62
|
* Retrieve the Payment data captured by Unified Checkout. This API is used to retrieve the detailed data represented by the Transient Token. This API will return PCI payment data captured by the Unified Checkout platform.
|
|
63
|
-
* @param {String} paymentCredentialsReference The paymentCredentialsReference field contained within the Transient token returned from a successful Unified Checkout transaction
|
|
64
|
-
* @param {module:api/
|
|
63
|
+
* @param {String} paymentCredentialsReference The paymentCredentialsReference field contained within the Transient token returned from a successful Unified Checkout transaction.
|
|
64
|
+
* @param {module:api/TransientTokenDataV2Api~getPaymentCredentialsForTransientTokenCallback} callback The callback function, accepting three arguments: error, data, response
|
|
65
65
|
* data is of type: {@link 'String'}
|
|
66
66
|
*/
|
|
67
67
|
this.getPaymentCredentialsForTransientToken = function(paymentCredentialsReference, callback) {
|
|
@@ -117,7 +117,7 @@
|
|
|
117
117
|
|
|
118
118
|
/**
|
|
119
119
|
* Callback function to receive the result of the getTransactionForTransientToken operation.
|
|
120
|
-
* @callback module:api/
|
|
120
|
+
* @callback module:api/TransientTokenDataV2Api~getTransactionForTransientTokenCallback
|
|
121
121
|
* @param {String} error Error message, if any.
|
|
122
122
|
* @param data This operation does not return a value.
|
|
123
123
|
* @param {String} response The complete HTTP response.
|
|
@@ -127,7 +127,7 @@
|
|
|
127
127
|
* Get Transient Token Data
|
|
128
128
|
* Retrieve the data captured by Unified Checkout. This API is used to retrieve the detailed data represented by the Transient Token. This API will not return PCI payment data (PAN). Include the Request ID in the GET request to retrieve the transaction details.
|
|
129
129
|
* @param {String} transientToken Transient Token returned by the Unified Checkout application.
|
|
130
|
-
* @param {module:api/
|
|
130
|
+
* @param {module:api/TransientTokenDataV2Api~getTransactionForTransientTokenCallback} callback The callback function, accepting three arguments: error, data, response
|
|
131
131
|
*/
|
|
132
132
|
this.getTransactionForTransientToken = function(transientToken, callback) {
|
|
133
133
|
var postBody = null;
|
|
@@ -179,6 +179,71 @@
|
|
|
179
179
|
);
|
|
180
180
|
}
|
|
181
181
|
}
|
|
182
|
+
|
|
183
|
+
/**
|
|
184
|
+
* Callback function to receive the result of the getTransactionForTransientTokenJTI operation.
|
|
185
|
+
* @callback module:api/TransientTokenDataV2Api~getTransactionForTransientTokenJTICallback
|
|
186
|
+
* @param {String} error Error message, if any.
|
|
187
|
+
* @param data This operation does not return a value.
|
|
188
|
+
* @param {String} response The complete HTTP response.
|
|
189
|
+
*/
|
|
190
|
+
|
|
191
|
+
/**
|
|
192
|
+
* Get Transient Token Data v2
|
|
193
|
+
* Retrieve data captured through Unified Checkout. This API retrieves the detailed information associated with a Transient Token by looking it up in TMS and using its ID (the jti claim from the /flex/v2/tokens JWT response). The response returns a decrypted version of the Transient Token; however, PCI-sensitive payment data (PAN) is never returned and is always masked.<br><br> Example jti value: 1D42LRF04LYTMO3I1G8JX6GO6S1PUFM2R4CQLU51267E0EOQ7X2169A99674E16E
|
|
194
|
+
* @param {String} jti The jti within the Transient Token jwt returned by the Unified Checkout application
|
|
195
|
+
* @param {module:api/TransientTokenDataV2Api~getTransactionForTransientTokenJTICallback} callback The callback function, accepting three arguments: error, data, response
|
|
196
|
+
*/
|
|
197
|
+
this.getTransactionForTransientTokenJTI = function(jti, callback) {
|
|
198
|
+
var postBody = null;
|
|
199
|
+
if ('GET' == 'POST') {
|
|
200
|
+
postBody = '{}';
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
// verify the required parameter 'jti' is set
|
|
204
|
+
if (jti === undefined || jti === null) {
|
|
205
|
+
throw new Error("Missing the required parameter 'jti' when calling getTransactionForTransientTokenJTI");
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
|
|
209
|
+
|
|
210
|
+
var pathParams = {
|
|
211
|
+
'jti': jti
|
|
212
|
+
};
|
|
213
|
+
var queryParams = {
|
|
214
|
+
};
|
|
215
|
+
var headerParams = {
|
|
216
|
+
};
|
|
217
|
+
var formParams = {
|
|
218
|
+
};
|
|
219
|
+
|
|
220
|
+
|
|
221
|
+
var authNames = [];
|
|
222
|
+
var contentTypes = ['application/json;charset=utf-8'];
|
|
223
|
+
var accepts = ['application/json'];
|
|
224
|
+
var returnType = null;
|
|
225
|
+
|
|
226
|
+
//check isMLE for an api method 'this.getTransactionForTransientTokenJTI'
|
|
227
|
+
var inboundMLEStatus = 'false';
|
|
228
|
+
var isMLEForApi = MLEUtility.checkIsMLEForAPI(this.apiClient.merchantConfig, inboundMLEStatus, 'getTransactionForTransientTokenJTI');
|
|
229
|
+
const isResponseMLEForApi = MLEUtility.checkIsResponseMLEForAPI(this.apiClient.merchantConfig, ['getTransactionForTransientTokenJTI']);
|
|
230
|
+
|
|
231
|
+
if (isMLEForApi === true) {
|
|
232
|
+
MLEUtility.encryptRequestPayload(this.apiClient.merchantConfig, postBody).then(postBody => {
|
|
233
|
+
return this.apiClient.callApi(
|
|
234
|
+
'/flex/v2/payment-details/{jti}', 'GET',
|
|
235
|
+
pathParams, queryParams, headerParams, formParams, postBody,
|
|
236
|
+
authNames, contentTypes, accepts, returnType, isResponseMLEForApi, callback
|
|
237
|
+
);
|
|
238
|
+
});
|
|
239
|
+
} else {
|
|
240
|
+
return this.apiClient.callApi(
|
|
241
|
+
'/flex/v2/payment-details/{jti}', 'GET',
|
|
242
|
+
pathParams, queryParams, headerParams, formParams, postBody,
|
|
243
|
+
authNames, contentTypes, accepts, returnType, isResponseMLEForApi, callback
|
|
244
|
+
);
|
|
245
|
+
}
|
|
246
|
+
}
|
|
182
247
|
};
|
|
183
248
|
|
|
184
249
|
return exports;
|