@vitrina/api 17.83.0 → 17.83.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/index.d.cts CHANGED
@@ -17014,6 +17014,31 @@ interface paths {
17014
17014
  * "flatUfMonth": 0.5,
17015
17015
  * "freeAllowance": 10,
17016
17016
  * "meter": "tasador_valuation"
17017
+ * },
17018
+ * {
17019
+ * "key": "finanzas",
17020
+ * "access": "entitlement",
17021
+ * "flatUfMonth": 1.5,
17022
+ * "includedBanks": 1,
17023
+ * "extraBankUfMonth": 0.45,
17024
+ * "annual": {
17025
+ * "ufGrossYear": 18,
17026
+ * "discountPct": 20,
17027
+ * "ufDiscount": 3.6,
17028
+ * "ufYear": 14.4,
17029
+ * "ufMonthEquivalent": 1.2,
17030
+ * "clpYearEstimate": 566640,
17031
+ * "termStart": "2026-11-19",
17032
+ * "termEnd": "2027-11-18",
17033
+ * "purchaseInvoiceId": null,
17034
+ * "lastVoidedPurchase": {
17035
+ * "invoice_id": "33333333-3333-4333-8333-333333333333",
17036
+ * "invoice_number": "INV-11111111-AF202610",
17037
+ * "voided_on": "2026-11-14",
17038
+ * "reason": "annual_purchase_expired",
17039
+ * "credited_clp": 0
17040
+ * }
17041
+ * }
17017
17042
  * }
17018
17043
  * ],
17019
17044
  * "entitlements": [
@@ -17099,6 +17124,15 @@ interface paths {
17099
17124
  termEnd: string;
17100
17125
  /** @description The unpaid annual purchase cobro, if one is out. */
17101
17126
  purchaseInvoiceId: string | null;
17127
+ /** @description The most recent annual Finanzas purchase voided unpaid at day 30, while worth telling the owner (voided in the last 30 days, no annual Finanzas cobro paid since); null otherwise. Same shape as `GET /billing/clinic-plan`'s `last_voided_purchase`. */
17128
+ lastVoidedPurchase: {
17129
+ invoice_id: string;
17130
+ invoice_number: string;
17131
+ voided_on: string;
17132
+ /** @enum {string} */
17133
+ reason: "annual_purchase_expired";
17134
+ credited_clp: number;
17135
+ } | null;
17102
17136
  };
17103
17137
  /** @description The business types (`tenant.vertical`) this add-on is sold to. Omitted = every vertical. Read `offers` for the per-workspace answer. */
17104
17138
  verticals?: string[];
@@ -38523,7 +38557,7 @@ interface paths {
38523
38557
  };
38524
38558
  /**
38525
38559
  * The clinic banded plan: band, count, price, review, pause state
38526
- * @description Band (S/M/L/XL or quoted), the 3-month average of professionals who attended patients that produced it, the UF/month price with the design-partner lock honoured, the next band review, any announced move, the payment mandate, the pause state and where the non-payment ladder has got to. On an annual plan a move up is charged once as the difference for the months of the paid year left, at the annual price (`announced_remaining_months`, `announced_difference_uf`, `announced_difference_clp_estimate`), and a move down only shows as `pending_down_band` until the renewal.
38560
+ * @description Band (S/M/L/XL or quoted), the 3-month average of professionals who attended patients that produced it, the UF/month price with the design-partner lock honoured, the next band review, any announced move, the payment mandate, the pause state and where the non-payment ladder has got to. On an annual plan a move up is charged once as the difference for the months of the paid year left, at the annual price (`announced_remaining_months`, `announced_difference_uf`, `announced_difference_clp_estimate`), and a move down only shows as `pending_down_band` until the renewal. `last_voided_purchase` names a first annual purchase voided unpaid at day 30 in the last 30 days with no plan cobro paid since (null otherwise).
38527
38561
  */
38528
38562
  get: {
38529
38563
  parameters: {
@@ -38586,7 +38620,8 @@ interface paths {
38586
38620
  * "annual_unavailable_reason": null,
38587
38621
  * "uf_value": 39350,
38588
38622
  * "uf_value_date": "2026-11-18"
38589
- * }
38623
+ * },
38624
+ * "last_voided_purchase": null
38590
38625
  * }
38591
38626
  * }
38592
38627
  */
@@ -38669,6 +38704,14 @@ interface paths {
38669
38704
  uf_period: number;
38670
38705
  clp_estimate: number | null;
38671
38706
  } | null;
38707
+ last_voided_purchase: {
38708
+ invoice_id: string;
38709
+ invoice_number: string;
38710
+ voided_on: string;
38711
+ /** @enum {string} */
38712
+ reason: "annual_purchase_expired";
38713
+ credited_clp: number;
38714
+ } | null;
38672
38715
  };
38673
38716
  };
38674
38717
  };
package/dist/index.d.ts CHANGED
@@ -17014,6 +17014,31 @@ interface paths {
17014
17014
  * "flatUfMonth": 0.5,
17015
17015
  * "freeAllowance": 10,
17016
17016
  * "meter": "tasador_valuation"
17017
+ * },
17018
+ * {
17019
+ * "key": "finanzas",
17020
+ * "access": "entitlement",
17021
+ * "flatUfMonth": 1.5,
17022
+ * "includedBanks": 1,
17023
+ * "extraBankUfMonth": 0.45,
17024
+ * "annual": {
17025
+ * "ufGrossYear": 18,
17026
+ * "discountPct": 20,
17027
+ * "ufDiscount": 3.6,
17028
+ * "ufYear": 14.4,
17029
+ * "ufMonthEquivalent": 1.2,
17030
+ * "clpYearEstimate": 566640,
17031
+ * "termStart": "2026-11-19",
17032
+ * "termEnd": "2027-11-18",
17033
+ * "purchaseInvoiceId": null,
17034
+ * "lastVoidedPurchase": {
17035
+ * "invoice_id": "33333333-3333-4333-8333-333333333333",
17036
+ * "invoice_number": "INV-11111111-AF202610",
17037
+ * "voided_on": "2026-11-14",
17038
+ * "reason": "annual_purchase_expired",
17039
+ * "credited_clp": 0
17040
+ * }
17041
+ * }
17017
17042
  * }
17018
17043
  * ],
17019
17044
  * "entitlements": [
@@ -17099,6 +17124,15 @@ interface paths {
17099
17124
  termEnd: string;
17100
17125
  /** @description The unpaid annual purchase cobro, if one is out. */
17101
17126
  purchaseInvoiceId: string | null;
17127
+ /** @description The most recent annual Finanzas purchase voided unpaid at day 30, while worth telling the owner (voided in the last 30 days, no annual Finanzas cobro paid since); null otherwise. Same shape as `GET /billing/clinic-plan`'s `last_voided_purchase`. */
17128
+ lastVoidedPurchase: {
17129
+ invoice_id: string;
17130
+ invoice_number: string;
17131
+ voided_on: string;
17132
+ /** @enum {string} */
17133
+ reason: "annual_purchase_expired";
17134
+ credited_clp: number;
17135
+ } | null;
17102
17136
  };
17103
17137
  /** @description The business types (`tenant.vertical`) this add-on is sold to. Omitted = every vertical. Read `offers` for the per-workspace answer. */
17104
17138
  verticals?: string[];
@@ -38523,7 +38557,7 @@ interface paths {
38523
38557
  };
38524
38558
  /**
38525
38559
  * The clinic banded plan: band, count, price, review, pause state
38526
- * @description Band (S/M/L/XL or quoted), the 3-month average of professionals who attended patients that produced it, the UF/month price with the design-partner lock honoured, the next band review, any announced move, the payment mandate, the pause state and where the non-payment ladder has got to. On an annual plan a move up is charged once as the difference for the months of the paid year left, at the annual price (`announced_remaining_months`, `announced_difference_uf`, `announced_difference_clp_estimate`), and a move down only shows as `pending_down_band` until the renewal.
38560
+ * @description Band (S/M/L/XL or quoted), the 3-month average of professionals who attended patients that produced it, the UF/month price with the design-partner lock honoured, the next band review, any announced move, the payment mandate, the pause state and where the non-payment ladder has got to. On an annual plan a move up is charged once as the difference for the months of the paid year left, at the annual price (`announced_remaining_months`, `announced_difference_uf`, `announced_difference_clp_estimate`), and a move down only shows as `pending_down_band` until the renewal. `last_voided_purchase` names a first annual purchase voided unpaid at day 30 in the last 30 days with no plan cobro paid since (null otherwise).
38527
38561
  */
38528
38562
  get: {
38529
38563
  parameters: {
@@ -38586,7 +38620,8 @@ interface paths {
38586
38620
  * "annual_unavailable_reason": null,
38587
38621
  * "uf_value": 39350,
38588
38622
  * "uf_value_date": "2026-11-18"
38589
- * }
38623
+ * },
38624
+ * "last_voided_purchase": null
38590
38625
  * }
38591
38626
  * }
38592
38627
  */
@@ -38669,6 +38704,14 @@ interface paths {
38669
38704
  uf_period: number;
38670
38705
  clp_estimate: number | null;
38671
38706
  } | null;
38707
+ last_voided_purchase: {
38708
+ invoice_id: string;
38709
+ invoice_number: string;
38710
+ voided_on: string;
38711
+ /** @enum {string} */
38712
+ reason: "annual_purchase_expired";
38713
+ credited_clp: number;
38714
+ } | null;
38672
38715
  };
38673
38716
  };
38674
38717
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vitrina/api",
3
- "version": "17.83.0",
3
+ "version": "17.83.1",
4
4
  "description": "Typed TypeScript SDK for the Vitrina API pública — generated from the committed openapi.public.json (ADR 0106).",
5
5
  "type": "module",
6
6
  "license": "MIT",