@vitrina/api 17.75.1 → 17.76.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/index.d.cts +129 -0
- package/dist/index.d.ts +129 -0
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -38383,6 +38383,7 @@ interface paths {
|
|
|
38383
38383
|
* "clp_year_estimate": 1133000,
|
|
38384
38384
|
* "covers_until": "2027-11-17"
|
|
38385
38385
|
* },
|
|
38386
|
+
* "annual_unavailable_reason": null,
|
|
38386
38387
|
* "uf_value": 39350,
|
|
38387
38388
|
* "uf_value_date": "2026-11-18"
|
|
38388
38389
|
* }
|
|
@@ -38423,6 +38424,8 @@ interface paths {
|
|
|
38423
38424
|
dunning_steps: string[];
|
|
38424
38425
|
pause_on_date: string | null;
|
|
38425
38426
|
band_rule: string;
|
|
38427
|
+
purchase_expires_on: string | null;
|
|
38428
|
+
annual_payment_ways: ("transfer" | "card")[];
|
|
38426
38429
|
/** @enum {string|null} */
|
|
38427
38430
|
billing_interval: "monthly" | "annual" | null;
|
|
38428
38431
|
paid_until: string | null;
|
|
@@ -38441,6 +38444,8 @@ interface paths {
|
|
|
38441
38444
|
clp_year_estimate: number | null;
|
|
38442
38445
|
covers_until: string;
|
|
38443
38446
|
};
|
|
38447
|
+
/** @enum {string|null} */
|
|
38448
|
+
annual_unavailable_reason: "quoted_price" | "price_lock" | "agency_agreement" | "negotiated_contract" | "price_check_failed" | null;
|
|
38444
38449
|
uf_value: number | null;
|
|
38445
38450
|
uf_value_date: string | null;
|
|
38446
38451
|
} | null;
|
|
@@ -296048,6 +296053,123 @@ interface paths {
|
|
|
296048
296053
|
patch?: never;
|
|
296049
296054
|
trace?: never;
|
|
296050
296055
|
};
|
|
296056
|
+
"/billing/invoices/{id}/pay-by-transfer": {
|
|
296057
|
+
parameters: {
|
|
296058
|
+
query?: never;
|
|
296059
|
+
header?: never;
|
|
296060
|
+
path?: never;
|
|
296061
|
+
cookie?: never;
|
|
296062
|
+
};
|
|
296063
|
+
get?: never;
|
|
296064
|
+
put?: never;
|
|
296065
|
+
/**
|
|
296066
|
+
* Pay an annual cobro by bank transfer instead of the card
|
|
296067
|
+
* @description Annual plans are paid once, by card or by bank transfer, whatever the workspace has on file. This moves one open annual cobro (`issued` or `past_due`, carrying the annual discount or a band difference) to transfer: nothing charges it automatically from now on (the owner can still pay it with `POST …/pay`), and it falls due at the end of the transfer term (3 Chile business days) when that is later than its current due date. The cobro page and its emails then print the account and the reference. Repeating it answers the cobro with `changed: false`. 409 `details.reason`: `not_annual_cobro` (a monthly cobro follows the workspace switch), `charge_in_flight`, `cobro_not_open`, `collection_running`. Requires `billing:write`.
|
|
296068
|
+
*/
|
|
296069
|
+
post: {
|
|
296070
|
+
parameters: {
|
|
296071
|
+
query?: never;
|
|
296072
|
+
header?: {
|
|
296073
|
+
/** @description Replay-safe retries: resending the SAME key with the SAME body returns the original response (`X-Idempotent-Replay: 1`) instead of creating a second copy — safe to send whenever a response might not have arrived. The same key with a DIFFERENT body answers `409 IDEMPOTENCY_KEY_CONFLICT`; use a fresh key per operation. */
|
|
296074
|
+
"Idempotency-Key"?: string;
|
|
296075
|
+
};
|
|
296076
|
+
path: {
|
|
296077
|
+
id: string;
|
|
296078
|
+
};
|
|
296079
|
+
cookie?: never;
|
|
296080
|
+
};
|
|
296081
|
+
requestBody?: never;
|
|
296082
|
+
responses: {
|
|
296083
|
+
/** @description The cobro, now paid by transfer */
|
|
296084
|
+
200: {
|
|
296085
|
+
headers: {
|
|
296086
|
+
[name: string]: unknown;
|
|
296087
|
+
};
|
|
296088
|
+
content: {
|
|
296089
|
+
/**
|
|
296090
|
+
* @example {
|
|
296091
|
+
* "data": {
|
|
296092
|
+
* "invoice_id": "9a1bd325-3ab8-47e8-afe1-7b87c550b139",
|
|
296093
|
+
* "number": "INV-0a1b2c3d-A202611",
|
|
296094
|
+
* "pay_by_transfer_at": "2026-11-18T15:04:11.000Z",
|
|
296095
|
+
* "due_at": "2026-11-24T12:00:00.000Z",
|
|
296096
|
+
* "changed": true
|
|
296097
|
+
* }
|
|
296098
|
+
* }
|
|
296099
|
+
*/
|
|
296100
|
+
"application/json": {
|
|
296101
|
+
data: {
|
|
296102
|
+
invoice_id: string;
|
|
296103
|
+
number: string;
|
|
296104
|
+
pay_by_transfer_at: string | null;
|
|
296105
|
+
due_at: string | null;
|
|
296106
|
+
changed: boolean;
|
|
296107
|
+
};
|
|
296108
|
+
};
|
|
296109
|
+
};
|
|
296110
|
+
};
|
|
296111
|
+
/** @description Validation error */
|
|
296112
|
+
400: {
|
|
296113
|
+
headers: {
|
|
296114
|
+
[name: string]: unknown;
|
|
296115
|
+
};
|
|
296116
|
+
content: {
|
|
296117
|
+
"application/json": components["schemas"]["Error"];
|
|
296118
|
+
};
|
|
296119
|
+
};
|
|
296120
|
+
/** @description Unauthorized */
|
|
296121
|
+
401: {
|
|
296122
|
+
headers: {
|
|
296123
|
+
[name: string]: unknown;
|
|
296124
|
+
};
|
|
296125
|
+
content: {
|
|
296126
|
+
"application/json": components["schemas"]["Error"];
|
|
296127
|
+
};
|
|
296128
|
+
};
|
|
296129
|
+
/** @description Forbidden */
|
|
296130
|
+
403: {
|
|
296131
|
+
headers: {
|
|
296132
|
+
[name: string]: unknown;
|
|
296133
|
+
};
|
|
296134
|
+
content: {
|
|
296135
|
+
"application/json": components["schemas"]["Error"];
|
|
296136
|
+
};
|
|
296137
|
+
};
|
|
296138
|
+
/** @description Not found */
|
|
296139
|
+
404: {
|
|
296140
|
+
headers: {
|
|
296141
|
+
[name: string]: unknown;
|
|
296142
|
+
};
|
|
296143
|
+
content: {
|
|
296144
|
+
"application/json": components["schemas"]["Error"];
|
|
296145
|
+
};
|
|
296146
|
+
};
|
|
296147
|
+
/** @description Conflict (incl. Idempotency-Key reuse with different body) */
|
|
296148
|
+
409: {
|
|
296149
|
+
headers: {
|
|
296150
|
+
[name: string]: unknown;
|
|
296151
|
+
};
|
|
296152
|
+
content: {
|
|
296153
|
+
"application/json": components["schemas"]["Error"];
|
|
296154
|
+
};
|
|
296155
|
+
};
|
|
296156
|
+
/** @description Rate limited */
|
|
296157
|
+
429: {
|
|
296158
|
+
headers: {
|
|
296159
|
+
[name: string]: unknown;
|
|
296160
|
+
};
|
|
296161
|
+
content: {
|
|
296162
|
+
"application/json": components["schemas"]["Error"];
|
|
296163
|
+
};
|
|
296164
|
+
};
|
|
296165
|
+
};
|
|
296166
|
+
};
|
|
296167
|
+
delete?: never;
|
|
296168
|
+
options?: never;
|
|
296169
|
+
head?: never;
|
|
296170
|
+
patch?: never;
|
|
296171
|
+
trace?: never;
|
|
296172
|
+
};
|
|
296051
296173
|
"/sandbox/clinic": {
|
|
296052
296174
|
parameters: {
|
|
296053
296175
|
query?: never;
|
|
@@ -322146,6 +322268,13 @@ interface components {
|
|
|
322146
322268
|
/** @description The reference to write in a transfer comment («VT-7K2QM9»). */
|
|
322147
322269
|
reference: string | null;
|
|
322148
322270
|
due_at: string | null;
|
|
322271
|
+
/**
|
|
322272
|
+
* @description #7569: the kind of annual cobro (`annual_purchase`, `annual_renewal`, `annual_difference`); null for a monthly or usage cobro.
|
|
322273
|
+
* @enum {string|null}
|
|
322274
|
+
*/
|
|
322275
|
+
kind: "annual_purchase" | "annual_renewal" | "annual_difference" | null;
|
|
322276
|
+
/** @description #7569: the cobro total in whole CLP, IVA included. */
|
|
322277
|
+
clp_total: number | null;
|
|
322149
322278
|
} | null;
|
|
322150
322279
|
/** @description Set only when `pays_by` is `transfer`. */
|
|
322151
322280
|
transfer: {
|
package/dist/index.d.ts
CHANGED
|
@@ -38383,6 +38383,7 @@ interface paths {
|
|
|
38383
38383
|
* "clp_year_estimate": 1133000,
|
|
38384
38384
|
* "covers_until": "2027-11-17"
|
|
38385
38385
|
* },
|
|
38386
|
+
* "annual_unavailable_reason": null,
|
|
38386
38387
|
* "uf_value": 39350,
|
|
38387
38388
|
* "uf_value_date": "2026-11-18"
|
|
38388
38389
|
* }
|
|
@@ -38423,6 +38424,8 @@ interface paths {
|
|
|
38423
38424
|
dunning_steps: string[];
|
|
38424
38425
|
pause_on_date: string | null;
|
|
38425
38426
|
band_rule: string;
|
|
38427
|
+
purchase_expires_on: string | null;
|
|
38428
|
+
annual_payment_ways: ("transfer" | "card")[];
|
|
38426
38429
|
/** @enum {string|null} */
|
|
38427
38430
|
billing_interval: "monthly" | "annual" | null;
|
|
38428
38431
|
paid_until: string | null;
|
|
@@ -38441,6 +38444,8 @@ interface paths {
|
|
|
38441
38444
|
clp_year_estimate: number | null;
|
|
38442
38445
|
covers_until: string;
|
|
38443
38446
|
};
|
|
38447
|
+
/** @enum {string|null} */
|
|
38448
|
+
annual_unavailable_reason: "quoted_price" | "price_lock" | "agency_agreement" | "negotiated_contract" | "price_check_failed" | null;
|
|
38444
38449
|
uf_value: number | null;
|
|
38445
38450
|
uf_value_date: string | null;
|
|
38446
38451
|
} | null;
|
|
@@ -296048,6 +296053,123 @@ interface paths {
|
|
|
296048
296053
|
patch?: never;
|
|
296049
296054
|
trace?: never;
|
|
296050
296055
|
};
|
|
296056
|
+
"/billing/invoices/{id}/pay-by-transfer": {
|
|
296057
|
+
parameters: {
|
|
296058
|
+
query?: never;
|
|
296059
|
+
header?: never;
|
|
296060
|
+
path?: never;
|
|
296061
|
+
cookie?: never;
|
|
296062
|
+
};
|
|
296063
|
+
get?: never;
|
|
296064
|
+
put?: never;
|
|
296065
|
+
/**
|
|
296066
|
+
* Pay an annual cobro by bank transfer instead of the card
|
|
296067
|
+
* @description Annual plans are paid once, by card or by bank transfer, whatever the workspace has on file. This moves one open annual cobro (`issued` or `past_due`, carrying the annual discount or a band difference) to transfer: nothing charges it automatically from now on (the owner can still pay it with `POST …/pay`), and it falls due at the end of the transfer term (3 Chile business days) when that is later than its current due date. The cobro page and its emails then print the account and the reference. Repeating it answers the cobro with `changed: false`. 409 `details.reason`: `not_annual_cobro` (a monthly cobro follows the workspace switch), `charge_in_flight`, `cobro_not_open`, `collection_running`. Requires `billing:write`.
|
|
296068
|
+
*/
|
|
296069
|
+
post: {
|
|
296070
|
+
parameters: {
|
|
296071
|
+
query?: never;
|
|
296072
|
+
header?: {
|
|
296073
|
+
/** @description Replay-safe retries: resending the SAME key with the SAME body returns the original response (`X-Idempotent-Replay: 1`) instead of creating a second copy — safe to send whenever a response might not have arrived. The same key with a DIFFERENT body answers `409 IDEMPOTENCY_KEY_CONFLICT`; use a fresh key per operation. */
|
|
296074
|
+
"Idempotency-Key"?: string;
|
|
296075
|
+
};
|
|
296076
|
+
path: {
|
|
296077
|
+
id: string;
|
|
296078
|
+
};
|
|
296079
|
+
cookie?: never;
|
|
296080
|
+
};
|
|
296081
|
+
requestBody?: never;
|
|
296082
|
+
responses: {
|
|
296083
|
+
/** @description The cobro, now paid by transfer */
|
|
296084
|
+
200: {
|
|
296085
|
+
headers: {
|
|
296086
|
+
[name: string]: unknown;
|
|
296087
|
+
};
|
|
296088
|
+
content: {
|
|
296089
|
+
/**
|
|
296090
|
+
* @example {
|
|
296091
|
+
* "data": {
|
|
296092
|
+
* "invoice_id": "9a1bd325-3ab8-47e8-afe1-7b87c550b139",
|
|
296093
|
+
* "number": "INV-0a1b2c3d-A202611",
|
|
296094
|
+
* "pay_by_transfer_at": "2026-11-18T15:04:11.000Z",
|
|
296095
|
+
* "due_at": "2026-11-24T12:00:00.000Z",
|
|
296096
|
+
* "changed": true
|
|
296097
|
+
* }
|
|
296098
|
+
* }
|
|
296099
|
+
*/
|
|
296100
|
+
"application/json": {
|
|
296101
|
+
data: {
|
|
296102
|
+
invoice_id: string;
|
|
296103
|
+
number: string;
|
|
296104
|
+
pay_by_transfer_at: string | null;
|
|
296105
|
+
due_at: string | null;
|
|
296106
|
+
changed: boolean;
|
|
296107
|
+
};
|
|
296108
|
+
};
|
|
296109
|
+
};
|
|
296110
|
+
};
|
|
296111
|
+
/** @description Validation error */
|
|
296112
|
+
400: {
|
|
296113
|
+
headers: {
|
|
296114
|
+
[name: string]: unknown;
|
|
296115
|
+
};
|
|
296116
|
+
content: {
|
|
296117
|
+
"application/json": components["schemas"]["Error"];
|
|
296118
|
+
};
|
|
296119
|
+
};
|
|
296120
|
+
/** @description Unauthorized */
|
|
296121
|
+
401: {
|
|
296122
|
+
headers: {
|
|
296123
|
+
[name: string]: unknown;
|
|
296124
|
+
};
|
|
296125
|
+
content: {
|
|
296126
|
+
"application/json": components["schemas"]["Error"];
|
|
296127
|
+
};
|
|
296128
|
+
};
|
|
296129
|
+
/** @description Forbidden */
|
|
296130
|
+
403: {
|
|
296131
|
+
headers: {
|
|
296132
|
+
[name: string]: unknown;
|
|
296133
|
+
};
|
|
296134
|
+
content: {
|
|
296135
|
+
"application/json": components["schemas"]["Error"];
|
|
296136
|
+
};
|
|
296137
|
+
};
|
|
296138
|
+
/** @description Not found */
|
|
296139
|
+
404: {
|
|
296140
|
+
headers: {
|
|
296141
|
+
[name: string]: unknown;
|
|
296142
|
+
};
|
|
296143
|
+
content: {
|
|
296144
|
+
"application/json": components["schemas"]["Error"];
|
|
296145
|
+
};
|
|
296146
|
+
};
|
|
296147
|
+
/** @description Conflict (incl. Idempotency-Key reuse with different body) */
|
|
296148
|
+
409: {
|
|
296149
|
+
headers: {
|
|
296150
|
+
[name: string]: unknown;
|
|
296151
|
+
};
|
|
296152
|
+
content: {
|
|
296153
|
+
"application/json": components["schemas"]["Error"];
|
|
296154
|
+
};
|
|
296155
|
+
};
|
|
296156
|
+
/** @description Rate limited */
|
|
296157
|
+
429: {
|
|
296158
|
+
headers: {
|
|
296159
|
+
[name: string]: unknown;
|
|
296160
|
+
};
|
|
296161
|
+
content: {
|
|
296162
|
+
"application/json": components["schemas"]["Error"];
|
|
296163
|
+
};
|
|
296164
|
+
};
|
|
296165
|
+
};
|
|
296166
|
+
};
|
|
296167
|
+
delete?: never;
|
|
296168
|
+
options?: never;
|
|
296169
|
+
head?: never;
|
|
296170
|
+
patch?: never;
|
|
296171
|
+
trace?: never;
|
|
296172
|
+
};
|
|
296051
296173
|
"/sandbox/clinic": {
|
|
296052
296174
|
parameters: {
|
|
296053
296175
|
query?: never;
|
|
@@ -322146,6 +322268,13 @@ interface components {
|
|
|
322146
322268
|
/** @description The reference to write in a transfer comment («VT-7K2QM9»). */
|
|
322147
322269
|
reference: string | null;
|
|
322148
322270
|
due_at: string | null;
|
|
322271
|
+
/**
|
|
322272
|
+
* @description #7569: the kind of annual cobro (`annual_purchase`, `annual_renewal`, `annual_difference`); null for a monthly or usage cobro.
|
|
322273
|
+
* @enum {string|null}
|
|
322274
|
+
*/
|
|
322275
|
+
kind: "annual_purchase" | "annual_renewal" | "annual_difference" | null;
|
|
322276
|
+
/** @description #7569: the cobro total in whole CLP, IVA included. */
|
|
322277
|
+
clp_total: number | null;
|
|
322149
322278
|
} | null;
|
|
322150
322279
|
/** @description Set only when `pays_by` is `transfer`. */
|
|
322151
322280
|
transfer: {
|
package/package.json
CHANGED