@houlak/plexo-sdk 0.1.8 → 0.1.9-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 (136) hide show
  1. package/lib/handler/PlexoHandler.d.ts +23 -12
  2. package/lib/handler/PlexoHandler.js +183 -33
  3. package/lib/handler/services/evaluator.service.js +6 -6
  4. package/lib/index.d.ts +1 -0
  5. package/lib/index.js +4 -1
  6. package/lib/lib/logger.lib.js +3 -3
  7. package/lib/sdk/IPaymentGatewayClient.d.ts +10 -9
  8. package/lib/sdk/PaymentGatewayClient.d.ts +13 -12
  9. package/lib/sdk/PaymentGatewayClient.js +278 -197
  10. package/lib/sdk/PaymentGatewayMock.d.ts +2 -2
  11. package/lib/sdk/PaymentGatewayMock.js +14 -20
  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 +74 -205
  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 +27 -24
  20. package/lib/sdk/models/Authorization.d.ts +4 -5
  21. package/lib/sdk/models/Authorization.js +7 -1
  22. package/lib/sdk/models/BuiltInPagesOptions.d.ts +5 -0
  23. package/lib/sdk/models/BuiltInPagesOptions.js +11 -0
  24. package/lib/sdk/models/CancelRequest.d.ts +1 -1
  25. package/lib/sdk/models/CancelRequest.js +2 -2
  26. package/lib/sdk/models/CodeRequest.d.ts +4 -2
  27. package/lib/sdk/models/CodeRequest.js +28 -0
  28. package/lib/sdk/models/CommerceIdRequest.d.ts +4 -2
  29. package/lib/sdk/models/CommerceIdRequest.js +27 -0
  30. package/lib/sdk/models/CommerceIssuerIdRequest.d.ts +4 -2
  31. package/lib/sdk/models/CommerceIssuerIdRequest.js +28 -0
  32. package/lib/sdk/models/CommerceModifyRequest.d.ts +4 -2
  33. package/lib/sdk/models/CommerceModifyRequest.js +28 -0
  34. package/lib/sdk/models/CommerceRequest.d.ts +3 -2
  35. package/lib/sdk/models/CommerceRequest.js +8 -0
  36. package/lib/sdk/models/CreateBankInstrumentRequest.d.ts +4 -2
  37. package/lib/sdk/models/CreateBankInstrumentRequest.js +29 -0
  38. package/lib/sdk/models/DisplayOptions.d.ts +8 -0
  39. package/lib/sdk/models/DisplayOptions.js +14 -0
  40. package/lib/sdk/models/ExpressCheckoutSettings.d.ts +7 -0
  41. package/lib/sdk/models/ExpressCheckoutSettings.js +11 -0
  42. package/lib/sdk/models/FieldType.d.ts +6 -0
  43. package/lib/sdk/models/FieldType.js +6 -0
  44. package/lib/sdk/models/FixedCustomData.d.ts +6 -0
  45. package/lib/sdk/models/FixedCustomData.js +12 -0
  46. package/lib/sdk/models/GenericSignedObject.d.ts +3 -3
  47. package/lib/sdk/models/GenericSignedObject.js +3 -3
  48. package/lib/sdk/models/GenericStateObject.d.ts +2 -2
  49. package/lib/sdk/models/GenericStateObject.js +3 -3
  50. package/lib/sdk/models/IndexSDK.d.ts +8 -6
  51. package/lib/sdk/models/IndexSDK.js +32 -14
  52. package/lib/sdk/models/InstrumentCallback.d.ts +5 -5
  53. package/lib/sdk/models/InstrumentCallback.js +5 -5
  54. package/lib/sdk/models/InstrumentWithMetadata.d.ts +3 -3
  55. package/lib/sdk/models/InstrumentWithMetadata.js +3 -3
  56. package/lib/sdk/models/IssuerData.d.ts +6 -2
  57. package/lib/sdk/models/IssuerData.js +31 -0
  58. package/lib/sdk/models/PaymentInstrument.d.ts +11 -11
  59. package/lib/sdk/models/PaymentRequest.d.ts +3 -2
  60. package/lib/sdk/models/PaymentRequest.js +33 -14
  61. package/lib/sdk/models/Reference.d.ts +4 -2
  62. package/lib/sdk/models/Reference.js +25 -5
  63. package/lib/sdk/models/Reserve.d.ts +1 -1
  64. package/lib/sdk/models/Reserve.js +2 -2
  65. package/lib/sdk/models/ReserveRequest.d.ts +1 -1
  66. package/lib/sdk/models/ReserveRequest.js +2 -2
  67. package/lib/sdk/models/SignedObject.d.ts +3 -3
  68. package/lib/sdk/models/SignedObject.js +3 -3
  69. package/lib/sdk/models/StateObject.d.ts +2 -2
  70. package/lib/sdk/models/StateObject.js +2 -2
  71. package/lib/sdk/models/TokenizationSettings.d.ts +5 -0
  72. package/lib/sdk/models/TokenizationSettings.js +10 -0
  73. package/lib/sdk/models/Transaction.d.ts +3 -3
  74. package/lib/sdk/models/TransactionCallback.d.ts +4 -4
  75. package/lib/sdk/models/TransactionCallback.js +3 -3
  76. package/lib/sdk/models/TransactionQuery.d.ts +4 -2
  77. package/lib/sdk/models/TransactionQuery.js +30 -1
  78. package/lib/sdk/models/TransactionsCSV.d.ts +3 -0
  79. package/lib/sdk/models/TransactionsCSV.js +2 -0
  80. package/lib/sdk/models/UIOptions.d.ts +8 -0
  81. package/lib/sdk/models/UIOptions.js +13 -0
  82. package/lib/sdk/models/WebFormSettings.d.ts +9 -0
  83. package/lib/sdk/models/WebFormSettings.js +12 -0
  84. package/lib/sdk/models/webhook/Address.d.ts +9 -0
  85. package/lib/sdk/models/webhook/Address.js +15 -0
  86. package/lib/sdk/models/webhook/CancellationInfo.d.ts +11 -0
  87. package/lib/sdk/models/webhook/CancellationInfo.js +17 -0
  88. package/lib/sdk/models/webhook/Client.d.ts +9 -0
  89. package/lib/sdk/models/webhook/Client.js +14 -0
  90. package/lib/sdk/models/webhook/Commerce.d.ts +6 -0
  91. package/lib/sdk/models/webhook/Commerce.js +12 -0
  92. package/lib/sdk/models/webhook/Currency.d.ts +8 -0
  93. package/lib/sdk/models/webhook/Currency.js +14 -0
  94. package/lib/sdk/models/webhook/Customer.d.ts +17 -0
  95. package/lib/sdk/models/webhook/Customer.js +22 -0
  96. package/lib/sdk/models/webhook/Document.d.ts +5 -0
  97. package/lib/sdk/models/webhook/Document.js +11 -0
  98. package/lib/sdk/models/webhook/IndexWebhook.d.ts +21 -0
  99. package/lib/sdk/models/webhook/IndexWebhook.js +45 -0
  100. package/lib/sdk/models/webhook/Instrument.d.ts +17 -0
  101. package/lib/sdk/models/webhook/Instrument.js +21 -0
  102. package/lib/sdk/models/webhook/Issuer.d.ts +8 -0
  103. package/lib/sdk/models/webhook/Issuer.js +14 -0
  104. package/lib/sdk/models/webhook/IssuerData.d.ts +8 -0
  105. package/lib/sdk/models/webhook/IssuerData.js +13 -0
  106. package/lib/sdk/models/webhook/IssuerDto.d.ts +5 -0
  107. package/lib/sdk/models/webhook/IssuerDto.js +11 -0
  108. package/lib/sdk/models/webhook/Item.d.ts +14 -0
  109. package/lib/sdk/models/webhook/Item.js +19 -0
  110. package/lib/sdk/models/webhook/PartialRefundsInfo.d.ts +12 -0
  111. package/lib/sdk/models/webhook/PartialRefundsInfo.js +18 -0
  112. package/lib/sdk/models/webhook/PaymentFacilitator.d.ts +8 -0
  113. package/lib/sdk/models/webhook/PaymentFacilitator.js +13 -0
  114. package/lib/sdk/models/webhook/PaymentProcessor.d.ts +5 -0
  115. package/lib/sdk/models/webhook/PaymentProcessor.js +11 -0
  116. package/lib/sdk/models/webhook/PurchaseInfo.d.ts +16 -0
  117. package/lib/sdk/models/webhook/PurchaseInfo.js +22 -0
  118. package/lib/sdk/models/webhook/RefundInfo.d.ts +12 -0
  119. package/lib/sdk/models/webhook/RefundInfo.js +18 -0
  120. package/lib/sdk/models/webhook/ReserveInfo.d.ts +13 -0
  121. package/lib/sdk/models/webhook/ReserveInfo.js +19 -0
  122. package/lib/sdk/models/webhook/Shipping.d.ts +7 -0
  123. package/lib/sdk/models/webhook/Shipping.js +12 -0
  124. package/lib/sdk/models/webhook/Transaction.d.ts +31 -0
  125. package/lib/sdk/models/webhook/Transaction.js +36 -0
  126. package/lib/sdk/models/webhook/TransactionResult.d.ts +5 -0
  127. package/lib/sdk/models/webhook/TransactionResult.js +10 -0
  128. package/lib/sdk/models/webhook/index.d.ts +21 -0
  129. package/lib/sdk/models/webhook/index.js +45 -0
  130. package/lib/utils/boolean.utils.d.ts +4 -0
  131. package/lib/utils/boolean.utils.js +53 -0
  132. package/lib/utils/case.util.d.ts +4 -0
  133. package/lib/utils/case.util.js +61 -0
  134. package/lib/utils/index.d.ts +1 -0
  135. package/lib/utils/index.js +5 -0
  136. package/package.json +3 -3
@@ -49,16 +49,16 @@ var issuerMock = {
49
49
  fields: [fieldMock],
50
50
  };
51
51
  var paymentInstrumentMock = {
52
- InstrumentToken: 'token',
53
- Name: 'mockedInstrument',
54
- Issuer: issuerMock,
55
- SupportedCurrencies: [currencyMock],
56
- Status: IndexSDK_1.CardStatus.Ok,
57
- InstrumentExpirationUTC: 1919276061,
58
- CreditLimits: [amountLimitMock],
59
- AdditionalRequirements: [timeLimitMock],
60
- InstrumentInformation: null,
61
- SessionCreationId: 'MockedId',
52
+ instrumentToken: 'token',
53
+ name: 'mockedInstrument',
54
+ issuer: issuerMock,
55
+ supportedCurrencies: [currencyMock],
56
+ status: IndexSDK_1.CardStatus.Ok,
57
+ instrumentExpirationUTC: 1919276061,
58
+ creditLimits: [amountLimitMock],
59
+ additionalRequirements: [timeLimitMock],
60
+ instrumentInformation: null,
61
+ sessionCreationId: 'MockedId',
62
62
  };
63
63
  var financialInclusionMock = {
64
64
  isApplied: true,
@@ -86,6 +86,9 @@ var paymentCodeMock = {
86
86
  var issuerDataMock = {
87
87
  commerceId: 1891,
88
88
  issuerId: 4,
89
+ plexoCertificatePassword: '2LlCCZSF04LgtJuWge',
90
+ plexoClientName: 'fixed',
91
+ plexoCertificatePath: './certificates',
89
92
  metadata: {
90
93
  providerCommerceNumber: '12345',
91
94
  terminalNumber: '12345',
@@ -110,9 +113,9 @@ var transactionMock = {
110
113
  invoiceNumber: '1',
111
114
  financialInclusion: financialInclusionMock,
112
115
  transactions: {
113
- Purchase: transactionInfoMock,
114
- Reserve: transactionInfoMock,
115
- Cancel: transactionInfoMock,
116
+ purchase: transactionInfoMock,
117
+ reserve: transactionInfoMock,
118
+ cancel: transactionInfoMock,
116
119
  },
117
120
  fieldInformation: [],
118
121
  isAsyncPayment: false,
@@ -138,23 +141,23 @@ var issuerProcessorMock = {
138
141
  paymentProcessors: [paymentProcessorMock],
139
142
  };
140
143
  var clientSignedResponseMock = {
141
- Signature: 'signature',
142
- Object: {
143
- Fingerprint: 'fingerprint',
144
- UtcUnixTimeExpiration: 1919276061,
145
- Object: {
144
+ signature: 'signature',
145
+ object: {
146
+ fingerprint: 'fingerprint',
147
+ utcUnixTimeExpiration: 1919276061,
148
+ object: {
146
149
  client: 'PlexoMock',
147
150
  resultCode: IndexSDK_1.ResultCodes.Ok,
148
151
  },
149
152
  },
150
153
  };
151
- var transactionCallbackMock = __assign(__assign({}, transactionMock), { Client: 'PlexoMock' });
154
+ var transactionCallbackMock = __assign(__assign({}, transactionMock), { client: 'PlexoMock' });
152
155
  var instrumentCallbackMock = {
153
- Action: IndexSDK_1.ActionType.RegisterInstrument,
154
- Client: 'PlexoMock',
155
- SessionId: (0, crypto_1.randomUUID)(),
156
- OptionalMetadata: 'metadata',
157
- PaymentInstrument: paymentInstrumentMock,
156
+ action: IndexSDK_1.ActionType.RegisterInstrument,
157
+ client: 'PlexoMock',
158
+ sessionId: (0, crypto_1.randomUUID)(),
159
+ optionalMetadata: 'metadata',
160
+ paymentInstrument: paymentInstrumentMock,
158
161
  };
159
162
  exports.mocks = {
160
163
  currencyMock: currencyMock,
@@ -1,18 +1,17 @@
1
- import { ESMap } from 'typescript';
2
1
  import { AuthorizationType } from '..';
3
2
  import { ActionType } from './ActionType';
4
3
  import { AuthorizationInfo } from './AuthorizationInfo';
5
- import { WebFormSettingsDto } from './WebFormSettingsDto';
4
+ import { WebFormSettings } from './WebFormSettings';
6
5
  export declare class Authorization extends AuthorizationInfo {
7
6
  action: ActionType;
8
7
  redirectUri: string;
9
8
  limitIssuers: string[];
10
9
  optionalCommerceId: number;
10
+ webFormSettings?: WebFormSettings;
11
11
  doNotUseCallback?: boolean;
12
12
  clientInformation?: any;
13
13
  optionalMetadata?: string;
14
- promotionInfoIssuers?: ESMap<string, string>;
14
+ promotionInfoIssuers?: Record<string, string>;
15
15
  extendableInstrumentToken?: string;
16
- webFormSettings?: WebFormSettingsDto;
17
- constructor(action: ActionType, redirectUri: string, limitIssuers: string[], optionalCommerceId: number, type: AuthorizationType, metaReference: string);
16
+ constructor(action: ActionType, redirectUri: string, limitIssuers: string[], optionalCommerceId: number, type: AuthorizationType, metaReference: string, webFormSettings?: WebFormSettings, doNotUseCallback?: boolean, clientInformation?: any, optionalMetadata?: string, promotionInfoIssuers?: Record<string, string>, extendableInstrumentToken?: string);
18
17
  }
@@ -19,12 +19,18 @@ exports.Authorization = void 0;
19
19
  var AuthorizationInfo_1 = require("./AuthorizationInfo");
20
20
  var Authorization = /** @class */ (function (_super) {
21
21
  __extends(Authorization, _super);
22
- function Authorization(action, redirectUri, limitIssuers, optionalCommerceId, type, metaReference) {
22
+ function Authorization(action, redirectUri, limitIssuers, optionalCommerceId, type, metaReference, webFormSettings, doNotUseCallback, clientInformation, optionalMetadata, promotionInfoIssuers, extendableInstrumentToken) {
23
23
  var _this = _super.call(this, type, metaReference) || this;
24
24
  _this.action = action;
25
25
  _this.redirectUri = redirectUri;
26
26
  _this.limitIssuers = limitIssuers;
27
27
  _this.optionalCommerceId = optionalCommerceId;
28
+ _this.webFormSettings = webFormSettings;
29
+ _this.doNotUseCallback = doNotUseCallback;
30
+ _this.clientInformation = clientInformation;
31
+ _this.optionalMetadata = optionalMetadata;
32
+ _this.promotionInfoIssuers = promotionInfoIssuers;
33
+ _this.extendableInstrumentToken = extendableInstrumentToken;
28
34
  return _this;
29
35
  }
30
36
  return Authorization;
@@ -0,0 +1,5 @@
1
+ export declare class BuiltInPagesOptions {
2
+ checkoutSuccessPage: boolean;
3
+ checkoutErrorPage: boolean;
4
+ constructor(checkoutSuccessPage: boolean, checkoutErrorPage: boolean);
5
+ }
@@ -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
- 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, 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
- 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, 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
- 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, 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
- 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, 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,4 @@
1
- export declare type CommerceRequest = {
1
+ export declare class CommerceRequest {
2
2
  name: string;
3
- };
3
+ constructor(name: string);
4
+ }
@@ -1,2 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CommerceRequest = void 0;
4
+ var CommerceRequest = /** @class */ (function () {
5
+ function CommerceRequest(name) {
6
+ this.name = name;
7
+ }
8
+ return CommerceRequest;
9
+ }());
10
+ 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, 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;
@@ -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,6 @@
1
+ export declare class FixedCustomData {
2
+ plexoClientName: string;
3
+ plexoCertificatePassword: string;
4
+ plexoCertificatePath: string;
5
+ constructor(plexoClientName: string, plexoCertificatePassword: string, plexoCertificatePath: string);
6
+ }
@@ -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
- Object: GenericStateObject<T>;
4
- Signature: string;
5
- constructor(Object: GenericStateObject<T>, Signature: string);
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(Object, Signature) {
6
- this.Object = Object;
7
- this.Signature = Signature;
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
- Object: T;
4
- constructor(Object: T, Fingerprint: string, UTCUnixTimeExpiration: number);
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(Object, Fingerprint, UTCUnixTimeExpiration) {
23
- var _this = _super.call(this, Fingerprint, UTCUnixTimeExpiration) || this;
24
- _this.Object = Object;
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 { 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';