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.
- package/dist/cjs/index.js +14 -3
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/api/TipPackagePurchases.d.ts +9 -1
- package/dist/esm/index.js +14 -3
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +9 -1
- package/package.json +1 -1
- package/src/api/TipPackagePurchases.ts +13 -2
- package/src/routes/TipPackagePurchaseRoute.ts +2 -1
package/dist/cjs/index.js
CHANGED
|
@@ -18405,7 +18405,8 @@ var TipPackagePurchaseRoute = /** @class */ (function () {
|
|
|
18405
18405
|
}
|
|
18406
18406
|
TipPackagePurchaseRoute.routes = {
|
|
18407
18407
|
stripe: { url: '/tipspackagepurchases/stripe', method: HTTP_METHODS.POST },
|
|
18408
|
-
|
|
18408
|
+
getStripePaymentIntent: { url: '/tipspackagepurchases/getstripepaymentintent', method: HTTP_METHODS.POST },
|
|
18409
|
+
processStripePaymentIntent: { url: '/tipspackagepurchases/processstripepaymentintent', method: HTTP_METHODS.POST },
|
|
18409
18410
|
};
|
|
18410
18411
|
return TipPackagePurchaseRoute;
|
|
18411
18412
|
}());
|
|
@@ -18430,8 +18431,18 @@ var TipPackagePurchases = /** @class */ (function () {
|
|
|
18430
18431
|
*
|
|
18431
18432
|
* @returns A promise
|
|
18432
18433
|
*/
|
|
18433
|
-
TipPackagePurchases.
|
|
18434
|
-
return Requests.processRoute(TipPackagePurchaseRoute.routes.
|
|
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);
|
|
18435
18446
|
};
|
|
18436
18447
|
return TipPackagePurchases;
|
|
18437
18448
|
}());
|