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.
- package/dist/cjs/index.js +11 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/api/TipPackagePurchases.d.ts +8 -0
- package/dist/esm/index.js +11 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +8 -0
- package/package.json +1 -1
- package/src/api/TipPackagePurchases.ts +11 -0
- package/src/routes/TipPackagePurchaseRoute.ts +1 -0
package/dist/index.d.ts
CHANGED
|
@@ -1790,6 +1790,14 @@ declare class TipPackagePurchases {
|
|
|
1790
1790
|
* @returns A promise
|
|
1791
1791
|
*/
|
|
1792
1792
|
static stripe<T>(data?: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
1793
|
+
/**
|
|
1794
|
+
* Get a stripe payment intent token.
|
|
1795
|
+
*
|
|
1796
|
+
* @see https://api.glitch.fun/api/documentation#/Authentication%20Route/authLogin
|
|
1797
|
+
*
|
|
1798
|
+
* @returns A promise
|
|
1799
|
+
*/
|
|
1800
|
+
static stripePaymentIntent<T>(data?: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
1793
1801
|
}
|
|
1794
1802
|
|
|
1795
1803
|
interface Route {
|
package/package.json
CHANGED
|
@@ -17,6 +17,17 @@ class TipPackagePurchases {
|
|
|
17
17
|
return Requests.processRoute(TipPackagePurchaseRoute.routes.stripe, data, {}, params);
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
+
/**
|
|
21
|
+
* Get a stripe payment intent token.
|
|
22
|
+
*
|
|
23
|
+
* @see https://api.glitch.fun/api/documentation#/Authentication%20Route/authLogin
|
|
24
|
+
*
|
|
25
|
+
* @returns A promise
|
|
26
|
+
*/
|
|
27
|
+
public static stripePaymentIntent<T>(data? : object, params?: Record<string, any>) : AxiosPromise<Response<T>> {
|
|
28
|
+
return Requests.processRoute(TipPackagePurchaseRoute.routes.stripePaymentIntent, data, {}, params);
|
|
29
|
+
}
|
|
30
|
+
|
|
20
31
|
}
|
|
21
32
|
|
|
22
33
|
export default TipPackagePurchases;
|
|
@@ -5,6 +5,7 @@ class TipPackagePurchaseRoute {
|
|
|
5
5
|
|
|
6
6
|
public static routes: { [key: string]: Route } = {
|
|
7
7
|
stripe: { url: '/tipspackagepurchases/stripe', method: HTTP_METHODS.POST },
|
|
8
|
+
stripePaymentIntent: { url: '/tipspackagepurchases/stripepaymentintent', method: HTTP_METHODS.POST },
|
|
8
9
|
|
|
9
10
|
};
|
|
10
11
|
|