@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adtrackify/at-service-common",
3
- "version": "1.0.47",
3
+ "version": "1.0.48",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -80,13 +80,14 @@ export class ShopifyClient {
80
80
  };
81
81
 
82
82
  static createAppSubscription = async (shop: string, accessToken: string,
83
- planName: string, price: number, returnUrl: string, trialDays: number) => {
83
+ planName: string, price: number, returnUrl: string, trialDays: number, test?: boolean) => {
84
84
  const url = `https://${shop}/admin/api/${this._shopify_api_version}/recurring_application_charges.json`;
85
85
  const recurring_application_charge = {
86
86
  name: planName,
87
87
  price,
88
88
  return_url: returnUrl,
89
- trial_days: trialDays
89
+ trial_days: trialDays,
90
+ test
90
91
  };
91
92
  const res = await this.genericShopifyPost(url, accessToken, { recurring_application_charge });
92
93
  if (res.status >= 400) {