glitch-javascript-sdk 0.5.0 → 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.
@@ -16,6 +16,14 @@ declare class TipPackagePurchases {
16
16
  *
17
17
  * @returns A promise
18
18
  */
19
- static stripePaymentIntent<T>(data?: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
19
+ static getStripePaymentIntent<T>(data?: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
20
+ /**
21
+ * Process the stripe payment intent after payment is complete.
22
+ *
23
+ * @see https://api.glitch.fun/api/documentation#/Authentication%20Route/authLogin
24
+ *
25
+ * @returns A promise
26
+ */
27
+ static processStripePaymentIntent<T>(data?: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
20
28
  }
21
29
  export default TipPackagePurchases;
package/dist/esm/index.js CHANGED
@@ -32627,7 +32627,8 @@ 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
+ getStripePaymentIntent: { url: '/tipspackagepurchases/getstripepaymentintent', method: HTTP_METHODS.POST },
32631
+ processStripePaymentIntent: { url: '/tipspackagepurchases/processstripepaymentintent', method: HTTP_METHODS.POST },
32631
32632
  };
32632
32633
  return TipPackagePurchaseRoute;
32633
32634
  }());
@@ -32652,8 +32653,18 @@ var TipPackagePurchases = /** @class */ (function () {
32652
32653
  *
32653
32654
  * @returns A promise
32654
32655
  */
32655
- TipPackagePurchases.stripePaymentIntent = function (data, params) {
32656
- return Requests.processRoute(TipPackagePurchaseRoute.routes.stripePaymentIntent, data, {}, params);
32656
+ TipPackagePurchases.getStripePaymentIntent = function (data, params) {
32657
+ return Requests.processRoute(TipPackagePurchaseRoute.routes.getStripePaymentIntent, data, {}, params);
32658
+ };
32659
+ /**
32660
+ * Process the stripe payment intent after payment is complete.
32661
+ *
32662
+ * @see https://api.glitch.fun/api/documentation#/Authentication%20Route/authLogin
32663
+ *
32664
+ * @returns A promise
32665
+ */
32666
+ TipPackagePurchases.processStripePaymentIntent = function (data, params) {
32667
+ return Requests.processRoute(TipPackagePurchaseRoute.routes.processStripePaymentIntent, data, {}, params);
32657
32668
  };
32658
32669
  return TipPackagePurchases;
32659
32670
  }());