@zinn-digital/sdk 0.1.1703 → 0.1.1705

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.
@@ -10254,6 +10254,56 @@ export interface paths {
10254
10254
  patch?: never;
10255
10255
  trace?: never;
10256
10256
  };
10257
+ "/v1/admin/orders/{orderId}/lines/{lineId}/refund": {
10258
+ parameters: {
10259
+ query?: never;
10260
+ header?: never;
10261
+ path: {
10262
+ /** @description The held order line's id. */
10263
+ lineId: components["schemas"]["Uuid"];
10264
+ /** @description The order's id. */
10265
+ orderId: components["parameters"]["OrderId"];
10266
+ };
10267
+ cookie?: never;
10268
+ };
10269
+ get?: never;
10270
+ put?: never;
10271
+ /**
10272
+ * Refund one held order line to Zinn® credit (staff).
10273
+ * @description Owner ruling 2026-11-10 (MASTER 1110#6): nothing refunds a held line automatically. When staff decide a held line cannot be delivered they refund it here, to the customer's Zinn® credit only (never the card). The line's retry ladder is stopped first, the line is credited once (idempotent per line), the hold is released and the customer is told by the `order.refunded` mail. Any held kind can be refunded; a held server or database line's held bill is cancelled with it. 404 when the line is not on this order, 409 when it is not held, its product is live or still being built, or the refund itself cannot be made (it stays held), 503 when the retry ladder could not be reached. Audit-logged (`commerce.held_line.refunded`). Requires staff + `billing.refund`.
10274
+ */
10275
+ post: operations["refundAdminHeldOrderLine"];
10276
+ delete?: never;
10277
+ options?: never;
10278
+ head?: never;
10279
+ patch?: never;
10280
+ trace?: never;
10281
+ };
10282
+ "/v1/admin/orders/{orderId}/lines/{lineId}/retry": {
10283
+ parameters: {
10284
+ query?: never;
10285
+ header?: never;
10286
+ path: {
10287
+ /** @description The held order line's id. */
10288
+ lineId: components["schemas"]["Uuid"];
10289
+ /** @description The order's id. */
10290
+ orderId: components["parameters"]["OrderId"];
10291
+ };
10292
+ cookie?: never;
10293
+ };
10294
+ get?: never;
10295
+ put?: never;
10296
+ /**
10297
+ * Re-drive one held order line now (staff).
10298
+ * @description Owner ruling 2026-11-10 (MASTER 1110#6): a line that could not be delivered is HELD, never auto-refunded; dev is alerted and the line retries itself on a backoff. Once the cause is fixed, staff press Retry: a ladder waiting on its next timer is stopped and the line's fulfilment runs at once; delivery settles the order and tells the customer. 404 when the line is not on this order, 409 when it is not held, 503 when the workflow could not be started. Audit-logged (`commerce.held_line.retried`). Requires staff + `billing.refund`.
10299
+ */
10300
+ post: operations["retryAdminHeldOrderLine"];
10301
+ delete?: never;
10302
+ options?: never;
10303
+ head?: never;
10304
+ patch?: never;
10305
+ trace?: never;
10306
+ };
10257
10307
  "/v1/admin/orgs": {
10258
10308
  parameters: {
10259
10309
  query?: never;
@@ -63432,6 +63482,12 @@ export interface components {
63432
63482
  fulfilment_error: string;
63433
63483
  /** @description This line's state in the latest fulfilment run, or null when no run has started. */
63434
63484
  fulfilment_state: string | null;
63485
+ /** @description HELD for delivery (owner 2026-11-10): it failed, nothing was refunded, dev was alerted and it retries itself. Staff may press Retry (`retryAdminHeldOrderLine`) or refund it to credit (`refundAdminHeldOrderLine`). */
63486
+ held: boolean;
63487
+ /** @description When the line was first held; null when not held. */
63488
+ held_at: string | null;
63489
+ /** @description Automatic retries so far; null when not held. */
63490
+ hold_retries: number | null;
63435
63491
  };
63436
63492
  AdminOrderPage: {
63437
63493
  data: components["schemas"]["AdminOrderSummary"][];
@@ -135014,6 +135070,81 @@ export interface operations {
135014
135070
  429: components["responses"]["TooManyRequests"];
135015
135071
  };
135016
135072
  };
135073
+ refundAdminHeldOrderLine: {
135074
+ parameters: {
135075
+ query?: never;
135076
+ header?: never;
135077
+ path: {
135078
+ /** @description The held order line's id. */
135079
+ lineId: components["schemas"]["Uuid"];
135080
+ /** @description The order's id. */
135081
+ orderId: components["parameters"]["OrderId"];
135082
+ };
135083
+ cookie?: never;
135084
+ };
135085
+ requestBody?: never;
135086
+ responses: {
135087
+ /** @description The line was credited. */
135088
+ 200: {
135089
+ headers: {
135090
+ [name: string]: unknown;
135091
+ };
135092
+ content: {
135093
+ "application/json": {
135094
+ /** @description ISO 4217 code of the credit. */
135095
+ currency: string;
135096
+ line_id: components["schemas"]["Uuid"];
135097
+ /**
135098
+ * Format: int64
135099
+ * @description Credit issued
135100
+ */
135101
+ refunded_minor: number;
135102
+ };
135103
+ };
135104
+ };
135105
+ 401: components["responses"]["Unauthorized"];
135106
+ 403: components["responses"]["Forbidden"];
135107
+ 404: components["responses"]["NotFound"];
135108
+ 409: components["responses"]["Conflict"];
135109
+ 429: components["responses"]["TooManyRequests"];
135110
+ 503: components["responses"]["ServiceUnavailable"];
135111
+ };
135112
+ };
135113
+ retryAdminHeldOrderLine: {
135114
+ parameters: {
135115
+ query?: never;
135116
+ header?: never;
135117
+ path: {
135118
+ /** @description The held order line's id. */
135119
+ lineId: components["schemas"]["Uuid"];
135120
+ /** @description The order's id. */
135121
+ orderId: components["parameters"]["OrderId"];
135122
+ };
135123
+ cookie?: never;
135124
+ };
135125
+ requestBody?: never;
135126
+ responses: {
135127
+ /** @description The re-drive started. */
135128
+ 202: {
135129
+ headers: {
135130
+ [name: string]: unknown;
135131
+ };
135132
+ content: {
135133
+ "application/json": {
135134
+ line_id: components["schemas"]["Uuid"];
135135
+ /** @description The Temporal workflow re-driving the line. */
135136
+ workflow_id: string;
135137
+ };
135138
+ };
135139
+ };
135140
+ 401: components["responses"]["Unauthorized"];
135141
+ 403: components["responses"]["Forbidden"];
135142
+ 404: components["responses"]["NotFound"];
135143
+ 409: components["responses"]["Conflict"];
135144
+ 429: components["responses"]["TooManyRequests"];
135145
+ 503: components["responses"]["ServiceUnavailable"];
135146
+ };
135147
+ };
135017
135148
  listAdminOrgs: {
135018
135149
  parameters: {
135019
135150
  query?: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zinn-digital/sdk",
3
- "version": "0.1.1703",
3
+ "version": "0.1.1705",
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>",