@poweredbysous/storefront-all-sdk 6.0.0 → 6.1.0

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/index.d.cts CHANGED
@@ -1996,6 +1996,36 @@ interface paths {
1996
1996
  patch?: never;
1997
1997
  trace?: never;
1998
1998
  };
1999
+ "/api/v1/brand/{slug}/delivering/": {
2000
+ parameters: {
2001
+ query?: never;
2002
+ header?: never;
2003
+ path?: never;
2004
+ cookie?: never;
2005
+ };
2006
+ get?: never;
2007
+ put?: never;
2008
+ /**
2009
+ * @description Which of a brand's locations deliver to an address (PAT-2195).
2010
+ *
2011
+ * Backs the brand page's Delivery tab. POST because the body carries an
2012
+ * address, which never goes in a URL, a query string or a log line.
2013
+ * Unauthenticated like the locations read: no location is chosen yet.
2014
+ *
2015
+ * Only a location with an active carrier whose delivery area takes the
2016
+ * address is returned: one that offers delivery in its settings but has no
2017
+ * carrier, and so no area to check, never is (see
2018
+ * ``get_brand_locations_delivering_to``). ``resolved`` is false when some location's
2019
+ * area needs a point and none could be found, so the page says "could not
2020
+ * place this address" rather than "nobody delivers here".
2021
+ */
2022
+ post: operations["brand_delivering_create"];
2023
+ delete?: never;
2024
+ options?: never;
2025
+ head?: never;
2026
+ patch?: never;
2027
+ trace?: never;
2028
+ };
1999
2029
  "/api/v1/brand/{slug}/locations/": {
2000
2030
  parameters: {
2001
2031
  query?: never;
@@ -2178,6 +2208,35 @@ interface paths {
2178
2208
  patch?: never;
2179
2209
  trace?: never;
2180
2210
  };
2211
+ "/api/v1/cart/{cart_id}/handoff-token/": {
2212
+ parameters: {
2213
+ query?: never;
2214
+ header?: never;
2215
+ path?: never;
2216
+ cookie?: never;
2217
+ };
2218
+ get?: never;
2219
+ put?: never;
2220
+ /**
2221
+ * @description Mint a signed handoff token for a cart, locking it (PAY-1).
2222
+ *
2223
+ * The WhatsApp ordering agent calls this at its checkout step. Minting is
2224
+ * what locks the cart: there is no cart "source" field and both the agent
2225
+ * and the first-party web frontend sign with the store key, so this request
2226
+ * — which only the agent makes — is the one moment we can mark a cart as
2227
+ * agent-built. From then on the cart's read requires the token
2228
+ * (``CartDetailView``). First-party carts never call this and stay unlocked.
2229
+ *
2230
+ * Idempotent by design: minting again re-locks the cart and returns a fresh,
2231
+ * short-lived token.
2232
+ */
2233
+ post: operations["cart_handoff_token_create"];
2234
+ delete?: never;
2235
+ options?: never;
2236
+ head?: never;
2237
+ patch?: never;
2238
+ trace?: never;
2239
+ };
2181
2240
  "/api/v1/cart/{cart_id}/items/": {
2182
2241
  parameters: {
2183
2242
  query?: never;
@@ -4552,6 +4611,31 @@ interface paths {
4552
4611
  patch?: never;
4553
4612
  trace?: never;
4554
4613
  };
4614
+ "/api/v1/merchant-portal/stores/{public_id}/reports/daily-orders/": {
4615
+ parameters: {
4616
+ query?: never;
4617
+ header?: never;
4618
+ path?: never;
4619
+ cookie?: never;
4620
+ };
4621
+ /**
4622
+ * Daily orders overview of a store
4623
+ * @description The Daily orders overview of one store.
4624
+ *
4625
+ * Signed by the portal's server for the merchant user it has checked, and
4626
+ * bound to the store in the URL (403 for any other). The signature covers the
4627
+ * path, not the query string, which is acceptable here: the response holds
4628
+ * only the signed store's figures.
4629
+ */
4630
+ get: operations["merchant_portal_stores_reports_daily_orders_retrieve"];
4631
+ put?: never;
4632
+ post?: never;
4633
+ delete?: never;
4634
+ options?: never;
4635
+ head?: never;
4636
+ patch?: never;
4637
+ trace?: never;
4638
+ };
4555
4639
  "/api/v1/merchant/me/": {
4556
4640
  parameters: {
4557
4641
  query?: never;
@@ -6977,6 +7061,23 @@ interface paths {
6977
7061
  patch?: never;
6978
7062
  trace?: never;
6979
7063
  };
7064
+ "/api/v1/sync/merchant-portal/orders/{order_id}/invoice-lock/": {
7065
+ parameters: {
7066
+ query?: never;
7067
+ header?: never;
7068
+ path?: never;
7069
+ cookie?: never;
7070
+ };
7071
+ /** @description Whether an order is invoiced, so the portal can hide edit and refund. */
7072
+ get: operations["sync_merchant_portal_orders_invoice_lock_retrieve"];
7073
+ put?: never;
7074
+ post?: never;
7075
+ delete?: never;
7076
+ options?: never;
7077
+ head?: never;
7078
+ patch?: never;
7079
+ trace?: never;
7080
+ };
6980
7081
  "/api/v1/sync/merchant-portal/printing/jobs/": {
6981
7082
  parameters: {
6982
7083
  query?: never;
@@ -8063,6 +8164,35 @@ interface components {
8063
8164
  /** @default */
8064
8165
  alt_text: string;
8065
8166
  };
8167
+ /**
8168
+ * @description The brand's locations that deliver to an address, in the brand's order.
8169
+ *
8170
+ * ``resolved`` is false when some location's area needed the exact point and
8171
+ * none was sent, so "nobody delivers here" and "we could not place the
8172
+ * address" never look the same. ``partial`` means some locations were not
8173
+ * evaluated; the ones returned still deliver.
8174
+ */
8175
+ BrandDeliverability: {
8176
+ store_public_ids: string[];
8177
+ resolved: boolean;
8178
+ partial: boolean;
8179
+ };
8180
+ /**
8181
+ * @description The address to answer for: a postcode and country, with the exact point.
8182
+ *
8183
+ * The brand page always has a postcode (it looks the address up first), so
8184
+ * unlike the marketplace read a position alone is not accepted.
8185
+ */
8186
+ BrandDeliverabilityRequest: {
8187
+ postal_code: string;
8188
+ country: string;
8189
+ address_line_1?: string;
8190
+ city?: string;
8191
+ /** Format: double */
8192
+ latitude?: number;
8193
+ /** Format: double */
8194
+ longitude?: number;
8195
+ };
8066
8196
  /**
8067
8197
  * @description One sellable location in a brand/company's storefront discovery list.
8068
8198
  *
@@ -8314,6 +8444,10 @@ interface components {
8314
8444
  /** @description The error code saying why, e.g. DISCOUNT_CUSTOMER_LIMIT, DISCOUNT_EXPIRED, DISCOUNT_MIN_ORDER. */
8315
8445
  reason: string;
8316
8446
  };
8447
+ CartHandoffTokenResponse: {
8448
+ token: string;
8449
+ expires_in: number;
8450
+ };
8317
8451
  /** @description Validates a single cart item for eligibility checks. */
8318
8452
  CartItem: {
8319
8453
  product_id: number;
@@ -8641,6 +8775,8 @@ interface components {
8641
8775
  [key: string]: string;
8642
8776
  } | null;
8643
8777
  payment_method: string | null;
8778
+ payment_method_type: string | null;
8779
+ payment_method_name: string | null;
8644
8780
  payment_status: string | null;
8645
8781
  line_items: {
8646
8782
  [key: string]: unknown;
@@ -8699,6 +8835,7 @@ interface components {
8699
8835
  delivery_fee_customer: string;
8700
8836
  delivery_fee_merchant: string;
8701
8837
  service_fees_total: string;
8838
+ delivery_fee_customer_pct: string | null;
8702
8839
  display_service_fees_total: string;
8703
8840
  display_subtotal: string;
8704
8841
  display_tax_total: string;
@@ -9064,6 +9201,79 @@ interface components {
9064
9201
  * @enum {string}
9065
9202
  */
9066
9203
  CutoffModeEnum: "before_close" | "by_day";
9204
+ DailyOrdersDay: {
9205
+ /** @description Paid orders counted. */
9206
+ orders: number;
9207
+ /**
9208
+ * Format: decimal
9209
+ * @description Discount codes plus promotions.
9210
+ */
9211
+ discounts: string;
9212
+ /**
9213
+ * Format: decimal
9214
+ * @description What the customers paid.
9215
+ */
9216
+ gross_revenue: string;
9217
+ /**
9218
+ * Format: decimal
9219
+ * @description The full delivery fee, whoever paid it; for information, not taken off net revenue.
9220
+ */
9221
+ logistics: string;
9222
+ /**
9223
+ * Format: decimal
9224
+ * @description Refunds that completed in the period.
9225
+ */
9226
+ refunds: string;
9227
+ /**
9228
+ * Format: decimal
9229
+ * @description Gross revenue minus refunds; may be negative.
9230
+ */
9231
+ net_revenue: string;
9232
+ /**
9233
+ * Format: date
9234
+ * @description The store's local day, ISO 8601.
9235
+ */
9236
+ date: string;
9237
+ /** @description Today in the store's timezone: the day is not over yet. */
9238
+ partial: boolean;
9239
+ };
9240
+ DailyOrdersReport: {
9241
+ /** @description ISO 4217 code of the store. */
9242
+ currency: string;
9243
+ /** @description IANA name the days are in. */
9244
+ timezone: string;
9245
+ days: components["schemas"]["DailyOrdersDay"][];
9246
+ totals: components["schemas"]["DailyOrdersTotals"];
9247
+ };
9248
+ DailyOrdersTotals: {
9249
+ /** @description Paid orders counted. */
9250
+ orders: number;
9251
+ /**
9252
+ * Format: decimal
9253
+ * @description Discount codes plus promotions.
9254
+ */
9255
+ discounts: string;
9256
+ /**
9257
+ * Format: decimal
9258
+ * @description What the customers paid.
9259
+ */
9260
+ gross_revenue: string;
9261
+ /**
9262
+ * Format: decimal
9263
+ * @description The full delivery fee, whoever paid it; for information, not taken off net revenue.
9264
+ */
9265
+ logistics: string;
9266
+ /**
9267
+ * Format: decimal
9268
+ * @description Refunds that completed in the period.
9269
+ */
9270
+ refunds: string;
9271
+ /**
9272
+ * Format: decimal
9273
+ * @description Gross revenue minus refunds; may be negative.
9274
+ */
9275
+ net_revenue: string;
9276
+ };
9067
9277
  DatedMiles: {
9068
9278
  miles: number;
9069
9279
  /** Format: date-time */
@@ -9077,7 +9287,12 @@ interface components {
9077
9287
  partial: boolean;
9078
9288
  };
9079
9289
  /**
9080
- * @description The address, or the position, to answer for.
9290
+ * @description The address, or the position, to answer "who delivers here" for.
9291
+ *
9292
+ * Shared by the exploreSOUS deliverability read and the brand page's. The
9293
+ * brand read subclasses it to require ``postal_code`` and ``country``: the
9294
+ * brand page always looks the address up first, so it never sends a
9295
+ * position alone.
9081
9296
  *
9082
9297
  * An address is ``postal_code`` and ``country``, with street and city
9083
9298
  * optional: most Dutch delivery areas resolve on postcode alone, and
@@ -9086,7 +9301,9 @@ interface components {
9086
9301
  *
9087
9302
  * A position (``latitude`` and ``longitude``, together) stands in for the
9088
9303
  * postcode when there is none. It is reverse-geocoded to a postcode and
9089
- * country, which replace any ``country`` sent. A postcode, when sent, wins.
9304
+ * country, which replace any ``country`` sent. A postcode, when sent, is
9305
+ * the one matched, and a point sent with it is used, not geocoded, for the
9306
+ * rules that need one: both reads answer the same body the same way.
9090
9307
  */
9091
9308
  DeliverabilityRequest: {
9092
9309
  postal_code?: string;
@@ -9112,6 +9329,13 @@ interface components {
9112
9329
  /** @description A GeoJSON Polygon with a single closed ring, [longitude, latitude], WGS84. A point on the boundary counts as inside. */
9113
9330
  polygon: unknown;
9114
9331
  };
9332
+ /** @description One date the store charges a fixed delivery price on. */
9333
+ DeliveryDatePrice: {
9334
+ /** Format: date */
9335
+ date: string;
9336
+ /** Format: decimal */
9337
+ price: string;
9338
+ };
9115
9339
  /**
9116
9340
  * @description One pocket a merchant cut out of their coverage.
9117
9341
  *
@@ -9710,6 +9934,11 @@ interface components {
9710
9934
  /** Format: date-time */
9711
9935
  readonly updated_at: string;
9712
9936
  };
9937
+ /** @description Whether an order is invoiced, and so locked against changes. */
9938
+ InvoiceLockResponse: {
9939
+ invoiced: boolean;
9940
+ invoice_number: string | null;
9941
+ };
9713
9942
  /**
9714
9943
  * @description * `draft` - Draft
9715
9944
  * * `issued` - Issued
@@ -10807,6 +11036,14 @@ interface components {
10807
11036
  /** Format: decimal */
10808
11037
  delta_amount: string;
10809
11038
  };
11039
+ /** @description The flat 409 body for a change refused because the order is invoiced. */
11040
+ OrderInvoicedConflict: {
11041
+ /** @description Always "order_invoiced". */
11042
+ code: string;
11043
+ invoice_number: string;
11044
+ };
11045
+ OrderInvoicedOrError: components["schemas"]["APIErrorEnvelope"] | components["schemas"]["OrderInvoicedConflict"];
11046
+ OrderInvoicedOrRefundConflict: components["schemas"]["RefundConflictDetail"] | components["schemas"]["OrderInvoicedConflict"];
10810
11047
  /** @description The 200 body of the order-line export. */
10811
11048
  OrderLineExportResponse: {
10812
11049
  rows: {
@@ -12106,8 +12343,10 @@ interface components {
12106
12343
  /** Format: decimal */
12107
12344
  readonly customer_service_fee: string | null;
12108
12345
  readonly peak_delivery_dates: string[];
12346
+ readonly delivery_date_prices: components["schemas"]["DeliveryDatePrice"][];
12109
12347
  readonly servable_dates: string[];
12110
12348
  readonly order_cutoff: components["schemas"]["OrderCutoff"] | null;
12349
+ readonly variant_group: components["schemas"]["VariantGroup"] | null;
12111
12350
  /** Format: date-time */
12112
12351
  readonly created_at: string;
12113
12352
  /** Format: date-time */
@@ -12572,6 +12811,10 @@ interface components {
12572
12811
  refund_request_id: string;
12573
12812
  store_id: number;
12574
12813
  };
12814
+ /** @description The ``{detail}`` 409 the refund sync views answer (not pending, no balance). */
12815
+ RefundConflictDetail: {
12816
+ detail: string;
12817
+ };
12575
12818
  /**
12576
12819
  * @description Validates the body of a merchant-portal ad-hoc refund push.
12577
12820
  *
@@ -13460,6 +13703,18 @@ interface components {
13460
13703
  value_json?: unknown;
13461
13704
  readonly selected_choices: components["schemas"]["AttributeChoice"][];
13462
13705
  };
13706
+ VariantGroup: {
13707
+ members: components["schemas"]["VariantGroupMember"][];
13708
+ };
13709
+ VariantGroupMember: {
13710
+ product_id: number;
13711
+ title: string;
13712
+ label: string;
13713
+ is_current: boolean;
13714
+ image_url: string | null;
13715
+ /** Format: decimal */
13716
+ price: string;
13717
+ };
13463
13718
  VariantPriceOverride: {
13464
13719
  readonly id: number;
13465
13720
  /** Format: int64 */
@@ -22636,6 +22891,67 @@ interface operations {
22636
22891
  };
22637
22892
  };
22638
22893
  };
22894
+ brand_delivering_create: {
22895
+ parameters: {
22896
+ query?: never;
22897
+ header?: never;
22898
+ path: {
22899
+ slug: string;
22900
+ };
22901
+ cookie?: never;
22902
+ };
22903
+ requestBody: {
22904
+ content: {
22905
+ "application/json": components["schemas"]["BrandDeliverabilityRequest"];
22906
+ };
22907
+ };
22908
+ responses: {
22909
+ 200: {
22910
+ headers: {
22911
+ [name: string]: unknown;
22912
+ };
22913
+ content: {
22914
+ "application/json": components["schemas"]["BrandDeliverability"];
22915
+ };
22916
+ };
22917
+ /** @description Possible error codes include `VALIDATION_ERROR`. Use `x-error-codes` for machine-readable retryability metadata. */
22918
+ 400: {
22919
+ headers: {
22920
+ [name: string]: unknown;
22921
+ };
22922
+ content: {
22923
+ "application/json": components["schemas"]["APIErrorEnvelope"];
22924
+ };
22925
+ };
22926
+ /** @description Possible error codes include `NOT_FOUND`. Use `x-error-codes` for machine-readable retryability metadata. */
22927
+ 404: {
22928
+ headers: {
22929
+ [name: string]: unknown;
22930
+ };
22931
+ content: {
22932
+ "application/json": components["schemas"]["APIErrorEnvelope"];
22933
+ };
22934
+ };
22935
+ /** @description Possible error codes include `RATE_LIMITED`. Use `x-error-codes` for machine-readable retryability metadata. */
22936
+ 429: {
22937
+ headers: {
22938
+ [name: string]: unknown;
22939
+ };
22940
+ content: {
22941
+ "application/json": components["schemas"]["APIErrorEnvelope"];
22942
+ };
22943
+ };
22944
+ /** @description Possible error codes include `INTERNAL_ERROR`. Use `x-error-codes` for machine-readable retryability metadata. */
22945
+ 500: {
22946
+ headers: {
22947
+ [name: string]: unknown;
22948
+ };
22949
+ content: {
22950
+ "application/json": components["schemas"]["APIErrorEnvelope"];
22951
+ };
22952
+ };
22953
+ };
22954
+ };
22639
22955
  brand_locations_list: {
22640
22956
  parameters: {
22641
22957
  query?: never;
@@ -22961,7 +23277,10 @@ interface operations {
22961
23277
  /** @description Language override for translated content. The primary mechanism is the `Accept-Language` header; this query parameter is an override for widget embedding where merchants cannot control browser headers. Defaults to `en`. */
22962
23278
  lang?: string;
22963
23279
  };
22964
- header?: never;
23280
+ header?: {
23281
+ /** @description Handoff token for a locked, agent-built cart (PAY-1), preferred transport. A locked cart is readable only with a valid token; first-party carts are unlocked and need none. A missing or invalid token on a locked cart yields the same 404 as an unknown cart. Sent as a header so the token stays out of access logs; the `token` query param is also accepted for compatibility with the recovery link's URL. */
23282
+ "X-Cart-Handoff-Token"?: string;
23283
+ };
22965
23284
  path: {
22966
23285
  cart_id: string;
22967
23286
  };
@@ -23403,6 +23722,90 @@ interface operations {
23403
23722
  };
23404
23723
  };
23405
23724
  };
23725
+ cart_handoff_token_create: {
23726
+ parameters: {
23727
+ query?: never;
23728
+ header?: never;
23729
+ path: {
23730
+ cart_id: string;
23731
+ };
23732
+ cookie?: never;
23733
+ };
23734
+ requestBody?: never;
23735
+ responses: {
23736
+ 200: {
23737
+ headers: {
23738
+ [name: string]: unknown;
23739
+ };
23740
+ content: {
23741
+ "application/json": components["schemas"]["CartHandoffTokenResponse"];
23742
+ };
23743
+ };
23744
+ /** @description Possible error codes include `VALIDATION_ERROR`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `CART_MAX_ITEMS_EXCEEDED`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `LINE_ITEM_INVALID_QUANTITY`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `LINE_ITEM_MAX_QUANTITY_EXCEEDED`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `PRODUCT_SOLD_OUT`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `PRODUCT_UNAVAILABLE`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `OPTION_INVALID_FOR_PRODUCT`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `REQUIRED_OPTIONS_MISSING`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `FULFILLMENT_TYPE_UNAVAILABLE`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `SERVICE_POINT_REQUIRED`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `SERVICE_POINT_INVALID`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `SERVICE_POINT_NOT_ALLOWED`. Use `x-error-codes` for machine-readable retryability metadata. */
23745
+ 400: {
23746
+ headers: {
23747
+ [name: string]: unknown;
23748
+ };
23749
+ content: {
23750
+ "application/json": components["schemas"]["APIErrorEnvelope"];
23751
+ };
23752
+ };
23753
+ /** @description Possible error codes include `UNAUTHORIZED`. Use `x-error-codes` for machine-readable retryability metadata. */
23754
+ 401: {
23755
+ headers: {
23756
+ [name: string]: unknown;
23757
+ };
23758
+ content: {
23759
+ "application/json": components["schemas"]["APIErrorEnvelope"];
23760
+ };
23761
+ };
23762
+ /** @description Possible error codes include `FORBIDDEN`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `CHANNEL_CLAIM_UNVERIFIED`. Use `x-error-codes` for machine-readable retryability metadata. */
23763
+ 403: {
23764
+ headers: {
23765
+ [name: string]: unknown;
23766
+ };
23767
+ content: {
23768
+ "application/json": components["schemas"]["APIErrorEnvelope"];
23769
+ };
23770
+ };
23771
+ /** @description Possible error codes: `CART_NOT_FOUND`. Retryable: no. Possible error codes include `NOT_FOUND`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `CART_NOT_FOUND`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `LINE_ITEM_NOT_FOUND`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `OPTION_NOT_FOUND`. Use `x-error-codes` for machine-readable retryability metadata. */
23772
+ 404: {
23773
+ headers: {
23774
+ [name: string]: unknown;
23775
+ };
23776
+ content: {
23777
+ "application/json": components["schemas"]["APIErrorEnvelope"];
23778
+ };
23779
+ };
23780
+ /** @description Possible error codes: `CART_NOT_MODIFIABLE`. Retryable: no. Possible error codes include `CHANNEL_CHANGE_REFUSED`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `PRODUCT_NO_LONGER_ORDERABLE`. Use `x-error-codes` for machine-readable retryability metadata. */
23781
+ 409: {
23782
+ headers: {
23783
+ [name: string]: unknown;
23784
+ };
23785
+ content: {
23786
+ "application/json": components["schemas"]["APIErrorEnvelope"];
23787
+ };
23788
+ };
23789
+ /** @description Possible error codes include `RATE_LIMITED`. Use `x-error-codes` for machine-readable retryability metadata. */
23790
+ 429: {
23791
+ headers: {
23792
+ [name: string]: unknown;
23793
+ };
23794
+ content: {
23795
+ "application/json": components["schemas"]["APIErrorEnvelope"];
23796
+ };
23797
+ };
23798
+ /** @description Possible error codes include `INTERNAL_ERROR`. Use `x-error-codes` for machine-readable retryability metadata. */
23799
+ 500: {
23800
+ headers: {
23801
+ [name: string]: unknown;
23802
+ };
23803
+ content: {
23804
+ "application/json": components["schemas"]["APIErrorEnvelope"];
23805
+ };
23806
+ };
23807
+ };
23808
+ };
23406
23809
  cart_items_create: {
23407
23810
  parameters: {
23408
23811
  query?: never;
@@ -25304,8 +25707,14 @@ interface operations {
25304
25707
  };
25305
25708
  checkout_create: {
25306
25709
  parameters: {
25307
- query?: never;
25308
- header?: never;
25710
+ query?: {
25711
+ /** @description Deprecated transport for the handoff token — prefer the `X-Cart-Handoff-Token` header, which keeps it out of logs. Accepted for compatibility with the recovery link's URL. */
25712
+ token?: string;
25713
+ };
25714
+ header?: {
25715
+ /** @description Handoff token for a locked, agent-built cart (PAY-1), preferred transport. A locked cart can only be checked out with a valid token; first-party carts are unlocked and need none. A missing or invalid token on a locked cart yields the same 404 as an unknown cart. Sent as a header so the token stays out of access logs; the `token` query param is also accepted for compatibility. */
25716
+ "X-Cart-Handoff-Token"?: string;
25717
+ };
25309
25718
  path?: never;
25310
25719
  cookie?: never;
25311
25720
  };
@@ -30257,8 +30666,6 @@ interface operations {
30257
30666
  requestBody: {
30258
30667
  content: {
30259
30668
  "application/json": components["schemas"]["DeliverabilityRequest"];
30260
- "application/x-www-form-urlencoded": components["schemas"]["DeliverabilityRequest"];
30261
- "multipart/form-data": components["schemas"]["DeliverabilityRequest"];
30262
30669
  };
30263
30670
  };
30264
30671
  responses: {
@@ -35150,6 +35557,88 @@ interface operations {
35150
35557
  };
35151
35558
  };
35152
35559
  };
35560
+ merchant_portal_stores_reports_daily_orders_retrieve: {
35561
+ parameters: {
35562
+ query: {
35563
+ /** @description Comma-separated sales channels to include (storefront, exploresous, uber-eats, thuisbezorgd, lieferando, wolt); all when omitted. */
35564
+ channels?: string;
35565
+ /** @description First day, YYYY-MM-DD, in the store's timezone. */
35566
+ from: string;
35567
+ /** @description Last day, YYYY-MM-DD, inclusive; the range is at most 366 days. */
35568
+ to: string;
35569
+ };
35570
+ header?: never;
35571
+ path: {
35572
+ public_id: string;
35573
+ };
35574
+ cookie?: never;
35575
+ };
35576
+ requestBody?: never;
35577
+ responses: {
35578
+ 200: {
35579
+ headers: {
35580
+ [name: string]: unknown;
35581
+ };
35582
+ content: {
35583
+ "application/json": components["schemas"]["DailyOrdersReport"];
35584
+ };
35585
+ };
35586
+ /** @description Possible error codes include `VALIDATION_ERROR`. Use `x-error-codes` for machine-readable retryability metadata. */
35587
+ 400: {
35588
+ headers: {
35589
+ [name: string]: unknown;
35590
+ };
35591
+ content: {
35592
+ "application/json": components["schemas"]["APIErrorEnvelope"];
35593
+ };
35594
+ };
35595
+ /** @description Possible error codes include `UNAUTHORIZED`. Use `x-error-codes` for machine-readable retryability metadata. */
35596
+ 401: {
35597
+ headers: {
35598
+ [name: string]: unknown;
35599
+ };
35600
+ content: {
35601
+ "application/json": components["schemas"]["APIErrorEnvelope"];
35602
+ };
35603
+ };
35604
+ /** @description Possible error codes include `FORBIDDEN`. Use `x-error-codes` for machine-readable retryability metadata. */
35605
+ 403: {
35606
+ headers: {
35607
+ [name: string]: unknown;
35608
+ };
35609
+ content: {
35610
+ "application/json": components["schemas"]["APIErrorEnvelope"];
35611
+ };
35612
+ };
35613
+ /** @description Possible error codes include `NOT_FOUND`. Use `x-error-codes` for machine-readable retryability metadata. */
35614
+ 404: {
35615
+ headers: {
35616
+ [name: string]: unknown;
35617
+ };
35618
+ content: {
35619
+ "application/json": components["schemas"]["APIErrorEnvelope"];
35620
+ };
35621
+ };
35622
+ /** @description Possible error codes include `RATE_LIMITED`. Use `x-error-codes` for machine-readable retryability metadata. */
35623
+ 429: {
35624
+ headers: {
35625
+ [name: string]: unknown;
35626
+ };
35627
+ content: {
35628
+ "application/json": components["schemas"]["APIErrorEnvelope"];
35629
+ };
35630
+ };
35631
+ /** @description Possible error codes include `INTERNAL_ERROR`. Use `x-error-codes` for machine-readable retryability metadata. */
35632
+ 500: {
35633
+ headers: {
35634
+ [name: string]: unknown;
35635
+ };
35636
+ content: {
35637
+ "application/json": components["schemas"]["APIErrorEnvelope"];
35638
+ };
35639
+ };
35640
+ };
35641
+ };
35153
35642
  merchant_me_retrieve: {
35154
35643
  parameters: {
35155
35644
  query?: {
@@ -35758,13 +36247,13 @@ interface operations {
35758
36247
  "application/json": components["schemas"]["APIErrorEnvelope"];
35759
36248
  };
35760
36249
  };
35761
- /** @description Possible error codes include `ORDER_ALREADY_EXISTS`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `DUPLICATE_REFUND_REQUEST`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `INVALID_REFUND_STATUS`. Use `x-error-codes` for machine-readable retryability metadata. */
36250
+ /** @description Conflict. `order_invoiced` when the order has an invoice. Possible error codes include `ORDER_ALREADY_EXISTS`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `DUPLICATE_REFUND_REQUEST`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `INVALID_REFUND_STATUS`. Use `x-error-codes` for machine-readable retryability metadata. */
35762
36251
  409: {
35763
36252
  headers: {
35764
36253
  [name: string]: unknown;
35765
36254
  };
35766
36255
  content: {
35767
- "application/json": components["schemas"]["APIErrorEnvelope"];
36256
+ "application/json": components["schemas"]["OrderInvoicedOrError"];
35768
36257
  };
35769
36258
  };
35770
36259
  /** @description Possible error codes include `REFUND_EXCEEDS_BALANCE`. Use `x-error-codes` for machine-readable retryability metadata. */
@@ -36185,13 +36674,13 @@ interface operations {
36185
36674
  "application/json": components["schemas"]["APIErrorEnvelope"];
36186
36675
  };
36187
36676
  };
36188
- /** @description Possible error codes include `ORDER_ALREADY_EXISTS`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `DUPLICATE_REFUND_REQUEST`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `INVALID_REFUND_STATUS`. Use `x-error-codes` for machine-readable retryability metadata. */
36677
+ /** @description Conflict. `order_invoiced` when the order has an invoice. Possible error codes include `ORDER_ALREADY_EXISTS`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `DUPLICATE_REFUND_REQUEST`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `INVALID_REFUND_STATUS`. Use `x-error-codes` for machine-readable retryability metadata. */
36189
36678
  409: {
36190
36679
  headers: {
36191
36680
  [name: string]: unknown;
36192
36681
  };
36193
36682
  content: {
36194
- "application/json": components["schemas"]["APIErrorEnvelope"];
36683
+ "application/json": components["schemas"]["OrderInvoicedOrError"];
36195
36684
  };
36196
36685
  };
36197
36686
  /** @description Possible error codes include `REFUND_EXCEEDS_BALANCE`. Use `x-error-codes` for machine-readable retryability metadata. */
@@ -36397,13 +36886,13 @@ interface operations {
36397
36886
  "application/json": components["schemas"]["APIErrorEnvelope"];
36398
36887
  };
36399
36888
  };
36400
- /** @description Possible error codes include `ORDER_ALREADY_EXISTS`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `DUPLICATE_REFUND_REQUEST`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `INVALID_REFUND_STATUS`. Use `x-error-codes` for machine-readable retryability metadata. */
36889
+ /** @description Conflict. `order_invoiced` when the order has an invoice. Possible error codes include `ORDER_ALREADY_EXISTS`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `DUPLICATE_REFUND_REQUEST`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `INVALID_REFUND_STATUS`. Use `x-error-codes` for machine-readable retryability metadata. */
36401
36890
  409: {
36402
36891
  headers: {
36403
36892
  [name: string]: unknown;
36404
36893
  };
36405
36894
  content: {
36406
- "application/json": components["schemas"]["APIErrorEnvelope"];
36895
+ "application/json": components["schemas"]["OrderInvoicedOrError"];
36407
36896
  };
36408
36897
  };
36409
36898
  /** @description Possible error codes include `REFUND_EXCEEDS_BALANCE`. Use `x-error-codes` for machine-readable retryability metadata. */
@@ -37367,13 +37856,13 @@ interface operations {
37367
37856
  "application/json": components["schemas"]["APIErrorEnvelope"];
37368
37857
  };
37369
37858
  };
37370
- /** @description Possible error codes include `ORDER_ALREADY_EXISTS`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `DUPLICATE_REFUND_REQUEST`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `INVALID_REFUND_STATUS`. Use `x-error-codes` for machine-readable retryability metadata. */
37859
+ /** @description Conflict. `order_invoiced` when the order has an invoice. Possible error codes include `ORDER_ALREADY_EXISTS`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `DUPLICATE_REFUND_REQUEST`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `INVALID_REFUND_STATUS`. Use `x-error-codes` for machine-readable retryability metadata. */
37371
37860
  409: {
37372
37861
  headers: {
37373
37862
  [name: string]: unknown;
37374
37863
  };
37375
37864
  content: {
37376
- "application/json": components["schemas"]["APIErrorEnvelope"];
37865
+ "application/json": components["schemas"]["OrderInvoicedOrError"];
37377
37866
  };
37378
37867
  };
37379
37868
  /** @description Possible error codes include `REFUND_EXCEEDS_BALANCE`. Use `x-error-codes` for machine-readable retryability metadata. */
@@ -45109,6 +45598,15 @@ interface operations {
45109
45598
  };
45110
45599
  };
45111
45600
  };
45601
+ /** @description Conflict. `order_invoiced` when the order has an invoice. */
45602
+ 409: {
45603
+ headers: {
45604
+ [name: string]: unknown;
45605
+ };
45606
+ content: {
45607
+ "application/json": components["schemas"]["OrderInvoicedOrError"];
45608
+ };
45609
+ };
45112
45610
  /** @description Possible error codes include `RATE_LIMITED`. Use `x-error-codes` for machine-readable retryability metadata. */
45113
45611
  429: {
45114
45612
  headers: {
@@ -45276,6 +45774,90 @@ interface operations {
45276
45774
  "application/json": components["schemas"]["APIErrorEnvelope"];
45277
45775
  };
45278
45776
  };
45777
+ /** @description Conflict. `order_invoiced` when the order has an invoice. */
45778
+ 409: {
45779
+ headers: {
45780
+ [name: string]: unknown;
45781
+ };
45782
+ content: {
45783
+ "application/json": components["schemas"]["OrderInvoicedOrError"];
45784
+ };
45785
+ };
45786
+ /** @description Possible error codes include `RATE_LIMITED`. Use `x-error-codes` for machine-readable retryability metadata. */
45787
+ 429: {
45788
+ headers: {
45789
+ [name: string]: unknown;
45790
+ };
45791
+ content: {
45792
+ "application/json": components["schemas"]["APIErrorEnvelope"];
45793
+ };
45794
+ };
45795
+ /** @description Possible error codes include `INTERNAL_ERROR`. Use `x-error-codes` for machine-readable retryability metadata. */
45796
+ 500: {
45797
+ headers: {
45798
+ [name: string]: unknown;
45799
+ };
45800
+ content: {
45801
+ "application/json": components["schemas"]["APIErrorEnvelope"];
45802
+ };
45803
+ };
45804
+ };
45805
+ };
45806
+ sync_merchant_portal_orders_invoice_lock_retrieve: {
45807
+ parameters: {
45808
+ query?: never;
45809
+ header?: never;
45810
+ path: {
45811
+ order_id: string;
45812
+ };
45813
+ cookie?: never;
45814
+ };
45815
+ requestBody?: never;
45816
+ responses: {
45817
+ 200: {
45818
+ headers: {
45819
+ [name: string]: unknown;
45820
+ };
45821
+ content: {
45822
+ "application/json": components["schemas"]["InvoiceLockResponse"];
45823
+ };
45824
+ };
45825
+ /** @description Possible error codes include `VALIDATION_ERROR`. Use `x-error-codes` for machine-readable retryability metadata. */
45826
+ 400: {
45827
+ headers: {
45828
+ [name: string]: unknown;
45829
+ };
45830
+ content: {
45831
+ "application/json": components["schemas"]["APIErrorEnvelope"];
45832
+ };
45833
+ };
45834
+ /** @description Possible error codes include `UNAUTHORIZED`. Use `x-error-codes` for machine-readable retryability metadata. */
45835
+ 401: {
45836
+ headers: {
45837
+ [name: string]: unknown;
45838
+ };
45839
+ content: {
45840
+ "application/json": components["schemas"]["APIErrorEnvelope"];
45841
+ };
45842
+ };
45843
+ /** @description Possible error codes include `FORBIDDEN`. Use `x-error-codes` for machine-readable retryability metadata. */
45844
+ 403: {
45845
+ headers: {
45846
+ [name: string]: unknown;
45847
+ };
45848
+ content: {
45849
+ "application/json": components["schemas"]["APIErrorEnvelope"];
45850
+ };
45851
+ };
45852
+ /** @description Possible error codes include `NOT_FOUND`. Use `x-error-codes` for machine-readable retryability metadata. */
45853
+ 404: {
45854
+ headers: {
45855
+ [name: string]: unknown;
45856
+ };
45857
+ content: {
45858
+ "application/json": components["schemas"]["APIErrorEnvelope"];
45859
+ };
45860
+ };
45279
45861
  /** @description Possible error codes include `RATE_LIMITED`. Use `x-error-codes` for machine-readable retryability metadata. */
45280
45862
  429: {
45281
45863
  headers: {
@@ -45605,14 +46187,13 @@ interface operations {
45605
46187
  };
45606
46188
  };
45607
46189
  };
46190
+ /** @description Conflict. `order_invoiced` when the order has an invoice. */
45608
46191
  409: {
45609
46192
  headers: {
45610
46193
  [name: string]: unknown;
45611
46194
  };
45612
46195
  content: {
45613
- "application/json": {
45614
- [key: string]: unknown;
45615
- };
46196
+ "application/json": components["schemas"]["OrderInvoicedOrRefundConflict"];
45616
46197
  };
45617
46198
  };
45618
46199
  /** @description Possible error codes include `RATE_LIMITED`. Use `x-error-codes` for machine-readable retryability metadata. */
@@ -45705,14 +46286,13 @@ interface operations {
45705
46286
  };
45706
46287
  };
45707
46288
  };
46289
+ /** @description Conflict. `order_invoiced` when the order has an invoice. */
45708
46290
  409: {
45709
46291
  headers: {
45710
46292
  [name: string]: unknown;
45711
46293
  };
45712
46294
  content: {
45713
- "application/json": {
45714
- [key: string]: unknown;
45715
- };
46295
+ "application/json": components["schemas"]["OrderInvoicedOrRefundConflict"];
45716
46296
  };
45717
46297
  };
45718
46298
  /** @description Possible error codes include `RATE_LIMITED`. Use `x-error-codes` for machine-readable retryability metadata. */