@houlak/plexo-sdk 0.1.3 → 0.1.4-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/lib/handler/PlexoHandler.d.ts +17 -7
- package/lib/handler/PlexoHandler.js +168 -15
- package/lib/index.d.ts +1 -0
- package/lib/index.js +4 -1
- package/lib/lib/logger.lib.d.ts +1 -6
- package/lib/lib/logger.lib.js +10 -6
- package/lib/sdk/IPaymentGatewayClient.d.ts +2 -2
- package/lib/sdk/PaymentGatewayClient.d.ts +2 -2
- package/lib/sdk/PaymentGatewayClient.js +9 -8
- package/lib/sdk/PaymentGatewayMock.d.ts +2 -2
- package/lib/sdk/PaymentGatewayMock.js +2 -8
- package/lib/sdk/enums/plexo-error-enum.d.ts +1 -0
- package/lib/sdk/enums/plexo-error-enum.js +1 -0
- package/lib/sdk/helpers/signature/signatureHelper.d.ts +3 -7
- package/lib/sdk/helpers/signature/signatureHelper.js +65 -195
- package/lib/sdk/helpers/signature/signatureUtils.d.ts +10 -0
- package/lib/{helpers/signature/signatureHelper.js → sdk/helpers/signature/signatureUtils.js} +50 -66
- package/lib/sdk/helpers/signature/stringifyWithFloats.js +2 -0
- package/lib/sdk/models/Authorization.d.ts +4 -5
- package/lib/sdk/models/Authorization.js +2 -1
- package/lib/sdk/models/BuiltInPagesOptions.d.ts +5 -0
- package/lib/sdk/models/BuiltInPagesOptions.js +11 -0
- package/lib/sdk/models/DisplayOptions.d.ts +8 -0
- package/lib/sdk/models/DisplayOptions.js +14 -0
- package/lib/sdk/models/ExpressCheckoutSettings.d.ts +7 -0
- package/lib/{models/ExpressCheckoutSettingsDto.js → sdk/models/ExpressCheckoutSettings.js} +3 -1
- package/lib/sdk/models/FieldType.d.ts +23 -14
- package/lib/sdk/models/FieldType.js +23 -14
- package/lib/sdk/models/IndexSDK.d.ts +8 -6
- package/lib/sdk/models/IndexSDK.js +16 -14
- package/lib/sdk/models/IssuerData.d.ts +2 -0
- package/lib/sdk/models/TokenizationSettings.d.ts +5 -0
- package/lib/sdk/models/TokenizationSettings.js +10 -0
- package/lib/sdk/models/TransactionsCSV.d.ts +3 -0
- package/lib/sdk/models/{UIOptionsDto.d.ts → UIOptions.d.ts} +2 -2
- package/lib/{models/UIOptionsDto.js → sdk/models/UIOptions.js} +5 -5
- 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 +2 -2
- 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/utils/boolean.utils.d.ts +4 -0
- package/lib/utils/boolean.utils.js +53 -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 +3 -3
- package/lib/IPaymentGatewayClient.d.ts +0 -31
- package/lib/PaymentGatewayClient.d.ts +0 -33
- package/lib/PaymentGatewayClient.js +0 -179
- package/lib/helpers/signature/signatureHelper.d.ts +0 -5
- 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 -16
- 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/CertificateHelper.d.ts +0 -0
- package/lib/models/CertificateHelper.js +0 -152
- package/lib/models/CertificateHelperFactory.js +0 -12
- 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/PlexoSdkSettings.d.ts +0 -8
- package/lib/models/PlexoSdkSettings.js +0 -14
- 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/Settings.d.ts +0 -11
- package/lib/models/Settings.js +0 -19
- 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
- /package/lib/{IPaymentGatewayClient.js → sdk/models/TransactionsCSV.js} +0 -0
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __extends = (this && this.__extends) || (function () {
|
|
3
|
-
var extendStatics = function (d, b) {
|
|
4
|
-
extendStatics = Object.setPrototypeOf ||
|
|
5
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
-
return extendStatics(d, b);
|
|
8
|
-
};
|
|
9
|
-
return function (d, b) {
|
|
10
|
-
if (typeof b !== "function" && b !== null)
|
|
11
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
-
extendStatics(d, b);
|
|
13
|
-
function __() { this.constructor = d; }
|
|
14
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
-
};
|
|
16
|
-
})();
|
|
17
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.ReserveRequest = void 0;
|
|
19
|
-
var PaymentRequest_1 = require("./PaymentRequest");
|
|
20
|
-
var ReserveRequest = /** @class */ (function (_super) {
|
|
21
|
-
__extends(ReserveRequest, _super);
|
|
22
|
-
function ReserveRequest(expirationUTC, clientReferenceId, paymentInstrumentInput, items, currencyId, installments, financialInclusion) {
|
|
23
|
-
var _this = _super.call(this, clientReferenceId, paymentInstrumentInput, items, currencyId, installments, financialInclusion) || this;
|
|
24
|
-
_this.expirationUTC = expirationUTC;
|
|
25
|
-
return _this;
|
|
26
|
-
}
|
|
27
|
-
return ReserveRequest;
|
|
28
|
-
}(PaymentRequest_1.PaymentRequest));
|
|
29
|
-
exports.ReserveRequest = ReserveRequest;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
export declare enum ResultCodes {
|
|
2
|
-
Ok = 0,
|
|
3
|
-
ArgumentError = 1,
|
|
4
|
-
InvalidSession = 2,
|
|
5
|
-
SessionExpired = 3,
|
|
6
|
-
TokenExpired = 4,
|
|
7
|
-
MissingPaymentInstrument = 5,
|
|
8
|
-
DuplicateTransaction = 6,
|
|
9
|
-
SystemError = 7,
|
|
10
|
-
ClientServerError = 8,
|
|
11
|
-
DisabledCard = 9,
|
|
12
|
-
ExpiredCard = 10,
|
|
13
|
-
NotFound = 11,
|
|
14
|
-
InvalidFingerprint = 12,
|
|
15
|
-
InvalidSignature = 13,
|
|
16
|
-
MessageExpired = 14,
|
|
17
|
-
InvalidPaymentInstrument = 15,
|
|
18
|
-
CurrencyNotSupportedByInstrument = 16,
|
|
19
|
-
IssuerNotAssociatedWithClientOrIssuerInactive = 17,
|
|
20
|
-
InvalidCurrency = 18,
|
|
21
|
-
InvalidCard = 19,
|
|
22
|
-
ExternalLimitedCard = 20,
|
|
23
|
-
Forbidden = 21,
|
|
24
|
-
InvalidVerification = 22,
|
|
25
|
-
RequiresSessionExtendedAmount = 23,
|
|
26
|
-
RequiresClientExtendedAmount = 24,
|
|
27
|
-
AlreadyExists = 25,
|
|
28
|
-
MissingFields = 26,
|
|
29
|
-
CodeExpired = 27
|
|
30
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ResultCodes = void 0;
|
|
4
|
-
var ResultCodes;
|
|
5
|
-
(function (ResultCodes) {
|
|
6
|
-
ResultCodes[ResultCodes["Ok"] = 0] = "Ok";
|
|
7
|
-
ResultCodes[ResultCodes["ArgumentError"] = 1] = "ArgumentError";
|
|
8
|
-
ResultCodes[ResultCodes["InvalidSession"] = 2] = "InvalidSession";
|
|
9
|
-
ResultCodes[ResultCodes["SessionExpired"] = 3] = "SessionExpired";
|
|
10
|
-
ResultCodes[ResultCodes["TokenExpired"] = 4] = "TokenExpired";
|
|
11
|
-
ResultCodes[ResultCodes["MissingPaymentInstrument"] = 5] = "MissingPaymentInstrument";
|
|
12
|
-
ResultCodes[ResultCodes["DuplicateTransaction"] = 6] = "DuplicateTransaction";
|
|
13
|
-
ResultCodes[ResultCodes["SystemError"] = 7] = "SystemError";
|
|
14
|
-
ResultCodes[ResultCodes["ClientServerError"] = 8] = "ClientServerError";
|
|
15
|
-
ResultCodes[ResultCodes["DisabledCard"] = 9] = "DisabledCard";
|
|
16
|
-
ResultCodes[ResultCodes["ExpiredCard"] = 10] = "ExpiredCard";
|
|
17
|
-
ResultCodes[ResultCodes["NotFound"] = 11] = "NotFound";
|
|
18
|
-
ResultCodes[ResultCodes["InvalidFingerprint"] = 12] = "InvalidFingerprint";
|
|
19
|
-
ResultCodes[ResultCodes["InvalidSignature"] = 13] = "InvalidSignature";
|
|
20
|
-
ResultCodes[ResultCodes["MessageExpired"] = 14] = "MessageExpired";
|
|
21
|
-
ResultCodes[ResultCodes["InvalidPaymentInstrument"] = 15] = "InvalidPaymentInstrument";
|
|
22
|
-
ResultCodes[ResultCodes["CurrencyNotSupportedByInstrument"] = 16] = "CurrencyNotSupportedByInstrument";
|
|
23
|
-
ResultCodes[ResultCodes["IssuerNotAssociatedWithClientOrIssuerInactive"] = 17] = "IssuerNotAssociatedWithClientOrIssuerInactive";
|
|
24
|
-
ResultCodes[ResultCodes["InvalidCurrency"] = 18] = "InvalidCurrency";
|
|
25
|
-
ResultCodes[ResultCodes["InvalidCard"] = 19] = "InvalidCard";
|
|
26
|
-
ResultCodes[ResultCodes["ExternalLimitedCard"] = 20] = "ExternalLimitedCard";
|
|
27
|
-
ResultCodes[ResultCodes["Forbidden"] = 21] = "Forbidden";
|
|
28
|
-
ResultCodes[ResultCodes["InvalidVerification"] = 22] = "InvalidVerification";
|
|
29
|
-
ResultCodes[ResultCodes["RequiresSessionExtendedAmount"] = 23] = "RequiresSessionExtendedAmount";
|
|
30
|
-
ResultCodes[ResultCodes["RequiresClientExtendedAmount"] = 24] = "RequiresClientExtendedAmount";
|
|
31
|
-
ResultCodes[ResultCodes["AlreadyExists"] = 25] = "AlreadyExists";
|
|
32
|
-
ResultCodes[ResultCodes["MissingFields"] = 26] = "MissingFields";
|
|
33
|
-
ResultCodes[ResultCodes["CodeExpired"] = 27] = "CodeExpired";
|
|
34
|
-
// To Be Completed
|
|
35
|
-
})(ResultCodes = exports.ResultCodes || (exports.ResultCodes = {}));
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __extends = (this && this.__extends) || (function () {
|
|
3
|
-
var extendStatics = function (d, b) {
|
|
4
|
-
extendStatics = Object.setPrototypeOf ||
|
|
5
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
-
return extendStatics(d, b);
|
|
8
|
-
};
|
|
9
|
-
return function (d, b) {
|
|
10
|
-
if (typeof b !== "function" && b !== null)
|
|
11
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
-
extendStatics(d, b);
|
|
13
|
-
function __() { this.constructor = d; }
|
|
14
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
-
};
|
|
16
|
-
})();
|
|
17
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.ServerResponse = void 0;
|
|
19
|
-
var BaseServerResponse_1 = require("./BaseServerResponse");
|
|
20
|
-
var ServerResponse = /** @class */ (function (_super) {
|
|
21
|
-
__extends(ServerResponse, _super);
|
|
22
|
-
function ServerResponse(response, resultCode) {
|
|
23
|
-
var _this = _super.call(this, resultCode) || this;
|
|
24
|
-
_this.response = response;
|
|
25
|
-
return _this;
|
|
26
|
-
}
|
|
27
|
-
return ServerResponse;
|
|
28
|
-
}(BaseServerResponse_1.BaseServerResponse));
|
|
29
|
-
exports.ServerResponse = ServerResponse;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __extends = (this && this.__extends) || (function () {
|
|
3
|
-
var extendStatics = function (d, b) {
|
|
4
|
-
extendStatics = Object.setPrototypeOf ||
|
|
5
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
-
return extendStatics(d, b);
|
|
8
|
-
};
|
|
9
|
-
return function (d, b) {
|
|
10
|
-
if (typeof b !== "function" && b !== null)
|
|
11
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
-
extendStatics(d, b);
|
|
13
|
-
function __() { this.constructor = d; }
|
|
14
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
-
};
|
|
16
|
-
})();
|
|
17
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.ServerSignedCallback = void 0;
|
|
19
|
-
var GenericSignedObject_1 = require("./GenericSignedObject");
|
|
20
|
-
var ServerSignedCallback = /** @class */ (function (_super) {
|
|
21
|
-
__extends(ServerSignedCallback, _super);
|
|
22
|
-
function ServerSignedCallback() {
|
|
23
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
24
|
-
}
|
|
25
|
-
return ServerSignedCallback;
|
|
26
|
-
}(GenericSignedObject_1.GenericSignedObject));
|
|
27
|
-
exports.ServerSignedCallback = ServerSignedCallback;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __extends = (this && this.__extends) || (function () {
|
|
3
|
-
var extendStatics = function (d, b) {
|
|
4
|
-
extendStatics = Object.setPrototypeOf ||
|
|
5
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
-
return extendStatics(d, b);
|
|
8
|
-
};
|
|
9
|
-
return function (d, b) {
|
|
10
|
-
if (typeof b !== "function" && b !== null)
|
|
11
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
-
extendStatics(d, b);
|
|
13
|
-
function __() { this.constructor = d; }
|
|
14
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
-
};
|
|
16
|
-
})();
|
|
17
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.ServerSignedRequest = void 0;
|
|
19
|
-
var GenericSignedObject_1 = require("./GenericSignedObject");
|
|
20
|
-
var ServerSignedRequest = /** @class */ (function (_super) {
|
|
21
|
-
__extends(ServerSignedRequest, _super);
|
|
22
|
-
function ServerSignedRequest() {
|
|
23
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
24
|
-
}
|
|
25
|
-
return ServerSignedRequest;
|
|
26
|
-
}(GenericSignedObject_1.GenericSignedObject));
|
|
27
|
-
exports.ServerSignedRequest = ServerSignedRequest;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __extends = (this && this.__extends) || (function () {
|
|
3
|
-
var extendStatics = function (d, b) {
|
|
4
|
-
extendStatics = Object.setPrototypeOf ||
|
|
5
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
-
return extendStatics(d, b);
|
|
8
|
-
};
|
|
9
|
-
return function (d, b) {
|
|
10
|
-
if (typeof b !== "function" && b !== null)
|
|
11
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
-
extendStatics(d, b);
|
|
13
|
-
function __() { this.constructor = d; }
|
|
14
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
-
};
|
|
16
|
-
})();
|
|
17
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.ServerSignedResponse = void 0;
|
|
19
|
-
var GenericSignedObject_1 = require("./GenericSignedObject");
|
|
20
|
-
var ServerSignedResponse = /** @class */ (function (_super) {
|
|
21
|
-
__extends(ServerSignedResponse, _super);
|
|
22
|
-
function ServerSignedResponse() {
|
|
23
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
24
|
-
}
|
|
25
|
-
return ServerSignedResponse;
|
|
26
|
-
}(GenericSignedObject_1.GenericSignedObject));
|
|
27
|
-
exports.ServerSignedResponse = ServerSignedResponse;
|
package/lib/models/Session.d.ts
DELETED
package/lib/models/Session.js
DELETED
package/lib/models/Settings.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { PlexoSdkSettings } from '../models/PlexoSdkSettings';
|
|
2
|
-
export { PlexoSdkSettings } from '../models/PlexoSdkSettings';
|
|
3
|
-
export declare class Settings {
|
|
4
|
-
static GatewayUrl: string;
|
|
5
|
-
static ClientName: string;
|
|
6
|
-
static CertificateName: string;
|
|
7
|
-
static CertificatePassword: string;
|
|
8
|
-
static CertificatePath: string;
|
|
9
|
-
constructor(optionsAccessor: PlexoSdkSettings);
|
|
10
|
-
FormatGatewayUrl(url: string): string;
|
|
11
|
-
}
|
package/lib/models/Settings.js
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Settings = exports.PlexoSdkSettings = void 0;
|
|
4
|
-
var PlexoSdkSettings_1 = require("../models/PlexoSdkSettings");
|
|
5
|
-
Object.defineProperty(exports, "PlexoSdkSettings", { enumerable: true, get: function () { return PlexoSdkSettings_1.PlexoSdkSettings; } });
|
|
6
|
-
var Settings = /** @class */ (function () {
|
|
7
|
-
function Settings(optionsAccessor) {
|
|
8
|
-
Settings.GatewayUrl = this.FormatGatewayUrl(optionsAccessor.GatewayUrl);
|
|
9
|
-
Settings.ClientName = optionsAccessor.ClientName;
|
|
10
|
-
Settings.CertificateName = optionsAccessor.CertificateName;
|
|
11
|
-
Settings.CertificatePassword = optionsAccessor.CertificatePassword;
|
|
12
|
-
Settings.CertificatePath = optionsAccessor.CertificatePath;
|
|
13
|
-
}
|
|
14
|
-
Settings.prototype.FormatGatewayUrl = function (url) {
|
|
15
|
-
return url[url.length - 1] == '/' ? url : url + '/';
|
|
16
|
-
};
|
|
17
|
-
return Settings;
|
|
18
|
-
}());
|
|
19
|
-
exports.Settings = Settings;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SignedObject = void 0;
|
|
4
|
-
var SignedObject = /** @class */ (function () {
|
|
5
|
-
function SignedObject(object, signature) {
|
|
6
|
-
this.object = object;
|
|
7
|
-
this.signature = signature;
|
|
8
|
-
}
|
|
9
|
-
return SignedObject;
|
|
10
|
-
}());
|
|
11
|
-
exports.SignedObject = SignedObject;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.StateObject = void 0;
|
|
4
|
-
var StateObject = /** @class */ (function () {
|
|
5
|
-
function StateObject(fingerprint, utcUnixTimeExpiration) {
|
|
6
|
-
this.fingerprint = fingerprint;
|
|
7
|
-
this.utcUnixTimeExpiration = utcUnixTimeExpiration;
|
|
8
|
-
}
|
|
9
|
-
return StateObject;
|
|
10
|
-
}());
|
|
11
|
-
exports.StateObject = StateObject;
|
package/lib/models/TimeLimit.js
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TokenizationSettingsDto = void 0;
|
|
4
|
-
var TokenizationSettingsDto = /** @class */ (function () {
|
|
5
|
-
function TokenizationSettingsDto() {
|
|
6
|
-
}
|
|
7
|
-
return TokenizationSettingsDto;
|
|
8
|
-
}());
|
|
9
|
-
exports.TokenizationSettingsDto = TokenizationSettingsDto;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { PaymentCode } from './CodeAction';
|
|
2
|
-
import { Commerce } from './Commerce';
|
|
3
|
-
import { Currency } from './Currency';
|
|
4
|
-
import { FinancialInclusion } from './FinancialInclusion';
|
|
5
|
-
import { IssuerInfo } from './IssuerInfo';
|
|
6
|
-
import { TransactionType } from './TransactionType';
|
|
7
|
-
export declare class Transaction {
|
|
8
|
-
transactionId: string;
|
|
9
|
-
commerce: Commerce;
|
|
10
|
-
instrumentToken: string;
|
|
11
|
-
instrumentName: string;
|
|
12
|
-
issuer: IssuerInfo;
|
|
13
|
-
amount: number;
|
|
14
|
-
installments: number;
|
|
15
|
-
currency: Currency;
|
|
16
|
-
isAnonymous: boolean;
|
|
17
|
-
currentState: TransactionType;
|
|
18
|
-
invoiceNumber: string;
|
|
19
|
-
financialInclusion: FinancialInclusion;
|
|
20
|
-
transactions: any;
|
|
21
|
-
fieldInformation: any;
|
|
22
|
-
isAsyncPayment: boolean;
|
|
23
|
-
paymentCode: PaymentCode;
|
|
24
|
-
utcUnixTimeExpiration: number;
|
|
25
|
-
constructor(transactionId: string, commerce: Commerce, instrumentToken: string, instrumentName: string, issuer: IssuerInfo, amount: number, installments: number, currency: Currency, isAnonymous: boolean, currentState: TransactionType, invoiceNumber: string, financialInclusion: FinancialInclusion, transactions: any, fieldInformation: any, isAsyncPayment: boolean, paymentCode: PaymentCode, utcUnixTimeExpiration: number);
|
|
26
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Transaction = void 0;
|
|
4
|
-
var Transaction = /** @class */ (function () {
|
|
5
|
-
function Transaction(transactionId, commerce, instrumentToken, instrumentName, issuer, amount, installments, currency, isAnonymous, currentState, invoiceNumber, financialInclusion, transactions, fieldInformation, isAsyncPayment, paymentCode, utcUnixTimeExpiration) {
|
|
6
|
-
this.transactionId = transactionId;
|
|
7
|
-
this.commerce = commerce;
|
|
8
|
-
this.instrumentToken = instrumentToken;
|
|
9
|
-
this.instrumentName = instrumentName;
|
|
10
|
-
this.issuer = issuer;
|
|
11
|
-
this.amount = amount;
|
|
12
|
-
this.installments = installments;
|
|
13
|
-
this.currency = currency;
|
|
14
|
-
this.isAnonymous = isAnonymous;
|
|
15
|
-
this.currentState = currentState;
|
|
16
|
-
this.invoiceNumber = invoiceNumber;
|
|
17
|
-
this.financialInclusion = financialInclusion;
|
|
18
|
-
this.transactions = transactions;
|
|
19
|
-
this.fieldInformation = fieldInformation;
|
|
20
|
-
this.isAsyncPayment = isAsyncPayment;
|
|
21
|
-
this.paymentCode = paymentCode;
|
|
22
|
-
this.utcUnixTimeExpiration = utcUnixTimeExpiration;
|
|
23
|
-
}
|
|
24
|
-
return Transaction;
|
|
25
|
-
}());
|
|
26
|
-
exports.Transaction = Transaction;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { Commerce, Currency, FinancialInclusion, IssuerInfo, TransactionType } from '..';
|
|
2
|
-
import { PaymentCode } from './CodeAction';
|
|
3
|
-
import { Transaction } from './Transaction';
|
|
4
|
-
export declare class TransactionCallback extends Transaction {
|
|
5
|
-
client: string;
|
|
6
|
-
constructor(client: string, transactionId: string, commerce: Commerce, instrumentToken: string, instrumentName: string, issuer: IssuerInfo, amount: number, installments: number, currency: Currency, isAnonymous: boolean, currentState: TransactionType, invoiceNumber: string, financialInclusion: FinancialInclusion, transactions: any, fieldInformation: any, isAsyncPayment: boolean, paymentCode: PaymentCode, utcUnixTimeExpiration: number);
|
|
7
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __extends = (this && this.__extends) || (function () {
|
|
3
|
-
var extendStatics = function (d, b) {
|
|
4
|
-
extendStatics = Object.setPrototypeOf ||
|
|
5
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
-
return extendStatics(d, b);
|
|
8
|
-
};
|
|
9
|
-
return function (d, b) {
|
|
10
|
-
if (typeof b !== "function" && b !== null)
|
|
11
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
-
extendStatics(d, b);
|
|
13
|
-
function __() { this.constructor = d; }
|
|
14
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
-
};
|
|
16
|
-
})();
|
|
17
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.TransactionCallback = void 0;
|
|
19
|
-
var Transaction_1 = require("./Transaction");
|
|
20
|
-
var TransactionCallback = /** @class */ (function (_super) {
|
|
21
|
-
__extends(TransactionCallback, _super);
|
|
22
|
-
function TransactionCallback(client, transactionId, commerce, instrumentToken, instrumentName, issuer, amount, installments, currency, isAnonymous, currentState, invoiceNumber, financialInclusion, transactions, fieldInformation, isAsyncPayment, paymentCode, utcUnixTimeExpiration) {
|
|
23
|
-
var _this = _super.call(this, transactionId, commerce, instrumentToken, instrumentName, issuer, amount, installments, currency, isAnonymous, currentState, invoiceNumber, financialInclusion, transactions, fieldInformation, isAsyncPayment, paymentCode, utcUnixTimeExpiration) || this;
|
|
24
|
-
_this.client = client;
|
|
25
|
-
return _this;
|
|
26
|
-
}
|
|
27
|
-
return TransactionCallback;
|
|
28
|
-
}(Transaction_1.Transaction));
|
|
29
|
-
exports.TransactionCallback = TransactionCallback;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { TransactionResult } from './TransactionResult';
|
|
2
|
-
export declare type TransactionInfo = {
|
|
3
|
-
clientReferenceId: string;
|
|
4
|
-
clientMetadata: string;
|
|
5
|
-
status: TransactionResult;
|
|
6
|
-
transactionCode: number;
|
|
7
|
-
transactionResultText: string;
|
|
8
|
-
executionDateUTC: number;
|
|
9
|
-
authorization: string;
|
|
10
|
-
ticket: string;
|
|
11
|
-
expirationUTC?: number;
|
|
12
|
-
};
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { TransactionOrder } from './TransactionOrder';
|
|
2
|
-
export declare type TransactionQuery = {
|
|
3
|
-
queries: Query[];
|
|
4
|
-
order: TransactionOrder[];
|
|
5
|
-
limit: number;
|
|
6
|
-
skip: number;
|
|
7
|
-
};
|
|
8
|
-
export declare enum TransactionOrderDirection {
|
|
9
|
-
Asc = 0,
|
|
10
|
-
Desc = 1
|
|
11
|
-
}
|
|
12
|
-
export declare enum QueryOperation {
|
|
13
|
-
And = 0,
|
|
14
|
-
Or = 1,
|
|
15
|
-
None = 2
|
|
16
|
-
}
|
|
17
|
-
export declare type Query = {
|
|
18
|
-
queryOperator: QueryOperation;
|
|
19
|
-
field: TransactionField;
|
|
20
|
-
operator: TransactionOperator;
|
|
21
|
-
value: string;
|
|
22
|
-
subQueries: Query[];
|
|
23
|
-
};
|
|
24
|
-
export declare enum TransactionOperator {
|
|
25
|
-
Equal = 0,
|
|
26
|
-
NotEqual = 1,
|
|
27
|
-
BiggerThan = 2,
|
|
28
|
-
BiggerOrEqualThan = 3,
|
|
29
|
-
SmallerThan = 4,
|
|
30
|
-
SmallerOrEqualThen = 5,
|
|
31
|
-
Contains = 6,
|
|
32
|
-
NotContains = 7
|
|
33
|
-
}
|
|
34
|
-
export declare enum TransactionField {
|
|
35
|
-
CreationDate = 0,
|
|
36
|
-
TransactionState = 1,
|
|
37
|
-
PurchaseStatus = 2,
|
|
38
|
-
CancelStatus = 3,
|
|
39
|
-
ReserveStatus = 4,
|
|
40
|
-
TransactionId = 5,
|
|
41
|
-
IssuerId = 6,
|
|
42
|
-
BankId = 7,
|
|
43
|
-
CommerceId = 8,
|
|
44
|
-
PurchaseExternalId = 9,
|
|
45
|
-
CancelExternalId = 10,
|
|
46
|
-
ReserveExternalId = 11,
|
|
47
|
-
PurchaseAuthorization = 12,
|
|
48
|
-
CancelAuthorization = 13,
|
|
49
|
-
ReserveAuthorization = 14,
|
|
50
|
-
PurchaseMetadata = 15,
|
|
51
|
-
CancelMetadata = 16,
|
|
52
|
-
ReserveMetadata = 17,
|
|
53
|
-
Metadata = 18
|
|
54
|
-
}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TransactionField = exports.TransactionOperator = exports.QueryOperation = exports.TransactionOrderDirection = void 0;
|
|
4
|
-
var TransactionOrderDirection;
|
|
5
|
-
(function (TransactionOrderDirection) {
|
|
6
|
-
TransactionOrderDirection[TransactionOrderDirection["Asc"] = 0] = "Asc";
|
|
7
|
-
TransactionOrderDirection[TransactionOrderDirection["Desc"] = 1] = "Desc";
|
|
8
|
-
})(TransactionOrderDirection = exports.TransactionOrderDirection || (exports.TransactionOrderDirection = {}));
|
|
9
|
-
var QueryOperation;
|
|
10
|
-
(function (QueryOperation) {
|
|
11
|
-
QueryOperation[QueryOperation["And"] = 0] = "And";
|
|
12
|
-
QueryOperation[QueryOperation["Or"] = 1] = "Or";
|
|
13
|
-
QueryOperation[QueryOperation["None"] = 2] = "None";
|
|
14
|
-
})(QueryOperation = exports.QueryOperation || (exports.QueryOperation = {}));
|
|
15
|
-
var TransactionOperator;
|
|
16
|
-
(function (TransactionOperator) {
|
|
17
|
-
TransactionOperator[TransactionOperator["Equal"] = 0] = "Equal";
|
|
18
|
-
TransactionOperator[TransactionOperator["NotEqual"] = 1] = "NotEqual";
|
|
19
|
-
TransactionOperator[TransactionOperator["BiggerThan"] = 2] = "BiggerThan";
|
|
20
|
-
TransactionOperator[TransactionOperator["BiggerOrEqualThan"] = 3] = "BiggerOrEqualThan";
|
|
21
|
-
TransactionOperator[TransactionOperator["SmallerThan"] = 4] = "SmallerThan";
|
|
22
|
-
TransactionOperator[TransactionOperator["SmallerOrEqualThen"] = 5] = "SmallerOrEqualThen";
|
|
23
|
-
TransactionOperator[TransactionOperator["Contains"] = 6] = "Contains";
|
|
24
|
-
TransactionOperator[TransactionOperator["NotContains"] = 7] = "NotContains";
|
|
25
|
-
})(TransactionOperator = exports.TransactionOperator || (exports.TransactionOperator = {}));
|
|
26
|
-
var TransactionField;
|
|
27
|
-
(function (TransactionField) {
|
|
28
|
-
TransactionField[TransactionField["CreationDate"] = 0] = "CreationDate";
|
|
29
|
-
TransactionField[TransactionField["TransactionState"] = 1] = "TransactionState";
|
|
30
|
-
TransactionField[TransactionField["PurchaseStatus"] = 2] = "PurchaseStatus";
|
|
31
|
-
TransactionField[TransactionField["CancelStatus"] = 3] = "CancelStatus";
|
|
32
|
-
TransactionField[TransactionField["ReserveStatus"] = 4] = "ReserveStatus";
|
|
33
|
-
TransactionField[TransactionField["TransactionId"] = 5] = "TransactionId";
|
|
34
|
-
TransactionField[TransactionField["IssuerId"] = 6] = "IssuerId";
|
|
35
|
-
TransactionField[TransactionField["BankId"] = 7] = "BankId";
|
|
36
|
-
TransactionField[TransactionField["CommerceId"] = 8] = "CommerceId";
|
|
37
|
-
TransactionField[TransactionField["PurchaseExternalId"] = 9] = "PurchaseExternalId";
|
|
38
|
-
TransactionField[TransactionField["CancelExternalId"] = 10] = "CancelExternalId";
|
|
39
|
-
TransactionField[TransactionField["ReserveExternalId"] = 11] = "ReserveExternalId";
|
|
40
|
-
TransactionField[TransactionField["PurchaseAuthorization"] = 12] = "PurchaseAuthorization";
|
|
41
|
-
TransactionField[TransactionField["CancelAuthorization"] = 13] = "CancelAuthorization";
|
|
42
|
-
TransactionField[TransactionField["ReserveAuthorization"] = 14] = "ReserveAuthorization";
|
|
43
|
-
TransactionField[TransactionField["PurchaseMetadata"] = 15] = "PurchaseMetadata";
|
|
44
|
-
TransactionField[TransactionField["CancelMetadata"] = 16] = "CancelMetadata";
|
|
45
|
-
TransactionField[TransactionField["ReserveMetadata"] = 17] = "ReserveMetadata";
|
|
46
|
-
TransactionField[TransactionField["Metadata"] = 18] = "Metadata";
|
|
47
|
-
})(TransactionField = exports.TransactionField || (exports.TransactionField = {}));
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export declare enum TransactionResult {
|
|
2
|
-
Ok = 0,
|
|
3
|
-
Started = 1,
|
|
4
|
-
Pending = 2,
|
|
5
|
-
Denied = 10,
|
|
6
|
-
Expired = 20,
|
|
7
|
-
NotProcessed = 21,
|
|
8
|
-
UnableToCancel = 22,
|
|
9
|
-
IssuerOperationNotSupported = 23,
|
|
10
|
-
ExtendedCreditVerificationRequired = 100,
|
|
11
|
-
BadArgument = 998,
|
|
12
|
-
SystemError = 999
|
|
13
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TransactionResult = void 0;
|
|
4
|
-
var TransactionResult;
|
|
5
|
-
(function (TransactionResult) {
|
|
6
|
-
TransactionResult[TransactionResult["Ok"] = 0] = "Ok";
|
|
7
|
-
TransactionResult[TransactionResult["Started"] = 1] = "Started";
|
|
8
|
-
TransactionResult[TransactionResult["Pending"] = 2] = "Pending";
|
|
9
|
-
TransactionResult[TransactionResult["Denied"] = 10] = "Denied";
|
|
10
|
-
TransactionResult[TransactionResult["Expired"] = 20] = "Expired";
|
|
11
|
-
TransactionResult[TransactionResult["NotProcessed"] = 21] = "NotProcessed";
|
|
12
|
-
TransactionResult[TransactionResult["UnableToCancel"] = 22] = "UnableToCancel";
|
|
13
|
-
TransactionResult[TransactionResult["IssuerOperationNotSupported"] = 23] = "IssuerOperationNotSupported";
|
|
14
|
-
TransactionResult[TransactionResult["ExtendedCreditVerificationRequired"] = 100] = "ExtendedCreditVerificationRequired";
|
|
15
|
-
TransactionResult[TransactionResult["BadArgument"] = 998] = "BadArgument";
|
|
16
|
-
TransactionResult[TransactionResult["SystemError"] = 999] = "SystemError";
|
|
17
|
-
})(TransactionResult = exports.TransactionResult || (exports.TransactionResult = {}));
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TransactionType = void 0;
|
|
4
|
-
var TransactionType;
|
|
5
|
-
(function (TransactionType) {
|
|
6
|
-
TransactionType[TransactionType["Reserve"] = 0] = "Reserve";
|
|
7
|
-
TransactionType[TransactionType["Purchase"] = 1] = "Purchase";
|
|
8
|
-
TransactionType[TransactionType["Cancel"] = 2] = "Cancel";
|
|
9
|
-
})(TransactionType = exports.TransactionType || (exports.TransactionType = {}));
|