@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@insignia-education/api-sdk-js",
3
- "version": "0.15.14",
3
+ "version": "0.15.15",
4
4
  "description": "JavaScript SDK for the Insignia Education API",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -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