@tender-cash/agent-sdk-react 0.1.5 → 0.2.1

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.
@@ -5,11 +5,12 @@ declare const fetchPaymentDetailAction: ({ nextScreen, setPageLoading }: {
5
5
  }) => {
6
6
  paymentDetails: IPaymentData | undefined;
7
7
  isFetching: boolean;
8
- initiatePayment: ({ amount, chain, coin, fiatCurrency }: {
8
+ initiatePayment: ({ amount, chain, coin, fiatCurrency, referenceId }: {
9
9
  amount: number;
10
10
  chain: string;
11
11
  coin: string;
12
12
  fiatCurrency: string;
13
+ referenceId: string;
13
14
  }) => Promise<void>;
14
15
  paymentError: {
15
16
  title: string;
@@ -1,3 +1,3 @@
1
1
  import { TenderAgentProps } from './types';
2
- declare const TenderAgentSdk: ({ amount, accessId, accessSecret, env, fiatCurrency, onEventResponse }: TenderAgentProps) => import("react/jsx-runtime").JSX.Element;
2
+ declare const TenderAgentSdk: ({ referenceId, amount, accessId, accessSecret, env, fiatCurrency, onEventResponse }: TenderAgentProps) => import("react/jsx-runtime").JSX.Element;
3
3
  export default TenderAgentSdk;
@@ -3,7 +3,8 @@ import { IGetRequestSignatureParam, IGetRequestSignature, ITheme } from '../../t
3
3
  declare function cn(...inputs: ClassValue[]): string;
4
4
  declare enum TENDER_URLS {
5
5
  test = "https://stagapi.tender.cash",
6
- live = "https://secureapi.tender.cash"
6
+ live = "https://secureapi.tender.cash",
7
+ local = "http://localhost:9090"
7
8
  }
8
9
  declare const URL_PATHS: {
9
10
  CHAINS: string;
@@ -151,6 +151,7 @@ interface onFinishResponse {
151
151
  data: IPaymentData | undefined;
152
152
  }
153
153
  interface ConfigContextType {
154
+ referenceId: string;
154
155
  accessId: string;
155
156
  accessSecret: string;
156
157
  amount: number;
@@ -161,6 +162,7 @@ interface ConfigContextType {
161
162
  onEventResponse?: (data: onFinishResponse) => void;
162
163
  }
163
164
  interface TenderAgentProps {
165
+ referenceId: string;
164
166
  amount: number;
165
167
  fiatCurrency: string;
166
168
  accessId: string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tender-cash/agent-sdk-react",
3
3
  "license": "MIT",
4
- "version": "0.1.5",
4
+ "version": "0.2.1",
5
5
  "repository": "git://github.com/tender-cash/agent-sdk-react.git",
6
6
  "description": "",
7
7
  "author": "Tender",