@insignia-education/api-sdk-js 0.15.14 → 0.15.15
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/package.json +1 -1
- package/src/api/v1/Users.js +2 -0
package/package.json
CHANGED
package/src/api/v1/Users.js
CHANGED
|
@@ -60,6 +60,8 @@ export default class Users {
|
|
|
60
60
|
reject: (id, data) => client.post(`${base}/${id}/reject`, data),
|
|
61
61
|
/** Preview pricing (with any auto-applied Offer) for a prospective cart, without creating a payment. */
|
|
62
62
|
quote: (data) => client.post(`${base}/quote`, data),
|
|
63
|
+
/** Creates a Stripe PaymentIntent for this cart; returns { client_secret, publishable_key, amount } to mount Stripe Elements with. */
|
|
64
|
+
stripeIntent: (data) => client.post(`${base}/stripe/intent`, data),
|
|
63
65
|
};
|
|
64
66
|
}
|
|
65
67
|
|