@houlak/plexo-sdk 0.1.13 → 0.1.14-h
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 -21
- package/lib/handler/PlexoHandler.js +421 -266
- package/lib/handler/services/evaluator.service.d.ts +6 -6
- package/lib/handler/services/evaluator.service.js +136 -118
- package/lib/handler/types/BaseResponse.d.ts +8 -8
- package/lib/handler/types/BaseResponse.js +16 -16
- package/lib/index.d.ts +3 -2
- package/lib/index.js +42 -6
- package/lib/lib/logger.lib.d.ts +3 -10
- package/lib/lib/logger.lib.js +36 -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 +382 -380
- package/lib/sdk/PaymentGatewayMock.d.ts +31 -31
- package/lib/sdk/PaymentGatewayMock.js +330 -336
- package/lib/sdk/enums/plexo-error-enum.d.ts +38 -37
- package/lib/sdk/enums/plexo-error-enum.js +46 -45
- package/lib/sdk/helpers/signature/signatureHelper.d.ts +6 -10
- package/lib/sdk/helpers/signature/signatureHelper.js +178 -309
- package/lib/sdk/helpers/signature/signatureUtils.d.ts +10 -0
- package/lib/sdk/helpers/signature/signatureUtils.js +193 -0
- 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 -32
- 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 -0
- package/lib/sdk/models/BuiltInPagesOptions.js +11 -0
- 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 -0
- package/lib/sdk/models/DisplayOptions.js +14 -0
- 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 -0
- package/lib/{models/ExpressCheckoutSettingsDto.js → sdk/models/ExpressCheckoutSettings.js} +11 -9
- 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 -76
- package/lib/sdk/models/FieldType.js +95 -89
- 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 -84
- package/lib/sdk/models/IndexSDK.js +114 -112
- 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 -5
- 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 -0
- package/lib/sdk/models/TokenizationSettings.js +10 -0
- 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 -0
- package/lib/{models/AmountLimit.js → sdk/models/TransactionsCSV.js} +2 -2
- package/lib/sdk/models/{UIOptionsDto.d.ts → UIOptions.d.ts} +8 -8
- package/lib/{models/UIOptionsDto.js → sdk/models/UIOptions.js} +13 -13
- package/lib/sdk/models/WebFormSettings.d.ts +9 -0
- package/lib/sdk/models/WebFormSettings.js +12 -0
- package/lib/sdk/models/webhook/Address.d.ts +9 -0
- package/lib/sdk/models/webhook/Address.js +15 -0
- package/lib/sdk/models/webhook/CancellationInfo.d.ts +11 -0
- package/lib/sdk/models/webhook/CancellationInfo.js +17 -0
- package/lib/sdk/models/webhook/Client.d.ts +9 -0
- package/lib/sdk/models/webhook/Client.js +14 -0
- package/lib/sdk/models/webhook/Commerce.d.ts +6 -0
- package/lib/sdk/models/webhook/Commerce.js +12 -0
- package/lib/sdk/models/webhook/Currency.d.ts +8 -0
- package/lib/sdk/models/webhook/Currency.js +14 -0
- package/lib/sdk/models/webhook/Customer.d.ts +17 -0
- package/lib/sdk/models/webhook/Customer.js +22 -0
- package/lib/sdk/models/webhook/Document.d.ts +5 -0
- package/lib/sdk/models/webhook/Document.js +11 -0
- package/lib/sdk/models/webhook/Instrument.d.ts +17 -0
- package/lib/sdk/models/webhook/Instrument.js +21 -0
- package/lib/sdk/models/webhook/Issuer.d.ts +8 -0
- package/lib/sdk/models/webhook/Issuer.js +14 -0
- package/lib/sdk/models/webhook/IssuerData.d.ts +8 -0
- package/lib/sdk/models/webhook/IssuerData.js +13 -0
- package/lib/sdk/models/webhook/IssuerDto.d.ts +5 -0
- package/lib/sdk/models/webhook/IssuerDto.js +11 -0
- package/lib/sdk/models/webhook/Item.d.ts +14 -0
- package/lib/sdk/models/webhook/Item.js +19 -0
- package/lib/sdk/models/webhook/PartialRefundsInfo.d.ts +12 -0
- package/lib/sdk/models/webhook/PartialRefundsInfo.js +18 -0
- package/lib/sdk/models/webhook/PaymentFacilitator.d.ts +8 -0
- package/lib/sdk/models/webhook/PaymentFacilitator.js +13 -0
- package/lib/sdk/models/webhook/PaymentProcessor.d.ts +5 -0
- package/lib/{models → sdk/models/webhook}/PaymentProcessor.js +11 -11
- package/lib/sdk/models/webhook/PurchaseInfo.d.ts +16 -0
- package/lib/sdk/models/webhook/PurchaseInfo.js +22 -0
- package/lib/sdk/models/webhook/RefundInfo.d.ts +12 -0
- package/lib/sdk/models/webhook/RefundInfo.js +18 -0
- package/lib/sdk/models/webhook/ReserveInfo.d.ts +13 -0
- package/lib/sdk/models/webhook/ReserveInfo.js +19 -0
- package/lib/sdk/models/webhook/Shipping.d.ts +7 -0
- package/lib/sdk/models/webhook/Shipping.js +12 -0
- package/lib/sdk/models/webhook/Transaction.d.ts +31 -0
- package/lib/sdk/models/webhook/Transaction.js +36 -0
- package/lib/sdk/models/webhook/TransactionResult.d.ts +5 -0
- package/lib/sdk/models/webhook/TransactionResult.js +10 -0
- package/lib/sdk/models/webhook/index.d.ts +21 -0
- package/lib/sdk/models/webhook/index.js +45 -0
- 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 -0
- package/lib/utils/boolean.utils.js +51 -0
- package/lib/utils/case.util.d.ts +4 -0
- package/lib/utils/case.util.js +61 -0
- package/lib/utils/index.d.ts +1 -0
- package/lib/utils/index.js +5 -0
- package/package.json +47 -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/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/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/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/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.js +0 -13
- package/lib/sdk/models/WebFormSettingsDto.d.ts +0 -8
- package/lib/sdk/models/WebFormSettingsDto.js +0 -9
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ExpressCheckoutSettingsDto } from './ExpressCheckoutSettings';
|
|
2
|
+
import { TokenizationSettings } from './TokenizationSettings';
|
|
3
|
+
import { UIOptions } from './UIOptions';
|
|
4
|
+
export declare class WebFormSettings {
|
|
5
|
+
ui: UIOptions;
|
|
6
|
+
expressCheckout: ExpressCheckoutSettingsDto;
|
|
7
|
+
tokenization: TokenizationSettings;
|
|
8
|
+
constructor(ui: UIOptions, expressCheckout: ExpressCheckoutSettingsDto, tokenization: TokenizationSettings);
|
|
9
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WebFormSettings = void 0;
|
|
4
|
+
var WebFormSettings = /** @class */ (function () {
|
|
5
|
+
function WebFormSettings(ui, expressCheckout, tokenization) {
|
|
6
|
+
this.ui = ui;
|
|
7
|
+
this.expressCheckout = expressCheckout;
|
|
8
|
+
this.tokenization = tokenization;
|
|
9
|
+
}
|
|
10
|
+
return WebFormSettings;
|
|
11
|
+
}());
|
|
12
|
+
exports.WebFormSettings = WebFormSettings;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Address = void 0;
|
|
4
|
+
var Address = /** @class */ (function () {
|
|
5
|
+
function Address(city, country, line1, line2, postalCode, state) {
|
|
6
|
+
this.city = city;
|
|
7
|
+
this.country = country;
|
|
8
|
+
this.line1 = line1;
|
|
9
|
+
this.line2 = line2;
|
|
10
|
+
this.postalCode = postalCode;
|
|
11
|
+
this.state = state;
|
|
12
|
+
}
|
|
13
|
+
return Address;
|
|
14
|
+
}());
|
|
15
|
+
exports.Address = Address;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare class CancellationInfo {
|
|
2
|
+
externalId: string;
|
|
3
|
+
resultText: string;
|
|
4
|
+
authorization: string;
|
|
5
|
+
metadata: string;
|
|
6
|
+
ticket: string;
|
|
7
|
+
status?: number;
|
|
8
|
+
transactionCode?: number;
|
|
9
|
+
executionDate?: Date;
|
|
10
|
+
constructor(externalId: string, resultText: string, authorization: string, metadata: string, ticket: string, status?: number, transactionCode?: number, executionDate?: Date);
|
|
11
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CancellationInfo = void 0;
|
|
4
|
+
var CancellationInfo = /** @class */ (function () {
|
|
5
|
+
function CancellationInfo(externalId, resultText, authorization, metadata, ticket, status, transactionCode, executionDate) {
|
|
6
|
+
this.externalId = externalId;
|
|
7
|
+
this.resultText = resultText;
|
|
8
|
+
this.authorization = authorization;
|
|
9
|
+
this.metadata = metadata;
|
|
10
|
+
this.ticket = ticket;
|
|
11
|
+
this.status = status;
|
|
12
|
+
this.transactionCode = transactionCode;
|
|
13
|
+
this.executionDate = executionDate;
|
|
14
|
+
}
|
|
15
|
+
return CancellationInfo;
|
|
16
|
+
}());
|
|
17
|
+
exports.CancellationInfo = CancellationInfo;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Commerce } from '.';
|
|
2
|
+
export declare class Client {
|
|
3
|
+
id: number;
|
|
4
|
+
name: string;
|
|
5
|
+
sessionTimeInSeconds: number;
|
|
6
|
+
tier?: number;
|
|
7
|
+
commerce?: Commerce;
|
|
8
|
+
constructor(id: number, name: string, sessionTimeInSeconds: number, tier: number, commerce: Commerce);
|
|
9
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Client = void 0;
|
|
4
|
+
var Client = /** @class */ (function () {
|
|
5
|
+
function Client(id, name, sessionTimeInSeconds, tier, commerce) {
|
|
6
|
+
this.id = id;
|
|
7
|
+
this.name = name;
|
|
8
|
+
this.sessionTimeInSeconds = sessionTimeInSeconds;
|
|
9
|
+
this.tier = tier;
|
|
10
|
+
this.commerce = commerce;
|
|
11
|
+
}
|
|
12
|
+
return Client;
|
|
13
|
+
}());
|
|
14
|
+
exports.Client = Client;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Commerce = void 0;
|
|
4
|
+
var Commerce = /** @class */ (function () {
|
|
5
|
+
function Commerce(id, name, metadata) {
|
|
6
|
+
this.id = id;
|
|
7
|
+
this.name = name;
|
|
8
|
+
this.metadata = metadata;
|
|
9
|
+
}
|
|
10
|
+
return Commerce;
|
|
11
|
+
}());
|
|
12
|
+
exports.Commerce = Commerce;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Currency = void 0;
|
|
4
|
+
var Currency = /** @class */ (function () {
|
|
5
|
+
function Currency(id, isoCode, name, plural, symbol) {
|
|
6
|
+
this.id = id;
|
|
7
|
+
this.isoCode = isoCode;
|
|
8
|
+
this.name = name;
|
|
9
|
+
this.plural = plural;
|
|
10
|
+
this.symbol = symbol;
|
|
11
|
+
}
|
|
12
|
+
return Currency;
|
|
13
|
+
}());
|
|
14
|
+
exports.Currency = Currency;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Address, Document, Shipping } from '.';
|
|
2
|
+
export declare class Customer {
|
|
3
|
+
firstName: string;
|
|
4
|
+
lastName: string;
|
|
5
|
+
email: string;
|
|
6
|
+
name: string;
|
|
7
|
+
id?: string;
|
|
8
|
+
referenceId?: string;
|
|
9
|
+
metadata?: string;
|
|
10
|
+
description?: string;
|
|
11
|
+
phone?: string;
|
|
12
|
+
document?: Document;
|
|
13
|
+
birthdate?: Date;
|
|
14
|
+
address?: Address;
|
|
15
|
+
shipping?: Shipping;
|
|
16
|
+
constructor(firstName: string, lastName: string, email: string, name: string, id?: string, referenceId?: string, metadata?: string, description?: string, phone?: string, document?: Document, birthdate?: Date, address?: Address, shipping?: Shipping);
|
|
17
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Customer = void 0;
|
|
4
|
+
var Customer = /** @class */ (function () {
|
|
5
|
+
function Customer(firstName, lastName, email, name, id, referenceId, metadata, description, phone, document, birthdate, address, shipping) {
|
|
6
|
+
this.firstName = firstName;
|
|
7
|
+
this.lastName = lastName;
|
|
8
|
+
this.email = email;
|
|
9
|
+
this.name = name;
|
|
10
|
+
this.id = id;
|
|
11
|
+
this.referenceId = referenceId;
|
|
12
|
+
this.metadata = metadata;
|
|
13
|
+
this.description = description;
|
|
14
|
+
this.phone = phone;
|
|
15
|
+
this.document = document;
|
|
16
|
+
this.birthdate = birthdate;
|
|
17
|
+
this.address = address;
|
|
18
|
+
this.shipping = shipping;
|
|
19
|
+
}
|
|
20
|
+
return Customer;
|
|
21
|
+
}());
|
|
22
|
+
exports.Customer = Customer;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Document = void 0;
|
|
4
|
+
var Document = /** @class */ (function () {
|
|
5
|
+
function Document(type, value) {
|
|
6
|
+
this.type = type;
|
|
7
|
+
this.value = value;
|
|
8
|
+
}
|
|
9
|
+
return Document;
|
|
10
|
+
}());
|
|
11
|
+
exports.Document = Document;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { CardStatus } from '../CardStatus';
|
|
2
|
+
import { IssuerDto } from '.';
|
|
3
|
+
export declare class Instrument {
|
|
4
|
+
token: string;
|
|
5
|
+
name: string;
|
|
6
|
+
type: string;
|
|
7
|
+
issuer: IssuerDto;
|
|
8
|
+
expMonth: number;
|
|
9
|
+
expYear: number;
|
|
10
|
+
expInUtc: number;
|
|
11
|
+
created: Date;
|
|
12
|
+
status: CardStatus;
|
|
13
|
+
tokenizationType: string;
|
|
14
|
+
metadata: string;
|
|
15
|
+
userId?: string;
|
|
16
|
+
constructor(token: string, name: string, type: string, issuer: IssuerDto, expMonth: number, expYear: number, expInUtc: number, created: Date, status: CardStatus, tokenizationType: string, metadata: string, userId: string);
|
|
17
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Instrument = void 0;
|
|
4
|
+
var Instrument = /** @class */ (function () {
|
|
5
|
+
function Instrument(token, name, type, issuer, expMonth, expYear, expInUtc, created, status, tokenizationType, metadata, userId) {
|
|
6
|
+
this.token = token;
|
|
7
|
+
this.name = name;
|
|
8
|
+
this.type = type;
|
|
9
|
+
this.issuer = issuer;
|
|
10
|
+
this.expMonth = expMonth;
|
|
11
|
+
this.expYear = expYear;
|
|
12
|
+
this.expInUtc = expInUtc;
|
|
13
|
+
this.created = created;
|
|
14
|
+
this.status = status;
|
|
15
|
+
this.tokenizationType = tokenizationType;
|
|
16
|
+
this.metadata = metadata;
|
|
17
|
+
this.userId = userId;
|
|
18
|
+
}
|
|
19
|
+
return Instrument;
|
|
20
|
+
}());
|
|
21
|
+
exports.Instrument = Instrument;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Issuer = void 0;
|
|
4
|
+
var Issuer = /** @class */ (function () {
|
|
5
|
+
function Issuer(id, code, name, pictureUrl, type) {
|
|
6
|
+
this.id = id;
|
|
7
|
+
this.code = code;
|
|
8
|
+
this.name = name;
|
|
9
|
+
this.pictureUrl = pictureUrl;
|
|
10
|
+
this.type = type;
|
|
11
|
+
}
|
|
12
|
+
return Issuer;
|
|
13
|
+
}());
|
|
14
|
+
exports.Issuer = Issuer;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare class IssuerData {
|
|
2
|
+
issuerId: number;
|
|
3
|
+
commerceId: number;
|
|
4
|
+
paymentFacilitatorCommerceId?: number;
|
|
5
|
+
paymentFacilitatorId?: number;
|
|
6
|
+
metadata: string;
|
|
7
|
+
constructor(issuerId: number, commerceId: number, paymentFacilitatorCommerceId: number, metadata: string);
|
|
8
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.IssuerData = void 0;
|
|
4
|
+
var IssuerData = /** @class */ (function () {
|
|
5
|
+
function IssuerData(issuerId, commerceId, paymentFacilitatorCommerceId, metadata) {
|
|
6
|
+
this.issuerId = issuerId;
|
|
7
|
+
this.commerceId = commerceId;
|
|
8
|
+
this.paymentFacilitatorCommerceId = paymentFacilitatorCommerceId;
|
|
9
|
+
this.metadata = metadata;
|
|
10
|
+
}
|
|
11
|
+
return IssuerData;
|
|
12
|
+
}());
|
|
13
|
+
exports.IssuerData = IssuerData;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.IssuerDto = void 0;
|
|
4
|
+
var IssuerDto = /** @class */ (function () {
|
|
5
|
+
function IssuerDto(id, name) {
|
|
6
|
+
this.id = id;
|
|
7
|
+
this.name = name;
|
|
8
|
+
}
|
|
9
|
+
return IssuerDto;
|
|
10
|
+
}());
|
|
11
|
+
exports.IssuerDto = IssuerDto;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Currency } from '.';
|
|
2
|
+
export declare class Item {
|
|
3
|
+
id: string;
|
|
4
|
+
transactionId: string;
|
|
5
|
+
externalId: string;
|
|
6
|
+
amount: number;
|
|
7
|
+
name: string;
|
|
8
|
+
description: string;
|
|
9
|
+
quantity: number;
|
|
10
|
+
metadata: string;
|
|
11
|
+
creationDate?: Date;
|
|
12
|
+
currency: Currency;
|
|
13
|
+
constructor(id: string, transactionId: string, externalId: string, amount: number, name: string, description: string, quantity: number, metadata: string, creationDate: Date, currency: Currency);
|
|
14
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Item = void 0;
|
|
4
|
+
var Item = /** @class */ (function () {
|
|
5
|
+
function Item(id, transactionId, externalId, amount, name, description, quantity, metadata, creationDate, currency) {
|
|
6
|
+
this.id = id;
|
|
7
|
+
this.transactionId = transactionId;
|
|
8
|
+
this.externalId = externalId;
|
|
9
|
+
this.amount = amount;
|
|
10
|
+
this.name = name;
|
|
11
|
+
this.description = description;
|
|
12
|
+
this.quantity = quantity;
|
|
13
|
+
this.metadata = metadata;
|
|
14
|
+
this.creationDate = creationDate;
|
|
15
|
+
this.currency = currency;
|
|
16
|
+
}
|
|
17
|
+
return Item;
|
|
18
|
+
}());
|
|
19
|
+
exports.Item = Item;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare class PartialRefundsInfo {
|
|
2
|
+
amount: number;
|
|
3
|
+
status: number;
|
|
4
|
+
externalId: string;
|
|
5
|
+
transactionCode: number;
|
|
6
|
+
resultText: string;
|
|
7
|
+
executionDate: Date;
|
|
8
|
+
authorization: string;
|
|
9
|
+
metadata: string;
|
|
10
|
+
ticket: string;
|
|
11
|
+
constructor(amount: number, status: number, externalId: string, transactionCode: number, resultText: string, executionDate: Date, authorization: string, metadata: string, ticket: string);
|
|
12
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PartialRefundsInfo = void 0;
|
|
4
|
+
var PartialRefundsInfo = /** @class */ (function () {
|
|
5
|
+
function PartialRefundsInfo(amount, status, externalId, transactionCode, resultText, executionDate, authorization, metadata, ticket) {
|
|
6
|
+
this.amount = amount;
|
|
7
|
+
this.status = status;
|
|
8
|
+
this.externalId = externalId;
|
|
9
|
+
this.transactionCode = transactionCode;
|
|
10
|
+
this.resultText = resultText;
|
|
11
|
+
this.executionDate = executionDate;
|
|
12
|
+
this.authorization = authorization;
|
|
13
|
+
this.metadata = metadata;
|
|
14
|
+
this.ticket = ticket;
|
|
15
|
+
}
|
|
16
|
+
return PartialRefundsInfo;
|
|
17
|
+
}());
|
|
18
|
+
exports.PartialRefundsInfo = PartialRefundsInfo;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PaymentFacilitator = void 0;
|
|
4
|
+
var PaymentFacilitator = /** @class */ (function () {
|
|
5
|
+
function PaymentFacilitator(id, name, clientId, client) {
|
|
6
|
+
this.id = id;
|
|
7
|
+
this.name = name;
|
|
8
|
+
this.clientId = clientId;
|
|
9
|
+
this.client = client;
|
|
10
|
+
}
|
|
11
|
+
return PaymentFacilitator;
|
|
12
|
+
}());
|
|
13
|
+
exports.PaymentFacilitator = PaymentFacilitator;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PaymentProcessor = void 0;
|
|
4
|
-
var PaymentProcessor = /** @class */ (function () {
|
|
5
|
-
function PaymentProcessor(
|
|
6
|
-
this.
|
|
7
|
-
this.
|
|
8
|
-
}
|
|
9
|
-
return PaymentProcessor;
|
|
10
|
-
}());
|
|
11
|
-
exports.PaymentProcessor = PaymentProcessor;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PaymentProcessor = void 0;
|
|
4
|
+
var PaymentProcessor = /** @class */ (function () {
|
|
5
|
+
function PaymentProcessor(id, acquirer) {
|
|
6
|
+
this.id = id;
|
|
7
|
+
this.acquirer = acquirer;
|
|
8
|
+
}
|
|
9
|
+
return PaymentProcessor;
|
|
10
|
+
}());
|
|
11
|
+
exports.PaymentProcessor = PaymentProcessor;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare class PurchaseInfo {
|
|
2
|
+
externalId: string;
|
|
3
|
+
resultText: string;
|
|
4
|
+
authorization: string;
|
|
5
|
+
ticket: string;
|
|
6
|
+
metadata: string;
|
|
7
|
+
appliedLaw: number;
|
|
8
|
+
discount: number;
|
|
9
|
+
taxAmount?: number;
|
|
10
|
+
commitFinalAmount?: number;
|
|
11
|
+
status?: number;
|
|
12
|
+
executionDate?: Date;
|
|
13
|
+
expirationDate?: Date;
|
|
14
|
+
transactionCode?: number;
|
|
15
|
+
constructor(externalId: string, resultText: string, authorization: string, ticket: string, metadata: string, appliedLaw: number, discount: number, taxAmount: number, commitFinalAmount: number, status: number, executionDate: Date, expirationDate: Date, transactionCode: number);
|
|
16
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PurchaseInfo = void 0;
|
|
4
|
+
var PurchaseInfo = /** @class */ (function () {
|
|
5
|
+
function PurchaseInfo(externalId, resultText, authorization, ticket, metadata, appliedLaw, discount, taxAmount, commitFinalAmount, status, executionDate, expirationDate, transactionCode) {
|
|
6
|
+
this.externalId = externalId;
|
|
7
|
+
this.resultText = resultText;
|
|
8
|
+
this.authorization = authorization;
|
|
9
|
+
this.ticket = ticket;
|
|
10
|
+
this.metadata = metadata;
|
|
11
|
+
this.appliedLaw = appliedLaw;
|
|
12
|
+
this.discount = discount;
|
|
13
|
+
this.taxAmount = taxAmount;
|
|
14
|
+
this.commitFinalAmount = commitFinalAmount;
|
|
15
|
+
this.status = status;
|
|
16
|
+
this.executionDate = executionDate;
|
|
17
|
+
this.expirationDate = expirationDate;
|
|
18
|
+
this.transactionCode = transactionCode;
|
|
19
|
+
}
|
|
20
|
+
return PurchaseInfo;
|
|
21
|
+
}());
|
|
22
|
+
exports.PurchaseInfo = PurchaseInfo;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare class RefundInfo {
|
|
2
|
+
amount?: number;
|
|
3
|
+
status?: number;
|
|
4
|
+
externalId: string;
|
|
5
|
+
transactionCode?: number;
|
|
6
|
+
resultText: string;
|
|
7
|
+
executionDate?: Date;
|
|
8
|
+
authorization: string;
|
|
9
|
+
metadata: string;
|
|
10
|
+
ticket: string;
|
|
11
|
+
constructor(amount: number, status: number, externalId: string, transactionCode: number, resultText: string, executionDate: Date, authorization: string, metadata: string, ticket: string);
|
|
12
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RefundInfo = void 0;
|
|
4
|
+
var RefundInfo = /** @class */ (function () {
|
|
5
|
+
function RefundInfo(amount, status, externalId, transactionCode, resultText, executionDate, authorization, metadata, ticket) {
|
|
6
|
+
this.amount = amount;
|
|
7
|
+
this.status = status;
|
|
8
|
+
this.externalId = externalId;
|
|
9
|
+
this.transactionCode = transactionCode;
|
|
10
|
+
this.resultText = resultText;
|
|
11
|
+
this.executionDate = executionDate;
|
|
12
|
+
this.authorization = authorization;
|
|
13
|
+
this.metadata = metadata;
|
|
14
|
+
this.ticket = ticket;
|
|
15
|
+
}
|
|
16
|
+
return RefundInfo;
|
|
17
|
+
}());
|
|
18
|
+
exports.RefundInfo = RefundInfo;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare class ReserveInfo {
|
|
2
|
+
externalId: string;
|
|
3
|
+
status?: number;
|
|
4
|
+
executionDate?: Date;
|
|
5
|
+
expirationDate?: Date;
|
|
6
|
+
transactionCode?: number;
|
|
7
|
+
resultText: string;
|
|
8
|
+
authorization: string;
|
|
9
|
+
ticket: string;
|
|
10
|
+
metadata: string;
|
|
11
|
+
taxAmount?: number;
|
|
12
|
+
constructor(externalId: string, status: number, executionDate: Date, expirationDate: Date, transactionCode: number, resultText: string, authorization: string, ticket: string, metadata: string, taxAmount: number);
|
|
13
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ReserveInfo = void 0;
|
|
4
|
+
var ReserveInfo = /** @class */ (function () {
|
|
5
|
+
function ReserveInfo(externalId, status, executionDate, expirationDate, transactionCode, resultText, authorization, ticket, metadata, taxAmount) {
|
|
6
|
+
this.externalId = externalId;
|
|
7
|
+
this.status = status;
|
|
8
|
+
this.executionDate = executionDate;
|
|
9
|
+
this.expirationDate = expirationDate;
|
|
10
|
+
this.transactionCode = transactionCode;
|
|
11
|
+
this.resultText = resultText;
|
|
12
|
+
this.authorization = authorization;
|
|
13
|
+
this.ticket = ticket;
|
|
14
|
+
this.metadata = metadata;
|
|
15
|
+
this.taxAmount = taxAmount;
|
|
16
|
+
}
|
|
17
|
+
return ReserveInfo;
|
|
18
|
+
}());
|
|
19
|
+
exports.ReserveInfo = ReserveInfo;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Shipping = void 0;
|
|
4
|
+
var Shipping = /** @class */ (function () {
|
|
5
|
+
function Shipping(address, name, phone) {
|
|
6
|
+
this.address = address;
|
|
7
|
+
this.name = name;
|
|
8
|
+
this.phone = phone;
|
|
9
|
+
}
|
|
10
|
+
return Shipping;
|
|
11
|
+
}());
|
|
12
|
+
exports.Shipping = Shipping;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { CancellationInfo, Client, Currency, Customer, Instrument, Item, PaymentFacilitator, PaymentProcessor, PurchaseInfo, RefundInfo, ReserveInfo } from '.';
|
|
2
|
+
export declare class Transaction {
|
|
3
|
+
id: string;
|
|
4
|
+
batchId?: number;
|
|
5
|
+
externalId: string;
|
|
6
|
+
invoiceNumber: string;
|
|
7
|
+
creationDate: Date;
|
|
8
|
+
expiration?: Date;
|
|
9
|
+
metadata: string;
|
|
10
|
+
state: number;
|
|
11
|
+
amount: number;
|
|
12
|
+
installments?: number;
|
|
13
|
+
taxedAmount: number;
|
|
14
|
+
tipAmount: number;
|
|
15
|
+
billedAmount: number;
|
|
16
|
+
loyaltyProgramAmount?: number;
|
|
17
|
+
law: number;
|
|
18
|
+
client: Client;
|
|
19
|
+
instrument: Instrument;
|
|
20
|
+
currency: Currency;
|
|
21
|
+
purchaseInfo?: PurchaseInfo;
|
|
22
|
+
cancellationInfo?: CancellationInfo;
|
|
23
|
+
refundInfo?: RefundInfo;
|
|
24
|
+
reserveInfo?: ReserveInfo;
|
|
25
|
+
partialRefundsInfo?: RefundInfo[];
|
|
26
|
+
items: Item[];
|
|
27
|
+
customer: Customer;
|
|
28
|
+
paymentProcessor: PaymentProcessor;
|
|
29
|
+
paymentFacilitator: PaymentFacilitator;
|
|
30
|
+
constructor(id: string, externalId: string, invoiceNumber: string, creationDate: Date, metadata: string, state: number, amount: number, taxedAmount: number, tipAmount: number, billedAmount: number, law: number, client: Client, instrument: Instrument, currency: Currency, items: Item[], customer: Customer, paymentProcessor: PaymentProcessor, paymentFacilitator: PaymentFacilitator, loyaltyProgramAmount?: number, installments?: number, expiration?: Date, batchId?: number, purchaseInfo?: PurchaseInfo, cancellationInfo?: CancellationInfo, refundInfo?: RefundInfo, reserveInfo?: ReserveInfo, partialRefundsInfo?: RefundInfo[]);
|
|
31
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Transaction = void 0;
|
|
4
|
+
var Transaction = /** @class */ (function () {
|
|
5
|
+
function Transaction(id, externalId, invoiceNumber, creationDate, metadata, state, amount, taxedAmount, tipAmount, billedAmount, law, client, instrument, currency, items, customer, paymentProcessor, paymentFacilitator, loyaltyProgramAmount, installments, expiration, batchId, purchaseInfo, cancellationInfo, refundInfo, reserveInfo, partialRefundsInfo) {
|
|
6
|
+
this.id = id;
|
|
7
|
+
this.batchId = batchId;
|
|
8
|
+
this.externalId = externalId;
|
|
9
|
+
this.invoiceNumber = invoiceNumber;
|
|
10
|
+
this.creationDate = creationDate;
|
|
11
|
+
this.expiration = expiration;
|
|
12
|
+
this.metadata = metadata;
|
|
13
|
+
this.state = state;
|
|
14
|
+
this.amount = amount;
|
|
15
|
+
this.installments = installments;
|
|
16
|
+
this.taxedAmount = taxedAmount;
|
|
17
|
+
this.tipAmount = tipAmount;
|
|
18
|
+
this.billedAmount = billedAmount;
|
|
19
|
+
this.loyaltyProgramAmount = loyaltyProgramAmount;
|
|
20
|
+
this.law = law;
|
|
21
|
+
this.client = client;
|
|
22
|
+
this.instrument = instrument;
|
|
23
|
+
this.currency = currency;
|
|
24
|
+
this.purchaseInfo = purchaseInfo;
|
|
25
|
+
this.cancellationInfo = cancellationInfo;
|
|
26
|
+
this.refundInfo = refundInfo;
|
|
27
|
+
this.reserveInfo = reserveInfo;
|
|
28
|
+
this.partialRefundsInfo = partialRefundsInfo;
|
|
29
|
+
this.items = items;
|
|
30
|
+
this.customer = customer;
|
|
31
|
+
this.paymentProcessor = paymentProcessor;
|
|
32
|
+
this.paymentFacilitator = paymentFacilitator;
|
|
33
|
+
}
|
|
34
|
+
return Transaction;
|
|
35
|
+
}());
|
|
36
|
+
exports.Transaction = Transaction;
|