tradly 1.1.35 → 1.1.37

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.
@@ -121,6 +121,7 @@ export const SUBSCRIPTION_MANAGE = "/v1/subscriptions/manage";
121
121
  export const SUBSCRIPTION_EMAIL_TRIGGER = "/v1/subscriptions/email_trigger";
122
122
 
123
123
  export const MANGO_PAY = "/app/v1/payments/mangopay";
124
+ export const MANGO_PAY_V1 = "/v1/payments/mangopay";
124
125
 
125
126
  export const OPP_MERCHANT = "/v1/payments/opp/merchant";
126
127
 
package/Roots/App.js CHANGED
@@ -77,6 +77,7 @@ import {
77
77
  SSO_ENABLED,
78
78
  TRANSLATIONS,
79
79
  WALLET,
80
+ MANGO_PAY_V1,
80
81
  } from "./../Constants/PathConstant.js";
81
82
  import serialization from "../Helper/Serialization.js";
82
83
  import { ImageConfig } from "../Helper/APIParam.js";
@@ -1900,6 +1901,46 @@ class App {
1900
1901
  return error;
1901
1902
  }
1902
1903
  }
1904
+ async savePerSonalDetails(param = { authKey, data }) {
1905
+ try {
1906
+ const [error, responseJson] = await network.networkCall({
1907
+ path: MANGO_PAY_V1 + "/personal_details",
1908
+ method: Method.POST,
1909
+ authKey: param.authKey,
1910
+ currency: param.currency,
1911
+ language: param.language,
1912
+ param: param.data,
1913
+ });
1914
+ if (error) {
1915
+ return error;
1916
+ } else {
1917
+ return responseJson;
1918
+ }
1919
+ } catch (error) {
1920
+ return error;
1921
+ }
1922
+ }
1923
+
1924
+ //
1925
+ async cardRegistration(param = { authKey, data }) {
1926
+ try {
1927
+ const [error, responseJson] = await network.networkCall({
1928
+ path: MANGO_PAY_V1 + "/card_registration",
1929
+ method: Method.POST,
1930
+ authKey: param.authKey,
1931
+ currency: param.currency,
1932
+ language: param.language,
1933
+ param: param.data,
1934
+ });
1935
+ if (error) {
1936
+ return error;
1937
+ } else {
1938
+ return responseJson;
1939
+ }
1940
+ } catch (error) {
1941
+ return error;
1942
+ }
1943
+ }
1903
1944
  //MARK:-  ORDERS API 
1904
1945
  async getOrders(param = { authKey, bodyParam }) {
1905
1946
  let url =
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tradly",
3
- "version": "1.1.35",
3
+ "version": "1.1.37",
4
4
  "description": "Tradly JS SDK",
5
5
  "main": "index.js",
6
6
  "type": "module",