@adtrackify/at-service-common 1.0.45 → 1.0.46

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adtrackify/at-service-common",
3
- "version": "1.0.45",
3
+ "version": "1.0.46",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -94,11 +94,25 @@ export class ShopifyClient {
94
94
  return_url: returnUrl,
95
95
  trial_days: trialDays
96
96
  };
97
+ client.recurringApplicationCharge.list();
97
98
  const response = await client.recurringApplicationCharge.create(createSubscriptionParams);
98
99
 
99
100
  return response;
100
101
  };
101
102
 
103
+ static appSubscriptionsList = async (shop: string, accessToken: string) => {
104
+
105
+ const config: IPublicShopifyConfig = {
106
+ accessToken,
107
+ shopName: shop
108
+ };
109
+ const client = new Shopify(config);
110
+ client.recurringApplicationCharge.list();
111
+ const response = await client.recurringApplicationCharge.list();
112
+
113
+ return response;
114
+ };
115
+
102
116
  static genericShopifyPost = async (url: string, accessToken: string, payload: any) => {
103
117
  const client = axiosHttpService();
104
118
  const res = await client.post(url, payload, { headers: { 'X-Shopify-Access-Token': accessToken } });