tradly 1.1.61 → 1.1.63

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 +29 -3
  2. package/package.json +1 -1
package/Roots/App.js CHANGED
@@ -3678,13 +3678,39 @@ class App {
3678
3678
  return error;
3679
3679
  }
3680
3680
  }
3681
+ // get subscription // get subscription
3682
+ async getSubscriptionList(param = { authKey, bodyParam }) {
3683
+ let url =
3684
+ param.bodyParam == undefined || param.bodyParam == ""
3685
+ ? ""
3686
+ : `?${serialization(param.bodyParam)}`;
3687
+ try {
3688
+ const [error, responseJson] = await network.networkCall({
3689
+ path: `${SUBSCRIPTION_LISTINGS}${url}`,
3690
+ method: Method.GET,
3691
+ authKey: param.authKey,
3692
+ currency: param.currency,
3693
+ language: param.language,
3694
+ });
3695
+ if (error) {
3696
+ return error;
3697
+ } else {
3698
+ return responseJson;
3699
+ }
3700
+ } catch (error) {
3701
+ return error;
3702
+ }
3703
+ }
3681
3704
 
3682
3705
  // get subscription details
3683
- async getSubscriptionDetails(param = { listing_id, authKey }) {
3706
+ async subscribeByMangopay(
3707
+ param = { listing_id, authKey, data, currency }
3708
+ ) {
3684
3709
  try {
3685
3710
  const [error, responseJson] = await network.networkCall({
3686
- path: `${SUBSCRIPTION_LISTINGS}/${param.listing_id}`,
3687
- method: Method.GET,
3711
+ path: `/v1/payments/mangopay/recurring_pay_in`,
3712
+ method: Method.POST,
3713
+ param: param.data,
3688
3714
  authKey: param.authKey,
3689
3715
  currency: param.currency,
3690
3716
  language: param.language,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tradly",
3
- "version": "1.1.61",
3
+ "version": "1.1.63",
4
4
  "description": "Tradly JS SDK",
5
5
  "main": "index.js",
6
6
  "type": "module",