@zinn-digital/sdk 0.1.1702 → 0.1.1703
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 +429 -0
- package/package.json +1 -1
|
@@ -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;
|
|
@@ -27791,6 +27837,30 @@ export interface paths {
|
|
|
27791
27837
|
patch?: never;
|
|
27792
27838
|
trace?: never;
|
|
27793
27839
|
};
|
|
27840
|
+
"/v1/carts/{cartId}/promo-code": {
|
|
27841
|
+
parameters: {
|
|
27842
|
+
query?: never;
|
|
27843
|
+
header?: never;
|
|
27844
|
+
path: {
|
|
27845
|
+
/** @description The cart's id. */
|
|
27846
|
+
cartId: components["parameters"]["CartId"];
|
|
27847
|
+
};
|
|
27848
|
+
cookie?: never;
|
|
27849
|
+
};
|
|
27850
|
+
get?: never;
|
|
27851
|
+
/**
|
|
27852
|
+
* Type a discount code into a cart.
|
|
27853
|
+
* @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.
|
|
27854
|
+
*/
|
|
27855
|
+
put: operations["setCartPromoCode"];
|
|
27856
|
+
post?: never;
|
|
27857
|
+
/** Remove the discount code from a cart. */
|
|
27858
|
+
delete: operations["clearCartPromoCode"];
|
|
27859
|
+
options?: never;
|
|
27860
|
+
head?: never;
|
|
27861
|
+
patch?: never;
|
|
27862
|
+
trace?: never;
|
|
27863
|
+
};
|
|
27794
27864
|
"/v1/carts/adopt": {
|
|
27795
27865
|
parameters: {
|
|
27796
27866
|
query?: never;
|
|
@@ -43511,6 +43581,26 @@ export interface paths {
|
|
|
43511
43581
|
patch?: never;
|
|
43512
43582
|
trace?: never;
|
|
43513
43583
|
};
|
|
43584
|
+
"/v1/promo-codes/quote": {
|
|
43585
|
+
parameters: {
|
|
43586
|
+
query?: never;
|
|
43587
|
+
header?: never;
|
|
43588
|
+
path?: never;
|
|
43589
|
+
cookie?: never;
|
|
43590
|
+
};
|
|
43591
|
+
get?: never;
|
|
43592
|
+
put?: never;
|
|
43593
|
+
/**
|
|
43594
|
+
* Preview what a discount code takes off these items.
|
|
43595
|
+
* @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).
|
|
43596
|
+
*/
|
|
43597
|
+
post: operations["quotePromoCode"];
|
|
43598
|
+
delete?: never;
|
|
43599
|
+
options?: never;
|
|
43600
|
+
head?: never;
|
|
43601
|
+
patch?: never;
|
|
43602
|
+
trace?: never;
|
|
43603
|
+
};
|
|
43514
43604
|
"/v1/proposals": {
|
|
43515
43605
|
parameters: {
|
|
43516
43606
|
query?: never;
|
|
@@ -45544,6 +45634,26 @@ export interface paths {
|
|
|
45544
45634
|
patch?: never;
|
|
45545
45635
|
trace?: never;
|
|
45546
45636
|
};
|
|
45637
|
+
"/v1/public/promo-codes/quote": {
|
|
45638
|
+
parameters: {
|
|
45639
|
+
query?: never;
|
|
45640
|
+
header?: never;
|
|
45641
|
+
path?: never;
|
|
45642
|
+
cookie?: never;
|
|
45643
|
+
};
|
|
45644
|
+
get?: never;
|
|
45645
|
+
put?: never;
|
|
45646
|
+
/**
|
|
45647
|
+
* Preview what a discount code takes off a guest basket.
|
|
45648
|
+
* @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.
|
|
45649
|
+
*/
|
|
45650
|
+
post: operations["publicQuotePromoCode"];
|
|
45651
|
+
delete?: never;
|
|
45652
|
+
options?: never;
|
|
45653
|
+
head?: never;
|
|
45654
|
+
patch?: never;
|
|
45655
|
+
trace?: never;
|
|
45656
|
+
};
|
|
45547
45657
|
"/v1/public/proposal-labels": {
|
|
45548
45658
|
parameters: {
|
|
45549
45659
|
query?: never;
|
|
@@ -61763,6 +61873,65 @@ export interface components {
|
|
|
61763
61873
|
/** @description The concrete adapter/provider name. */
|
|
61764
61874
|
vendor: string;
|
|
61765
61875
|
};
|
|
61876
|
+
AdminCoupon: {
|
|
61877
|
+
active: boolean;
|
|
61878
|
+
amount_off_currency?: string | null;
|
|
61879
|
+
amount_off_minor?: number | null;
|
|
61880
|
+
attribution_source?: string;
|
|
61881
|
+
code: string;
|
|
61882
|
+
/** Format: date-time */
|
|
61883
|
+
created_at: string;
|
|
61884
|
+
created_by?: string;
|
|
61885
|
+
/** Format: date-time */
|
|
61886
|
+
deactivated_at?: string | null;
|
|
61887
|
+
description?: string;
|
|
61888
|
+
discount_totals: {
|
|
61889
|
+
amount_minor: number;
|
|
61890
|
+
currency: string;
|
|
61891
|
+
}[];
|
|
61892
|
+
eligible_products: string[];
|
|
61893
|
+
/** Format: date-time */
|
|
61894
|
+
ends_at?: string | null;
|
|
61895
|
+
id: components["schemas"]["Uuid"];
|
|
61896
|
+
/** @enum {string} */
|
|
61897
|
+
kind: "percent" | "fixed";
|
|
61898
|
+
max_redemptions?: number | null;
|
|
61899
|
+
once_per_customer: boolean;
|
|
61900
|
+
percent_off?: number | null;
|
|
61901
|
+
redemption_count: number;
|
|
61902
|
+
/** @enum {string} */
|
|
61903
|
+
scope: "first_period";
|
|
61904
|
+
/** Format: date-time */
|
|
61905
|
+
starts_at?: string | null;
|
|
61906
|
+
};
|
|
61907
|
+
AdminCouponCreate: {
|
|
61908
|
+
amount_off_currency?: string | null;
|
|
61909
|
+
amount_off_minor?: number | null;
|
|
61910
|
+
/** @example davidibiza */
|
|
61911
|
+
attribution_source?: string;
|
|
61912
|
+
/** @example DAVIDIBIZA20 */
|
|
61913
|
+
code: string;
|
|
61914
|
+
description?: string;
|
|
61915
|
+
/**
|
|
61916
|
+
* @example [
|
|
61917
|
+
* "hosting:*",
|
|
61918
|
+
* "seo:*"
|
|
61919
|
+
* ]
|
|
61920
|
+
*/
|
|
61921
|
+
eligible_products: string[];
|
|
61922
|
+
/** Format: date-time */
|
|
61923
|
+
ends_at?: string | null;
|
|
61924
|
+
/** @enum {string} */
|
|
61925
|
+
kind: "percent" | "fixed";
|
|
61926
|
+
max_redemptions?: number | null;
|
|
61927
|
+
once_per_customer?: boolean;
|
|
61928
|
+
percent_off?: number | null;
|
|
61929
|
+
/** Format: date-time */
|
|
61930
|
+
starts_at?: string | null;
|
|
61931
|
+
};
|
|
61932
|
+
AdminCouponList: {
|
|
61933
|
+
items: components["schemas"]["AdminCoupon"][];
|
|
61934
|
+
};
|
|
61766
61935
|
AdminCrossSellRule: {
|
|
61767
61936
|
enabled: boolean;
|
|
61768
61937
|
enrollments: {
|
|
@@ -78177,6 +78346,8 @@ export interface components {
|
|
|
78177
78346
|
to: string;
|
|
78178
78347
|
};
|
|
78179
78348
|
Cart: {
|
|
78349
|
+
/** @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). */
|
|
78350
|
+
coupon?: components["schemas"]["CartCoupon"] | null;
|
|
78180
78351
|
/** Format: date-time */
|
|
78181
78352
|
created_at: string;
|
|
78182
78353
|
/** @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 +78357,8 @@ export interface components {
|
|
|
78186
78357
|
lines: components["schemas"]["CartLine"][];
|
|
78187
78358
|
org_id: components["schemas"]["Uuid"];
|
|
78188
78359
|
product_line?: string | null;
|
|
78360
|
+
/** @description The discount code typed into this basket (docs/1311), or null. */
|
|
78361
|
+
promo_code?: string | null;
|
|
78189
78362
|
/** @enum {string} */
|
|
78190
78363
|
status: "open" | "checking_out" | "converted" | "abandoned" | "expired";
|
|
78191
78364
|
subtotal: components["schemas"]["MoneyAmount"];
|
|
@@ -78209,6 +78382,22 @@ export interface components {
|
|
|
78209
78382
|
/** @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
78383
|
cart_id: string;
|
|
78211
78384
|
};
|
|
78385
|
+
CartCoupon: {
|
|
78386
|
+
amount_off_currency?: string | null;
|
|
78387
|
+
amount_off_minor?: number | null;
|
|
78388
|
+
/** @description True when it took something off this basket. */
|
|
78389
|
+
applied: boolean;
|
|
78390
|
+
code: string;
|
|
78391
|
+
discount: components["schemas"]["MoneyAmount"];
|
|
78392
|
+
/** @enum {string|null} */
|
|
78393
|
+
kind?: "percent" | "fixed" | null;
|
|
78394
|
+
/** @description The English sentence for `reason`. */
|
|
78395
|
+
message?: string | null;
|
|
78396
|
+
percent_off?: number | null;
|
|
78397
|
+
reason: components["schemas"]["CouponReason"];
|
|
78398
|
+
/** @enum {string|null} */
|
|
78399
|
+
scope?: "first_period" | null;
|
|
78400
|
+
};
|
|
78212
78401
|
CartCreate: {
|
|
78213
78402
|
/** @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
78403
|
currency?: components["schemas"]["CurrencyCode"] | null;
|
|
@@ -79352,6 +79541,7 @@ export interface components {
|
|
|
79352
79541
|
* @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
79542
|
*
|
|
79354
79543
|
* 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.
|
|
79544
|
+
* 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
79545
|
* @example 5999
|
|
79356
79546
|
*/
|
|
79357
79547
|
expected_total_minor?: number | null;
|
|
@@ -82243,6 +82433,46 @@ export interface components {
|
|
|
82243
82433
|
to_amount_minor: number;
|
|
82244
82434
|
to_currency: string;
|
|
82245
82435
|
};
|
|
82436
|
+
CouponQuote: {
|
|
82437
|
+
amount_off_currency?: string | null;
|
|
82438
|
+
amount_off_minor?: number | null;
|
|
82439
|
+
code: string;
|
|
82440
|
+
currency: string;
|
|
82441
|
+
discount_total_minor: number;
|
|
82442
|
+
items: {
|
|
82443
|
+
discount_minor: number;
|
|
82444
|
+
ref: string;
|
|
82445
|
+
}[];
|
|
82446
|
+
/** @enum {string|null} */
|
|
82447
|
+
kind?: "percent" | "fixed" | null;
|
|
82448
|
+
message?: string | null;
|
|
82449
|
+
percent_off?: number | null;
|
|
82450
|
+
reason: components["schemas"]["CouponReason"];
|
|
82451
|
+
/** @enum {string|null} */
|
|
82452
|
+
scope?: "first_period" | null;
|
|
82453
|
+
valid: boolean;
|
|
82454
|
+
};
|
|
82455
|
+
CouponQuoteItem: {
|
|
82456
|
+
/** @description What the item would cost this period before the code, in minor units. */
|
|
82457
|
+
amount_minor: number;
|
|
82458
|
+
extra_code?: string;
|
|
82459
|
+
/** @enum {string} */
|
|
82460
|
+
kind: "hosting_plan" | "extra";
|
|
82461
|
+
plan_code?: string;
|
|
82462
|
+
/** @description The caller's own id for the item. */
|
|
82463
|
+
ref: string;
|
|
82464
|
+
};
|
|
82465
|
+
CouponQuoteRequest: {
|
|
82466
|
+
code: string;
|
|
82467
|
+
currency: components["schemas"]["CurrencyCode"];
|
|
82468
|
+
items: components["schemas"]["CouponQuoteItem"][];
|
|
82469
|
+
org_id?: components["schemas"]["Uuid"];
|
|
82470
|
+
};
|
|
82471
|
+
/**
|
|
82472
|
+
* @description Why a code does not apply (null when it does). Stable values the surfaces translate.
|
|
82473
|
+
* @enum {string|null}
|
|
82474
|
+
*/
|
|
82475
|
+
CouponReason: "not_found" | "inactive" | "not_started" | "expired" | "exhausted" | "already_used" | "not_eligible" | "currency_mismatch" | null;
|
|
82246
82476
|
/** @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
82477
|
CoverageCounts: {
|
|
82248
82478
|
failed?: number;
|
|
@@ -99006,6 +99236,10 @@ export interface components {
|
|
|
99006
99236
|
severity?: string;
|
|
99007
99237
|
term?: string;
|
|
99008
99238
|
};
|
|
99239
|
+
PromoCodeSet: {
|
|
99240
|
+
/** @example DAVIDIBIZA20 */
|
|
99241
|
+
code: string;
|
|
99242
|
+
};
|
|
99009
99243
|
Proposal: components["schemas"]["ProposalSummary"] & {
|
|
99010
99244
|
accepted_by_name?: string;
|
|
99011
99245
|
accepted_revision?: number | null;
|
|
@@ -99856,6 +100090,12 @@ export interface components {
|
|
|
99856
100090
|
cart_token: string;
|
|
99857
100091
|
/** Format: email */
|
|
99858
100092
|
email: string;
|
|
100093
|
+
/**
|
|
100094
|
+
* Format: int64
|
|
100095
|
+
* @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).
|
|
100096
|
+
* @example 7999
|
|
100097
|
+
*/
|
|
100098
|
+
expected_total_minor?: number | null;
|
|
99859
100099
|
locale?: string;
|
|
99860
100100
|
/** @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
100101
|
marketing_opt_out?: boolean;
|
|
@@ -99871,6 +100111,8 @@ export interface components {
|
|
|
99871
100111
|
news_wording?: string;
|
|
99872
100112
|
/** @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
100113
|
password?: string;
|
|
100114
|
+
/** @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. */
|
|
100115
|
+
promo_code?: string;
|
|
99874
100116
|
/** @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
100117
|
registrant?: components["schemas"]["Registrant"];
|
|
99876
100118
|
/** @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 +125054,80 @@ export interface operations {
|
|
|
124812
125054
|
422: components["responses"]["UnprocessableEntity"];
|
|
124813
125055
|
};
|
|
124814
125056
|
};
|
|
125057
|
+
listAdminCoupons: {
|
|
125058
|
+
parameters: {
|
|
125059
|
+
query?: never;
|
|
125060
|
+
header?: never;
|
|
125061
|
+
path?: never;
|
|
125062
|
+
cookie?: never;
|
|
125063
|
+
};
|
|
125064
|
+
requestBody?: never;
|
|
125065
|
+
responses: {
|
|
125066
|
+
/** @description The coupons. */
|
|
125067
|
+
200: {
|
|
125068
|
+
headers: {
|
|
125069
|
+
[name: string]: unknown;
|
|
125070
|
+
};
|
|
125071
|
+
content: {
|
|
125072
|
+
"application/json": components["schemas"]["AdminCouponList"];
|
|
125073
|
+
};
|
|
125074
|
+
};
|
|
125075
|
+
401: components["responses"]["Unauthorized"];
|
|
125076
|
+
403: components["responses"]["Forbidden"];
|
|
125077
|
+
};
|
|
125078
|
+
};
|
|
125079
|
+
createAdminCoupon: {
|
|
125080
|
+
parameters: {
|
|
125081
|
+
query?: never;
|
|
125082
|
+
header?: never;
|
|
125083
|
+
path?: never;
|
|
125084
|
+
cookie?: never;
|
|
125085
|
+
};
|
|
125086
|
+
requestBody: {
|
|
125087
|
+
content: {
|
|
125088
|
+
"application/json": components["schemas"]["AdminCouponCreate"];
|
|
125089
|
+
};
|
|
125090
|
+
};
|
|
125091
|
+
responses: {
|
|
125092
|
+
/** @description The coupon. */
|
|
125093
|
+
201: {
|
|
125094
|
+
headers: {
|
|
125095
|
+
[name: string]: unknown;
|
|
125096
|
+
};
|
|
125097
|
+
content: {
|
|
125098
|
+
"application/json": components["schemas"]["AdminCoupon"];
|
|
125099
|
+
};
|
|
125100
|
+
};
|
|
125101
|
+
401: components["responses"]["Unauthorized"];
|
|
125102
|
+
403: components["responses"]["Forbidden"];
|
|
125103
|
+
422: components["responses"]["UnprocessableEntity"];
|
|
125104
|
+
};
|
|
125105
|
+
};
|
|
125106
|
+
deactivateAdminCoupon: {
|
|
125107
|
+
parameters: {
|
|
125108
|
+
query?: never;
|
|
125109
|
+
header?: never;
|
|
125110
|
+
path: {
|
|
125111
|
+
couponId: components["schemas"]["Uuid"];
|
|
125112
|
+
};
|
|
125113
|
+
cookie?: never;
|
|
125114
|
+
};
|
|
125115
|
+
requestBody?: never;
|
|
125116
|
+
responses: {
|
|
125117
|
+
/** @description The coupon, now inactive. */
|
|
125118
|
+
200: {
|
|
125119
|
+
headers: {
|
|
125120
|
+
[name: string]: unknown;
|
|
125121
|
+
};
|
|
125122
|
+
content: {
|
|
125123
|
+
"application/json": components["schemas"]["AdminCoupon"];
|
|
125124
|
+
};
|
|
125125
|
+
};
|
|
125126
|
+
401: components["responses"]["Unauthorized"];
|
|
125127
|
+
403: components["responses"]["Forbidden"];
|
|
125128
|
+
404: components["responses"]["NotFound"];
|
|
125129
|
+
};
|
|
125130
|
+
};
|
|
124815
125131
|
listCryptoAutoRenew: {
|
|
124816
125132
|
parameters: {
|
|
124817
125133
|
query?: {
|
|
@@ -165251,6 +165567,65 @@ export interface operations {
|
|
|
165251
165567
|
404: components["responses"]["NotFound"];
|
|
165252
165568
|
};
|
|
165253
165569
|
};
|
|
165570
|
+
setCartPromoCode: {
|
|
165571
|
+
parameters: {
|
|
165572
|
+
query?: never;
|
|
165573
|
+
header?: never;
|
|
165574
|
+
path: {
|
|
165575
|
+
/** @description The cart's id. */
|
|
165576
|
+
cartId: components["parameters"]["CartId"];
|
|
165577
|
+
};
|
|
165578
|
+
cookie?: never;
|
|
165579
|
+
};
|
|
165580
|
+
requestBody: {
|
|
165581
|
+
content: {
|
|
165582
|
+
"application/json": components["schemas"]["PromoCodeSet"];
|
|
165583
|
+
};
|
|
165584
|
+
};
|
|
165585
|
+
responses: {
|
|
165586
|
+
/** @description The re-priced cart, with `promo_code` and `coupon`. */
|
|
165587
|
+
200: {
|
|
165588
|
+
headers: {
|
|
165589
|
+
[name: string]: unknown;
|
|
165590
|
+
};
|
|
165591
|
+
content: {
|
|
165592
|
+
"application/json": components["schemas"]["Cart"];
|
|
165593
|
+
};
|
|
165594
|
+
};
|
|
165595
|
+
401: components["responses"]["Unauthorized"];
|
|
165596
|
+
403: components["responses"]["Forbidden"];
|
|
165597
|
+
404: components["responses"]["NotFound"];
|
|
165598
|
+
422: components["responses"]["UnprocessableEntity"];
|
|
165599
|
+
429: components["responses"]["TooManyRequests"];
|
|
165600
|
+
};
|
|
165601
|
+
};
|
|
165602
|
+
clearCartPromoCode: {
|
|
165603
|
+
parameters: {
|
|
165604
|
+
query?: never;
|
|
165605
|
+
header?: never;
|
|
165606
|
+
path: {
|
|
165607
|
+
/** @description The cart's id. */
|
|
165608
|
+
cartId: components["parameters"]["CartId"];
|
|
165609
|
+
};
|
|
165610
|
+
cookie?: never;
|
|
165611
|
+
};
|
|
165612
|
+
requestBody?: never;
|
|
165613
|
+
responses: {
|
|
165614
|
+
/** @description The re-priced cart, with no code. */
|
|
165615
|
+
200: {
|
|
165616
|
+
headers: {
|
|
165617
|
+
[name: string]: unknown;
|
|
165618
|
+
};
|
|
165619
|
+
content: {
|
|
165620
|
+
"application/json": components["schemas"]["Cart"];
|
|
165621
|
+
};
|
|
165622
|
+
};
|
|
165623
|
+
401: components["responses"]["Unauthorized"];
|
|
165624
|
+
403: components["responses"]["Forbidden"];
|
|
165625
|
+
404: components["responses"]["NotFound"];
|
|
165626
|
+
429: components["responses"]["TooManyRequests"];
|
|
165627
|
+
};
|
|
165628
|
+
};
|
|
165254
165629
|
adoptGuestCart: {
|
|
165255
165630
|
parameters: {
|
|
165256
165631
|
query?: never;
|
|
@@ -190982,6 +191357,34 @@ export interface operations {
|
|
|
190982
191357
|
503: components["responses"]["ServiceUnavailable"];
|
|
190983
191358
|
};
|
|
190984
191359
|
};
|
|
191360
|
+
quotePromoCode: {
|
|
191361
|
+
parameters: {
|
|
191362
|
+
query?: never;
|
|
191363
|
+
header?: never;
|
|
191364
|
+
path?: never;
|
|
191365
|
+
cookie?: never;
|
|
191366
|
+
};
|
|
191367
|
+
requestBody: {
|
|
191368
|
+
content: {
|
|
191369
|
+
"application/json": components["schemas"]["CouponQuoteRequest"];
|
|
191370
|
+
};
|
|
191371
|
+
};
|
|
191372
|
+
responses: {
|
|
191373
|
+
/** @description The preview. */
|
|
191374
|
+
200: {
|
|
191375
|
+
headers: {
|
|
191376
|
+
[name: string]: unknown;
|
|
191377
|
+
};
|
|
191378
|
+
content: {
|
|
191379
|
+
"application/json": components["schemas"]["CouponQuote"];
|
|
191380
|
+
};
|
|
191381
|
+
};
|
|
191382
|
+
401: components["responses"]["Unauthorized"];
|
|
191383
|
+
403: components["responses"]["Forbidden"];
|
|
191384
|
+
422: components["responses"]["UnprocessableEntity"];
|
|
191385
|
+
429: components["responses"]["TooManyRequests"];
|
|
191386
|
+
};
|
|
191387
|
+
};
|
|
190985
191388
|
listProposals: {
|
|
190986
191389
|
parameters: {
|
|
190987
191390
|
query?: {
|
|
@@ -194007,6 +194410,32 @@ export interface operations {
|
|
|
194007
194410
|
429: components["responses"]["TooManyRequests"];
|
|
194008
194411
|
};
|
|
194009
194412
|
};
|
|
194413
|
+
publicQuotePromoCode: {
|
|
194414
|
+
parameters: {
|
|
194415
|
+
query?: never;
|
|
194416
|
+
header?: never;
|
|
194417
|
+
path?: never;
|
|
194418
|
+
cookie?: never;
|
|
194419
|
+
};
|
|
194420
|
+
requestBody: {
|
|
194421
|
+
content: {
|
|
194422
|
+
"application/json": components["schemas"]["CouponQuoteRequest"];
|
|
194423
|
+
};
|
|
194424
|
+
};
|
|
194425
|
+
responses: {
|
|
194426
|
+
/** @description The preview. */
|
|
194427
|
+
200: {
|
|
194428
|
+
headers: {
|
|
194429
|
+
[name: string]: unknown;
|
|
194430
|
+
};
|
|
194431
|
+
content: {
|
|
194432
|
+
"application/json": components["schemas"]["CouponQuote"];
|
|
194433
|
+
};
|
|
194434
|
+
};
|
|
194435
|
+
422: components["responses"]["UnprocessableEntity"];
|
|
194436
|
+
429: components["responses"]["TooManyRequests"];
|
|
194437
|
+
};
|
|
194438
|
+
};
|
|
194010
194439
|
getPublicProposalLabels: {
|
|
194011
194440
|
parameters: {
|
|
194012
194441
|
query?: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zinn-digital/sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1703",
|
|
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>",
|