@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.
- package/lib/index.d.ts +1 -1
- package/lib/index.js +2 -2
- package/lib/sdk/models/FieldType.d.ts +6 -0
- package/lib/sdk/models/FieldType.js +6 -0
- package/lib/sdk/models/IssuerData.d.ts +2 -0
- package/lib/sdk/models/webhook/Address.d.ts +7 -7
- package/lib/sdk/models/webhook/Address.js +7 -7
- package/lib/sdk/models/webhook/CancellationInfo.d.ts +9 -9
- package/lib/sdk/models/webhook/CancellationInfo.js +9 -9
- package/lib/sdk/models/webhook/Client.d.ts +7 -7
- package/lib/sdk/models/webhook/Client.js +6 -6
- package/lib/sdk/models/webhook/Commerce.d.ts +4 -4
- package/lib/sdk/models/webhook/Commerce.js +4 -4
- package/lib/sdk/models/webhook/Currency.d.ts +6 -6
- package/lib/sdk/models/webhook/Currency.js +6 -6
- package/lib/sdk/models/webhook/Customer.d.ts +15 -15
- package/lib/sdk/models/webhook/Customer.js +14 -14
- package/lib/sdk/models/webhook/Document.d.ts +3 -3
- package/lib/sdk/models/webhook/Document.js +3 -3
- package/lib/sdk/models/webhook/Instrument.d.ts +14 -14
- package/lib/sdk/models/webhook/Instrument.js +13 -13
- package/lib/sdk/models/webhook/Issuer.d.ts +6 -6
- package/lib/sdk/models/webhook/Issuer.js +6 -6
- package/lib/sdk/models/webhook/IssuerData.d.ts +6 -6
- package/lib/sdk/models/webhook/IssuerData.js +5 -5
- package/lib/sdk/models/webhook/IssuerDto.d.ts +3 -3
- package/lib/sdk/models/webhook/IssuerDto.js +3 -3
- package/lib/sdk/models/webhook/Item.d.ts +12 -12
- package/lib/sdk/models/webhook/Item.js +11 -11
- package/lib/sdk/models/webhook/PartialRefundsInfo.d.ts +10 -10
- package/lib/sdk/models/webhook/PartialRefundsInfo.js +10 -10
- package/lib/sdk/models/webhook/PaymentFacilitator.d.ts +6 -6
- package/lib/sdk/models/webhook/PaymentFacilitator.js +5 -5
- package/lib/sdk/models/webhook/PaymentProcessor.d.ts +3 -3
- package/lib/sdk/models/webhook/PaymentProcessor.js +3 -3
- package/lib/sdk/models/webhook/PurchaseInfo.d.ts +14 -14
- package/lib/sdk/models/webhook/PurchaseInfo.js +14 -14
- package/lib/sdk/models/webhook/RefundInfo.d.ts +10 -10
- package/lib/sdk/models/webhook/RefundInfo.js +10 -10
- package/lib/sdk/models/webhook/ReserveInfo.d.ts +11 -11
- package/lib/sdk/models/webhook/ReserveInfo.js +11 -11
- package/lib/sdk/models/webhook/Shipping.d.ts +5 -5
- package/lib/sdk/models/webhook/Shipping.js +4 -4
- package/lib/sdk/models/webhook/Transaction.d.ts +29 -29
- package/lib/sdk/models/webhook/Transaction.js +28 -28
- package/lib/sdk/models/webhook/TransactionResult.d.ts +1 -1
- package/lib/sdk/models/webhook/index.d.ts +21 -0
- package/lib/sdk/models/webhook/index.js +45 -0
- package/lib/utils/case.util.js +4 -1
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
package/lib/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
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.
|
|
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,9 +1,9 @@
|
|
|
1
1
|
export declare class Address {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
constructor(
|
|
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(
|
|
6
|
-
this.
|
|
7
|
-
this.
|
|
8
|
-
this.
|
|
9
|
-
this.
|
|
10
|
-
this.
|
|
11
|
-
this.
|
|
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
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
constructor(
|
|
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(
|
|
6
|
-
this.
|
|
7
|
-
this.
|
|
8
|
-
this.
|
|
9
|
-
this.
|
|
10
|
-
this.
|
|
11
|
-
this.
|
|
12
|
-
this.
|
|
13
|
-
this.
|
|
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 '
|
|
1
|
+
import { Commerce } from '.';
|
|
2
2
|
export declare class Client {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
constructor(
|
|
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(
|
|
6
|
-
this.
|
|
7
|
-
this.
|
|
8
|
-
this.
|
|
9
|
-
this.
|
|
10
|
-
this.
|
|
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
|
}());
|
|
@@ -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(
|
|
6
|
-
this.
|
|
7
|
-
this.
|
|
8
|
-
this.
|
|
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
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
constructor(
|
|
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(
|
|
6
|
-
this.
|
|
7
|
-
this.
|
|
8
|
-
this.
|
|
9
|
-
this.
|
|
10
|
-
this.
|
|
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 '
|
|
1
|
+
import { Address, Document, Shipping } from '.';
|
|
2
2
|
export declare class Customer {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
constructor(
|
|
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(
|
|
6
|
-
this.
|
|
7
|
-
this.
|
|
8
|
-
this.
|
|
9
|
-
this.
|
|
10
|
-
this.
|
|
11
|
-
this.
|
|
12
|
-
this.
|
|
13
|
-
this.
|
|
14
|
-
this.
|
|
15
|
-
this.
|
|
16
|
-
this.
|
|
17
|
-
this.
|
|
18
|
-
this.
|
|
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
|
}());
|
|
@@ -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(
|
|
6
|
-
this.
|
|
7
|
-
this.
|
|
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 '
|
|
2
|
+
import { IssuerDto } from '.';
|
|
3
3
|
export declare class Instrument {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
constructor(
|
|
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(
|
|
6
|
-
this.
|
|
7
|
-
this.
|
|
8
|
-
this.
|
|
9
|
-
this.
|
|
10
|
-
this.
|
|
11
|
-
this.
|
|
12
|
-
this.
|
|
13
|
-
this.
|
|
14
|
-
this.
|
|
15
|
-
this.
|
|
16
|
-
this.
|
|
17
|
-
this.
|
|
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
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
constructor(
|
|
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(
|
|
6
|
-
this.
|
|
7
|
-
this.
|
|
8
|
-
this.
|
|
9
|
-
this.
|
|
10
|
-
this.
|
|
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
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
constructor(
|
|
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(
|
|
6
|
-
this.
|
|
7
|
-
this.
|
|
8
|
-
this.
|
|
9
|
-
this.
|
|
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
|
}());
|
|
@@ -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(
|
|
6
|
-
this.
|
|
7
|
-
this.
|
|
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 '
|
|
1
|
+
import { Currency } from '.';
|
|
2
2
|
export declare class Item {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
constructor(
|
|
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(
|
|
6
|
-
this.
|
|
7
|
-
this.
|
|
8
|
-
this.
|
|
9
|
-
this.
|
|
10
|
-
this.
|
|
11
|
-
this.
|
|
12
|
-
this.
|
|
13
|
-
this.
|
|
14
|
-
this.
|
|
15
|
-
this.
|
|
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
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
constructor(
|
|
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(
|
|
6
|
-
this.
|
|
7
|
-
this.
|
|
8
|
-
this.
|
|
9
|
-
this.
|
|
10
|
-
this.
|
|
11
|
-
this.
|
|
12
|
-
this.
|
|
13
|
-
this.
|
|
14
|
-
this.
|
|
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 '
|
|
1
|
+
import { Client } from '.';
|
|
2
2
|
export declare class PaymentFacilitator {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
constructor(
|
|
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(
|
|
6
|
-
this.
|
|
7
|
-
this.
|
|
8
|
-
this.
|
|
9
|
-
this.
|
|
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
|
}());
|
|
@@ -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(
|
|
6
|
-
this.
|
|
7
|
-
this.
|
|
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
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
constructor(
|
|
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(
|
|
6
|
-
this.
|
|
7
|
-
this.
|
|
8
|
-
this.
|
|
9
|
-
this.
|
|
10
|
-
this.
|
|
11
|
-
this.
|
|
12
|
-
this.
|
|
13
|
-
this.
|
|
14
|
-
this.
|
|
15
|
-
this.
|
|
16
|
-
this.
|
|
17
|
-
this.
|
|
18
|
-
this.
|
|
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
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
constructor(
|
|
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(
|
|
6
|
-
this.
|
|
7
|
-
this.
|
|
8
|
-
this.
|
|
9
|
-
this.
|
|
10
|
-
this.
|
|
11
|
-
this.
|
|
12
|
-
this.
|
|
13
|
-
this.
|
|
14
|
-
this.
|
|
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
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
constructor(
|
|
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(
|
|
6
|
-
this.
|
|
7
|
-
this.
|
|
8
|
-
this.
|
|
9
|
-
this.
|
|
10
|
-
this.
|
|
11
|
-
this.
|
|
12
|
-
this.
|
|
13
|
-
this.
|
|
14
|
-
this.
|
|
15
|
-
this.
|
|
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 '
|
|
1
|
+
import { Address } from '.';
|
|
2
2
|
export declare class Shipping {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
constructor(address: Address,
|
|
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,
|
|
6
|
-
this.
|
|
7
|
-
this.
|
|
8
|
-
this.
|
|
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 '
|
|
1
|
+
import { CancellationInfo, Client, Currency, Customer, Instrument, Item, PaymentFacilitator, PaymentProcessor, PurchaseInfo, RefundInfo, ReserveInfo } from '.';
|
|
2
2
|
export declare class Transaction {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
constructor(
|
|
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(
|
|
6
|
-
this.
|
|
7
|
-
this.
|
|
8
|
-
this.
|
|
9
|
-
this.
|
|
10
|
-
this.
|
|
11
|
-
this.
|
|
12
|
-
this.
|
|
13
|
-
this.
|
|
14
|
-
this.
|
|
15
|
-
this.
|
|
16
|
-
this.
|
|
17
|
-
this.
|
|
18
|
-
this.
|
|
19
|
-
this.
|
|
20
|
-
this.
|
|
21
|
-
this.
|
|
22
|
-
this.
|
|
23
|
-
this.
|
|
24
|
-
this.
|
|
25
|
-
this.
|
|
26
|
-
this.
|
|
27
|
-
this.
|
|
28
|
-
this.
|
|
29
|
-
this.
|
|
30
|
-
this.
|
|
31
|
-
this.
|
|
32
|
-
this.
|
|
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
|
}());
|
|
@@ -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; } });
|
package/lib/utils/case.util.js
CHANGED
|
@@ -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,
|