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.
Files changed (537) hide show
  1. package/MLE.md +649 -49
  2. package/cybersource-rest-client-0.0.75.tgz +0 -0
  3. package/docs/Acpv1instructionsDeclineThreshold.md +9 -0
  4. package/docs/Acpv1instructionsMandates.md +16 -0
  5. package/docs/Acpv1instructionsRecurringPaymentInformation.md +8 -0
  6. package/docs/Acpv1instructionsinstructionIdconfirmationsConfirmationData.md +11 -0
  7. package/docs/Acpv1instructionsinstructionIdconfirmationsMerchantInformation.md +10 -0
  8. package/docs/Acpv1instructionsinstructionIdconfirmationsOrderInformation.md +17 -0
  9. package/docs/Acpv1instructionsinstructionIdconfirmationsOrderInformationShippingDetails.md +8 -0
  10. package/docs/Acpv1instructionsinstructionIdconfirmationsProcessorInformation.md +19 -0
  11. package/docs/Acpv1instructionsinstructionIdconfirmationsProcessorInformationPaymentInstrument.md +8 -0
  12. package/docs/Acpv1instructionsinstructionIdconfirmationsProcessorInformationPaymentInstrumentVerificationResults.md +9 -0
  13. package/docs/Acpv1instructionsinstructionIdcredentialsAttachments.md +10 -0
  14. package/docs/Acpv1instructionsinstructionIdcredentialsClientReferenceInformation.md +8 -0
  15. package/docs/Acpv1instructionsinstructionIdcredentialsMandateReferenceData.md +8 -0
  16. package/docs/Acpv1instructionsinstructionIdcredentialsMerchantInformation.md +13 -0
  17. package/docs/Acpv1instructionsinstructionIdcredentialsMerchantInformationMerchantDescriptor.md +9 -0
  18. package/docs/Acpv1instructionsinstructionIdcredentialsOrderInformation.md +11 -0
  19. package/docs/Acpv1instructionsinstructionIdcredentialsOrderInformationAmountDetail.md +13 -0
  20. package/docs/Acpv1instructionsinstructionIdcredentialsOrderInformationItems.md +16 -0
  21. package/docs/Acpv1instructionsinstructionIdcredentialsOrderInformationItemsAdditionalInfo.md +9 -0
  22. package/docs/Acpv1instructionsinstructionIdcredentialsOrderInformationItemsPolicies.md +14 -0
  23. package/docs/Acpv1instructionsinstructionIdcredentialsOrderInformationLineItems.md +8 -0
  24. package/docs/Acpv1instructionsinstructionIdcredentialsOrderInformationShipTo.md +26 -0
  25. package/docs/Acpv1instructionsinstructionIdcredentialsPaymentOptions.md +9 -0
  26. package/docs/Acpv1instructionsinstructionIdcredentialsTransactionData.md +17 -0
  27. package/docs/Acpv1tokensAssuranceData.md +16 -0
  28. package/docs/Acpv1tokensAuthenticatedIdentities.md +10 -0
  29. package/docs/Acpv1tokensAuthenticationContext.md +8 -0
  30. package/docs/Acpv1tokensBillTo.md +15 -0
  31. package/docs/Acpv1tokensBuyerInformation.md +10 -0
  32. package/docs/Acpv1tokensBuyerInformationPersonalIdentification.md +10 -0
  33. package/docs/Acpv1tokensConsentData.md +12 -0
  34. package/docs/Acpv1tokensConsumerIdentity.md +11 -0
  35. package/docs/Acpv1tokensDeviceInformation.md +14 -0
  36. package/docs/Acpv1tokensDeviceInformationDeviceData.md +11 -0
  37. package/docs/Acpv1tokensEnrollmentReferenceData.md +9 -0
  38. package/docs/Acpv1tokensPaymentInformation.md +10 -0
  39. package/docs/Acpv1tokensPaymentInformationCustomer.md +8 -0
  40. package/docs/Acpv1tokensPaymentInformationInstrumentIdentifier.md +8 -0
  41. package/docs/Acpv1tokensPaymentInformationPaymentInstrument.md +8 -0
  42. package/docs/AgenticCancelPurchaseIntentRequest.md +11 -0
  43. package/docs/AgenticCardEnrollmentBadRequestResponse400.md +8 -0
  44. package/docs/AgenticCardEnrollmentBadRequestResponse400Error.md +11 -0
  45. package/docs/AgenticCardEnrollmentBadRequestResponse400ErrorDetail.md +11 -0
  46. package/docs/AgenticCardEnrollmentRequest.md +16 -0
  47. package/docs/AgenticCardEnrollmentResponse200.md +9 -0
  48. package/docs/AgenticCardEnrollmentResponse202.md +10 -0
  49. package/docs/AgenticConfirmTransactionEventsRequest.md +10 -0
  50. package/docs/AgenticConfirmTransactionEventsResponse202.md +8 -0
  51. package/docs/AgenticCreatePurchaseIntentRequest.md +15 -0
  52. package/docs/AgenticCreatePurchaseIntentResponse200.md +10 -0
  53. package/docs/AgenticPendingPurchaseIntentResponse202.md +12 -0
  54. package/docs/AgenticRetrievePaymentCredentialsRequest.md +10 -0
  55. package/docs/AgenticRetrievePaymentCredentialsResponse200.md +9 -0
  56. package/docs/AgenticRetrievePaymentCredentialsResponse200TransactionResponseComplete.md +12 -0
  57. package/docs/AgenticRetrievePaymentCredentialsResponse200TransactionResponseWithPendingEvents.md +11 -0
  58. package/docs/AgenticUpdatePurchaseIntentRequest.md +14 -0
  59. package/docs/BankAccountValidationApi.md +2 -2
  60. package/docs/BatchesApi.md +6 -6
  61. package/docs/Boardingv1registrationsOrganizationInformationBusinessInformation.md +2 -0
  62. package/docs/Boardingv1registrationsOrganizationInformationBusinessInformationLocalizedNames.md +10 -0
  63. package/docs/CreateNewWebhooksApi.md +2 -2
  64. package/docs/CreatePlanRequest.md +0 -1
  65. package/docs/CreateSubscriptionRequest.md +1 -1
  66. package/docs/CreateSubscriptionRequest1.md +1 -1
  67. package/docs/CreateSubscriptionResponse.md +1 -0
  68. package/docs/DecisionManagerApi.md +2 -2
  69. package/docs/DeviceDeAssociationApi.md +2 -2
  70. package/docs/DeviceSearchApi.md +4 -4
  71. package/docs/EnrollmentApi.md +55 -0
  72. package/docs/GenerateUnifiedCheckoutCaptureContextRequest.md +2 -1
  73. package/docs/GetAllSubscriptionsResponseClientReferenceInformation.md +8 -0
  74. package/docs/GetAllSubscriptionsResponseSubscriptions.md +1 -0
  75. package/docs/GetSubscriptionResponse.md +1 -0
  76. package/docs/GetSubscriptionResponse1PaymentInstrument.md +1 -1
  77. package/docs/GetSubscriptionResponse1PaymentInstrumentBuyerInformation.md +1 -1
  78. package/docs/GetSubscriptionResponse1ShippingAddress.md +1 -1
  79. package/docs/GetSubscriptionResponseReactivationInformation.md +2 -2
  80. package/docs/InlineResponse200.md +1 -4
  81. package/docs/InlineResponse2001.md +4 -4
  82. package/docs/InlineResponse20010.md +6 -7
  83. package/docs/{InlineResponse2009Devices.md → InlineResponse20010Devices.md} +2 -2
  84. package/docs/{InlineResponse2009PaymentProcessorToTerminalMap.md → InlineResponse20010PaymentProcessorToTerminalMap.md} +1 -1
  85. package/docs/InlineResponse20011.md +7 -10
  86. package/docs/InlineResponse20011Embedded.md +8 -0
  87. package/docs/{InlineResponse20010EmbeddedBatches.md → InlineResponse20011EmbeddedBatches.md} +3 -3
  88. package/docs/InlineResponse20011EmbeddedLinks.md +8 -0
  89. package/docs/{InlineResponse20010EmbeddedLinksReports.md → InlineResponse20011EmbeddedLinksReports.md} +1 -1
  90. package/docs/{InlineResponse20010EmbeddedTotals.md → InlineResponse20011EmbeddedTotals.md} +1 -1
  91. package/docs/InlineResponse20011Links.md +2 -2
  92. package/docs/InlineResponse20012.md +7 -7
  93. package/docs/{InlineResponse20011Billing.md → InlineResponse20012Billing.md} +1 -1
  94. package/docs/InlineResponse20012Links.md +9 -0
  95. package/docs/{InlineResponse20011LinksReport.md → InlineResponse20012LinksReport.md} +1 -1
  96. package/docs/InlineResponse20013.md +10 -4
  97. package/docs/InlineResponse20013Records.md +10 -0
  98. package/docs/{InlineResponse20012ResponseRecord.md → InlineResponse20013ResponseRecord.md} +2 -2
  99. package/docs/{InlineResponse20012ResponseRecordAdditionalUpdates.md → InlineResponse20013ResponseRecordAdditionalUpdates.md} +1 -1
  100. package/docs/{InlineResponse20012SourceRecord.md → InlineResponse20013SourceRecord.md} +1 -1
  101. package/docs/InlineResponse20014.md +4 -6
  102. package/docs/InlineResponse20015.md +13 -0
  103. package/docs/{InlineResponse20014ClientReferenceInformation.md → InlineResponse20015ClientReferenceInformation.md} +1 -1
  104. package/docs/{InlineResponse200Content.md → InlineResponse2001Content.md} +1 -1
  105. package/docs/InlineResponse2002.md +4 -12
  106. package/docs/InlineResponse2002Embedded.md +9 -0
  107. package/docs/{InlineResponse2001EmbeddedCapture.md → InlineResponse2002EmbeddedCapture.md} +2 -2
  108. package/docs/InlineResponse2002EmbeddedCaptureLinks.md +8 -0
  109. package/docs/{InlineResponse2001EmbeddedCaptureLinksSelf.md → InlineResponse2002EmbeddedCaptureLinksSelf.md} +1 -1
  110. package/docs/{InlineResponse2001EmbeddedReversal.md → InlineResponse2002EmbeddedReversal.md} +2 -2
  111. package/docs/InlineResponse2002EmbeddedReversalLinks.md +8 -0
  112. package/docs/{InlineResponse2001EmbeddedReversalLinksSelf.md → InlineResponse2002EmbeddedReversalLinksSelf.md} +1 -1
  113. package/docs/InlineResponse2003.md +12 -7
  114. package/docs/InlineResponse2004.md +7 -3
  115. package/docs/{InlineResponse2003IntegrationInformation.md → InlineResponse2004IntegrationInformation.md} +2 -2
  116. package/docs/{InlineResponse2003IntegrationInformationTenantConfigurations.md → InlineResponse2004IntegrationInformationTenantConfigurations.md} +1 -1
  117. package/docs/InlineResponse2005.md +3 -12
  118. package/docs/InlineResponse2006.md +0 -1
  119. package/docs/InlineResponse2007.md +13 -6
  120. package/docs/InlineResponse2008.md +6 -2
  121. package/docs/{InlineResponse2007Devices.md → InlineResponse2008Devices.md} +1 -1
  122. package/docs/InlineResponse2009.md +2 -6
  123. package/docs/InlineResponse200Details.md +9 -0
  124. package/docs/InlineResponse200Errors.md +10 -0
  125. package/docs/InlineResponse200Responses.md +11 -0
  126. package/docs/InlineResponse2013SetupsPayments.md +1 -0
  127. package/docs/InstructionsApi.md +255 -0
  128. package/docs/ManageWebhooksApi.md +4 -4
  129. package/docs/MerchantBoardingApi.md +2 -2
  130. package/docs/MerchantDefinedFieldsApi.md +6 -6
  131. package/docs/OffersApi.md +2 -2
  132. package/docs/PatchCustomerPaymentInstrumentRequest.md +9 -9
  133. package/docs/PatchCustomerRequest.md +9 -9
  134. package/docs/PatchCustomerShippingAddressRequest.md +3 -3
  135. package/docs/PatchPaymentInstrumentRequest.md +9 -9
  136. package/docs/PaymentInstrumentList1EmbeddedPaymentInstruments.md +8 -8
  137. package/docs/PaymentInstrumentListEmbedded.md +1 -1
  138. package/docs/PaymentsProducts.md +1 -0
  139. package/docs/PostCustomerPaymentInstrumentRequest.md +9 -9
  140. package/docs/PostCustomerRequest.md +9 -9
  141. package/docs/PostCustomerShippingAddressRequest.md +3 -3
  142. package/docs/PostIssuerLifeCycleSimulationRequest.md +10 -0
  143. package/docs/PostPaymentInstrumentRequest.md +9 -9
  144. package/docs/PostTokenizeRequest.md +9 -0
  145. package/docs/Ptsv2paymentsAggregatorInformation.md +1 -0
  146. package/docs/Ptsv2paymentsTravelInformationTransitAirlineAncillaryInformation.md +1 -0
  147. package/docs/Ptsv2paymentsTravelInformationTransitAirlineAncillaryInformationService.md +2 -0
  148. package/docs/Ptsv2paymentsidrefundsTravelInformation.md +13 -0
  149. package/docs/Ptsv2paymentsidrefundsTravelInformationTransit.md +8 -0
  150. package/docs/Ptsv2paymentsidrefundsTravelInformationTransitAirline.md +52 -0
  151. package/docs/Ptsv2paymentsidrefundsTravelInformationTransitAirlineAncillaryInformation.md +12 -0
  152. package/docs/Ptsv2paymentsidrefundsTravelInformationTransitAirlineAncillaryInformationService.md +9 -0
  153. package/docs/RefundCaptureRequest.md +1 -1
  154. package/docs/RefundPaymentRequest.md +1 -1
  155. package/docs/ShippingAddressListForCustomerEmbedded.md +1 -1
  156. package/docs/SubscriptionsApi.md +6 -6
  157. package/docs/TmsMerchantInformation.md +8 -0
  158. package/docs/{Tmsv2customersEmbeddedDefaultPaymentInstrumentMerchantInformationMerchantDescriptor.md → TmsMerchantInformationMerchantDescriptor.md} +1 -1
  159. package/docs/Tmsv2tokenizeProcessingInformation.md +9 -0
  160. package/docs/Tmsv2tokenizeTokenInformation.md +13 -0
  161. package/docs/Tmsv2tokenizeTokenInformationCustomer.md +17 -0
  162. package/docs/{Tmsv2customersBuyerInformation.md → Tmsv2tokenizeTokenInformationCustomerBuyerInformation.md} +1 -1
  163. package/docs/{Tmsv2customersClientReferenceInformation.md → Tmsv2tokenizeTokenInformationCustomerClientReferenceInformation.md} +1 -1
  164. package/docs/{Tmsv2customersDefaultPaymentInstrument.md → Tmsv2tokenizeTokenInformationCustomerDefaultPaymentInstrument.md} +1 -1
  165. package/docs/{Tmsv2customersDefaultShippingAddress.md → Tmsv2tokenizeTokenInformationCustomerDefaultShippingAddress.md} +1 -1
  166. package/docs/Tmsv2tokenizeTokenInformationCustomerEmbedded.md +9 -0
  167. package/docs/Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrument.md +22 -0
  168. package/docs/{Tmsv2customersEmbeddedDefaultPaymentInstrumentBankAccount.md → Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBankAccount.md} +1 -1
  169. package/docs/{Tmsv2customersEmbeddedDefaultPaymentInstrumentBillTo.md → Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBillTo.md} +1 -1
  170. package/docs/{Tmsv2customersEmbeddedDefaultPaymentInstrumentBuyerInformation.md → Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBuyerInformation.md} +2 -2
  171. package/docs/{Tmsv2customersEmbeddedDefaultPaymentInstrumentBuyerInformationIssuedBy.md → Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBuyerInformationIssuedBy.md} +1 -1
  172. package/docs/Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBuyerInformationPersonalIdentification.md +10 -0
  173. package/docs/{Tmsv2customersEmbeddedDefaultPaymentInstrumentCard.md → Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentCard.md} +2 -2
  174. package/docs/{Tmsv2customersEmbeddedDefaultPaymentInstrumentCardTokenizedInformation.md → Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentCardTokenizedInformation.md} +1 -1
  175. package/docs/{Tmsv2customersEmbeddedDefaultPaymentInstrumentEmbedded.md → Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentEmbedded.md} +1 -1
  176. package/docs/{Tmsv2customersEmbeddedDefaultPaymentInstrumentInstrumentIdentifier.md → Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentInstrumentIdentifier.md} +1 -1
  177. package/docs/Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentLinks.md +9 -0
  178. package/docs/{Tmsv2customersEmbeddedDefaultPaymentInstrumentLinksSelf.md → Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentLinksSelf.md} +1 -1
  179. package/docs/{Tmsv2customersEmbeddedDefaultPaymentInstrumentMetadata.md → Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentMetadata.md} +1 -1
  180. package/docs/Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultShippingAddress.md +12 -0
  181. package/docs/Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultShippingAddressLinks.md +9 -0
  182. package/docs/{Tmsv2customersEmbeddedDefaultShippingAddressLinksCustomer.md → Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultShippingAddressLinksCustomer.md} +1 -1
  183. package/docs/{Tmsv2customersEmbeddedDefaultShippingAddressLinksSelf.md → Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultShippingAddressLinksSelf.md} +1 -1
  184. package/docs/{Tmsv2customersEmbeddedDefaultShippingAddressMetadata.md → Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultShippingAddressMetadata.md} +1 -1
  185. package/docs/{Tmsv2customersEmbeddedDefaultShippingAddressShipTo.md → Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultShippingAddressShipTo.md} +1 -1
  186. package/docs/Tmsv2tokenizeTokenInformationCustomerLinks.md +10 -0
  187. package/docs/{Tmsv2customersLinksPaymentInstruments.md → Tmsv2tokenizeTokenInformationCustomerLinksPaymentInstruments.md} +1 -1
  188. package/docs/{Tmsv2customersLinksSelf.md → Tmsv2tokenizeTokenInformationCustomerLinksSelf.md} +1 -1
  189. package/docs/{Tmsv2customersLinksShippingAddress.md → Tmsv2tokenizeTokenInformationCustomerLinksShippingAddress.md} +1 -1
  190. package/docs/{Tmsv2customersMerchantDefinedInformation.md → Tmsv2tokenizeTokenInformationCustomerMerchantDefinedInformation.md} +1 -1
  191. package/docs/{Tmsv2customersMetadata.md → Tmsv2tokenizeTokenInformationCustomerMetadata.md} +1 -1
  192. package/docs/{Tmsv2customersObjectInformation.md → Tmsv2tokenizeTokenInformationCustomerObjectInformation.md} +1 -1
  193. package/docs/Tmsv2tokenizedcardstokenizedCardIdissuerlifecycleeventsimulationsCard.md +10 -0
  194. package/docs/Tmsv2tokenizedcardstokenizedCardIdissuerlifecycleeventsimulationsMetadata.md +8 -0
  195. package/docs/Tmsv2tokenizedcardstokenizedCardIdissuerlifecycleeventsimulationsMetadataCardArt.md +8 -0
  196. package/docs/Tmsv2tokenizedcardstokenizedCardIdissuerlifecycleeventsimulationsMetadataCardArtCombinedAsset.md +8 -0
  197. package/docs/TokenApi.md +2 -2
  198. package/docs/TokenizeApi.md +59 -0
  199. package/docs/TokenizedCardApi.md +53 -0
  200. package/docs/UpdateSubscription.md +1 -1
  201. package/docs/Upv1capturecontextsData.md +3 -1
  202. package/docs/Upv1capturecontextsDataBuyerInformation.md +4 -2
  203. package/docs/Upv1capturecontextsDataBuyerInformationPersonalIdentification.md +1 -1
  204. package/docs/Upv1capturecontextsDataConsumerAuthenticationInformation.md +3 -2
  205. package/docs/Upv1capturecontextsDataDeviceInformation.md +8 -0
  206. package/docs/Upv1capturecontextsDataMerchantDefinedInformation.md +2 -2
  207. package/docs/Upv1capturecontextsDataMerchantInformationMerchantDescriptor.md +7 -0
  208. package/docs/Upv1capturecontextsDataOrderInformation.md +1 -0
  209. package/docs/Upv1capturecontextsDataOrderInformationAmountDetails.md +1 -0
  210. package/docs/Upv1capturecontextsDataOrderInformationAmountDetailsTaxDetails.md +9 -0
  211. package/docs/Upv1capturecontextsDataOrderInformationInvoiceDetails.md +9 -0
  212. package/docs/Upv1capturecontextsDataOrderInformationLineItems.md +30 -30
  213. package/docs/Upv1capturecontextsDataOrderInformationLineItemsPassenger.md +8 -8
  214. package/docs/Upv1capturecontextsDataOrderInformationLineItemsTaxDetails.md +7 -7
  215. package/docs/Upv1capturecontextsDataPaymentInformation.md +8 -0
  216. package/docs/Upv1capturecontextsDataPaymentInformationCard.md +8 -0
  217. package/docs/Upv1capturecontextsDataProcessingInformation.md +1 -1
  218. package/docs/Upv1capturecontextsDataProcessingInformationAuthorizationOptions.md +7 -2
  219. package/docs/Upv1capturecontextsDataProcessingInformationAuthorizationOptionsInitiator.md +1 -1
  220. package/docs/Upv1capturecontextsDataRecipientInformation.md +2 -0
  221. package/package.json +3 -2
  222. package/src/ApiClient.js +56 -28
  223. package/src/api/BankAccountValidationApi.js +10 -9
  224. package/src/api/BatchesApi.js +25 -21
  225. package/src/api/BillingAgreementsApi.js +9 -6
  226. package/src/api/BinLookupApi.js +3 -2
  227. package/src/api/CaptureApi.js +3 -2
  228. package/src/api/ChargebackDetailsApi.js +3 -2
  229. package/src/api/ChargebackSummariesApi.js +3 -2
  230. package/src/api/ConversionDetailsApi.js +3 -2
  231. package/src/api/CreateNewWebhooksApi.js +16 -13
  232. package/src/api/CreditApi.js +3 -2
  233. package/src/api/CustomerApi.js +14 -10
  234. package/src/api/CustomerPaymentInstrumentApi.js +17 -12
  235. package/src/api/CustomerShippingAddressApi.js +17 -12
  236. package/src/api/DecisionManagerApi.js +22 -17
  237. package/src/api/DeviceDeAssociationApi.js +13 -11
  238. package/src/api/DeviceSearchApi.js +16 -14
  239. package/src/api/DownloadDTDApi.js +3 -2
  240. package/src/api/DownloadXSDApi.js +3 -2
  241. package/src/api/EMVTagDetailsApi.js +6 -4
  242. package/src/api/EnrollmentApi.js +120 -0
  243. package/src/api/FlexAPIApi.js +3 -2
  244. package/src/api/InstructionsApi.js +412 -0
  245. package/src/api/InstrumentIdentifierApi.js +21 -15
  246. package/src/api/InterchangeClearingLevelDetailsApi.js +3 -2
  247. package/src/api/InvoiceSettingsApi.js +6 -4
  248. package/src/api/InvoicesApi.js +21 -14
  249. package/src/api/ManageWebhooksApi.js +31 -24
  250. package/src/api/MerchantBoardingApi.js +13 -11
  251. package/src/api/MerchantDefinedFieldsApi.js +25 -21
  252. package/src/api/MicroformIntegrationApi.js +3 -2
  253. package/src/api/NetFundingsApi.js +3 -2
  254. package/src/api/NotificationOfChangesApi.js +3 -2
  255. package/src/api/OffersApi.js +13 -11
  256. package/src/api/OrdersApi.js +6 -4
  257. package/src/api/PayerAuthenticationApi.js +9 -6
  258. package/src/api/PaymentBatchSummariesApi.js +3 -2
  259. package/src/api/PaymentInstrumentApi.js +14 -10
  260. package/src/api/PaymentLinksApi.js +12 -8
  261. package/src/api/PaymentTokensApi.js +3 -2
  262. package/src/api/PaymentsApi.js +18 -12
  263. package/src/api/PayoutsApi.js +3 -2
  264. package/src/api/PlansApi.js +24 -16
  265. package/src/api/PurchaseAndRefundDetailsApi.js +3 -2
  266. package/src/api/PushFundsApi.js +3 -2
  267. package/src/api/RefundApi.js +6 -4
  268. package/src/api/ReportDefinitionsApi.js +6 -4
  269. package/src/api/ReportDownloadsApi.js +3 -2
  270. package/src/api/ReportSubscriptionsApi.js +15 -10
  271. package/src/api/ReportsApi.js +9 -6
  272. package/src/api/RetrievalDetailsApi.js +3 -2
  273. package/src/api/RetrievalSummariesApi.js +3 -2
  274. package/src/api/ReversalApi.js +6 -4
  275. package/src/api/SearchTransactionsApi.js +6 -4
  276. package/src/api/SecureFileShareApi.js +6 -4
  277. package/src/api/SubscriptionsApi.js +29 -21
  278. package/src/api/SubscriptionsFollowOnsApi.js +6 -4
  279. package/src/api/TaxesApi.js +6 -4
  280. package/src/api/TokenApi.js +14 -12
  281. package/src/api/TokenizeApi.js +124 -0
  282. package/src/api/TokenizedCardApi.js +93 -11
  283. package/src/api/TransactionBatchesApi.js +12 -8
  284. package/src/api/TransactionDetailsApi.js +3 -2
  285. package/src/api/TransientTokenDataApi.js +6 -4
  286. package/src/api/UnifiedCheckoutCaptureContextApi.js +3 -2
  287. package/src/api/UserManagementApi.js +3 -2
  288. package/src/api/UserManagementSearchApi.js +3 -2
  289. package/src/api/VerificationApi.js +6 -4
  290. package/src/api/VoidApi.js +15 -10
  291. package/src/authentication/core/Authorization.js +2 -2
  292. package/src/authentication/core/MerchantConfig.js +271 -46
  293. package/src/authentication/jwt/JWTSigToken.js +50 -28
  294. package/src/authentication/logging/SensitiveDataMasker.js +8 -1
  295. package/src/authentication/logging/SensitiveDataTags.js +1 -1
  296. package/src/authentication/util/Cache.js +103 -17
  297. package/src/authentication/util/Constants.js +6 -1
  298. package/src/authentication/util/MLEUtility.js +251 -15
  299. package/src/authentication/util/Utility.js +340 -1
  300. package/src/authentication/util/jwt/JWTExceptions.js +64 -0
  301. package/src/authentication/util/jwt/JWTUtility.js +235 -0
  302. package/src/index.js +616 -210
  303. package/src/model/Acpv1instructionsDeclineThreshold.js +92 -0
  304. package/src/model/Acpv1instructionsMandates.js +157 -0
  305. package/src/model/Acpv1instructionsRecurringPaymentInformation.js +83 -0
  306. package/src/model/Acpv1instructionsinstructionIdconfirmationsConfirmationData.js +107 -0
  307. package/src/model/Acpv1instructionsinstructionIdconfirmationsMerchantInformation.js +101 -0
  308. package/src/model/Acpv1instructionsinstructionIdconfirmationsOrderInformation.js +159 -0
  309. package/src/model/Acpv1instructionsinstructionIdconfirmationsOrderInformationShippingDetails.js +83 -0
  310. package/src/model/Acpv1instructionsinstructionIdconfirmationsProcessorInformation.js +182 -0
  311. package/src/model/Acpv1instructionsinstructionIdconfirmationsProcessorInformationPaymentInstrument.js +82 -0
  312. package/src/model/Acpv1instructionsinstructionIdconfirmationsProcessorInformationPaymentInstrumentVerificationResults.js +91 -0
  313. package/src/model/Acpv1instructionsinstructionIdcredentialsAttachments.js +101 -0
  314. package/src/model/Acpv1instructionsinstructionIdcredentialsClientReferenceInformation.js +84 -0
  315. package/src/model/Acpv1instructionsinstructionIdcredentialsMandateReferenceData.js +82 -0
  316. package/src/model/Acpv1instructionsinstructionIdcredentialsMerchantInformation.js +129 -0
  317. package/src/model/Acpv1instructionsinstructionIdcredentialsMerchantInformationMerchantDescriptor.js +94 -0
  318. package/src/model/Acpv1instructionsinstructionIdcredentialsOrderInformation.js +108 -0
  319. package/src/model/Acpv1instructionsinstructionIdcredentialsOrderInformationAmountDetail.js +130 -0
  320. package/src/model/Acpv1instructionsinstructionIdcredentialsOrderInformationItems.js +151 -0
  321. package/src/model/Acpv1instructionsinstructionIdcredentialsOrderInformationItemsAdditionalInfo.js +91 -0
  322. package/src/model/Acpv1instructionsinstructionIdcredentialsOrderInformationItemsPolicies.js +136 -0
  323. package/src/model/Acpv1instructionsinstructionIdcredentialsOrderInformationLineItems.js +82 -0
  324. package/src/model/Acpv1instructionsinstructionIdcredentialsOrderInformationShipTo.js +248 -0
  325. package/src/model/Acpv1instructionsinstructionIdcredentialsPaymentOptions.js +92 -0
  326. package/src/model/Acpv1instructionsinstructionIdcredentialsTransactionData.js +161 -0
  327. package/src/model/Acpv1tokensAssuranceData.js +156 -0
  328. package/src/model/Acpv1tokensAuthenticatedIdentities.js +102 -0
  329. package/src/model/Acpv1tokensAuthenticationContext.js +83 -0
  330. package/src/model/Acpv1tokensBillTo.js +149 -0
  331. package/src/model/Acpv1tokensBuyerInformation.js +100 -0
  332. package/src/model/Acpv1tokensBuyerInformationPersonalIdentification.js +100 -0
  333. package/src/model/Acpv1tokensConsentData.js +123 -0
  334. package/src/model/Acpv1tokensConsumerIdentity.js +112 -0
  335. package/src/model/Acpv1tokensDeviceInformation.js +140 -0
  336. package/src/model/Acpv1tokensDeviceInformationDeviceData.js +112 -0
  337. package/src/model/Acpv1tokensEnrollmentReferenceData.js +93 -0
  338. package/src/model/Acpv1tokensPaymentInformation.js +99 -0
  339. package/src/model/{Tmsv2customersDefaultPaymentInstrument.js → Acpv1tokensPaymentInformationCustomer.js} +10 -9
  340. package/src/model/Acpv1tokensPaymentInformationInstrumentIdentifier.js +84 -0
  341. package/src/model/{Tmsv2customersEmbeddedDefaultPaymentInstrumentInstrumentIdentifier.js → Acpv1tokensPaymentInformationPaymentInstrument.js} +10 -9
  342. package/src/model/AgenticCancelPurchaseIntentRequest.js +110 -0
  343. package/src/model/AgenticCardEnrollmentBadRequestResponse400.js +81 -0
  344. package/src/model/AgenticCardEnrollmentBadRequestResponse400Error.js +112 -0
  345. package/src/model/AgenticCardEnrollmentBadRequestResponse400ErrorDetail.js +110 -0
  346. package/src/model/AgenticCardEnrollmentRequest.js +154 -0
  347. package/src/model/AgenticCardEnrollmentResponse200.js +92 -0
  348. package/src/model/AgenticCardEnrollmentResponse202.js +101 -0
  349. package/src/model/AgenticConfirmTransactionEventsRequest.js +102 -0
  350. package/src/model/AgenticConfirmTransactionEventsResponse202.js +83 -0
  351. package/src/model/AgenticCreatePurchaseIntentRequest.js +147 -0
  352. package/src/model/AgenticCreatePurchaseIntentResponse200.js +102 -0
  353. package/src/model/AgenticPendingPurchaseIntentResponse202.js +119 -0
  354. package/src/model/AgenticRetrievePaymentCredentialsRequest.js +102 -0
  355. package/src/model/AgenticRetrievePaymentCredentialsResponse200.js +90 -0
  356. package/src/model/AgenticRetrievePaymentCredentialsResponse200TransactionResponseComplete.js +120 -0
  357. package/src/model/AgenticRetrievePaymentCredentialsResponse200TransactionResponseWithPendingEvents.js +111 -0
  358. package/src/model/AgenticUpdatePurchaseIntentRequest.js +137 -0
  359. package/src/model/Boardingv1registrationsOrganizationInformationBusinessInformation.js +20 -4
  360. package/src/model/Boardingv1registrationsOrganizationInformationBusinessInformationLocalizedNames.js +97 -0
  361. package/src/model/CreatePlanRequest.js +4 -12
  362. package/src/model/CreateSubscriptionRequest.js +6 -6
  363. package/src/model/CreateSubscriptionRequest1.js +6 -6
  364. package/src/model/CreateSubscriptionResponse.js +12 -4
  365. package/src/model/GenerateUnifiedCheckoutCaptureContextRequest.js +10 -1
  366. package/src/model/GetAllSubscriptionsResponseClientReferenceInformation.js +82 -0
  367. package/src/model/GetAllSubscriptionsResponseSubscriptions.js +12 -4
  368. package/src/model/GetSubscriptionResponse.js +12 -4
  369. package/src/model/GetSubscriptionResponse1PaymentInstrument.js +6 -6
  370. package/src/model/GetSubscriptionResponse1PaymentInstrumentBuyerInformation.js +6 -6
  371. package/src/model/GetSubscriptionResponse1ShippingAddress.js +6 -6
  372. package/src/model/GetSubscriptionResponseReactivationInformation.js +9 -9
  373. package/src/model/InlineResponse200.js +8 -37
  374. package/src/model/InlineResponse2001.js +21 -19
  375. package/src/model/InlineResponse20010.js +25 -27
  376. package/src/model/{InlineResponse2009Devices.js → InlineResponse20010Devices.js} +13 -13
  377. package/src/model/{InlineResponse2009PaymentProcessorToTerminalMap.js → InlineResponse20010PaymentProcessorToTerminalMap.js} +8 -8
  378. package/src/model/InlineResponse20011.js +30 -59
  379. package/src/model/{InlineResponse20010Embedded.js → InlineResponse20011Embedded.js} +13 -13
  380. package/src/model/{InlineResponse20010EmbeddedBatches.js → InlineResponse20011EmbeddedBatches.js} +15 -15
  381. package/src/model/{InlineResponse20010EmbeddedLinks.js → InlineResponse20011EmbeddedLinks.js} +13 -13
  382. package/src/model/{InlineResponse20010EmbeddedLinksReports.js → InlineResponse20011EmbeddedLinksReports.js} +8 -8
  383. package/src/model/{InlineResponse20010EmbeddedTotals.js → InlineResponse20011EmbeddedTotals.js} +8 -8
  384. package/src/model/InlineResponse20011Links.js +13 -12
  385. package/src/model/InlineResponse20012.js +37 -37
  386. package/src/model/{InlineResponse20011Billing.js → InlineResponse20012Billing.js} +8 -8
  387. package/src/model/InlineResponse20012Links.js +89 -0
  388. package/src/model/{InlineResponse20011LinksReport.js → InlineResponse20012LinksReport.js} +8 -8
  389. package/src/model/InlineResponse20013.js +73 -22
  390. package/src/model/{InlineResponse20012Records.js → InlineResponse20013Records.js} +15 -15
  391. package/src/model/{InlineResponse20012ResponseRecord.js → InlineResponse20013ResponseRecord.js} +13 -13
  392. package/src/model/{InlineResponse20012ResponseRecordAdditionalUpdates.js → InlineResponse20013ResponseRecordAdditionalUpdates.js} +8 -8
  393. package/src/model/{InlineResponse20012SourceRecord.js → InlineResponse20013SourceRecord.js} +8 -8
  394. package/src/model/InlineResponse20014.js +18 -38
  395. package/src/model/InlineResponse20015.js +127 -0
  396. package/src/model/{InlineResponse20014ClientReferenceInformation.js → InlineResponse20015ClientReferenceInformation.js} +8 -8
  397. package/src/model/{InlineResponse200Content.js → InlineResponse2001Content.js} +8 -8
  398. package/src/model/InlineResponse2002.js +21 -82
  399. package/src/model/{InlineResponse2001Embedded.js → InlineResponse2002Embedded.js} +15 -15
  400. package/src/model/{InlineResponse2001EmbeddedCapture.js → InlineResponse2002EmbeddedCapture.js} +13 -13
  401. package/src/model/{InlineResponse2001EmbeddedCaptureLinks.js → InlineResponse2002EmbeddedCaptureLinks.js} +13 -13
  402. package/src/model/{InlineResponse2001EmbeddedCaptureLinksSelf.js → InlineResponse2002EmbeddedCaptureLinksSelf.js} +8 -8
  403. package/src/model/{InlineResponse2001EmbeddedReversal.js → InlineResponse2002EmbeddedReversal.js} +13 -13
  404. package/src/model/{InlineResponse2001EmbeddedReversalLinks.js → InlineResponse2002EmbeddedReversalLinks.js} +13 -13
  405. package/src/model/{InlineResponse2001EmbeddedReversalLinksSelf.js → InlineResponse2002EmbeddedReversalLinksSelf.js} +8 -8
  406. package/src/model/InlineResponse2003.js +72 -32
  407. package/src/model/InlineResponse2004.js +48 -18
  408. package/src/model/{InlineResponse2003IntegrationInformation.js → InlineResponse2004IntegrationInformation.js} +13 -13
  409. package/src/model/{InlineResponse2003IntegrationInformationTenantConfigurations.js → InlineResponse2004IntegrationInformationTenantConfigurations.js} +8 -8
  410. package/src/model/InlineResponse2005.js +18 -99
  411. package/src/model/InlineResponse2006.js +0 -9
  412. package/src/model/InlineResponse2007.js +96 -34
  413. package/src/model/InlineResponse2008.js +48 -11
  414. package/src/model/{InlineResponse2007Devices.js → InlineResponse2008Devices.js} +8 -8
  415. package/src/model/InlineResponse2009.js +11 -48
  416. package/src/model/{InlineResponse20010Links.js → InlineResponse200Details.js} +18 -17
  417. package/src/model/InlineResponse200Errors.js +99 -0
  418. package/src/model/InlineResponse200Responses.js +108 -0
  419. package/src/model/InlineResponse2013SetupsPayments.js +8 -0
  420. package/src/model/PatchCustomerPaymentInstrumentRequest.js +22 -22
  421. package/src/model/PatchCustomerRequest.js +22 -22
  422. package/src/model/PatchCustomerShippingAddressRequest.js +10 -10
  423. package/src/model/PatchPaymentInstrumentRequest.js +22 -22
  424. package/src/model/PaymentInstrumentList1EmbeddedPaymentInstruments.js +20 -20
  425. package/src/model/PaymentInstrumentListEmbedded.js +6 -6
  426. package/src/model/PaymentsProducts.js +8 -0
  427. package/src/model/PostCustomerPaymentInstrumentRequest.js +22 -22
  428. package/src/model/PostCustomerRequest.js +22 -22
  429. package/src/model/PostCustomerShippingAddressRequest.js +10 -10
  430. package/src/model/PostIssuerLifeCycleSimulationRequest.js +99 -0
  431. package/src/model/PostPaymentInstrumentRequest.js +22 -22
  432. package/src/model/PostTokenizeRequest.js +89 -0
  433. package/src/model/Ptsv2paymentsAggregatorInformation.js +9 -0
  434. package/src/model/Ptsv2paymentsTravelInformationTransitAirlineAncillaryInformation.js +9 -0
  435. package/src/model/Ptsv2paymentsTravelInformationTransitAirlineAncillaryInformationService.js +18 -0
  436. package/src/model/Ptsv2paymentsidrefundsTravelInformation.js +122 -0
  437. package/src/model/Ptsv2paymentsidrefundsTravelInformationTransit.js +81 -0
  438. package/src/model/Ptsv2paymentsidrefundsTravelInformationTransitAirline.js +475 -0
  439. package/src/model/Ptsv2paymentsidrefundsTravelInformationTransitAirlineAncillaryInformation.js +117 -0
  440. package/src/model/Ptsv2paymentsidrefundsTravelInformationTransitAirlineAncillaryInformationService.js +91 -0
  441. package/src/model/RefundCaptureRequest.js +6 -6
  442. package/src/model/RefundPaymentRequest.js +6 -6
  443. package/src/model/ShippingAddressListForCustomerEmbedded.js +6 -6
  444. package/src/model/TmsMerchantInformation.js +81 -0
  445. package/src/model/{Tmsv2customersEmbeddedDefaultPaymentInstrumentMerchantInformationMerchantDescriptor.js → TmsMerchantInformationMerchantDescriptor.js} +8 -8
  446. package/src/model/Tmsv2tokenizeProcessingInformation.js +91 -0
  447. package/src/model/Tmsv2tokenizeTokenInformation.js +123 -0
  448. package/src/model/Tmsv2tokenizeTokenInformationCustomer.js +155 -0
  449. package/src/model/{Tmsv2customersBuyerInformation.js → Tmsv2tokenizeTokenInformationCustomerBuyerInformation.js} +8 -8
  450. package/src/model/Tmsv2tokenizeTokenInformationCustomerClientReferenceInformation.js +82 -0
  451. package/src/model/Tmsv2tokenizeTokenInformationCustomerDefaultPaymentInstrument.js +82 -0
  452. package/src/model/{Tmsv2customersDefaultShippingAddress.js → Tmsv2tokenizeTokenInformationCustomerDefaultShippingAddress.js} +8 -8
  453. package/src/model/Tmsv2tokenizeTokenInformationCustomerEmbedded.js +90 -0
  454. package/src/model/Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrument.js +198 -0
  455. package/src/model/{Tmsv2customersEmbeddedDefaultPaymentInstrumentBankAccount.js → Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBankAccount.js} +8 -8
  456. package/src/model/{Tmsv2customersEmbeddedDefaultPaymentInstrumentBillTo.js → Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBillTo.js} +8 -8
  457. package/src/model/{Tmsv2customersEmbeddedDefaultPaymentInstrumentBuyerInformation.js → Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBuyerInformation.js} +13 -13
  458. package/src/model/{Tmsv2customersEmbeddedDefaultPaymentInstrumentBuyerInformationIssuedBy.js → Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBuyerInformationIssuedBy.js} +8 -8
  459. package/src/model/Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentBuyerInformationPersonalIdentification.js +99 -0
  460. package/src/model/{Tmsv2customersEmbeddedDefaultPaymentInstrumentCard.js → Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentCard.js} +13 -13
  461. package/src/model/{Tmsv2customersEmbeddedDefaultPaymentInstrumentCardTokenizedInformation.js → Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentCardTokenizedInformation.js} +8 -8
  462. package/src/model/{Tmsv2customersEmbeddedDefaultPaymentInstrumentEmbedded.js → Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentEmbedded.js} +8 -8
  463. package/src/model/Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentInstrumentIdentifier.js +82 -0
  464. package/src/model/Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentLinks.js +89 -0
  465. package/src/model/{Tmsv2customersEmbeddedDefaultPaymentInstrumentLinksSelf.js → Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentLinksSelf.js} +8 -8
  466. package/src/model/{Tmsv2customersEmbeddedDefaultPaymentInstrumentMetadata.js → Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentMetadata.js} +8 -8
  467. package/src/model/Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultShippingAddress.js +115 -0
  468. package/src/model/Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultShippingAddressLinks.js +89 -0
  469. package/src/model/{Tmsv2customersEmbeddedDefaultShippingAddressLinksCustomer.js → Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultShippingAddressLinksCustomer.js} +8 -8
  470. package/src/model/{Tmsv2customersEmbeddedDefaultShippingAddressLinksSelf.js → Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultShippingAddressLinksSelf.js} +8 -8
  471. package/src/model/{Tmsv2customersEmbeddedDefaultShippingAddressMetadata.js → Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultShippingAddressMetadata.js} +8 -8
  472. package/src/model/{Tmsv2customersEmbeddedDefaultShippingAddressShipTo.js → Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultShippingAddressShipTo.js} +8 -8
  473. package/src/model/Tmsv2tokenizeTokenInformationCustomerLinks.js +97 -0
  474. package/src/model/{Tmsv2customersLinksPaymentInstruments.js → Tmsv2tokenizeTokenInformationCustomerLinksPaymentInstruments.js} +8 -8
  475. package/src/model/{Tmsv2customersLinksSelf.js → Tmsv2tokenizeTokenInformationCustomerLinksSelf.js} +8 -8
  476. package/src/model/{Tmsv2customersLinksShippingAddress.js → Tmsv2tokenizeTokenInformationCustomerLinksShippingAddress.js} +8 -8
  477. package/src/model/{Tmsv2customersMerchantDefinedInformation.js → Tmsv2tokenizeTokenInformationCustomerMerchantDefinedInformation.js} +8 -8
  478. package/src/model/{Tmsv2customersMetadata.js → Tmsv2tokenizeTokenInformationCustomerMetadata.js} +8 -8
  479. package/src/model/{Tmsv2customersObjectInformation.js → Tmsv2tokenizeTokenInformationCustomerObjectInformation.js} +8 -8
  480. package/src/model/Tmsv2tokenizedcardstokenizedCardIdissuerlifecycleeventsimulationsCard.js +100 -0
  481. package/src/model/Tmsv2tokenizedcardstokenizedCardIdissuerlifecycleeventsimulationsMetadata.js +81 -0
  482. package/src/model/Tmsv2tokenizedcardstokenizedCardIdissuerlifecycleeventsimulationsMetadataCardArt.js +81 -0
  483. package/src/model/Tmsv2tokenizedcardstokenizedCardIdissuerlifecycleeventsimulationsMetadataCardArtCombinedAsset.js +82 -0
  484. package/src/model/UpdateSubscription.js +6 -6
  485. package/src/model/Upv1capturecontextsData.js +22 -6
  486. package/src/model/Upv1capturecontextsDataBuyerInformation.js +20 -0
  487. package/src/model/Upv1capturecontextsDataBuyerInformationPersonalIdentification.js +1 -0
  488. package/src/model/Upv1capturecontextsDataClientReferenceInformationPartner.js +4 -4
  489. package/src/model/Upv1capturecontextsDataConsumerAuthenticationInformation.js +11 -0
  490. package/src/model/{Tmsv2customersClientReferenceInformation.js → Upv1capturecontextsDataDeviceInformation.js} +13 -13
  491. package/src/model/Upv1capturecontextsDataMerchantDefinedInformation.js +3 -2
  492. package/src/model/Upv1capturecontextsDataMerchantInformationMerchantDescriptor.js +63 -0
  493. package/src/model/Upv1capturecontextsDataOrderInformation.js +12 -4
  494. package/src/model/Upv1capturecontextsDataOrderInformationAmountDetails.js +12 -4
  495. package/src/model/Upv1capturecontextsDataOrderInformationAmountDetailsTaxDetails.js +91 -0
  496. package/src/model/Upv1capturecontextsDataOrderInformationInvoiceDetails.js +91 -0
  497. package/src/model/Upv1capturecontextsDataOrderInformationLineItems.js +30 -0
  498. package/src/model/Upv1capturecontextsDataOrderInformationLineItemsPassenger.js +8 -0
  499. package/src/model/Upv1capturecontextsDataOrderInformationLineItemsTaxDetails.js +7 -0
  500. package/src/model/Upv1capturecontextsDataPaymentInformation.js +81 -0
  501. package/src/model/Upv1capturecontextsDataPaymentInformationCard.js +82 -0
  502. package/src/model/Upv1capturecontextsDataProcessingInformation.js +1 -0
  503. package/src/model/Upv1capturecontextsDataProcessingInformationAuthorizationOptions.js +47 -0
  504. package/src/model/Upv1capturecontextsDataProcessingInformationAuthorizationOptionsInitiator.js +1 -0
  505. package/src/model/Upv1capturecontextsDataRecipientInformation.js +18 -0
  506. package/src/model/Upv1capturecontextsOrderInformation.js +1 -0
  507. package/src/utilities/capturecontext/CaptureContextParsingUtility.js +131 -0
  508. package/src/utilities/capturecontext/PublicKeyApiController.js +85 -0
  509. package/docs/InlineResponse20010Embedded.md +0 -8
  510. package/docs/InlineResponse20010EmbeddedLinks.md +0 -8
  511. package/docs/InlineResponse20010Links.md +0 -9
  512. package/docs/InlineResponse20012Records.md +0 -10
  513. package/docs/InlineResponse2001Embedded.md +0 -9
  514. package/docs/InlineResponse2001EmbeddedCaptureLinks.md +0 -8
  515. package/docs/InlineResponse2001EmbeddedReversalLinks.md +0 -8
  516. package/docs/Rbsv1plansClientReferenceInformation.md +0 -12
  517. package/docs/Rbsv1subscriptionsClientReferenceInformation.md +0 -13
  518. package/docs/Rbsv1subscriptionsClientReferenceInformationPartner.md +0 -9
  519. package/docs/Tmsv2customersEmbedded.md +0 -9
  520. package/docs/Tmsv2customersEmbeddedDefaultPaymentInstrument.md +0 -22
  521. package/docs/Tmsv2customersEmbeddedDefaultPaymentInstrumentBuyerInformationPersonalIdentification.md +0 -10
  522. package/docs/Tmsv2customersEmbeddedDefaultPaymentInstrumentLinks.md +0 -9
  523. package/docs/Tmsv2customersEmbeddedDefaultPaymentInstrumentMerchantInformation.md +0 -8
  524. package/docs/Tmsv2customersEmbeddedDefaultShippingAddress.md +0 -12
  525. package/docs/Tmsv2customersEmbeddedDefaultShippingAddressLinks.md +0 -9
  526. package/docs/Tmsv2customersLinks.md +0 -10
  527. package/src/model/Rbsv1plansClientReferenceInformation.js +0 -117
  528. package/src/model/Rbsv1subscriptionsClientReferenceInformation.js +0 -126
  529. package/src/model/Rbsv1subscriptionsClientReferenceInformationPartner.js +0 -91
  530. package/src/model/Tmsv2customersEmbedded.js +0 -90
  531. package/src/model/Tmsv2customersEmbeddedDefaultPaymentInstrument.js +0 -198
  532. package/src/model/Tmsv2customersEmbeddedDefaultPaymentInstrumentBuyerInformationPersonalIdentification.js +0 -99
  533. package/src/model/Tmsv2customersEmbeddedDefaultPaymentInstrumentLinks.js +0 -89
  534. package/src/model/Tmsv2customersEmbeddedDefaultPaymentInstrumentMerchantInformation.js +0 -81
  535. package/src/model/Tmsv2customersEmbeddedDefaultShippingAddress.js +0 -115
  536. package/src/model/Tmsv2customersEmbeddedDefaultShippingAddressLinks.js +0 -89
  537. 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
- ### Global MLE Configuration
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
- In the `merchantConfig` object, set the `useMLEGlobally` variable to enable or disable MLE for all supported APIs for the Rest SDK.
24
+ ##### (i) Primary Configuration
12
25
 
13
- - **Variable**: `useMLEGlobally`
14
- - **Type**: `boolean`
26
+ - **Variable**: `enableRequestMLEForOptionalApisGlobally`
27
+ - **Type**: `Boolean`
15
28
  - **Default**: `false`
16
- - **Description**: Enables MLE globally for all APIs when set to `true`. If set to `true`, it will enable MLE for all API calls that support MLE by CyberSource, unless overridden by `mapToControlMLEonAPI`.
29
+ - **Description**: Enables request MLE globally for all APIs that have optional MLE support when set to `true`.
17
30
 
18
- ### API-level MLE Control
31
+ ---
19
32
 
20
- Optionally, you can control the MLE feature at the API level using the `mapToControlMLEonAPI` variable in the `merchantConfig` object.
33
+ ##### (ii) Deprecated Configuration (Backward Compatibility)
21
34
 
22
- - **Variable**: `mapToControlMLEonAPI`
23
- - **Type**: `Map<string, boolean>`
24
- - **Description**: Overrides the global MLE setting for specific APIs. The key is the function name of the API in the SDK, and the value is a boolean indicating whether MLE should be enabled (`true`) or disabled (`false`) for that specific API call.
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
- ### MLE Key Alias
49
+ ---
27
50
 
28
- Another optional parameter for MLE is `mleKeyAlias`, which specifies the key alias used to retrieve the MLE certificate from the JWT P12 file.
51
+ #### 1.2 Request MLE Certificate Configuration [Optional Params]
29
52
 
30
- - **Variable**: `mleKeyAlias`
31
- - **Type**: `string`
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**: By default, CyberSource uses the `CyberSource_SJC_US` public certificate to encrypt the payload. However, users can override this default value by setting their own key alias.
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
- ## Notes
36
- - If `useMLEGlobally` is set to true, it will enable MLE for all API calls that support MLE by CyberSource, unless overridden by mapToControlMLEonAPI.
37
- - If `mapToControlMLEonAPI` is not provided or does not contain a specific API function name, the global useMLEGlobally setting will be applied.
38
- - The `mleKeyAlias` parameter is optional and defaults to CyberSource_SJC_US if not specified by the user. Users can override this default value by setting their own key alias.
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
- ## Example Configuration
543
+ ### (iv) Response MLE Only
41
544
 
42
545
  ```json
43
546
  {
44
547
  "merchantConfig": {
45
- "useMLEGlobally": true //globally MLE will be enabled for all MLE supported APIs
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
- "useMLEGlobally": true, //globally MLE will be enabled for all MLE supported APIs
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
- "apiFunctionName1": false, //if want to disable the particular api from list of MLE supported APIs
57
- "apiFunctionName2": true //if want to enable MLE on API which is not in the list of supported MLE APIs for used version of Rest SDK
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
- Or
573
+
574
+ ### (v) Both Request and Response MLE
64
575
 
65
576
  ```json
66
577
  {
67
578
  "merchantConfig": {
68
- "useMLEGlobally": false, //globally MLE will be disabled for all APIs
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
- "apiFunctionName1": true, //if want to enable MLE for API1
71
- "apiFunctionName2": true //if want to enable MLE for API2
72
- },
73
- "mleKeyAlias": "Custom_Key_Alias" //optional if any custom value provided by Cybs
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
- In the above examples:
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
- Please refer given link for sample codes with MLE:
85
- https://github.com/CyberSource/cybersource-rest-samples-node/tree/master/Samples/MLEFeature
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
- ## Additional Information
693
+ The deprecated parameters will continue to work but are not recommended for new implementations.
88
694
 
89
- ### API Support
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.