@houlak/plexo-sdk 0.1.49 → 0.1.51
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 -0
- package/lib/index.js +4 -1
- package/lib/models/Authorization.d.ts +2 -0
- package/lib/models/BuiltInPagesOptionsDto.d.ts +4 -0
- package/lib/models/BuiltInPagesOptionsDto.js +9 -0
- package/lib/models/DisplayOptionsDto.d.ts +7 -0
- package/lib/models/DisplayOptionsDto.js +9 -0
- package/lib/models/ExpressCheckoutSettingsDto.d.ts +6 -0
- package/lib/models/ExpressCheckoutSettingsDto.js +9 -0
- package/lib/models/IssuerProcessor.d.ts +4 -4
- package/lib/models/IssuerProcessor.js +4 -4
- package/lib/models/TokenizationSettingsDto.d.ts +4 -0
- package/lib/models/TokenizationSettingsDto.js +9 -0
- package/lib/models/UIOptionsDto.d.ts +7 -0
- package/lib/models/UIOptionsDto.js +13 -0
- package/lib/models/WebFormSettingsDto.d.ts +8 -0
- package/lib/models/WebFormSettingsDto.js +9 -0
- package/lib/sdk/helpers/signature/signatureUtils.js +1 -4
- package/lib/sdk/models/IssuerData.d.ts +0 -2
- package/lib/sdk/models/webhook/Address.d.ts +9 -0
- package/lib/sdk/models/webhook/Address.js +15 -0
- package/lib/sdk/models/webhook/CancellationInfo.d.ts +11 -0
- package/lib/sdk/models/webhook/CancellationInfo.js +17 -0
- package/lib/sdk/models/webhook/Client.d.ts +9 -0
- package/lib/sdk/models/webhook/Client.js +14 -0
- package/lib/sdk/models/webhook/Commerce.d.ts +6 -0
- package/lib/sdk/models/webhook/Commerce.js +12 -0
- package/lib/sdk/models/webhook/Currency.d.ts +8 -0
- package/lib/sdk/models/webhook/Currency.js +14 -0
- package/lib/sdk/models/webhook/Customer.d.ts +17 -0
- package/lib/sdk/models/webhook/Customer.js +22 -0
- package/lib/sdk/models/webhook/Document.d.ts +5 -0
- package/lib/sdk/models/webhook/Document.js +11 -0
- package/lib/sdk/models/webhook/IndexWebhook.d.ts +21 -0
- package/lib/sdk/models/webhook/IndexWebhook.js +45 -0
- package/lib/sdk/models/webhook/Instrument.d.ts +17 -0
- package/lib/sdk/models/webhook/Instrument.js +21 -0
- package/lib/sdk/models/webhook/Issuer.d.ts +8 -0
- package/lib/sdk/models/webhook/Issuer.js +14 -0
- package/lib/sdk/models/webhook/IssuerData.d.ts +8 -0
- package/lib/sdk/models/webhook/IssuerData.js +13 -0
- package/lib/sdk/models/webhook/IssuerDto.d.ts +5 -0
- package/lib/sdk/models/webhook/IssuerDto.js +11 -0
- package/lib/sdk/models/webhook/Item.d.ts +14 -0
- package/lib/sdk/models/webhook/Item.js +19 -0
- package/lib/sdk/models/webhook/PartialRefundsInfo.d.ts +12 -0
- package/lib/sdk/models/webhook/PartialRefundsInfo.js +18 -0
- package/lib/sdk/models/webhook/PaymentFacilitator.d.ts +8 -0
- package/lib/sdk/models/webhook/PaymentFacilitator.js +13 -0
- package/lib/sdk/models/webhook/PaymentProcessor.d.ts +5 -0
- package/lib/sdk/models/webhook/PaymentProcessor.js +11 -0
- package/lib/sdk/models/webhook/PurchaseInfo.d.ts +16 -0
- package/lib/sdk/models/webhook/PurchaseInfo.js +22 -0
- package/lib/sdk/models/webhook/RefundInfo.d.ts +12 -0
- package/lib/sdk/models/webhook/RefundInfo.js +18 -0
- package/lib/sdk/models/webhook/ReserveInfo.d.ts +13 -0
- package/lib/sdk/models/webhook/ReserveInfo.js +19 -0
- package/lib/sdk/models/webhook/Shipping.d.ts +7 -0
- package/lib/sdk/models/webhook/Shipping.js +12 -0
- package/lib/sdk/models/webhook/Transaction.d.ts +31 -0
- package/lib/sdk/models/webhook/Transaction.js +36 -0
- package/lib/sdk/models/webhook/TransactionResult.d.ts +5 -0
- package/lib/sdk/models/webhook/TransactionResult.js +10 -0
- package/lib/utils/case.util.js +0 -2
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
package/lib/index.js
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ModelsSDK = exports.PlexoHandler = void 0;
|
|
3
|
+
exports.ModelsWebhook = 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
|
+
// Model for transaction callback (WS Service)
|
|
6
7
|
exports.ModelsSDK = require("./sdk/models/IndexSDK");
|
|
8
|
+
// Model for plexo webhook (API)
|
|
9
|
+
exports.ModelsWebhook = require("./sdk/models/webhook/IndexWebhook");
|
|
@@ -2,6 +2,7 @@ import { ESMap } from 'typescript';
|
|
|
2
2
|
import { AuthorizationType } from '..';
|
|
3
3
|
import { ActionType } from './ActionType';
|
|
4
4
|
import { AuthorizationInfo } from './AuthorizationInfo';
|
|
5
|
+
import { WebFormSettingsDto } from './WebFormSettingsDto';
|
|
5
6
|
export declare class Authorization extends AuthorizationInfo {
|
|
6
7
|
action: ActionType;
|
|
7
8
|
redirectUri: string;
|
|
@@ -12,5 +13,6 @@ export declare class Authorization extends AuthorizationInfo {
|
|
|
12
13
|
optionalMetadata?: string;
|
|
13
14
|
promotionInfoIssuers?: ESMap<string, string>;
|
|
14
15
|
extendableInstrumentToken?: string;
|
|
16
|
+
webFormSettings?: WebFormSettingsDto;
|
|
15
17
|
constructor(action: ActionType, redirectUri: string, limitIssuers: string[], optionalCommerceId: number, type: AuthorizationType, metaReference: string);
|
|
16
18
|
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BuiltInPagesOptionsDto = void 0;
|
|
4
|
+
var BuiltInPagesOptionsDto = /** @class */ (function () {
|
|
5
|
+
function BuiltInPagesOptionsDto() {
|
|
6
|
+
}
|
|
7
|
+
return BuiltInPagesOptionsDto;
|
|
8
|
+
}());
|
|
9
|
+
exports.BuiltInPagesOptionsDto = BuiltInPagesOptionsDto;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DisplayOptionsDto = void 0;
|
|
4
|
+
var DisplayOptionsDto = /** @class */ (function () {
|
|
5
|
+
function DisplayOptionsDto() {
|
|
6
|
+
}
|
|
7
|
+
return DisplayOptionsDto;
|
|
8
|
+
}());
|
|
9
|
+
exports.DisplayOptionsDto = DisplayOptionsDto;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ExpressCheckoutSettingsDto = void 0;
|
|
4
|
+
var ExpressCheckoutSettingsDto = /** @class */ (function () {
|
|
5
|
+
function ExpressCheckoutSettingsDto() {
|
|
6
|
+
}
|
|
7
|
+
return ExpressCheckoutSettingsDto;
|
|
8
|
+
}());
|
|
9
|
+
exports.ExpressCheckoutSettingsDto = ExpressCheckoutSettingsDto;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PaymentProcessor } from './PaymentProcessor';
|
|
2
2
|
export declare class IssuerProcessor {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
constructor(
|
|
3
|
+
issuerId: number;
|
|
4
|
+
name: string;
|
|
5
|
+
paymentProcessors: PaymentProcessor[];
|
|
6
|
+
constructor(issuerId: number, name: string, paymentProcessors: PaymentProcessor[]);
|
|
7
7
|
}
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.IssuerProcessor = void 0;
|
|
4
4
|
var IssuerProcessor = /** @class */ (function () {
|
|
5
|
-
function IssuerProcessor(
|
|
6
|
-
this.
|
|
7
|
-
this.
|
|
8
|
-
this.
|
|
5
|
+
function IssuerProcessor(issuerId, name, paymentProcessors) {
|
|
6
|
+
this.issuerId = issuerId;
|
|
7
|
+
this.name = name;
|
|
8
|
+
this.paymentProcessors = paymentProcessors;
|
|
9
9
|
}
|
|
10
10
|
return IssuerProcessor;
|
|
11
11
|
}());
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TokenizationSettingsDto = void 0;
|
|
4
|
+
var TokenizationSettingsDto = /** @class */ (function () {
|
|
5
|
+
function TokenizationSettingsDto() {
|
|
6
|
+
}
|
|
7
|
+
return TokenizationSettingsDto;
|
|
8
|
+
}());
|
|
9
|
+
exports.TokenizationSettingsDto = TokenizationSettingsDto;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UIOptionsDto = void 0;
|
|
4
|
+
var UIOptionsDto = /** @class */ (function () {
|
|
5
|
+
function UIOptionsDto(colors, theme, autoDarkTheme, logoURL) {
|
|
6
|
+
this.colors = colors;
|
|
7
|
+
this.theme = theme;
|
|
8
|
+
this.autoDarkTheme = autoDarkTheme;
|
|
9
|
+
this.logoURL = logoURL;
|
|
10
|
+
}
|
|
11
|
+
return UIOptionsDto;
|
|
12
|
+
}());
|
|
13
|
+
exports.UIOptionsDto = UIOptionsDto;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ExpressCheckoutSettingsDto } from './ExpressCheckoutSettingsDto';
|
|
2
|
+
import { TokenizationSettingsDto } from './TokenizationSettingsDto';
|
|
3
|
+
import { UIOptionsDto } from './UIOptionsDto';
|
|
4
|
+
export declare class WebFormSettingsDto {
|
|
5
|
+
ui?: UIOptionsDto;
|
|
6
|
+
expressCheckout?: ExpressCheckoutSettingsDto;
|
|
7
|
+
tokenization?: TokenizationSettingsDto;
|
|
8
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WebFormSettingsDto = void 0;
|
|
4
|
+
var WebFormSettingsDto = /** @class */ (function () {
|
|
5
|
+
function WebFormSettingsDto() {
|
|
6
|
+
}
|
|
7
|
+
return WebFormSettingsDto;
|
|
8
|
+
}());
|
|
9
|
+
exports.WebFormSettingsDto = WebFormSettingsDto;
|
|
@@ -48,7 +48,6 @@ var canonizeJson = function (object, keysToSkip) {
|
|
|
48
48
|
var cleanObject = deleteObjectUndefined(object, keysToSkip);
|
|
49
49
|
return sortObject(cleanObject);
|
|
50
50
|
};
|
|
51
|
-
var nonSortedObjects = ['metadata', 'Metadata'];
|
|
52
51
|
var sortObject = function (object) {
|
|
53
52
|
if (Array.isArray(object)) {
|
|
54
53
|
var newArray_1 = [];
|
|
@@ -59,9 +58,7 @@ var sortObject = function (object) {
|
|
|
59
58
|
var newObject_1 = {};
|
|
60
59
|
Object.keys(object)
|
|
61
60
|
.sort()
|
|
62
|
-
.map(function (key) {
|
|
63
|
-
return (newObject_1[key] = nonSortedObjects.includes(key) ? object[key] : sortObject(object[key]));
|
|
64
|
-
});
|
|
61
|
+
.map(function (key) { return (newObject_1[key] = sortObject(object[key])); });
|
|
65
62
|
return newObject_1;
|
|
66
63
|
}
|
|
67
64
|
return object;
|
|
@@ -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 './IndexWebhook';
|
|
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,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,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 './IndexWebhook';
|
|
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,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 './IndexWebhook';
|
|
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,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,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 './IndexWebhook';
|
|
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,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,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,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 './IndexWebhook';
|
|
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
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Transaction = void 0;
|
|
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;
|
|
33
|
+
}
|
|
34
|
+
return Transaction;
|
|
35
|
+
}());
|
|
36
|
+
exports.Transaction = Transaction;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TransactionResult = void 0;
|
|
4
|
+
var TransactionResult = /** @class */ (function () {
|
|
5
|
+
function TransactionResult(results) {
|
|
6
|
+
this.results = results;
|
|
7
|
+
}
|
|
8
|
+
return TransactionResult;
|
|
9
|
+
}());
|
|
10
|
+
exports.TransactionResult = TransactionResult;
|
package/lib/utils/case.util.js
CHANGED
|
@@ -7,8 +7,6 @@ var specialWords = [
|
|
|
7
7
|
{ word: 'UtcunixTimeExpiration', substitute: 'UTCUnixTimeExpiration' },
|
|
8
8
|
{ word: 'VatAmount', substitute: 'VATAmount' },
|
|
9
9
|
{ word: 'InstrumentExpirationUtc', substitute: 'InstrumentExpirationUTC' },
|
|
10
|
-
{ word: 'Mcc', substitute: 'MCC' },
|
|
11
|
-
{ word: 'CommerceRut', substitute: 'CommerceRUT' },
|
|
12
10
|
];
|
|
13
11
|
var camelCaseSpecialWords = [
|
|
14
12
|
{
|