cybersource-rest-client 0.0.73 → 0.0.75
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/MLE.md +649 -49
- package/cybersource-rest-client-0.0.75.tgz +0 -0
- package/docs/Acpv1instructionsDeclineThreshold.md +9 -0
- package/docs/Acpv1instructionsMandates.md +16 -0
- package/docs/Acpv1instructionsRecurringPaymentInformation.md +8 -0
- package/docs/Acpv1instructionsinstructionIdconfirmationsConfirmationData.md +11 -0
- package/docs/Acpv1instructionsinstructionIdconfirmationsMerchantInformation.md +10 -0
- package/docs/Acpv1instructionsinstructionIdconfirmationsOrderInformation.md +17 -0
- package/docs/Acpv1instructionsinstructionIdconfirmationsOrderInformationShippingDetails.md +8 -0
- package/docs/Acpv1instructionsinstructionIdconfirmationsProcessorInformation.md +19 -0
- package/docs/Acpv1instructionsinstructionIdconfirmationsProcessorInformationPaymentInstrument.md +8 -0
- package/docs/Acpv1instructionsinstructionIdconfirmationsProcessorInformationPaymentInstrumentVerificationResults.md +9 -0
- package/docs/Acpv1instructionsinstructionIdcredentialsAttachments.md +10 -0
- package/docs/Acpv1instructionsinstructionIdcredentialsClientReferenceInformation.md +8 -0
- package/docs/Acpv1instructionsinstructionIdcredentialsMandateReferenceData.md +8 -0
- package/docs/Acpv1instructionsinstructionIdcredentialsMerchantInformation.md +13 -0
- package/docs/Acpv1instructionsinstructionIdcredentialsMerchantInformationMerchantDescriptor.md +9 -0
- package/docs/Acpv1instructionsinstructionIdcredentialsOrderInformation.md +11 -0
- package/docs/Acpv1instructionsinstructionIdcredentialsOrderInformationAmountDetail.md +13 -0
- package/docs/Acpv1instructionsinstructionIdcredentialsOrderInformationItems.md +16 -0
- package/docs/Acpv1instructionsinstructionIdcredentialsOrderInformationItemsAdditionalInfo.md +9 -0
- package/docs/Acpv1instructionsinstructionIdcredentialsOrderInformationItemsPolicies.md +14 -0
- package/docs/Acpv1instructionsinstructionIdcredentialsOrderInformationLineItems.md +8 -0
- package/docs/Acpv1instructionsinstructionIdcredentialsOrderInformationShipTo.md +26 -0
- package/docs/Acpv1instructionsinstructionIdcredentialsPaymentOptions.md +9 -0
- package/docs/Acpv1instructionsinstructionIdcredentialsTransactionData.md +17 -0
- package/docs/Acpv1tokensAssuranceData.md +16 -0
- package/docs/Acpv1tokensAuthenticatedIdentities.md +10 -0
- package/docs/Acpv1tokensAuthenticationContext.md +8 -0
- package/docs/Acpv1tokensBillTo.md +15 -0
- package/docs/Acpv1tokensBuyerInformation.md +10 -0
- package/docs/Acpv1tokensBuyerInformationPersonalIdentification.md +10 -0
- package/docs/Acpv1tokensConsentData.md +12 -0
- package/docs/Acpv1tokensConsumerIdentity.md +11 -0
- package/docs/Acpv1tokensDeviceInformation.md +14 -0
- package/docs/Acpv1tokensDeviceInformationDeviceData.md +11 -0
- package/docs/Acpv1tokensEnrollmentReferenceData.md +9 -0
- package/docs/Acpv1tokensPaymentInformation.md +10 -0
- package/docs/Acpv1tokensPaymentInformationCustomer.md +8 -0
- package/docs/Acpv1tokensPaymentInformationInstrumentIdentifier.md +8 -0
- package/docs/Acpv1tokensPaymentInformationPaymentInstrument.md +8 -0
- package/docs/AgenticCancelPurchaseIntentRequest.md +11 -0
- package/docs/AgenticCardEnrollmentBadRequestResponse400.md +8 -0
- package/docs/AgenticCardEnrollmentBadRequestResponse400Error.md +11 -0
- package/docs/AgenticCardEnrollmentBadRequestResponse400ErrorDetail.md +11 -0
- package/docs/AgenticCardEnrollmentRequest.md +16 -0
- package/docs/AgenticCardEnrollmentResponse200.md +9 -0
- package/docs/AgenticCardEnrollmentResponse202.md +10 -0
- package/docs/AgenticConfirmTransactionEventsRequest.md +10 -0
- package/docs/AgenticConfirmTransactionEventsResponse202.md +8 -0
- package/docs/AgenticCreatePurchaseIntentRequest.md +15 -0
- package/docs/AgenticCreatePurchaseIntentResponse200.md +10 -0
- package/docs/AgenticPendingPurchaseIntentResponse202.md +12 -0
- package/docs/AgenticRetrievePaymentCredentialsRequest.md +10 -0
- package/docs/AgenticRetrievePaymentCredentialsResponse200.md +9 -0
- package/docs/AgenticRetrievePaymentCredentialsResponse200TransactionResponseComplete.md +12 -0
- package/docs/AgenticRetrievePaymentCredentialsResponse200TransactionResponseWithPendingEvents.md +11 -0
- package/docs/AgenticUpdatePurchaseIntentRequest.md +14 -0
- package/docs/BankAccountValidationApi.md +2 -2
- package/docs/BatchesApi.md +6 -6
- package/docs/Boardingv1registrationsOrganizationInformationBusinessInformation.md +2 -0
- package/docs/Boardingv1registrationsOrganizationInformationBusinessInformationLocalizedNames.md +10 -0
- package/docs/CreateNewWebhooksApi.md +2 -2
- package/docs/CreatePlanRequest.md +0 -1
- package/docs/CreateSubscriptionRequest.md +1 -1
- package/docs/CreateSubscriptionRequest1.md +1 -1
- package/docs/CreateSubscriptionResponse.md +1 -0
- package/docs/DecisionManagerApi.md +2 -2
- package/docs/DeviceDeAssociationApi.md +2 -2
- package/docs/DeviceSearchApi.md +4 -4
- package/docs/EnrollmentApi.md +55 -0
- package/docs/GenerateUnifiedCheckoutCaptureContextRequest.md +2 -1
- package/docs/GetAllSubscriptionsResponseClientReferenceInformation.md +8 -0
- package/docs/GetAllSubscriptionsResponseSubscriptions.md +1 -0
- package/docs/GetSubscriptionResponse.md +1 -0
- package/docs/GetSubscriptionResponse1PaymentInstrument.md +1 -1
- package/docs/GetSubscriptionResponse1PaymentInstrumentBuyerInformation.md +1 -1
- package/docs/GetSubscriptionResponse1ShippingAddress.md +1 -1
- package/docs/GetSubscriptionResponseReactivationInformation.md +2 -2
- package/docs/InlineResponse200.md +1 -4
- package/docs/InlineResponse2001.md +4 -4
- package/docs/InlineResponse20010.md +6 -7
- package/docs/{InlineResponse2009Devices.md → InlineResponse20010Devices.md} +2 -2
- package/docs/{InlineResponse2009PaymentProcessorToTerminalMap.md → InlineResponse20010PaymentProcessorToTerminalMap.md} +1 -1
- package/docs/InlineResponse20011.md +7 -10
- package/docs/InlineResponse20011Embedded.md +8 -0
- package/docs/{InlineResponse20010EmbeddedBatches.md → InlineResponse20011EmbeddedBatches.md} +3 -3
- package/docs/InlineResponse20011EmbeddedLinks.md +8 -0
- package/docs/{InlineResponse20010EmbeddedLinksReports.md → InlineResponse20011EmbeddedLinksReports.md} +1 -1
- package/docs/{InlineResponse20010EmbeddedTotals.md → InlineResponse20011EmbeddedTotals.md} +1 -1
- package/docs/InlineResponse20011Links.md +2 -2
- package/docs/InlineResponse20012.md +7 -7
- package/docs/{InlineResponse20011Billing.md → InlineResponse20012Billing.md} +1 -1
- package/docs/InlineResponse20012Links.md +9 -0
- package/docs/{InlineResponse20011LinksReport.md → InlineResponse20012LinksReport.md} +1 -1
- package/docs/InlineResponse20013.md +10 -4
- package/docs/InlineResponse20013Records.md +10 -0
- package/docs/{InlineResponse20012ResponseRecord.md → InlineResponse20013ResponseRecord.md} +2 -2
- package/docs/{InlineResponse20012ResponseRecordAdditionalUpdates.md → InlineResponse20013ResponseRecordAdditionalUpdates.md} +1 -1
- package/docs/{InlineResponse20012SourceRecord.md → InlineResponse20013SourceRecord.md} +1 -1
- package/docs/InlineResponse20014.md +4 -6
- package/docs/InlineResponse20015.md +13 -0
- package/docs/{InlineResponse20014ClientReferenceInformation.md → InlineResponse20015ClientReferenceInformation.md} +1 -1
- package/docs/{InlineResponse200Content.md → InlineResponse2001Content.md} +1 -1
- package/docs/InlineResponse2002.md +4 -12
- package/docs/InlineResponse2002Embedded.md +9 -0
- package/docs/{InlineResponse2001EmbeddedCapture.md → InlineResponse2002EmbeddedCapture.md} +2 -2
- package/docs/InlineResponse2002EmbeddedCaptureLinks.md +8 -0
- package/docs/{InlineResponse2001EmbeddedCaptureLinksSelf.md → InlineResponse2002EmbeddedCaptureLinksSelf.md} +1 -1
- package/docs/{InlineResponse2001EmbeddedReversal.md → InlineResponse2002EmbeddedReversal.md} +2 -2
- package/docs/InlineResponse2002EmbeddedReversalLinks.md +8 -0
- package/docs/{InlineResponse2001EmbeddedReversalLinksSelf.md → InlineResponse2002EmbeddedReversalLinksSelf.md} +1 -1
- package/docs/InlineResponse2003.md +12 -7
- package/docs/InlineResponse2004.md +7 -3
- package/docs/{InlineResponse2003IntegrationInformation.md → InlineResponse2004IntegrationInformation.md} +2 -2
- package/docs/{InlineResponse2003IntegrationInformationTenantConfigurations.md → InlineResponse2004IntegrationInformationTenantConfigurations.md} +1 -1
- package/docs/InlineResponse2005.md +3 -12
- package/docs/InlineResponse2006.md +0 -1
- package/docs/InlineResponse2007.md +13 -6
- package/docs/InlineResponse2008.md +6 -2
- package/docs/{InlineResponse2007Devices.md → InlineResponse2008Devices.md} +1 -1
- package/docs/InlineResponse2009.md +2 -6
- package/docs/InlineResponse200Details.md +9 -0
- package/docs/InlineResponse200Errors.md +10 -0
- package/docs/InlineResponse200Responses.md +11 -0
- package/docs/InlineResponse2013SetupsPayments.md +1 -0
- package/docs/InstructionsApi.md +255 -0
- package/docs/ManageWebhooksApi.md +4 -4
- package/docs/MerchantBoardingApi.md +2 -2
- package/docs/MerchantDefinedFieldsApi.md +6 -6
- package/docs/OffersApi.md +2 -2
- package/docs/PatchCustomerPaymentInstrumentRequest.md +9 -9
- package/docs/PatchCustomerRequest.md +9 -9
- package/docs/PatchCustomerShippingAddressRequest.md +3 -3
- package/docs/PatchPaymentInstrumentRequest.md +9 -9
- package/docs/PaymentInstrumentList1EmbeddedPaymentInstruments.md +8 -8
- package/docs/PaymentInstrumentListEmbedded.md +1 -1
- package/docs/PaymentsProducts.md +1 -0
- package/docs/PostCustomerPaymentInstrumentRequest.md +9 -9
- package/docs/PostCustomerRequest.md +9 -9
- package/docs/PostCustomerShippingAddressRequest.md +3 -3
- package/docs/PostIssuerLifeCycleSimulationRequest.md +10 -0
- package/docs/PostPaymentInstrumentRequest.md +9 -9
- package/docs/PostTokenizeRequest.md +9 -0
- package/docs/Ptsv2paymentsAggregatorInformation.md +1 -0
- package/docs/Ptsv2paymentsTravelInformationTransitAirlineAncillaryInformation.md +1 -0
- package/docs/Ptsv2paymentsTravelInformationTransitAirlineAncillaryInformationService.md +2 -0
- package/docs/Ptsv2paymentsidrefundsTravelInformation.md +13 -0
- package/docs/Ptsv2paymentsidrefundsTravelInformationTransit.md +8 -0
- package/docs/Ptsv2paymentsidrefundsTravelInformationTransitAirline.md +52 -0
- package/docs/Ptsv2paymentsidrefundsTravelInformationTransitAirlineAncillaryInformation.md +12 -0
- package/docs/Ptsv2paymentsidrefundsTravelInformationTransitAirlineAncillaryInformationService.md +9 -0
- package/docs/RefundCaptureRequest.md +1 -1
- package/docs/RefundPaymentRequest.md +1 -1
- package/docs/ShippingAddressListForCustomerEmbedded.md +1 -1
- package/docs/SubscriptionsApi.md +6 -6
- package/docs/TmsMerchantInformation.md +8 -0
- package/docs/{Tmsv2customersEmbeddedDefaultPaymentInstrumentMerchantInformationMerchantDescriptor.md → TmsMerchantInformationMerchantDescriptor.md} +1 -1
- package/docs/Tmsv2tokenizeProcessingInformation.md +9 -0
- package/docs/Tmsv2tokenizeTokenInformation.md +13 -0
- package/docs/Tmsv2tokenizeTokenInformationCustomer.md +17 -0
- package/docs/{Tmsv2customersBuyerInformation.md → Tmsv2tokenizeTokenInformationCustomerBuyerInformation.md} +1 -1
- package/docs/{Tmsv2customersClientReferenceInformation.md → Tmsv2tokenizeTokenInformationCustomerClientReferenceInformation.md} +1 -1
- package/docs/{Tmsv2customersDefaultPaymentInstrument.md → Tmsv2tokenizeTokenInformationCustomerDefaultPaymentInstrument.md} +1 -1
- package/docs/{Tmsv2customersDefaultShippingAddress.md → Tmsv2tokenizeTokenInformationCustomerDefaultShippingAddress.md} +1 -1
- package/docs/Tmsv2tokenizeTokenInformationCustomerEmbedded.md +9 -0
- package/docs/Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrument.md +22 -0
- package/docs/{Tmsv2customersEmbeddedDefaultPaymentInstrumentBankAccount.md → Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBankAccount.md} +1 -1
- package/docs/{Tmsv2customersEmbeddedDefaultPaymentInstrumentBillTo.md → Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBillTo.md} +1 -1
- package/docs/{Tmsv2customersEmbeddedDefaultPaymentInstrumentBuyerInformation.md → Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBuyerInformation.md} +2 -2
- package/docs/{Tmsv2customersEmbeddedDefaultPaymentInstrumentBuyerInformationIssuedBy.md → Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBuyerInformationIssuedBy.md} +1 -1
- package/docs/Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBuyerInformationPersonalIdentification.md +10 -0
- package/docs/{Tmsv2customersEmbeddedDefaultPaymentInstrumentCard.md → Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentCard.md} +2 -2
- package/docs/{Tmsv2customersEmbeddedDefaultPaymentInstrumentCardTokenizedInformation.md → Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentCardTokenizedInformation.md} +1 -1
- package/docs/{Tmsv2customersEmbeddedDefaultPaymentInstrumentEmbedded.md → Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentEmbedded.md} +1 -1
- package/docs/{Tmsv2customersEmbeddedDefaultPaymentInstrumentInstrumentIdentifier.md → Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentInstrumentIdentifier.md} +1 -1
- package/docs/Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentLinks.md +9 -0
- package/docs/{Tmsv2customersEmbeddedDefaultPaymentInstrumentLinksSelf.md → Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentLinksSelf.md} +1 -1
- package/docs/{Tmsv2customersEmbeddedDefaultPaymentInstrumentMetadata.md → Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentMetadata.md} +1 -1
- package/docs/Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultShippingAddress.md +12 -0
- package/docs/Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultShippingAddressLinks.md +9 -0
- package/docs/{Tmsv2customersEmbeddedDefaultShippingAddressLinksCustomer.md → Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultShippingAddressLinksCustomer.md} +1 -1
- package/docs/{Tmsv2customersEmbeddedDefaultShippingAddressLinksSelf.md → Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultShippingAddressLinksSelf.md} +1 -1
- package/docs/{Tmsv2customersEmbeddedDefaultShippingAddressMetadata.md → Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultShippingAddressMetadata.md} +1 -1
- package/docs/{Tmsv2customersEmbeddedDefaultShippingAddressShipTo.md → Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultShippingAddressShipTo.md} +1 -1
- package/docs/Tmsv2tokenizeTokenInformationCustomerLinks.md +10 -0
- package/docs/{Tmsv2customersLinksPaymentInstruments.md → Tmsv2tokenizeTokenInformationCustomerLinksPaymentInstruments.md} +1 -1
- package/docs/{Tmsv2customersLinksSelf.md → Tmsv2tokenizeTokenInformationCustomerLinksSelf.md} +1 -1
- package/docs/{Tmsv2customersLinksShippingAddress.md → Tmsv2tokenizeTokenInformationCustomerLinksShippingAddress.md} +1 -1
- package/docs/{Tmsv2customersMerchantDefinedInformation.md → Tmsv2tokenizeTokenInformationCustomerMerchantDefinedInformation.md} +1 -1
- package/docs/{Tmsv2customersMetadata.md → Tmsv2tokenizeTokenInformationCustomerMetadata.md} +1 -1
- package/docs/{Tmsv2customersObjectInformation.md → Tmsv2tokenizeTokenInformationCustomerObjectInformation.md} +1 -1
- package/docs/Tmsv2tokenizedcardstokenizedCardIdissuerlifecycleeventsimulationsCard.md +10 -0
- package/docs/Tmsv2tokenizedcardstokenizedCardIdissuerlifecycleeventsimulationsMetadata.md +8 -0
- package/docs/Tmsv2tokenizedcardstokenizedCardIdissuerlifecycleeventsimulationsMetadataCardArt.md +8 -0
- package/docs/Tmsv2tokenizedcardstokenizedCardIdissuerlifecycleeventsimulationsMetadataCardArtCombinedAsset.md +8 -0
- package/docs/TokenApi.md +2 -2
- package/docs/TokenizeApi.md +59 -0
- package/docs/TokenizedCardApi.md +53 -0
- package/docs/UpdateSubscription.md +1 -1
- package/docs/Upv1capturecontextsData.md +3 -1
- package/docs/Upv1capturecontextsDataBuyerInformation.md +4 -2
- package/docs/Upv1capturecontextsDataBuyerInformationPersonalIdentification.md +1 -1
- package/docs/Upv1capturecontextsDataConsumerAuthenticationInformation.md +3 -2
- package/docs/Upv1capturecontextsDataDeviceInformation.md +8 -0
- package/docs/Upv1capturecontextsDataMerchantDefinedInformation.md +2 -2
- package/docs/Upv1capturecontextsDataMerchantInformationMerchantDescriptor.md +7 -0
- package/docs/Upv1capturecontextsDataOrderInformation.md +1 -0
- package/docs/Upv1capturecontextsDataOrderInformationAmountDetails.md +1 -0
- package/docs/Upv1capturecontextsDataOrderInformationAmountDetailsTaxDetails.md +9 -0
- package/docs/Upv1capturecontextsDataOrderInformationInvoiceDetails.md +9 -0
- package/docs/Upv1capturecontextsDataOrderInformationLineItems.md +30 -30
- package/docs/Upv1capturecontextsDataOrderInformationLineItemsPassenger.md +8 -8
- package/docs/Upv1capturecontextsDataOrderInformationLineItemsTaxDetails.md +7 -7
- package/docs/Upv1capturecontextsDataPaymentInformation.md +8 -0
- package/docs/Upv1capturecontextsDataPaymentInformationCard.md +8 -0
- package/docs/Upv1capturecontextsDataProcessingInformation.md +1 -1
- package/docs/Upv1capturecontextsDataProcessingInformationAuthorizationOptions.md +7 -2
- package/docs/Upv1capturecontextsDataProcessingInformationAuthorizationOptionsInitiator.md +1 -1
- package/docs/Upv1capturecontextsDataRecipientInformation.md +2 -0
- package/package.json +3 -2
- package/src/ApiClient.js +56 -28
- package/src/api/BankAccountValidationApi.js +10 -9
- package/src/api/BatchesApi.js +25 -21
- package/src/api/BillingAgreementsApi.js +9 -6
- package/src/api/BinLookupApi.js +3 -2
- package/src/api/CaptureApi.js +3 -2
- package/src/api/ChargebackDetailsApi.js +3 -2
- package/src/api/ChargebackSummariesApi.js +3 -2
- package/src/api/ConversionDetailsApi.js +3 -2
- package/src/api/CreateNewWebhooksApi.js +16 -13
- package/src/api/CreditApi.js +3 -2
- package/src/api/CustomerApi.js +14 -10
- package/src/api/CustomerPaymentInstrumentApi.js +17 -12
- package/src/api/CustomerShippingAddressApi.js +17 -12
- package/src/api/DecisionManagerApi.js +22 -17
- package/src/api/DeviceDeAssociationApi.js +13 -11
- package/src/api/DeviceSearchApi.js +16 -14
- package/src/api/DownloadDTDApi.js +3 -2
- package/src/api/DownloadXSDApi.js +3 -2
- package/src/api/EMVTagDetailsApi.js +6 -4
- package/src/api/EnrollmentApi.js +120 -0
- package/src/api/FlexAPIApi.js +3 -2
- package/src/api/InstructionsApi.js +412 -0
- package/src/api/InstrumentIdentifierApi.js +21 -15
- package/src/api/InterchangeClearingLevelDetailsApi.js +3 -2
- package/src/api/InvoiceSettingsApi.js +6 -4
- package/src/api/InvoicesApi.js +21 -14
- package/src/api/ManageWebhooksApi.js +31 -24
- package/src/api/MerchantBoardingApi.js +13 -11
- package/src/api/MerchantDefinedFieldsApi.js +25 -21
- package/src/api/MicroformIntegrationApi.js +3 -2
- package/src/api/NetFundingsApi.js +3 -2
- package/src/api/NotificationOfChangesApi.js +3 -2
- package/src/api/OffersApi.js +13 -11
- package/src/api/OrdersApi.js +6 -4
- package/src/api/PayerAuthenticationApi.js +9 -6
- package/src/api/PaymentBatchSummariesApi.js +3 -2
- package/src/api/PaymentInstrumentApi.js +14 -10
- package/src/api/PaymentLinksApi.js +12 -8
- package/src/api/PaymentTokensApi.js +3 -2
- package/src/api/PaymentsApi.js +18 -12
- package/src/api/PayoutsApi.js +3 -2
- package/src/api/PlansApi.js +24 -16
- package/src/api/PurchaseAndRefundDetailsApi.js +3 -2
- package/src/api/PushFundsApi.js +3 -2
- package/src/api/RefundApi.js +6 -4
- package/src/api/ReportDefinitionsApi.js +6 -4
- package/src/api/ReportDownloadsApi.js +3 -2
- package/src/api/ReportSubscriptionsApi.js +15 -10
- package/src/api/ReportsApi.js +9 -6
- package/src/api/RetrievalDetailsApi.js +3 -2
- package/src/api/RetrievalSummariesApi.js +3 -2
- package/src/api/ReversalApi.js +6 -4
- package/src/api/SearchTransactionsApi.js +6 -4
- package/src/api/SecureFileShareApi.js +6 -4
- package/src/api/SubscriptionsApi.js +29 -21
- package/src/api/SubscriptionsFollowOnsApi.js +6 -4
- package/src/api/TaxesApi.js +6 -4
- package/src/api/TokenApi.js +14 -12
- package/src/api/TokenizeApi.js +124 -0
- package/src/api/TokenizedCardApi.js +93 -11
- package/src/api/TransactionBatchesApi.js +12 -8
- package/src/api/TransactionDetailsApi.js +3 -2
- package/src/api/TransientTokenDataApi.js +6 -4
- package/src/api/UnifiedCheckoutCaptureContextApi.js +3 -2
- package/src/api/UserManagementApi.js +3 -2
- package/src/api/UserManagementSearchApi.js +3 -2
- package/src/api/VerificationApi.js +6 -4
- package/src/api/VoidApi.js +15 -10
- package/src/authentication/core/Authorization.js +2 -2
- package/src/authentication/core/MerchantConfig.js +271 -46
- package/src/authentication/jwt/JWTSigToken.js +50 -28
- package/src/authentication/logging/SensitiveDataMasker.js +8 -1
- package/src/authentication/logging/SensitiveDataTags.js +1 -1
- package/src/authentication/util/Cache.js +103 -17
- package/src/authentication/util/Constants.js +6 -1
- package/src/authentication/util/MLEUtility.js +251 -15
- package/src/authentication/util/Utility.js +340 -1
- package/src/authentication/util/jwt/JWTExceptions.js +64 -0
- package/src/authentication/util/jwt/JWTUtility.js +235 -0
- package/src/index.js +616 -210
- package/src/model/Acpv1instructionsDeclineThreshold.js +92 -0
- package/src/model/Acpv1instructionsMandates.js +157 -0
- package/src/model/Acpv1instructionsRecurringPaymentInformation.js +83 -0
- package/src/model/Acpv1instructionsinstructionIdconfirmationsConfirmationData.js +107 -0
- package/src/model/Acpv1instructionsinstructionIdconfirmationsMerchantInformation.js +101 -0
- package/src/model/Acpv1instructionsinstructionIdconfirmationsOrderInformation.js +159 -0
- package/src/model/Acpv1instructionsinstructionIdconfirmationsOrderInformationShippingDetails.js +83 -0
- package/src/model/Acpv1instructionsinstructionIdconfirmationsProcessorInformation.js +182 -0
- package/src/model/Acpv1instructionsinstructionIdconfirmationsProcessorInformationPaymentInstrument.js +82 -0
- package/src/model/Acpv1instructionsinstructionIdconfirmationsProcessorInformationPaymentInstrumentVerificationResults.js +91 -0
- package/src/model/Acpv1instructionsinstructionIdcredentialsAttachments.js +101 -0
- package/src/model/Acpv1instructionsinstructionIdcredentialsClientReferenceInformation.js +84 -0
- package/src/model/Acpv1instructionsinstructionIdcredentialsMandateReferenceData.js +82 -0
- package/src/model/Acpv1instructionsinstructionIdcredentialsMerchantInformation.js +129 -0
- package/src/model/Acpv1instructionsinstructionIdcredentialsMerchantInformationMerchantDescriptor.js +94 -0
- package/src/model/Acpv1instructionsinstructionIdcredentialsOrderInformation.js +108 -0
- package/src/model/Acpv1instructionsinstructionIdcredentialsOrderInformationAmountDetail.js +130 -0
- package/src/model/Acpv1instructionsinstructionIdcredentialsOrderInformationItems.js +151 -0
- package/src/model/Acpv1instructionsinstructionIdcredentialsOrderInformationItemsAdditionalInfo.js +91 -0
- package/src/model/Acpv1instructionsinstructionIdcredentialsOrderInformationItemsPolicies.js +136 -0
- package/src/model/Acpv1instructionsinstructionIdcredentialsOrderInformationLineItems.js +82 -0
- package/src/model/Acpv1instructionsinstructionIdcredentialsOrderInformationShipTo.js +248 -0
- package/src/model/Acpv1instructionsinstructionIdcredentialsPaymentOptions.js +92 -0
- package/src/model/Acpv1instructionsinstructionIdcredentialsTransactionData.js +161 -0
- package/src/model/Acpv1tokensAssuranceData.js +156 -0
- package/src/model/Acpv1tokensAuthenticatedIdentities.js +102 -0
- package/src/model/Acpv1tokensAuthenticationContext.js +83 -0
- package/src/model/Acpv1tokensBillTo.js +149 -0
- package/src/model/Acpv1tokensBuyerInformation.js +100 -0
- package/src/model/Acpv1tokensBuyerInformationPersonalIdentification.js +100 -0
- package/src/model/Acpv1tokensConsentData.js +123 -0
- package/src/model/Acpv1tokensConsumerIdentity.js +112 -0
- package/src/model/Acpv1tokensDeviceInformation.js +140 -0
- package/src/model/Acpv1tokensDeviceInformationDeviceData.js +112 -0
- package/src/model/Acpv1tokensEnrollmentReferenceData.js +93 -0
- package/src/model/Acpv1tokensPaymentInformation.js +99 -0
- package/src/model/{Tmsv2customersDefaultPaymentInstrument.js → Acpv1tokensPaymentInformationCustomer.js} +10 -9
- package/src/model/Acpv1tokensPaymentInformationInstrumentIdentifier.js +84 -0
- package/src/model/{Tmsv2customersEmbeddedDefaultPaymentInstrumentInstrumentIdentifier.js → Acpv1tokensPaymentInformationPaymentInstrument.js} +10 -9
- package/src/model/AgenticCancelPurchaseIntentRequest.js +110 -0
- package/src/model/AgenticCardEnrollmentBadRequestResponse400.js +81 -0
- package/src/model/AgenticCardEnrollmentBadRequestResponse400Error.js +112 -0
- package/src/model/AgenticCardEnrollmentBadRequestResponse400ErrorDetail.js +110 -0
- package/src/model/AgenticCardEnrollmentRequest.js +154 -0
- package/src/model/AgenticCardEnrollmentResponse200.js +92 -0
- package/src/model/AgenticCardEnrollmentResponse202.js +101 -0
- package/src/model/AgenticConfirmTransactionEventsRequest.js +102 -0
- package/src/model/AgenticConfirmTransactionEventsResponse202.js +83 -0
- package/src/model/AgenticCreatePurchaseIntentRequest.js +147 -0
- package/src/model/AgenticCreatePurchaseIntentResponse200.js +102 -0
- package/src/model/AgenticPendingPurchaseIntentResponse202.js +119 -0
- package/src/model/AgenticRetrievePaymentCredentialsRequest.js +102 -0
- package/src/model/AgenticRetrievePaymentCredentialsResponse200.js +90 -0
- package/src/model/AgenticRetrievePaymentCredentialsResponse200TransactionResponseComplete.js +120 -0
- package/src/model/AgenticRetrievePaymentCredentialsResponse200TransactionResponseWithPendingEvents.js +111 -0
- package/src/model/AgenticUpdatePurchaseIntentRequest.js +137 -0
- package/src/model/Boardingv1registrationsOrganizationInformationBusinessInformation.js +20 -4
- package/src/model/Boardingv1registrationsOrganizationInformationBusinessInformationLocalizedNames.js +97 -0
- package/src/model/CreatePlanRequest.js +4 -12
- package/src/model/CreateSubscriptionRequest.js +6 -6
- package/src/model/CreateSubscriptionRequest1.js +6 -6
- package/src/model/CreateSubscriptionResponse.js +12 -4
- package/src/model/GenerateUnifiedCheckoutCaptureContextRequest.js +10 -1
- package/src/model/GetAllSubscriptionsResponseClientReferenceInformation.js +82 -0
- package/src/model/GetAllSubscriptionsResponseSubscriptions.js +12 -4
- package/src/model/GetSubscriptionResponse.js +12 -4
- package/src/model/GetSubscriptionResponse1PaymentInstrument.js +6 -6
- package/src/model/GetSubscriptionResponse1PaymentInstrumentBuyerInformation.js +6 -6
- package/src/model/GetSubscriptionResponse1ShippingAddress.js +6 -6
- package/src/model/GetSubscriptionResponseReactivationInformation.js +9 -9
- package/src/model/InlineResponse200.js +8 -37
- package/src/model/InlineResponse2001.js +21 -19
- package/src/model/InlineResponse20010.js +25 -27
- package/src/model/{InlineResponse2009Devices.js → InlineResponse20010Devices.js} +13 -13
- package/src/model/{InlineResponse2009PaymentProcessorToTerminalMap.js → InlineResponse20010PaymentProcessorToTerminalMap.js} +8 -8
- package/src/model/InlineResponse20011.js +30 -59
- package/src/model/{InlineResponse20010Embedded.js → InlineResponse20011Embedded.js} +13 -13
- package/src/model/{InlineResponse20010EmbeddedBatches.js → InlineResponse20011EmbeddedBatches.js} +15 -15
- package/src/model/{InlineResponse20010EmbeddedLinks.js → InlineResponse20011EmbeddedLinks.js} +13 -13
- package/src/model/{InlineResponse20010EmbeddedLinksReports.js → InlineResponse20011EmbeddedLinksReports.js} +8 -8
- package/src/model/{InlineResponse20010EmbeddedTotals.js → InlineResponse20011EmbeddedTotals.js} +8 -8
- package/src/model/InlineResponse20011Links.js +13 -12
- package/src/model/InlineResponse20012.js +37 -37
- package/src/model/{InlineResponse20011Billing.js → InlineResponse20012Billing.js} +8 -8
- package/src/model/InlineResponse20012Links.js +89 -0
- package/src/model/{InlineResponse20011LinksReport.js → InlineResponse20012LinksReport.js} +8 -8
- package/src/model/InlineResponse20013.js +73 -22
- package/src/model/{InlineResponse20012Records.js → InlineResponse20013Records.js} +15 -15
- package/src/model/{InlineResponse20012ResponseRecord.js → InlineResponse20013ResponseRecord.js} +13 -13
- package/src/model/{InlineResponse20012ResponseRecordAdditionalUpdates.js → InlineResponse20013ResponseRecordAdditionalUpdates.js} +8 -8
- package/src/model/{InlineResponse20012SourceRecord.js → InlineResponse20013SourceRecord.js} +8 -8
- package/src/model/InlineResponse20014.js +18 -38
- package/src/model/InlineResponse20015.js +127 -0
- package/src/model/{InlineResponse20014ClientReferenceInformation.js → InlineResponse20015ClientReferenceInformation.js} +8 -8
- package/src/model/{InlineResponse200Content.js → InlineResponse2001Content.js} +8 -8
- package/src/model/InlineResponse2002.js +21 -82
- package/src/model/{InlineResponse2001Embedded.js → InlineResponse2002Embedded.js} +15 -15
- package/src/model/{InlineResponse2001EmbeddedCapture.js → InlineResponse2002EmbeddedCapture.js} +13 -13
- package/src/model/{InlineResponse2001EmbeddedCaptureLinks.js → InlineResponse2002EmbeddedCaptureLinks.js} +13 -13
- package/src/model/{InlineResponse2001EmbeddedCaptureLinksSelf.js → InlineResponse2002EmbeddedCaptureLinksSelf.js} +8 -8
- package/src/model/{InlineResponse2001EmbeddedReversal.js → InlineResponse2002EmbeddedReversal.js} +13 -13
- package/src/model/{InlineResponse2001EmbeddedReversalLinks.js → InlineResponse2002EmbeddedReversalLinks.js} +13 -13
- package/src/model/{InlineResponse2001EmbeddedReversalLinksSelf.js → InlineResponse2002EmbeddedReversalLinksSelf.js} +8 -8
- package/src/model/InlineResponse2003.js +72 -32
- package/src/model/InlineResponse2004.js +48 -18
- package/src/model/{InlineResponse2003IntegrationInformation.js → InlineResponse2004IntegrationInformation.js} +13 -13
- package/src/model/{InlineResponse2003IntegrationInformationTenantConfigurations.js → InlineResponse2004IntegrationInformationTenantConfigurations.js} +8 -8
- package/src/model/InlineResponse2005.js +18 -99
- package/src/model/InlineResponse2006.js +0 -9
- package/src/model/InlineResponse2007.js +96 -34
- package/src/model/InlineResponse2008.js +48 -11
- package/src/model/{InlineResponse2007Devices.js → InlineResponse2008Devices.js} +8 -8
- package/src/model/InlineResponse2009.js +11 -48
- package/src/model/{InlineResponse20010Links.js → InlineResponse200Details.js} +18 -17
- package/src/model/InlineResponse200Errors.js +99 -0
- package/src/model/InlineResponse200Responses.js +108 -0
- package/src/model/InlineResponse2013SetupsPayments.js +8 -0
- package/src/model/PatchCustomerPaymentInstrumentRequest.js +22 -22
- package/src/model/PatchCustomerRequest.js +22 -22
- package/src/model/PatchCustomerShippingAddressRequest.js +10 -10
- package/src/model/PatchPaymentInstrumentRequest.js +22 -22
- package/src/model/PaymentInstrumentList1EmbeddedPaymentInstruments.js +20 -20
- package/src/model/PaymentInstrumentListEmbedded.js +6 -6
- package/src/model/PaymentsProducts.js +8 -0
- package/src/model/PostCustomerPaymentInstrumentRequest.js +22 -22
- package/src/model/PostCustomerRequest.js +22 -22
- package/src/model/PostCustomerShippingAddressRequest.js +10 -10
- package/src/model/PostIssuerLifeCycleSimulationRequest.js +99 -0
- package/src/model/PostPaymentInstrumentRequest.js +22 -22
- package/src/model/PostTokenizeRequest.js +89 -0
- package/src/model/Ptsv2paymentsAggregatorInformation.js +9 -0
- package/src/model/Ptsv2paymentsTravelInformationTransitAirlineAncillaryInformation.js +9 -0
- package/src/model/Ptsv2paymentsTravelInformationTransitAirlineAncillaryInformationService.js +18 -0
- package/src/model/Ptsv2paymentsidrefundsTravelInformation.js +122 -0
- package/src/model/Ptsv2paymentsidrefundsTravelInformationTransit.js +81 -0
- package/src/model/Ptsv2paymentsidrefundsTravelInformationTransitAirline.js +475 -0
- package/src/model/Ptsv2paymentsidrefundsTravelInformationTransitAirlineAncillaryInformation.js +117 -0
- package/src/model/Ptsv2paymentsidrefundsTravelInformationTransitAirlineAncillaryInformationService.js +91 -0
- package/src/model/RefundCaptureRequest.js +6 -6
- package/src/model/RefundPaymentRequest.js +6 -6
- package/src/model/ShippingAddressListForCustomerEmbedded.js +6 -6
- package/src/model/TmsMerchantInformation.js +81 -0
- package/src/model/{Tmsv2customersEmbeddedDefaultPaymentInstrumentMerchantInformationMerchantDescriptor.js → TmsMerchantInformationMerchantDescriptor.js} +8 -8
- package/src/model/Tmsv2tokenizeProcessingInformation.js +91 -0
- package/src/model/Tmsv2tokenizeTokenInformation.js +123 -0
- package/src/model/Tmsv2tokenizeTokenInformationCustomer.js +155 -0
- package/src/model/{Tmsv2customersBuyerInformation.js → Tmsv2tokenizeTokenInformationCustomerBuyerInformation.js} +8 -8
- package/src/model/Tmsv2tokenizeTokenInformationCustomerClientReferenceInformation.js +82 -0
- package/src/model/Tmsv2tokenizeTokenInformationCustomerDefaultPaymentInstrument.js +82 -0
- package/src/model/{Tmsv2customersDefaultShippingAddress.js → Tmsv2tokenizeTokenInformationCustomerDefaultShippingAddress.js} +8 -8
- package/src/model/Tmsv2tokenizeTokenInformationCustomerEmbedded.js +90 -0
- package/src/model/Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrument.js +198 -0
- package/src/model/{Tmsv2customersEmbeddedDefaultPaymentInstrumentBankAccount.js → Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBankAccount.js} +8 -8
- package/src/model/{Tmsv2customersEmbeddedDefaultPaymentInstrumentBillTo.js → Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBillTo.js} +8 -8
- package/src/model/{Tmsv2customersEmbeddedDefaultPaymentInstrumentBuyerInformation.js → Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBuyerInformation.js} +13 -13
- package/src/model/{Tmsv2customersEmbeddedDefaultPaymentInstrumentBuyerInformationIssuedBy.js → Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBuyerInformationIssuedBy.js} +8 -8
- package/src/model/Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBuyerInformationPersonalIdentification.js +99 -0
- package/src/model/{Tmsv2customersEmbeddedDefaultPaymentInstrumentCard.js → Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentCard.js} +13 -13
- package/src/model/{Tmsv2customersEmbeddedDefaultPaymentInstrumentCardTokenizedInformation.js → Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentCardTokenizedInformation.js} +8 -8
- package/src/model/{Tmsv2customersEmbeddedDefaultPaymentInstrumentEmbedded.js → Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentEmbedded.js} +8 -8
- package/src/model/Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentInstrumentIdentifier.js +82 -0
- package/src/model/Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentLinks.js +89 -0
- package/src/model/{Tmsv2customersEmbeddedDefaultPaymentInstrumentLinksSelf.js → Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentLinksSelf.js} +8 -8
- package/src/model/{Tmsv2customersEmbeddedDefaultPaymentInstrumentMetadata.js → Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentMetadata.js} +8 -8
- package/src/model/Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultShippingAddress.js +115 -0
- package/src/model/Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultShippingAddressLinks.js +89 -0
- package/src/model/{Tmsv2customersEmbeddedDefaultShippingAddressLinksCustomer.js → Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultShippingAddressLinksCustomer.js} +8 -8
- package/src/model/{Tmsv2customersEmbeddedDefaultShippingAddressLinksSelf.js → Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultShippingAddressLinksSelf.js} +8 -8
- package/src/model/{Tmsv2customersEmbeddedDefaultShippingAddressMetadata.js → Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultShippingAddressMetadata.js} +8 -8
- package/src/model/{Tmsv2customersEmbeddedDefaultShippingAddressShipTo.js → Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultShippingAddressShipTo.js} +8 -8
- package/src/model/Tmsv2tokenizeTokenInformationCustomerLinks.js +97 -0
- package/src/model/{Tmsv2customersLinksPaymentInstruments.js → Tmsv2tokenizeTokenInformationCustomerLinksPaymentInstruments.js} +8 -8
- package/src/model/{Tmsv2customersLinksSelf.js → Tmsv2tokenizeTokenInformationCustomerLinksSelf.js} +8 -8
- package/src/model/{Tmsv2customersLinksShippingAddress.js → Tmsv2tokenizeTokenInformationCustomerLinksShippingAddress.js} +8 -8
- package/src/model/{Tmsv2customersMerchantDefinedInformation.js → Tmsv2tokenizeTokenInformationCustomerMerchantDefinedInformation.js} +8 -8
- package/src/model/{Tmsv2customersMetadata.js → Tmsv2tokenizeTokenInformationCustomerMetadata.js} +8 -8
- package/src/model/{Tmsv2customersObjectInformation.js → Tmsv2tokenizeTokenInformationCustomerObjectInformation.js} +8 -8
- package/src/model/Tmsv2tokenizedcardstokenizedCardIdissuerlifecycleeventsimulationsCard.js +100 -0
- package/src/model/Tmsv2tokenizedcardstokenizedCardIdissuerlifecycleeventsimulationsMetadata.js +81 -0
- package/src/model/Tmsv2tokenizedcardstokenizedCardIdissuerlifecycleeventsimulationsMetadataCardArt.js +81 -0
- package/src/model/Tmsv2tokenizedcardstokenizedCardIdissuerlifecycleeventsimulationsMetadataCardArtCombinedAsset.js +82 -0
- package/src/model/UpdateSubscription.js +6 -6
- package/src/model/Upv1capturecontextsData.js +22 -6
- package/src/model/Upv1capturecontextsDataBuyerInformation.js +20 -0
- package/src/model/Upv1capturecontextsDataBuyerInformationPersonalIdentification.js +1 -0
- package/src/model/Upv1capturecontextsDataClientReferenceInformationPartner.js +4 -4
- package/src/model/Upv1capturecontextsDataConsumerAuthenticationInformation.js +11 -0
- package/src/model/{Tmsv2customersClientReferenceInformation.js → Upv1capturecontextsDataDeviceInformation.js} +13 -13
- package/src/model/Upv1capturecontextsDataMerchantDefinedInformation.js +3 -2
- package/src/model/Upv1capturecontextsDataMerchantInformationMerchantDescriptor.js +63 -0
- package/src/model/Upv1capturecontextsDataOrderInformation.js +12 -4
- package/src/model/Upv1capturecontextsDataOrderInformationAmountDetails.js +12 -4
- package/src/model/Upv1capturecontextsDataOrderInformationAmountDetailsTaxDetails.js +91 -0
- package/src/model/Upv1capturecontextsDataOrderInformationInvoiceDetails.js +91 -0
- package/src/model/Upv1capturecontextsDataOrderInformationLineItems.js +30 -0
- package/src/model/Upv1capturecontextsDataOrderInformationLineItemsPassenger.js +8 -0
- package/src/model/Upv1capturecontextsDataOrderInformationLineItemsTaxDetails.js +7 -0
- package/src/model/Upv1capturecontextsDataPaymentInformation.js +81 -0
- package/src/model/Upv1capturecontextsDataPaymentInformationCard.js +82 -0
- package/src/model/Upv1capturecontextsDataProcessingInformation.js +1 -0
- package/src/model/Upv1capturecontextsDataProcessingInformationAuthorizationOptions.js +47 -0
- package/src/model/Upv1capturecontextsDataProcessingInformationAuthorizationOptionsInitiator.js +1 -0
- package/src/model/Upv1capturecontextsDataRecipientInformation.js +18 -0
- package/src/model/Upv1capturecontextsOrderInformation.js +1 -0
- package/src/utilities/capturecontext/CaptureContextParsingUtility.js +131 -0
- package/src/utilities/capturecontext/PublicKeyApiController.js +85 -0
- package/docs/InlineResponse20010Embedded.md +0 -8
- package/docs/InlineResponse20010EmbeddedLinks.md +0 -8
- package/docs/InlineResponse20010Links.md +0 -9
- package/docs/InlineResponse20012Records.md +0 -10
- package/docs/InlineResponse2001Embedded.md +0 -9
- package/docs/InlineResponse2001EmbeddedCaptureLinks.md +0 -8
- package/docs/InlineResponse2001EmbeddedReversalLinks.md +0 -8
- package/docs/Rbsv1plansClientReferenceInformation.md +0 -12
- package/docs/Rbsv1subscriptionsClientReferenceInformation.md +0 -13
- package/docs/Rbsv1subscriptionsClientReferenceInformationPartner.md +0 -9
- package/docs/Tmsv2customersEmbedded.md +0 -9
- package/docs/Tmsv2customersEmbeddedDefaultPaymentInstrument.md +0 -22
- package/docs/Tmsv2customersEmbeddedDefaultPaymentInstrumentBuyerInformationPersonalIdentification.md +0 -10
- package/docs/Tmsv2customersEmbeddedDefaultPaymentInstrumentLinks.md +0 -9
- package/docs/Tmsv2customersEmbeddedDefaultPaymentInstrumentMerchantInformation.md +0 -8
- package/docs/Tmsv2customersEmbeddedDefaultShippingAddress.md +0 -12
- package/docs/Tmsv2customersEmbeddedDefaultShippingAddressLinks.md +0 -9
- package/docs/Tmsv2customersLinks.md +0 -10
- package/src/model/Rbsv1plansClientReferenceInformation.js +0 -117
- package/src/model/Rbsv1subscriptionsClientReferenceInformation.js +0 -126
- package/src/model/Rbsv1subscriptionsClientReferenceInformationPartner.js +0 -91
- package/src/model/Tmsv2customersEmbedded.js +0 -90
- package/src/model/Tmsv2customersEmbeddedDefaultPaymentInstrument.js +0 -198
- package/src/model/Tmsv2customersEmbeddedDefaultPaymentInstrumentBuyerInformationPersonalIdentification.js +0 -99
- package/src/model/Tmsv2customersEmbeddedDefaultPaymentInstrumentLinks.js +0 -89
- package/src/model/Tmsv2customersEmbeddedDefaultPaymentInstrumentMerchantInformation.js +0 -81
- package/src/model/Tmsv2customersEmbeddedDefaultShippingAddress.js +0 -115
- package/src/model/Tmsv2customersEmbeddedDefaultShippingAddressLinks.js +0 -89
- package/src/model/Tmsv2customersLinks.js +0 -97
package/MLE.md
CHANGED
|
@@ -4,95 +4,695 @@
|
|
|
4
4
|
|
|
5
5
|
This feature provides an implementation of Message Level Encryption (MLE) for APIs provided by CyberSource, integrated within our SDK. This feature ensures secure communication by encrypting messages at the application level before they are sent over the network.
|
|
6
6
|
|
|
7
|
+
MLE supports both **Request Encryption** (encrypting outgoing request payloads) and **Response Decryption** (decrypting incoming response payloads).
|
|
8
|
+
|
|
9
|
+
## Authentication Requirements
|
|
10
|
+
|
|
11
|
+
- **Request MLE**: Only supported with `JWT (JSON Web Token)` authentication type
|
|
12
|
+
- **Response MLE**: Only supported with `JWT (JSON Web Token)` authentication type
|
|
13
|
+
|
|
14
|
+
<br/>
|
|
15
|
+
|
|
7
16
|
## Configuration
|
|
8
17
|
|
|
9
|
-
|
|
18
|
+
## 1. Request MLE Configuration
|
|
19
|
+
|
|
20
|
+
#### 1.1 Global Request MLE Configuration
|
|
21
|
+
|
|
22
|
+
Configure global settings for request MLE using these properties in your `merchantConfig`:
|
|
10
23
|
|
|
11
|
-
|
|
24
|
+
##### (i) Primary Configuration
|
|
12
25
|
|
|
13
|
-
- **Variable**: `
|
|
14
|
-
- **Type**: `
|
|
26
|
+
- **Variable**: `enableRequestMLEForOptionalApisGlobally`
|
|
27
|
+
- **Type**: `Boolean`
|
|
15
28
|
- **Default**: `false`
|
|
16
|
-
- **Description**: Enables MLE globally for all APIs
|
|
29
|
+
- **Description**: Enables request MLE globally for all APIs that have optional MLE support when set to `true`.
|
|
17
30
|
|
|
18
|
-
|
|
31
|
+
---
|
|
19
32
|
|
|
20
|
-
|
|
33
|
+
##### (ii) Deprecated Configuration (Backward Compatibility)
|
|
21
34
|
|
|
22
|
-
- **Variable**: `
|
|
23
|
-
- **Type**: `
|
|
24
|
-
- **
|
|
35
|
+
- **Variable**: `useMLEGlobally` ⚠️ **DEPRECATED**
|
|
36
|
+
- **Type**: `Boolean`
|
|
37
|
+
- **Default**: `false`
|
|
38
|
+
- **Description**: **DEPRECATED** - Use `enableRequestMLEForOptionalApisGlobally` instead. This field is maintained for backward compatibility and will be used as an alias for `enableRequestMLEForOptionalApisGlobally`.
|
|
39
|
+
|
|
40
|
+
---
|
|
41
|
+
|
|
42
|
+
##### (iii) Advanced Configuration
|
|
43
|
+
|
|
44
|
+
- **Variable**: `disableRequestMLEForMandatoryApisGlobally`
|
|
45
|
+
- **Type**: `Boolean`
|
|
46
|
+
- **Default**: `false`
|
|
47
|
+
- **Description**: Disables request MLE for APIs that have mandatory MLE requirement when set to `true`.
|
|
25
48
|
|
|
26
|
-
|
|
49
|
+
---
|
|
27
50
|
|
|
28
|
-
|
|
51
|
+
#### 1.2 Request MLE Certificate Configuration [Optional Params]
|
|
29
52
|
|
|
30
|
-
|
|
31
|
-
|
|
53
|
+
##### (i) Certificate File Path (Optional)
|
|
54
|
+
|
|
55
|
+
- **Variable**: `mleForRequestPublicCertPath`
|
|
56
|
+
- **Type**: `String`
|
|
57
|
+
- **Optional**: `true`
|
|
58
|
+
- **Description**: Path to the public certificate file used for request encryption. Supported formats: `.pem`, `.crt`.
|
|
59
|
+
- **Note**: This parameter is optional when using JWT authentication. If not provided, the request MLE certificate will be automatically fetched from the JWT authentication P12 file using the `requestMleKeyAlias`.
|
|
60
|
+
|
|
61
|
+
---
|
|
62
|
+
|
|
63
|
+
##### (ii) Key Alias Configuration (Optional)
|
|
64
|
+
|
|
65
|
+
- **Variable**: `requestMleKeyAlias`
|
|
66
|
+
- **Type**: `String`
|
|
67
|
+
- **Optional**: `true`
|
|
68
|
+
- **Default**: `CyberSource_SJC_US`
|
|
69
|
+
- **Description**: Key alias used to retrieve the MLE certificate from the certificate file. When `mleForRequestPublicCertPath` is not provided, this alias is used to fetch the certificate from the JWT authentication P12 file. If not specified, the SDK will automatically use the default value `CyberSource_SJC_US`.
|
|
70
|
+
|
|
71
|
+
---
|
|
72
|
+
|
|
73
|
+
##### (iii) Deprecated Key Alias (Backward Compatibility) (Optional)
|
|
74
|
+
|
|
75
|
+
- **Variable**: `mleKeyAlias` ⚠️ **DEPRECATED**
|
|
76
|
+
- **Type**: `String`
|
|
77
|
+
- **Optional**: `true`
|
|
32
78
|
- **Default**: `CyberSource_SJC_US`
|
|
33
|
-
- **Description**:
|
|
79
|
+
- **Description**: **DEPRECATED** - Use `requestMleKeyAlias` instead. This field is maintained for backward compatibility and will be used as an alias for `requestMleKeyAlias`.
|
|
80
|
+
|
|
81
|
+
<br />
|
|
82
|
+
|
|
83
|
+
## 2. Response MLE Configuration
|
|
84
|
+
|
|
85
|
+
#### 2.1 Global Response MLE Configuration
|
|
86
|
+
|
|
87
|
+
- **Variable**: `enableResponseMleGlobally`
|
|
88
|
+
- **Type**: `Boolean`
|
|
89
|
+
- **Default**: `false`
|
|
90
|
+
- **Description**: Enables response MLE globally for all APIs that support MLE responses when set to `true`.
|
|
91
|
+
|
|
92
|
+
----
|
|
93
|
+
|
|
94
|
+
#### 2.2 Response MLE Private Key Configuration
|
|
95
|
+
|
|
96
|
+
##### (i) Option 1: Provide Private Key Object
|
|
97
|
+
|
|
98
|
+
- **Variable**: `responseMlePrivateKey`
|
|
99
|
+
- **Type**: `PrivateKey`
|
|
100
|
+
- **Description**: Direct private key object for response decryption. **Note**: Supports both PEM format private key objects and raw JWK (JSON Web Key) objects. When using JWK format, ensure the key contains the required cryptographic parameters for RSA private keys (n, e, d, p, q, dp, dq, qi).
|
|
101
|
+
|
|
102
|
+
---
|
|
103
|
+
|
|
104
|
+
##### (ii) Option 2: Provide Private Key File Path
|
|
105
|
+
|
|
106
|
+
- **Variable**: `responseMlePrivateKeyFilePath`
|
|
107
|
+
- **Type**: `String`
|
|
108
|
+
- **Description**: Path to the private key file. Supported formats: `.p12`, `.pfx`, `.pem`, `.key`, `.p8`. Recommendation use encrypted private Key (password protection) for MLE response.
|
|
109
|
+
|
|
110
|
+
---
|
|
111
|
+
|
|
112
|
+
##### (iii) Private Key File Password
|
|
113
|
+
|
|
114
|
+
- **Variable**: `responseMlePrivateKeyFilePassword`
|
|
115
|
+
- **Type**: `String`
|
|
116
|
+
- **Description**: Password for the private key file (required for `.p12/.pfx` files or encrypted private keys).
|
|
117
|
+
---
|
|
118
|
+
#### 2.3 Response MLE Additional Configuration
|
|
119
|
+
|
|
120
|
+
- **Variable**: `responseMleKID`
|
|
121
|
+
- **Type**: `String`
|
|
122
|
+
- **Optional**: `true` (when using CyberSource-generated P12 file)
|
|
123
|
+
- **Required**: `true` (when using PEM files or private key object)
|
|
124
|
+
- **Description**: Key ID value for the MLE response certificate (provided in merchant portal).
|
|
125
|
+
- **Note**: This parameter is optional when `responseMlePrivateKeyFilePath` points to a CyberSource-generated P12 file. If not provided, the SDK will automatically fetch the Key ID from the P12 file. If provided, the SDK will use the user-provided value instead of the auto-fetched value.
|
|
126
|
+
- **Required** when using PEM format files (`.pem`, `.key`, `.p8`) or when providing `responseMlePrivateKey` object directly.
|
|
127
|
+
|
|
128
|
+
<br/>
|
|
129
|
+
|
|
130
|
+
## 3. API-level MLE Control for Request and Response MLE
|
|
131
|
+
|
|
132
|
+
### Object Configuration
|
|
133
|
+
|
|
134
|
+
- **Variable**: `mapToControlMLEonAPI`
|
|
135
|
+
- **Type**: `Object` or `Map` with string keys and string values
|
|
136
|
+
- **Description**: Overrides global MLE settings for specific APIs. The key is the API function name, and the value controls both request and response MLE.
|
|
137
|
+
- **Example**: `{ "apiFunctionName": "true::true" }`
|
|
138
|
+
|
|
139
|
+
#### Structure of Values in Object:
|
|
140
|
+
|
|
141
|
+
(i) **"requestMLE::responseMLE"** - Control both request and response MLE
|
|
142
|
+
- `"true::true"` - Enable both request and response MLE
|
|
143
|
+
- `"false::false"` - Disable both request and response MLE
|
|
144
|
+
- `"true::false"` - Enable request MLE, disable response MLE
|
|
145
|
+
- `"false::true"` - Disable request MLE, enable response MLE
|
|
146
|
+
- `"::true"` - Use global setting for request, enable response MLE
|
|
147
|
+
- `"true::"` - Enable request MLE, use global setting for response
|
|
148
|
+
- `"::false"` - Use global setting for request, disable response MLE
|
|
149
|
+
- `"false::"` - Disable request MLE, use global setting for response
|
|
150
|
+
|
|
151
|
+
(ii) **"requestMLE"** - Control request MLE only (response uses global setting)
|
|
152
|
+
- `"true"` - Enable request MLE
|
|
153
|
+
- `"false"` - Disable request MLE
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
<br/>
|
|
157
|
+
|
|
158
|
+
## 4. Example Configurations
|
|
159
|
+
|
|
160
|
+
### (i) Minimal Request MLE Configuration
|
|
161
|
+
|
|
162
|
+
```javascript
|
|
163
|
+
// Properties-based configuration - Uses defaults (most common scenario)
|
|
164
|
+
var merchantConfig = {
|
|
165
|
+
enableRequestMLEForOptionalApisGlobally: true
|
|
166
|
+
// Both mleForRequestPublicCertPath and requestMleKeyAlias are optional
|
|
167
|
+
// SDK will use JWT P12 file with default alias "CyberSource_SJC_US"
|
|
168
|
+
};
|
|
169
|
+
```
|
|
170
|
+
|
|
171
|
+
### (ii) Request MLE with Deprecated Parameters (Backward Compatibility)
|
|
172
|
+
|
|
173
|
+
```javascript
|
|
174
|
+
// Using deprecated parameters - still supported but not recommended
|
|
175
|
+
var merchantConfig = {
|
|
176
|
+
useMLEGlobally: true, // Deprecated - use enableRequestMLEForOptionalApisGlobally
|
|
177
|
+
mleKeyAlias: "Custom_Key_Alias" // Deprecated - use requestMleKeyAlias
|
|
178
|
+
};
|
|
179
|
+
```
|
|
180
|
+
|
|
181
|
+
### (iii) Request MLE with Custom Key Alias
|
|
182
|
+
|
|
183
|
+
```javascript
|
|
184
|
+
// Properties-based configuration - With custom key alias only
|
|
185
|
+
var merchantConfig = {
|
|
186
|
+
enableRequestMLEForOptionalApisGlobally: true,
|
|
187
|
+
requestMleKeyAlias: "Custom_Key_Alias"
|
|
188
|
+
// Will fetch from JWT P12 file using custom alias
|
|
189
|
+
};
|
|
190
|
+
```
|
|
191
|
+
|
|
192
|
+
### (iv) Request MLE with Separate Certificate File
|
|
193
|
+
|
|
194
|
+
```javascript
|
|
195
|
+
// Properties-based configuration - With separate MLE certificate file
|
|
196
|
+
var merchantConfig = {
|
|
197
|
+
enableRequestMLEForOptionalApisGlobally: true,
|
|
198
|
+
mleForRequestPublicCertPath: "/path/to/public/cert.pem",
|
|
199
|
+
requestMleKeyAlias: "Custom_Key_Alias",
|
|
200
|
+
|
|
201
|
+
// API-specific control with string values
|
|
202
|
+
mapToControlMLEonAPI: {
|
|
203
|
+
"createPayment": "true", // Enable request MLE for this API (simple format)
|
|
204
|
+
"capturePayment": "false::" // Disable request MLE for this API (full format)
|
|
205
|
+
}
|
|
206
|
+
};
|
|
207
|
+
```
|
|
208
|
+
|
|
209
|
+
### (v) Response MLE Configuration with Private Key File
|
|
210
|
+
|
|
211
|
+
```javascript
|
|
212
|
+
// Properties-based configuration with CyberSource-generated P12 file
|
|
213
|
+
var merchantConfig = {
|
|
214
|
+
enableResponseMleGlobally: true,
|
|
215
|
+
responseMlePrivateKeyFilePath: "/path/to/private/key.p12",
|
|
216
|
+
responseMlePrivateKeyFilePassword: "password",
|
|
217
|
+
// responseMleKID is optional for CyberSource-generated P12 files - SDK will auto-fetch if not provided
|
|
218
|
+
// responseMleKID: "your-key-id", // Optional - overrides auto-fetched value
|
|
219
|
+
|
|
220
|
+
// API-specific control with string values
|
|
221
|
+
mapToControlMLEonAPI: {
|
|
222
|
+
"createPayment": "::true" // Enable response MLE only for this API
|
|
223
|
+
}
|
|
224
|
+
};
|
|
225
|
+
```
|
|
226
|
+
|
|
227
|
+
```javascript
|
|
228
|
+
// Properties-based configuration with PEM file (responseMleKID is required)
|
|
229
|
+
var merchantConfig = {
|
|
230
|
+
enableResponseMleGlobally: true,
|
|
231
|
+
responseMlePrivateKeyFilePath: "/path/to/private/key.pem",
|
|
232
|
+
responseMleKID: "your-key-id", // Required for PEM files
|
|
233
|
+
|
|
234
|
+
// API-specific control with string values
|
|
235
|
+
mapToControlMLEonAPI: {
|
|
236
|
+
"createPayment": "::true" // Enable response MLE only for this API
|
|
237
|
+
}
|
|
238
|
+
};
|
|
239
|
+
```
|
|
240
|
+
|
|
241
|
+
### (vi) Response MLE Configuration with Private Key Object
|
|
242
|
+
|
|
243
|
+
```javascript
|
|
244
|
+
// Load private key programmatically (PEM format or JWK object)
|
|
245
|
+
var privateKey = loadPrivateKeyFromSomewhere();
|
|
246
|
+
|
|
247
|
+
// Create merchantConfig with private key object (responseMleKID is required)
|
|
248
|
+
var merchantConfig = {
|
|
249
|
+
enableResponseMleGlobally: true,
|
|
250
|
+
responseMlePrivateKey: privateKey, // Supports PEM format or JWK object
|
|
251
|
+
responseMleKID: "your-key-id" // Required when using private key object
|
|
252
|
+
};
|
|
253
|
+
```
|
|
254
|
+
|
|
255
|
+
### (vii) Both Request and Response MLE Configuration
|
|
256
|
+
|
|
257
|
+
```javascript
|
|
258
|
+
// Properties-based configuration
|
|
259
|
+
var merchantConfig = {
|
|
260
|
+
// Request MLE settings (minimal - uses defaults)
|
|
261
|
+
enableRequestMLEForOptionalApisGlobally: true,
|
|
262
|
+
|
|
263
|
+
// Response MLE settings (with CyberSource-generated P12 file)
|
|
264
|
+
enableResponseMleGlobally: true,
|
|
265
|
+
responseMlePrivateKeyFilePath: "/path/to/private/key.p12",
|
|
266
|
+
responseMlePrivateKeyFilePassword: "password",
|
|
267
|
+
// responseMleKID is optional for CyberSource-generated P12 files
|
|
268
|
+
// responseMleKID: "your-key-id", // Optional - overrides auto-fetched value
|
|
269
|
+
|
|
270
|
+
// API-specific control for both request and response
|
|
271
|
+
mapToControlMLEonAPI: {
|
|
272
|
+
"createPayment": "true::true", // Enable both request and response MLE for this API
|
|
273
|
+
"capturePayment": "false::true", // Disable request, enable response MLE for this API
|
|
274
|
+
"refundPayment": "true::false", // Enable request, disable response MLE for this API
|
|
275
|
+
"createCredit": "::true" // Use global request setting, enable response MLE for this API
|
|
276
|
+
}
|
|
277
|
+
};
|
|
278
|
+
```
|
|
279
|
+
|
|
280
|
+
### (viii) Mixed Configuration (New and Deprecated Parameters)
|
|
281
|
+
|
|
282
|
+
```javascript
|
|
283
|
+
// Example showing both new and deprecated parameters (deprecated will be used as aliases)
|
|
284
|
+
var merchantConfig = {
|
|
285
|
+
// If both are set with same value, it works fine
|
|
286
|
+
enableRequestMLEForOptionalApisGlobally: true,
|
|
287
|
+
useMLEGlobally: true, // Deprecated but same value
|
|
288
|
+
|
|
289
|
+
// Key alias - new parameter takes precedence if both are provided
|
|
290
|
+
requestMleKeyAlias: "New_Alias",
|
|
291
|
+
mleKeyAlias: "Old_Alias" // This will be ignored
|
|
292
|
+
};
|
|
293
|
+
```
|
|
294
|
+
|
|
295
|
+
<br/>
|
|
296
|
+
|
|
297
|
+
## 5. Common Pitfalls
|
|
298
|
+
|
|
299
|
+
### ⚠️ Pitfall 1: Mixing New and Deprecated Parameters with Different Values
|
|
300
|
+
|
|
301
|
+
**Problem**: Using both new and deprecated parameters with conflicting values causes a `ConfigException`.
|
|
302
|
+
|
|
303
|
+
```javascript
|
|
304
|
+
// ❌ WRONG - This will throw ConfigException
|
|
305
|
+
var merchantConfig = {
|
|
306
|
+
enableRequestMLEForOptionalApisGlobally: true,
|
|
307
|
+
useMLEGlobally: false // CONFLICT!
|
|
308
|
+
};
|
|
309
|
+
```
|
|
310
|
+
|
|
311
|
+
**Solution**: Use only the new parameters, or ensure both have the same value.
|
|
312
|
+
|
|
313
|
+
```javascript
|
|
314
|
+
// ✅ CORRECT - Use new parameters only
|
|
315
|
+
var merchantConfig = {
|
|
316
|
+
enableRequestMLEForOptionalApisGlobally: true
|
|
317
|
+
};
|
|
318
|
+
|
|
319
|
+
// ✅ CORRECT - Or use same values if you must use both
|
|
320
|
+
var merchantConfig = {
|
|
321
|
+
enableRequestMLEForOptionalApisGlobally: true,
|
|
322
|
+
useMLEGlobally: true // Same value - works but not recommended
|
|
323
|
+
};
|
|
324
|
+
```
|
|
325
|
+
|
|
326
|
+
---
|
|
327
|
+
|
|
328
|
+
### ⚠️ Pitfall 2: Using HTTP Signature Authentication with MLE
|
|
329
|
+
|
|
330
|
+
**Problem**: MLE only works with JWT authentication. Using HTTP Signature will cause MLE to be silently disabled with a warning.
|
|
331
|
+
|
|
332
|
+
```javascript
|
|
333
|
+
// ❌ WRONG - MLE will not work with HTTP Signature
|
|
334
|
+
var merchantConfig = {
|
|
335
|
+
authenticationType: 'http_signature',
|
|
336
|
+
enableRequestMLEForOptionalApisGlobally: true // Will be ignored!
|
|
337
|
+
};
|
|
338
|
+
```
|
|
339
|
+
|
|
340
|
+
**Solution**: Always use JWT authentication for MLE.
|
|
341
|
+
|
|
342
|
+
```javascript
|
|
343
|
+
// ✅ CORRECT
|
|
344
|
+
var merchantConfig = {
|
|
345
|
+
authenticationType: 'jwt',
|
|
346
|
+
enableRequestMLEForOptionalApisGlobally: true
|
|
347
|
+
};
|
|
348
|
+
```
|
|
349
|
+
|
|
350
|
+
---
|
|
351
|
+
|
|
352
|
+
### ⚠️ Pitfall 3: Missing responseMleKID When Using Non-CyberSource P12/PFX
|
|
353
|
+
|
|
354
|
+
**Problem**: When using a P12/PFX file that was NOT generated by CyberSource, you must explicitly provide `responseMleKID`. If you forget to provide it, decryption will fail.
|
|
355
|
+
|
|
356
|
+
```javascript
|
|
357
|
+
// ❌ WRONG - Missing responseMleKID with non-CyberSource P12
|
|
358
|
+
var merchantConfig = {
|
|
359
|
+
enableResponseMleGlobally: true,
|
|
360
|
+
responseMlePrivateKeyFilePath: "/path/to/custom-key.p12", // Non-CyberSource P12
|
|
361
|
+
responseMlePrivateKeyFilePassword: "password"
|
|
362
|
+
// Missing: responseMleKID!
|
|
363
|
+
};
|
|
364
|
+
```
|
|
365
|
+
|
|
366
|
+
**Solution**: Always provide `responseMleKID` when using non-CyberSource P12 files. If using a CyberSource-generated P12, the KID will be auto-fetched.
|
|
367
|
+
|
|
368
|
+
```javascript
|
|
369
|
+
// ✅ CORRECT - With non-CyberSource P12, provide KID explicitly
|
|
370
|
+
var merchantConfig = {
|
|
371
|
+
enableResponseMleGlobally: true,
|
|
372
|
+
responseMlePrivateKeyFilePath: "/path/to/custom-key.p12",
|
|
373
|
+
responseMlePrivateKeyFilePassword: "password",
|
|
374
|
+
responseMleKID: "your-key-id" // Required for non-CyberSource P12!
|
|
375
|
+
};
|
|
376
|
+
|
|
377
|
+
// ✅ CORRECT - With CyberSource-generated P12, KID is optional (auto-fetched)
|
|
378
|
+
var merchantConfig = {
|
|
379
|
+
enableResponseMleGlobally: true,
|
|
380
|
+
responseMlePrivateKeyFilePath: "/path/to/cybersource-generated.p12",
|
|
381
|
+
responseMlePrivateKeyFilePassword: "password"
|
|
382
|
+
// responseMleKID will be auto-fetched from CyberSource P12
|
|
383
|
+
};
|
|
384
|
+
```
|
|
385
|
+
|
|
386
|
+
---
|
|
387
|
+
|
|
388
|
+
### ⚠️ Pitfall 4: Providing Both Private Key Object and File Path
|
|
389
|
+
|
|
390
|
+
**Problem**: Specifying both `responseMlePrivateKey` and `responseMlePrivateKeyFilePath` causes confusion and errors.
|
|
391
|
+
|
|
392
|
+
```javascript
|
|
393
|
+
// ❌ WRONG - Both private key sources provided
|
|
394
|
+
var merchantConfig = {
|
|
395
|
+
enableResponseMleGlobally: true,
|
|
396
|
+
responseMlePrivateKey: privateKeyObject,
|
|
397
|
+
responseMlePrivateKeyFilePath: "/path/to/key.p12", // Conflict!
|
|
398
|
+
responseMleKID: "your-key-id"
|
|
399
|
+
};
|
|
400
|
+
```
|
|
401
|
+
|
|
402
|
+
**Solution**: Choose only one method to provide the private key.
|
|
403
|
+
|
|
404
|
+
```javascript
|
|
405
|
+
// ✅ CORRECT - Option 1: Use private key object
|
|
406
|
+
var merchantConfig = {
|
|
407
|
+
enableResponseMleGlobally: true,
|
|
408
|
+
responseMlePrivateKey: privateKeyObject,
|
|
409
|
+
responseMleKID: "your-key-id"
|
|
410
|
+
};
|
|
411
|
+
|
|
412
|
+
// ✅ CORRECT - Option 2: Use private key file path
|
|
413
|
+
var merchantConfig = {
|
|
414
|
+
enableResponseMleGlobally: true,
|
|
415
|
+
responseMlePrivateKeyFilePath: "/path/to/key.p12",
|
|
416
|
+
responseMlePrivateKeyFilePassword: "password",
|
|
417
|
+
responseMleKID: "your-key-id"
|
|
418
|
+
};
|
|
419
|
+
```
|
|
420
|
+
|
|
421
|
+
---
|
|
422
|
+
|
|
423
|
+
### ⚠️ Pitfall 5: Invalid mapToControlMLEonAPI Format
|
|
424
|
+
|
|
425
|
+
**Problem**: Using incorrect format in `mapToControlMLEonAPI` values.
|
|
426
|
+
|
|
427
|
+
```javascript
|
|
428
|
+
// ❌ WRONG - Invalid formats
|
|
429
|
+
var merchantConfig = {
|
|
430
|
+
enableRequestMLEForOptionalApisGlobally: true,
|
|
431
|
+
mapToControlMLEonAPI: {
|
|
432
|
+
"createPayment": "true:false", // Wrong separator (single colon)
|
|
433
|
+
"capturePayment": "true::false::", // Too many separators
|
|
434
|
+
"refundPayment": "" // Empty value
|
|
435
|
+
}
|
|
436
|
+
};
|
|
437
|
+
```
|
|
438
|
+
|
|
439
|
+
**Solution**: Use correct string format with double colon separator.
|
|
440
|
+
|
|
441
|
+
```javascript
|
|
442
|
+
// ✅ CORRECT
|
|
443
|
+
var merchantConfig = {
|
|
444
|
+
enableRequestMLEForOptionalApisGlobally: true,
|
|
445
|
+
mapToControlMLEonAPI: {
|
|
446
|
+
"createPayment": "true::false", // Correct: double colon
|
|
447
|
+
"capturePayment": "false::true", // Correct format
|
|
448
|
+
"refundPayment": "true", // Correct: request only
|
|
449
|
+
"createCredit": "::true" // Correct: response only
|
|
450
|
+
}
|
|
451
|
+
};
|
|
452
|
+
```
|
|
453
|
+
|
|
454
|
+
---
|
|
455
|
+
|
|
456
|
+
### ⚠️ Pitfall 6: Wrong File Path or Missing Files
|
|
457
|
+
|
|
458
|
+
**Problem**: Providing incorrect file paths or missing certificate/key files.
|
|
459
|
+
|
|
460
|
+
```javascript
|
|
461
|
+
// ❌ WRONG - File doesn't exist or path is incorrect
|
|
462
|
+
var merchantConfig = {
|
|
463
|
+
enableRequestMLEForOptionalApisGlobally: true,
|
|
464
|
+
mleForRequestPublicCertPath: "/wrong/path/cert.pem" // File not found!
|
|
465
|
+
};
|
|
466
|
+
```
|
|
467
|
+
|
|
468
|
+
**Solution**: Verify file paths and ensure files exist before configuration.
|
|
469
|
+
|
|
470
|
+
```javascript
|
|
471
|
+
// ✅ CORRECT - Use valid, absolute paths
|
|
472
|
+
var merchantConfig = {
|
|
473
|
+
enableRequestMLEForOptionalApisGlobally: true,
|
|
474
|
+
mleForRequestPublicCertPath: "/absolute/path/to/cert.pem" // Verify this exists!
|
|
475
|
+
};
|
|
476
|
+
```
|
|
477
|
+
|
|
478
|
+
---
|
|
479
|
+
|
|
480
|
+
### ⚠️ Pitfall 7: Using Deprecated Parameters in New Code
|
|
481
|
+
|
|
482
|
+
**Problem**: Using deprecated parameters in new implementations.
|
|
483
|
+
|
|
484
|
+
```javascript
|
|
485
|
+
// ❌ NOT RECOMMENDED - Using deprecated parameters
|
|
486
|
+
var merchantConfig = {
|
|
487
|
+
useMLEGlobally: true, // Deprecated!
|
|
488
|
+
mleKeyAlias: "Custom_Alias" // Deprecated!
|
|
489
|
+
};
|
|
490
|
+
```
|
|
491
|
+
|
|
492
|
+
**Solution**: Always use the new parameter names for new code.
|
|
493
|
+
|
|
494
|
+
```javascript
|
|
495
|
+
// ✅ CORRECT - Use new parameters
|
|
496
|
+
var merchantConfig = {
|
|
497
|
+
enableRequestMLEForOptionalApisGlobally: true,
|
|
498
|
+
requestMleKeyAlias: "Custom_Alias"
|
|
499
|
+
};
|
|
500
|
+
```
|
|
501
|
+
|
|
502
|
+
<br/>
|
|
503
|
+
|
|
504
|
+
## 6. JSON Configuration Examples
|
|
505
|
+
|
|
506
|
+
### (i) Minimal Request MLE
|
|
34
507
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
508
|
+
```json
|
|
509
|
+
{
|
|
510
|
+
"merchantConfig": {
|
|
511
|
+
"enableRequestMLEForOptionalApisGlobally": true
|
|
512
|
+
}
|
|
513
|
+
}
|
|
514
|
+
```
|
|
515
|
+
|
|
516
|
+
### (ii) Request MLE with Deprecated Parameters
|
|
517
|
+
|
|
518
|
+
```json
|
|
519
|
+
{
|
|
520
|
+
"merchantConfig": {
|
|
521
|
+
"useMLEGlobally": true,
|
|
522
|
+
"mleKeyAlias": "Custom_Key_Alias"
|
|
523
|
+
}
|
|
524
|
+
}
|
|
525
|
+
```
|
|
526
|
+
|
|
527
|
+
### (iii) Request MLE with Custom Configuration
|
|
528
|
+
|
|
529
|
+
```json
|
|
530
|
+
{
|
|
531
|
+
"merchantConfig": {
|
|
532
|
+
"enableRequestMLEForOptionalApisGlobally": true,
|
|
533
|
+
"mleForRequestPublicCertPath": "/path/to/public/cert.pem",
|
|
534
|
+
"requestMleKeyAlias": "Custom_Key_Alias",
|
|
535
|
+
"mapToControlMLEonAPI": {
|
|
536
|
+
"createPayment": "true",
|
|
537
|
+
"capturePayment": "false"
|
|
538
|
+
}
|
|
539
|
+
}
|
|
540
|
+
}
|
|
541
|
+
```
|
|
39
542
|
|
|
40
|
-
|
|
543
|
+
### (iv) Response MLE Only
|
|
41
544
|
|
|
42
545
|
```json
|
|
43
546
|
{
|
|
44
547
|
"merchantConfig": {
|
|
45
|
-
"
|
|
548
|
+
"enableResponseMleGlobally": true,
|
|
549
|
+
"responseMlePrivateKeyFilePath": "/path/to/private/key.p12",
|
|
550
|
+
"responseMlePrivateKeyFilePassword": "password",
|
|
551
|
+
"// Note": "responseMleKID is optional for CyberSource-generated P12 files",
|
|
552
|
+
"responseMleKID": "your-key-id",
|
|
553
|
+
"mapToControlMLEonAPI": {
|
|
554
|
+
"createPayment": "::true"
|
|
555
|
+
}
|
|
46
556
|
}
|
|
47
557
|
}
|
|
48
558
|
```
|
|
49
|
-
Or
|
|
50
559
|
|
|
51
560
|
```json
|
|
52
561
|
{
|
|
53
562
|
"merchantConfig": {
|
|
54
|
-
"
|
|
563
|
+
"enableResponseMleGlobally": true,
|
|
564
|
+
"responseMlePrivateKeyFilePath": "/path/to/private/key.pem",
|
|
565
|
+
"// Note": "responseMleKID is required for PEM files",
|
|
566
|
+
"responseMleKID": "your-key-id",
|
|
55
567
|
"mapToControlMLEonAPI": {
|
|
56
|
-
"
|
|
57
|
-
|
|
58
|
-
},
|
|
59
|
-
"mleKeyAlias": "Custom_Key_Alias" //optional if any custom value provided by Cybs
|
|
568
|
+
"createPayment": "::true"
|
|
569
|
+
}
|
|
60
570
|
}
|
|
61
571
|
}
|
|
62
572
|
```
|
|
63
|
-
|
|
573
|
+
|
|
574
|
+
### (v) Both Request and Response MLE
|
|
64
575
|
|
|
65
576
|
```json
|
|
66
577
|
{
|
|
67
578
|
"merchantConfig": {
|
|
68
|
-
"
|
|
579
|
+
"enableRequestMLEForOptionalApisGlobally": true,
|
|
580
|
+
"enableResponseMleGlobally": true,
|
|
581
|
+
"responseMlePrivateKeyFilePath": "/path/to/private/key.p12",
|
|
582
|
+
"responseMlePrivateKeyFilePassword": "password",
|
|
583
|
+
"// Note": "responseMleKID is optional for CyberSource-generated P12 files - SDK will auto-fetch if not provided",
|
|
584
|
+
"responseMleKID": "your-key-id",
|
|
69
585
|
"mapToControlMLEonAPI": {
|
|
70
|
-
"
|
|
71
|
-
"
|
|
72
|
-
|
|
73
|
-
|
|
586
|
+
"createPayment": "true::true",
|
|
587
|
+
"capturePayment": "false::true",
|
|
588
|
+
"refundPayment": "true::false",
|
|
589
|
+
"createCredit": "::true"
|
|
590
|
+
}
|
|
74
591
|
}
|
|
75
592
|
}
|
|
76
593
|
```
|
|
594
|
+
<br/>
|
|
595
|
+
|
|
596
|
+
## 6. Supported Private Key File Formats
|
|
597
|
+
|
|
598
|
+
For Response MLE private key files, the following formats are supported:
|
|
599
|
+
|
|
600
|
+
- **PKCS#12**: `.p12`, `.pfx` (requires password)
|
|
601
|
+
- **PEM**: `.pem`, `.key`, `.p8` (supports both encrypted and unencrypted)
|
|
602
|
+
|
|
603
|
+
<br/>
|
|
604
|
+
|
|
605
|
+
## 7. Important Notes
|
|
606
|
+
|
|
607
|
+
### (i) Request MLE
|
|
608
|
+
- Both `mleForRequestPublicCertPath` and `requestMleKeyAlias` are **optional** parameters
|
|
609
|
+
- If `mleForRequestPublicCertPath` is not provided, the SDK will automatically fetch the MLE certificate from the JWT authentication P12 file
|
|
610
|
+
- If `requestMleKeyAlias` is not provided, the SDK will use the default value `CyberSource_SJC_US`
|
|
611
|
+
- The SDK provides flexible configuration options: you can use defaults, customize the key alias only, or provide a separate certificate file
|
|
612
|
+
- If `enableRequestMLEForOptionalApisGlobally` is set to `true`, it enables request MLE for all APIs that have optional MLE support
|
|
613
|
+
- APIs with mandatory MLE requirements are enabled by default unless `disableRequestMLEForMandatoryApisGlobally` is set to `true`
|
|
614
|
+
- If `mapToControlMLEonAPI` doesn't contain a specific API, the global setting applies
|
|
615
|
+
- For HTTP Signature authentication, request MLE will fall back to non-encrypted requests with a warning
|
|
616
|
+
|
|
617
|
+
### (ii) Response MLE
|
|
618
|
+
- Response MLE requires either `responseMlePrivateKey` object OR `responseMlePrivateKeyFilePath` (not both)
|
|
619
|
+
- The `responseMlePrivateKey` object supports both PEM format and JWK (JSON Web Key) objects
|
|
620
|
+
- The `responseMleKID` parameter behavior:
|
|
621
|
+
- **Optional** when `responseMlePrivateKeyFilePath` points to a CyberSource-generated P12 file (SDK auto-fetches from P12)
|
|
622
|
+
- **Required** when using PEM format files (`.pem`, `.key`, `.p8`)
|
|
623
|
+
- **Required** when using `responseMlePrivateKey` object directly
|
|
624
|
+
- When both auto-fetched and user-provided values exist, the user-provided value takes precedence
|
|
625
|
+
- If an API expects a mandatory MLE response but the map specifies non-MLE response, the API might return an error
|
|
626
|
+
- Both the private key object and file path approaches are mutually exclusive
|
|
627
|
+
|
|
628
|
+
### (iii) Backward Compatibility
|
|
629
|
+
- `useMLEGlobally` is **deprecated** but still supported as an alias for `enableRequestMLEForOptionalApisGlobally`
|
|
630
|
+
- `mleKeyAlias` is **deprecated** but still supported as an alias for `requestMleKeyAlias`
|
|
631
|
+
- If both new and deprecated parameters are provided with the **same value**, it works fine
|
|
632
|
+
- If both new and deprecated parameters are provided with **different values**, it will cause a `ConfigException`
|
|
633
|
+
- When both new and deprecated parameters are provided, the **new parameter takes precedence**
|
|
634
|
+
|
|
635
|
+
### (iv) API-level Control Validation
|
|
636
|
+
- The `mapToControlMLEonAPI` values are validated for proper format using string format
|
|
637
|
+
- Invalid formats (empty values, multiple separators) will cause configuration errors
|
|
638
|
+
- Empty string after `::` separator will use global defaults
|
|
639
|
+
- **Note**: Boolean values are supported for backward compatibility but are deprecated. Use string format for new implementations
|
|
640
|
+
|
|
641
|
+
### (v) Configuration Validation
|
|
642
|
+
- The SDK performs comprehensive validation of MLE configuration parameters
|
|
643
|
+
- Conflicting values between new and deprecated parameters will result in `ConfigException`
|
|
644
|
+
- File path validation is performed for certificate and private key files
|
|
645
|
+
- Invalid string format values in `mapToControlMLEonAPI` will cause parsing errors
|
|
646
|
+
- **Note**: Boolean values in `mapToControlMLEonAPI` are deprecated but still supported for backward compatibility
|
|
647
|
+
|
|
648
|
+
<br/>
|
|
77
649
|
|
|
78
|
-
|
|
79
|
-
- MLE is enabled/disabled globally (`useMLEGlobally` is true/false).
|
|
80
|
-
- `apiFunctionName1` will have MLE disabled/enabled based on value provided.
|
|
81
|
-
- `apiFunctionName2` will have MLE enabled.
|
|
82
|
-
- `mleKeyAlias` is set to `Custom_Key_Alias`, overriding the default value.
|
|
650
|
+
## 8. Error Handling
|
|
83
651
|
|
|
84
|
-
|
|
85
|
-
|
|
652
|
+
The SDK provides specific error messages for common MLE issues:
|
|
653
|
+
- Invalid private key for response decryption
|
|
654
|
+
- Missing certificates for request encryption
|
|
655
|
+
- Invalid file formats or paths
|
|
656
|
+
- Authentication type mismatches
|
|
657
|
+
- Configuration validation errors
|
|
658
|
+
- Conflicting parameter values between new and deprecated fields
|
|
659
|
+
- Invalid format in `mapToControlMLEonAPI` values
|
|
660
|
+
|
|
661
|
+
<br/>
|
|
662
|
+
|
|
663
|
+
## 9. Sample Code Repository
|
|
664
|
+
|
|
665
|
+
For comprehensive examples and sample implementations, please refer to:
|
|
666
|
+
[Cybersource Node.js Sample Code Repository (on GitHub)](https://github.com/CyberSource/cybersource-rest-samples-node/tree/master/Samples/MLEFeature)
|
|
667
|
+
|
|
668
|
+
<br/>
|
|
669
|
+
|
|
670
|
+
## 10. Additional Information
|
|
671
|
+
|
|
672
|
+
### (i) API Support
|
|
673
|
+
- MLE is designed to support specific APIs that have been enabled for encryption
|
|
674
|
+
- Support can be extended to additional APIs based on requirements and updates
|
|
675
|
+
|
|
676
|
+
### (ii) Using the SDK
|
|
677
|
+
To use the MLE feature in the SDK, configure the `merchantConfig` object as shown above and pass it to the SDK initialization. The SDK will automatically handle encryption and decryption based on your configuration.
|
|
678
|
+
|
|
679
|
+
### (iii) Migration from Deprecated Parameters
|
|
680
|
+
|
|
681
|
+
If you're currently using deprecated parameters, here's how to migrate:
|
|
682
|
+
|
|
683
|
+
```javascript
|
|
684
|
+
// OLD (Deprecated)
|
|
685
|
+
merchantConfig.useMLEGlobally = true;
|
|
686
|
+
merchantConfig.mleKeyAlias = "Custom_Alias";
|
|
687
|
+
|
|
688
|
+
// NEW (Recommended)
|
|
689
|
+
merchantConfig.enableRequestMLEForOptionalApisGlobally = true;
|
|
690
|
+
merchantConfig.requestMleKeyAlias = "Custom_Alias";
|
|
691
|
+
```
|
|
86
692
|
|
|
87
|
-
|
|
693
|
+
The deprecated parameters will continue to work but are not recommended for new implementations.
|
|
88
694
|
|
|
89
|
-
|
|
90
|
-
- MLE is initially designed to support a few APIs.
|
|
91
|
-
- It can be extended to support more APIs in the future based on requirements and updates.
|
|
92
|
-
### Authentication Type
|
|
93
|
-
- MLE is only supported with `JWT (JSON Web Token)` authentication type within the SDK.
|
|
94
|
-
### Using the SDK
|
|
95
|
-
To use the MLE feature in the SDK, configure the `merchantConfig` object as shown above and pass it to the SDK initialization.
|
|
695
|
+
<br/>
|
|
96
696
|
|
|
97
|
-
## Contact
|
|
697
|
+
## 11. Contact
|
|
98
698
|
For any issues or further assistance, please open an issue on the GitHub repository or contact our support team.
|