@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.
Files changed (138) 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.js +3 -3
  6. package/lib/sdk/IPaymentGatewayClient.d.ts +8 -7
  7. package/lib/sdk/PaymentGatewayClient.d.ts +8 -7
  8. package/lib/sdk/PaymentGatewayClient.js +45 -45
  9. package/lib/sdk/PaymentGatewayMock.d.ts +2 -2
  10. package/lib/sdk/PaymentGatewayMock.js +5 -11
  11. package/lib/sdk/enums/plexo-error-enum.d.ts +1 -0
  12. package/lib/sdk/enums/plexo-error-enum.js +1 -0
  13. package/lib/sdk/helpers/signature/signatureHelper.d.ts +3 -7
  14. package/lib/sdk/helpers/signature/signatureHelper.js +74 -205
  15. package/lib/sdk/helpers/signature/signatureUtils.d.ts +10 -0
  16. package/lib/sdk/helpers/signature/signatureUtils.js +155 -0
  17. package/lib/sdk/helpers/signature/stringifyWithFloats.js +2 -0
  18. package/lib/sdk/mocks/mocks.js +24 -21
  19. package/lib/sdk/models/Authorization.d.ts +4 -5
  20. package/lib/sdk/models/Authorization.js +8 -2
  21. package/lib/sdk/models/AuthorizationInfo.d.ts +3 -2
  22. package/lib/sdk/models/AuthorizationInfo.js +24 -5
  23. package/lib/sdk/models/BuiltInPagesOptions.d.ts +5 -0
  24. package/lib/sdk/models/BuiltInPagesOptions.js +11 -0
  25. package/lib/sdk/models/CancelRequest.d.ts +1 -1
  26. package/lib/sdk/models/CancelRequest.js +2 -2
  27. package/lib/sdk/models/CodeRequest.d.ts +4 -2
  28. package/lib/sdk/models/CodeRequest.js +28 -0
  29. package/lib/sdk/models/CommerceIdRequest.d.ts +4 -2
  30. package/lib/sdk/models/CommerceIdRequest.js +27 -0
  31. package/lib/sdk/models/CommerceIssuerIdRequest.d.ts +4 -2
  32. package/lib/sdk/models/CommerceIssuerIdRequest.js +28 -0
  33. package/lib/sdk/models/CommerceModifyRequest.d.ts +4 -2
  34. package/lib/sdk/models/CommerceModifyRequest.js +28 -0
  35. package/lib/sdk/models/CommerceRequest.d.ts +4 -2
  36. package/lib/sdk/models/CommerceRequest.js +27 -0
  37. package/lib/sdk/models/CreateBankInstrumentRequest.d.ts +4 -2
  38. package/lib/sdk/models/CreateBankInstrumentRequest.js +29 -0
  39. package/lib/sdk/models/DeleteInstrumentRequest.d.ts +1 -1
  40. package/lib/sdk/models/DeleteInstrumentRequest.js +2 -2
  41. package/lib/sdk/models/DisplayOptions.d.ts +8 -0
  42. package/lib/sdk/models/DisplayOptions.js +14 -0
  43. package/lib/sdk/models/ExpressCheckoutSettings.d.ts +7 -0
  44. package/lib/sdk/models/ExpressCheckoutSettings.js +11 -0
  45. package/lib/sdk/models/FieldType.d.ts +6 -0
  46. package/lib/sdk/models/FieldType.js +6 -0
  47. package/lib/sdk/models/FixedCustomData.d.ts +6 -0
  48. package/lib/sdk/models/FixedCustomData.js +12 -0
  49. package/lib/sdk/models/GenericSignedObject.d.ts +3 -3
  50. package/lib/sdk/models/GenericSignedObject.js +3 -3
  51. package/lib/sdk/models/GenericStateObject.d.ts +2 -2
  52. package/lib/sdk/models/GenericStateObject.js +3 -3
  53. package/lib/sdk/models/IndexSDK.d.ts +8 -6
  54. package/lib/sdk/models/IndexSDK.js +32 -14
  55. package/lib/sdk/models/InstrumentCallback.d.ts +5 -5
  56. package/lib/sdk/models/InstrumentCallback.js +5 -5
  57. package/lib/sdk/models/InstrumentWithMetadata.d.ts +3 -3
  58. package/lib/sdk/models/InstrumentWithMetadata.js +3 -3
  59. package/lib/sdk/models/IssuerData.d.ts +6 -2
  60. package/lib/sdk/models/IssuerData.js +31 -0
  61. package/lib/sdk/models/PaymentInstrument.d.ts +11 -11
  62. package/lib/sdk/models/PaymentRequest.d.ts +3 -2
  63. package/lib/sdk/models/PaymentRequest.js +33 -14
  64. package/lib/sdk/models/Reference.d.ts +4 -2
  65. package/lib/sdk/models/Reference.js +25 -5
  66. package/lib/sdk/models/Reserve.d.ts +1 -1
  67. package/lib/sdk/models/Reserve.js +2 -2
  68. package/lib/sdk/models/ReserveRequest.d.ts +1 -1
  69. package/lib/sdk/models/ReserveRequest.js +2 -2
  70. package/lib/sdk/models/SignedObject.d.ts +3 -3
  71. package/lib/sdk/models/SignedObject.js +3 -3
  72. package/lib/sdk/models/StateObject.d.ts +2 -2
  73. package/lib/sdk/models/StateObject.js +2 -2
  74. package/lib/sdk/models/TokenizationSettings.d.ts +5 -0
  75. package/lib/sdk/models/TokenizationSettings.js +10 -0
  76. package/lib/sdk/models/TransactionCallback.d.ts +4 -4
  77. package/lib/sdk/models/TransactionCallback.js +3 -3
  78. package/lib/sdk/models/TransactionQuery.d.ts +4 -2
  79. package/lib/sdk/models/TransactionQuery.js +30 -1
  80. package/lib/sdk/models/TransactionsCSV.d.ts +3 -0
  81. package/lib/sdk/models/TransactionsCSV.js +2 -0
  82. package/lib/sdk/models/UIOptions.d.ts +8 -0
  83. package/lib/sdk/models/UIOptions.js +13 -0
  84. package/lib/sdk/models/WebFormSettings.d.ts +9 -0
  85. package/lib/sdk/models/WebFormSettings.js +12 -0
  86. package/lib/sdk/models/webhook/Address.d.ts +9 -0
  87. package/lib/sdk/models/webhook/Address.js +15 -0
  88. package/lib/sdk/models/webhook/CancellationInfo.d.ts +11 -0
  89. package/lib/sdk/models/webhook/CancellationInfo.js +17 -0
  90. package/lib/sdk/models/webhook/Client.d.ts +9 -0
  91. package/lib/sdk/models/webhook/Client.js +14 -0
  92. package/lib/sdk/models/webhook/Commerce.d.ts +6 -0
  93. package/lib/sdk/models/webhook/Commerce.js +12 -0
  94. package/lib/sdk/models/webhook/Currency.d.ts +8 -0
  95. package/lib/sdk/models/webhook/Currency.js +14 -0
  96. package/lib/sdk/models/webhook/Customer.d.ts +17 -0
  97. package/lib/sdk/models/webhook/Customer.js +22 -0
  98. package/lib/sdk/models/webhook/Document.d.ts +5 -0
  99. package/lib/sdk/models/webhook/Document.js +11 -0
  100. package/lib/sdk/models/webhook/IndexWebhook.d.ts +21 -0
  101. package/lib/sdk/models/webhook/IndexWebhook.js +45 -0
  102. package/lib/sdk/models/webhook/Instrument.d.ts +17 -0
  103. package/lib/sdk/models/webhook/Instrument.js +21 -0
  104. package/lib/sdk/models/webhook/Issuer.d.ts +8 -0
  105. package/lib/sdk/models/webhook/Issuer.js +14 -0
  106. package/lib/sdk/models/webhook/IssuerData.d.ts +8 -0
  107. package/lib/sdk/models/webhook/IssuerData.js +13 -0
  108. package/lib/sdk/models/webhook/IssuerDto.d.ts +5 -0
  109. package/lib/sdk/models/webhook/IssuerDto.js +11 -0
  110. package/lib/sdk/models/webhook/Item.d.ts +14 -0
  111. package/lib/sdk/models/webhook/Item.js +19 -0
  112. package/lib/sdk/models/webhook/PartialRefundsInfo.d.ts +12 -0
  113. package/lib/sdk/models/webhook/PartialRefundsInfo.js +18 -0
  114. package/lib/sdk/models/webhook/PaymentFacilitator.d.ts +8 -0
  115. package/lib/sdk/models/webhook/PaymentFacilitator.js +13 -0
  116. package/lib/sdk/models/webhook/PaymentProcessor.d.ts +5 -0
  117. package/lib/sdk/models/webhook/PaymentProcessor.js +11 -0
  118. package/lib/sdk/models/webhook/PurchaseInfo.d.ts +16 -0
  119. package/lib/sdk/models/webhook/PurchaseInfo.js +22 -0
  120. package/lib/sdk/models/webhook/RefundInfo.d.ts +12 -0
  121. package/lib/sdk/models/webhook/RefundInfo.js +18 -0
  122. package/lib/sdk/models/webhook/ReserveInfo.d.ts +13 -0
  123. package/lib/sdk/models/webhook/ReserveInfo.js +19 -0
  124. package/lib/sdk/models/webhook/Shipping.d.ts +7 -0
  125. package/lib/sdk/models/webhook/Shipping.js +12 -0
  126. package/lib/sdk/models/webhook/Transaction.d.ts +31 -0
  127. package/lib/sdk/models/webhook/Transaction.js +36 -0
  128. package/lib/sdk/models/webhook/TransactionResult.d.ts +5 -0
  129. package/lib/sdk/models/webhook/TransactionResult.js +10 -0
  130. package/lib/sdk/models/webhook/index.d.ts +21 -0
  131. package/lib/sdk/models/webhook/index.js +45 -0
  132. package/lib/utils/boolean.utils.d.ts +4 -0
  133. package/lib/utils/boolean.utils.js +53 -0
  134. package/lib/utils/case.util.d.ts +4 -0
  135. package/lib/utils/case.util.js +61 -0
  136. package/lib/utils/index.d.ts +1 -0
  137. package/lib/utils/index.js +5 -0
  138. package/package.json +3 -3
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Address = void 0;
4
+ var Address = /** @class */ (function () {
5
+ function Address(city, country, line1, line2, postalCode, state) {
6
+ this.city = city;
7
+ this.country = country;
8
+ this.line1 = line1;
9
+ this.line2 = line2;
10
+ this.postalCode = postalCode;
11
+ this.state = state;
12
+ }
13
+ return Address;
14
+ }());
15
+ exports.Address = Address;
@@ -0,0 +1,11 @@
1
+ export declare class CancellationInfo {
2
+ externalId: string;
3
+ resultText: string;
4
+ authorization: string;
5
+ metadata: string;
6
+ ticket: string;
7
+ status?: number;
8
+ transactionCode?: number;
9
+ executionDate?: Date;
10
+ constructor(externalId: string, resultText: string, authorization: string, metadata: string, ticket: string, status?: number, transactionCode?: number, executionDate?: Date);
11
+ }
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CancellationInfo = void 0;
4
+ var CancellationInfo = /** @class */ (function () {
5
+ function CancellationInfo(externalId, resultText, authorization, metadata, ticket, status, transactionCode, executionDate) {
6
+ this.externalId = externalId;
7
+ this.resultText = resultText;
8
+ this.authorization = authorization;
9
+ this.metadata = metadata;
10
+ this.ticket = ticket;
11
+ this.status = status;
12
+ this.transactionCode = transactionCode;
13
+ this.executionDate = executionDate;
14
+ }
15
+ return CancellationInfo;
16
+ }());
17
+ exports.CancellationInfo = CancellationInfo;
@@ -0,0 +1,9 @@
1
+ import { Commerce } from '.';
2
+ export declare class Client {
3
+ id: number;
4
+ name: string;
5
+ sessionTimeInSeconds: number;
6
+ tier?: number;
7
+ commerce?: Commerce;
8
+ constructor(id: number, name: string, sessionTimeInSeconds: number, tier: number, commerce: Commerce);
9
+ }
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Client = void 0;
4
+ var Client = /** @class */ (function () {
5
+ function Client(id, name, sessionTimeInSeconds, tier, commerce) {
6
+ this.id = id;
7
+ this.name = name;
8
+ this.sessionTimeInSeconds = sessionTimeInSeconds;
9
+ this.tier = tier;
10
+ this.commerce = commerce;
11
+ }
12
+ return Client;
13
+ }());
14
+ exports.Client = Client;
@@ -0,0 +1,6 @@
1
+ export declare class Commerce {
2
+ id: number;
3
+ name: string;
4
+ metadata: string;
5
+ constructor(id: number, name: string, metadata: string);
6
+ }
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Commerce = void 0;
4
+ var Commerce = /** @class */ (function () {
5
+ function Commerce(id, name, metadata) {
6
+ this.id = id;
7
+ this.name = name;
8
+ this.metadata = metadata;
9
+ }
10
+ return Commerce;
11
+ }());
12
+ exports.Commerce = Commerce;
@@ -0,0 +1,8 @@
1
+ export declare class Currency {
2
+ id: number;
3
+ isoCode: string;
4
+ name: string;
5
+ plural: string;
6
+ symbol: string;
7
+ constructor(id: number, isoCode: string, name: string, plural: string, symbol: string);
8
+ }
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Currency = void 0;
4
+ var Currency = /** @class */ (function () {
5
+ function Currency(id, isoCode, name, plural, symbol) {
6
+ this.id = id;
7
+ this.isoCode = isoCode;
8
+ this.name = name;
9
+ this.plural = plural;
10
+ this.symbol = symbol;
11
+ }
12
+ return Currency;
13
+ }());
14
+ exports.Currency = Currency;
@@ -0,0 +1,17 @@
1
+ import { Address, Document, Shipping } from '.';
2
+ export declare class Customer {
3
+ firstName: string;
4
+ lastName: string;
5
+ email: string;
6
+ name: string;
7
+ id?: string;
8
+ referenceId?: string;
9
+ metadata?: string;
10
+ description?: string;
11
+ phone?: string;
12
+ document?: Document;
13
+ birthdate?: Date;
14
+ address?: Address;
15
+ shipping?: Shipping;
16
+ constructor(firstName: string, lastName: string, email: string, name: string, id?: string, referenceId?: string, metadata?: string, description?: string, phone?: string, document?: Document, birthdate?: Date, address?: Address, shipping?: Shipping);
17
+ }
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Customer = void 0;
4
+ var Customer = /** @class */ (function () {
5
+ function Customer(firstName, lastName, email, name, id, referenceId, metadata, description, phone, document, birthdate, address, shipping) {
6
+ this.firstName = firstName;
7
+ this.lastName = lastName;
8
+ this.email = email;
9
+ this.name = name;
10
+ this.id = id;
11
+ this.referenceId = referenceId;
12
+ this.metadata = metadata;
13
+ this.description = description;
14
+ this.phone = phone;
15
+ this.document = document;
16
+ this.birthdate = birthdate;
17
+ this.address = address;
18
+ this.shipping = shipping;
19
+ }
20
+ return Customer;
21
+ }());
22
+ exports.Customer = Customer;
@@ -0,0 +1,5 @@
1
+ export declare class Document {
2
+ type: number;
3
+ value: string;
4
+ constructor(type: number, value: string);
5
+ }
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Document = void 0;
4
+ var Document = /** @class */ (function () {
5
+ function Document(type, value) {
6
+ this.type = type;
7
+ this.value = value;
8
+ }
9
+ return Document;
10
+ }());
11
+ exports.Document = Document;
@@ -0,0 +1,21 @@
1
+ export { Address } from './Address';
2
+ export { CancellationInfo } from './CancellationInfo';
3
+ export { Client } from './Client';
4
+ export { Commerce } from './Commerce';
5
+ export { Currency } from './Currency';
6
+ export { Customer } from './Customer';
7
+ export { Document } from './Document';
8
+ export { Instrument } from './Instrument';
9
+ export { Issuer } from './Issuer';
10
+ export { IssuerData } from './IssuerData';
11
+ export { IssuerDto } from './IssuerDto';
12
+ export { Item } from './Item';
13
+ export { PartialRefundsInfo } from './PartialRefundsInfo';
14
+ export { PaymentFacilitator } from './PaymentFacilitator';
15
+ export { PaymentProcessor } from './PaymentProcessor';
16
+ export { PurchaseInfo } from './PurchaseInfo';
17
+ export { RefundInfo } from './RefundInfo';
18
+ export { ReserveInfo } from './ReserveInfo';
19
+ export { Shipping } from './Shipping';
20
+ export { Transaction } from './Transaction';
21
+ export { TransactionResult } from './TransactionResult';
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TransactionResult = exports.Transaction = exports.Shipping = exports.ReserveInfo = exports.RefundInfo = exports.PurchaseInfo = exports.PaymentProcessor = exports.PaymentFacilitator = exports.PartialRefundsInfo = exports.Item = exports.IssuerDto = exports.IssuerData = exports.Issuer = exports.Instrument = exports.Document = exports.Customer = exports.Currency = exports.Commerce = exports.Client = exports.CancellationInfo = exports.Address = void 0;
4
+ var Address_1 = require("./Address");
5
+ Object.defineProperty(exports, "Address", { enumerable: true, get: function () { return Address_1.Address; } });
6
+ var CancellationInfo_1 = require("./CancellationInfo");
7
+ Object.defineProperty(exports, "CancellationInfo", { enumerable: true, get: function () { return CancellationInfo_1.CancellationInfo; } });
8
+ var Client_1 = require("./Client");
9
+ Object.defineProperty(exports, "Client", { enumerable: true, get: function () { return Client_1.Client; } });
10
+ var Commerce_1 = require("./Commerce");
11
+ Object.defineProperty(exports, "Commerce", { enumerable: true, get: function () { return Commerce_1.Commerce; } });
12
+ var Currency_1 = require("./Currency");
13
+ Object.defineProperty(exports, "Currency", { enumerable: true, get: function () { return Currency_1.Currency; } });
14
+ var Customer_1 = require("./Customer");
15
+ Object.defineProperty(exports, "Customer", { enumerable: true, get: function () { return Customer_1.Customer; } });
16
+ var Document_1 = require("./Document");
17
+ Object.defineProperty(exports, "Document", { enumerable: true, get: function () { return Document_1.Document; } });
18
+ var Instrument_1 = require("./Instrument");
19
+ Object.defineProperty(exports, "Instrument", { enumerable: true, get: function () { return Instrument_1.Instrument; } });
20
+ var Issuer_1 = require("./Issuer");
21
+ Object.defineProperty(exports, "Issuer", { enumerable: true, get: function () { return Issuer_1.Issuer; } });
22
+ var IssuerData_1 = require("./IssuerData");
23
+ Object.defineProperty(exports, "IssuerData", { enumerable: true, get: function () { return IssuerData_1.IssuerData; } });
24
+ var IssuerDto_1 = require("./IssuerDto");
25
+ Object.defineProperty(exports, "IssuerDto", { enumerable: true, get: function () { return IssuerDto_1.IssuerDto; } });
26
+ var Item_1 = require("./Item");
27
+ Object.defineProperty(exports, "Item", { enumerable: true, get: function () { return Item_1.Item; } });
28
+ var PartialRefundsInfo_1 = require("./PartialRefundsInfo");
29
+ Object.defineProperty(exports, "PartialRefundsInfo", { enumerable: true, get: function () { return PartialRefundsInfo_1.PartialRefundsInfo; } });
30
+ var PaymentFacilitator_1 = require("./PaymentFacilitator");
31
+ Object.defineProperty(exports, "PaymentFacilitator", { enumerable: true, get: function () { return PaymentFacilitator_1.PaymentFacilitator; } });
32
+ var PaymentProcessor_1 = require("./PaymentProcessor");
33
+ Object.defineProperty(exports, "PaymentProcessor", { enumerable: true, get: function () { return PaymentProcessor_1.PaymentProcessor; } });
34
+ var PurchaseInfo_1 = require("./PurchaseInfo");
35
+ Object.defineProperty(exports, "PurchaseInfo", { enumerable: true, get: function () { return PurchaseInfo_1.PurchaseInfo; } });
36
+ var RefundInfo_1 = require("./RefundInfo");
37
+ Object.defineProperty(exports, "RefundInfo", { enumerable: true, get: function () { return RefundInfo_1.RefundInfo; } });
38
+ var ReserveInfo_1 = require("./ReserveInfo");
39
+ Object.defineProperty(exports, "ReserveInfo", { enumerable: true, get: function () { return ReserveInfo_1.ReserveInfo; } });
40
+ var Shipping_1 = require("./Shipping");
41
+ Object.defineProperty(exports, "Shipping", { enumerable: true, get: function () { return Shipping_1.Shipping; } });
42
+ var Transaction_1 = require("./Transaction");
43
+ Object.defineProperty(exports, "Transaction", { enumerable: true, get: function () { return Transaction_1.Transaction; } });
44
+ var TransactionResult_1 = require("./TransactionResult");
45
+ Object.defineProperty(exports, "TransactionResult", { enumerable: true, get: function () { return TransactionResult_1.TransactionResult; } });
@@ -0,0 +1,17 @@
1
+ import { CardStatus } from '../CardStatus';
2
+ import { IssuerDto } from '.';
3
+ export declare class Instrument {
4
+ token: string;
5
+ name: string;
6
+ type: string;
7
+ issuer: IssuerDto;
8
+ expMonth: number;
9
+ expYear: number;
10
+ expInUtc: number;
11
+ created: Date;
12
+ status: CardStatus;
13
+ tokenizationType: string;
14
+ metadata: string;
15
+ userId?: string;
16
+ constructor(token: string, name: string, type: string, issuer: IssuerDto, expMonth: number, expYear: number, expInUtc: number, created: Date, status: CardStatus, tokenizationType: string, metadata: string, userId: string);
17
+ }
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Instrument = void 0;
4
+ var Instrument = /** @class */ (function () {
5
+ function Instrument(token, name, type, issuer, expMonth, expYear, expInUtc, created, status, tokenizationType, metadata, userId) {
6
+ this.token = token;
7
+ this.name = name;
8
+ this.type = type;
9
+ this.issuer = issuer;
10
+ this.expMonth = expMonth;
11
+ this.expYear = expYear;
12
+ this.expInUtc = expInUtc;
13
+ this.created = created;
14
+ this.status = status;
15
+ this.tokenizationType = tokenizationType;
16
+ this.metadata = metadata;
17
+ this.userId = userId;
18
+ }
19
+ return Instrument;
20
+ }());
21
+ exports.Instrument = Instrument;
@@ -0,0 +1,8 @@
1
+ export declare class Issuer {
2
+ id: number;
3
+ code: string;
4
+ name: string;
5
+ pictureUrl: string;
6
+ type: string;
7
+ constructor(id: number, code: string, name: string, pictureUrl: string, type: string);
8
+ }
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Issuer = void 0;
4
+ var Issuer = /** @class */ (function () {
5
+ function Issuer(id, code, name, pictureUrl, type) {
6
+ this.id = id;
7
+ this.code = code;
8
+ this.name = name;
9
+ this.pictureUrl = pictureUrl;
10
+ this.type = type;
11
+ }
12
+ return Issuer;
13
+ }());
14
+ exports.Issuer = Issuer;
@@ -0,0 +1,8 @@
1
+ export declare class IssuerData {
2
+ issuerId: number;
3
+ commerceId: number;
4
+ paymentFacilitatorCommerceId?: number;
5
+ paymentFacilitatorId?: number;
6
+ metadata: string;
7
+ constructor(issuerId: number, commerceId: number, paymentFacilitatorCommerceId: number, metadata: string);
8
+ }
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.IssuerData = void 0;
4
+ var IssuerData = /** @class */ (function () {
5
+ function IssuerData(issuerId, commerceId, paymentFacilitatorCommerceId, metadata) {
6
+ this.issuerId = issuerId;
7
+ this.commerceId = commerceId;
8
+ this.paymentFacilitatorCommerceId = paymentFacilitatorCommerceId;
9
+ this.metadata = metadata;
10
+ }
11
+ return IssuerData;
12
+ }());
13
+ exports.IssuerData = IssuerData;
@@ -0,0 +1,5 @@
1
+ export declare class IssuerDto {
2
+ id: string;
3
+ name: string;
4
+ constructor(id: string, name: string);
5
+ }
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.IssuerDto = void 0;
4
+ var IssuerDto = /** @class */ (function () {
5
+ function IssuerDto(id, name) {
6
+ this.id = id;
7
+ this.name = name;
8
+ }
9
+ return IssuerDto;
10
+ }());
11
+ exports.IssuerDto = IssuerDto;
@@ -0,0 +1,14 @@
1
+ import { Currency } from '.';
2
+ export declare class Item {
3
+ id: string;
4
+ transactionId: string;
5
+ externalId: string;
6
+ amount: number;
7
+ name: string;
8
+ description: string;
9
+ quantity: number;
10
+ metadata: string;
11
+ creationDate?: Date;
12
+ currency: Currency;
13
+ constructor(id: string, transactionId: string, externalId: string, amount: number, name: string, description: string, quantity: number, metadata: string, creationDate: Date, currency: Currency);
14
+ }
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Item = void 0;
4
+ var Item = /** @class */ (function () {
5
+ function Item(id, transactionId, externalId, amount, name, description, quantity, metadata, creationDate, currency) {
6
+ this.id = id;
7
+ this.transactionId = transactionId;
8
+ this.externalId = externalId;
9
+ this.amount = amount;
10
+ this.name = name;
11
+ this.description = description;
12
+ this.quantity = quantity;
13
+ this.metadata = metadata;
14
+ this.creationDate = creationDate;
15
+ this.currency = currency;
16
+ }
17
+ return Item;
18
+ }());
19
+ exports.Item = Item;
@@ -0,0 +1,12 @@
1
+ export declare class PartialRefundsInfo {
2
+ amount: number;
3
+ status: number;
4
+ externalId: string;
5
+ transactionCode: number;
6
+ resultText: string;
7
+ executionDate: Date;
8
+ authorization: string;
9
+ metadata: string;
10
+ ticket: string;
11
+ constructor(amount: number, status: number, externalId: string, transactionCode: number, resultText: string, executionDate: Date, authorization: string, metadata: string, ticket: string);
12
+ }
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PartialRefundsInfo = void 0;
4
+ var PartialRefundsInfo = /** @class */ (function () {
5
+ function PartialRefundsInfo(amount, status, externalId, transactionCode, resultText, executionDate, authorization, metadata, ticket) {
6
+ this.amount = amount;
7
+ this.status = status;
8
+ this.externalId = externalId;
9
+ this.transactionCode = transactionCode;
10
+ this.resultText = resultText;
11
+ this.executionDate = executionDate;
12
+ this.authorization = authorization;
13
+ this.metadata = metadata;
14
+ this.ticket = ticket;
15
+ }
16
+ return PartialRefundsInfo;
17
+ }());
18
+ exports.PartialRefundsInfo = PartialRefundsInfo;
@@ -0,0 +1,8 @@
1
+ import { Client } from '.';
2
+ export declare class PaymentFacilitator {
3
+ id: number;
4
+ name: string;
5
+ clientId: number;
6
+ client: Client;
7
+ constructor(id: number, name: string, clientId: number, client: Client);
8
+ }
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PaymentFacilitator = void 0;
4
+ var PaymentFacilitator = /** @class */ (function () {
5
+ function PaymentFacilitator(id, name, clientId, client) {
6
+ this.id = id;
7
+ this.name = name;
8
+ this.clientId = clientId;
9
+ this.client = client;
10
+ }
11
+ return PaymentFacilitator;
12
+ }());
13
+ exports.PaymentFacilitator = PaymentFacilitator;
@@ -0,0 +1,5 @@
1
+ export declare class PaymentProcessor {
2
+ id?: number;
3
+ acquirer: string;
4
+ constructor(id: number, acquirer: string);
5
+ }
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PaymentProcessor = void 0;
4
+ var PaymentProcessor = /** @class */ (function () {
5
+ function PaymentProcessor(id, acquirer) {
6
+ this.id = id;
7
+ this.acquirer = acquirer;
8
+ }
9
+ return PaymentProcessor;
10
+ }());
11
+ exports.PaymentProcessor = PaymentProcessor;
@@ -0,0 +1,16 @@
1
+ export declare class PurchaseInfo {
2
+ externalId: string;
3
+ resultText: string;
4
+ authorization: string;
5
+ ticket: string;
6
+ metadata: string;
7
+ appliedLaw: number;
8
+ discount: number;
9
+ taxAmount?: number;
10
+ commitFinalAmount?: number;
11
+ status?: number;
12
+ executionDate?: Date;
13
+ expirationDate?: Date;
14
+ transactionCode?: number;
15
+ constructor(externalId: string, resultText: string, authorization: string, ticket: string, metadata: string, appliedLaw: number, discount: number, taxAmount: number, commitFinalAmount: number, status: number, executionDate: Date, expirationDate: Date, transactionCode: number);
16
+ }
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PurchaseInfo = void 0;
4
+ var PurchaseInfo = /** @class */ (function () {
5
+ function PurchaseInfo(externalId, resultText, authorization, ticket, metadata, appliedLaw, discount, taxAmount, commitFinalAmount, status, executionDate, expirationDate, transactionCode) {
6
+ this.externalId = externalId;
7
+ this.resultText = resultText;
8
+ this.authorization = authorization;
9
+ this.ticket = ticket;
10
+ this.metadata = metadata;
11
+ this.appliedLaw = appliedLaw;
12
+ this.discount = discount;
13
+ this.taxAmount = taxAmount;
14
+ this.commitFinalAmount = commitFinalAmount;
15
+ this.status = status;
16
+ this.executionDate = executionDate;
17
+ this.expirationDate = expirationDate;
18
+ this.transactionCode = transactionCode;
19
+ }
20
+ return PurchaseInfo;
21
+ }());
22
+ exports.PurchaseInfo = PurchaseInfo;
@@ -0,0 +1,12 @@
1
+ export declare class RefundInfo {
2
+ amount?: number;
3
+ status?: number;
4
+ externalId: string;
5
+ transactionCode?: number;
6
+ resultText: string;
7
+ executionDate?: Date;
8
+ authorization: string;
9
+ metadata: string;
10
+ ticket: string;
11
+ constructor(amount: number, status: number, externalId: string, transactionCode: number, resultText: string, executionDate: Date, authorization: string, metadata: string, ticket: string);
12
+ }
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RefundInfo = void 0;
4
+ var RefundInfo = /** @class */ (function () {
5
+ function RefundInfo(amount, status, externalId, transactionCode, resultText, executionDate, authorization, metadata, ticket) {
6
+ this.amount = amount;
7
+ this.status = status;
8
+ this.externalId = externalId;
9
+ this.transactionCode = transactionCode;
10
+ this.resultText = resultText;
11
+ this.executionDate = executionDate;
12
+ this.authorization = authorization;
13
+ this.metadata = metadata;
14
+ this.ticket = ticket;
15
+ }
16
+ return RefundInfo;
17
+ }());
18
+ exports.RefundInfo = RefundInfo;
@@ -0,0 +1,13 @@
1
+ export declare class ReserveInfo {
2
+ externalId: string;
3
+ status?: number;
4
+ executionDate?: Date;
5
+ expirationDate?: Date;
6
+ transactionCode?: number;
7
+ resultText: string;
8
+ authorization: string;
9
+ ticket: string;
10
+ metadata: string;
11
+ taxAmount?: number;
12
+ constructor(externalId: string, status: number, executionDate: Date, expirationDate: Date, transactionCode: number, resultText: string, authorization: string, ticket: string, metadata: string, taxAmount: number);
13
+ }
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ReserveInfo = void 0;
4
+ var ReserveInfo = /** @class */ (function () {
5
+ function ReserveInfo(externalId, status, executionDate, expirationDate, transactionCode, resultText, authorization, ticket, metadata, taxAmount) {
6
+ this.externalId = externalId;
7
+ this.status = status;
8
+ this.executionDate = executionDate;
9
+ this.expirationDate = expirationDate;
10
+ this.transactionCode = transactionCode;
11
+ this.resultText = resultText;
12
+ this.authorization = authorization;
13
+ this.ticket = ticket;
14
+ this.metadata = metadata;
15
+ this.taxAmount = taxAmount;
16
+ }
17
+ return ReserveInfo;
18
+ }());
19
+ exports.ReserveInfo = ReserveInfo;
@@ -0,0 +1,7 @@
1
+ import { Address } from '.';
2
+ export declare class Shipping {
3
+ address: Address;
4
+ name: string;
5
+ phone: string;
6
+ constructor(address: Address, name: string, phone: string);
7
+ }
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Shipping = void 0;
4
+ var Shipping = /** @class */ (function () {
5
+ function Shipping(address, name, phone) {
6
+ this.address = address;
7
+ this.name = name;
8
+ this.phone = phone;
9
+ }
10
+ return Shipping;
11
+ }());
12
+ exports.Shipping = Shipping;
@@ -0,0 +1,31 @@
1
+ import { CancellationInfo, Client, Currency, Customer, Instrument, Item, PaymentFacilitator, PaymentProcessor, PurchaseInfo, RefundInfo, ReserveInfo } from '.';
2
+ export declare class Transaction {
3
+ id: string;
4
+ batchId?: number;
5
+ externalId: string;
6
+ invoiceNumber: string;
7
+ creationDate: Date;
8
+ expiration?: Date;
9
+ metadata: string;
10
+ state: number;
11
+ amount: number;
12
+ installments?: number;
13
+ taxedAmount: number;
14
+ tipAmount: number;
15
+ billedAmount: number;
16
+ loyaltyProgramAmount?: number;
17
+ law: number;
18
+ client: Client;
19
+ instrument: Instrument;
20
+ currency: Currency;
21
+ purchaseInfo?: PurchaseInfo;
22
+ cancellationInfo?: CancellationInfo;
23
+ refundInfo?: RefundInfo;
24
+ reserveInfo?: ReserveInfo;
25
+ partialRefundsInfo?: RefundInfo[];
26
+ items: Item[];
27
+ customer: Customer;
28
+ paymentProcessor: PaymentProcessor;
29
+ paymentFacilitator: PaymentFacilitator;
30
+ constructor(id: string, externalId: string, invoiceNumber: string, creationDate: Date, metadata: string, state: number, amount: number, taxedAmount: number, tipAmount: number, billedAmount: number, law: number, client: Client, instrument: Instrument, currency: Currency, items: Item[], customer: Customer, paymentProcessor: PaymentProcessor, paymentFacilitator: PaymentFacilitator, loyaltyProgramAmount?: number, installments?: number, expiration?: Date, batchId?: number, purchaseInfo?: PurchaseInfo, cancellationInfo?: CancellationInfo, refundInfo?: RefundInfo, reserveInfo?: ReserveInfo, partialRefundsInfo?: RefundInfo[]);
31
+ }