glitch-javascript-sdk 0.4.9 → 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 +22 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/api/TipPackagePurchases.d.ts +16 -0
- package/dist/esm/index.js +22 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +16 -0
- package/package.json +1 -1
- package/src/api/TipPackagePurchases.ts +22 -0
- package/src/routes/TipPackagePurchaseRoute.ts +2 -0
|
@@ -9,5 +9,21 @@ 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 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>>;
|
|
12
28
|
}
|
|
13
29
|
export default TipPackagePurchases;
|
package/dist/esm/index.js
CHANGED
|
@@ -32627,6 +32627,8 @@ var TipPackagePurchaseRoute = /** @class */ (function () {
|
|
|
32627
32627
|
}
|
|
32628
32628
|
TipPackagePurchaseRoute.routes = {
|
|
32629
32629
|
stripe: { url: '/tipspackagepurchases/stripe', method: HTTP_METHODS.POST },
|
|
32630
|
+
getStripePaymentIntent: { url: '/tipspackagepurchases/getstripepaymentintent', method: HTTP_METHODS.POST },
|
|
32631
|
+
processStripePaymentIntent: { url: '/tipspackagepurchases/processstripepaymentintent', method: HTTP_METHODS.POST },
|
|
32630
32632
|
};
|
|
32631
32633
|
return TipPackagePurchaseRoute;
|
|
32632
32634
|
}());
|
|
@@ -32644,6 +32646,26 @@ var TipPackagePurchases = /** @class */ (function () {
|
|
|
32644
32646
|
TipPackagePurchases.stripe = function (data, params) {
|
|
32645
32647
|
return Requests.processRoute(TipPackagePurchaseRoute.routes.stripe, data, {}, params);
|
|
32646
32648
|
};
|
|
32649
|
+
/**
|
|
32650
|
+
* Get a stripe payment intent token.
|
|
32651
|
+
*
|
|
32652
|
+
* @see https://api.glitch.fun/api/documentation#/Authentication%20Route/authLogin
|
|
32653
|
+
*
|
|
32654
|
+
* @returns A promise
|
|
32655
|
+
*/
|
|
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);
|
|
32668
|
+
};
|
|
32647
32669
|
return TipPackagePurchases;
|
|
32648
32670
|
}());
|
|
32649
32671
|
|