@blocklet/payment-js 1.19.17 → 1.19.19

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
@@ -123,6 +123,12 @@ declare const _default: {
123
123
  list: (_params: any, data?: never) => Promise<import("sequelize").InferAttributes<import("@blocklet/payment-types").PaymentCurrency, {
124
124
  omit: never;
125
125
  }>[]>;
126
+ updateRechargeConfig: (_params: string, data?: import("@blocklet/payment-types").RechargeConfig) => Promise<import("sequelize").InferAttributes<import("@blocklet/payment-types").PaymentCurrency, {
127
+ omit: never;
128
+ }>>;
129
+ getRechargeConfig: (_params: string, data?: never) => Promise<import("sequelize").InferAttributes<import("@blocklet/payment-types").PaymentCurrency, {
130
+ omit: never;
131
+ }>>;
126
132
  };
127
133
  paymentMethods: {
128
134
  create: (data: Partial<import("sequelize").InferAttributes<import("@blocklet/payment-types").PaymentMethod, {
@@ -1,3 +1,4 @@
1
+ import type { RechargeConfig } from '@blocklet/payment-types';
1
2
  declare const _default: {
2
3
  create: (data: Partial<import("sequelize").InferAttributes<import("@blocklet/payment-types").PaymentCurrency, {
3
4
  omit: never;
@@ -15,5 +16,11 @@ declare const _default: {
15
16
  list: (_params: any, data?: never) => Promise<import("sequelize").InferAttributes<import("@blocklet/payment-types").PaymentCurrency, {
16
17
  omit: never;
17
18
  }>[]>;
19
+ updateRechargeConfig: (_params: string, data?: RechargeConfig) => Promise<import("sequelize").InferAttributes<import("@blocklet/payment-types").PaymentCurrency, {
20
+ omit: never;
21
+ }>>;
22
+ getRechargeConfig: (_params: string, data?: never) => Promise<import("sequelize").InferAttributes<import("@blocklet/payment-types").PaymentCurrency, {
23
+ omit: never;
24
+ }>>;
18
25
  };
19
26
  export default _default;
@@ -18,4 +18,12 @@ exports.default = {
18
18
  method: 'GET',
19
19
  path: '/api/payment-currencies',
20
20
  }),
21
+ updateRechargeConfig: (0, resource_1.createResourceMethod)({
22
+ method: 'PUT',
23
+ path: '/api/payment-currencies/{id}/recharge-config',
24
+ }),
25
+ getRechargeConfig: (0, resource_1.createResourceMethod)({
26
+ method: 'GET',
27
+ path: '/api/payment-currencies/{id}/recharge-config',
28
+ }),
21
29
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blocklet/payment-js",
3
- "version": "1.19.17",
3
+ "version": "1.19.19",
4
4
  "description": "Node.js client for Payment Kit",
5
5
  "keywords": [
6
6
  "types",
@@ -37,7 +37,7 @@
37
37
  },
38
38
  "dependencies": {
39
39
  "@blocklet/constant": "^1.16.48",
40
- "@blocklet/payment-types": "1.19.17",
40
+ "@blocklet/payment-types": "1.19.19",
41
41
  "@blocklet/sdk": "^1.16.48"
42
42
  },
43
43
  "importSort": {
@@ -64,5 +64,5 @@
64
64
  "type-fest": "^4.41.0",
65
65
  "typescript": "5.5.4"
66
66
  },
67
- "gitHead": "718d307a13b0c11e11316cdd28fff2f335e23de7"
67
+ "gitHead": "76facca620eda1132f8c6d5b8f42d8fd9ef78b05"
68
68
  }