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
|
@@ -16,6 +16,14 @@ declare class TipPackagePurchases {
|
|
|
16
16
|
*
|
|
17
17
|
* @returns A promise
|
|
18
18
|
*/
|
|
19
|
-
static
|
|
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
|
-
|
|
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.
|
|
32656
|
-
return Requests.processRoute(TipPackagePurchaseRoute.routes.
|
|
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
|
}());
|