@blocklet/payment-js 1.18.46 → 1.18.48

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
@@ -234,6 +234,10 @@ declare const _default: {
234
234
  method: import("@blocklet/payment-types").PaymentMethod;
235
235
  }>;
236
236
  }>;
237
+ returnStake: (_params: string, data?: never) => Promise<{
238
+ success: boolean;
239
+ subscriptionId: string;
240
+ }>;
237
241
  };
238
242
  subscriptionItems: {
239
243
  create: (data: Partial<import("sequelize").InferAttributes<import("@blocklet/payment-types").SubscriptionItem, {
@@ -56,5 +56,9 @@ declare const _default: {
56
56
  method: PaymentMethod;
57
57
  }>;
58
58
  }>;
59
+ returnStake: (_params: string, data?: never) => Promise<{
60
+ success: boolean;
61
+ subscriptionId: string;
62
+ }>;
59
63
  };
60
64
  export default _default;
@@ -46,4 +46,8 @@ exports.default = {
46
46
  method: 'GET',
47
47
  path: '/api/subscriptions/{id}/overdue/invoices',
48
48
  }),
49
+ returnStake: (0, resource_1.createResourceMethod)({
50
+ method: 'PUT',
51
+ path: '/api/subscriptions/{id}/return-stake',
52
+ }),
49
53
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blocklet/payment-js",
3
- "version": "1.18.46",
3
+ "version": "1.18.48",
4
4
  "description": "Node.js client for Payment Kit",
5
5
  "keywords": [
6
6
  "types",
@@ -36,7 +36,7 @@
36
36
  "url": "https://github.com/blocklet/payment-kit/issues"
37
37
  },
38
38
  "dependencies": {
39
- "@blocklet/payment-types": "1.18.46",
39
+ "@blocklet/payment-types": "1.18.48",
40
40
  "@blocklet/sdk": "^1.16.43"
41
41
  },
42
42
  "importSort": {
@@ -63,5 +63,5 @@
63
63
  "type-fest": "^4.23.0",
64
64
  "typescript": "^5.5.4"
65
65
  },
66
- "gitHead": "3b82c845f7a0bf2e91bf6c485e42630743354409"
66
+ "gitHead": "4042dc2996b11ab6ccf6a973af53042cff913474"
67
67
  }