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.
@@ -9,5 +9,13 @@ declare class TipPackagePurchases {
9
9
  * @returns A promise
10
10
  */
11
11
  static stripe<T>(data?: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
12
+ /**
13
+ * Get a stripe payment intent token.
14
+ *
15
+ * @see https://api.glitch.fun/api/documentation#/Authentication%20Route/authLogin
16
+ *
17
+ * @returns A promise
18
+ */
19
+ static stripePaymentIntent<T>(data?: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
12
20
  }
13
21
  export default TipPackagePurchases;
package/dist/esm/index.js CHANGED
@@ -32627,6 +32627,7 @@ var TipPackagePurchaseRoute = /** @class */ (function () {
32627
32627
  }
32628
32628
  TipPackagePurchaseRoute.routes = {
32629
32629
  stripe: { url: '/tipspackagepurchases/stripe', method: HTTP_METHODS.POST },
32630
+ stripePaymentIntent: { url: '/tipspackagepurchases/stripepaymentintent', method: HTTP_METHODS.POST },
32630
32631
  };
32631
32632
  return TipPackagePurchaseRoute;
32632
32633
  }());
@@ -32644,6 +32645,16 @@ var TipPackagePurchases = /** @class */ (function () {
32644
32645
  TipPackagePurchases.stripe = function (data, params) {
32645
32646
  return Requests.processRoute(TipPackagePurchaseRoute.routes.stripe, data, {}, params);
32646
32647
  };
32648
+ /**
32649
+ * Get a stripe payment intent token.
32650
+ *
32651
+ * @see https://api.glitch.fun/api/documentation#/Authentication%20Route/authLogin
32652
+ *
32653
+ * @returns A promise
32654
+ */
32655
+ TipPackagePurchases.stripePaymentIntent = function (data, params) {
32656
+ return Requests.processRoute(TipPackagePurchaseRoute.routes.stripePaymentIntent, data, {}, params);
32657
+ };
32647
32658
  return TipPackagePurchases;
32648
32659
  }());
32649
32660