@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 +1 -0
- package/dist/index.js +11 -0
- package/dist/index.js.map +2 -2
- package/package.json +1 -1
- package/src/clients/third-party/shopify-client.ts +14 -0
package/package.json
CHANGED
|
@@ -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 } });
|