@adtrackify/at-service-common 1.0.47 → 1.0.48

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
@@ -403,7 +403,7 @@ declare module '@adtrackify/at-service-common/clients/third-party/shopify-client
403
403
  data: any;
404
404
  status: any;
405
405
  }>;
406
- static createAppSubscription: (shop: string, accessToken: string, planName: string, price: number, returnUrl: string, trialDays: number) => Promise<{
406
+ static createAppSubscription: (shop: string, accessToken: string, planName: string, price: number, returnUrl: string, trialDays: number, test?: boolean) => Promise<{
407
407
  headers: any;
408
408
  data: any;
409
409
  status: any;
package/dist/index.js CHANGED
@@ -636301,13 +636301,14 @@ __publicField(ShopifyClient, "getShopifyStoreProperties", async (shop, accessTok
636301
636301
  }
636302
636302
  return res;
636303
636303
  });
636304
- __publicField(ShopifyClient, "createAppSubscription", async (shop, accessToken, planName, price, returnUrl, trialDays) => {
636304
+ __publicField(ShopifyClient, "createAppSubscription", async (shop, accessToken, planName, price, returnUrl, trialDays, test) => {
636305
636305
  const url = `https://${shop}/admin/api/${_ShopifyClient._shopify_api_version}/recurring_application_charges.json`;
636306
636306
  const recurring_application_charge = {
636307
636307
  name: planName,
636308
636308
  price,
636309
636309
  return_url: returnUrl,
636310
- trial_days: trialDays
636310
+ trial_days: trialDays,
636311
+ test
636311
636312
  };
636312
636313
  const res = await _ShopifyClient.genericShopifyPost(url, accessToken, { recurring_application_charge });
636313
636314
  if (res.status >= 400) {