@pimia/sdk 0.18.0 → 0.19.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.
Files changed (2) hide show
  1. package/dist/api.d.ts +10 -2
  2. package/package.json +1 -1
package/dist/api.d.ts CHANGED
@@ -5290,9 +5290,15 @@ export interface paths {
5290
5290
  * (`/pimia/plan?checkout=success|cancelled`) y el asiento lo anota el
5291
5291
  * webhook `checkout.session.completed`. Solo el dueño de la instancia.
5292
5292
  *
5293
+ * Si el pagador tenía una suscripción cancelada a fin de periodo (bajó a
5294
+ * Free y se arrepintió), NO hay checkout: se reanuda esa suscripción, se
5295
+ * recrea el asiento y el plan cambia al instante. Entonces `resumed` es
5296
+ * `true`, `checkout_url` es `null` y `plan` dice a cuál: el panel no tiene
5297
+ * a dónde ir, solo refrescar.
5298
+ *
5293
5299
  * Errores, con su código en `error`: `white_label` (403), `no_payer` (409),
5294
5300
  * `free_plan` y `channel_plan` (422), `tenant_already_subscribed` (422),
5295
- * `stripe_price_missing` (503).
5301
+ * `stripe_resume_failed` (502), `stripe_price_missing` (503).
5296
5302
  */
5297
5303
  post: operations["tenantBilling.checkoutFromPanel"];
5298
5304
  delete?: never;
@@ -21958,7 +21964,9 @@ export interface operations {
21958
21964
  content: {
21959
21965
  "application/json": {
21960
21966
  data: {
21961
- checkout_url: string;
21967
+ checkout_url: string | null;
21968
+ resumed: boolean;
21969
+ plan: string | null;
21962
21970
  };
21963
21971
  };
21964
21972
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pimia/sdk",
3
- "version": "0.18.0",
3
+ "version": "0.19.0",
4
4
  "description": "Cliente TypeScript de la API de Pimia para apps de partner: OAuth con PKCE, rotación de refresh persistida, reintentos de rate limit y tipos generados del OpenAPI.",
5
5
  "license": "MIT",
6
6
  "author": "Pimia (https://pimia.es)",