@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/dist/index.d.ts CHANGED
@@ -405,6 +405,7 @@ declare module '@adtrackify/at-service-common/clients/third-party/shopify-client
405
405
  status: any;
406
406
  }>;
407
407
  static appSubscriptionCreate: (shop: string, accessToken: string, planName: string, price: number, returnUrl: string, trialDays: number) => Promise<Shopify.IRecurringApplicationCharge>;
408
+ static appSubscriptionsList: (shop: string, accessToken: string) => Promise<Shopify.IRecurringApplicationCharge[]>;
408
409
  static genericShopifyPost: (url: string, accessToken: string, payload: any) => Promise<{
409
410
  headers: any;
410
411
  data: any;
package/dist/index.js CHANGED
@@ -636314,9 +636314,20 @@ __publicField(ShopifyClient, "appSubscriptionCreate", async (shop, accessToken,
636314
636314
  return_url: returnUrl,
636315
636315
  trial_days: trialDays
636316
636316
  };
636317
+ client2.recurringApplicationCharge.list();
636317
636318
  const response = await client2.recurringApplicationCharge.create(createSubscriptionParams);
636318
636319
  return response;
636319
636320
  });
636321
+ __publicField(ShopifyClient, "appSubscriptionsList", async (shop, accessToken) => {
636322
+ const config = {
636323
+ accessToken,
636324
+ shopName: shop
636325
+ };
636326
+ const client2 = new Shopify(config);
636327
+ client2.recurringApplicationCharge.list();
636328
+ const response = await client2.recurringApplicationCharge.list();
636329
+ return response;
636330
+ });
636320
636331
  __publicField(ShopifyClient, "genericShopifyPost", async (url, accessToken, payload2) => {
636321
636332
  const client2 = axiosHttpService();
636322
636333
  const res = await client2.post(url, payload2, { headers: { "X-Shopify-Access-Token": accessToken } });