glitch-javascript-sdk 0.4.9 → 0.5.1

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/cjs/index.js CHANGED
@@ -18405,6 +18405,8 @@ var TipPackagePurchaseRoute = /** @class */ (function () {
18405
18405
  }
18406
18406
  TipPackagePurchaseRoute.routes = {
18407
18407
  stripe: { url: '/tipspackagepurchases/stripe', method: HTTP_METHODS.POST },
18408
+ getStripePaymentIntent: { url: '/tipspackagepurchases/getstripepaymentintent', method: HTTP_METHODS.POST },
18409
+ processStripePaymentIntent: { url: '/tipspackagepurchases/processstripepaymentintent', method: HTTP_METHODS.POST },
18408
18410
  };
18409
18411
  return TipPackagePurchaseRoute;
18410
18412
  }());
@@ -18422,6 +18424,26 @@ var TipPackagePurchases = /** @class */ (function () {
18422
18424
  TipPackagePurchases.stripe = function (data, params) {
18423
18425
  return Requests.processRoute(TipPackagePurchaseRoute.routes.stripe, data, {}, params);
18424
18426
  };
18427
+ /**
18428
+ * Get a stripe payment intent token.
18429
+ *
18430
+ * @see https://api.glitch.fun/api/documentation#/Authentication%20Route/authLogin
18431
+ *
18432
+ * @returns A promise
18433
+ */
18434
+ TipPackagePurchases.getStripePaymentIntent = function (data, params) {
18435
+ return Requests.processRoute(TipPackagePurchaseRoute.routes.getStripePaymentIntent, data, {}, params);
18436
+ };
18437
+ /**
18438
+ * Process the stripe payment intent after payment is complete.
18439
+ *
18440
+ * @see https://api.glitch.fun/api/documentation#/Authentication%20Route/authLogin
18441
+ *
18442
+ * @returns A promise
18443
+ */
18444
+ TipPackagePurchases.processStripePaymentIntent = function (data, params) {
18445
+ return Requests.processRoute(TipPackagePurchaseRoute.routes.processStripePaymentIntent, data, {}, params);
18446
+ };
18425
18447
  return TipPackagePurchases;
18426
18448
  }());
18427
18449