@diffsome/sdk 3.2.6 → 3.2.7

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.js CHANGED
@@ -418,7 +418,7 @@ var AuthResource = class {
418
418
  * Get available social login providers
419
419
  */
420
420
  async getSocialProviders() {
421
- return this.http.get("/auth/social");
421
+ return this.http.get("/auth/social/providers");
422
422
  }
423
423
  /**
424
424
  * Get social login redirect URL
@@ -1226,6 +1226,22 @@ var ShopResource = class {
1226
1226
  async createSetupIntent() {
1227
1227
  return this.http.post("/subscriptions/setup-intent");
1228
1228
  }
1229
+ /**
1230
+ * Create Stripe Checkout Session for subscription
1231
+ * Redirects to Stripe Checkout page
1232
+ * Requires authentication
1233
+ */
1234
+ async createSubscriptionCheckout(data) {
1235
+ return this.http.post("/subscriptions/checkout", data);
1236
+ }
1237
+ /**
1238
+ * Verify Stripe Checkout Session for subscription
1239
+ * Call after returning from Stripe Checkout
1240
+ * Requires authentication
1241
+ */
1242
+ async verifySubscriptionCheckout(session_id) {
1243
+ return this.http.post("/subscriptions/verify", { session_id });
1244
+ }
1229
1245
  // ============================================
1230
1246
  // Bundle Products
1231
1247
  // ============================================
package/dist/index.mjs CHANGED
@@ -388,7 +388,7 @@ var AuthResource = class {
388
388
  * Get available social login providers
389
389
  */
390
390
  async getSocialProviders() {
391
- return this.http.get("/auth/social");
391
+ return this.http.get("/auth/social/providers");
392
392
  }
393
393
  /**
394
394
  * Get social login redirect URL
@@ -1196,6 +1196,22 @@ var ShopResource = class {
1196
1196
  async createSetupIntent() {
1197
1197
  return this.http.post("/subscriptions/setup-intent");
1198
1198
  }
1199
+ /**
1200
+ * Create Stripe Checkout Session for subscription
1201
+ * Redirects to Stripe Checkout page
1202
+ * Requires authentication
1203
+ */
1204
+ async createSubscriptionCheckout(data) {
1205
+ return this.http.post("/subscriptions/checkout", data);
1206
+ }
1207
+ /**
1208
+ * Verify Stripe Checkout Session for subscription
1209
+ * Call after returning from Stripe Checkout
1210
+ * Requires authentication
1211
+ */
1212
+ async verifySubscriptionCheckout(session_id) {
1213
+ return this.http.post("/subscriptions/verify", { session_id });
1214
+ }
1199
1215
  // ============================================
1200
1216
  // Bundle Products
1201
1217
  // ============================================
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@diffsome/sdk",
3
- "version": "3.2.6",
3
+ "version": "3.2.7",
4
4
  "description": "Diffsome SDK for JavaScript/TypeScript - Different + Awesome",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",