tradly 1.1.83 → 1.1.84

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 +22 -0
  2. package/package.json +1 -1
package/Roots/App.js CHANGED
@@ -390,6 +390,28 @@ class App {
390
390
  return error;
391
391
  }
392
392
  }
393
+
394
+ // get user attributes
395
+ async getUserAttributes(param = { authKey, id, recaptcha_token }) {
396
+ try {
397
+ const [error, responseJson] = await network.networkCall({
398
+ path:
399
+ USERS +
400
+ `/${param.id}/attributes?recaptcha_token=${param.recaptcha_token}`,
401
+ method: Method.GET,
402
+ authKey: param.authKey,
403
+ currency: param.currency,
404
+ language: param.language,
405
+ });
406
+ if (error) {
407
+ return error;
408
+ } else {
409
+ return responseJson;
410
+ }
411
+ } catch (error) {
412
+ return error;
413
+ }
414
+ }
393
415
  //MARK:-  ADDRESS APIS 
394
416
  async addEditAddress(param = { id, data, authKey }) {
395
417
  let path =
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tradly",
3
- "version": "1.1.83",
3
+ "version": "1.1.84",
4
4
  "description": "Tradly JS SDK",
5
5
  "main": "index.js",
6
6
  "type": "module",