@blocklet/payment-js 1.22.24 → 1.22.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.d.ts CHANGED
@@ -365,6 +365,14 @@ declare const _default: {
365
365
  customer_id: string;
366
366
  subscription_id?: string;
367
367
  }, data?: never) => Promise<import("./resources/credit-grant").CreditSummary>;
368
+ verifyAvailability: (_params: {
369
+ customer_id: string;
370
+ currency_id: string;
371
+ pending_amount?: string;
372
+ }, data?: never) => Promise<{
373
+ can_continue: boolean;
374
+ reason?: string;
375
+ }>;
368
376
  };
369
377
  creditTransactions: {
370
378
  retrieve: (_params: string, data?: never) => Promise<import("@blocklet/payment-types").TCreditTransactionExpanded>;
@@ -44,5 +44,13 @@ declare const _default: {
44
44
  }>;
45
45
  list: (_params: ListParams, data?: never) => Promise<Paginated<TCreditGrantExpanded>>;
46
46
  summary: (_params: SummaryParams, data?: never) => Promise<CreditSummary>;
47
+ verifyAvailability: (_params: {
48
+ customer_id: string;
49
+ currency_id: string;
50
+ pending_amount?: string;
51
+ }, data?: never) => Promise<{
52
+ can_continue: boolean;
53
+ reason?: string;
54
+ }>;
47
55
  };
48
56
  export default _default;
@@ -22,4 +22,8 @@ exports.default = {
22
22
  method: 'GET',
23
23
  path: '/api/credit-grants/summary',
24
24
  }),
25
+ verifyAvailability: (0, resource_1.createResourceMethod)({
26
+ method: 'GET',
27
+ path: '/api/credit-grants/verify-availability',
28
+ }),
25
29
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blocklet/payment-js",
3
- "version": "1.22.24",
3
+ "version": "1.22.26",
4
4
  "description": "Node.js client for Payment Kit",
5
5
  "keywords": [
6
6
  "types",
@@ -36,9 +36,9 @@
36
36
  "url": "https://github.com/blocklet/payment-kit/issues"
37
37
  },
38
38
  "dependencies": {
39
- "@blocklet/constant": "^1.17.3-beta-20251126-121502-d0926972",
40
- "@blocklet/payment-types": "1.22.24",
41
- "@blocklet/sdk": "^1.17.3-beta-20251126-121502-d0926972"
39
+ "@blocklet/constant": "^1.17.3",
40
+ "@blocklet/payment-types": "1.22.26",
41
+ "@blocklet/sdk": "^1.17.3"
42
42
  },
43
43
  "importSort": {
44
44
  ".js, .jsx, .mjs": {
@@ -64,5 +64,5 @@
64
64
  "type-fest": "^4.41.0",
65
65
  "typescript": "5.5.4"
66
66
  },
67
- "gitHead": "d24ce471f0bdbf4a0ccaaa5317d4c68b4ddfd3bf"
67
+ "gitHead": "eb36a8deed14f45ff5917cc61bcc44cda36d1906"
68
68
  }