@houlak/plexo-sdk 0.1.2 → 0.1.3-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.
Files changed (124) hide show
  1. package/lib/handler/PlexoHandler.d.ts +21 -10
  2. package/lib/handler/PlexoHandler.js +179 -29
  3. package/lib/index.d.ts +1 -0
  4. package/lib/index.js +4 -1
  5. package/lib/lib/logger.lib.d.ts +1 -6
  6. package/lib/lib/logger.lib.js +10 -6
  7. package/lib/sdk/IPaymentGatewayClient.d.ts +8 -7
  8. package/lib/sdk/PaymentGatewayClient.d.ts +8 -7
  9. package/lib/sdk/PaymentGatewayClient.js +45 -45
  10. package/lib/sdk/PaymentGatewayMock.d.ts +2 -2
  11. package/lib/sdk/PaymentGatewayMock.js +2 -8
  12. package/lib/sdk/enums/plexo-error-enum.d.ts +1 -0
  13. package/lib/sdk/enums/plexo-error-enum.js +1 -0
  14. package/lib/sdk/helpers/signature/signatureHelper.d.ts +3 -7
  15. package/lib/sdk/helpers/signature/signatureHelper.js +71 -211
  16. package/lib/sdk/helpers/signature/signatureUtils.d.ts +10 -0
  17. package/lib/sdk/helpers/signature/signatureUtils.js +155 -0
  18. package/lib/sdk/helpers/signature/stringifyWithFloats.js +2 -0
  19. package/lib/sdk/mocks/mocks.js +2 -0
  20. package/lib/sdk/models/Authorization.d.ts +4 -5
  21. package/lib/sdk/models/Authorization.js +8 -2
  22. package/lib/sdk/models/AuthorizationInfo.d.ts +3 -2
  23. package/lib/sdk/models/AuthorizationInfo.js +24 -5
  24. package/lib/sdk/models/BuiltInPagesOptions.d.ts +5 -0
  25. package/lib/sdk/models/BuiltInPagesOptions.js +11 -0
  26. package/lib/sdk/models/CancelRequest.d.ts +1 -1
  27. package/lib/sdk/models/CancelRequest.js +2 -2
  28. package/lib/sdk/models/CodeRequest.d.ts +4 -2
  29. package/lib/sdk/models/CodeRequest.js +28 -0
  30. package/lib/sdk/models/CommerceIdRequest.d.ts +4 -2
  31. package/lib/sdk/models/CommerceIdRequest.js +27 -0
  32. package/lib/sdk/models/CommerceIssuerIdRequest.d.ts +4 -2
  33. package/lib/sdk/models/CommerceIssuerIdRequest.js +28 -0
  34. package/lib/sdk/models/CommerceModifyRequest.d.ts +4 -2
  35. package/lib/sdk/models/CommerceModifyRequest.js +28 -0
  36. package/lib/sdk/models/CommerceRequest.d.ts +4 -2
  37. package/lib/sdk/models/CommerceRequest.js +27 -0
  38. package/lib/sdk/models/CreateBankInstrumentRequest.d.ts +4 -2
  39. package/lib/sdk/models/CreateBankInstrumentRequest.js +29 -0
  40. package/lib/sdk/models/DeleteInstrumentRequest.d.ts +1 -1
  41. package/lib/sdk/models/DeleteInstrumentRequest.js +2 -2
  42. package/lib/sdk/models/DisplayOptions.d.ts +8 -0
  43. package/lib/sdk/models/DisplayOptions.js +14 -0
  44. package/lib/sdk/models/ExpressCheckoutSettings.d.ts +7 -0
  45. package/lib/sdk/models/ExpressCheckoutSettings.js +11 -0
  46. package/lib/sdk/models/FieldType.d.ts +6 -0
  47. package/lib/sdk/models/FieldType.js +6 -0
  48. package/lib/sdk/models/FixedCustomData.d.ts +5 -0
  49. package/lib/sdk/models/FixedCustomData.js +11 -0
  50. package/lib/sdk/models/IndexSDK.d.ts +8 -6
  51. package/lib/sdk/models/IndexSDK.js +32 -14
  52. package/lib/sdk/models/IssuerData.d.ts +6 -2
  53. package/lib/sdk/models/IssuerData.js +31 -0
  54. package/lib/sdk/models/PaymentRequest.d.ts +3 -2
  55. package/lib/sdk/models/PaymentRequest.js +33 -14
  56. package/lib/sdk/models/Reference.d.ts +4 -2
  57. package/lib/sdk/models/Reference.js +25 -5
  58. package/lib/sdk/models/Reserve.d.ts +1 -1
  59. package/lib/sdk/models/Reserve.js +2 -2
  60. package/lib/sdk/models/ReserveRequest.d.ts +1 -1
  61. package/lib/sdk/models/ReserveRequest.js +2 -2
  62. package/lib/sdk/models/TokenizationSettings.d.ts +5 -0
  63. package/lib/sdk/models/TokenizationSettings.js +10 -0
  64. package/lib/sdk/models/TransactionQuery.d.ts +4 -2
  65. package/lib/sdk/models/TransactionQuery.js +30 -1
  66. package/lib/sdk/models/TransactionsCSV.d.ts +3 -0
  67. package/lib/sdk/models/TransactionsCSV.js +2 -0
  68. package/lib/sdk/models/UIOptions.d.ts +8 -0
  69. package/lib/sdk/models/UIOptions.js +13 -0
  70. package/lib/sdk/models/WebFormSettings.d.ts +9 -0
  71. package/lib/sdk/models/WebFormSettings.js +12 -0
  72. package/lib/sdk/models/webhook/Address.d.ts +9 -0
  73. package/lib/sdk/models/webhook/Address.js +15 -0
  74. package/lib/sdk/models/webhook/CancellationInfo.d.ts +11 -0
  75. package/lib/sdk/models/webhook/CancellationInfo.js +17 -0
  76. package/lib/sdk/models/webhook/Client.d.ts +9 -0
  77. package/lib/sdk/models/webhook/Client.js +14 -0
  78. package/lib/sdk/models/webhook/Commerce.d.ts +6 -0
  79. package/lib/sdk/models/webhook/Commerce.js +12 -0
  80. package/lib/sdk/models/webhook/Currency.d.ts +8 -0
  81. package/lib/sdk/models/webhook/Currency.js +14 -0
  82. package/lib/sdk/models/webhook/Customer.d.ts +17 -0
  83. package/lib/sdk/models/webhook/Customer.js +22 -0
  84. package/lib/sdk/models/webhook/Document.d.ts +5 -0
  85. package/lib/sdk/models/webhook/Document.js +11 -0
  86. package/lib/sdk/models/webhook/IndexWebhook.d.ts +21 -0
  87. package/lib/sdk/models/webhook/IndexWebhook.js +45 -0
  88. package/lib/sdk/models/webhook/Instrument.d.ts +17 -0
  89. package/lib/sdk/models/webhook/Instrument.js +21 -0
  90. package/lib/sdk/models/webhook/Issuer.d.ts +8 -0
  91. package/lib/sdk/models/webhook/Issuer.js +14 -0
  92. package/lib/sdk/models/webhook/IssuerData.d.ts +8 -0
  93. package/lib/sdk/models/webhook/IssuerData.js +13 -0
  94. package/lib/sdk/models/webhook/IssuerDto.d.ts +5 -0
  95. package/lib/sdk/models/webhook/IssuerDto.js +11 -0
  96. package/lib/sdk/models/webhook/Item.d.ts +14 -0
  97. package/lib/sdk/models/webhook/Item.js +19 -0
  98. package/lib/sdk/models/webhook/PartialRefundsInfo.d.ts +12 -0
  99. package/lib/sdk/models/webhook/PartialRefundsInfo.js +18 -0
  100. package/lib/sdk/models/webhook/PaymentFacilitator.d.ts +8 -0
  101. package/lib/sdk/models/webhook/PaymentFacilitator.js +13 -0
  102. package/lib/sdk/models/webhook/PaymentProcessor.d.ts +5 -0
  103. package/lib/sdk/models/webhook/PaymentProcessor.js +11 -0
  104. package/lib/sdk/models/webhook/PurchaseInfo.d.ts +16 -0
  105. package/lib/sdk/models/webhook/PurchaseInfo.js +22 -0
  106. package/lib/sdk/models/webhook/RefundInfo.d.ts +12 -0
  107. package/lib/sdk/models/webhook/RefundInfo.js +18 -0
  108. package/lib/sdk/models/webhook/ReserveInfo.d.ts +13 -0
  109. package/lib/sdk/models/webhook/ReserveInfo.js +19 -0
  110. package/lib/sdk/models/webhook/Shipping.d.ts +7 -0
  111. package/lib/sdk/models/webhook/Shipping.js +12 -0
  112. package/lib/sdk/models/webhook/Transaction.d.ts +31 -0
  113. package/lib/sdk/models/webhook/Transaction.js +36 -0
  114. package/lib/sdk/models/webhook/TransactionResult.d.ts +5 -0
  115. package/lib/sdk/models/webhook/TransactionResult.js +10 -0
  116. package/lib/sdk/models/webhook/index.d.ts +21 -0
  117. package/lib/sdk/models/webhook/index.js +45 -0
  118. package/lib/utils/boolean.utils.d.ts +4 -0
  119. package/lib/utils/boolean.utils.js +53 -0
  120. package/lib/utils/case.util.d.ts +4 -0
  121. package/lib/utils/case.util.js +61 -0
  122. package/lib/utils/index.d.ts +1 -0
  123. package/lib/utils/index.js +5 -0
  124. package/package.json +3 -3
@@ -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, plexoCertificatePath, type, metaReference) {
23
+ var _this = _super.call(this, type, metaReference, plexoClientName, plexoCertificatePath) || this;
24
24
  _this.clientReferenceId = clientReferenceId;
25
25
  return _this;
26
26
  }
@@ -1,5 +1,7 @@
1
1
  import { CodeAction } from './CodeAction';
2
- export declare type CodeRequest = {
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, 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, plexoCertificatePath) {
23
+ var _this = _super.call(this, plexoClientName, 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
- export declare type CommerceIdRequest = {
1
+ import { FixedCustomData } from './FixedCustomData';
2
+ export declare class CommerceIdRequest extends FixedCustomData {
2
3
  commerceId: number;
3
- };
4
+ constructor(commerceId: number, plexoClientName: 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, plexoCertificatePath) {
23
+ var _this = _super.call(this, plexoClientName, 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
- export declare type CommerceIssuerIdRequest = {
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, 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, plexoCertificatePath) {
23
+ var _this = _super.call(this, plexoClientName, 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
- export declare type CommerceModifyRequest = {
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, 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, plexoCertificatePath) {
23
+ var _this = _super.call(this, plexoClientName, 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
- export declare type CommerceRequest = {
1
+ import { FixedCustomData } from './FixedCustomData';
2
+ export declare class CommerceRequest extends FixedCustomData {
2
3
  name: string;
3
- };
4
+ constructor(name: string, plexoClientName: 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, plexoCertificatePath) {
23
+ var _this = _super.call(this, plexoClientName, 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
- export declare type CreateBankInstrumentRequest = {
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, 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, plexoCertificatePath) {
23
+ var _this = _super.call(this, plexoClientName, 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, 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, plexoCertificatePath, type, metaReference) {
23
+ var _this = _super.call(this, type, metaReference, plexoClientName, plexoCertificatePath) || this;
24
24
  _this.instrumentToken = instrumentToken;
25
25
  return _this;
26
26
  }
@@ -0,0 +1,8 @@
1
+ export declare class DisplayOptions {
2
+ titles: boolean;
3
+ details: boolean;
4
+ footer: boolean;
5
+ logo: boolean;
6
+ accessibility: boolean;
7
+ constructor(titles: boolean, details: boolean, footer: boolean, logo: boolean, accessibility: boolean);
8
+ }
@@ -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,5 @@
1
+ export declare class FixedCustomData {
2
+ plexoClientName: string;
3
+ plexoCertificatePassword: string;
4
+ constructor(plexoClientName: string, plexoCertificatePassword: string);
5
+ }
@@ -0,0 +1,11 @@
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) {
6
+ this.plexoClientName = plexoClientName;
7
+ this.plexoCertificatePassword = plexoCertificatePassword;
8
+ }
9
+ return FixedCustomData;
10
+ }());
11
+ exports.FixedCustomData = FixedCustomData;
@@ -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 { BuiltInPagesOptionsDto } from './BuiltInPagesOptionsDto';
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 { DisplayOptionsDto } from './DisplayOptionsDto';
28
+ export { DisplayOptions } from './DisplayOptions';
29
29
  export { ExpressCheckoutRequest } from './ExpressCheckoutRequest';
30
- export { ExpressCheckoutSettingsDto } from './ExpressCheckoutSettingsDto';
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 { TokenizationSettingsDto } from './TokenizationSettingsDto';
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 { UIOptionsDto } from './UIOptionsDto';
84
- export { WebFormSettingsDto } from './WebFormSettingsDto';
83
+ export { TransactionsCSV } from './TransactionsCSV';
84
+ export { UIOptions } from './UIOptions';
85
+ export { WebFormSettings } from './WebFormSettings';
86
+ export { PlexoErrorEnum } from '../enums/plexo-error-enum';
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TransactionCallback = exports.Transaction = exports.TokenizationSettingsDto = exports.StateObject = exports.SignedObject = exports.ServerSignedResponse = exports.ServerSignedRequest = exports.ServerSignedCallback = exports.ServerResponse = exports.ResultCodes = exports.ReserveRequest = exports.Reserve = exports.ReferenceType = exports.Reference = exports.PaymentRequest = exports.PaymentProcessor = exports.IssuerSignedRequest = exports.IssuerRequest = exports.IssuerProcessor = exports.InstrumentWithMetadata = exports.InstrumentCallback = exports.InclusionType = exports.IdentificationType = exports.GenericStateObject = exports.GenericSignedObject = exports.GenericServerSignedResponse = exports.GenericIssuerSignedRequest = exports.GenericIssuerRequest = exports.GenericClientSignedRequest = exports.GenericClientRequest = exports.FieldType = exports.FieldInfoPaymentProcessors = exports.ExpressCheckoutSettingsDto = exports.DisplayOptionsDto = exports.DeleteInstrumentRequest = exports.CodeAction = exports.ClientSignedResponse = exports.ClientSignedRequest = exports.ClientResponse = exports.ClientRequest = exports.CardTypes = exports.CardStatus = exports.CancelRequest = exports.BuiltInPagesOptionsDto = exports.BaseServerResponse = exports.AuthorizationType = exports.AuthorizationInfo = exports.Authorization = exports.ActionType = exports.BaseResponse = void 0;
4
- exports.WebFormSettingsDto = exports.UIOptionsDto = exports.TransactionType = exports.TransactionResult = void 0;
3
+ exports.ServerSignedCallback = exports.ServerResponse = exports.ResultCodes = exports.ReserveRequest = exports.Reserve = exports.ReferenceType = exports.Reference = exports.PaymentRequest = exports.PaymentProcessor = exports.IssuerSignedRequest = exports.IssuerRequest = exports.IssuerProcessor = exports.IssuerData = exports.InstrumentWithMetadata = exports.InstrumentCallback = exports.InclusionType = exports.IdentificationType = exports.GenericStateObject = exports.GenericSignedObject = exports.GenericServerSignedResponse = exports.GenericIssuerSignedRequest = exports.GenericIssuerRequest = exports.GenericClientSignedRequest = exports.GenericClientRequest = exports.FieldType = exports.FieldInfoPaymentProcessors = exports.ExpressCheckoutSettingsDto = exports.DisplayOptions = exports.DeleteInstrumentRequest = exports.CreateBankInstrumentRequest = exports.CommerceRequest = exports.CommerceModifyRequest = exports.CommerceIssuerIdRequest = exports.CommerceIdRequest = exports.CodeRequest = exports.CodeAction = exports.ClientSignedResponse = exports.ClientSignedRequest = exports.ClientResponse = exports.ClientRequest = exports.CardTypes = exports.CardStatus = exports.CancelRequest = exports.BuiltInPagesOptions = exports.BaseServerResponse = exports.AuthorizationType = exports.AuthorizationInfo = exports.Authorization = exports.ActionType = exports.BaseResponse = void 0;
4
+ exports.PlexoErrorEnum = exports.WebFormSettings = exports.UIOptions = exports.TransactionType = exports.TransactionResult = exports.TransactionQuery = exports.TransactionCallback = exports.Transaction = exports.TokenizationSettings = exports.StateObject = exports.SignedObject = exports.ServerSignedResponse = exports.ServerSignedRequest = void 0;
5
5
  var BaseResponse_1 = require("../../handler/types/BaseResponse");
6
6
  Object.defineProperty(exports, "BaseResponse", { enumerable: true, get: function () { return BaseResponse_1.BaseResponse; } });
7
7
  var ActionType_1 = require("./ActionType");
@@ -14,8 +14,8 @@ var AuthorizationType_1 = require("./AuthorizationType");
14
14
  Object.defineProperty(exports, "AuthorizationType", { enumerable: true, get: function () { return AuthorizationType_1.AuthorizationType; } });
15
15
  var BaseServerResponse_1 = require("./BaseServerResponse");
16
16
  Object.defineProperty(exports, "BaseServerResponse", { enumerable: true, get: function () { return BaseServerResponse_1.BaseServerResponse; } });
17
- var BuiltInPagesOptionsDto_1 = require("./BuiltInPagesOptionsDto");
18
- Object.defineProperty(exports, "BuiltInPagesOptionsDto", { enumerable: true, get: function () { return BuiltInPagesOptionsDto_1.BuiltInPagesOptionsDto; } });
17
+ var BuiltInPagesOptions_1 = require("./BuiltInPagesOptions");
18
+ Object.defineProperty(exports, "BuiltInPagesOptions", { enumerable: true, get: function () { return BuiltInPagesOptions_1.BuiltInPagesOptions; } });
19
19
  var CancelRequest_1 = require("./CancelRequest");
20
20
  Object.defineProperty(exports, "CancelRequest", { enumerable: true, get: function () { return CancelRequest_1.CancelRequest; } });
21
21
  var CardStatus_1 = require("./CardStatus");
@@ -32,12 +32,24 @@ var ClientSignedResponse_1 = require("./ClientSignedResponse");
32
32
  Object.defineProperty(exports, "ClientSignedResponse", { enumerable: true, get: function () { return ClientSignedResponse_1.ClientSignedResponse; } });
33
33
  var CodeAction_1 = require("./CodeAction");
34
34
  Object.defineProperty(exports, "CodeAction", { enumerable: true, get: function () { return CodeAction_1.CodeAction; } });
35
+ var CodeRequest_1 = require("./CodeRequest");
36
+ Object.defineProperty(exports, "CodeRequest", { enumerable: true, get: function () { return CodeRequest_1.CodeRequest; } });
37
+ var CommerceIdRequest_1 = require("./CommerceIdRequest");
38
+ Object.defineProperty(exports, "CommerceIdRequest", { enumerable: true, get: function () { return CommerceIdRequest_1.CommerceIdRequest; } });
39
+ var CommerceIssuerIdRequest_1 = require("./CommerceIssuerIdRequest");
40
+ Object.defineProperty(exports, "CommerceIssuerIdRequest", { enumerable: true, get: function () { return CommerceIssuerIdRequest_1.CommerceIssuerIdRequest; } });
41
+ var CommerceModifyRequest_1 = require("./CommerceModifyRequest");
42
+ Object.defineProperty(exports, "CommerceModifyRequest", { enumerable: true, get: function () { return CommerceModifyRequest_1.CommerceModifyRequest; } });
43
+ var CommerceRequest_1 = require("./CommerceRequest");
44
+ Object.defineProperty(exports, "CommerceRequest", { enumerable: true, get: function () { return CommerceRequest_1.CommerceRequest; } });
45
+ var CreateBankInstrumentRequest_1 = require("./CreateBankInstrumentRequest");
46
+ Object.defineProperty(exports, "CreateBankInstrumentRequest", { enumerable: true, get: function () { return CreateBankInstrumentRequest_1.CreateBankInstrumentRequest; } });
35
47
  var DeleteInstrumentRequest_1 = require("./DeleteInstrumentRequest");
36
48
  Object.defineProperty(exports, "DeleteInstrumentRequest", { enumerable: true, get: function () { return DeleteInstrumentRequest_1.DeleteInstrumentRequest; } });
37
- var DisplayOptionsDto_1 = require("./DisplayOptionsDto");
38
- Object.defineProperty(exports, "DisplayOptionsDto", { enumerable: true, get: function () { return DisplayOptionsDto_1.DisplayOptionsDto; } });
39
- var ExpressCheckoutSettingsDto_1 = require("./ExpressCheckoutSettingsDto");
40
- Object.defineProperty(exports, "ExpressCheckoutSettingsDto", { enumerable: true, get: function () { return ExpressCheckoutSettingsDto_1.ExpressCheckoutSettingsDto; } });
49
+ var DisplayOptions_1 = require("./DisplayOptions");
50
+ Object.defineProperty(exports, "DisplayOptions", { enumerable: true, get: function () { return DisplayOptions_1.DisplayOptions; } });
51
+ var ExpressCheckoutSettings_1 = require("./ExpressCheckoutSettings");
52
+ Object.defineProperty(exports, "ExpressCheckoutSettingsDto", { enumerable: true, get: function () { return ExpressCheckoutSettings_1.ExpressCheckoutSettingsDto; } });
41
53
  var FieldInfoPaymentProcessors_1 = require("./FieldInfoPaymentProcessors");
42
54
  Object.defineProperty(exports, "FieldInfoPaymentProcessors", { enumerable: true, get: function () { return FieldInfoPaymentProcessors_1.FieldInfoPaymentProcessors; } });
43
55
  var FieldType_1 = require("./FieldType");
@@ -64,6 +76,8 @@ var InstrumentCallback_1 = require("./InstrumentCallback");
64
76
  Object.defineProperty(exports, "InstrumentCallback", { enumerable: true, get: function () { return InstrumentCallback_1.InstrumentCallback; } });
65
77
  var InstrumentWithMetadata_1 = require("./InstrumentWithMetadata");
66
78
  Object.defineProperty(exports, "InstrumentWithMetadata", { enumerable: true, get: function () { return InstrumentWithMetadata_1.InstrumentWithMetadata; } });
79
+ var IssuerData_1 = require("./IssuerData");
80
+ Object.defineProperty(exports, "IssuerData", { enumerable: true, get: function () { return IssuerData_1.IssuerData; } });
67
81
  var IssuerProcessor_1 = require("./IssuerProcessor");
68
82
  Object.defineProperty(exports, "IssuerProcessor", { enumerable: true, get: function () { return IssuerProcessor_1.IssuerProcessor; } });
69
83
  var IssuerRequest_1 = require("./IssuerRequest");
@@ -96,17 +110,21 @@ var SignedObject_1 = require("./SignedObject");
96
110
  Object.defineProperty(exports, "SignedObject", { enumerable: true, get: function () { return SignedObject_1.SignedObject; } });
97
111
  var StateObject_1 = require("./StateObject");
98
112
  Object.defineProperty(exports, "StateObject", { enumerable: true, get: function () { return StateObject_1.StateObject; } });
99
- var TokenizationSettingsDto_1 = require("./TokenizationSettingsDto");
100
- Object.defineProperty(exports, "TokenizationSettingsDto", { enumerable: true, get: function () { return TokenizationSettingsDto_1.TokenizationSettingsDto; } });
113
+ var TokenizationSettings_1 = require("./TokenizationSettings");
114
+ Object.defineProperty(exports, "TokenizationSettings", { enumerable: true, get: function () { return TokenizationSettings_1.TokenizationSettings; } });
101
115
  var Transaction_1 = require("./Transaction");
102
116
  Object.defineProperty(exports, "Transaction", { enumerable: true, get: function () { return Transaction_1.Transaction; } });
103
117
  var TransactionCallback_1 = require("./TransactionCallback");
104
118
  Object.defineProperty(exports, "TransactionCallback", { enumerable: true, get: function () { return TransactionCallback_1.TransactionCallback; } });
119
+ var TransactionQuery_1 = require("./TransactionQuery");
120
+ Object.defineProperty(exports, "TransactionQuery", { enumerable: true, get: function () { return TransactionQuery_1.TransactionQuery; } });
105
121
  var TransactionResult_1 = require("./TransactionResult");
106
122
  Object.defineProperty(exports, "TransactionResult", { enumerable: true, get: function () { return TransactionResult_1.TransactionResult; } });
107
123
  var TransactionType_1 = require("./TransactionType");
108
124
  Object.defineProperty(exports, "TransactionType", { enumerable: true, get: function () { return TransactionType_1.TransactionType; } });
109
- var UIOptionsDto_1 = require("./UIOptionsDto");
110
- Object.defineProperty(exports, "UIOptionsDto", { enumerable: true, get: function () { return UIOptionsDto_1.UIOptionsDto; } });
111
- var WebFormSettingsDto_1 = require("./WebFormSettingsDto");
112
- Object.defineProperty(exports, "WebFormSettingsDto", { enumerable: true, get: function () { return WebFormSettingsDto_1.WebFormSettingsDto; } });
125
+ var UIOptions_1 = require("./UIOptions");
126
+ Object.defineProperty(exports, "UIOptions", { enumerable: true, get: function () { return UIOptions_1.UIOptions; } });
127
+ var WebFormSettings_1 = require("./WebFormSettings");
128
+ Object.defineProperty(exports, "WebFormSettings", { enumerable: true, get: function () { return WebFormSettings_1.WebFormSettings; } });
129
+ var plexo_error_enum_1 = require("../enums/plexo-error-enum");
130
+ Object.defineProperty(exports, "PlexoErrorEnum", { enumerable: true, get: function () { return plexo_error_enum_1.PlexoErrorEnum; } });
@@ -1,5 +1,9 @@
1
- export declare type IssuerData = {
1
+ import { FixedCustomData } from './FixedCustomData';
2
+ export declare class IssuerData extends FixedCustomData {
2
3
  issuerId: number;
3
4
  commerceId: number;
5
+ paymentFacilitatorCommerceId?: number;
6
+ paymentFacilitatorId?: number;
4
7
  metadata: any;
5
- };
8
+ constructor(issuerId: number, commerceId: number, plexoClientName: string, plexoCertificatePath: string, paymentFacilitatorCommerceId: number, paymentFacilitatorId: number, metadata: any);
9
+ }
@@ -1,2 +1,33 @@
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.IssuerData = void 0;
19
+ var FixedCustomData_1 = require("./FixedCustomData");
20
+ var IssuerData = /** @class */ (function (_super) {
21
+ __extends(IssuerData, _super);
22
+ function IssuerData(issuerId, commerceId, plexoClientName, plexoCertificatePath, paymentFacilitatorCommerceId, paymentFacilitatorId, metadata) {
23
+ var _this = _super.call(this, plexoClientName, plexoCertificatePath) || this;
24
+ _this.issuerId = issuerId;
25
+ _this.commerceId = commerceId;
26
+ _this.paymentFacilitatorCommerceId = paymentFacilitatorCommerceId;
27
+ _this.paymentFacilitatorId = paymentFacilitatorId;
28
+ _this.metadata = metadata;
29
+ return _this;
30
+ }
31
+ return IssuerData;
32
+ }(FixedCustomData_1.FixedCustomData));
33
+ exports.IssuerData = IssuerData;
@@ -1,7 +1,8 @@
1
1
  import { FinancialInclusion } from './FinancialInclusion';
2
+ import { FixedCustomData } from './FixedCustomData';
2
3
  import { Item } from './Item';
3
4
  import { PaymentInstrumentInput } from './PaymentInstrumentInput';
4
- export declare class PaymentRequest {
5
+ export declare class PaymentRequest extends FixedCustomData {
5
6
  clientReferenceId: string;
6
7
  paymentInstrumentInput: PaymentInstrumentInput;
7
8
  items: Item[];
@@ -13,5 +14,5 @@ export declare class PaymentRequest {
13
14
  optionalMetadata?: string;
14
15
  optionalProvidedCode?: string;
15
16
  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
+ constructor(clientReferenceId: string, paymentInstrumentInput: PaymentInstrumentInput, items: Item[], currencyId: number, installments: number, financialInclusion: FinancialInclusion, plexoClientName: string, plexoCertificatePath: string, tipAmount?: number, optionalCommerceId?: number, optionalMetadata?: string, optionalProvidedCode?: string, optionalExternalPaymentInfo?: string);
17
18
  }