glitch-javascript-sdk 0.4.9 → 0.5.0

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,7 @@ var TipPackagePurchaseRoute = /** @class */ (function () {
18405
18405
  }
18406
18406
  TipPackagePurchaseRoute.routes = {
18407
18407
  stripe: { url: '/tipspackagepurchases/stripe', method: HTTP_METHODS.POST },
18408
+ stripePaymentIntent: { url: '/tipspackagepurchases/stripepaymentintent', method: HTTP_METHODS.POST },
18408
18409
  };
18409
18410
  return TipPackagePurchaseRoute;
18410
18411
  }());
@@ -18422,6 +18423,16 @@ var TipPackagePurchases = /** @class */ (function () {
18422
18423
  TipPackagePurchases.stripe = function (data, params) {
18423
18424
  return Requests.processRoute(TipPackagePurchaseRoute.routes.stripe, data, {}, params);
18424
18425
  };
18426
+ /**
18427
+ * Get a stripe payment intent token.
18428
+ *
18429
+ * @see https://api.glitch.fun/api/documentation#/Authentication%20Route/authLogin
18430
+ *
18431
+ * @returns A promise
18432
+ */
18433
+ TipPackagePurchases.stripePaymentIntent = function (data, params) {
18434
+ return Requests.processRoute(TipPackagePurchaseRoute.routes.stripePaymentIntent, data, {}, params);
18435
+ };
18425
18436
  return TipPackagePurchases;
18426
18437
  }());
18427
18438