@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,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.GenericServerSignedResponse = void 0;
|
|
19
|
-
var GenericSignedObject_1 = require("./GenericSignedObject");
|
|
20
|
-
var GenericServerSignedResponse = /** @class */ (function (_super) {
|
|
21
|
-
__extends(GenericServerSignedResponse, _super);
|
|
22
|
-
function GenericServerSignedResponse() {
|
|
23
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
24
|
-
}
|
|
25
|
-
return GenericServerSignedResponse;
|
|
26
|
-
}(GenericSignedObject_1.GenericSignedObject));
|
|
27
|
-
exports.GenericServerSignedResponse = GenericServerSignedResponse;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GenericSignedObject = void 0;
|
|
4
|
-
var GenericSignedObject = /** @class */ (function () {
|
|
5
|
-
function GenericSignedObject(object, signature) {
|
|
6
|
-
this.object = object;
|
|
7
|
-
this.signature = signature;
|
|
8
|
-
}
|
|
9
|
-
return GenericSignedObject;
|
|
10
|
-
}());
|
|
11
|
-
exports.GenericSignedObject = GenericSignedObject;
|
|
@@ -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.GenericStateObject = void 0;
|
|
19
|
-
var StateObject_1 = require("./StateObject");
|
|
20
|
-
var GenericStateObject = /** @class */ (function (_super) {
|
|
21
|
-
__extends(GenericStateObject, _super);
|
|
22
|
-
function GenericStateObject(object, fingerprint, utcUnixTimeExpiration) {
|
|
23
|
-
var _this = _super.call(this, fingerprint, utcUnixTimeExpiration) || this;
|
|
24
|
-
_this.object = object;
|
|
25
|
-
return _this;
|
|
26
|
-
}
|
|
27
|
-
return GenericStateObject;
|
|
28
|
-
}(StateObject_1.StateObject));
|
|
29
|
-
exports.GenericStateObject = GenericStateObject;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.IdentificationType = void 0;
|
|
4
|
-
var IdentificationType;
|
|
5
|
-
(function (IdentificationType) {
|
|
6
|
-
IdentificationType[IdentificationType["Identification"] = 0] = "Identification";
|
|
7
|
-
IdentificationType[IdentificationType["Passport"] = 1] = "Passport";
|
|
8
|
-
IdentificationType[IdentificationType["Others"] = 2] = "Others";
|
|
9
|
-
IdentificationType[IdentificationType["RUT"] = 3] = "RUT";
|
|
10
|
-
})(IdentificationType = exports.IdentificationType || (exports.IdentificationType = {}));
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.InclusionType = void 0;
|
|
4
|
-
var InclusionType;
|
|
5
|
-
(function (InclusionType) {
|
|
6
|
-
InclusionType[InclusionType["None"] = 0] = "None";
|
|
7
|
-
InclusionType[InclusionType["Law17934"] = 1] = "Law17934";
|
|
8
|
-
InclusionType[InclusionType["Law19210"] = 6] = "Law19210";
|
|
9
|
-
})(InclusionType = exports.InclusionType || (exports.InclusionType = {}));
|
package/lib/models/IndexSDK.d.ts
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
export { Authorization } from './Authorization';
|
|
2
|
-
export { AuthorizationInfo } from './AuthorizationInfo';
|
|
3
|
-
export { CancelRequest } from './CancelRequest';
|
|
4
|
-
export { ClientSignedResponse } from './ClientSignedResponse';
|
|
5
|
-
export { CodeRequest } from './CodeRequest';
|
|
6
|
-
export { Commerce } from './Commerce';
|
|
7
|
-
export { CommerceIdRequest } from './CommerceIdRequest';
|
|
8
|
-
export { CommerceIssuerIdRequest } from './CommerceIssuerIdRequest';
|
|
9
|
-
export { CommerceModifyRequest } from './CommerceModifyRequest';
|
|
10
|
-
export { CommerceRequest } from './CommerceRequest';
|
|
11
|
-
export { CreateBankInstrumentRequest } from './CreateBankInstrumentRequest';
|
|
12
|
-
export { DeleteInstrumentRequest } from './DeleteInstrumentRequest';
|
|
13
|
-
export { ExpressCheckoutRequest } from './ExpressCheckoutRequest';
|
|
14
|
-
export { InstrumentCallback } from './InstrumentCallback';
|
|
15
|
-
export { IssuerData } from './IssuerData';
|
|
16
|
-
export { IssuerInfo } from './IssuerInfo';
|
|
17
|
-
export { PaymentInstrument } from './PaymentInstrument';
|
|
18
|
-
export { Reference } from './Reference';
|
|
19
|
-
export { Reserve } from './Reserve';
|
|
20
|
-
export { ReserveRequest } from './ReserveRequest';
|
|
21
|
-
export { ServerResponse } from './ServerResponse';
|
|
22
|
-
export { BaseServerResponse } from './BaseServerResponse';
|
|
23
|
-
export { ServerSignedCallback } from './ServerSignedCallback';
|
|
24
|
-
export { Session } from './Session';
|
|
25
|
-
export { Transaction } from './Transaction';
|
|
26
|
-
export { TransactionCallback } from './TransactionCallback';
|
|
27
|
-
export { TransactionCursor } from './TransactionCursor';
|
|
28
|
-
export { TransactionQuery } from './TransactionQuery';
|
|
29
|
-
export { PaymentRequest } from './PaymentRequest';
|
|
30
|
-
export { TransactionResult } from './TransactionResult';
|
|
31
|
-
export { TransactionType } from './TransactionType';
|
|
32
|
-
export { ResultCodes } from './ResultCodes';
|
|
33
|
-
export { IPaymentGatewayClient } from '../IPaymentGatewayClient';
|
package/lib/models/IndexSDK.js
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ResultCodes = exports.TransactionType = exports.TransactionResult = exports.PaymentRequest = exports.TransactionCallback = exports.Transaction = exports.ServerSignedCallback = exports.BaseServerResponse = exports.ServerResponse = exports.ReserveRequest = exports.Reserve = exports.Reference = exports.InstrumentCallback = exports.DeleteInstrumentRequest = exports.ClientSignedResponse = exports.CancelRequest = exports.AuthorizationInfo = exports.Authorization = void 0;
|
|
4
|
-
var Authorization_1 = require("./Authorization");
|
|
5
|
-
Object.defineProperty(exports, "Authorization", { enumerable: true, get: function () { return Authorization_1.Authorization; } });
|
|
6
|
-
var AuthorizationInfo_1 = require("./AuthorizationInfo");
|
|
7
|
-
Object.defineProperty(exports, "AuthorizationInfo", { enumerable: true, get: function () { return AuthorizationInfo_1.AuthorizationInfo; } });
|
|
8
|
-
var CancelRequest_1 = require("./CancelRequest");
|
|
9
|
-
Object.defineProperty(exports, "CancelRequest", { enumerable: true, get: function () { return CancelRequest_1.CancelRequest; } });
|
|
10
|
-
var ClientSignedResponse_1 = require("./ClientSignedResponse");
|
|
11
|
-
Object.defineProperty(exports, "ClientSignedResponse", { enumerable: true, get: function () { return ClientSignedResponse_1.ClientSignedResponse; } });
|
|
12
|
-
var DeleteInstrumentRequest_1 = require("./DeleteInstrumentRequest");
|
|
13
|
-
Object.defineProperty(exports, "DeleteInstrumentRequest", { enumerable: true, get: function () { return DeleteInstrumentRequest_1.DeleteInstrumentRequest; } });
|
|
14
|
-
var InstrumentCallback_1 = require("./InstrumentCallback");
|
|
15
|
-
Object.defineProperty(exports, "InstrumentCallback", { enumerable: true, get: function () { return InstrumentCallback_1.InstrumentCallback; } });
|
|
16
|
-
var Reference_1 = require("./Reference");
|
|
17
|
-
Object.defineProperty(exports, "Reference", { enumerable: true, get: function () { return Reference_1.Reference; } });
|
|
18
|
-
var Reserve_1 = require("./Reserve");
|
|
19
|
-
Object.defineProperty(exports, "Reserve", { enumerable: true, get: function () { return Reserve_1.Reserve; } });
|
|
20
|
-
var ReserveRequest_1 = require("./ReserveRequest");
|
|
21
|
-
Object.defineProperty(exports, "ReserveRequest", { enumerable: true, get: function () { return ReserveRequest_1.ReserveRequest; } });
|
|
22
|
-
var ServerResponse_1 = require("./ServerResponse");
|
|
23
|
-
Object.defineProperty(exports, "ServerResponse", { enumerable: true, get: function () { return ServerResponse_1.ServerResponse; } });
|
|
24
|
-
var BaseServerResponse_1 = require("./BaseServerResponse");
|
|
25
|
-
Object.defineProperty(exports, "BaseServerResponse", { enumerable: true, get: function () { return BaseServerResponse_1.BaseServerResponse; } });
|
|
26
|
-
var ServerSignedCallback_1 = require("./ServerSignedCallback");
|
|
27
|
-
Object.defineProperty(exports, "ServerSignedCallback", { enumerable: true, get: function () { return ServerSignedCallback_1.ServerSignedCallback; } });
|
|
28
|
-
var Transaction_1 = require("./Transaction");
|
|
29
|
-
Object.defineProperty(exports, "Transaction", { enumerable: true, get: function () { return Transaction_1.Transaction; } });
|
|
30
|
-
var TransactionCallback_1 = require("./TransactionCallback");
|
|
31
|
-
Object.defineProperty(exports, "TransactionCallback", { enumerable: true, get: function () { return TransactionCallback_1.TransactionCallback; } });
|
|
32
|
-
var PaymentRequest_1 = require("./PaymentRequest");
|
|
33
|
-
Object.defineProperty(exports, "PaymentRequest", { enumerable: true, get: function () { return PaymentRequest_1.PaymentRequest; } });
|
|
34
|
-
var TransactionResult_1 = require("./TransactionResult");
|
|
35
|
-
Object.defineProperty(exports, "TransactionResult", { enumerable: true, get: function () { return TransactionResult_1.TransactionResult; } });
|
|
36
|
-
var TransactionType_1 = require("./TransactionType");
|
|
37
|
-
Object.defineProperty(exports, "TransactionType", { enumerable: true, get: function () { return TransactionType_1.TransactionType; } });
|
|
38
|
-
var ResultCodes_1 = require("./ResultCodes");
|
|
39
|
-
Object.defineProperty(exports, "ResultCodes", { enumerable: true, get: function () { return ResultCodes_1.ResultCodes; } });
|
package/lib/models/InfoLine.d.ts
DELETED
package/lib/models/InfoLine.js
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { PaymentInstrument } from '..';
|
|
2
|
-
import { ActionType } from './ActionType';
|
|
3
|
-
import { InstrumentWithMetadata } from './InstrumentWithMetadata';
|
|
4
|
-
export declare class InstrumentCallback extends InstrumentWithMetadata {
|
|
5
|
-
sessionId: string;
|
|
6
|
-
client: string;
|
|
7
|
-
action: ActionType;
|
|
8
|
-
constructor(sessionId: string, client: string, action: ActionType, paymentInstrument: PaymentInstrument, optionalMetadata: string);
|
|
9
|
-
}
|
|
@@ -1,31 +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.InstrumentCallback = void 0;
|
|
19
|
-
var InstrumentWithMetadata_1 = require("./InstrumentWithMetadata");
|
|
20
|
-
var InstrumentCallback = /** @class */ (function (_super) {
|
|
21
|
-
__extends(InstrumentCallback, _super);
|
|
22
|
-
function InstrumentCallback(sessionId, client, action, paymentInstrument, optionalMetadata) {
|
|
23
|
-
var _this = _super.call(this, paymentInstrument, optionalMetadata) || this;
|
|
24
|
-
_this.sessionId = sessionId;
|
|
25
|
-
_this.client = client;
|
|
26
|
-
_this.action = action;
|
|
27
|
-
return _this;
|
|
28
|
-
}
|
|
29
|
-
return InstrumentCallback;
|
|
30
|
-
}(InstrumentWithMetadata_1.InstrumentWithMetadata));
|
|
31
|
-
exports.InstrumentCallback = InstrumentCallback;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.InstrumentWithMetadata = void 0;
|
|
4
|
-
var InstrumentWithMetadata = /** @class */ (function () {
|
|
5
|
-
function InstrumentWithMetadata(paymentInstrument, optionalMetadata) {
|
|
6
|
-
this.paymentInstrument = paymentInstrument;
|
|
7
|
-
this.optionalMetadata = optionalMetadata;
|
|
8
|
-
}
|
|
9
|
-
return InstrumentWithMetadata;
|
|
10
|
-
}());
|
|
11
|
-
exports.InstrumentWithMetadata = InstrumentWithMetadata;
|
package/lib/models/IssuerData.js
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { FieldInfo } from './FieldInfo';
|
|
2
|
-
export declare type IssuerInfo = {
|
|
3
|
-
id: string;
|
|
4
|
-
issuerId: number;
|
|
5
|
-
variationId: number;
|
|
6
|
-
issuer: string;
|
|
7
|
-
bank: string;
|
|
8
|
-
variation: string;
|
|
9
|
-
imageUrl: string;
|
|
10
|
-
mayHaveAsyncPayments: boolean;
|
|
11
|
-
supportsReserve: boolean;
|
|
12
|
-
mayHavePaymentsLimits: boolean;
|
|
13
|
-
fields: FieldInfo[];
|
|
14
|
-
};
|
package/lib/models/IssuerInfo.js
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.IssuerProcessor = void 0;
|
|
4
|
-
var IssuerProcessor = /** @class */ (function () {
|
|
5
|
-
function IssuerProcessor(IssuerId, Name, PaymentProcessors) {
|
|
6
|
-
this.IssuerId = IssuerId;
|
|
7
|
-
this.Name = Name;
|
|
8
|
-
this.PaymentProcessors = PaymentProcessors;
|
|
9
|
-
}
|
|
10
|
-
return IssuerProcessor;
|
|
11
|
-
}());
|
|
12
|
-
exports.IssuerProcessor = IssuerProcessor;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.IssuerRequest = void 0;
|
|
4
|
-
var IssuerRequest = /** @class */ (function () {
|
|
5
|
-
function IssuerRequest(issuer) {
|
|
6
|
-
this.issuer = issuer;
|
|
7
|
-
}
|
|
8
|
-
return IssuerRequest;
|
|
9
|
-
}());
|
|
10
|
-
exports.IssuerRequest = IssuerRequest;
|
|
@@ -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.IssuerSignedRequest = void 0;
|
|
19
|
-
var GenericSignedObject_1 = require("./GenericSignedObject");
|
|
20
|
-
var IssuerSignedRequest = /** @class */ (function (_super) {
|
|
21
|
-
__extends(IssuerSignedRequest, _super);
|
|
22
|
-
function IssuerSignedRequest() {
|
|
23
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
24
|
-
}
|
|
25
|
-
return IssuerSignedRequest;
|
|
26
|
-
}(GenericSignedObject_1.GenericSignedObject));
|
|
27
|
-
exports.IssuerSignedRequest = IssuerSignedRequest;
|
package/lib/models/Item.d.ts
DELETED
package/lib/models/Item.js
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { AmountLimit } from './AmountLimit';
|
|
2
|
-
import { CardStatus } from './CardStatus';
|
|
3
|
-
import { Currency } from './Currency';
|
|
4
|
-
import { FieldType } from './FieldType';
|
|
5
|
-
import { IssuerInfo } from './IssuerInfo';
|
|
6
|
-
import { TimeLimit } from './TimeLimit';
|
|
7
|
-
import { ESMap } from 'typescript';
|
|
8
|
-
export declare type PaymentInstrument = {
|
|
9
|
-
instrumentToken: string;
|
|
10
|
-
name: string;
|
|
11
|
-
issuer: IssuerInfo;
|
|
12
|
-
supportedCurrencies: Currency[];
|
|
13
|
-
status: CardStatus;
|
|
14
|
-
instrumentExpirationUTC: number;
|
|
15
|
-
anonInstrumentUsageTimeLimit?: number;
|
|
16
|
-
creditLimits: AmountLimit[];
|
|
17
|
-
additionalRequirements: TimeLimit[];
|
|
18
|
-
instrumentInformation: ESMap<FieldType, string>;
|
|
19
|
-
sessionCreationId: string;
|
|
20
|
-
};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { FinancialInclusion } from './FinancialInclusion';
|
|
2
|
-
import { Item } from './Item';
|
|
3
|
-
import { PaymentInstrumentInput } from './PaymentInstrumentInput';
|
|
4
|
-
export declare class PaymentRequest {
|
|
5
|
-
clientReferenceId: string;
|
|
6
|
-
paymentInstrumentInput: PaymentInstrumentInput;
|
|
7
|
-
items: Item[];
|
|
8
|
-
currencyId: number;
|
|
9
|
-
installments: number;
|
|
10
|
-
financialInclusion: FinancialInclusion;
|
|
11
|
-
tipAmount?: number;
|
|
12
|
-
optionalCommerceId?: number;
|
|
13
|
-
optionalMetadata?: string;
|
|
14
|
-
optionalProvidedCode?: string;
|
|
15
|
-
optionalExternalPaymentInfo?: string;
|
|
16
|
-
constructor(clientReferenceId: string, paymentInstrumentInput: PaymentInstrumentInput, items: Item[], currencyId: number, installments: number, financialInclusion: FinancialInclusion, tipAmount?: number, optionalCommerceId?: number, optionalMetadata?: string, optionalProvidedCode?: string, optionalExternalPaymentInfo?: string);
|
|
17
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PaymentRequest = void 0;
|
|
4
|
-
var PaymentRequest = /** @class */ (function () {
|
|
5
|
-
function PaymentRequest(clientReferenceId, paymentInstrumentInput, items, currencyId, installments, financialInclusion, tipAmount, optionalCommerceId, optionalMetadata, optionalProvidedCode, optionalExternalPaymentInfo) {
|
|
6
|
-
this.clientReferenceId = clientReferenceId;
|
|
7
|
-
this.paymentInstrumentInput = paymentInstrumentInput;
|
|
8
|
-
this.items = items;
|
|
9
|
-
this.currencyId = currencyId;
|
|
10
|
-
this.installments = installments;
|
|
11
|
-
this.financialInclusion = financialInclusion;
|
|
12
|
-
this.tipAmount = tipAmount;
|
|
13
|
-
this.optionalCommerceId = optionalCommerceId;
|
|
14
|
-
this.optionalMetadata = optionalMetadata;
|
|
15
|
-
this.optionalProvidedCode = optionalProvidedCode;
|
|
16
|
-
this.optionalExternalPaymentInfo = optionalExternalPaymentInfo;
|
|
17
|
-
}
|
|
18
|
-
return PaymentRequest;
|
|
19
|
-
}());
|
|
20
|
-
exports.PaymentRequest = PaymentRequest;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export declare class PlexoSdkSettings {
|
|
2
|
-
GatewayUrl: string;
|
|
3
|
-
ClientName: string;
|
|
4
|
-
CertificateName: string;
|
|
5
|
-
CertificatePassword: string;
|
|
6
|
-
CertificatePath: string;
|
|
7
|
-
constructor(GatewayUrl: string, ClientName: string, CertificateName: string, CertificatePassword: string, CertificatePath: string);
|
|
8
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PlexoSdkSettings = void 0;
|
|
4
|
-
var PlexoSdkSettings = /** @class */ (function () {
|
|
5
|
-
function PlexoSdkSettings(GatewayUrl, ClientName, CertificateName, CertificatePassword, CertificatePath) {
|
|
6
|
-
this.GatewayUrl = GatewayUrl;
|
|
7
|
-
this.ClientName = ClientName;
|
|
8
|
-
this.CertificateName = CertificateName;
|
|
9
|
-
this.CertificatePassword = CertificatePassword;
|
|
10
|
-
this.CertificatePath = CertificatePath;
|
|
11
|
-
}
|
|
12
|
-
return PlexoSdkSettings;
|
|
13
|
-
}());
|
|
14
|
-
exports.PlexoSdkSettings = PlexoSdkSettings;
|
package/lib/models/Reference.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Reference = void 0;
|
|
4
|
-
var Reference = /** @class */ (function () {
|
|
5
|
-
function Reference(type, metaReference) {
|
|
6
|
-
this.type = type;
|
|
7
|
-
this.metaReference = metaReference;
|
|
8
|
-
}
|
|
9
|
-
return Reference;
|
|
10
|
-
}());
|
|
11
|
-
exports.Reference = Reference;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ReferenceType = void 0;
|
|
4
|
-
var ReferenceType;
|
|
5
|
-
(function (ReferenceType) {
|
|
6
|
-
ReferenceType[ReferenceType["PlexoTransactionId"] = 0] = "PlexoTransactionId";
|
|
7
|
-
ReferenceType[ReferenceType["ClientPurchaseReferenceId"] = 1] = "ClientPurchaseReferenceId";
|
|
8
|
-
ReferenceType[ReferenceType["ClientCancelReferenceId"] = 2] = "ClientCancelReferenceId";
|
|
9
|
-
ReferenceType[ReferenceType["ClientReserveReferenceId"] = 3] = "ClientReserveReferenceId";
|
|
10
|
-
})(ReferenceType = exports.ReferenceType || (exports.ReferenceType = {}));
|
package/lib/models/Reserve.d.ts
DELETED
package/lib/models/Reserve.js
DELETED
|
@@ -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.Reserve = void 0;
|
|
19
|
-
var Reference_1 = require("./Reference");
|
|
20
|
-
var Reserve = /** @class */ (function (_super) {
|
|
21
|
-
__extends(Reserve, _super);
|
|
22
|
-
function Reserve(commit, type, metaReference) {
|
|
23
|
-
var _this = _super.call(this, type, metaReference) || this;
|
|
24
|
-
_this.commit = commit;
|
|
25
|
-
return _this;
|
|
26
|
-
}
|
|
27
|
-
return Reserve;
|
|
28
|
-
}(Reference_1.Reference));
|
|
29
|
-
exports.Reserve = Reserve;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { FinancialInclusion, Item, PaymentInstrumentInput } from '..';
|
|
2
|
-
import { PaymentRequest } from './PaymentRequest';
|
|
3
|
-
export declare class ReserveRequest extends PaymentRequest {
|
|
4
|
-
expirationUTC: number;
|
|
5
|
-
constructor(expirationUTC: number, clientReferenceId: string, paymentInstrumentInput: PaymentInstrumentInput, items: Item[], currencyId: number, installments: number, financialInclusion: FinancialInclusion);
|
|
6
|
-
}
|