@houlak/plexo-sdk 0.1.0 → 0.1.1-fx
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/handler/PlexoHandler.d.ts +21 -10
- package/lib/handler/PlexoHandler.js +179 -29
- package/lib/index.d.ts +1 -0
- package/lib/index.js +4 -1
- package/lib/lib/logger.lib.d.ts +1 -6
- package/lib/lib/logger.lib.js +10 -6
- 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/IPaymentGatewayClient.d.ts +8 -7
- package/lib/sdk/PaymentGatewayClient.d.ts +8 -7
- package/lib/sdk/PaymentGatewayClient.js +45 -45
- package/lib/sdk/PaymentGatewayMock.d.ts +2 -2
- package/lib/sdk/PaymentGatewayMock.js +2 -8
- package/lib/sdk/enums/plexo-error-enum.d.ts +1 -0
- package/lib/sdk/enums/plexo-error-enum.js +1 -0
- package/lib/sdk/helpers/signature/signatureHelper.d.ts +3 -7
- package/lib/sdk/helpers/signature/signatureHelper.js +71 -201
- package/lib/sdk/helpers/signature/signatureUtils.d.ts +10 -0
- package/lib/sdk/helpers/signature/signatureUtils.js +155 -0
- package/lib/sdk/helpers/signature/stringifyWithFloats.js +2 -0
- package/lib/sdk/mocks/mocks.js +2 -0
- package/lib/sdk/models/Authorization.d.ts +4 -5
- package/lib/sdk/models/Authorization.js +3 -2
- package/lib/sdk/models/AuthorizationInfo.d.ts +3 -2
- package/lib/sdk/models/AuthorizationInfo.js +24 -5
- package/lib/sdk/models/BuiltInPagesOptions.d.ts +5 -0
- package/lib/sdk/models/BuiltInPagesOptions.js +11 -0
- package/lib/sdk/models/CancelRequest.d.ts +1 -1
- package/lib/sdk/models/CancelRequest.js +2 -2
- package/lib/sdk/models/CodeRequest.d.ts +4 -2
- package/lib/sdk/models/CodeRequest.js +28 -0
- package/lib/sdk/models/CommerceIdRequest.d.ts +4 -2
- package/lib/sdk/models/CommerceIdRequest.js +27 -0
- package/lib/sdk/models/CommerceIssuerIdRequest.d.ts +4 -2
- package/lib/sdk/models/CommerceIssuerIdRequest.js +28 -0
- package/lib/sdk/models/CommerceModifyRequest.d.ts +4 -2
- package/lib/sdk/models/CommerceModifyRequest.js +28 -0
- package/lib/sdk/models/CommerceRequest.d.ts +4 -2
- package/lib/sdk/models/CommerceRequest.js +27 -0
- package/lib/sdk/models/CreateBankInstrumentRequest.d.ts +4 -2
- package/lib/sdk/models/CreateBankInstrumentRequest.js +29 -0
- package/lib/sdk/models/DeleteInstrumentRequest.d.ts +1 -1
- package/lib/sdk/models/DeleteInstrumentRequest.js +2 -2
- package/lib/sdk/models/DisplayOptions.d.ts +8 -0
- package/lib/sdk/models/DisplayOptions.js +14 -0
- package/lib/sdk/models/ExpressCheckoutSettings.d.ts +7 -0
- package/lib/sdk/models/ExpressCheckoutSettings.js +11 -0
- package/lib/sdk/models/FieldType.d.ts +6 -0
- package/lib/sdk/models/FieldType.js +6 -0
- package/lib/sdk/models/FixedCustomData.d.ts +5 -0
- package/lib/sdk/models/FixedCustomData.js +11 -0
- package/lib/sdk/models/IndexSDK.d.ts +8 -6
- package/lib/sdk/models/IndexSDK.js +32 -14
- package/lib/sdk/models/IssuerData.d.ts +6 -2
- package/lib/sdk/models/IssuerData.js +31 -0
- package/lib/sdk/models/PaymentRequest.d.ts +3 -2
- package/lib/sdk/models/PaymentRequest.js +33 -14
- package/lib/sdk/models/Reference.d.ts +4 -2
- package/lib/sdk/models/Reference.js +25 -5
- package/lib/sdk/models/Reserve.d.ts +1 -1
- package/lib/sdk/models/Reserve.js +2 -2
- package/lib/sdk/models/ReserveRequest.d.ts +1 -1
- package/lib/sdk/models/ReserveRequest.js +2 -2
- package/lib/sdk/models/TokenizationSettings.d.ts +5 -0
- package/lib/sdk/models/TokenizationSettings.js +10 -0
- package/lib/sdk/models/TransactionQuery.d.ts +4 -2
- package/lib/sdk/models/TransactionQuery.js +30 -1
- package/lib/sdk/models/TransactionsCSV.d.ts +3 -0
- package/lib/sdk/models/TransactionsCSV.js +2 -0
- package/lib/sdk/models/UIOptions.d.ts +8 -0
- package/lib/sdk/models/UIOptions.js +13 -0
- package/lib/sdk/models/WebFormSettings.d.ts +9 -0
- package/lib/sdk/models/WebFormSettings.js +12 -0
- 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/sdk/models/webhook/index.d.ts +21 -0
- package/lib/sdk/models/webhook/index.js +45 -0
- package/lib/utils/boolean.utils.d.ts +4 -0
- package/lib/utils/boolean.utils.js +53 -0
- package/lib/utils/case.util.d.ts +4 -0
- package/lib/utils/case.util.js +61 -0
- package/lib/utils/index.d.ts +1 -0
- package/lib/utils/index.js +5 -0
- package/package.json +3 -3
|
@@ -1,11 +1,31 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
|
3
|
+
var extendStatics = function (d, b) {
|
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
+
return extendStatics(d, b);
|
|
8
|
+
};
|
|
9
|
+
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
+
extendStatics(d, b);
|
|
13
|
+
function __() { this.constructor = d; }
|
|
14
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
+
};
|
|
16
|
+
})();
|
|
2
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
18
|
exports.Reference = void 0;
|
|
4
|
-
var
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
19
|
+
var FixedCustomData_1 = require("./FixedCustomData");
|
|
20
|
+
var Reference = /** @class */ (function (_super) {
|
|
21
|
+
__extends(Reference, _super);
|
|
22
|
+
function Reference(type, metaReference, plexoClientName, plexoCertificatePath) {
|
|
23
|
+
var _this = _super.call(this, plexoClientName, plexoCertificatePath) || this;
|
|
24
|
+
_this.type = type;
|
|
25
|
+
_this.metaReference = metaReference;
|
|
26
|
+
_this.plexoClientName = plexoClientName;
|
|
27
|
+
return _this;
|
|
8
28
|
}
|
|
9
29
|
return Reference;
|
|
10
|
-
}());
|
|
30
|
+
}(FixedCustomData_1.FixedCustomData));
|
|
11
31
|
exports.Reference = Reference;
|
|
@@ -2,5 +2,5 @@ import { ReferenceType } from '..';
|
|
|
2
2
|
import { Reference } from './Reference';
|
|
3
3
|
export declare class Reserve extends Reference {
|
|
4
4
|
commit: boolean;
|
|
5
|
-
constructor(commit: boolean, type: ReferenceType, metaReference: string);
|
|
5
|
+
constructor(commit: boolean, type: ReferenceType, metaReference: string, plexoClientName: string, plexoCertificatePath: string);
|
|
6
6
|
}
|
|
@@ -19,8 +19,8 @@ exports.Reserve = void 0;
|
|
|
19
19
|
var Reference_1 = require("./Reference");
|
|
20
20
|
var Reserve = /** @class */ (function (_super) {
|
|
21
21
|
__extends(Reserve, _super);
|
|
22
|
-
function Reserve(commit, type, metaReference) {
|
|
23
|
-
var _this = _super.call(this, type, metaReference) || this;
|
|
22
|
+
function Reserve(commit, type, metaReference, plexoClientName, plexoCertificatePath) {
|
|
23
|
+
var _this = _super.call(this, type, metaReference, plexoClientName, plexoCertificatePath) || this;
|
|
24
24
|
_this.commit = commit;
|
|
25
25
|
return _this;
|
|
26
26
|
}
|
|
@@ -2,5 +2,5 @@ import { FinancialInclusion, Item, PaymentInstrumentInput } from '..';
|
|
|
2
2
|
import { PaymentRequest } from './PaymentRequest';
|
|
3
3
|
export declare class ReserveRequest extends PaymentRequest {
|
|
4
4
|
expirationUTC: number;
|
|
5
|
-
constructor(expirationUTC: number, clientReferenceId: string, paymentInstrumentInput: PaymentInstrumentInput, items: Item[], currencyId: number, installments: number, financialInclusion: FinancialInclusion);
|
|
5
|
+
constructor(expirationUTC: number, clientReferenceId: string, paymentInstrumentInput: PaymentInstrumentInput, items: Item[], currencyId: number, installments: number, financialInclusion: FinancialInclusion, plexoClientName: string, plexoCertificatePath: string);
|
|
6
6
|
}
|
|
@@ -19,8 +19,8 @@ exports.ReserveRequest = void 0;
|
|
|
19
19
|
var PaymentRequest_1 = require("./PaymentRequest");
|
|
20
20
|
var ReserveRequest = /** @class */ (function (_super) {
|
|
21
21
|
__extends(ReserveRequest, _super);
|
|
22
|
-
function ReserveRequest(expirationUTC, clientReferenceId, paymentInstrumentInput, items, currencyId, installments, financialInclusion) {
|
|
23
|
-
var _this = _super.call(this, clientReferenceId, paymentInstrumentInput, items, currencyId, installments, financialInclusion) || this;
|
|
22
|
+
function ReserveRequest(expirationUTC, clientReferenceId, paymentInstrumentInput, items, currencyId, installments, financialInclusion, plexoClientName, plexoCertificatePath) {
|
|
23
|
+
var _this = _super.call(this, clientReferenceId, paymentInstrumentInput, items, currencyId, installments, financialInclusion, plexoClientName, plexoCertificatePath) || this;
|
|
24
24
|
_this.expirationUTC = expirationUTC;
|
|
25
25
|
return _this;
|
|
26
26
|
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TokenizationSettings = void 0;
|
|
4
|
+
var TokenizationSettings = /** @class */ (function () {
|
|
5
|
+
function TokenizationSettings(display) {
|
|
6
|
+
this.display = display;
|
|
7
|
+
}
|
|
8
|
+
return TokenizationSettings;
|
|
9
|
+
}());
|
|
10
|
+
exports.TokenizationSettings = TokenizationSettings;
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
+
import { FixedCustomData } from './FixedCustomData';
|
|
1
2
|
import { TransactionOrder } from './TransactionOrder';
|
|
2
|
-
export declare
|
|
3
|
+
export declare class TransactionQuery extends FixedCustomData {
|
|
3
4
|
queries: Query[];
|
|
4
5
|
order: TransactionOrder[];
|
|
5
6
|
limit: number;
|
|
6
7
|
skip: number;
|
|
7
|
-
|
|
8
|
+
constructor(queries: Query[], order: TransactionOrder[], limit: number, skip: number, plexoClientName: string, plexoCertificatePath: string);
|
|
9
|
+
}
|
|
8
10
|
export declare enum TransactionOrderDirection {
|
|
9
11
|
Asc = 0,
|
|
10
12
|
Desc = 1
|
|
@@ -1,6 +1,35 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
|
3
|
+
var extendStatics = function (d, b) {
|
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
+
return extendStatics(d, b);
|
|
8
|
+
};
|
|
9
|
+
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
+
extendStatics(d, b);
|
|
13
|
+
function __() { this.constructor = d; }
|
|
14
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
+
};
|
|
16
|
+
})();
|
|
2
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TransactionField = exports.TransactionOperator = exports.QueryOperation = exports.TransactionOrderDirection = void 0;
|
|
18
|
+
exports.TransactionField = exports.TransactionOperator = exports.QueryOperation = exports.TransactionOrderDirection = exports.TransactionQuery = void 0;
|
|
19
|
+
var FixedCustomData_1 = require("./FixedCustomData");
|
|
20
|
+
var TransactionQuery = /** @class */ (function (_super) {
|
|
21
|
+
__extends(TransactionQuery, _super);
|
|
22
|
+
function TransactionQuery(queries, order, limit, skip, plexoClientName, plexoCertificatePath) {
|
|
23
|
+
var _this = _super.call(this, plexoClientName, plexoCertificatePath) || this;
|
|
24
|
+
_this.queries = queries;
|
|
25
|
+
_this.order = order;
|
|
26
|
+
_this.limit = limit;
|
|
27
|
+
_this.skip = skip;
|
|
28
|
+
return _this;
|
|
29
|
+
}
|
|
30
|
+
return TransactionQuery;
|
|
31
|
+
}(FixedCustomData_1.FixedCustomData));
|
|
32
|
+
exports.TransactionQuery = TransactionQuery;
|
|
4
33
|
var TransactionOrderDirection;
|
|
5
34
|
(function (TransactionOrderDirection) {
|
|
6
35
|
TransactionOrderDirection[TransactionOrderDirection["Asc"] = 0] = "Asc";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UIOptions = void 0;
|
|
4
|
+
var UIOptions = /** @class */ (function () {
|
|
5
|
+
function UIOptions(colors, theme, autoDarkTheme, logoURL) {
|
|
6
|
+
this.colors = colors;
|
|
7
|
+
this.theme = theme;
|
|
8
|
+
this.autoDarkTheme = autoDarkTheme;
|
|
9
|
+
this.logoURL = logoURL;
|
|
10
|
+
}
|
|
11
|
+
return UIOptions;
|
|
12
|
+
}());
|
|
13
|
+
exports.UIOptions = UIOptions;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ExpressCheckoutSettingsDto } from './ExpressCheckoutSettings';
|
|
2
|
+
import { TokenizationSettings } from './TokenizationSettings';
|
|
3
|
+
import { UIOptions } from './UIOptions';
|
|
4
|
+
export declare class WebFormSettings {
|
|
5
|
+
ui: UIOptions;
|
|
6
|
+
expressCheckout?: ExpressCheckoutSettingsDto;
|
|
7
|
+
tokenization: TokenizationSettings;
|
|
8
|
+
constructor(ui: UIOptions, expressCheckout: ExpressCheckoutSettingsDto, tokenization: TokenizationSettings);
|
|
9
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WebFormSettings = void 0;
|
|
4
|
+
var WebFormSettings = /** @class */ (function () {
|
|
5
|
+
function WebFormSettings(ui, expressCheckout, tokenization) {
|
|
6
|
+
this.ui = ui;
|
|
7
|
+
this.expressCheckout = expressCheckout;
|
|
8
|
+
this.tokenization = tokenization;
|
|
9
|
+
}
|
|
10
|
+
return WebFormSettings;
|
|
11
|
+
}());
|
|
12
|
+
exports.WebFormSettings = WebFormSettings;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Address = void 0;
|
|
4
|
+
var Address = /** @class */ (function () {
|
|
5
|
+
function Address(city, country, line1, line2, postalCode, state) {
|
|
6
|
+
this.city = city;
|
|
7
|
+
this.country = country;
|
|
8
|
+
this.line1 = line1;
|
|
9
|
+
this.line2 = line2;
|
|
10
|
+
this.postalCode = postalCode;
|
|
11
|
+
this.state = state;
|
|
12
|
+
}
|
|
13
|
+
return Address;
|
|
14
|
+
}());
|
|
15
|
+
exports.Address = Address;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare class CancellationInfo {
|
|
2
|
+
externalId: string;
|
|
3
|
+
resultText: string;
|
|
4
|
+
authorization: string;
|
|
5
|
+
metadata: string;
|
|
6
|
+
ticket: string;
|
|
7
|
+
status?: number;
|
|
8
|
+
transactionCode?: number;
|
|
9
|
+
executionDate?: Date;
|
|
10
|
+
constructor(externalId: string, resultText: string, authorization: string, metadata: string, ticket: string, status?: number, transactionCode?: number, executionDate?: Date);
|
|
11
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CancellationInfo = void 0;
|
|
4
|
+
var CancellationInfo = /** @class */ (function () {
|
|
5
|
+
function CancellationInfo(externalId, resultText, authorization, metadata, ticket, status, transactionCode, executionDate) {
|
|
6
|
+
this.externalId = externalId;
|
|
7
|
+
this.resultText = resultText;
|
|
8
|
+
this.authorization = authorization;
|
|
9
|
+
this.metadata = metadata;
|
|
10
|
+
this.ticket = ticket;
|
|
11
|
+
this.status = status;
|
|
12
|
+
this.transactionCode = transactionCode;
|
|
13
|
+
this.executionDate = executionDate;
|
|
14
|
+
}
|
|
15
|
+
return CancellationInfo;
|
|
16
|
+
}());
|
|
17
|
+
exports.CancellationInfo = CancellationInfo;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Commerce } from '.';
|
|
2
|
+
export declare class Client {
|
|
3
|
+
id: number;
|
|
4
|
+
name: string;
|
|
5
|
+
sessionTimeInSeconds: number;
|
|
6
|
+
tier?: number;
|
|
7
|
+
commerce?: Commerce;
|
|
8
|
+
constructor(id: number, name: string, sessionTimeInSeconds: number, tier: number, commerce: Commerce);
|
|
9
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Client = void 0;
|
|
4
|
+
var Client = /** @class */ (function () {
|
|
5
|
+
function Client(id, name, sessionTimeInSeconds, tier, commerce) {
|
|
6
|
+
this.id = id;
|
|
7
|
+
this.name = name;
|
|
8
|
+
this.sessionTimeInSeconds = sessionTimeInSeconds;
|
|
9
|
+
this.tier = tier;
|
|
10
|
+
this.commerce = commerce;
|
|
11
|
+
}
|
|
12
|
+
return Client;
|
|
13
|
+
}());
|
|
14
|
+
exports.Client = Client;
|
|
@@ -0,0 +1,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 '.';
|
|
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 '.';
|
|
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 '.';
|
|
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
|
+
}
|