mainstack-payments 0.2.1 → 0.2.3

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.
@@ -1,6 +1,5 @@
1
1
  /** @format */
2
- declare const InitializeAPIConfig: (baseUrl: string, authMSUrl: string) => {
2
+ declare const InitializeAPIConfig: (baseUrl: string) => {
3
3
  Request: import('axios').AxiosInstance;
4
- AuthMSRequest: import('axios').AxiosInstance;
5
4
  };
6
5
  export default InitializeAPIConfig;
@@ -1,11 +1,12 @@
1
1
  import { TMetadata } from 'types';
2
2
 
3
- export declare const useGetTransactionFees: ({ account_id, currency, amount, slug, }: {
3
+ export declare const useGetTransactionFees: ({ account_id, currency, amount, slug, apply_tranche_fee, }: {
4
4
  account_id: string;
5
5
  currency: string;
6
6
  amount: number;
7
7
  slug?: string | undefined;
8
- }, AuthMSRequest: any) => {
8
+ apply_tranche_fee?: boolean | undefined;
9
+ }, Request: any) => {
9
10
  data: any;
10
11
  isLoading: boolean;
11
12
  refetch: () => Promise<import('hooks/useApi').IFetchResponse>;
@@ -22,7 +22,6 @@ type TCustomizations = {
22
22
  isSingleColumn?: boolean;
23
23
  };
24
24
  type TPaymentConfig = {
25
- reference: string;
26
25
  currency: string;
27
26
  amount: number;
28
27
  discountAmount?: number;
@@ -32,12 +31,12 @@ type TPaymentConfig = {
32
31
  paymentOptions?: TPaymentOption[];
33
32
  paystackRedirectUrl?: string;
34
33
  baseUrl: string;
35
- authMSUrl: string;
36
34
  accountId: string;
37
35
  userAllowsWalletPayment: boolean;
38
36
  userAllowsCardPayment: boolean;
39
37
  hasDiscountCode?: boolean;
40
38
  mainstackProductId: string;
41
39
  STRIPE_SECRET_KEY: string;
40
+ applyTrancheFee?: boolean;
42
41
  };
43
42
  export type { TPaymentConfig, TMetadata, TCustomizations, TPaymentOption };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mainstack-payments",
3
3
  "type": "module",
4
- "version": "0.2.1",
4
+ "version": "0.2.3",
5
5
  "main": "build/mainstack-payments.js",
6
6
  "types": "build/src/index.d.ts",
7
7
  "files": [