@zinn-digital/sdk 0.1.2126 → 0.1.2128

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.
@@ -50511,7 +50511,7 @@ export interface paths {
50511
50511
  };
50512
50512
  /**
50513
50513
  * The org's wholesale reseller agreement.
50514
- * @description Returns 404 when the org is not enrolled — "not a reseller" is a state the screen renders, and the same 404 is what an out-of-scope org gets, so this is not an existence oracle. Requires `reseller.view`.
50514
+ * @description An org that is not enrolled gets 200 with `enrolled: false` and `can_apply` (whether this caller may apply) — "not a reseller yet" is a state the screen renders with a way to join, not an error. An org outside your scope is a 404, so this is not an existence oracle. Requires `reseller.view`.
50515
50515
  */
50516
50516
  get: operations["getResellerProgram"];
50517
50517
  put?: never;
@@ -67705,6 +67705,11 @@ export interface components {
67705
67705
  fx_fetched_at: string | null;
67706
67706
  /** @description Net MRR in pence (USD total at the stored GBP rate). */
67707
67707
  gbp_minor: number | null;
67708
+ /** @description Counted subscriptions and recurring charges on an organisation with no auto-renew mandate (they renew only when the customer pays by hand). Already inside usd_minor. */
67709
+ manual_pay: {
67710
+ count: number;
67711
+ usd_minor: number | null;
67712
+ };
67708
67713
  missing_rates: string[];
67709
67714
  overdue: {
67710
67715
  count: number;
@@ -67712,6 +67717,11 @@ export interface components {
67712
67717
  };
67713
67718
  paying_orgs: number;
67714
67719
  recurring_charges: number;
67720
+ /** @description Contracted recurring charges counted in the figure that were never billed yet (standard MRR, DAY-0024). Already inside usd_minor; shown so it is not read as money received. */
67721
+ scheduled_unbilled: {
67722
+ count: number;
67723
+ usd_minor: number | null;
67724
+ };
67715
67725
  subscriptions: number;
67716
67726
  /** @description Net MRR in US cents. */
67717
67727
  usd_minor: number | null;
@@ -108871,6 +108881,8 @@ export interface components {
108871
108881
  created_at: string;
108872
108882
  /** @description Basis points added to Zinn®'s list price for plans you have not priced explicitly. 0 means "sell at list", which is not zero margin — you still keep the wholesale discount. */
108873
108883
  default_markup_bps: number;
108884
+ /** @description `true` on the read of an enrolled org (`GET /v1/reseller/program`), which also answers `enrolled: false` for an org that is not enrolled. */
108885
+ enrolled?: boolean;
108874
108886
  /** @description Whether we hold the company details your client invoices are issued under. False means you cannot invoice a client yet. */
108875
108887
  has_invoicing_entity: boolean;
108876
108888
  id: components["schemas"]["Uuid"];
@@ -108892,6 +108904,13 @@ export interface components {
108892
108904
  */
108893
108905
  trial_ends_at?: string | null;
108894
108906
  };
108907
+ /** @description The org has no reseller programme yet. The screen shows the programme and, when `can_apply` is true, the way to join (`POST /v1/reseller/program`). */
108908
+ ResellerProgramNotEnrolled: {
108909
+ /** @description Whether this caller holds `reseller.manage` here, so may apply. */
108910
+ can_apply: boolean;
108911
+ /** @enum {boolean} */
108912
+ enrolled: false;
108913
+ };
108895
108914
  ResellerProgramUpdate: {
108896
108915
  billing_day?: number;
108897
108916
  /** @description Turn on to invoice your own clients yourself — we stop issuing to them from the next run. Nothing already issued changes: an invoice is immutable. Turning it back off resumes issuing, including for orders placed while it was on. */
@@ -211080,7 +211099,7 @@ export interface operations {
211080
211099
  [name: string]: unknown;
211081
211100
  };
211082
211101
  content: {
211083
- "application/json": components["schemas"]["ResellerProgram"];
211102
+ "application/json": components["schemas"]["ResellerProgram"] | components["schemas"]["ResellerProgramNotEnrolled"];
211084
211103
  };
211085
211104
  };
211086
211105
  401: components["responses"]["Unauthorized"];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zinn-digital/sdk",
3
- "version": "0.1.2126",
3
+ "version": "0.1.2128",
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>",