@zinn-digital/sdk 0.1.1925 → 0.1.1926
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/generated/schema.d.ts +19 -5
- package/package.json +1 -1
|
@@ -117440,13 +117440,18 @@ export interface components {
|
|
|
117440
117440
|
rate_bps: number;
|
|
117441
117441
|
tax_total_minor: number;
|
|
117442
117442
|
};
|
|
117443
|
-
/** @description Net amounts the caller already holds, to be rated for display (#1482). ⛔ Nothing here re-prices: the amounts come from the catalogue and come back rated, so this cannot become a second source of prices. */
|
|
117443
|
+
/** @description Net amounts the caller already holds, to be rated for display (#1482). ⛔ Nothing here re-prices: the amounts come from the catalogue and come back rated, so this cannot become a second source of prices. Send exactly one of `items` (display-only previews: bounded, never charged) or `cart_id` (signed-in route only: the server re-prices the caller's own cart exactly as `GET /v1/carts/{cartId}` does and builds the lines itself, so a checkout figure never rests on client amounts). Both together, or neither, is a 422. */
|
|
117444
117444
|
TaxQuoteRequest: {
|
|
117445
|
+
/**
|
|
117446
|
+
* Format: uuid
|
|
117447
|
+
* @description Signed-in route only (the public route refuses it with a 422). The caller's own open cart; the quote rates its server-repriced lines (`ref` = line id, net = the line's `line_total_minor`) in the cart's currency. Another organisation's cart is a 404. Mutually exclusive with `items`.
|
|
117448
|
+
*/
|
|
117449
|
+
cart_id?: string;
|
|
117445
117450
|
/** @description ISO 3166-1 alpha-2 destination. On the signed-in route this overrides the stored billing country (the customer may be pricing an address they have not saved). Omitted, the public route falls back to Cloudflare's `CF-IPCountry`; the signed-in route falls back to the stored billing country and then to `CF-IPCountry`, answering `estimated: true` for any figure not rated on the stored country (a signed-in customer with no saved address is shown the VAT their basket will carry rather than the net figure alone). */
|
|
117446
117451
|
country?: string;
|
|
117447
117452
|
/** @description ISO 4217. Defaults to the `docs/29` §3.1 resolution for the request. */
|
|
117448
117453
|
currency?: string;
|
|
117449
|
-
items
|
|
117454
|
+
items?: {
|
|
117450
117455
|
/** @description REQUIRED when `kind` is `extra` (each extra carries its own VAT classification; the bare kind has none); without it the request is refused with a `422`. */
|
|
117451
117456
|
extra_code?: string;
|
|
117452
117457
|
/** @description The `LineKind` value. Together with the ids below it resolves the line's `tax_service_type`, which decides **which country** taxes it: an electronically supplied service is taxed where the customer belongs, a service a human performs where we belong. */
|
|
@@ -117456,7 +117461,7 @@ export interface components {
|
|
|
117456
117461
|
* @description REQUIRED when `kind` is `marketplace_package` (the package's type decides its VAT treatment); without it the request is refused with a `422`.
|
|
117457
117462
|
*/
|
|
117458
117463
|
listing_package_id?: string;
|
|
117459
|
-
/** @description The **net** amount, integer minor units (§2.8 — money is never a float). */
|
|
117464
|
+
/** @description The **net** amount, integer minor units (§2.8 — money is never a float). Display only; capped at 10^12 minor units (a 422 above it). */
|
|
117460
117465
|
net_minor: number;
|
|
117461
117466
|
/** Format: uuid */
|
|
117462
117467
|
plan_version_id?: string;
|
|
@@ -197778,7 +197783,16 @@ export interface operations {
|
|
|
197778
197783
|
};
|
|
197779
197784
|
};
|
|
197780
197785
|
401: components["responses"]["Unauthorized"];
|
|
197781
|
-
/** @description
|
|
197786
|
+
/** @description `cart_id` names no open cart the caller may pay for (another organisation's cart answers 404, never 403, so the id is not an existence oracle). */
|
|
197787
|
+
404: {
|
|
197788
|
+
headers: {
|
|
197789
|
+
[name: string]: unknown;
|
|
197790
|
+
};
|
|
197791
|
+
content: {
|
|
197792
|
+
"application/json": components["schemas"]["Error"];
|
|
197793
|
+
};
|
|
197794
|
+
};
|
|
197795
|
+
/** @description A malformed item list, a repeated `ref`, an amount above the display cap, an unknown currency, `cart_id` sent together with `items`, neither of them sent, a `currency` that differs from the cart's, or a cart line the catalogue no longer prices. */
|
|
197782
197796
|
422: {
|
|
197783
197797
|
headers: {
|
|
197784
197798
|
[name: string]: unknown;
|
|
@@ -201137,7 +201151,7 @@ export interface operations {
|
|
|
201137
201151
|
"application/json": components["schemas"]["TaxQuote"];
|
|
201138
201152
|
};
|
|
201139
201153
|
};
|
|
201140
|
-
/** @description A malformed item list, a repeated `ref`,
|
|
201154
|
+
/** @description A malformed item list, a repeated `ref`, an amount above the display cap, an unknown currency, or a `cart_id` (carts are quoted on the signed-in route only). */
|
|
201141
201155
|
422: {
|
|
201142
201156
|
headers: {
|
|
201143
201157
|
[name: string]: unknown;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zinn-digital/sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1926",
|
|
4
4
|
"description": "Typed TypeScript client for the Zinn Digital Platform API, generated from its OpenAPI spec.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Neil Lock \u2014 CEO, Zinn Digital\u00ae Ltd <office@zinndigital.com>",
|