@houlak/plexo-sdk 1.0.21 → 1.0.23-p
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 +2 -1
- package/lib/handler/PlexoHandler.js +12 -0
- package/lib/handler/services/evaluator.service.js +6 -0
- package/lib/sdk/IPaymentGatewayClient.d.ts +2 -1
- package/lib/sdk/PaymentGatewayClient.d.ts +2 -1
- package/lib/sdk/PaymentGatewayClient.js +13 -0
- package/lib/sdk/PaymentGatewayMock.d.ts +2 -1
- package/lib/sdk/PaymentGatewayMock.js +18 -0
- package/lib/sdk/mocks/mocks.js +1 -0
- package/lib/sdk/models/IndexSDK.d.ts +1 -0
- package/lib/sdk/models/IndexSDK.js +4 -2
- package/lib/sdk/models/ReferenceType.d.ts +2 -1
- package/lib/sdk/models/ReferenceType.js +1 -0
- package/lib/sdk/models/RefundRequest.d.ts +7 -0
- package/lib/sdk/models/RefundRequest.js +30 -0
- package/lib/sdk/models/Transaction.d.ts +1 -0
- package/lib/sdk/models/TransactionType.d.ts +2 -1
- package/lib/sdk/models/TransactionType.js +1 -0
- package/package.json +3 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Authorization, AuthorizationInfo, BaseServerResponse, CancelRequest, ClientSignedResponse, CodeRequest, Commerce, CommerceIdRequest, CommerceIssuerIdRequest, CommerceModifyRequest, CommerceRequest, CreateBankInstrumentRequest, DeleteInstrumentRequest, ExpressCheckoutRequest, InstrumentCallback, IssuerData, IssuerInfo, IssuerProcessor, PaymentInstrument, PaymentRequest, Reference, Reserve, ReserveRequest, ServerResponse, Session, Transaction, TransactionCallback, TransactionCursor, TransactionQuery, TransactionsCSV } from '../sdk/index';
|
|
1
|
+
import { Authorization, AuthorizationInfo, BaseServerResponse, CancelRequest, ClientSignedResponse, CodeRequest, Commerce, CommerceIdRequest, CommerceIssuerIdRequest, CommerceModifyRequest, CommerceRequest, CreateBankInstrumentRequest, DeleteInstrumentRequest, ExpressCheckoutRequest, InstrumentCallback, IssuerData, IssuerInfo, IssuerProcessor, PaymentInstrument, PaymentRequest, Reference, RefundRequest, Reserve, ReserveRequest, ServerResponse, Session, Transaction, TransactionCallback, TransactionCursor, TransactionQuery, TransactionsCSV } from '../sdk/index';
|
|
2
2
|
import { BaseResponse } from './types/BaseResponse';
|
|
3
3
|
export declare const PlexoHandler: {
|
|
4
4
|
AddCommerce: (commerceRequest: CommerceRequest) => Promise<BaseResponse<Commerce>>;
|
|
@@ -28,4 +28,5 @@ export declare const PlexoHandler: {
|
|
|
28
28
|
UnwrapTransactionCallback: (transactionCallback: any) => Promise<BaseResponse<TransactionCallback>>;
|
|
29
29
|
SignInstrumentCallback: (instrumentCallback: ServerResponse<InstrumentCallback>) => Promise<BaseResponse<ClientSignedResponse>>;
|
|
30
30
|
SignTransactionCallback: (transactionCallback: any) => Promise<BaseResponse<ClientSignedResponse>>;
|
|
31
|
+
Refund: (refund: RefundRequest) => Promise<BaseResponse<Transaction>>;
|
|
31
32
|
};
|
|
@@ -390,6 +390,17 @@ var SignTransactionCallback = function (transactionCallback) { return __awaiter(
|
|
|
390
390
|
}
|
|
391
391
|
});
|
|
392
392
|
}); };
|
|
393
|
+
var Refund = function (refund) { return __awaiter(void 0, void 0, void 0, function () {
|
|
394
|
+
var transactionResponse;
|
|
395
|
+
return __generator(this, function (_a) {
|
|
396
|
+
switch (_a.label) {
|
|
397
|
+
case 0: return [4 /*yield*/, paymentGatewayClient.RefundAsync(refund)];
|
|
398
|
+
case 1:
|
|
399
|
+
transactionResponse = _a.sent();
|
|
400
|
+
return [2 /*return*/, evaluator_service_1.Evaluator.transactionEvaluator(refund, transactionResponse, 'Refund', index_1.TransactionType.Refund)];
|
|
401
|
+
}
|
|
402
|
+
});
|
|
403
|
+
}); };
|
|
393
404
|
exports.PlexoHandler = {
|
|
394
405
|
AddCommerce: AddCommerce,
|
|
395
406
|
AddIssuerCommerce: AddIssuerCommerce,
|
|
@@ -418,4 +429,5 @@ exports.PlexoHandler = {
|
|
|
418
429
|
UnwrapTransactionCallback: UnwrapTransactionCallback,
|
|
419
430
|
SignInstrumentCallback: SignInstrumentCallback,
|
|
420
431
|
SignTransactionCallback: SignTransactionCallback,
|
|
432
|
+
Refund: Refund,
|
|
421
433
|
};
|
|
@@ -60,6 +60,12 @@ var getTransactionStatus = function (transaction, transactionType) {
|
|
|
60
60
|
transactionResultText: transaction.transactions.purchase.transactionResultText,
|
|
61
61
|
};
|
|
62
62
|
}
|
|
63
|
+
if (transactionType === index_1.TransactionType.Refund) {
|
|
64
|
+
return {
|
|
65
|
+
status: index_1.TransactionResult[+transaction.transactions.refund.status],
|
|
66
|
+
transactionResultText: transaction.transactions.refund.transactionResultText,
|
|
67
|
+
};
|
|
68
|
+
}
|
|
63
69
|
};
|
|
64
70
|
var genericEvaluator = function (request, response, withoutParams) {
|
|
65
71
|
if (withoutParams === void 0) { withoutParams = false; }
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IssuerProcessor } from '.';
|
|
2
|
-
import { Authorization, AuthorizationInfo, CancelRequest, ClientSignedResponse, CodeRequest, Commerce, CommerceIdRequest, CommerceIssuerIdRequest, CommerceModifyRequest, CommerceRequest, CreateBankInstrumentRequest, DeleteInstrumentRequest, ExpressCheckoutRequest, InstrumentCallback, IssuerData, IssuerInfo, PaymentRequest, PaymentInstrument, Reference, Reserve, ReserveRequest, BaseServerResponse, ServerResponse, ServerSignedCallback, Session, Transaction, TransactionCallback, TransactionCursor, TransactionQuery } from './models/IndexSDK';
|
|
2
|
+
import { Authorization, AuthorizationInfo, CancelRequest, ClientSignedResponse, CodeRequest, Commerce, CommerceIdRequest, CommerceIssuerIdRequest, CommerceModifyRequest, CommerceRequest, CreateBankInstrumentRequest, DeleteInstrumentRequest, ExpressCheckoutRequest, InstrumentCallback, IssuerData, IssuerInfo, PaymentRequest, PaymentInstrument, Reference, Reserve, ReserveRequest, BaseServerResponse, ServerResponse, ServerSignedCallback, Session, Transaction, TransactionCallback, TransactionCursor, TransactionQuery, RefundRequest } from './models/IndexSDK';
|
|
3
3
|
export interface IPaymentGatewayClient {
|
|
4
4
|
AddCommerceAsync(commerce: CommerceRequest): Promise<ServerResponse<Commerce>>;
|
|
5
5
|
AddIssuerCommerceAsync(issuerData: IssuerData): Promise<ServerResponse<IssuerData>>;
|
|
@@ -28,4 +28,5 @@ export interface IPaymentGatewayClient {
|
|
|
28
28
|
UnwrapTransactionCallbackAsync(serverSignedTransactionCallback: ServerSignedCallback<TransactionCallback>): Promise<ServerResponse<TransactionCallback>>;
|
|
29
29
|
SignInstrumentCallback(serverResponse: ServerResponse<InstrumentCallback>): Promise<ClientSignedResponse>;
|
|
30
30
|
SignTransactionCallback(serverResponse: ServerResponse<TransactionCallback>): Promise<ClientSignedResponse>;
|
|
31
|
+
RefundAsync(request: RefundRequest): Promise<ServerResponse<Transaction>>;
|
|
31
32
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Authorization, AuthorizationInfo, CancelRequest, ClientSignedResponse, CodeRequest, Commerce, CommerceIdRequest, CommerceIssuerIdRequest, CommerceModifyRequest, CommerceRequest, CreateBankInstrumentRequest, DeleteInstrumentRequest, ExpressCheckoutRequest, InstrumentCallback, IssuerData, IssuerInfo, PaymentRequest, PaymentInstrument, Reference, Reserve, ReserveRequest, BaseServerResponse, ServerResponse, ServerSignedCallback, Session, Transaction, TransactionCallback, TransactionCursor, TransactionQuery } from './models/IndexSDK';
|
|
1
|
+
import { Authorization, AuthorizationInfo, CancelRequest, ClientSignedResponse, CodeRequest, Commerce, CommerceIdRequest, CommerceIssuerIdRequest, CommerceModifyRequest, CommerceRequest, CreateBankInstrumentRequest, DeleteInstrumentRequest, ExpressCheckoutRequest, InstrumentCallback, IssuerData, IssuerInfo, PaymentRequest, PaymentInstrument, Reference, Reserve, ReserveRequest, BaseServerResponse, ServerResponse, ServerSignedCallback, Session, Transaction, TransactionCallback, TransactionCursor, TransactionQuery, RefundRequest } from './models/IndexSDK';
|
|
2
2
|
import { IssuerProcessor } from './index';
|
|
3
3
|
import { IPaymentGatewayClient } from './IPaymentGatewayClient';
|
|
4
4
|
export declare class PaymentGatewayClient implements IPaymentGatewayClient {
|
|
@@ -29,4 +29,5 @@ export declare class PaymentGatewayClient implements IPaymentGatewayClient {
|
|
|
29
29
|
UnwrapTransactionCallbackAsync(serverSignedTransactionCallback: ServerSignedCallback<TransactionCallback>): Promise<ServerResponse<TransactionCallback>>;
|
|
30
30
|
SignInstrumentCallback(serverResponse: ServerResponse<InstrumentCallback>): Promise<ClientSignedResponse>;
|
|
31
31
|
SignTransactionCallback(serverResponse: ServerResponse<TransactionCallback>): Promise<ClientSignedResponse>;
|
|
32
|
+
RefundAsync(refund: RefundRequest): Promise<ServerResponse<Transaction>>;
|
|
32
33
|
}
|
|
@@ -374,6 +374,19 @@ var PaymentGatewayClient = /** @class */ (function () {
|
|
|
374
374
|
});
|
|
375
375
|
});
|
|
376
376
|
};
|
|
377
|
+
PaymentGatewayClient.prototype.RefundAsync = function (refund) {
|
|
378
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
379
|
+
var response;
|
|
380
|
+
return __generator(this, function (_a) {
|
|
381
|
+
switch (_a.label) {
|
|
382
|
+
case 0: return [4 /*yield*/, requestToPlexo('/Operation/Refund', refund)];
|
|
383
|
+
case 1:
|
|
384
|
+
response = _a.sent();
|
|
385
|
+
return [2 /*return*/, response];
|
|
386
|
+
}
|
|
387
|
+
});
|
|
388
|
+
});
|
|
389
|
+
};
|
|
377
390
|
return PaymentGatewayClient;
|
|
378
391
|
}());
|
|
379
392
|
exports.PaymentGatewayClient = PaymentGatewayClient;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IPaymentGatewayClient } from './IPaymentGatewayClient';
|
|
2
|
-
import { Authorization, AuthorizationInfo, BaseServerResponse, CancelRequest, ClientSignedResponse, CodeRequest, Commerce, CommerceIdRequest, CommerceIssuerIdRequest, CommerceModifyRequest, CommerceRequest, CreateBankInstrumentRequest, DeleteInstrumentRequest, ExpressCheckoutRequest, InstrumentCallback, IssuerData, IssuerInfo, IssuerProcessor, PaymentInstrument, PaymentRequest, Reference, Reserve, ReserveRequest, ServerResponse, ServerSignedCallback, Session, Transaction, TransactionCallback, TransactionCursor, TransactionQuery } from './models/IndexSDK';
|
|
2
|
+
import { Authorization, AuthorizationInfo, BaseServerResponse, CancelRequest, ClientSignedResponse, CodeRequest, Commerce, CommerceIdRequest, CommerceIssuerIdRequest, CommerceModifyRequest, CommerceRequest, CreateBankInstrumentRequest, DeleteInstrumentRequest, ExpressCheckoutRequest, InstrumentCallback, IssuerData, IssuerInfo, IssuerProcessor, PaymentInstrument, PaymentRequest, Reference, RefundRequest, Reserve, ReserveRequest, ServerResponse, ServerSignedCallback, Session, Transaction, TransactionCallback, TransactionCursor, TransactionQuery } from './models/IndexSDK';
|
|
3
3
|
export declare class PaymentGatewayMock implements IPaymentGatewayClient {
|
|
4
4
|
AddCommerceAsync(commerce: CommerceRequest): Promise<ServerResponse<Commerce>>;
|
|
5
5
|
AddIssuerCommerceAsync(issuerData: IssuerData): Promise<ServerResponse<IssuerData>>;
|
|
@@ -28,4 +28,5 @@ export declare class PaymentGatewayMock implements IPaymentGatewayClient {
|
|
|
28
28
|
UnwrapTransactionCallbackAsync(serverSignedTransactionCallback: ServerSignedCallback<TransactionCallback>): Promise<ServerResponse<TransactionCallback>>;
|
|
29
29
|
SignInstrumentCallback(serverResponse: ServerResponse<InstrumentCallback>): Promise<ClientSignedResponse>;
|
|
30
30
|
SignTransactionCallback(serverResponse: ServerResponse<TransactionCallback>): Promise<ClientSignedResponse>;
|
|
31
|
+
RefundAsync(refund: RefundRequest): Promise<ServerResponse<Transaction>>;
|
|
31
32
|
}
|
|
@@ -188,6 +188,7 @@ var PaymentGatewayMock = /** @class */ (function () {
|
|
|
188
188
|
purchase: mocks_1.mocks.transactionMock.transactions.purchase,
|
|
189
189
|
reserve: mocks_1.mocks.transactionMock.transactions.reserve,
|
|
190
190
|
cancel: __assign(__assign({}, mocks_1.mocks.transactionMock.transactions.cancel), { clientReferenceId: cancel.clientReferenceId }),
|
|
191
|
+
refund: mocks_1.mocks.transactionMock.transactions.refund,
|
|
191
192
|
} }),
|
|
192
193
|
}];
|
|
193
194
|
});
|
|
@@ -212,6 +213,7 @@ var PaymentGatewayMock = /** @class */ (function () {
|
|
|
212
213
|
purchase: mocks_1.mocks.transactionMock.transactions.purchase,
|
|
213
214
|
reserve: __assign(__assign({}, mocks_1.mocks.transactionMock.transactions.reserve), { clientReferenceId: payment.clientReferenceId, expirationUTC: payment.expirationUTC }),
|
|
214
215
|
cancel: mocks_1.mocks.transactionMock.transactions.cancel,
|
|
216
|
+
refund: mocks_1.mocks.transactionMock.transactions.refund,
|
|
215
217
|
} }),
|
|
216
218
|
}];
|
|
217
219
|
});
|
|
@@ -266,6 +268,7 @@ var PaymentGatewayMock = /** @class */ (function () {
|
|
|
266
268
|
purchase: __assign(__assign({}, mocks_1.mocks.transactionMock.transactions.purchase), { clientReferenceId: payment.clientReferenceId }),
|
|
267
269
|
reserve: mocks_1.mocks.transactionMock.transactions.reserve,
|
|
268
270
|
cancel: mocks_1.mocks.transactionMock.transactions.cancel,
|
|
271
|
+
refund: mocks_1.mocks.transactionMock.transactions.refund,
|
|
269
272
|
} }),
|
|
270
273
|
}];
|
|
271
274
|
});
|
|
@@ -325,6 +328,21 @@ var PaymentGatewayMock = /** @class */ (function () {
|
|
|
325
328
|
});
|
|
326
329
|
});
|
|
327
330
|
};
|
|
331
|
+
PaymentGatewayMock.prototype.RefundAsync = function (refund) {
|
|
332
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
333
|
+
return __generator(this, function (_a) {
|
|
334
|
+
return [2 /*return*/, {
|
|
335
|
+
resultCode: IndexSDK_1.ResultCodes.Ok,
|
|
336
|
+
response: __assign(__assign({}, mocks_1.mocks.transactionMock), { transactions: {
|
|
337
|
+
purchase: mocks_1.mocks.transactionMock.transactions.purchase,
|
|
338
|
+
reserve: mocks_1.mocks.transactionMock.transactions.reserve,
|
|
339
|
+
cancel: __assign(__assign({}, mocks_1.mocks.transactionMock.transactions.cancel), { clientReferenceId: refund.clientReferenceId }),
|
|
340
|
+
refund: __assign(__assign({}, mocks_1.mocks.transactionMock.transactions.refund), { clientReferenceId: refund.clientReferenceId }),
|
|
341
|
+
} }),
|
|
342
|
+
}];
|
|
343
|
+
});
|
|
344
|
+
});
|
|
345
|
+
};
|
|
328
346
|
return PaymentGatewayMock;
|
|
329
347
|
}());
|
|
330
348
|
exports.PaymentGatewayMock = PaymentGatewayMock;
|
package/lib/sdk/mocks/mocks.js
CHANGED
|
@@ -61,6 +61,7 @@ export { PublicKeyInfo } from './PublicKeyInfo';
|
|
|
61
61
|
export { QueryOperation } from './TransactionQuery';
|
|
62
62
|
export { Reference } from './Reference';
|
|
63
63
|
export { ReferenceType } from './ReferenceType';
|
|
64
|
+
export { RefundRequest } from './RefundRequest';
|
|
64
65
|
export { Reserve } from './Reserve';
|
|
65
66
|
export { ReserveRequest } from './ReserveRequest';
|
|
66
67
|
export { ResultCodes } from './ResultCodes';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.PlexoErrorEnum = exports.WebFormSettings = exports.UIOptions = exports.TransactionType = exports.TransactionResult = exports.TransactionOperator = exports.TransactionField = exports.TransactionCallback = void 0;
|
|
3
|
+
exports.TokenizationSettings = exports.StateObject = exports.SignedObject = exports.ServerSignedResponse = exports.ServerSignedRequest = exports.ServerSignedCallback = exports.ServerResponse = exports.ResultCodes = exports.ReserveRequest = exports.Reserve = exports.RefundRequest = exports.ReferenceType = exports.Reference = exports.QueryOperation = exports.PaymentRequest = exports.PaymentProcessor = exports.IssuerSignedRequest = exports.IssuerRequest = exports.IssuerProcessor = exports.InstrumentWithMetadata = exports.InstrumentCallback = exports.InclusionType = exports.IdentificationType = exports.GenericStateObject = exports.GenericSignedObject = exports.GenericServerSignedResponse = exports.GenericIssuerSignedRequest = exports.GenericIssuerRequest = exports.GenericClientSignedRequest = exports.GenericClientRequest = exports.FieldType = exports.FieldInfoPaymentProcessors = exports.ExpressCheckoutSettingsDto = exports.DisplayOptions = exports.DeleteInstrumentRequest = exports.CodeAction = exports.ClientSignedResponse = exports.ClientSignedRequest = exports.ClientResponse = exports.ClientRequest = exports.CardTypes = exports.CardStatus = exports.CancelRequest = exports.BuiltInPagesOptions = exports.BaseServerResponse = exports.AuthorizationType = exports.AuthorizationInfo = exports.Authorization = exports.ActionType = exports.BaseResponse = void 0;
|
|
4
|
+
exports.PlexoErrorEnum = exports.WebFormSettings = exports.UIOptions = exports.TransactionType = exports.TransactionResult = exports.TransactionOperator = exports.TransactionField = exports.TransactionCallback = exports.Transaction = void 0;
|
|
5
5
|
var BaseResponse_1 = require("../../handler/types/BaseResponse");
|
|
6
6
|
Object.defineProperty(exports, "BaseResponse", { enumerable: true, get: function () { return BaseResponse_1.BaseResponse; } });
|
|
7
7
|
var ActionType_1 = require("./ActionType");
|
|
@@ -80,6 +80,8 @@ var Reference_1 = require("./Reference");
|
|
|
80
80
|
Object.defineProperty(exports, "Reference", { enumerable: true, get: function () { return Reference_1.Reference; } });
|
|
81
81
|
var ReferenceType_1 = require("./ReferenceType");
|
|
82
82
|
Object.defineProperty(exports, "ReferenceType", { enumerable: true, get: function () { return ReferenceType_1.ReferenceType; } });
|
|
83
|
+
var RefundRequest_1 = require("./RefundRequest");
|
|
84
|
+
Object.defineProperty(exports, "RefundRequest", { enumerable: true, get: function () { return RefundRequest_1.RefundRequest; } });
|
|
83
85
|
var Reserve_1 = require("./Reserve");
|
|
84
86
|
Object.defineProperty(exports, "Reserve", { enumerable: true, get: function () { return Reserve_1.Reserve; } });
|
|
85
87
|
var ReserveRequest_1 = require("./ReserveRequest");
|
|
@@ -7,4 +7,5 @@ var ReferenceType;
|
|
|
7
7
|
ReferenceType[ReferenceType["ClientPurchaseReferenceId"] = 1] = "ClientPurchaseReferenceId";
|
|
8
8
|
ReferenceType[ReferenceType["ClientCancelReferenceId"] = 2] = "ClientCancelReferenceId";
|
|
9
9
|
ReferenceType[ReferenceType["ClientReserveReferenceId"] = 3] = "ClientReserveReferenceId";
|
|
10
|
+
ReferenceType[ReferenceType["ClientRefundReferenceId"] = 4] = "ClientRefundReferenceId";
|
|
10
11
|
})(ReferenceType = exports.ReferenceType || (exports.ReferenceType = {}));
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ReferenceType } from '..';
|
|
2
|
+
import { Reference } from './Reference';
|
|
3
|
+
export declare class RefundRequest extends Reference {
|
|
4
|
+
clientReferenceId: string;
|
|
5
|
+
amount: number;
|
|
6
|
+
constructor(clientReferenceId: string, amount: number, type: ReferenceType, metaReference: string);
|
|
7
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
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
|
+
})();
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.RefundRequest = void 0;
|
|
19
|
+
var Reference_1 = require("./Reference");
|
|
20
|
+
var RefundRequest = /** @class */ (function (_super) {
|
|
21
|
+
__extends(RefundRequest, _super);
|
|
22
|
+
function RefundRequest(clientReferenceId, amount, type, metaReference) {
|
|
23
|
+
var _this = _super.call(this, type, metaReference) || this;
|
|
24
|
+
_this.clientReferenceId = clientReferenceId;
|
|
25
|
+
_this.amount = amount;
|
|
26
|
+
return _this;
|
|
27
|
+
}
|
|
28
|
+
return RefundRequest;
|
|
29
|
+
}(Reference_1.Reference));
|
|
30
|
+
exports.RefundRequest = RefundRequest;
|
|
@@ -6,4 +6,5 @@ var TransactionType;
|
|
|
6
6
|
TransactionType[TransactionType["Reserve"] = 0] = "Reserve";
|
|
7
7
|
TransactionType[TransactionType["Purchase"] = 1] = "Purchase";
|
|
8
8
|
TransactionType[TransactionType["Cancel"] = 2] = "Cancel";
|
|
9
|
+
TransactionType[TransactionType["Refund"] = 3] = "Refund";
|
|
9
10
|
})(TransactionType = exports.TransactionType || (exports.TransactionType = {}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@houlak/plexo-sdk",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.23-p",
|
|
4
4
|
"description": "Node SDK for Plexo payment services",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -44,9 +44,9 @@
|
|
|
44
44
|
}
|
|
45
45
|
},
|
|
46
46
|
"engines": {
|
|
47
|
-
"node": "
|
|
47
|
+
"node": "20"
|
|
48
48
|
},
|
|
49
49
|
"files": [
|
|
50
50
|
"lib/**/*"
|
|
51
51
|
]
|
|
52
|
-
}
|
|
52
|
+
}
|