@houlak/plexo-sdk 0.1.6 → 0.1.7-fx
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 +21 -10
- package/lib/handler/PlexoHandler.js +179 -29
- package/lib/index.d.ts +1 -0
- package/lib/index.js +4 -1
- package/lib/lib/logger.lib.js +3 -3
- package/lib/sdk/IPaymentGatewayClient.d.ts +8 -7
- package/lib/sdk/PaymentGatewayClient.d.ts +8 -7
- package/lib/sdk/PaymentGatewayClient.js +45 -45
- package/lib/sdk/PaymentGatewayMock.d.ts +2 -2
- package/lib/sdk/PaymentGatewayMock.js +5 -11
- 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 +74 -205
- package/lib/sdk/helpers/signature/signatureUtils.d.ts +10 -0
- package/lib/sdk/helpers/signature/signatureUtils.js +155 -0
- package/lib/sdk/helpers/signature/stringifyWithFloats.js +2 -0
- package/lib/sdk/mocks/mocks.js +24 -21
- package/lib/sdk/models/Authorization.d.ts +4 -5
- package/lib/sdk/models/Authorization.js +8 -2
- package/lib/sdk/models/AuthorizationInfo.d.ts +3 -2
- package/lib/sdk/models/AuthorizationInfo.js +24 -5
- package/lib/sdk/models/BuiltInPagesOptions.d.ts +5 -0
- package/lib/sdk/models/BuiltInPagesOptions.js +11 -0
- package/lib/sdk/models/CancelRequest.d.ts +1 -1
- package/lib/sdk/models/CancelRequest.js +2 -2
- package/lib/sdk/models/CodeRequest.d.ts +4 -2
- package/lib/sdk/models/CodeRequest.js +28 -0
- package/lib/sdk/models/CommerceIdRequest.d.ts +4 -2
- package/lib/sdk/models/CommerceIdRequest.js +27 -0
- package/lib/sdk/models/CommerceIssuerIdRequest.d.ts +4 -2
- package/lib/sdk/models/CommerceIssuerIdRequest.js +28 -0
- package/lib/sdk/models/CommerceModifyRequest.d.ts +4 -2
- package/lib/sdk/models/CommerceModifyRequest.js +28 -0
- package/lib/sdk/models/CommerceRequest.d.ts +4 -2
- package/lib/sdk/models/CommerceRequest.js +27 -0
- package/lib/sdk/models/CreateBankInstrumentRequest.d.ts +4 -2
- package/lib/sdk/models/CreateBankInstrumentRequest.js +29 -0
- package/lib/sdk/models/DeleteInstrumentRequest.d.ts +1 -1
- package/lib/sdk/models/DeleteInstrumentRequest.js +2 -2
- 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/sdk/models/ExpressCheckoutSettings.js +11 -0
- package/lib/sdk/models/FieldType.d.ts +6 -0
- package/lib/sdk/models/FieldType.js +6 -0
- package/lib/sdk/models/FixedCustomData.d.ts +6 -0
- package/lib/sdk/models/FixedCustomData.js +12 -0
- package/lib/sdk/models/GenericSignedObject.d.ts +3 -3
- package/lib/sdk/models/GenericSignedObject.js +3 -3
- package/lib/sdk/models/GenericStateObject.d.ts +2 -2
- package/lib/sdk/models/GenericStateObject.js +3 -3
- package/lib/sdk/models/IndexSDK.d.ts +8 -6
- package/lib/sdk/models/IndexSDK.js +32 -14
- package/lib/sdk/models/InstrumentCallback.d.ts +5 -5
- package/lib/sdk/models/InstrumentCallback.js +5 -5
- package/lib/sdk/models/InstrumentWithMetadata.d.ts +3 -3
- package/lib/sdk/models/InstrumentWithMetadata.js +3 -3
- package/lib/sdk/models/IssuerData.d.ts +6 -2
- package/lib/sdk/models/IssuerData.js +31 -0
- package/lib/sdk/models/PaymentInstrument.d.ts +11 -11
- package/lib/sdk/models/PaymentRequest.d.ts +3 -2
- package/lib/sdk/models/PaymentRequest.js +33 -14
- package/lib/sdk/models/Reference.d.ts +4 -2
- package/lib/sdk/models/Reference.js +25 -5
- package/lib/sdk/models/Reserve.d.ts +1 -1
- package/lib/sdk/models/Reserve.js +2 -2
- package/lib/sdk/models/ReserveRequest.d.ts +1 -1
- package/lib/sdk/models/ReserveRequest.js +2 -2
- package/lib/sdk/models/SignedObject.d.ts +3 -3
- package/lib/sdk/models/SignedObject.js +3 -3
- package/lib/sdk/models/StateObject.d.ts +2 -2
- package/lib/sdk/models/StateObject.js +2 -2
- package/lib/sdk/models/TokenizationSettings.d.ts +5 -0
- package/lib/sdk/models/TokenizationSettings.js +10 -0
- package/lib/sdk/models/TransactionCallback.d.ts +4 -4
- package/lib/sdk/models/TransactionCallback.js +3 -3
- package/lib/sdk/models/TransactionQuery.d.ts +4 -2
- package/lib/sdk/models/TransactionQuery.js +30 -1
- package/lib/sdk/models/TransactionsCSV.d.ts +3 -0
- package/lib/sdk/models/TransactionsCSV.js +2 -0
- package/lib/sdk/models/UIOptions.d.ts +8 -0
- package/lib/sdk/models/UIOptions.js +13 -0
- 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/IndexWebhook.d.ts +21 -0
- package/lib/sdk/models/webhook/IndexWebhook.js +45 -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/sdk/models/webhook/PaymentProcessor.js +11 -0
- 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
|
@@ -1,11 +1,30 @@
|
|
|
1
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
|
+
})();
|
|
2
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
18
|
exports.AuthorizationInfo = void 0;
|
|
4
|
-
var
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
19
|
+
var FixedCustomData_1 = require("./FixedCustomData");
|
|
20
|
+
var AuthorizationInfo = /** @class */ (function (_super) {
|
|
21
|
+
__extends(AuthorizationInfo, _super);
|
|
22
|
+
function AuthorizationInfo(type, metaReference, plexoClientName, plexoCertificatePassword, plexoCertificatePath) {
|
|
23
|
+
var _this = _super.call(this, plexoClientName, plexoCertificatePassword, plexoCertificatePath) || this;
|
|
24
|
+
_this.type = type;
|
|
25
|
+
_this.metaReference = metaReference;
|
|
26
|
+
return _this;
|
|
8
27
|
}
|
|
9
28
|
return AuthorizationInfo;
|
|
10
|
-
}());
|
|
29
|
+
}(FixedCustomData_1.FixedCustomData));
|
|
11
30
|
exports.AuthorizationInfo = AuthorizationInfo;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BuiltInPagesOptions = void 0;
|
|
4
|
+
var BuiltInPagesOptions = /** @class */ (function () {
|
|
5
|
+
function BuiltInPagesOptions(checkoutSuccessPage, checkoutErrorPage) {
|
|
6
|
+
this.checkoutSuccessPage = checkoutSuccessPage;
|
|
7
|
+
this.checkoutErrorPage = checkoutErrorPage;
|
|
8
|
+
}
|
|
9
|
+
return BuiltInPagesOptions;
|
|
10
|
+
}());
|
|
11
|
+
exports.BuiltInPagesOptions = BuiltInPagesOptions;
|
|
@@ -2,5 +2,5 @@ import { ReferenceType } from '..';
|
|
|
2
2
|
import { Reference } from './Reference';
|
|
3
3
|
export declare class CancelRequest extends Reference {
|
|
4
4
|
clientReferenceId: string;
|
|
5
|
-
constructor(clientReferenceId: string, type: ReferenceType, metaReference: string);
|
|
5
|
+
constructor(clientReferenceId: string, plexoClientName: string, plexoCertificatePassword: string, plexoCertificatePath: string, type: ReferenceType, metaReference: string);
|
|
6
6
|
}
|
|
@@ -19,8 +19,8 @@ exports.CancelRequest = void 0;
|
|
|
19
19
|
var Reference_1 = require("./Reference");
|
|
20
20
|
var CancelRequest = /** @class */ (function (_super) {
|
|
21
21
|
__extends(CancelRequest, _super);
|
|
22
|
-
function CancelRequest(clientReferenceId, type, metaReference) {
|
|
23
|
-
var _this = _super.call(this, type, metaReference) || this;
|
|
22
|
+
function CancelRequest(clientReferenceId, plexoClientName, plexoCertificatePassword, plexoCertificatePath, type, metaReference) {
|
|
23
|
+
var _this = _super.call(this, type, metaReference, plexoClientName, plexoCertificatePassword, plexoCertificatePath) || this;
|
|
24
24
|
_this.clientReferenceId = clientReferenceId;
|
|
25
25
|
return _this;
|
|
26
26
|
}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { CodeAction } from './CodeAction';
|
|
2
|
-
|
|
2
|
+
import { FixedCustomData } from './FixedCustomData';
|
|
3
|
+
export declare class CodeRequest extends FixedCustomData {
|
|
3
4
|
code: string;
|
|
4
5
|
action: CodeAction;
|
|
5
|
-
|
|
6
|
+
constructor(code: string, action: CodeAction, plexoClientName: string, plexoCertificatePassword: string, plexoCertificatePath: string);
|
|
7
|
+
}
|
|
@@ -1,2 +1,30 @@
|
|
|
1
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
|
+
})();
|
|
2
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.CodeRequest = void 0;
|
|
19
|
+
var FixedCustomData_1 = require("./FixedCustomData");
|
|
20
|
+
var CodeRequest = /** @class */ (function (_super) {
|
|
21
|
+
__extends(CodeRequest, _super);
|
|
22
|
+
function CodeRequest(code, action, plexoClientName, plexoCertificatePassword, plexoCertificatePath) {
|
|
23
|
+
var _this = _super.call(this, plexoClientName, plexoCertificatePassword, plexoCertificatePath) || this;
|
|
24
|
+
_this.code = code;
|
|
25
|
+
_this.action = action;
|
|
26
|
+
return _this;
|
|
27
|
+
}
|
|
28
|
+
return CodeRequest;
|
|
29
|
+
}(FixedCustomData_1.FixedCustomData));
|
|
30
|
+
exports.CodeRequest = CodeRequest;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import { FixedCustomData } from './FixedCustomData';
|
|
2
|
+
export declare class CommerceIdRequest extends FixedCustomData {
|
|
2
3
|
commerceId: number;
|
|
3
|
-
|
|
4
|
+
constructor(commerceId: number, plexoClientName: string, plexoCertificatePassword: string, plexoCertificatePath: string);
|
|
5
|
+
}
|
|
@@ -1,2 +1,29 @@
|
|
|
1
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
|
+
})();
|
|
2
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.CommerceIdRequest = void 0;
|
|
19
|
+
var FixedCustomData_1 = require("./FixedCustomData");
|
|
20
|
+
var CommerceIdRequest = /** @class */ (function (_super) {
|
|
21
|
+
__extends(CommerceIdRequest, _super);
|
|
22
|
+
function CommerceIdRequest(commerceId, plexoClientName, plexoCertificatePassword, plexoCertificatePath) {
|
|
23
|
+
var _this = _super.call(this, plexoClientName, plexoCertificatePassword, plexoCertificatePath) || this;
|
|
24
|
+
_this.commerceId = commerceId;
|
|
25
|
+
return _this;
|
|
26
|
+
}
|
|
27
|
+
return CommerceIdRequest;
|
|
28
|
+
}(FixedCustomData_1.FixedCustomData));
|
|
29
|
+
exports.CommerceIdRequest = CommerceIdRequest;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import { FixedCustomData } from './FixedCustomData';
|
|
2
|
+
export declare class CommerceIssuerIdRequest extends FixedCustomData {
|
|
2
3
|
commerceId: number;
|
|
3
4
|
issuerId: number;
|
|
4
|
-
|
|
5
|
+
constructor(commerceId: number, issuerId: number, plexoClientName: string, plexoCertificatePassword: string, plexoCertificatePath: string);
|
|
6
|
+
}
|
|
@@ -1,2 +1,30 @@
|
|
|
1
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
|
+
})();
|
|
2
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.CommerceIssuerIdRequest = void 0;
|
|
19
|
+
var FixedCustomData_1 = require("./FixedCustomData");
|
|
20
|
+
var CommerceIssuerIdRequest = /** @class */ (function (_super) {
|
|
21
|
+
__extends(CommerceIssuerIdRequest, _super);
|
|
22
|
+
function CommerceIssuerIdRequest(commerceId, issuerId, plexoClientName, plexoCertificatePassword, plexoCertificatePath) {
|
|
23
|
+
var _this = _super.call(this, plexoClientName, plexoCertificatePassword, plexoCertificatePath) || this;
|
|
24
|
+
_this.commerceId = commerceId;
|
|
25
|
+
_this.issuerId = issuerId;
|
|
26
|
+
return _this;
|
|
27
|
+
}
|
|
28
|
+
return CommerceIssuerIdRequest;
|
|
29
|
+
}(FixedCustomData_1.FixedCustomData));
|
|
30
|
+
exports.CommerceIssuerIdRequest = CommerceIssuerIdRequest;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import { FixedCustomData } from './FixedCustomData';
|
|
2
|
+
export declare class CommerceModifyRequest extends FixedCustomData {
|
|
2
3
|
commerceId: number;
|
|
3
4
|
name: string;
|
|
4
|
-
|
|
5
|
+
constructor(commerceId: number, name: string, plexoClientName: string, plexoCertificatePassword: string, plexoCertificatePath: string);
|
|
6
|
+
}
|
|
@@ -1,2 +1,30 @@
|
|
|
1
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
|
+
})();
|
|
2
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.CommerceModifyRequest = void 0;
|
|
19
|
+
var FixedCustomData_1 = require("./FixedCustomData");
|
|
20
|
+
var CommerceModifyRequest = /** @class */ (function (_super) {
|
|
21
|
+
__extends(CommerceModifyRequest, _super);
|
|
22
|
+
function CommerceModifyRequest(commerceId, name, plexoClientName, plexoCertificatePassword, plexoCertificatePath) {
|
|
23
|
+
var _this = _super.call(this, plexoClientName, plexoCertificatePassword, plexoCertificatePath) || this;
|
|
24
|
+
_this.commerceId = commerceId;
|
|
25
|
+
_this.name = name;
|
|
26
|
+
return _this;
|
|
27
|
+
}
|
|
28
|
+
return CommerceModifyRequest;
|
|
29
|
+
}(FixedCustomData_1.FixedCustomData));
|
|
30
|
+
exports.CommerceModifyRequest = CommerceModifyRequest;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import { FixedCustomData } from './FixedCustomData';
|
|
2
|
+
export declare class CommerceRequest extends FixedCustomData {
|
|
2
3
|
name: string;
|
|
3
|
-
|
|
4
|
+
constructor(name: string, plexoClientName: string, plexoCertificatePassword: string, plexoCertificatePath: string);
|
|
5
|
+
}
|
|
@@ -1,2 +1,29 @@
|
|
|
1
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
|
+
})();
|
|
2
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.CommerceRequest = void 0;
|
|
19
|
+
var FixedCustomData_1 = require("./FixedCustomData");
|
|
20
|
+
var CommerceRequest = /** @class */ (function (_super) {
|
|
21
|
+
__extends(CommerceRequest, _super);
|
|
22
|
+
function CommerceRequest(name, plexoClientName, plexoCertificatePassword, plexoCertificatePath) {
|
|
23
|
+
var _this = _super.call(this, plexoClientName, plexoCertificatePassword, plexoCertificatePath) || this;
|
|
24
|
+
_this.name = name;
|
|
25
|
+
return _this;
|
|
26
|
+
}
|
|
27
|
+
return CommerceRequest;
|
|
28
|
+
}(FixedCustomData_1.FixedCustomData));
|
|
29
|
+
exports.CommerceRequest = CommerceRequest;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { AuthorizationInfo } from './AuthorizationInfo';
|
|
2
|
-
|
|
2
|
+
import { FixedCustomData } from './FixedCustomData';
|
|
3
|
+
export declare class CreateBankInstrumentRequest extends FixedCustomData {
|
|
3
4
|
issuerId: number;
|
|
4
5
|
user: AuthorizationInfo;
|
|
5
6
|
instrumentData: any;
|
|
6
|
-
|
|
7
|
+
constructor(issuerId: number, user: AuthorizationInfo, instrumentData: any, plexoClientName: string, plexoCertificatePassword: string, plexoCertificatePath: string);
|
|
8
|
+
}
|
|
@@ -1,2 +1,31 @@
|
|
|
1
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
|
+
})();
|
|
2
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.CreateBankInstrumentRequest = void 0;
|
|
19
|
+
var FixedCustomData_1 = require("./FixedCustomData");
|
|
20
|
+
var CreateBankInstrumentRequest = /** @class */ (function (_super) {
|
|
21
|
+
__extends(CreateBankInstrumentRequest, _super);
|
|
22
|
+
function CreateBankInstrumentRequest(issuerId, user, instrumentData, plexoClientName, plexoCertificatePassword, plexoCertificatePath) {
|
|
23
|
+
var _this = _super.call(this, plexoClientName, plexoCertificatePassword, plexoCertificatePath) || this;
|
|
24
|
+
_this.issuerId = issuerId;
|
|
25
|
+
_this.user = user;
|
|
26
|
+
_this.instrumentData = instrumentData;
|
|
27
|
+
return _this;
|
|
28
|
+
}
|
|
29
|
+
return CreateBankInstrumentRequest;
|
|
30
|
+
}(FixedCustomData_1.FixedCustomData));
|
|
31
|
+
exports.CreateBankInstrumentRequest = CreateBankInstrumentRequest;
|
|
@@ -2,5 +2,5 @@ import { AuthorizationType } from '..';
|
|
|
2
2
|
import { AuthorizationInfo } from './AuthorizationInfo';
|
|
3
3
|
export declare class DeleteInstrumentRequest extends AuthorizationInfo {
|
|
4
4
|
instrumentToken: string;
|
|
5
|
-
constructor(instrumentToken: string, type: AuthorizationType, metaReference: string);
|
|
5
|
+
constructor(instrumentToken: string, plexoClientName: string, plexoCertificatePassword: string, plexoCertificatePath: string, type: AuthorizationType, metaReference: string);
|
|
6
6
|
}
|
|
@@ -19,8 +19,8 @@ exports.DeleteInstrumentRequest = void 0;
|
|
|
19
19
|
var AuthorizationInfo_1 = require("./AuthorizationInfo");
|
|
20
20
|
var DeleteInstrumentRequest = /** @class */ (function (_super) {
|
|
21
21
|
__extends(DeleteInstrumentRequest, _super);
|
|
22
|
-
function DeleteInstrumentRequest(instrumentToken, type, metaReference) {
|
|
23
|
-
var _this = _super.call(this, type, metaReference) || this;
|
|
22
|
+
function DeleteInstrumentRequest(instrumentToken, plexoClientName, plexoCertificatePassword, plexoCertificatePath, type, metaReference) {
|
|
23
|
+
var _this = _super.call(this, type, metaReference, plexoClientName, plexoCertificatePassword, plexoCertificatePath) || this;
|
|
24
24
|
_this.instrumentToken = instrumentToken;
|
|
25
25
|
return _this;
|
|
26
26
|
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DisplayOptions = void 0;
|
|
4
|
+
var DisplayOptions = /** @class */ (function () {
|
|
5
|
+
function DisplayOptions(titles, details, footer, logo, accessibility) {
|
|
6
|
+
this.titles = titles;
|
|
7
|
+
this.details = details;
|
|
8
|
+
this.footer = footer;
|
|
9
|
+
this.logo = logo;
|
|
10
|
+
this.accessibility = accessibility;
|
|
11
|
+
}
|
|
12
|
+
return DisplayOptions;
|
|
13
|
+
}());
|
|
14
|
+
exports.DisplayOptions = DisplayOptions;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { BuiltInPagesOptions } from './BuiltInPagesOptions';
|
|
2
|
+
import { DisplayOptions } from './DisplayOptions';
|
|
3
|
+
export declare class ExpressCheckoutSettingsDto {
|
|
4
|
+
displayOptions?: DisplayOptions;
|
|
5
|
+
builtInPages: BuiltInPagesOptions;
|
|
6
|
+
constructor(displayOptions: DisplayOptions, builtInPages: BuiltInPagesOptions);
|
|
7
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ExpressCheckoutSettingsDto = void 0;
|
|
4
|
+
var ExpressCheckoutSettingsDto = /** @class */ (function () {
|
|
5
|
+
function ExpressCheckoutSettingsDto(displayOptions, builtInPages) {
|
|
6
|
+
this.displayOptions = displayOptions;
|
|
7
|
+
this.builtInPages = builtInPages;
|
|
8
|
+
}
|
|
9
|
+
return ExpressCheckoutSettingsDto;
|
|
10
|
+
}());
|
|
11
|
+
exports.ExpressCheckoutSettingsDto = ExpressCheckoutSettingsDto;
|
|
@@ -31,6 +31,12 @@ export declare enum FieldType {
|
|
|
31
31
|
ShippingFirstName = 526,
|
|
32
32
|
ShippingLastName = 527,
|
|
33
33
|
ShippingPhoneNumber = 528,
|
|
34
|
+
InternalPaymentCallback = 529,
|
|
35
|
+
CustomInvoiceNumber = 530,
|
|
36
|
+
VATAmount = 531,
|
|
37
|
+
CrossBankTransfers = 532,
|
|
38
|
+
SourceBank = 533,
|
|
39
|
+
DestinationBank = 534,
|
|
34
40
|
Provider = 1025,
|
|
35
41
|
SistarBancPaymentMethod = 1281,
|
|
36
42
|
RedPagosProductNumber = 1282,
|
|
@@ -37,6 +37,12 @@ var FieldType;
|
|
|
37
37
|
FieldType[FieldType["ShippingFirstName"] = 526] = "ShippingFirstName";
|
|
38
38
|
FieldType[FieldType["ShippingLastName"] = 527] = "ShippingLastName";
|
|
39
39
|
FieldType[FieldType["ShippingPhoneNumber"] = 528] = "ShippingPhoneNumber";
|
|
40
|
+
FieldType[FieldType["InternalPaymentCallback"] = 529] = "InternalPaymentCallback";
|
|
41
|
+
FieldType[FieldType["CustomInvoiceNumber"] = 530] = "CustomInvoiceNumber";
|
|
42
|
+
FieldType[FieldType["VATAmount"] = 531] = "VATAmount";
|
|
43
|
+
FieldType[FieldType["CrossBankTransfers"] = 532] = "CrossBankTransfers";
|
|
44
|
+
FieldType[FieldType["SourceBank"] = 533] = "SourceBank";
|
|
45
|
+
FieldType[FieldType["DestinationBank"] = 534] = "DestinationBank";
|
|
40
46
|
// Provider Related Information starts at 0x400
|
|
41
47
|
FieldType[FieldType["Provider"] = 1025] = "Provider";
|
|
42
48
|
// User/Provider Related Information starts at 0x500 // User Flag + Provider Flag
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FixedCustomData = void 0;
|
|
4
|
+
var FixedCustomData = /** @class */ (function () {
|
|
5
|
+
function FixedCustomData(plexoClientName, plexoCertificatePassword, plexoCertificatePath) {
|
|
6
|
+
this.plexoClientName = plexoClientName;
|
|
7
|
+
this.plexoCertificatePassword = plexoCertificatePassword;
|
|
8
|
+
this.plexoCertificatePath = plexoCertificatePath;
|
|
9
|
+
}
|
|
10
|
+
return FixedCustomData;
|
|
11
|
+
}());
|
|
12
|
+
exports.FixedCustomData = FixedCustomData;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { GenericStateObject } from './GenericStateObject';
|
|
2
2
|
export declare class GenericSignedObject<T> {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
constructor(
|
|
3
|
+
object: GenericStateObject<T>;
|
|
4
|
+
signature: string;
|
|
5
|
+
constructor(object: GenericStateObject<T>, signature: string);
|
|
6
6
|
}
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.GenericSignedObject = void 0;
|
|
4
4
|
var GenericSignedObject = /** @class */ (function () {
|
|
5
|
-
function GenericSignedObject(
|
|
6
|
-
this.
|
|
7
|
-
this.
|
|
5
|
+
function GenericSignedObject(object, signature) {
|
|
6
|
+
this.object = object;
|
|
7
|
+
this.signature = signature;
|
|
8
8
|
}
|
|
9
9
|
return GenericSignedObject;
|
|
10
10
|
}());
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { StateObject } from './StateObject';
|
|
2
2
|
export declare class GenericStateObject<T> extends StateObject {
|
|
3
|
-
|
|
4
|
-
constructor(
|
|
3
|
+
object: T;
|
|
4
|
+
constructor(object: T, fingerprint: string, utcUnixTimeExpiration: number);
|
|
5
5
|
}
|
|
@@ -19,9 +19,9 @@ exports.GenericStateObject = void 0;
|
|
|
19
19
|
var StateObject_1 = require("./StateObject");
|
|
20
20
|
var GenericStateObject = /** @class */ (function (_super) {
|
|
21
21
|
__extends(GenericStateObject, _super);
|
|
22
|
-
function GenericStateObject(
|
|
23
|
-
var _this = _super.call(this,
|
|
24
|
-
_this.
|
|
22
|
+
function GenericStateObject(object, fingerprint, utcUnixTimeExpiration) {
|
|
23
|
+
var _this = _super.call(this, fingerprint, utcUnixTimeExpiration) || this;
|
|
24
|
+
_this.object = object;
|
|
25
25
|
return _this;
|
|
26
26
|
}
|
|
27
27
|
return GenericStateObject;
|
|
@@ -7,7 +7,7 @@ export { Authorization } from './Authorization';
|
|
|
7
7
|
export { AuthorizationInfo } from './AuthorizationInfo';
|
|
8
8
|
export { AuthorizationType } from './AuthorizationType';
|
|
9
9
|
export { BaseServerResponse } from './BaseServerResponse';
|
|
10
|
-
export {
|
|
10
|
+
export { BuiltInPagesOptions } from './BuiltInPagesOptions';
|
|
11
11
|
export { CancelRequest } from './CancelRequest';
|
|
12
12
|
export { CardStatus } from './CardStatus';
|
|
13
13
|
export { CardTypes } from './CardTypes';
|
|
@@ -25,9 +25,9 @@ export { CommerceRequest } from './CommerceRequest';
|
|
|
25
25
|
export { CreateBankInstrumentRequest } from './CreateBankInstrumentRequest';
|
|
26
26
|
export { Currency } from './Currency';
|
|
27
27
|
export { DeleteInstrumentRequest } from './DeleteInstrumentRequest';
|
|
28
|
-
export {
|
|
28
|
+
export { DisplayOptions } from './DisplayOptions';
|
|
29
29
|
export { ExpressCheckoutRequest } from './ExpressCheckoutRequest';
|
|
30
|
-
export { ExpressCheckoutSettingsDto } from './
|
|
30
|
+
export { ExpressCheckoutSettingsDto } from './ExpressCheckoutSettings';
|
|
31
31
|
export { ExtendedCredit } from './ExtendedCredit';
|
|
32
32
|
export { FieldInfo } from './FieldInfo';
|
|
33
33
|
export { FieldInfoPaymentProcessors } from './FieldInfoPaymentProcessors';
|
|
@@ -71,7 +71,7 @@ export { Session } from './Session';
|
|
|
71
71
|
export { SignedObject } from './SignedObject';
|
|
72
72
|
export { StateObject } from './StateObject';
|
|
73
73
|
export { TimeLimit } from './TimeLimit';
|
|
74
|
-
export {
|
|
74
|
+
export { TokenizationSettings } from './TokenizationSettings';
|
|
75
75
|
export { Transaction } from './Transaction';
|
|
76
76
|
export { TransactionCallback } from './TransactionCallback';
|
|
77
77
|
export { TransactionCursor } from './TransactionCursor';
|
|
@@ -80,5 +80,7 @@ export { TransactionOrder } from './TransactionOrder';
|
|
|
80
80
|
export { TransactionQuery } from './TransactionQuery';
|
|
81
81
|
export { TransactionResult } from './TransactionResult';
|
|
82
82
|
export { TransactionType } from './TransactionType';
|
|
83
|
-
export {
|
|
84
|
-
export {
|
|
83
|
+
export { TransactionsCSV } from './TransactionsCSV';
|
|
84
|
+
export { UIOptions } from './UIOptions';
|
|
85
|
+
export { WebFormSettings } from './WebFormSettings';
|
|
86
|
+
export { PlexoErrorEnum } from '../enums/plexo-error-enum';
|