@houlak/plexo-sdk 0.1.67 → 0.1.69
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/README.md +14 -14
- package/lib/config/config.d.ts +12 -12
- package/lib/config/config.js +16 -16
- package/lib/handler/PlexoHandler.d.ts +31 -31
- package/lib/handler/PlexoHandler.js +421 -424
- package/lib/handler/services/evaluator.service.d.ts +6 -6
- package/lib/handler/services/evaluator.service.js +118 -118
- package/lib/handler/types/BaseResponse.d.ts +8 -8
- package/lib/handler/types/BaseResponse.js +16 -16
- package/lib/index.d.ts +3 -3
- package/lib/index.js +9 -9
- package/lib/lib/logger.lib.d.ts +10 -10
- package/lib/lib/logger.lib.js +33 -33
- package/lib/sdk/IPaymentGatewayClient.d.ts +31 -31
- package/lib/sdk/IPaymentGatewayClient.js +2 -2
- package/lib/sdk/PaymentGatewayClient.d.ts +32 -32
- package/lib/sdk/PaymentGatewayClient.js +379 -379
- package/lib/sdk/PaymentGatewayMock.d.ts +31 -31
- package/lib/sdk/PaymentGatewayMock.js +330 -330
- package/lib/sdk/enums/plexo-error-enum.d.ts +38 -38
- package/lib/sdk/enums/plexo-error-enum.js +46 -46
- package/lib/sdk/helpers/signature/signatureHelper.d.ts +6 -6
- package/lib/sdk/helpers/signature/signatureHelper.js +175 -175
- package/lib/sdk/helpers/signature/signatureUtils.d.ts +10 -10
- package/lib/sdk/helpers/signature/signatureUtils.js +157 -157
- package/lib/sdk/helpers/signature/stringifyWithFloats.d.ts +1 -1
- package/lib/sdk/helpers/signature/stringifyWithFloats.js +73 -71
- package/lib/sdk/index.d.ts +4 -4
- package/lib/sdk/index.js +22 -22
- package/lib/sdk/mocks/mocks.d.ts +24 -24
- package/lib/sdk/mocks/mocks.js +180 -180
- package/lib/sdk/models/ActionType.d.ts +9 -9
- package/lib/sdk/models/ActionType.js +13 -13
- package/lib/sdk/models/AmountLimit.d.ts +7 -7
- package/lib/sdk/models/AmountLimit.js +2 -2
- package/lib/sdk/models/Authorization.d.ts +17 -18
- package/lib/sdk/models/Authorization.js +33 -33
- package/lib/sdk/models/AuthorizationInfo.d.ts +6 -6
- package/lib/sdk/models/AuthorizationInfo.js +11 -11
- package/lib/sdk/models/AuthorizationType.d.ts +5 -5
- package/lib/sdk/models/AuthorizationType.js +9 -9
- package/lib/sdk/models/BaseServerResponse.d.ts +7 -7
- package/lib/sdk/models/BaseServerResponse.js +12 -12
- package/lib/sdk/models/BuiltInPagesOptions.d.ts +5 -5
- package/lib/sdk/models/BuiltInPagesOptions.js +11 -11
- package/lib/sdk/models/CancelRequest.d.ts +6 -6
- package/lib/sdk/models/CancelRequest.js +29 -29
- package/lib/sdk/models/CardStatus.d.ts +7 -7
- package/lib/sdk/models/CardStatus.js +11 -11
- package/lib/sdk/models/CardTypes.d.ts +9 -9
- package/lib/sdk/models/CardTypes.js +13 -13
- package/lib/sdk/models/ClientRequest.d.ts +4 -4
- package/lib/sdk/models/ClientRequest.js +10 -10
- package/lib/sdk/models/ClientResponse.d.ts +6 -6
- package/lib/sdk/models/ClientResponse.js +29 -29
- package/lib/sdk/models/ClientSignedRequest.d.ts +4 -4
- package/lib/sdk/models/ClientSignedRequest.js +27 -27
- package/lib/sdk/models/ClientSignedResponse.d.ts +4 -4
- package/lib/sdk/models/ClientSignedResponse.js +27 -27
- package/lib/sdk/models/CodeAction.d.ts +10 -10
- package/lib/sdk/models/CodeAction.js +10 -10
- package/lib/sdk/models/CodeRequest.d.ts +5 -5
- package/lib/sdk/models/CodeRequest.js +2 -2
- package/lib/sdk/models/Commerce.d.ts +4 -4
- package/lib/sdk/models/Commerce.js +2 -2
- package/lib/sdk/models/CommerceIdRequest.d.ts +3 -3
- package/lib/sdk/models/CommerceIdRequest.js +2 -2
- package/lib/sdk/models/CommerceIssuerIdRequest.d.ts +4 -4
- package/lib/sdk/models/CommerceIssuerIdRequest.js +2 -2
- package/lib/sdk/models/CommerceModifyRequest.d.ts +4 -4
- package/lib/sdk/models/CommerceModifyRequest.js +2 -2
- package/lib/sdk/models/CommerceRequest.d.ts +3 -3
- package/lib/sdk/models/CommerceRequest.js +2 -2
- package/lib/sdk/models/CreateBankInstrumentRequest.d.ts +6 -6
- package/lib/sdk/models/CreateBankInstrumentRequest.js +2 -2
- package/lib/sdk/models/Currency.d.ts +6 -6
- package/lib/sdk/models/Currency.js +2 -2
- package/lib/sdk/models/DeleteInstrumentRequest.d.ts +6 -6
- package/lib/sdk/models/DeleteInstrumentRequest.js +29 -29
- package/lib/sdk/models/DisplayOptions.d.ts +8 -8
- package/lib/sdk/models/DisplayOptions.js +14 -14
- package/lib/sdk/models/ExpressCheckoutRequest.d.ts +6 -6
- package/lib/sdk/models/ExpressCheckoutRequest.js +2 -2
- package/lib/sdk/models/ExpressCheckoutSettings.d.ts +7 -7
- package/lib/sdk/models/ExpressCheckoutSettings.js +11 -11
- package/lib/sdk/models/ExtendedCredit.d.ts +4 -4
- package/lib/sdk/models/ExtendedCredit.js +2 -2
- package/lib/sdk/models/FieldInfo.d.ts +6 -6
- package/lib/sdk/models/FieldInfo.js +2 -2
- package/lib/sdk/models/FieldInfoPaymentProcessors.d.ts +6 -6
- package/lib/sdk/models/FieldInfoPaymentProcessors.js +11 -11
- package/lib/sdk/models/FieldType.d.ts +82 -82
- package/lib/sdk/models/FieldType.js +95 -95
- package/lib/sdk/models/FinancialInclusion.d.ts +9 -9
- package/lib/sdk/models/FinancialInclusion.js +2 -2
- package/lib/sdk/models/FinancialInclusionResult.d.ts +6 -6
- package/lib/sdk/models/FinancialInclusionResult.js +2 -2
- package/lib/sdk/models/GenericClientRequest.d.ts +5 -5
- package/lib/sdk/models/GenericClientRequest.js +29 -29
- package/lib/sdk/models/GenericClientSignedRequest.d.ts +4 -4
- package/lib/sdk/models/GenericClientSignedRequest.js +27 -27
- package/lib/sdk/models/GenericIssuerRequest.d.ts +5 -5
- package/lib/sdk/models/GenericIssuerRequest.js +29 -29
- package/lib/sdk/models/GenericIssuerSignedRequest.d.ts +4 -4
- package/lib/sdk/models/GenericIssuerSignedRequest.js +27 -27
- package/lib/sdk/models/GenericServerSignedResponse.d.ts +4 -4
- package/lib/sdk/models/GenericServerSignedResponse.js +27 -27
- package/lib/sdk/models/GenericSignedObject.d.ts +6 -6
- package/lib/sdk/models/GenericSignedObject.js +11 -11
- package/lib/sdk/models/GenericStateObject.d.ts +5 -5
- package/lib/sdk/models/GenericStateObject.js +29 -29
- package/lib/sdk/models/IClientCallback.d.ts +3 -3
- package/lib/sdk/models/IClientCallback.js +2 -2
- package/lib/sdk/models/IdentificationType.d.ts +6 -6
- package/lib/sdk/models/IdentificationType.js +10 -10
- package/lib/sdk/models/InclusionType.d.ts +5 -5
- package/lib/sdk/models/InclusionType.js +9 -9
- package/lib/sdk/models/IndexSDK.d.ts +86 -86
- package/lib/sdk/models/IndexSDK.js +114 -114
- package/lib/sdk/models/InfoLine.d.ts +4 -4
- package/lib/sdk/models/InfoLine.js +2 -2
- package/lib/sdk/models/InstrumentCallback.d.ts +9 -9
- package/lib/sdk/models/InstrumentCallback.js +31 -31
- package/lib/sdk/models/InstrumentWithMetadata.d.ts +6 -6
- package/lib/sdk/models/InstrumentWithMetadata.js +11 -11
- package/lib/sdk/models/IssuerData.d.ts +7 -7
- package/lib/sdk/models/IssuerData.js +2 -2
- package/lib/sdk/models/IssuerInfo.d.ts +14 -14
- package/lib/sdk/models/IssuerInfo.js +2 -2
- package/lib/sdk/models/IssuerProcessor.d.ts +7 -7
- package/lib/sdk/models/IssuerProcessor.js +12 -12
- package/lib/sdk/models/IssuerRequest.d.ts +4 -4
- package/lib/sdk/models/IssuerRequest.js +10 -10
- package/lib/sdk/models/IssuerSignedRequest.d.ts +4 -4
- package/lib/sdk/models/IssuerSignedRequest.js +27 -27
- package/lib/sdk/models/Item.d.ts +8 -8
- package/lib/sdk/models/Item.js +2 -2
- package/lib/sdk/models/PaymentInstrument.d.ts +18 -18
- package/lib/sdk/models/PaymentInstrument.js +2 -2
- package/lib/sdk/models/PaymentInstrumentInput.d.ts +6 -6
- package/lib/sdk/models/PaymentInstrumentInput.js +2 -2
- package/lib/sdk/models/PaymentProcessor.d.ts +6 -6
- package/lib/sdk/models/PaymentProcessor.js +11 -11
- package/lib/sdk/models/PaymentRequest.d.ts +17 -17
- package/lib/sdk/models/PaymentRequest.js +20 -20
- package/lib/sdk/models/PlexoSdkSettings.d.ts +8 -8
- package/lib/sdk/models/PlexoSdkSettings.js +14 -14
- package/lib/sdk/models/PublicKeyInfo.d.ts +4 -4
- package/lib/sdk/models/PublicKeyInfo.js +2 -2
- package/lib/sdk/models/Reference.d.ts +6 -6
- package/lib/sdk/models/Reference.js +11 -11
- package/lib/sdk/models/ReferenceType.d.ts +6 -6
- package/lib/sdk/models/ReferenceType.js +10 -10
- package/lib/sdk/models/Reserve.d.ts +6 -6
- package/lib/sdk/models/Reserve.js +29 -29
- package/lib/sdk/models/ReserveRequest.d.ts +6 -6
- package/lib/sdk/models/ReserveRequest.js +29 -29
- package/lib/sdk/models/ResultCodes.d.ts +30 -30
- package/lib/sdk/models/ResultCodes.js +35 -35
- package/lib/sdk/models/ServerResponse.d.ts +6 -6
- package/lib/sdk/models/ServerResponse.js +29 -29
- package/lib/sdk/models/ServerSignedCallback.d.ts +3 -3
- package/lib/sdk/models/ServerSignedCallback.js +27 -27
- package/lib/sdk/models/ServerSignedRequest.d.ts +3 -3
- package/lib/sdk/models/ServerSignedRequest.js +27 -27
- package/lib/sdk/models/ServerSignedResponse.d.ts +4 -4
- package/lib/sdk/models/ServerSignedResponse.js +27 -27
- package/lib/sdk/models/Session.d.ts +5 -5
- package/lib/sdk/models/Session.js +2 -2
- package/lib/sdk/models/Settings.d.ts +11 -11
- package/lib/sdk/models/Settings.js +19 -19
- package/lib/sdk/models/SignedObject.d.ts +6 -6
- package/lib/sdk/models/SignedObject.js +11 -11
- package/lib/sdk/models/StateObject.d.ts +5 -5
- package/lib/sdk/models/StateObject.js +11 -11
- package/lib/sdk/models/TimeLimit.d.ts +5 -5
- package/lib/sdk/models/TimeLimit.js +2 -2
- package/lib/sdk/models/TokenizationSettings.d.ts +5 -5
- package/lib/sdk/models/TokenizationSettings.js +10 -10
- package/lib/sdk/models/Transaction.d.ts +31 -31
- package/lib/sdk/models/Transaction.js +26 -26
- package/lib/sdk/models/TransactionCallback.d.ts +7 -7
- package/lib/sdk/models/TransactionCallback.js +29 -29
- package/lib/sdk/models/TransactionCursor.d.ts +6 -6
- package/lib/sdk/models/TransactionCursor.js +2 -2
- package/lib/sdk/models/TransactionInfo.d.ts +12 -12
- package/lib/sdk/models/TransactionInfo.js +2 -2
- package/lib/sdk/models/TransactionOrder.d.ts +5 -5
- package/lib/sdk/models/TransactionOrder.js +2 -2
- package/lib/sdk/models/TransactionQuery.d.ts +54 -54
- package/lib/sdk/models/TransactionQuery.js +47 -47
- package/lib/sdk/models/TransactionResult.d.ts +13 -13
- package/lib/sdk/models/TransactionResult.js +17 -17
- package/lib/sdk/models/TransactionType.d.ts +5 -5
- package/lib/sdk/models/TransactionType.js +9 -9
- package/lib/sdk/models/TransactionsCSV.d.ts +3 -3
- package/lib/sdk/models/TransactionsCSV.js +2 -2
- package/lib/sdk/models/UIOptions.d.ts +8 -8
- package/lib/sdk/models/UIOptions.js +13 -13
- package/lib/sdk/models/WebFormSettings.d.ts +9 -9
- package/lib/sdk/models/WebFormSettings.js +12 -12
- package/lib/sdk/models/webhook/Address.d.ts +9 -9
- package/lib/sdk/models/webhook/Address.js +15 -15
- package/lib/sdk/models/webhook/CancellationInfo.d.ts +11 -11
- package/lib/sdk/models/webhook/CancellationInfo.js +17 -17
- package/lib/sdk/models/webhook/Client.d.ts +9 -9
- package/lib/sdk/models/webhook/Client.js +14 -14
- package/lib/sdk/models/webhook/Commerce.d.ts +6 -6
- package/lib/sdk/models/webhook/Commerce.js +12 -12
- package/lib/sdk/models/webhook/Currency.d.ts +8 -8
- package/lib/sdk/models/webhook/Currency.js +14 -14
- package/lib/sdk/models/webhook/Customer.d.ts +17 -17
- package/lib/sdk/models/webhook/Customer.js +22 -22
- package/lib/sdk/models/webhook/Document.d.ts +5 -5
- package/lib/sdk/models/webhook/Document.js +11 -11
- package/lib/sdk/models/webhook/Instrument.d.ts +17 -17
- package/lib/sdk/models/webhook/Instrument.js +21 -21
- package/lib/sdk/models/webhook/Issuer.d.ts +8 -8
- package/lib/sdk/models/webhook/Issuer.js +14 -14
- package/lib/sdk/models/webhook/IssuerData.d.ts +8 -8
- package/lib/sdk/models/webhook/IssuerData.js +13 -13
- package/lib/sdk/models/webhook/IssuerDto.d.ts +5 -5
- package/lib/sdk/models/webhook/IssuerDto.js +11 -11
- package/lib/sdk/models/webhook/Item.d.ts +14 -14
- package/lib/sdk/models/webhook/Item.js +19 -19
- package/lib/sdk/models/webhook/PartialRefundsInfo.d.ts +12 -12
- package/lib/sdk/models/webhook/PartialRefundsInfo.js +18 -18
- package/lib/sdk/models/webhook/PaymentFacilitator.d.ts +8 -8
- package/lib/sdk/models/webhook/PaymentFacilitator.js +13 -13
- package/lib/sdk/models/webhook/PaymentProcessor.d.ts +5 -5
- package/lib/sdk/models/webhook/PaymentProcessor.js +11 -11
- package/lib/sdk/models/webhook/PurchaseInfo.d.ts +16 -16
- package/lib/sdk/models/webhook/PurchaseInfo.js +22 -22
- package/lib/sdk/models/webhook/RefundInfo.d.ts +12 -12
- package/lib/sdk/models/webhook/RefundInfo.js +18 -18
- package/lib/sdk/models/webhook/ReserveInfo.d.ts +13 -13
- package/lib/sdk/models/webhook/ReserveInfo.js +19 -19
- package/lib/sdk/models/webhook/Shipping.d.ts +7 -7
- package/lib/sdk/models/webhook/Shipping.js +12 -12
- package/lib/sdk/models/webhook/Transaction.d.ts +31 -31
- package/lib/sdk/models/webhook/Transaction.js +36 -36
- package/lib/sdk/models/webhook/TransactionResult.d.ts +5 -5
- package/lib/sdk/models/webhook/TransactionResult.js +10 -10
- package/lib/sdk/models/webhook/index.d.ts +21 -21
- package/lib/sdk/models/webhook/index.js +45 -45
- package/lib/sdk/types/signatureHelper.type.d.ts +5 -5
- package/lib/sdk/types/signatureHelper.type.js +2 -2
- package/lib/sdk/types/ui_options_dto.type.d.ts +6 -6
- package/lib/sdk/types/ui_options_dto.type.js +2 -2
- package/lib/utils/boolean.utils.d.ts +4 -4
- package/lib/utils/boolean.utils.js +53 -53
- package/lib/utils/case.util.d.ts +4 -4
- package/lib/utils/case.util.js +61 -61
- package/lib/utils/index.d.ts +1 -1
- package/lib/utils/index.js +5 -5
- package/package.json +52 -52
- package/lib/IPaymentGatewayClient.d.ts +0 -31
- package/lib/IPaymentGatewayClient.js +0 -2
- package/lib/PaymentGatewayClient.d.ts +0 -32
- package/lib/PaymentGatewayClient.js +0 -90
- package/lib/helpers/signature/signatureHelper.d.ts +0 -1
- package/lib/helpers/signature/signatureHelper.js +0 -52
- package/lib/models/ActionType.d.ts +0 -9
- package/lib/models/ActionType.js +0 -13
- package/lib/models/AmountLimit.d.ts +0 -7
- package/lib/models/AmountLimit.js +0 -2
- package/lib/models/Authorization.d.ts +0 -18
- package/lib/models/Authorization.js +0 -32
- package/lib/models/AuthorizationInfo.d.ts +0 -6
- package/lib/models/AuthorizationInfo.js +0 -11
- package/lib/models/AuthorizationType.d.ts +0 -5
- package/lib/models/AuthorizationType.js +0 -9
- package/lib/models/BaseServerResponse.d.ts +0 -7
- package/lib/models/BaseServerResponse.js +0 -12
- package/lib/models/BuiltInPagesOptionsDto.d.ts +0 -4
- package/lib/models/BuiltInPagesOptionsDto.js +0 -9
- package/lib/models/CancelRequest.d.ts +0 -6
- package/lib/models/CancelRequest.js +0 -29
- package/lib/models/CardStatus.d.ts +0 -7
- package/lib/models/CardStatus.js +0 -11
- package/lib/models/CardTypes.d.ts +0 -9
- package/lib/models/CardTypes.js +0 -13
- package/lib/models/ClientRequest.d.ts +0 -4
- package/lib/models/ClientRequest.js +0 -10
- package/lib/models/ClientResponse.d.ts +0 -6
- package/lib/models/ClientResponse.js +0 -29
- package/lib/models/ClientSignedRequest.d.ts +0 -4
- package/lib/models/ClientSignedRequest.js +0 -27
- package/lib/models/ClientSignedResponse.d.ts +0 -4
- package/lib/models/ClientSignedResponse.js +0 -27
- package/lib/models/CodeAction.d.ts +0 -10
- package/lib/models/CodeAction.js +0 -10
- package/lib/models/CodeRequest.d.ts +0 -5
- package/lib/models/CodeRequest.js +0 -2
- package/lib/models/Commerce.d.ts +0 -4
- package/lib/models/Commerce.js +0 -2
- package/lib/models/CommerceIdRequest.d.ts +0 -3
- package/lib/models/CommerceIdRequest.js +0 -2
- package/lib/models/CommerceIssuerIdRequest.d.ts +0 -4
- package/lib/models/CommerceIssuerIdRequest.js +0 -2
- package/lib/models/CommerceModifyRequest.d.ts +0 -4
- package/lib/models/CommerceModifyRequest.js +0 -2
- package/lib/models/CommerceRequest.d.ts +0 -3
- package/lib/models/CommerceRequest.js +0 -2
- package/lib/models/CreateBankInstrumentRequest.d.ts +0 -6
- package/lib/models/CreateBankInstrumentRequest.js +0 -2
- package/lib/models/Currency.d.ts +0 -6
- package/lib/models/Currency.js +0 -2
- package/lib/models/DeleteInstrumentRequest.d.ts +0 -6
- package/lib/models/DeleteInstrumentRequest.js +0 -29
- package/lib/models/DisplayOptionsDto.d.ts +0 -7
- package/lib/models/DisplayOptionsDto.js +0 -9
- package/lib/models/ExpressCheckoutRequest.d.ts +0 -6
- package/lib/models/ExpressCheckoutRequest.js +0 -2
- package/lib/models/ExpressCheckoutSettingsDto.d.ts +0 -6
- package/lib/models/ExpressCheckoutSettingsDto.js +0 -9
- package/lib/models/ExtendedCredit.d.ts +0 -4
- package/lib/models/ExtendedCredit.js +0 -2
- package/lib/models/FieldInfo.d.ts +0 -6
- package/lib/models/FieldInfo.js +0 -2
- package/lib/models/FieldInfoPaymentProcessors.d.ts +0 -6
- package/lib/models/FieldInfoPaymentProcessors.js +0 -11
- package/lib/models/FieldType.d.ts +0 -76
- package/lib/models/FieldType.js +0 -89
- package/lib/models/FinancialInclusion.d.ts +0 -8
- package/lib/models/FinancialInclusion.js +0 -2
- package/lib/models/FinancialInclusionResult.d.ts +0 -6
- package/lib/models/FinancialInclusionResult.js +0 -2
- package/lib/models/GenericClientRequest.d.ts +0 -5
- package/lib/models/GenericClientRequest.js +0 -29
- package/lib/models/GenericClientSignedRequest.d.ts +0 -4
- package/lib/models/GenericClientSignedRequest.js +0 -27
- package/lib/models/GenericIssuerRequest.d.ts +0 -5
- package/lib/models/GenericIssuerRequest.js +0 -29
- package/lib/models/GenericIssuerSignedRequest.d.ts +0 -4
- package/lib/models/GenericIssuerSignedRequest.js +0 -27
- package/lib/models/GenericServerSignedResponse.d.ts +0 -4
- package/lib/models/GenericServerSignedResponse.js +0 -27
- package/lib/models/GenericSignedObject.d.ts +0 -6
- package/lib/models/GenericSignedObject.js +0 -11
- package/lib/models/GenericStateObject.d.ts +0 -5
- package/lib/models/GenericStateObject.js +0 -29
- package/lib/models/IClientCallback.d.ts +0 -3
- package/lib/models/IClientCallback.js +0 -2
- package/lib/models/IdentificationType.d.ts +0 -6
- package/lib/models/IdentificationType.js +0 -10
- package/lib/models/InclusionType.d.ts +0 -5
- package/lib/models/InclusionType.js +0 -9
- package/lib/models/IndexSDK.d.ts +0 -33
- package/lib/models/IndexSDK.js +0 -39
- package/lib/models/InfoLine.d.ts +0 -4
- package/lib/models/InfoLine.js +0 -2
- package/lib/models/InstrumentCallback.d.ts +0 -9
- package/lib/models/InstrumentCallback.js +0 -31
- package/lib/models/InstrumentWithMetadata.d.ts +0 -6
- package/lib/models/InstrumentWithMetadata.js +0 -11
- package/lib/models/IssuerData.d.ts +0 -5
- package/lib/models/IssuerData.js +0 -2
- package/lib/models/IssuerInfo.d.ts +0 -14
- package/lib/models/IssuerInfo.js +0 -2
- package/lib/models/IssuerProcessor.d.ts +0 -7
- package/lib/models/IssuerProcessor.js +0 -12
- package/lib/models/IssuerRequest.d.ts +0 -4
- package/lib/models/IssuerRequest.js +0 -10
- package/lib/models/IssuerSignedRequest.d.ts +0 -4
- package/lib/models/IssuerSignedRequest.js +0 -27
- package/lib/models/Item.d.ts +0 -8
- package/lib/models/Item.js +0 -2
- package/lib/models/PaymentInstrument.d.ts +0 -20
- package/lib/models/PaymentInstrument.js +0 -2
- package/lib/models/PaymentInstrumentInput.d.ts +0 -6
- package/lib/models/PaymentInstrumentInput.js +0 -2
- package/lib/models/PaymentProcessor.d.ts +0 -6
- package/lib/models/PaymentProcessor.js +0 -11
- package/lib/models/PaymentRequest.d.ts +0 -17
- package/lib/models/PaymentRequest.js +0 -20
- package/lib/models/PublicKeyInfo.d.ts +0 -4
- package/lib/models/PublicKeyInfo.js +0 -2
- package/lib/models/Reference.d.ts +0 -6
- package/lib/models/Reference.js +0 -11
- package/lib/models/ReferenceType.d.ts +0 -6
- package/lib/models/ReferenceType.js +0 -10
- package/lib/models/Reserve.d.ts +0 -6
- package/lib/models/Reserve.js +0 -29
- package/lib/models/ReserveRequest.d.ts +0 -6
- package/lib/models/ReserveRequest.js +0 -29
- package/lib/models/ResultCodes.d.ts +0 -30
- package/lib/models/ResultCodes.js +0 -35
- package/lib/models/ServerResponse.d.ts +0 -6
- package/lib/models/ServerResponse.js +0 -29
- package/lib/models/ServerSignedCallback.d.ts +0 -3
- package/lib/models/ServerSignedCallback.js +0 -27
- package/lib/models/ServerSignedRequest.d.ts +0 -3
- package/lib/models/ServerSignedRequest.js +0 -27
- package/lib/models/ServerSignedResponse.d.ts +0 -4
- package/lib/models/ServerSignedResponse.js +0 -27
- package/lib/models/Session.d.ts +0 -5
- package/lib/models/Session.js +0 -2
- package/lib/models/SignedObject.d.ts +0 -6
- package/lib/models/SignedObject.js +0 -11
- package/lib/models/StateObject.d.ts +0 -5
- package/lib/models/StateObject.js +0 -11
- package/lib/models/TimeLimit.d.ts +0 -5
- package/lib/models/TimeLimit.js +0 -2
- package/lib/models/TokenizationSettingsDto.d.ts +0 -4
- package/lib/models/TokenizationSettingsDto.js +0 -9
- package/lib/models/Transaction.d.ts +0 -26
- package/lib/models/Transaction.js +0 -26
- package/lib/models/TransactionCallback.d.ts +0 -7
- package/lib/models/TransactionCallback.js +0 -29
- package/lib/models/TransactionCursor.d.ts +0 -6
- package/lib/models/TransactionCursor.js +0 -2
- package/lib/models/TransactionInfo.d.ts +0 -12
- package/lib/models/TransactionInfo.js +0 -2
- package/lib/models/TransactionOrder.d.ts +0 -5
- package/lib/models/TransactionOrder.js +0 -2
- package/lib/models/TransactionQuery.d.ts +0 -54
- package/lib/models/TransactionQuery.js +0 -47
- package/lib/models/TransactionResult.d.ts +0 -13
- package/lib/models/TransactionResult.js +0 -17
- package/lib/models/TransactionType.d.ts +0 -5
- package/lib/models/TransactionType.js +0 -9
- package/lib/models/UIOptionsDto.d.ts +0 -7
- package/lib/models/UIOptionsDto.js +0 -13
- package/lib/models/WebFormSettingsDto.d.ts +0 -8
- package/lib/models/WebFormSettingsDto.js +0 -9
- package/lib/sdk/models/BuiltInPagesOptionsDto.d.ts +0 -4
- package/lib/sdk/models/BuiltInPagesOptionsDto.js +0 -9
- package/lib/sdk/models/DisplayOptionsDto.d.ts +0 -7
- package/lib/sdk/models/DisplayOptionsDto.js +0 -9
- package/lib/sdk/models/ExpressCheckoutSettingsDto.d.ts +0 -6
- package/lib/sdk/models/ExpressCheckoutSettingsDto.js +0 -9
- package/lib/sdk/models/TokenizationSettingsDto.d.ts +0 -4
- package/lib/sdk/models/TokenizationSettingsDto.js +0 -9
- package/lib/sdk/models/UIOptionsDto.d.ts +0 -8
- package/lib/sdk/models/UIOptionsDto.js +0 -13
- package/lib/sdk/models/WebFormSettingsDto.d.ts +0 -8
- package/lib/sdk/models/WebFormSettingsDto.js +0 -9
- package/lib/sdk/models/webhook/IndexWebhook.d.ts +0 -21
- package/lib/sdk/models/webhook/IndexWebhook.js +0 -45
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
export { Address } from './Address';
|
|
2
|
-
export { CancellationInfo } from './CancellationInfo';
|
|
3
|
-
export { Client } from './Client';
|
|
4
|
-
export { Commerce } from './Commerce';
|
|
5
|
-
export { Currency } from './Currency';
|
|
6
|
-
export { Customer } from './Customer';
|
|
7
|
-
export { Document } from './Document';
|
|
8
|
-
export { Instrument } from './Instrument';
|
|
9
|
-
export { Issuer } from './Issuer';
|
|
10
|
-
export { IssuerData } from './IssuerData';
|
|
11
|
-
export { IssuerDto } from './IssuerDto';
|
|
12
|
-
export { Item } from './Item';
|
|
13
|
-
export { PartialRefundsInfo } from './PartialRefundsInfo';
|
|
14
|
-
export { PaymentFacilitator } from './PaymentFacilitator';
|
|
15
|
-
export { PaymentProcessor } from './PaymentProcessor';
|
|
16
|
-
export { PurchaseInfo } from './PurchaseInfo';
|
|
17
|
-
export { RefundInfo } from './RefundInfo';
|
|
18
|
-
export { ReserveInfo } from './ReserveInfo';
|
|
19
|
-
export { Shipping } from './Shipping';
|
|
20
|
-
export { Transaction } from './Transaction';
|
|
21
|
-
export { TransactionResult } from './TransactionResult';
|
|
1
|
+
export { Address } from './Address';
|
|
2
|
+
export { CancellationInfo } from './CancellationInfo';
|
|
3
|
+
export { Client } from './Client';
|
|
4
|
+
export { Commerce } from './Commerce';
|
|
5
|
+
export { Currency } from './Currency';
|
|
6
|
+
export { Customer } from './Customer';
|
|
7
|
+
export { Document } from './Document';
|
|
8
|
+
export { Instrument } from './Instrument';
|
|
9
|
+
export { Issuer } from './Issuer';
|
|
10
|
+
export { IssuerData } from './IssuerData';
|
|
11
|
+
export { IssuerDto } from './IssuerDto';
|
|
12
|
+
export { Item } from './Item';
|
|
13
|
+
export { PartialRefundsInfo } from './PartialRefundsInfo';
|
|
14
|
+
export { PaymentFacilitator } from './PaymentFacilitator';
|
|
15
|
+
export { PaymentProcessor } from './PaymentProcessor';
|
|
16
|
+
export { PurchaseInfo } from './PurchaseInfo';
|
|
17
|
+
export { RefundInfo } from './RefundInfo';
|
|
18
|
+
export { ReserveInfo } from './ReserveInfo';
|
|
19
|
+
export { Shipping } from './Shipping';
|
|
20
|
+
export { Transaction } from './Transaction';
|
|
21
|
+
export { TransactionResult } from './TransactionResult';
|
|
@@ -1,45 +1,45 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TransactionResult = exports.Transaction = exports.Shipping = exports.ReserveInfo = exports.RefundInfo = exports.PurchaseInfo = exports.PaymentProcessor = exports.PaymentFacilitator = exports.PartialRefundsInfo = exports.Item = exports.IssuerDto = exports.IssuerData = exports.Issuer = exports.Instrument = exports.Document = exports.Customer = exports.Currency = exports.Commerce = exports.Client = exports.CancellationInfo = exports.Address = void 0;
|
|
4
|
-
var Address_1 = require("./Address");
|
|
5
|
-
Object.defineProperty(exports, "Address", { enumerable: true, get: function () { return Address_1.Address; } });
|
|
6
|
-
var CancellationInfo_1 = require("./CancellationInfo");
|
|
7
|
-
Object.defineProperty(exports, "CancellationInfo", { enumerable: true, get: function () { return CancellationInfo_1.CancellationInfo; } });
|
|
8
|
-
var Client_1 = require("./Client");
|
|
9
|
-
Object.defineProperty(exports, "Client", { enumerable: true, get: function () { return Client_1.Client; } });
|
|
10
|
-
var Commerce_1 = require("./Commerce");
|
|
11
|
-
Object.defineProperty(exports, "Commerce", { enumerable: true, get: function () { return Commerce_1.Commerce; } });
|
|
12
|
-
var Currency_1 = require("./Currency");
|
|
13
|
-
Object.defineProperty(exports, "Currency", { enumerable: true, get: function () { return Currency_1.Currency; } });
|
|
14
|
-
var Customer_1 = require("./Customer");
|
|
15
|
-
Object.defineProperty(exports, "Customer", { enumerable: true, get: function () { return Customer_1.Customer; } });
|
|
16
|
-
var Document_1 = require("./Document");
|
|
17
|
-
Object.defineProperty(exports, "Document", { enumerable: true, get: function () { return Document_1.Document; } });
|
|
18
|
-
var Instrument_1 = require("./Instrument");
|
|
19
|
-
Object.defineProperty(exports, "Instrument", { enumerable: true, get: function () { return Instrument_1.Instrument; } });
|
|
20
|
-
var Issuer_1 = require("./Issuer");
|
|
21
|
-
Object.defineProperty(exports, "Issuer", { enumerable: true, get: function () { return Issuer_1.Issuer; } });
|
|
22
|
-
var IssuerData_1 = require("./IssuerData");
|
|
23
|
-
Object.defineProperty(exports, "IssuerData", { enumerable: true, get: function () { return IssuerData_1.IssuerData; } });
|
|
24
|
-
var IssuerDto_1 = require("./IssuerDto");
|
|
25
|
-
Object.defineProperty(exports, "IssuerDto", { enumerable: true, get: function () { return IssuerDto_1.IssuerDto; } });
|
|
26
|
-
var Item_1 = require("./Item");
|
|
27
|
-
Object.defineProperty(exports, "Item", { enumerable: true, get: function () { return Item_1.Item; } });
|
|
28
|
-
var PartialRefundsInfo_1 = require("./PartialRefundsInfo");
|
|
29
|
-
Object.defineProperty(exports, "PartialRefundsInfo", { enumerable: true, get: function () { return PartialRefundsInfo_1.PartialRefundsInfo; } });
|
|
30
|
-
var PaymentFacilitator_1 = require("./PaymentFacilitator");
|
|
31
|
-
Object.defineProperty(exports, "PaymentFacilitator", { enumerable: true, get: function () { return PaymentFacilitator_1.PaymentFacilitator; } });
|
|
32
|
-
var PaymentProcessor_1 = require("./PaymentProcessor");
|
|
33
|
-
Object.defineProperty(exports, "PaymentProcessor", { enumerable: true, get: function () { return PaymentProcessor_1.PaymentProcessor; } });
|
|
34
|
-
var PurchaseInfo_1 = require("./PurchaseInfo");
|
|
35
|
-
Object.defineProperty(exports, "PurchaseInfo", { enumerable: true, get: function () { return PurchaseInfo_1.PurchaseInfo; } });
|
|
36
|
-
var RefundInfo_1 = require("./RefundInfo");
|
|
37
|
-
Object.defineProperty(exports, "RefundInfo", { enumerable: true, get: function () { return RefundInfo_1.RefundInfo; } });
|
|
38
|
-
var ReserveInfo_1 = require("./ReserveInfo");
|
|
39
|
-
Object.defineProperty(exports, "ReserveInfo", { enumerable: true, get: function () { return ReserveInfo_1.ReserveInfo; } });
|
|
40
|
-
var Shipping_1 = require("./Shipping");
|
|
41
|
-
Object.defineProperty(exports, "Shipping", { enumerable: true, get: function () { return Shipping_1.Shipping; } });
|
|
42
|
-
var Transaction_1 = require("./Transaction");
|
|
43
|
-
Object.defineProperty(exports, "Transaction", { enumerable: true, get: function () { return Transaction_1.Transaction; } });
|
|
44
|
-
var TransactionResult_1 = require("./TransactionResult");
|
|
45
|
-
Object.defineProperty(exports, "TransactionResult", { enumerable: true, get: function () { return TransactionResult_1.TransactionResult; } });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TransactionResult = exports.Transaction = exports.Shipping = exports.ReserveInfo = exports.RefundInfo = exports.PurchaseInfo = exports.PaymentProcessor = exports.PaymentFacilitator = exports.PartialRefundsInfo = exports.Item = exports.IssuerDto = exports.IssuerData = exports.Issuer = exports.Instrument = exports.Document = exports.Customer = exports.Currency = exports.Commerce = exports.Client = exports.CancellationInfo = exports.Address = void 0;
|
|
4
|
+
var Address_1 = require("./Address");
|
|
5
|
+
Object.defineProperty(exports, "Address", { enumerable: true, get: function () { return Address_1.Address; } });
|
|
6
|
+
var CancellationInfo_1 = require("./CancellationInfo");
|
|
7
|
+
Object.defineProperty(exports, "CancellationInfo", { enumerable: true, get: function () { return CancellationInfo_1.CancellationInfo; } });
|
|
8
|
+
var Client_1 = require("./Client");
|
|
9
|
+
Object.defineProperty(exports, "Client", { enumerable: true, get: function () { return Client_1.Client; } });
|
|
10
|
+
var Commerce_1 = require("./Commerce");
|
|
11
|
+
Object.defineProperty(exports, "Commerce", { enumerable: true, get: function () { return Commerce_1.Commerce; } });
|
|
12
|
+
var Currency_1 = require("./Currency");
|
|
13
|
+
Object.defineProperty(exports, "Currency", { enumerable: true, get: function () { return Currency_1.Currency; } });
|
|
14
|
+
var Customer_1 = require("./Customer");
|
|
15
|
+
Object.defineProperty(exports, "Customer", { enumerable: true, get: function () { return Customer_1.Customer; } });
|
|
16
|
+
var Document_1 = require("./Document");
|
|
17
|
+
Object.defineProperty(exports, "Document", { enumerable: true, get: function () { return Document_1.Document; } });
|
|
18
|
+
var Instrument_1 = require("./Instrument");
|
|
19
|
+
Object.defineProperty(exports, "Instrument", { enumerable: true, get: function () { return Instrument_1.Instrument; } });
|
|
20
|
+
var Issuer_1 = require("./Issuer");
|
|
21
|
+
Object.defineProperty(exports, "Issuer", { enumerable: true, get: function () { return Issuer_1.Issuer; } });
|
|
22
|
+
var IssuerData_1 = require("./IssuerData");
|
|
23
|
+
Object.defineProperty(exports, "IssuerData", { enumerable: true, get: function () { return IssuerData_1.IssuerData; } });
|
|
24
|
+
var IssuerDto_1 = require("./IssuerDto");
|
|
25
|
+
Object.defineProperty(exports, "IssuerDto", { enumerable: true, get: function () { return IssuerDto_1.IssuerDto; } });
|
|
26
|
+
var Item_1 = require("./Item");
|
|
27
|
+
Object.defineProperty(exports, "Item", { enumerable: true, get: function () { return Item_1.Item; } });
|
|
28
|
+
var PartialRefundsInfo_1 = require("./PartialRefundsInfo");
|
|
29
|
+
Object.defineProperty(exports, "PartialRefundsInfo", { enumerable: true, get: function () { return PartialRefundsInfo_1.PartialRefundsInfo; } });
|
|
30
|
+
var PaymentFacilitator_1 = require("./PaymentFacilitator");
|
|
31
|
+
Object.defineProperty(exports, "PaymentFacilitator", { enumerable: true, get: function () { return PaymentFacilitator_1.PaymentFacilitator; } });
|
|
32
|
+
var PaymentProcessor_1 = require("./PaymentProcessor");
|
|
33
|
+
Object.defineProperty(exports, "PaymentProcessor", { enumerable: true, get: function () { return PaymentProcessor_1.PaymentProcessor; } });
|
|
34
|
+
var PurchaseInfo_1 = require("./PurchaseInfo");
|
|
35
|
+
Object.defineProperty(exports, "PurchaseInfo", { enumerable: true, get: function () { return PurchaseInfo_1.PurchaseInfo; } });
|
|
36
|
+
var RefundInfo_1 = require("./RefundInfo");
|
|
37
|
+
Object.defineProperty(exports, "RefundInfo", { enumerable: true, get: function () { return RefundInfo_1.RefundInfo; } });
|
|
38
|
+
var ReserveInfo_1 = require("./ReserveInfo");
|
|
39
|
+
Object.defineProperty(exports, "ReserveInfo", { enumerable: true, get: function () { return ReserveInfo_1.ReserveInfo; } });
|
|
40
|
+
var Shipping_1 = require("./Shipping");
|
|
41
|
+
Object.defineProperty(exports, "Shipping", { enumerable: true, get: function () { return Shipping_1.Shipping; } });
|
|
42
|
+
var Transaction_1 = require("./Transaction");
|
|
43
|
+
Object.defineProperty(exports, "Transaction", { enumerable: true, get: function () { return Transaction_1.Transaction; } });
|
|
44
|
+
var TransactionResult_1 = require("./TransactionResult");
|
|
45
|
+
Object.defineProperty(exports, "TransactionResult", { enumerable: true, get: function () { return TransactionResult_1.TransactionResult; } });
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
interface Certificate {
|
|
2
|
-
privateKey: string;
|
|
3
|
-
cert: string;
|
|
4
|
-
}
|
|
5
|
-
export { Certificate };
|
|
1
|
+
interface Certificate {
|
|
2
|
+
privateKey: string;
|
|
3
|
+
cert: string;
|
|
4
|
+
}
|
|
5
|
+
export { Certificate };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
interface Colors {
|
|
2
|
-
primary: string;
|
|
3
|
-
secondary: string;
|
|
4
|
-
background: string;
|
|
5
|
-
}
|
|
6
|
-
export { Colors };
|
|
1
|
+
interface Colors {
|
|
2
|
+
primary: string;
|
|
3
|
+
secondary: string;
|
|
4
|
+
background: string;
|
|
5
|
+
}
|
|
6
|
+
export { Colors };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const booleanUtils: {
|
|
2
|
-
stringifyBooleans: <T extends object>(object: T) => T;
|
|
3
|
-
booleanizeStrings: <T_1 extends object>(object: T_1) => T_1;
|
|
4
|
-
};
|
|
1
|
+
export declare const booleanUtils: {
|
|
2
|
+
stringifyBooleans: <T extends object>(object: T) => T;
|
|
3
|
+
booleanizeStrings: <T_1 extends object>(object: T_1) => T_1;
|
|
4
|
+
};
|
|
@@ -1,53 +1,53 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.booleanUtils = void 0;
|
|
4
|
-
var signatureUtils_1 = require("../sdk/helpers/signature/signatureUtils");
|
|
5
|
-
var booleanValues = [
|
|
6
|
-
'CrossBankTransfers'
|
|
7
|
-
];
|
|
8
|
-
var stringifyBooleans = function (object) {
|
|
9
|
-
booleanValues.forEach(function (word) {
|
|
10
|
-
if (JSON.stringify(object).includes(word)) {
|
|
11
|
-
substituteValueRecursively(object, word, true);
|
|
12
|
-
}
|
|
13
|
-
});
|
|
14
|
-
return object;
|
|
15
|
-
};
|
|
16
|
-
var substituteValueRecursively = function (object, specialWord, toString) {
|
|
17
|
-
if (object && typeof object === 'object') {
|
|
18
|
-
Object.keys(object).map(function (key) {
|
|
19
|
-
if (key === specialWord) {
|
|
20
|
-
if (toString)
|
|
21
|
-
if (object[key] === true) {
|
|
22
|
-
object[key] = 'True';
|
|
23
|
-
}
|
|
24
|
-
else {
|
|
25
|
-
object[key] = 'False';
|
|
26
|
-
}
|
|
27
|
-
else {
|
|
28
|
-
if (object[key] === 'True') {
|
|
29
|
-
object[key] = true;
|
|
30
|
-
}
|
|
31
|
-
else {
|
|
32
|
-
object[key] = false;
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
if (typeof object[key] === 'object') {
|
|
37
|
-
substituteValueRecursively(object[key], specialWord, toString);
|
|
38
|
-
}
|
|
39
|
-
});
|
|
40
|
-
}
|
|
41
|
-
};
|
|
42
|
-
var booleanizeStrings = function (object) {
|
|
43
|
-
booleanValues.forEach(function (specialWord) {
|
|
44
|
-
if (JSON.stringify(object).includes(specialWord)) {
|
|
45
|
-
substituteValueRecursively(object, specialWord, false);
|
|
46
|
-
}
|
|
47
|
-
});
|
|
48
|
-
return signatureUtils_1.signatureUtils.sortObject(object);
|
|
49
|
-
};
|
|
50
|
-
exports.booleanUtils = {
|
|
51
|
-
stringifyBooleans: stringifyBooleans,
|
|
52
|
-
booleanizeStrings: booleanizeStrings,
|
|
53
|
-
};
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.booleanUtils = void 0;
|
|
4
|
+
var signatureUtils_1 = require("../sdk/helpers/signature/signatureUtils");
|
|
5
|
+
var booleanValues = [
|
|
6
|
+
'CrossBankTransfers'
|
|
7
|
+
];
|
|
8
|
+
var stringifyBooleans = function (object) {
|
|
9
|
+
booleanValues.forEach(function (word) {
|
|
10
|
+
if (JSON.stringify(object).includes(word)) {
|
|
11
|
+
substituteValueRecursively(object, word, true);
|
|
12
|
+
}
|
|
13
|
+
});
|
|
14
|
+
return object;
|
|
15
|
+
};
|
|
16
|
+
var substituteValueRecursively = function (object, specialWord, toString) {
|
|
17
|
+
if (object && typeof object === 'object') {
|
|
18
|
+
Object.keys(object).map(function (key) {
|
|
19
|
+
if (key === specialWord) {
|
|
20
|
+
if (toString)
|
|
21
|
+
if (object[key] === true) {
|
|
22
|
+
object[key] = 'True';
|
|
23
|
+
}
|
|
24
|
+
else {
|
|
25
|
+
object[key] = 'False';
|
|
26
|
+
}
|
|
27
|
+
else {
|
|
28
|
+
if (object[key] === 'True') {
|
|
29
|
+
object[key] = true;
|
|
30
|
+
}
|
|
31
|
+
else {
|
|
32
|
+
object[key] = false;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
if (typeof object[key] === 'object') {
|
|
37
|
+
substituteValueRecursively(object[key], specialWord, toString);
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
var booleanizeStrings = function (object) {
|
|
43
|
+
booleanValues.forEach(function (specialWord) {
|
|
44
|
+
if (JSON.stringify(object).includes(specialWord)) {
|
|
45
|
+
substituteValueRecursively(object, specialWord, false);
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
return signatureUtils_1.signatureUtils.sortObject(object);
|
|
49
|
+
};
|
|
50
|
+
exports.booleanUtils = {
|
|
51
|
+
stringifyBooleans: stringifyBooleans,
|
|
52
|
+
booleanizeStrings: booleanizeStrings,
|
|
53
|
+
};
|
package/lib/utils/case.util.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const caseUtils: {
|
|
2
|
-
toCamelKeys: <T extends object>(object: T) => T;
|
|
3
|
-
toPascalKeys: <T_1 extends object>(object: T_1) => T_1;
|
|
4
|
-
};
|
|
1
|
+
export declare const caseUtils: {
|
|
2
|
+
toCamelKeys: <T extends object>(object: T) => T;
|
|
3
|
+
toPascalKeys: <T_1 extends object>(object: T_1) => T_1;
|
|
4
|
+
};
|
package/lib/utils/case.util.js
CHANGED
|
@@ -1,61 +1,61 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.caseUtils = void 0;
|
|
4
|
-
var js_convert_case_1 = require("js-convert-case");
|
|
5
|
-
var signatureUtils_1 = require("../sdk/helpers/signature/signatureUtils");
|
|
6
|
-
var specialWords = [
|
|
7
|
-
{ word: 'UtcUnixTimeExpiration', substitute: 'UTCUnixTimeExpiration' },
|
|
8
|
-
{ word: 'UtcunixTimeExpiration', substitute: 'UTCUnixTimeExpiration' },
|
|
9
|
-
{ word: 'VatAmount', substitute: 'VATAmount' },
|
|
10
|
-
{ word: 'InstrumentExpirationUtc', substitute: 'InstrumentExpirationUTC' },
|
|
11
|
-
{ word: 'Mcc', substitute: 'MCC' },
|
|
12
|
-
{ word: 'CommerceRut', substitute: 'CommerceRUT' },
|
|
13
|
-
{ word: 'Ui', substitute: 'UI' },
|
|
14
|
-
{ word: 'Background', substitute: 'background' },
|
|
15
|
-
{ word: 'Primary', substitute: 'primary' },
|
|
16
|
-
{ word: 'Secondary', substitute: 'secondary' },
|
|
17
|
-
];
|
|
18
|
-
var camelCaseSpecialWords = [
|
|
19
|
-
{
|
|
20
|
-
word: 'instrumentExpirationUtc',
|
|
21
|
-
substitute: 'instrumentExpirationUTC',
|
|
22
|
-
},
|
|
23
|
-
];
|
|
24
|
-
var toCamelKeys = function (object) {
|
|
25
|
-
var parsedObject = (0, js_convert_case_1.camelKeys)(object, { recursive: true, recursiveInArray: true });
|
|
26
|
-
camelCaseSpecialWords.forEach(function (specialWord) {
|
|
27
|
-
if (JSON.stringify(parsedObject).includes(specialWord.word)) {
|
|
28
|
-
substituteWordRecursively(parsedObject, specialWord.word, specialWord.substitute);
|
|
29
|
-
}
|
|
30
|
-
});
|
|
31
|
-
return parsedObject;
|
|
32
|
-
};
|
|
33
|
-
var substituteWordRecursively = function (theParsedObject, word, substitute) {
|
|
34
|
-
var deleteObject = function (obj, key) {
|
|
35
|
-
delete obj[key];
|
|
36
|
-
};
|
|
37
|
-
if (theParsedObject && typeof theParsedObject === 'object') {
|
|
38
|
-
Object.keys(theParsedObject).map(function (key) {
|
|
39
|
-
if (key === word) {
|
|
40
|
-
Object.defineProperty(theParsedObject, substitute, Object.getOwnPropertyDescriptor(theParsedObject, word) || '');
|
|
41
|
-
deleteObject(theParsedObject, word);
|
|
42
|
-
}
|
|
43
|
-
if (typeof theParsedObject[key] === 'object') {
|
|
44
|
-
substituteWordRecursively(theParsedObject[key], word, substitute);
|
|
45
|
-
}
|
|
46
|
-
});
|
|
47
|
-
}
|
|
48
|
-
};
|
|
49
|
-
var toPascalKeys = function (object) {
|
|
50
|
-
var parsedObject = (0, js_convert_case_1.pascalKeys)(object, { recursive: true, recursiveInArray: true });
|
|
51
|
-
specialWords.forEach(function (specialWord) {
|
|
52
|
-
if (JSON.stringify(parsedObject).includes(specialWord.word)) {
|
|
53
|
-
substituteWordRecursively(parsedObject, specialWord.word, specialWord.substitute);
|
|
54
|
-
}
|
|
55
|
-
});
|
|
56
|
-
return signatureUtils_1.signatureUtils.sortObject(parsedObject);
|
|
57
|
-
};
|
|
58
|
-
exports.caseUtils = {
|
|
59
|
-
toCamelKeys: toCamelKeys,
|
|
60
|
-
toPascalKeys: toPascalKeys,
|
|
61
|
-
};
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.caseUtils = void 0;
|
|
4
|
+
var js_convert_case_1 = require("js-convert-case");
|
|
5
|
+
var signatureUtils_1 = require("../sdk/helpers/signature/signatureUtils");
|
|
6
|
+
var specialWords = [
|
|
7
|
+
{ word: 'UtcUnixTimeExpiration', substitute: 'UTCUnixTimeExpiration' },
|
|
8
|
+
{ word: 'UtcunixTimeExpiration', substitute: 'UTCUnixTimeExpiration' },
|
|
9
|
+
{ word: 'VatAmount', substitute: 'VATAmount' },
|
|
10
|
+
{ word: 'InstrumentExpirationUtc', substitute: 'InstrumentExpirationUTC' },
|
|
11
|
+
{ word: 'Mcc', substitute: 'MCC' },
|
|
12
|
+
{ word: 'CommerceRut', substitute: 'CommerceRUT' },
|
|
13
|
+
{ word: 'Ui', substitute: 'UI' },
|
|
14
|
+
{ word: 'Background', substitute: 'background' },
|
|
15
|
+
{ word: 'Primary', substitute: 'primary' },
|
|
16
|
+
{ word: 'Secondary', substitute: 'secondary' },
|
|
17
|
+
];
|
|
18
|
+
var camelCaseSpecialWords = [
|
|
19
|
+
{
|
|
20
|
+
word: 'instrumentExpirationUtc',
|
|
21
|
+
substitute: 'instrumentExpirationUTC',
|
|
22
|
+
},
|
|
23
|
+
];
|
|
24
|
+
var toCamelKeys = function (object) {
|
|
25
|
+
var parsedObject = (0, js_convert_case_1.camelKeys)(object, { recursive: true, recursiveInArray: true });
|
|
26
|
+
camelCaseSpecialWords.forEach(function (specialWord) {
|
|
27
|
+
if (JSON.stringify(parsedObject).includes(specialWord.word)) {
|
|
28
|
+
substituteWordRecursively(parsedObject, specialWord.word, specialWord.substitute);
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
return parsedObject;
|
|
32
|
+
};
|
|
33
|
+
var substituteWordRecursively = function (theParsedObject, word, substitute) {
|
|
34
|
+
var deleteObject = function (obj, key) {
|
|
35
|
+
delete obj[key];
|
|
36
|
+
};
|
|
37
|
+
if (theParsedObject && typeof theParsedObject === 'object') {
|
|
38
|
+
Object.keys(theParsedObject).map(function (key) {
|
|
39
|
+
if (key === word) {
|
|
40
|
+
Object.defineProperty(theParsedObject, substitute, Object.getOwnPropertyDescriptor(theParsedObject, word) || '');
|
|
41
|
+
deleteObject(theParsedObject, word);
|
|
42
|
+
}
|
|
43
|
+
if (typeof theParsedObject[key] === 'object') {
|
|
44
|
+
substituteWordRecursively(theParsedObject[key], word, substitute);
|
|
45
|
+
}
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
var toPascalKeys = function (object) {
|
|
50
|
+
var parsedObject = (0, js_convert_case_1.pascalKeys)(object, { recursive: true, recursiveInArray: true });
|
|
51
|
+
specialWords.forEach(function (specialWord) {
|
|
52
|
+
if (JSON.stringify(parsedObject).includes(specialWord.word)) {
|
|
53
|
+
substituteWordRecursively(parsedObject, specialWord.word, specialWord.substitute);
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
return signatureUtils_1.signatureUtils.sortObject(parsedObject);
|
|
57
|
+
};
|
|
58
|
+
exports.caseUtils = {
|
|
59
|
+
toCamelKeys: toCamelKeys,
|
|
60
|
+
toPascalKeys: toPascalKeys,
|
|
61
|
+
};
|
package/lib/utils/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { caseUtils } from './case.util';
|
|
1
|
+
export { caseUtils } from './case.util';
|
package/lib/utils/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.caseUtils = void 0;
|
|
4
|
-
var case_util_1 = require("./case.util");
|
|
5
|
-
Object.defineProperty(exports, "caseUtils", { enumerable: true, get: function () { return case_util_1.caseUtils; } });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.caseUtils = void 0;
|
|
4
|
+
var case_util_1 = require("./case.util");
|
|
5
|
+
Object.defineProperty(exports, "caseUtils", { enumerable: true, get: function () { return case_util_1.caseUtils; } });
|
package/package.json
CHANGED
|
@@ -1,52 +1,52 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@houlak/plexo-sdk",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"description": "Node SDK for Plexo payment services",
|
|
5
|
-
"main": "lib/index.js",
|
|
6
|
-
"types": "lib/index.d.ts",
|
|
7
|
-
"scripts": {
|
|
8
|
-
"build": "rimraf ./build && tsc",
|
|
9
|
-
"format": "prettier --write \"src/**/*.ts\" \"src/**/*.js\"",
|
|
10
|
-
"lint": "tslint -p tsconfig.json",
|
|
11
|
-
"test": "env $(cat .env | xargs) ENV=test jest --verbose=false --coverage --config jest.config.js",
|
|
12
|
-
"prepare": "npm run build",
|
|
13
|
-
"prepublishOnly": "npm run lint",
|
|
14
|
-
"preversion": "npm run lint",
|
|
15
|
-
"version": "npm run format && git add -A src",
|
|
16
|
-
"postversion": "git push && git push --tags"
|
|
17
|
-
},
|
|
18
|
-
"author": "devteam@houlak",
|
|
19
|
-
"license": "ISC",
|
|
20
|
-
"dependencies": {
|
|
21
|
-
"axios": "^0.21.4",
|
|
22
|
-
"js-convert-case": "^4.2.0",
|
|
23
|
-
"pem": "^1.14.4",
|
|
24
|
-
"pino": "^8.1.0",
|
|
25
|
-
"pino-pretty": "^8.1.0"
|
|
26
|
-
},
|
|
27
|
-
"devDependencies": {
|
|
28
|
-
"@types/jest": "^27.0.2",
|
|
29
|
-
"@types/node": "^17.0.41",
|
|
30
|
-
"@types/pem": "^1.9.6",
|
|
31
|
-
"@types/pino": "^7.0.5",
|
|
32
|
-
"husky": "^4.3.8",
|
|
33
|
-
"jest": "^27.3.1",
|
|
34
|
-
"prettier": "^2.4.1",
|
|
35
|
-
"rimraf": "^3.0.2",
|
|
36
|
-
"ts-jest": "^27.0.7",
|
|
37
|
-
"tslint": "^6.1.3",
|
|
38
|
-
"tslint-config-prettier": "^1.18.0",
|
|
39
|
-
"typescript": "^4.4.2"
|
|
40
|
-
},
|
|
41
|
-
"husky": {
|
|
42
|
-
"hooks": {
|
|
43
|
-
"pre-commit": "sh .githooks/pre-commit"
|
|
44
|
-
}
|
|
45
|
-
},
|
|
46
|
-
"engines": {
|
|
47
|
-
"node": "16"
|
|
48
|
-
},
|
|
49
|
-
"files": [
|
|
50
|
-
"lib/**/*"
|
|
51
|
-
]
|
|
52
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@houlak/plexo-sdk",
|
|
3
|
+
"version": "0.1.69",
|
|
4
|
+
"description": "Node SDK for Plexo payment services",
|
|
5
|
+
"main": "lib/index.js",
|
|
6
|
+
"types": "lib/index.d.ts",
|
|
7
|
+
"scripts": {
|
|
8
|
+
"build": "rimraf ./build && tsc",
|
|
9
|
+
"format": "prettier --write \"src/**/*.ts\" \"src/**/*.js\"",
|
|
10
|
+
"lint": "tslint -p tsconfig.json",
|
|
11
|
+
"test": "env $(cat .env | xargs) ENV=test jest --verbose=false --coverage --config jest.config.js",
|
|
12
|
+
"prepare": "npm run build",
|
|
13
|
+
"prepublishOnly": "npm run lint",
|
|
14
|
+
"preversion": "npm run lint",
|
|
15
|
+
"version": "npm run format && git add -A src",
|
|
16
|
+
"postversion": "git push && git push --tags"
|
|
17
|
+
},
|
|
18
|
+
"author": "devteam@houlak",
|
|
19
|
+
"license": "ISC",
|
|
20
|
+
"dependencies": {
|
|
21
|
+
"axios": "^0.21.4",
|
|
22
|
+
"js-convert-case": "^4.2.0",
|
|
23
|
+
"pem": "^1.14.4",
|
|
24
|
+
"pino": "^8.1.0",
|
|
25
|
+
"pino-pretty": "^8.1.0"
|
|
26
|
+
},
|
|
27
|
+
"devDependencies": {
|
|
28
|
+
"@types/jest": "^27.0.2",
|
|
29
|
+
"@types/node": "^17.0.41",
|
|
30
|
+
"@types/pem": "^1.9.6",
|
|
31
|
+
"@types/pino": "^7.0.5",
|
|
32
|
+
"husky": "^4.3.8",
|
|
33
|
+
"jest": "^27.3.1",
|
|
34
|
+
"prettier": "^2.4.1",
|
|
35
|
+
"rimraf": "^3.0.2",
|
|
36
|
+
"ts-jest": "^27.0.7",
|
|
37
|
+
"tslint": "^6.1.3",
|
|
38
|
+
"tslint-config-prettier": "^1.18.0",
|
|
39
|
+
"typescript": "^4.4.2"
|
|
40
|
+
},
|
|
41
|
+
"husky": {
|
|
42
|
+
"hooks": {
|
|
43
|
+
"pre-commit": "sh .githooks/pre-commit"
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
"engines": {
|
|
47
|
+
"node": "16"
|
|
48
|
+
},
|
|
49
|
+
"files": [
|
|
50
|
+
"lib/**/*"
|
|
51
|
+
]
|
|
52
|
+
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { IssuerProcessor } from '.';
|
|
2
|
-
import { Authorization, AuthorizationInfo, CancelRequest, ClientSignedResponse, CodeRequest, Commerce, CommerceIdRequest, CommerceIssuerIdRequest, CommerceModifyRequest, CommerceRequest, CreateBankInstrumentRequest, DeleteInstrumentRequest, ExpressCheckoutRequest, InstrumentCallback, IssuerData, IssuerInfo, PaymentRequest, PaymentInstrument, Reference, Reserve, ReserveRequest, BaseServerResponse, ServerResponse, ServerSignedCallback, Session, Transaction, TransactionCallback, TransactionCursor, TransactionQuery } from './models/IndexSDK';
|
|
3
|
-
export interface IPaymentGatewayClient {
|
|
4
|
-
AddCommerceAsync(commerce: CommerceRequest): ServerResponse<Commerce>;
|
|
5
|
-
AddIssuerCommerceAsync(issuerData: IssuerData): ServerResponse<IssuerData>;
|
|
6
|
-
DeleteCommerceAsync(commerceIdRequest: CommerceIdRequest): BaseServerResponse;
|
|
7
|
-
DeleteInstrumentAsync(info: DeleteInstrumentRequest): BaseServerResponse;
|
|
8
|
-
DeleteIssuerCommerceAsync(commerceIssuerIdRequest: CommerceIssuerIdRequest): BaseServerResponse;
|
|
9
|
-
GetCommerceIssuersAsync(commerceIdRequest: CommerceIdRequest): ServerResponse<IssuerData[]>;
|
|
10
|
-
GetCommercesAsync(): ServerResponse<Commerce[]>;
|
|
11
|
-
GetSupportedIssuersAsync(): ServerResponse<IssuerInfo[]>;
|
|
12
|
-
GetSupportedPaymentProcessorsAsync(): ServerResponse<IssuerProcessor[]>;
|
|
13
|
-
ModifyCommerceAsync(commerceModifyRequest: CommerceModifyRequest): ServerResponse<Commerce>;
|
|
14
|
-
GetInstrumentsAsync(authorizationInfo: AuthorizationInfo): ServerResponse<PaymentInstrument[]>;
|
|
15
|
-
SetDefaultCommerceAsync(commerceIdRequest: CommerceIdRequest): BaseServerResponse;
|
|
16
|
-
AuthorizeAsync(authorization: Authorization): ServerResponse<Session>;
|
|
17
|
-
CancelAsync(cancel: CancelRequest): ServerResponse<Transaction>;
|
|
18
|
-
CodeActionAsync(request: CodeRequest): ServerResponse<Transaction>;
|
|
19
|
-
StartReserveAsync(payment: ReserveRequest): ServerResponse<Transaction>;
|
|
20
|
-
StatusAsync(payment: Reference): ServerResponse<Transaction>;
|
|
21
|
-
ExpressCheckoutAsync(expressCheckout: ExpressCheckoutRequest): ServerResponse<Session>;
|
|
22
|
-
ObtainCsvTransactionsAsync(query: TransactionQuery): ServerResponse<string>;
|
|
23
|
-
ObtainTransactionsAsync(query: TransactionQuery): ServerResponse<TransactionCursor>;
|
|
24
|
-
PurchaseAsync(payment: PaymentRequest): ServerResponse<Transaction>;
|
|
25
|
-
CreateBankInstrumentAsync(request: CreateBankInstrumentRequest): ServerResponse<PaymentInstrument>;
|
|
26
|
-
EndReserveAsync(reserve: Reserve): ServerResponse<Transaction>;
|
|
27
|
-
UnwrapInstrumentCallbackAsync(serverSignedInstrumentCallback: ServerSignedCallback<InstrumentCallback>): ServerResponse<InstrumentCallback>;
|
|
28
|
-
UnwrapTransactionCallbackAsync(serverSignedTransactionCallback: ServerSignedCallback<TransactionCallback>): ServerResponse<TransactionCallback>;
|
|
29
|
-
SignInstrumentCallback(serverResponse: ServerResponse<InstrumentCallback>): ClientSignedResponse;
|
|
30
|
-
SignTransactionCallback(serverResponse: ServerResponse<TransactionCallback>): ClientSignedResponse;
|
|
31
|
-
}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { IssuerProcessor } from '.';
|
|
2
|
-
import { IPaymentGatewayClient } from './IPaymentGatewayClient';
|
|
3
|
-
import { Authorization, AuthorizationInfo, CancelRequest, ClientSignedResponse, CodeRequest, Commerce, CommerceIdRequest, CommerceIssuerIdRequest, CommerceModifyRequest, CommerceRequest, CreateBankInstrumentRequest, DeleteInstrumentRequest, ExpressCheckoutRequest, InstrumentCallback, IssuerData, IssuerInfo, PaymentRequest, PaymentInstrument, Reference, Reserve, ReserveRequest, BaseServerResponse, ServerResponse, ServerSignedCallback, Session, Transaction, TransactionCallback, TransactionCursor, TransactionQuery } from './models/IndexSDK';
|
|
4
|
-
export declare class PaymentGatewayClient implements IPaymentGatewayClient {
|
|
5
|
-
AddCommerceAsync(commerce: CommerceRequest): ServerResponse<Commerce>;
|
|
6
|
-
AddIssuerCommerceAsync(issuerData: IssuerData): ServerResponse<IssuerData>;
|
|
7
|
-
DeleteCommerceAsync(commerceIdRequest: CommerceIdRequest): BaseServerResponse;
|
|
8
|
-
DeleteInstrumentAsync(info: DeleteInstrumentRequest): BaseServerResponse;
|
|
9
|
-
DeleteIssuerCommerceAsync(commerceIssuerIdRequest: CommerceIssuerIdRequest): BaseServerResponse;
|
|
10
|
-
GetCommerceIssuersAsync(commerceIdRequest: CommerceIdRequest): ServerResponse<IssuerData[]>;
|
|
11
|
-
GetCommercesAsync(): ServerResponse<Commerce[]>;
|
|
12
|
-
GetSupportedIssuersAsync(): ServerResponse<IssuerInfo[]>;
|
|
13
|
-
GetSupportedPaymentProcessorsAsync(): ServerResponse<IssuerProcessor[]>;
|
|
14
|
-
ModifyCommerceAsync(commerceModifyRequest: CommerceModifyRequest): ServerResponse<Commerce>;
|
|
15
|
-
GetInstrumentsAsync(authorizationInfo: AuthorizationInfo): ServerResponse<PaymentInstrument[]>;
|
|
16
|
-
SetDefaultCommerceAsync(commerceIdRequest: CommerceIdRequest): BaseServerResponse;
|
|
17
|
-
AuthorizeAsync(authorization: Authorization): ServerResponse<Session>;
|
|
18
|
-
CancelAsync(cancel: CancelRequest): ServerResponse<Transaction>;
|
|
19
|
-
CodeActionAsync(request: CodeRequest): ServerResponse<Transaction>;
|
|
20
|
-
StartReserveAsync(payment: ReserveRequest): ServerResponse<Transaction>;
|
|
21
|
-
StatusAsync(payment: Reference): ServerResponse<Transaction>;
|
|
22
|
-
ExpressCheckoutAsync(expressCheckout: ExpressCheckoutRequest): ServerResponse<Session>;
|
|
23
|
-
ObtainCsvTransactionsAsync(query: TransactionQuery): ServerResponse<string>;
|
|
24
|
-
ObtainTransactionsAsync(query: TransactionQuery): ServerResponse<TransactionCursor>;
|
|
25
|
-
PurchaseAsync(payment: PaymentRequest): ServerResponse<Transaction>;
|
|
26
|
-
CreateBankInstrumentAsync(request: CreateBankInstrumentRequest): ServerResponse<PaymentInstrument>;
|
|
27
|
-
EndReserveAsync(reserve: Reserve): ServerResponse<Transaction>;
|
|
28
|
-
UnwrapInstrumentCallbackAsync(serverSignedInstrumentCallback: ServerSignedCallback<InstrumentCallback>): ServerResponse<InstrumentCallback>;
|
|
29
|
-
UnwrapTransactionCallbackAsync(serverSignedTransactionCallback: ServerSignedCallback<TransactionCallback>): ServerResponse<TransactionCallback>;
|
|
30
|
-
SignInstrumentCallback(serverResponse: ServerResponse<InstrumentCallback>): ClientSignedResponse;
|
|
31
|
-
SignTransactionCallback(serverResponse: ServerResponse<TransactionCallback>): ClientSignedResponse;
|
|
32
|
-
}
|