@houlak/plexo-sdk 0.1.51 → 0.1.52

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 (50) hide show
  1. package/lib/index.d.ts +1 -1
  2. package/lib/index.js +2 -2
  3. package/lib/sdk/models/FieldType.d.ts +6 -0
  4. package/lib/sdk/models/FieldType.js +6 -0
  5. package/lib/sdk/models/IssuerData.d.ts +2 -0
  6. package/lib/sdk/models/webhook/Address.d.ts +7 -7
  7. package/lib/sdk/models/webhook/Address.js +7 -7
  8. package/lib/sdk/models/webhook/CancellationInfo.d.ts +9 -9
  9. package/lib/sdk/models/webhook/CancellationInfo.js +9 -9
  10. package/lib/sdk/models/webhook/Client.d.ts +7 -7
  11. package/lib/sdk/models/webhook/Client.js +6 -6
  12. package/lib/sdk/models/webhook/Commerce.d.ts +4 -4
  13. package/lib/sdk/models/webhook/Commerce.js +4 -4
  14. package/lib/sdk/models/webhook/Currency.d.ts +6 -6
  15. package/lib/sdk/models/webhook/Currency.js +6 -6
  16. package/lib/sdk/models/webhook/Customer.d.ts +15 -15
  17. package/lib/sdk/models/webhook/Customer.js +14 -14
  18. package/lib/sdk/models/webhook/Document.d.ts +3 -3
  19. package/lib/sdk/models/webhook/Document.js +3 -3
  20. package/lib/sdk/models/webhook/Instrument.d.ts +14 -14
  21. package/lib/sdk/models/webhook/Instrument.js +13 -13
  22. package/lib/sdk/models/webhook/Issuer.d.ts +6 -6
  23. package/lib/sdk/models/webhook/Issuer.js +6 -6
  24. package/lib/sdk/models/webhook/IssuerData.d.ts +6 -6
  25. package/lib/sdk/models/webhook/IssuerData.js +5 -5
  26. package/lib/sdk/models/webhook/IssuerDto.d.ts +3 -3
  27. package/lib/sdk/models/webhook/IssuerDto.js +3 -3
  28. package/lib/sdk/models/webhook/Item.d.ts +12 -12
  29. package/lib/sdk/models/webhook/Item.js +11 -11
  30. package/lib/sdk/models/webhook/PartialRefundsInfo.d.ts +10 -10
  31. package/lib/sdk/models/webhook/PartialRefundsInfo.js +10 -10
  32. package/lib/sdk/models/webhook/PaymentFacilitator.d.ts +6 -6
  33. package/lib/sdk/models/webhook/PaymentFacilitator.js +5 -5
  34. package/lib/sdk/models/webhook/PaymentProcessor.d.ts +3 -3
  35. package/lib/sdk/models/webhook/PaymentProcessor.js +3 -3
  36. package/lib/sdk/models/webhook/PurchaseInfo.d.ts +14 -14
  37. package/lib/sdk/models/webhook/PurchaseInfo.js +14 -14
  38. package/lib/sdk/models/webhook/RefundInfo.d.ts +10 -10
  39. package/lib/sdk/models/webhook/RefundInfo.js +10 -10
  40. package/lib/sdk/models/webhook/ReserveInfo.d.ts +11 -11
  41. package/lib/sdk/models/webhook/ReserveInfo.js +11 -11
  42. package/lib/sdk/models/webhook/Shipping.d.ts +5 -5
  43. package/lib/sdk/models/webhook/Shipping.js +4 -4
  44. package/lib/sdk/models/webhook/Transaction.d.ts +29 -29
  45. package/lib/sdk/models/webhook/Transaction.js +28 -28
  46. package/lib/sdk/models/webhook/TransactionResult.d.ts +1 -1
  47. package/lib/sdk/models/webhook/index.d.ts +21 -0
  48. package/lib/sdk/models/webhook/index.js +45 -0
  49. package/lib/utils/case.util.js +4 -1
  50. package/package.json +1 -1
package/lib/index.d.ts CHANGED
@@ -1,3 +1,3 @@
1
1
  export { PlexoHandler } from './handler/PlexoHandler';
2
2
  export * as ModelsSDK from './sdk/models/IndexSDK';
3
- export * as ModelsWebhook from './sdk/models/webhook/IndexWebhook';
3
+ export * as ModelsAPI from './sdk/models/webhook';
package/lib/index.js CHANGED
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ModelsWebhook = exports.ModelsSDK = exports.PlexoHandler = void 0;
3
+ exports.ModelsAPI = exports.ModelsSDK = exports.PlexoHandler = void 0;
4
4
  var PlexoHandler_1 = require("./handler/PlexoHandler");
5
5
  Object.defineProperty(exports, "PlexoHandler", { enumerable: true, get: function () { return PlexoHandler_1.PlexoHandler; } });
6
6
  // Model for transaction callback (WS Service)
7
7
  exports.ModelsSDK = require("./sdk/models/IndexSDK");
8
8
  // Model for plexo webhook (API)
9
- exports.ModelsWebhook = require("./sdk/models/webhook/IndexWebhook");
9
+ exports.ModelsAPI = require("./sdk/models/webhook");
@@ -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
@@ -1,5 +1,7 @@
1
1
  export declare type IssuerData = {
2
2
  issuerId: number;
3
3
  commerceId: number;
4
+ paymentFacilitatorCommerceId?: number;
5
+ paymentFacilitatorId?: number;
4
6
  metadata: any;
5
7
  };
@@ -1,9 +1,9 @@
1
1
  export declare class Address {
2
- City: string;
3
- Country: string;
4
- Line1: string;
5
- Line2: string;
6
- PostalCode: string;
7
- State: string;
8
- constructor(City: string, Country: string, Line1: string, Line2: string, PostalCode: string, State: string);
2
+ city: string;
3
+ country: string;
4
+ line1: string;
5
+ line2: string;
6
+ postalCode: string;
7
+ state: string;
8
+ constructor(city: string, country: string, line1: string, line2: string, postalCode: string, state: string);
9
9
  }
@@ -2,13 +2,13 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Address = void 0;
4
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;
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
12
  }
13
13
  return Address;
14
14
  }());
@@ -1,11 +1,11 @@
1
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);
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
11
  }
@@ -2,15 +2,15 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.CancellationInfo = void 0;
4
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;
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
14
  }
15
15
  return CancellationInfo;
16
16
  }());
@@ -1,9 +1,9 @@
1
- import { Commerce } from './IndexWebhook';
1
+ import { Commerce } from '.';
2
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);
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
9
  }
@@ -2,12 +2,12 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Client = void 0;
4
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;
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
11
  }
12
12
  return Client;
13
13
  }());
@@ -1,6 +1,6 @@
1
1
  export declare class Commerce {
2
- Id: number;
3
- Name: string;
4
- Metadata: string;
5
- constructor(Id: number, Name: string, Metadata: string);
2
+ id: number;
3
+ name: string;
4
+ metadata: string;
5
+ constructor(id: number, name: string, metadata: string);
6
6
  }
@@ -2,10 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Commerce = void 0;
4
4
  var Commerce = /** @class */ (function () {
5
- function Commerce(Id, Name, Metadata) {
6
- this.Id = Id;
7
- this.Name = Name;
8
- this.Metadata = Metadata;
5
+ function Commerce(id, name, metadata) {
6
+ this.id = id;
7
+ this.name = name;
8
+ this.metadata = metadata;
9
9
  }
10
10
  return Commerce;
11
11
  }());
@@ -1,8 +1,8 @@
1
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);
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
8
  }
@@ -2,12 +2,12 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Currency = void 0;
4
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;
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
11
  }
12
12
  return Currency;
13
13
  }());
@@ -1,17 +1,17 @@
1
- import { Address, Document, Shipping } from './IndexWebhook';
1
+ import { Address, Document, Shipping } from '.';
2
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);
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
17
  }
@@ -2,20 +2,20 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Customer = void 0;
4
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;
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
19
  }
20
20
  return Customer;
21
21
  }());
@@ -1,5 +1,5 @@
1
1
  export declare class Document {
2
- Type: number;
3
- Value: string;
4
- constructor(Type: number, Value: string);
2
+ type: number;
3
+ value: string;
4
+ constructor(type: number, value: string);
5
5
  }
@@ -2,9 +2,9 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Document = void 0;
4
4
  var Document = /** @class */ (function () {
5
- function Document(Type, Value) {
6
- this.Type = Type;
7
- this.Value = Value;
5
+ function Document(type, value) {
6
+ this.type = type;
7
+ this.value = value;
8
8
  }
9
9
  return Document;
10
10
  }());
@@ -1,17 +1,17 @@
1
1
  import { CardStatus } from '../CardStatus';
2
- import { IssuerDto } from './IndexWebhook';
2
+ import { IssuerDto } from '.';
3
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);
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
17
  }
@@ -2,19 +2,19 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Instrument = void 0;
4
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;
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
18
  }
19
19
  return Instrument;
20
20
  }());
@@ -1,8 +1,8 @@
1
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);
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
8
  }
@@ -2,12 +2,12 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Issuer = void 0;
4
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;
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
11
  }
12
12
  return Issuer;
13
13
  }());
@@ -1,8 +1,8 @@
1
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);
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
8
  }
@@ -2,11 +2,11 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.IssuerData = void 0;
4
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;
5
+ function IssuerData(issuerId, commerceId, paymentFacilitatorCommerceId, metadata) {
6
+ this.issuerId = issuerId;
7
+ this.commerceId = commerceId;
8
+ this.paymentFacilitatorCommerceId = paymentFacilitatorCommerceId;
9
+ this.metadata = metadata;
10
10
  }
11
11
  return IssuerData;
12
12
  }());
@@ -1,5 +1,5 @@
1
1
  export declare class IssuerDto {
2
- Id: string;
3
- Name: string;
4
- constructor(Id: string, Name: string);
2
+ id: string;
3
+ name: string;
4
+ constructor(id: string, name: string);
5
5
  }
@@ -2,9 +2,9 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.IssuerDto = void 0;
4
4
  var IssuerDto = /** @class */ (function () {
5
- function IssuerDto(Id, Name) {
6
- this.Id = Id;
7
- this.Name = Name;
5
+ function IssuerDto(id, name) {
6
+ this.id = id;
7
+ this.name = name;
8
8
  }
9
9
  return IssuerDto;
10
10
  }());
@@ -1,14 +1,14 @@
1
- import { Currency } from './IndexWebhook';
1
+ import { Currency } from '.';
2
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);
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
14
  }
@@ -2,17 +2,17 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Item = void 0;
4
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;
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
16
  }
17
17
  return Item;
18
18
  }());
@@ -1,12 +1,12 @@
1
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);
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
12
  }
@@ -2,16 +2,16 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.PartialRefundsInfo = void 0;
4
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;
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
15
  }
16
16
  return PartialRefundsInfo;
17
17
  }());
@@ -1,8 +1,8 @@
1
- import { Client } from './IndexWebhook';
1
+ import { Client } from '.';
2
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);
3
+ id: number;
4
+ name: string;
5
+ clientId: number;
6
+ client: Client;
7
+ constructor(id: number, name: string, clientId: number, client: Client);
8
8
  }
@@ -2,11 +2,11 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.PaymentFacilitator = void 0;
4
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;
5
+ function PaymentFacilitator(id, name, clientId, client) {
6
+ this.id = id;
7
+ this.name = name;
8
+ this.clientId = clientId;
9
+ this.client = client;
10
10
  }
11
11
  return PaymentFacilitator;
12
12
  }());
@@ -1,5 +1,5 @@
1
1
  export declare class PaymentProcessor {
2
- Id?: number;
3
- Acquirer: string;
4
- constructor(Id: number, Acquirer: string);
2
+ id?: number;
3
+ acquirer: string;
4
+ constructor(id: number, acquirer: string);
5
5
  }
@@ -2,9 +2,9 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.PaymentProcessor = void 0;
4
4
  var PaymentProcessor = /** @class */ (function () {
5
- function PaymentProcessor(Id, Acquirer) {
6
- this.Id = Id;
7
- this.Acquirer = Acquirer;
5
+ function PaymentProcessor(id, acquirer) {
6
+ this.id = id;
7
+ this.acquirer = acquirer;
8
8
  }
9
9
  return PaymentProcessor;
10
10
  }());
@@ -1,16 +1,16 @@
1
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);
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
16
  }
@@ -2,20 +2,20 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.PurchaseInfo = void 0;
4
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;
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
19
  }
20
20
  return PurchaseInfo;
21
21
  }());
@@ -1,12 +1,12 @@
1
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);
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
12
  }
@@ -2,16 +2,16 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.RefundInfo = void 0;
4
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;
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
15
  }
16
16
  return RefundInfo;
17
17
  }());
@@ -1,13 +1,13 @@
1
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);
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
13
  }
@@ -2,17 +2,17 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ReserveInfo = void 0;
4
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;
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
16
  }
17
17
  return ReserveInfo;
18
18
  }());
@@ -1,7 +1,7 @@
1
- import { Address } from './IndexWebhook';
1
+ import { Address } from '.';
2
2
  export declare class Shipping {
3
- Address: Address;
4
- Name: string;
5
- Phone: string;
6
- constructor(address: Address, Name: string, Phone: string);
3
+ address: Address;
4
+ name: string;
5
+ phone: string;
6
+ constructor(address: Address, name: string, phone: string);
7
7
  }
@@ -2,10 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Shipping = void 0;
4
4
  var Shipping = /** @class */ (function () {
5
- function Shipping(address, Name, Phone) {
6
- this.Address = address;
7
- this.Name = Name;
8
- this.Phone = Phone;
5
+ function Shipping(address, name, phone) {
6
+ this.address = address;
7
+ this.name = name;
8
+ this.phone = phone;
9
9
  }
10
10
  return Shipping;
11
11
  }());
@@ -1,31 +1,31 @@
1
- import { CancellationInfo, Client, Currency, Customer, Instrument, Item, PaymentFacilitator, PaymentProcessor, PurchaseInfo, RefundInfo, ReserveInfo } from './IndexWebhook';
1
+ import { CancellationInfo, Client, Currency, Customer, Instrument, Item, PaymentFacilitator, PaymentProcessor, PurchaseInfo, RefundInfo, ReserveInfo } from '.';
2
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[]);
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
31
  }
@@ -2,34 +2,34 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Transaction = void 0;
4
4
  var Transaction = /** @class */ (function () {
5
- function Transaction(Id, ExternalId, InvoiceNumber, CreationDate, Metadata, State, Amount, TaxedAmount, TipAmount, BilledAmount, Law, client, instrument, currency, Items, customer, paymentProcessor, paymentFacilitator, LoyaltyProgramAmount, Installments, Expiration, BatchId, purchaseInfo, cancellationInfo, refundInfo, reserveInfo, PartialRefundsInfo) {
6
- this.Id = Id;
7
- this.BatchId = BatchId;
8
- this.ExternalId = ExternalId;
9
- this.InvoiceNumber = InvoiceNumber;
10
- this.CreationDate = CreationDate;
11
- this.Expiration = Expiration;
12
- this.Metadata = Metadata;
13
- this.State = State;
14
- this.Amount = Amount;
15
- this.Installments = Installments;
16
- this.TaxedAmount = TaxedAmount;
17
- this.TipAmount = TipAmount;
18
- this.BilledAmount = BilledAmount;
19
- this.LoyaltyProgramAmount = LoyaltyProgramAmount;
20
- this.Law = Law;
21
- this.Client = client;
22
- this.Instrument = instrument;
23
- this.Currency = currency;
24
- this.PurchaseInfo = purchaseInfo;
25
- this.CancellationInfo = cancellationInfo;
26
- this.RefundInfo = refundInfo;
27
- this.ReserveInfo = reserveInfo;
28
- this.PartialRefundsInfo = PartialRefundsInfo;
29
- this.Items = Items;
30
- this.Customer = customer;
31
- this.PaymentProcessor = paymentProcessor;
32
- this.PaymentFacilitator = paymentFacilitator;
5
+ function Transaction(id, externalId, invoiceNumber, creationDate, metadata, state, amount, taxedAmount, tipAmount, billedAmount, law, client, instrument, currency, items, customer, paymentProcessor, paymentFacilitator, loyaltyProgramAmount, installments, expiration, batchId, purchaseInfo, cancellationInfo, refundInfo, reserveInfo, partialRefundsInfo) {
6
+ this.id = id;
7
+ this.batchId = batchId;
8
+ this.externalId = externalId;
9
+ this.invoiceNumber = invoiceNumber;
10
+ this.creationDate = creationDate;
11
+ this.expiration = expiration;
12
+ this.metadata = metadata;
13
+ this.state = state;
14
+ this.amount = amount;
15
+ this.installments = installments;
16
+ this.taxedAmount = taxedAmount;
17
+ this.tipAmount = tipAmount;
18
+ this.billedAmount = billedAmount;
19
+ this.loyaltyProgramAmount = loyaltyProgramAmount;
20
+ this.law = law;
21
+ this.client = client;
22
+ this.instrument = instrument;
23
+ this.currency = currency;
24
+ this.purchaseInfo = purchaseInfo;
25
+ this.cancellationInfo = cancellationInfo;
26
+ this.refundInfo = refundInfo;
27
+ this.reserveInfo = reserveInfo;
28
+ this.partialRefundsInfo = partialRefundsInfo;
29
+ this.items = items;
30
+ this.customer = customer;
31
+ this.paymentProcessor = paymentProcessor;
32
+ this.paymentFacilitator = paymentFacilitator;
33
33
  }
34
34
  return Transaction;
35
35
  }());
@@ -1,4 +1,4 @@
1
- import { Transaction } from './IndexWebhook';
1
+ import { Transaction } from '.';
2
2
  export declare class TransactionResult {
3
3
  results: Transaction[];
4
4
  constructor(results: Transaction[]);
@@ -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; } });
@@ -2,11 +2,14 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.caseUtils = void 0;
4
4
  var js_convert_case_1 = require("js-convert-case");
5
+ var signatureUtils_1 = require("../sdk/helpers/signature/signatureUtils");
5
6
  var specialWords = [
6
7
  { word: 'UtcUnixTimeExpiration', substitute: 'UTCUnixTimeExpiration' },
7
8
  { word: 'UtcunixTimeExpiration', substitute: 'UTCUnixTimeExpiration' },
8
9
  { word: 'VatAmount', substitute: 'VATAmount' },
9
10
  { word: 'InstrumentExpirationUtc', substitute: 'InstrumentExpirationUTC' },
11
+ { word: 'Mcc', substitute: 'MCC' },
12
+ { word: 'CommerceRut', substitute: 'CommerceRUT' },
10
13
  ];
11
14
  var camelCaseSpecialWords = [
12
15
  {
@@ -46,7 +49,7 @@ var toPascalKeys = function (object) {
46
49
  substituteWordRecursively(parsedObject, specialWord.word, specialWord.substitute);
47
50
  }
48
51
  });
49
- return parsedObject;
52
+ return signatureUtils_1.signatureUtils.sortObject(parsedObject);
50
53
  };
51
54
  exports.caseUtils = {
52
55
  toCamelKeys: toCamelKeys,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@houlak/plexo-sdk",
3
- "version": "0.1.51",
3
+ "version": "0.1.52",
4
4
  "description": "Node SDK for Plexo payment services",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",