@zinn-digital/sdk 0.1.1702 → 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.
@@ -3997,6 +3997,52 @@ export interface paths {
3997
3997
  patch?: never;
3998
3998
  trace?: never;
3999
3999
  };
4000
+ "/v1/admin/coupons": {
4001
+ parameters: {
4002
+ query?: never;
4003
+ header?: never;
4004
+ path?: never;
4005
+ cookie?: never;
4006
+ };
4007
+ /**
4008
+ * Every hosting/SEO-tool coupon, with its redemptions.
4009
+ * @description Staff (`billing.entitlement.manage`). Newest first. `redemption_count` and `discount_totals` count redemptions on orders that were not cancelled, across every customer (docs/1311).
4010
+ */
4011
+ get: operations["listAdminCoupons"];
4012
+ put?: never;
4013
+ /**
4014
+ * Create a hosting/SEO-tool coupon.
4015
+ * @description Staff (`billing.entitlement.manage`), audit-logged as `billing.coupon.created`. The code is stored UPPER CASE and matched case-insensitively; it may not repeat a coupon or a domain promotion. `eligible_products` tokens: `hosting:*`, `seo:*`, `hosting:<plan_code>`, `extra:<extra_code>`. The only scope is `first_period`.
4016
+ */
4017
+ post: operations["createAdminCoupon"];
4018
+ delete?: never;
4019
+ options?: never;
4020
+ head?: never;
4021
+ patch?: never;
4022
+ trace?: never;
4023
+ };
4024
+ "/v1/admin/coupons/{couponId}/deactivate": {
4025
+ parameters: {
4026
+ query?: never;
4027
+ header?: never;
4028
+ path: {
4029
+ couponId: components["schemas"]["Uuid"];
4030
+ };
4031
+ cookie?: never;
4032
+ };
4033
+ get?: never;
4034
+ put?: never;
4035
+ /**
4036
+ * Stop a coupon being used.
4037
+ * @description Staff (`billing.entitlement.manage`), audit-logged as `billing.coupon.deactivated`. Idempotent. Orders already placed keep their price; a coupon is never deleted.
4038
+ */
4039
+ post: operations["deactivateAdminCoupon"];
4040
+ delete?: never;
4041
+ options?: never;
4042
+ head?: never;
4043
+ patch?: never;
4044
+ trace?: never;
4045
+ };
4000
4046
  "/v1/admin/crypto-auto-renew": {
4001
4047
  parameters: {
4002
4048
  query?: never;
@@ -10208,6 +10254,56 @@ export interface paths {
10208
10254
  patch?: never;
10209
10255
  trace?: never;
10210
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
+ };
10211
10307
  "/v1/admin/orgs": {
10212
10308
  parameters: {
10213
10309
  query?: never;
@@ -27791,6 +27887,30 @@ export interface paths {
27791
27887
  patch?: never;
27792
27888
  trace?: never;
27793
27889
  };
27890
+ "/v1/carts/{cartId}/promo-code": {
27891
+ parameters: {
27892
+ query?: never;
27893
+ header?: never;
27894
+ path: {
27895
+ /** @description The cart's id. */
27896
+ cartId: components["parameters"]["CartId"];
27897
+ };
27898
+ cookie?: never;
27899
+ };
27900
+ get?: never;
27901
+ /**
27902
+ * Type a discount code into a cart.
27903
+ * @description Applies a hosting/SEO-tool coupon (docs/1311) to the basket. The saving is taken off the FIRST billing period of each eligible line only; renewals are never discounted, and VAT is computed on the discounted net at checkout. A code that cannot apply to this customer at all is a `422` whose `details[0].code` is one of `not_found`, `inactive`, `not_started`, `expired`, `exhausted`, `already_used`. A code that applies to nothing in the basket YET is accepted and reported on `Cart.coupon.reason` (`not_eligible`, `currency_mismatch`), because a customer may type it before choosing the plan. A domain promotion code is accepted here too and priced by the domain path.
27904
+ */
27905
+ put: operations["setCartPromoCode"];
27906
+ post?: never;
27907
+ /** Remove the discount code from a cart. */
27908
+ delete: operations["clearCartPromoCode"];
27909
+ options?: never;
27910
+ head?: never;
27911
+ patch?: never;
27912
+ trace?: never;
27913
+ };
27794
27914
  "/v1/carts/adopt": {
27795
27915
  parameters: {
27796
27916
  query?: never;
@@ -43511,6 +43631,26 @@ export interface paths {
43511
43631
  patch?: never;
43512
43632
  trace?: never;
43513
43633
  };
43634
+ "/v1/promo-codes/quote": {
43635
+ parameters: {
43636
+ query?: never;
43637
+ header?: never;
43638
+ path?: never;
43639
+ cookie?: never;
43640
+ };
43641
+ get?: never;
43642
+ put?: never;
43643
+ /**
43644
+ * Preview what a discount code takes off these items.
43645
+ * @description A DISPLAY for the checkout form (docs/1311): the same rules and arithmetic as the cart, on the catalogue amounts given. Checkout re-prices the basket and charges from the cart, never from this answer. `once_per_customer` is judged against the caller's org (`org_id`, required only when the caller manages billing for several).
43646
+ */
43647
+ post: operations["quotePromoCode"];
43648
+ delete?: never;
43649
+ options?: never;
43650
+ head?: never;
43651
+ patch?: never;
43652
+ trace?: never;
43653
+ };
43514
43654
  "/v1/proposals": {
43515
43655
  parameters: {
43516
43656
  query?: never;
@@ -45544,6 +45684,26 @@ export interface paths {
45544
45684
  patch?: never;
45545
45685
  trace?: never;
45546
45686
  };
45687
+ "/v1/public/promo-codes/quote": {
45688
+ parameters: {
45689
+ query?: never;
45690
+ header?: never;
45691
+ path?: never;
45692
+ cookie?: never;
45693
+ };
45694
+ get?: never;
45695
+ put?: never;
45696
+ /**
45697
+ * Preview what a discount code takes off a guest basket.
45698
+ * @description The guest checkout's coupon preview (docs/1311). Unauthenticated and budgeted per visitor (a few dozen checks an hour, fail-closed). A DISPLAY only: the code is re-checked by `publicCheckout` before any account exists and the placed order is priced from the cart. Once-per-customer is judged at placement, against the new organization.
45699
+ */
45700
+ post: operations["publicQuotePromoCode"];
45701
+ delete?: never;
45702
+ options?: never;
45703
+ head?: never;
45704
+ patch?: never;
45705
+ trace?: never;
45706
+ };
45547
45707
  "/v1/public/proposal-labels": {
45548
45708
  parameters: {
45549
45709
  query?: never;
@@ -61763,6 +61923,65 @@ export interface components {
61763
61923
  /** @description The concrete adapter/provider name. */
61764
61924
  vendor: string;
61765
61925
  };
61926
+ AdminCoupon: {
61927
+ active: boolean;
61928
+ amount_off_currency?: string | null;
61929
+ amount_off_minor?: number | null;
61930
+ attribution_source?: string;
61931
+ code: string;
61932
+ /** Format: date-time */
61933
+ created_at: string;
61934
+ created_by?: string;
61935
+ /** Format: date-time */
61936
+ deactivated_at?: string | null;
61937
+ description?: string;
61938
+ discount_totals: {
61939
+ amount_minor: number;
61940
+ currency: string;
61941
+ }[];
61942
+ eligible_products: string[];
61943
+ /** Format: date-time */
61944
+ ends_at?: string | null;
61945
+ id: components["schemas"]["Uuid"];
61946
+ /** @enum {string} */
61947
+ kind: "percent" | "fixed";
61948
+ max_redemptions?: number | null;
61949
+ once_per_customer: boolean;
61950
+ percent_off?: number | null;
61951
+ redemption_count: number;
61952
+ /** @enum {string} */
61953
+ scope: "first_period";
61954
+ /** Format: date-time */
61955
+ starts_at?: string | null;
61956
+ };
61957
+ AdminCouponCreate: {
61958
+ amount_off_currency?: string | null;
61959
+ amount_off_minor?: number | null;
61960
+ /** @example davidibiza */
61961
+ attribution_source?: string;
61962
+ /** @example DAVIDIBIZA20 */
61963
+ code: string;
61964
+ description?: string;
61965
+ /**
61966
+ * @example [
61967
+ * "hosting:*",
61968
+ * "seo:*"
61969
+ * ]
61970
+ */
61971
+ eligible_products: string[];
61972
+ /** Format: date-time */
61973
+ ends_at?: string | null;
61974
+ /** @enum {string} */
61975
+ kind: "percent" | "fixed";
61976
+ max_redemptions?: number | null;
61977
+ once_per_customer?: boolean;
61978
+ percent_off?: number | null;
61979
+ /** Format: date-time */
61980
+ starts_at?: string | null;
61981
+ };
61982
+ AdminCouponList: {
61983
+ items: components["schemas"]["AdminCoupon"][];
61984
+ };
61766
61985
  AdminCrossSellRule: {
61767
61986
  enabled: boolean;
61768
61987
  enrollments: {
@@ -63263,6 +63482,12 @@ export interface components {
63263
63482
  fulfilment_error: string;
63264
63483
  /** @description This line's state in the latest fulfilment run, or null when no run has started. */
63265
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;
63266
63491
  };
63267
63492
  AdminOrderPage: {
63268
63493
  data: components["schemas"]["AdminOrderSummary"][];
@@ -78177,6 +78402,8 @@ export interface components {
78177
78402
  to: string;
78178
78403
  };
78179
78404
  Cart: {
78405
+ /** @description What the typed hosting/SEO coupon did to this basket, or null when no coupon code is typed (a domain promotion code is reported on its lines instead). */
78406
+ coupon?: components["schemas"]["CartCoupon"] | null;
78180
78407
  /** Format: date-time */
78181
78408
  created_at: string;
78182
78409
  /** @description Fixed when the cart is opened, from `CartCreate.currency` or the `X-Zinn-Currency` header, and then locked — every line must match it. Null only on a legacy cart created before carts carried one (the currency used to be set by whichever call site added the first line, which defaulted to USD however the customer had been quoted — #501). */
@@ -78186,6 +78413,8 @@ export interface components {
78186
78413
  lines: components["schemas"]["CartLine"][];
78187
78414
  org_id: components["schemas"]["Uuid"];
78188
78415
  product_line?: string | null;
78416
+ /** @description The discount code typed into this basket (docs/1311), or null. */
78417
+ promo_code?: string | null;
78189
78418
  /** @enum {string} */
78190
78419
  status: "open" | "checking_out" | "converted" | "abandoned" | "expired";
78191
78420
  subtotal: components["schemas"]["MoneyAmount"];
@@ -78209,6 +78438,22 @@ export interface components {
78209
78438
  /** @description The organization cart the items now live in. Empty when the guest basket held nothing — which is a success with zero moved, not a failure. */
78210
78439
  cart_id: string;
78211
78440
  };
78441
+ CartCoupon: {
78442
+ amount_off_currency?: string | null;
78443
+ amount_off_minor?: number | null;
78444
+ /** @description True when it took something off this basket. */
78445
+ applied: boolean;
78446
+ code: string;
78447
+ discount: components["schemas"]["MoneyAmount"];
78448
+ /** @enum {string|null} */
78449
+ kind?: "percent" | "fixed" | null;
78450
+ /** @description The English sentence for `reason`. */
78451
+ message?: string | null;
78452
+ percent_off?: number | null;
78453
+ reason: components["schemas"]["CouponReason"];
78454
+ /** @enum {string|null} */
78455
+ scope?: "first_period" | null;
78456
+ };
78212
78457
  CartCreate: {
78213
78458
  /** @description The currency to open the basket in — what the customer will be **billed** in. Omit it and the engine uses the `X-Zinn-Currency` header the dashboard already sends, falling back to the base currency. A currency we do not offer, or one no payment gateway can charge, is a `422` rather than a silent substitution (docs/44 §3): a basket that quietly changes currency is a customer agreeing to one number and being charged another. */
78214
78459
  currency?: components["schemas"]["CurrencyCode"] | null;
@@ -79352,6 +79597,7 @@ export interface components {
79352
79597
  * @description The order total the checkout page **displayed to the customer**, in minor units. Send it and checkout refuses with `422` when the basket no longer comes to that figure; omit it and the order is placed at whatever the basket prices to, which is the behaviour every client had before this field existed.
79353
79598
  *
79354
79599
  * The basket is re-priced at the moment of placement — deliberately, because a basket that quotes last week's price and charges it is a dispute — so a page left open while a price **rises** would otherwise charge a total the customer never saw. The refusal happens **before the order row is created**, so nothing is placed, nothing is charged and there is nothing to reconcile: the client reloads the basket and shows the new figure.
79600
+ * The refusal is `422` with `details[0].field = expected_total_minor` and `details[0].code = TOTAL_CHANGED` (key `refusal.commerce.totalChanged`). A hosting/SEO coupon in the basket that stopped applying (docs/1311: a cap reached, an expiry, a deactivation) is refused whether or not this field is sent — `details[0].field = promo_code` — so the order is never placed at the full price silently.
79355
79601
  * @example 5999
79356
79602
  */
79357
79603
  expected_total_minor?: number | null;
@@ -82243,6 +82489,46 @@ export interface components {
82243
82489
  to_amount_minor: number;
82244
82490
  to_currency: string;
82245
82491
  };
82492
+ CouponQuote: {
82493
+ amount_off_currency?: string | null;
82494
+ amount_off_minor?: number | null;
82495
+ code: string;
82496
+ currency: string;
82497
+ discount_total_minor: number;
82498
+ items: {
82499
+ discount_minor: number;
82500
+ ref: string;
82501
+ }[];
82502
+ /** @enum {string|null} */
82503
+ kind?: "percent" | "fixed" | null;
82504
+ message?: string | null;
82505
+ percent_off?: number | null;
82506
+ reason: components["schemas"]["CouponReason"];
82507
+ /** @enum {string|null} */
82508
+ scope?: "first_period" | null;
82509
+ valid: boolean;
82510
+ };
82511
+ CouponQuoteItem: {
82512
+ /** @description What the item would cost this period before the code, in minor units. */
82513
+ amount_minor: number;
82514
+ extra_code?: string;
82515
+ /** @enum {string} */
82516
+ kind: "hosting_plan" | "extra";
82517
+ plan_code?: string;
82518
+ /** @description The caller's own id for the item. */
82519
+ ref: string;
82520
+ };
82521
+ CouponQuoteRequest: {
82522
+ code: string;
82523
+ currency: components["schemas"]["CurrencyCode"];
82524
+ items: components["schemas"]["CouponQuoteItem"][];
82525
+ org_id?: components["schemas"]["Uuid"];
82526
+ };
82527
+ /**
82528
+ * @description Why a code does not apply (null when it does). Stable values the surfaces translate.
82529
+ * @enum {string|null}
82530
+ */
82531
+ CouponReason: "not_found" | "inactive" | "not_started" | "expired" | "exhausted" | "already_used" | "not_eligible" | "currency_mismatch" | null;
82246
82532
  /** @description A tally of locales by translation status for one (surface, locale) group. Every status of `TranslationStatus` appears, always — the engine derives this from `StatusCounts.as_payload()` rather than enumerating keys per call site. */
82247
82533
  CoverageCounts: {
82248
82534
  failed?: number;
@@ -99006,6 +99292,10 @@ export interface components {
99006
99292
  severity?: string;
99007
99293
  term?: string;
99008
99294
  };
99295
+ PromoCodeSet: {
99296
+ /** @example DAVIDIBIZA20 */
99297
+ code: string;
99298
+ };
99009
99299
  Proposal: components["schemas"]["ProposalSummary"] & {
99010
99300
  accepted_by_name?: string;
99011
99301
  accepted_revision?: number | null;
@@ -99856,6 +100146,12 @@ export interface components {
99856
100146
  cart_token: string;
99857
100147
  /** Format: email */
99858
100148
  email: string;
100149
+ /**
100150
+ * Format: int64
100151
+ * @description The order total (tax included, minor units) the checkout page displayed. When sent and the placed order would total anything else, checkout refuses `422` with `details[0].code = TOTAL_CHANGED` before any order is placed, and nothing is charged: the visitor is shown the new total and confirms again (docs/1311).
100152
+ * @example 7999
100153
+ */
100154
+ expected_total_minor?: number | null;
99859
100155
  locale?: string;
99860
100156
  /** @description "Don't email me offers and tips" — the marketing opt-out offered at collection (soft opt-in, PECR reg. 22(3); owner ruling 2026-08-26). `true` records the same suppression a one-click unsubscribe does for the account this checkout creates. OPTIONAL: omitted means `false` (we may send marketing) — the server applies that default. ⛔ No schema `default` here: the generated TS types turn a defaulted property into a REQUIRED one, which broke every existing caller of this public endpoint (marketplace-web build, 2026-10-14, #9576). */
99861
100157
  marketing_opt_out?: boolean;
@@ -99871,6 +100167,8 @@ export interface components {
99871
100167
  news_wording?: string;
99872
100168
  /** @description Optional. Omit it and the account is created without a credential, so the customer sets one through the identity provider's own verified flow — which is the safer default, because it proves the inbox before granting a password. */
99873
100169
  password?: string;
100170
+ /** @description A hosting/SEO-tool coupon typed on the public checkout (docs/1311), e.g. a partner's code. Checked before any account exists; a code that cannot apply is a `422` with `details[0].field = promo_code` and `details[0].code` naming why. The saving is taken off the first billing period of each eligible line of the placed order. */
100171
+ promo_code?: string;
99874
100172
  /** @description Who the basket's domains are registered to. Optional on the wire — a basket with no domain needs none — but **required whenever the basket holds a domain**: without it the call is refused `422 REGISTRANT_REQUIRED` before any account, organization or order is created. It becomes the new organization's default registrant. */
99875
100173
  registrant?: components["schemas"]["Registrant"];
99876
100174
  /** @description Q10 — `domain_name` → the fields that domain's registry demands beyond the registrant (`getTldRequirements` lists them per extension: ID / tax / company numbers, `.us` nexus, `.ca` legal type, registry acceptances …). Every `domain_register` / `domain_transfer` line is checked against its extension BEFORE anything is placed; a missing or invalid value is `422 REGISTRY_DATA_REQUIRED` with one `details[]` entry per problem (`domain`, `field`, `code`). Keys an extension does not declare are dropped. Write-only: never echoed on an order. */
@@ -124812,6 +125110,80 @@ export interface operations {
124812
125110
  422: components["responses"]["UnprocessableEntity"];
124813
125111
  };
124814
125112
  };
125113
+ listAdminCoupons: {
125114
+ parameters: {
125115
+ query?: never;
125116
+ header?: never;
125117
+ path?: never;
125118
+ cookie?: never;
125119
+ };
125120
+ requestBody?: never;
125121
+ responses: {
125122
+ /** @description The coupons. */
125123
+ 200: {
125124
+ headers: {
125125
+ [name: string]: unknown;
125126
+ };
125127
+ content: {
125128
+ "application/json": components["schemas"]["AdminCouponList"];
125129
+ };
125130
+ };
125131
+ 401: components["responses"]["Unauthorized"];
125132
+ 403: components["responses"]["Forbidden"];
125133
+ };
125134
+ };
125135
+ createAdminCoupon: {
125136
+ parameters: {
125137
+ query?: never;
125138
+ header?: never;
125139
+ path?: never;
125140
+ cookie?: never;
125141
+ };
125142
+ requestBody: {
125143
+ content: {
125144
+ "application/json": components["schemas"]["AdminCouponCreate"];
125145
+ };
125146
+ };
125147
+ responses: {
125148
+ /** @description The coupon. */
125149
+ 201: {
125150
+ headers: {
125151
+ [name: string]: unknown;
125152
+ };
125153
+ content: {
125154
+ "application/json": components["schemas"]["AdminCoupon"];
125155
+ };
125156
+ };
125157
+ 401: components["responses"]["Unauthorized"];
125158
+ 403: components["responses"]["Forbidden"];
125159
+ 422: components["responses"]["UnprocessableEntity"];
125160
+ };
125161
+ };
125162
+ deactivateAdminCoupon: {
125163
+ parameters: {
125164
+ query?: never;
125165
+ header?: never;
125166
+ path: {
125167
+ couponId: components["schemas"]["Uuid"];
125168
+ };
125169
+ cookie?: never;
125170
+ };
125171
+ requestBody?: never;
125172
+ responses: {
125173
+ /** @description The coupon, now inactive. */
125174
+ 200: {
125175
+ headers: {
125176
+ [name: string]: unknown;
125177
+ };
125178
+ content: {
125179
+ "application/json": components["schemas"]["AdminCoupon"];
125180
+ };
125181
+ };
125182
+ 401: components["responses"]["Unauthorized"];
125183
+ 403: components["responses"]["Forbidden"];
125184
+ 404: components["responses"]["NotFound"];
125185
+ };
125186
+ };
124815
125187
  listCryptoAutoRenew: {
124816
125188
  parameters: {
124817
125189
  query?: {
@@ -134698,6 +135070,81 @@ export interface operations {
134698
135070
  429: components["responses"]["TooManyRequests"];
134699
135071
  };
134700
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
+ };
134701
135148
  listAdminOrgs: {
134702
135149
  parameters: {
134703
135150
  query?: {
@@ -165251,6 +165698,65 @@ export interface operations {
165251
165698
  404: components["responses"]["NotFound"];
165252
165699
  };
165253
165700
  };
165701
+ setCartPromoCode: {
165702
+ parameters: {
165703
+ query?: never;
165704
+ header?: never;
165705
+ path: {
165706
+ /** @description The cart's id. */
165707
+ cartId: components["parameters"]["CartId"];
165708
+ };
165709
+ cookie?: never;
165710
+ };
165711
+ requestBody: {
165712
+ content: {
165713
+ "application/json": components["schemas"]["PromoCodeSet"];
165714
+ };
165715
+ };
165716
+ responses: {
165717
+ /** @description The re-priced cart, with `promo_code` and `coupon`. */
165718
+ 200: {
165719
+ headers: {
165720
+ [name: string]: unknown;
165721
+ };
165722
+ content: {
165723
+ "application/json": components["schemas"]["Cart"];
165724
+ };
165725
+ };
165726
+ 401: components["responses"]["Unauthorized"];
165727
+ 403: components["responses"]["Forbidden"];
165728
+ 404: components["responses"]["NotFound"];
165729
+ 422: components["responses"]["UnprocessableEntity"];
165730
+ 429: components["responses"]["TooManyRequests"];
165731
+ };
165732
+ };
165733
+ clearCartPromoCode: {
165734
+ parameters: {
165735
+ query?: never;
165736
+ header?: never;
165737
+ path: {
165738
+ /** @description The cart's id. */
165739
+ cartId: components["parameters"]["CartId"];
165740
+ };
165741
+ cookie?: never;
165742
+ };
165743
+ requestBody?: never;
165744
+ responses: {
165745
+ /** @description The re-priced cart, with no code. */
165746
+ 200: {
165747
+ headers: {
165748
+ [name: string]: unknown;
165749
+ };
165750
+ content: {
165751
+ "application/json": components["schemas"]["Cart"];
165752
+ };
165753
+ };
165754
+ 401: components["responses"]["Unauthorized"];
165755
+ 403: components["responses"]["Forbidden"];
165756
+ 404: components["responses"]["NotFound"];
165757
+ 429: components["responses"]["TooManyRequests"];
165758
+ };
165759
+ };
165254
165760
  adoptGuestCart: {
165255
165761
  parameters: {
165256
165762
  query?: never;
@@ -190982,6 +191488,34 @@ export interface operations {
190982
191488
  503: components["responses"]["ServiceUnavailable"];
190983
191489
  };
190984
191490
  };
191491
+ quotePromoCode: {
191492
+ parameters: {
191493
+ query?: never;
191494
+ header?: never;
191495
+ path?: never;
191496
+ cookie?: never;
191497
+ };
191498
+ requestBody: {
191499
+ content: {
191500
+ "application/json": components["schemas"]["CouponQuoteRequest"];
191501
+ };
191502
+ };
191503
+ responses: {
191504
+ /** @description The preview. */
191505
+ 200: {
191506
+ headers: {
191507
+ [name: string]: unknown;
191508
+ };
191509
+ content: {
191510
+ "application/json": components["schemas"]["CouponQuote"];
191511
+ };
191512
+ };
191513
+ 401: components["responses"]["Unauthorized"];
191514
+ 403: components["responses"]["Forbidden"];
191515
+ 422: components["responses"]["UnprocessableEntity"];
191516
+ 429: components["responses"]["TooManyRequests"];
191517
+ };
191518
+ };
190985
191519
  listProposals: {
190986
191520
  parameters: {
190987
191521
  query?: {
@@ -194007,6 +194541,32 @@ export interface operations {
194007
194541
  429: components["responses"]["TooManyRequests"];
194008
194542
  };
194009
194543
  };
194544
+ publicQuotePromoCode: {
194545
+ parameters: {
194546
+ query?: never;
194547
+ header?: never;
194548
+ path?: never;
194549
+ cookie?: never;
194550
+ };
194551
+ requestBody: {
194552
+ content: {
194553
+ "application/json": components["schemas"]["CouponQuoteRequest"];
194554
+ };
194555
+ };
194556
+ responses: {
194557
+ /** @description The preview. */
194558
+ 200: {
194559
+ headers: {
194560
+ [name: string]: unknown;
194561
+ };
194562
+ content: {
194563
+ "application/json": components["schemas"]["CouponQuote"];
194564
+ };
194565
+ };
194566
+ 422: components["responses"]["UnprocessableEntity"];
194567
+ 429: components["responses"]["TooManyRequests"];
194568
+ };
194569
+ };
194010
194570
  getPublicProposalLabels: {
194011
194571
  parameters: {
194012
194572
  query?: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zinn-digital/sdk",
3
- "version": "0.1.1702",
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>",