liqpay-nestjs 0.3.7 → 0.3.8
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/README.md
CHANGED
|
@@ -313,7 +313,7 @@ Useful optional fields include:
|
|
|
313
313
|
- sender metadata such as `senderFirstName`, `senderLastName`, `senderAddress`, and `senderCountryCode`
|
|
314
314
|
- product metadata such as `productName`, `productDescription`, `productCategory`, and `productUrl`
|
|
315
315
|
|
|
316
|
-
The source repository keeps the full request and response models under `src/core/types` if you need exact field-level reference.
|
|
316
|
+
The source repository keeps the full request and response models under `src/core/types` if you need exact field-level reference, including the internal refund models.
|
|
317
317
|
|
|
318
318
|
## Type Exports
|
|
319
319
|
|
|
@@ -323,11 +323,15 @@ The package root exports TypeScript types for request and response modeling, for
|
|
|
323
323
|
import type {
|
|
324
324
|
CheckoutCallback,
|
|
325
325
|
CheckoutInput,
|
|
326
|
+
Currency,
|
|
326
327
|
LiqPayEnvelope,
|
|
327
328
|
LiqPayError,
|
|
329
|
+
LiqPayRequest,
|
|
330
|
+
LiqPayResponse,
|
|
328
331
|
PaymentStatusInput,
|
|
329
332
|
PaymentStatusResponse,
|
|
330
333
|
Result,
|
|
334
|
+
SplitRule,
|
|
331
335
|
} from 'liqpay-nestjs'
|
|
332
336
|
```
|
|
333
337
|
|
|
@@ -340,6 +344,17 @@ It also exports these runtime values:
|
|
|
340
344
|
|
|
341
345
|
Note: the package root currently exports types, not Zod schema values. The schema implementations live in the source under `src/core/types`.
|
|
342
346
|
|
|
347
|
+
## Refunds Status
|
|
348
|
+
|
|
349
|
+
The repository currently contains refund-related source files under `src/core/types/refund`, `src/core/clients/refunds.client.ts`, and `src/nest/services/refunds.service.ts`.
|
|
350
|
+
|
|
351
|
+
That refund code is not part of the current public package API:
|
|
352
|
+
|
|
353
|
+
- `LiqpayService` does not expose a `refunds` property
|
|
354
|
+
- the package root does not export `RefundInput`, `RefundRequest`, `RefundResponse`, or `RefundsService`
|
|
355
|
+
|
|
356
|
+
This README documents the public API that consumers can actually import from `liqpay-nestjs` today.
|
|
357
|
+
|
|
343
358
|
## Result Contract and Error Handling
|
|
344
359
|
|
|
345
360
|
Methods that parse LiqPay responses return this shape:
|
|
@@ -376,6 +391,8 @@ The package root exports:
|
|
|
376
391
|
- `LiqPayOptions`
|
|
377
392
|
- `LiqPayAsyncOptions`
|
|
378
393
|
|
|
394
|
+
It does not currently export `RefundsService` or refund-specific request and response types from the package root.
|
|
395
|
+
|
|
379
396
|
## Build
|
|
380
397
|
|
|
381
398
|
```bash
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import type { LiqPayOptions } from './interfaces';
|
|
2
|
-
import { PaymentsService, WebhooksService } from './services';
|
|
2
|
+
import { PaymentsService, RefundsService, WebhooksService } from './services';
|
|
3
3
|
export declare class LiqpayService {
|
|
4
4
|
private readonly options;
|
|
5
5
|
readonly payments: PaymentsService;
|
|
6
6
|
readonly webhooks: WebhooksService;
|
|
7
|
+
readonly refunds: RefundsService;
|
|
7
8
|
constructor(options: LiqPayOptions);
|
|
8
9
|
}
|
|
@@ -21,11 +21,13 @@ let LiqpayService = class LiqpayService {
|
|
|
21
21
|
options;
|
|
22
22
|
payments;
|
|
23
23
|
webhooks;
|
|
24
|
+
refunds;
|
|
24
25
|
constructor(options) {
|
|
25
26
|
this.options = options;
|
|
26
27
|
const client = new clients_1.LiqPayClient(options);
|
|
27
28
|
this.payments = new services_1.PaymentsService(client);
|
|
28
29
|
this.webhooks = new services_1.WebhooksService(client);
|
|
30
|
+
this.refunds = new services_1.RefundsService(client);
|
|
29
31
|
}
|
|
30
32
|
};
|
|
31
33
|
exports.LiqpayService = LiqpayService;
|
|
@@ -16,3 +16,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./payments.service"), exports);
|
|
18
18
|
__exportStar(require("./webhooks.service"), exports);
|
|
19
|
+
__exportStar(require("./refunds.service"), exports);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "liqpay-nestjs",
|
|
3
3
|
"description": "LiqPay integration module for NestJS with support for payments, callbacks, and configuration via DI.",
|
|
4
|
-
"version": "0.3.
|
|
4
|
+
"version": "0.3.8",
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"module": "dist/index.js",
|
|
7
7
|
"main": "dist/index.js",
|