mainstack-payments 1.0.33 → 1.0.34

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.
@@ -16,6 +16,7 @@ export declare const useGetTransactionFees: ({ account_id, currency, amount, slu
16
16
  data: any;
17
17
  isLoading: boolean;
18
18
  refetch: () => Promise<import('hooks/useApi').IFetchResponse>;
19
+ error: any;
19
20
  };
20
21
  interface IInitPayment {
21
22
  amount: number;
@@ -65,6 +66,7 @@ export declare const useVerifyPayment: (reference: string, Request: any) => {
65
66
  data: any;
66
67
  isLoading: boolean;
67
68
  refetch: () => Promise<import('hooks/useApi').IFetchResponse>;
69
+ error: any;
68
70
  };
69
71
  interface IApplyDiscount {
70
72
  discount_code: string;
@@ -79,5 +81,6 @@ export declare const useApplyDiscount: ({ discount_code, product_id, account_id,
79
81
  data: any;
80
82
  isLoading: boolean;
81
83
  refetch: () => Promise<import('hooks/useApi').IFetchResponse>;
84
+ error: any;
82
85
  };
83
86
  export {};
@@ -11,6 +11,7 @@ export declare const useQuery: ({ queryFn, enabled, dependingOn, }: {
11
11
  data: any;
12
12
  isLoading: boolean;
13
13
  refetch: () => Promise<IFetchResponse>;
14
+ error: any;
14
15
  };
15
16
  export declare const useMutation: <T>({ mutationFn, }: {
16
17
  mutationFn: (data: T) => Promise<any>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mainstack-payments",
3
3
  "type": "module",
4
- "version": "1.0.33",
4
+ "version": "1.0.34",
5
5
  "main": "build/mainstack-payments.js",
6
6
  "types": "build/src/index.d.ts",
7
7
  "files": [