@houlak/plexo-sdk 0.1.5 → 0.1.6-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.js +3 -3
- 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 +3 -0
- package/lib/sdk/models/Authorization.d.ts +4 -5
- package/lib/sdk/models/Authorization.js +8 -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 +6 -0
- package/lib/sdk/models/FixedCustomData.js +12 -0
- package/lib/sdk/models/GenericSignedObject.d.ts +1 -1
- package/lib/sdk/models/GenericSignedObject.js +3 -3
- package/lib/sdk/models/GenericStateObject.d.ts +1 -1
- package/lib/sdk/models/GenericStateObject.js +3 -3
- package/lib/sdk/models/IndexSDK.d.ts +8 -6
- package/lib/sdk/models/IndexSDK.js +32 -14
- package/lib/sdk/models/InstrumentCallback.d.ts +2 -2
- package/lib/sdk/models/InstrumentCallback.js +5 -5
- 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/TransactionCallback.d.ts +3 -3
- package/lib/sdk/models/TransactionCallback.js +3 -3
- 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,2 +1,33 @@
|
|
|
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 });
|
|
18
|
+
exports.IssuerData = void 0;
|
|
19
|
+
var FixedCustomData_1 = require("./FixedCustomData");
|
|
20
|
+
var IssuerData = /** @class */ (function (_super) {
|
|
21
|
+
__extends(IssuerData, _super);
|
|
22
|
+
function IssuerData(issuerId, commerceId, plexoClientName, plexoCertificatePassword, plexoCertificatePath, paymentFacilitatorCommerceId, paymentFacilitatorId, metadata) {
|
|
23
|
+
var _this = _super.call(this, plexoClientName, plexoCertificatePassword, plexoCertificatePath) || this;
|
|
24
|
+
_this.issuerId = issuerId;
|
|
25
|
+
_this.commerceId = commerceId;
|
|
26
|
+
_this.paymentFacilitatorCommerceId = paymentFacilitatorCommerceId;
|
|
27
|
+
_this.paymentFacilitatorId = paymentFacilitatorId;
|
|
28
|
+
_this.metadata = metadata;
|
|
29
|
+
return _this;
|
|
30
|
+
}
|
|
31
|
+
return IssuerData;
|
|
32
|
+
}(FixedCustomData_1.FixedCustomData));
|
|
33
|
+
exports.IssuerData = IssuerData;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { FinancialInclusion } from './FinancialInclusion';
|
|
2
|
+
import { FixedCustomData } from './FixedCustomData';
|
|
2
3
|
import { Item } from './Item';
|
|
3
4
|
import { PaymentInstrumentInput } from './PaymentInstrumentInput';
|
|
4
|
-
export declare class PaymentRequest {
|
|
5
|
+
export declare class PaymentRequest extends FixedCustomData {
|
|
5
6
|
clientReferenceId: string;
|
|
6
7
|
paymentInstrumentInput: PaymentInstrumentInput;
|
|
7
8
|
items: Item[];
|
|
@@ -13,5 +14,5 @@ export declare class PaymentRequest {
|
|
|
13
14
|
optionalMetadata?: string;
|
|
14
15
|
optionalProvidedCode?: string;
|
|
15
16
|
optionalExternalPaymentInfo?: string;
|
|
16
|
-
constructor(clientReferenceId: string, paymentInstrumentInput: PaymentInstrumentInput, items: Item[], currencyId: number, installments: number, financialInclusion: FinancialInclusion, tipAmount?: number, optionalCommerceId?: number, optionalMetadata?: string, optionalProvidedCode?: string, optionalExternalPaymentInfo?: string);
|
|
17
|
+
constructor(clientReferenceId: string, paymentInstrumentInput: PaymentInstrumentInput, items: Item[], currencyId: number, installments: number, financialInclusion: FinancialInclusion, plexoClientName: string, plexoCertificatePassword: string, plexoCertificatePath: string, tipAmount?: number, optionalCommerceId?: number, optionalMetadata?: string, optionalProvidedCode?: string, optionalExternalPaymentInfo?: string);
|
|
17
18
|
}
|
|
@@ -1,20 +1,39 @@
|
|
|
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.PaymentRequest = void 0;
|
|
4
|
-
var
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
19
|
+
var FixedCustomData_1 = require("./FixedCustomData");
|
|
20
|
+
var PaymentRequest = /** @class */ (function (_super) {
|
|
21
|
+
__extends(PaymentRequest, _super);
|
|
22
|
+
function PaymentRequest(clientReferenceId, paymentInstrumentInput, items, currencyId, installments, financialInclusion, plexoClientName, plexoCertificatePassword, plexoCertificatePath, tipAmount, optionalCommerceId, optionalMetadata, optionalProvidedCode, optionalExternalPaymentInfo) {
|
|
23
|
+
var _this = _super.call(this, plexoClientName, plexoCertificatePassword, plexoCertificatePath) || this;
|
|
24
|
+
_this.clientReferenceId = clientReferenceId;
|
|
25
|
+
_this.paymentInstrumentInput = paymentInstrumentInput;
|
|
26
|
+
_this.items = items;
|
|
27
|
+
_this.currencyId = currencyId;
|
|
28
|
+
_this.installments = installments;
|
|
29
|
+
_this.financialInclusion = financialInclusion;
|
|
30
|
+
_this.tipAmount = tipAmount;
|
|
31
|
+
_this.optionalCommerceId = optionalCommerceId;
|
|
32
|
+
_this.optionalMetadata = optionalMetadata;
|
|
33
|
+
_this.optionalProvidedCode = optionalProvidedCode;
|
|
34
|
+
_this.optionalExternalPaymentInfo = optionalExternalPaymentInfo;
|
|
35
|
+
return _this;
|
|
17
36
|
}
|
|
18
37
|
return PaymentRequest;
|
|
19
|
-
}());
|
|
38
|
+
}(FixedCustomData_1.FixedCustomData));
|
|
20
39
|
exports.PaymentRequest = PaymentRequest;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
import { FixedCustomData } from './FixedCustomData';
|
|
1
2
|
import { ReferenceType } from './ReferenceType';
|
|
2
|
-
export declare class Reference {
|
|
3
|
+
export declare class Reference extends FixedCustomData {
|
|
3
4
|
type: ReferenceType;
|
|
4
5
|
metaReference: string;
|
|
5
|
-
|
|
6
|
+
plexoClientName: string;
|
|
7
|
+
constructor(type: ReferenceType, metaReference: string, plexoClientName: string, plexoCertificatePassword: string, plexoCertificatePath: string);
|
|
6
8
|
}
|
|
@@ -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, plexoCertificatePassword, plexoCertificatePath) {
|
|
23
|
+
var _this = _super.call(this, plexoClientName, plexoCertificatePassword, 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, plexoCertificatePassword: 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, plexoCertificatePassword, plexoCertificatePath) {
|
|
23
|
+
var _this = _super.call(this, type, metaReference, plexoClientName, plexoCertificatePassword, 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, plexoCertificatePassword: 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, plexoCertificatePassword, plexoCertificatePath) {
|
|
23
|
+
var _this = _super.call(this, clientReferenceId, paymentInstrumentInput, items, currencyId, installments, financialInclusion, plexoClientName, plexoCertificatePassword, 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,7 +1,7 @@
|
|
|
1
|
-
import { Commerce
|
|
2
|
-
import { PaymentCode
|
|
1
|
+
import { Commerce, Currency, FinancialInclusionResult, IssuerInfo, TransactionType } from '..';
|
|
2
|
+
import { PaymentCode } from './CodeAction';
|
|
3
3
|
import { Transaction } from './Transaction';
|
|
4
4
|
export declare class TransactionCallback extends Transaction {
|
|
5
5
|
client: string;
|
|
6
|
-
constructor(
|
|
6
|
+
constructor(client: string, transactionId: string, commerce: Commerce, instrumentToken: string, instrumentName: string, issuer: IssuerInfo, amount: number, installments: number, currency: Currency, isAnonymous: boolean, currentState: TransactionType, invoiceNumber: string, financialInclusion: FinancialInclusionResult, transactions: any, fieldInformation: any, isAsyncPayment: boolean, paymentCode: PaymentCode, utcUnixTimeExpiration: number);
|
|
7
7
|
}
|
|
@@ -19,9 +19,9 @@ exports.TransactionCallback = void 0;
|
|
|
19
19
|
var Transaction_1 = require("./Transaction");
|
|
20
20
|
var TransactionCallback = /** @class */ (function (_super) {
|
|
21
21
|
__extends(TransactionCallback, _super);
|
|
22
|
-
function TransactionCallback(
|
|
23
|
-
var _this = _super.call(this,
|
|
24
|
-
_this.client =
|
|
22
|
+
function TransactionCallback(client, transactionId, commerce, instrumentToken, instrumentName, issuer, amount, installments, currency, isAnonymous, currentState, invoiceNumber, financialInclusion, transactions, fieldInformation, isAsyncPayment, paymentCode, utcUnixTimeExpiration) {
|
|
23
|
+
var _this = _super.call(this, transactionId, commerce, instrumentToken, instrumentName, issuer, amount, installments, currency, isAnonymous, currentState, invoiceNumber, financialInclusion, transactions, fieldInformation, isAsyncPayment, paymentCode, utcUnixTimeExpiration) || this;
|
|
24
|
+
_this.client = client;
|
|
25
25
|
return _this;
|
|
26
26
|
}
|
|
27
27
|
return TransactionCallback;
|
|
@@ -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, plexoCertificatePassword: 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, plexoCertificatePassword, plexoCertificatePath) {
|
|
23
|
+
var _this = _super.call(this, plexoClientName, plexoCertificatePassword, 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; } });
|