tradly 1.1.42 → 1.1.43

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.
Files changed (2) hide show
  1. package/Roots/App.js +19 -1
  2. package/package.json +1 -1
package/Roots/App.js CHANGED
@@ -1845,6 +1845,24 @@ class App {
1845
1845
  }
1846
1846
 
1847
1847
  //MARK:-  KYC 
1848
+ async getKycDetails(param = { authKey, id }) {
1849
+ try {
1850
+ const [error, responseJson] = await network.networkCall({
1851
+ path: MANGO_PAY + `/kyc_details`,
1852
+ method: Method.GET,
1853
+ authKey: param.authKey,
1854
+ currency: param.currency,
1855
+ language: param.language,
1856
+ });
1857
+ if (error) {
1858
+ return error;
1859
+ } else {
1860
+ return responseJson;
1861
+ }
1862
+ } catch (error) {
1863
+ return error;
1864
+ }
1865
+ }
1848
1866
  async getStripeConnectAccount(param = { authKey, id }) {
1849
1867
  try {
1850
1868
  const [error, responseJson] = await network.networkCall({
@@ -3048,7 +3066,7 @@ class App {
3048
3066
  async storeBankDetails(param = { authKey, data, id }) {
3049
3067
  try {
3050
3068
  const [error, responseJson] = await network.networkCall({
3051
- path: MANGO_PAY + `/bank_details/${param.id}`,
3069
+ path: MANGO_PAY + `/bank_details/`,
3052
3070
  method: Method.POST,
3053
3071
  authKey: param.authKey,
3054
3072
  currency: param.currency,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tradly",
3
- "version": "1.1.42",
3
+ "version": "1.1.43",
4
4
  "description": "Tradly JS SDK",
5
5
  "main": "index.js",
6
6
  "type": "module",