@zinn-digital/sdk 0.1.1725 → 0.1.1726
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 +20 -0
- package/package.json +1 -1
|
@@ -118265,6 +118265,19 @@ export interface components {
|
|
|
118265
118265
|
};
|
|
118266
118266
|
/** @description docs/76 §3.3 — the account codes and tax-rate mapping used by the Xero export. */
|
|
118267
118267
|
XeroSettings: {
|
|
118268
|
+
/** @description The Xero `TrackingCategoryID` that tags every posted line with the app it came from (the `App` category). Matched by id, so a category with the same name is never adopted. Empty, with `app_tracking_option` empty, means no app tag. */
|
|
118269
|
+
app_tracking_category_id: string;
|
|
118270
|
+
/** @description The option set on every line in that category (`V2`). */
|
|
118271
|
+
app_tracking_option: string;
|
|
118272
|
+
/**
|
|
118273
|
+
* @description `RAIL:CURRENCY` → the Xero **AccountID** each rail's money is paid into when a finalised period is settled (docs/311). ⛔ An AccountID, never a name: three apps post into one Xero organisation, and a name pick put another app's crypto into V2's account (ZH-4323). An absent key means that rail+currency is not settled by code; a configured id that is missing, archived or in another currency refuses that payment.
|
|
118274
|
+
* @example {
|
|
118275
|
+
* "NOWPAYMENTS:USD": "779be0ea-45c1-4e18-8ebc-40929e97f605"
|
|
118276
|
+
* }
|
|
118277
|
+
*/
|
|
118278
|
+
clearing_account_ids: {
|
|
118279
|
+
[key: string]: string;
|
|
118280
|
+
};
|
|
118268
118281
|
/** @description Where a crypto **settlement variance** posts — the fiat value at the tax point less what actually settled (docs/313). ⚖️ **Empty means "the same account as fees"**, which is the owner's own answer of 2026-08-30 (*"we already have them set up in our export … send to same one"*) and is the configured state today — not an unset field. Set it to split crypto variance into its own nominal account. */
|
|
118269
118282
|
crypto_variance_account_code: string;
|
|
118270
118283
|
/** @description Where gateway fees post. `404` (Bank Fees) — an **expense**, which is why fees can never be a sales-invoice line. */
|
|
@@ -118290,6 +118303,13 @@ export interface components {
|
|
|
118290
118303
|
};
|
|
118291
118304
|
/** @description Partial update. Omitted fields are unchanged. */
|
|
118292
118305
|
XeroSettingsUpdate: {
|
|
118306
|
+
/** @description A `TrackingCategoryID` (UUID). Set with `app_tracking_option`, or both empty. */
|
|
118307
|
+
app_tracking_category_id?: string;
|
|
118308
|
+
app_tracking_option?: string;
|
|
118309
|
+
/** @description Replaces the whole map. Keys are normalised to `RAIL:CURRENCY` (upper case); a value that is not an AccountID (UUID), or a key without a rail and an ISO 4217 code, is refused with 422 and nothing changes. */
|
|
118310
|
+
clearing_account_ids?: {
|
|
118311
|
+
[key: string]: string;
|
|
118312
|
+
};
|
|
118293
118313
|
/** @description ⭐ An empty string is a real edit, not a no-op: it clears an override and returns the variance to following `fee_account_code`. */
|
|
118294
118314
|
crypto_variance_account_code?: string;
|
|
118295
118315
|
fee_account_code?: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zinn-digital/sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1726",
|
|
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>",
|