@poweredbysous/storefront-all-sdk 5.0.1 → 6.0.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.
Files changed (3) hide show
  1. package/dist/index.d.cts +1254 -65
  2. package/dist/index.d.ts +1254 -65
  3. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -1367,25 +1367,29 @@ interface paths {
1367
1367
  };
1368
1368
  /**
1369
1369
  * Get a store's delivery-fee split
1370
- * @description The merchant portal has to show the current split before it can
1371
- * offer to change it.
1370
+ * @description Read/write a store's delivery-fee split (``delivery_fee_split``).
1371
+ *
1372
+ * Never behind a flag: the portal's own ``delivery-fee-split`` flag decides
1373
+ * whether merchants see the tab, so this answers for every store. Any login
1374
+ * of the company may read it; a write comes from the portal's server, signed
1375
+ * for this store, or from a backoffice login.
1372
1376
  */
1373
1377
  get: operations["admin_stores_delivery_fee_split_retrieve"];
1374
- put?: never;
1375
- post?: never;
1376
- delete?: never;
1377
- options?: never;
1378
- head?: never;
1379
1378
  /**
1380
1379
  * Set a store's delivery-fee split
1381
- * @description Read/write a store's merchant/customer delivery-fee split.
1380
+ * @description Read/write a store's delivery-fee split (``delivery_fee_split``).
1382
1381
  *
1383
- * Auth and company scoping mirror ``AdminStoreComplianceDefaultsView``:
1384
- * Firebase merchant auth, store resolved via ``resolve_active_company`` +
1385
- * ``public_id`` so a merchant can only ever reach their own company's
1386
- * store, never another company's.
1382
+ * Never behind a flag: the portal's own ``delivery-fee-split`` flag decides
1383
+ * whether merchants see the tab, so this answers for every store. Any login
1384
+ * of the company may read it; a write comes from the portal's server, signed
1385
+ * for this store, or from a backoffice login.
1387
1386
  */
1388
- patch: operations["admin_stores_delivery_fee_split_partial_update"];
1387
+ put: operations["admin_stores_delivery_fee_split_update"];
1388
+ post?: never;
1389
+ delete?: never;
1390
+ options?: never;
1391
+ head?: never;
1392
+ patch?: never;
1389
1393
  trace?: never;
1390
1394
  };
1391
1395
  "/api/v1/admin/stores/{store_public_id}/locations/{location_public_id}/delivery-methods/": {
@@ -4052,6 +4056,60 @@ interface paths {
4052
4056
  patch?: never;
4053
4057
  trace?: never;
4054
4058
  };
4059
+ "/api/v1/loyalty/leat/basket/": {
4060
+ parameters: {
4061
+ query?: never;
4062
+ header?: never;
4063
+ path?: never;
4064
+ cookie?: never;
4065
+ };
4066
+ get?: never;
4067
+ put?: never;
4068
+ /**
4069
+ * @description POST /api/v1/loyalty/leat/basket/ — the points a basket earns.
4070
+ *
4071
+ * With the customer's loyalty session it also says which of the shop's
4072
+ * rewards they have the points for.
4073
+ */
4074
+ post: operations["loyalty_leat_basket_create"];
4075
+ delete?: never;
4076
+ options?: never;
4077
+ head?: never;
4078
+ patch?: never;
4079
+ trace?: never;
4080
+ };
4081
+ "/api/v1/loyalty/leat/cart-rewards/": {
4082
+ parameters: {
4083
+ query?: never;
4084
+ header?: never;
4085
+ path?: never;
4086
+ cookie?: never;
4087
+ };
4088
+ /**
4089
+ * @description GET and PUT /api/v1/loyalty/leat/cart-rewards/ — a member's rewards on a cart.
4090
+ *
4091
+ * PUT sets how many of a linked reward the cart holds, the session in the body,
4092
+ * within the member's points in Leat; taking one off needs only the cart's id,
4093
+ * as the cart's own lines do. GET reads the cart's selection by the cart's id,
4094
+ * as the cart is read: it names no member.
4095
+ */
4096
+ get: operations["loyalty_leat_cart_rewards_retrieve"];
4097
+ /**
4098
+ * @description GET and PUT /api/v1/loyalty/leat/cart-rewards/ — a member's rewards on a cart.
4099
+ *
4100
+ * PUT sets how many of a linked reward the cart holds, the session in the body,
4101
+ * within the member's points in Leat; taking one off needs only the cart's id,
4102
+ * as the cart's own lines do. GET reads the cart's selection by the cart's id,
4103
+ * as the cart is read: it names no member.
4104
+ */
4105
+ put: operations["loyalty_leat_cart_rewards_update"];
4106
+ post?: never;
4107
+ delete?: never;
4108
+ options?: never;
4109
+ head?: never;
4110
+ patch?: never;
4111
+ trace?: never;
4112
+ };
4055
4113
  "/api/v1/loyalty/leat/code/": {
4056
4114
  parameters: {
4057
4115
  query?: never;
@@ -4073,6 +4131,135 @@ interface paths {
4073
4131
  patch?: never;
4074
4132
  trace?: never;
4075
4133
  };
4134
+ "/api/v1/loyalty/leat/member/": {
4135
+ parameters: {
4136
+ query?: never;
4137
+ header?: never;
4138
+ path?: never;
4139
+ cookie?: never;
4140
+ };
4141
+ get?: never;
4142
+ put?: never;
4143
+ /**
4144
+ * @description POST /api/v1/loyalty/leat/member/ — the session's points and the shop's rewards.
4145
+ *
4146
+ * POST, so the session token travels in the body, never in a URL.
4147
+ */
4148
+ post: operations["loyalty_leat_member_create"];
4149
+ delete?: never;
4150
+ options?: never;
4151
+ head?: never;
4152
+ patch?: never;
4153
+ trace?: never;
4154
+ };
4155
+ "/api/v1/loyalty/leat/order-points/": {
4156
+ parameters: {
4157
+ query?: never;
4158
+ header?: never;
4159
+ path?: never;
4160
+ cookie?: never;
4161
+ };
4162
+ get?: never;
4163
+ put?: never;
4164
+ /**
4165
+ * @description POST /api/v1/loyalty/leat/order-points/ — an order's points, for its receipt.
4166
+ *
4167
+ * Only the member who earned them gets them: anyone else's answer is none.
4168
+ */
4169
+ post: operations["loyalty_leat_order_points_create"];
4170
+ delete?: never;
4171
+ options?: never;
4172
+ head?: never;
4173
+ patch?: never;
4174
+ trace?: never;
4175
+ };
4176
+ "/api/v1/loyalty/leat/profile/": {
4177
+ parameters: {
4178
+ query?: never;
4179
+ header?: never;
4180
+ path?: never;
4181
+ cookie?: never;
4182
+ };
4183
+ get?: never;
4184
+ put?: never;
4185
+ /**
4186
+ * @description POST /api/v1/loyalty/leat/profile/ — the profile step after the code.
4187
+ *
4188
+ * The names, a phone and the marketing choice go to this store's Leat
4189
+ * member, the name to the SOUS account too.
4190
+ */
4191
+ post: operations["loyalty_leat_profile_create"];
4192
+ delete?: never;
4193
+ options?: never;
4194
+ head?: never;
4195
+ patch?: never;
4196
+ trace?: never;
4197
+ };
4198
+ "/api/v1/loyalty/leat/rewards/": {
4199
+ parameters: {
4200
+ query?: never;
4201
+ header?: never;
4202
+ path?: never;
4203
+ cookie?: never;
4204
+ };
4205
+ /**
4206
+ * @description GET /api/v1/loyalty/leat/rewards/ — the shop's rewards, for guests too.
4207
+ *
4208
+ * The shop's public offer: no session, nothing about a member.
4209
+ */
4210
+ get: operations["loyalty_leat_rewards_retrieve"];
4211
+ put?: never;
4212
+ post?: never;
4213
+ delete?: never;
4214
+ options?: never;
4215
+ head?: never;
4216
+ patch?: never;
4217
+ trace?: never;
4218
+ };
4219
+ "/api/v1/loyalty/leat/session/": {
4220
+ parameters: {
4221
+ query?: never;
4222
+ header?: never;
4223
+ path?: never;
4224
+ cookie?: never;
4225
+ };
4226
+ get?: never;
4227
+ put?: never;
4228
+ /**
4229
+ * @description POST /api/v1/loyalty/leat/session/ — the remembered sign-in at this store.
4230
+ *
4231
+ * storefront-frontend's server only: it renews WorkOS's session with the
4232
+ * refresh token it keeps for the customer and keeps the next one. A member
4233
+ * here gets their loyalty session; ``join`` makes them one.
4234
+ */
4235
+ post: operations["loyalty_leat_session_create"];
4236
+ delete?: never;
4237
+ options?: never;
4238
+ head?: never;
4239
+ patch?: never;
4240
+ trace?: never;
4241
+ };
4242
+ "/api/v1/loyalty/leat/sign-out/": {
4243
+ parameters: {
4244
+ query?: never;
4245
+ header?: never;
4246
+ path?: never;
4247
+ cookie?: never;
4248
+ };
4249
+ get?: never;
4250
+ put?: never;
4251
+ /**
4252
+ * @description POST /api/v1/loyalty/leat/sign-out/ — end the remembered sign-in.
4253
+ *
4254
+ * storefront-frontend's server only: WorkOS's session ends, at every store.
4255
+ */
4256
+ post: operations["loyalty_leat_sign_out_create"];
4257
+ delete?: never;
4258
+ options?: never;
4259
+ head?: never;
4260
+ patch?: never;
4261
+ trace?: never;
4262
+ };
4076
4263
  "/api/v1/loyalty/leat/verify/": {
4077
4264
  parameters: {
4078
4265
  query?: never;
@@ -4087,6 +4274,9 @@ interface paths {
4087
4274
  *
4088
4275
  * The right code signs the customer in to their SOUS account (made for a new
4089
4276
  * email) and finds or creates their member in this store's Leat account.
4277
+ * With ``remember`` it also answers WorkOS's refresh token, for ``session``,
4278
+ * but only to storefront-frontend's server: asked by another caller, or by a
4279
+ * server whose secret is not ours, it signs the customer in without.
4090
4280
  */
4091
4281
  post: operations["loyalty_leat_verify_create"];
4092
4282
  delete?: never;
@@ -7651,19 +7841,29 @@ interface components {
7651
7841
  reusable_deposit_id?: number | null;
7652
7842
  };
7653
7843
  /**
7654
- * @description Read/write view of a store's merchant/customer delivery-fee split.
7844
+ * @description A store's delivery-fee split as the merchant portal reads it: the
7845
+ * percentage, whether the store may change it, and its linked locations.
7655
7846
  *
7656
- * ``delivery_fee_customer_pct`` is the fraction (0-1) of the shipping cost
7657
- * the customer pays; the merchant absorbs the remainder — see
7658
- * ``core.fees.apply_pass_through``. DRF derives 0-1 bounds validation from
7659
- * the model field's own validators.
7847
+ * ``customer_pct`` is read exactly as stored, so it may carry up to two
7848
+ * decimals (33.5) when admin or an older writer set one; only writes are
7849
+ * whole.
7660
7850
  */
7661
7851
  AdminStoreDeliveryFeeSplit: {
7662
- /**
7663
- * Format: decimal
7664
- * @description Fraction of shipping cost the customer pays (0-1). Merchant absorbs the remainder.
7665
- */
7666
- delivery_fee_customer_pct?: string;
7852
+ /** Format: double */
7853
+ customer_pct: number;
7854
+ readonly eligible: boolean;
7855
+ readonly location_ids: string[];
7856
+ };
7857
+ /**
7858
+ * @description What the merchant portal sends to set a store's delivery-fee split.
7859
+ *
7860
+ * ``customer_pct`` is the whole percentage of the delivery fee the customer
7861
+ * pays (30 for ``delivery_fee_customer_pct`` 0.3000); the merchant pays the
7862
+ * rest. Whole numbers only: 33.5 and ``true`` are refused, not rounded;
7863
+ * ``30.0`` and ``"30"`` are 30, as DRF's ``IntegerField`` reads them.
7864
+ */
7865
+ AdminStoreDeliveryFeeSplitWrite: {
7866
+ customer_pct: number;
7667
7867
  };
7668
7868
  /**
7669
7869
  * @description Per-store fulfilment capability for the merchant offers UI.
@@ -9570,11 +9770,55 @@ interface components {
9570
9770
  * @enum {string}
9571
9771
  */
9572
9772
  LanguagePreferenceEnum: "en" | "nl" | "de" | "fr" | "da" | "sv" | "nb" | "fi" | "es";
9773
+ LeatBasket: {
9774
+ /**
9775
+ * Format: decimal
9776
+ * @description The amount that earns points, in euros: what the items cost after discounts, without delivery fee or tip. The storefront computes it.
9777
+ */
9778
+ amount: string;
9779
+ /** @description The loyalty session from verify, when the customer has one. */
9780
+ token?: string;
9781
+ };
9782
+ LeatBasketPoints: {
9783
+ /** @description What the amount earns: Leat's figure. */
9784
+ points: number;
9785
+ };
9786
+ LeatCartReward: {
9787
+ /** @description The reward's id in Leat. */
9788
+ id: string;
9789
+ name: string;
9790
+ /** @description What one costs. */
9791
+ points: number;
9792
+ quantity: number;
9793
+ /** @description Its menu item; absent when the product is no longer the store's. */
9794
+ item?: components["schemas"]["LeatRewardItem"];
9795
+ };
9796
+ LeatCartRewardRequest: {
9797
+ /** @description The member's loyalty session, as verify or session answers it; not needed to take a reward off (quantity 0). */
9798
+ token?: string;
9799
+ /** Format: uuid */
9800
+ cart_id: string;
9801
+ /**
9802
+ * Format: uuid
9803
+ * @description The reward's id, as member lists it.
9804
+ */
9805
+ reward_id: string;
9806
+ /** @description How many the cart holds; 0 takes the reward off. */
9807
+ quantity: number;
9808
+ };
9809
+ LeatCartRewards: {
9810
+ /** @description The member's rewards on the cart, in the order chosen. */
9811
+ rewards: components["schemas"]["LeatCartReward"][];
9812
+ /** @description What they cost, all told. */
9813
+ points: number;
9814
+ };
9573
9815
  LeatCode: {
9574
9816
  /** Format: email */
9575
9817
  email: string;
9576
9818
  /** @description The customer agreed to the text next to the email field. */
9577
9819
  consent: boolean;
9820
+ /** @description The version of the consent words shown, kept with the membership. */
9821
+ consent_version?: string;
9578
9822
  };
9579
9823
  LeatCodeSent: {
9580
9824
  /**
@@ -9583,6 +9827,95 @@ interface components {
9583
9827
  */
9584
9828
  email: string;
9585
9829
  };
9830
+ LeatMember: {
9831
+ /** Format: email */
9832
+ email: string;
9833
+ /** @description The member's points. */
9834
+ points: number;
9835
+ /** @description The member's first name in Leat, or null when Leat has none. */
9836
+ first_name: string | null;
9837
+ /** @description Leat has the member's first and last name. */
9838
+ profile_complete: boolean;
9839
+ /** @description The shop's active rewards, cheapest first. */
9840
+ rewards: components["schemas"]["LeatMemberReward"][];
9841
+ /** @description The member's marketing choice at this store; null when the store asks none, so the profile step hides the box. */
9842
+ marketing: boolean | null;
9843
+ };
9844
+ LeatMemberReward: {
9845
+ id: string;
9846
+ name: string;
9847
+ /** @description What the reward costs. */
9848
+ points: number;
9849
+ /** @description The merchant's words for the reward, if any. */
9850
+ description: string | null;
9851
+ /** @description A picture of the reward: an http(s) URL, or null. */
9852
+ image: string | null;
9853
+ /** @description With features.loyaltyRedeem, the menu item a reward Ops linked gives; absent for an unlinked reward (used in the restaurant) and when the product is no longer the store's. */
9854
+ item?: components["schemas"]["LeatRewardItem"];
9855
+ /** @description With features.loyaltyRedeem, for a linked reward: true when the member can add it now, else not_enough_points, sold_out (sold out, 86'd or snoozed) or off_menu (archived, unlisted or out of its dates). Absent for an unlinked reward. */
9856
+ redeemable?: true | ("not_enough_points" | "sold_out" | "off_menu");
9857
+ };
9858
+ LeatOrderPoints: {
9859
+ /**
9860
+ * @description pending: Leat has not answered yet; none: the order earns nothing here, or is not this member's.
9861
+ *
9862
+ * * `pending` - pending
9863
+ * * `awarded` - awarded
9864
+ * * `none` - none
9865
+ */
9866
+ status: components["schemas"]["LeatOrderPointsStatusEnum"];
9867
+ /** @description When awarded: the points, less what refunds and a cancellation took back; null when Leat did not say. */
9868
+ points: number | null;
9869
+ /** @description The member's rewards the order used, whatever the status; none once their points went back. */
9870
+ rewards: components["schemas"]["LeatRewardUsed"][];
9871
+ };
9872
+ LeatOrderPointsRequest: {
9873
+ /** @description The loyalty session from verify or session. */
9874
+ token: string;
9875
+ order_number: string;
9876
+ };
9877
+ /**
9878
+ * @description * `pending` - pending
9879
+ * * `awarded` - awarded
9880
+ * * `none` - none
9881
+ * @enum {string}
9882
+ */
9883
+ LeatOrderPointsStatusEnum: "pending" | "awarded" | "none";
9884
+ LeatProfile: {
9885
+ /** @description The loyalty session from verify or session. */
9886
+ token: string;
9887
+ first_name: string;
9888
+ last_name: string;
9889
+ /** @description With its country code, such as +31 6 12345678; kept in E.164. */
9890
+ phone?: string;
9891
+ /** @description Offers and updates from this store: the box in the profile step. */
9892
+ marketing: boolean;
9893
+ };
9894
+ LeatReward: {
9895
+ id: string;
9896
+ name: string;
9897
+ /** @description What the reward costs. */
9898
+ points: number;
9899
+ /** @description The merchant's words for the reward, if any. */
9900
+ description: string | null;
9901
+ /** @description A picture of the reward: an http(s) URL, or null. */
9902
+ image: string | null;
9903
+ };
9904
+ LeatRewardItem: {
9905
+ /** @description The product: the reward gives one unit. */
9906
+ id: number;
9907
+ /** @description The product's name. */
9908
+ name: string;
9909
+ };
9910
+ LeatRewardUsed: {
9911
+ /** @description The reward's id in Leat. */
9912
+ id: string;
9913
+ name: string;
9914
+ /** @description How many of it the order used. */
9915
+ quantity: number;
9916
+ /** @description What one costs, as on the cart's and the checkout's reward lines. */
9917
+ points: number;
9918
+ };
9586
9919
  LeatSession: {
9587
9920
  /** @description Loyalty-only session: it reads this member's points, nothing else. */
9588
9921
  token: string;
@@ -9595,11 +9928,73 @@ interface components {
9595
9928
  * * `existing` - existing
9596
9929
  */
9597
9930
  member_status: components["schemas"]["MemberStatusEnum"];
9931
+ /** @description With remember: WorkOS's refresh token, never for the browser. Absent when the code had been accepted by an earlier try that failed later. */
9932
+ refresh_token?: string;
9933
+ /** @description With remember: when the remembered sign-in began, for session. */
9934
+ stamp?: string;
9935
+ };
9936
+ LeatSessionRequest: {
9937
+ /** @description The latest refresh token: from verify, or the last session answer. */
9938
+ refresh_token: string;
9939
+ /** @description verify's stamp: the remembered sign-in lasts 30 days from it. */
9940
+ stamp: string;
9941
+ /**
9942
+ * @description Join this store's programme when not a member yet. The customer agreed to the text next to the button.
9943
+ * @default false
9944
+ */
9945
+ join: boolean;
9946
+ /** @description With join: the version of the consent words shown. */
9947
+ consent_version?: string;
9948
+ };
9949
+ LeatSessionState: {
9950
+ /**
9951
+ * @description not_joined: signed in, but not a member at this store.
9952
+ *
9953
+ * * `joined` - joined
9954
+ * * `not_joined` - not_joined
9955
+ */
9956
+ status: components["schemas"]["LeatSessionStateStatusEnum"];
9957
+ /** @description WorkOS's next refresh token: the one sent no longer works. */
9958
+ refresh_token: string;
9959
+ /** @description When joined: the loyalty session, as verify's. */
9960
+ token?: string;
9961
+ /** Format: email */
9962
+ email?: string;
9963
+ /**
9964
+ * @description When joined: new when this join created the member.
9965
+ *
9966
+ * * `new` - new
9967
+ * * `existing` - existing
9968
+ */
9969
+ member_status?: components["schemas"]["MemberStatusEnum"];
9970
+ };
9971
+ /**
9972
+ * @description * `joined` - joined
9973
+ * * `not_joined` - not_joined
9974
+ * @enum {string}
9975
+ */
9976
+ LeatSessionStateStatusEnum: "joined" | "not_joined";
9977
+ LeatShopRewards: {
9978
+ /** @description The shop's active rewards, cheapest first. */
9979
+ rewards: components["schemas"]["LeatReward"][];
9980
+ };
9981
+ LeatSignOut: {
9982
+ /** @description The latest refresh token: its WorkOS session ends. */
9983
+ refresh_token: string;
9984
+ };
9985
+ LeatToken: {
9986
+ /** @description The loyalty session from verify. */
9987
+ token: string;
9598
9988
  };
9599
9989
  LeatVerify: {
9600
9990
  /** Format: email */
9601
9991
  email: string;
9602
9992
  code: string;
9993
+ /**
9994
+ * @description Also answer WorkOS's refresh token and the stamp, for storefront-frontend's server to keep. Only that server, signing the request, may ask (else 403).
9995
+ * @default false
9996
+ */
9997
+ remember: boolean;
9603
9998
  };
9604
9999
  LibraryGroup: {
9605
10000
  id: number;
@@ -10911,21 +11306,6 @@ interface components {
10911
11306
  */
10912
11307
  reusable_deposit_id?: number | null;
10913
11308
  };
10914
- /**
10915
- * @description Read/write view of a store's merchant/customer delivery-fee split.
10916
- *
10917
- * ``delivery_fee_customer_pct`` is the fraction (0-1) of the shipping cost
10918
- * the customer pays; the merchant absorbs the remainder — see
10919
- * ``core.fees.apply_pass_through``. DRF derives 0-1 bounds validation from
10920
- * the model field's own validators.
10921
- */
10922
- PatchedAdminStoreDeliveryFeeSplit: {
10923
- /**
10924
- * Format: decimal
10925
- * @description Fraction of shipping cost the customer pays (0-1). Merchant absorbs the remainder.
10926
- */
10927
- delivery_fee_customer_pct?: string;
10928
- };
10929
11309
  /**
10930
11310
  * @description Validates the request body for binding a service point to a cart.
10931
11311
  *
@@ -11501,6 +11881,8 @@ interface components {
11501
11881
  */
11502
11882
  ProcessPaymentInput: {
11503
11883
  gateway_id: string;
11884
+ /** @description The member's loyalty session, when the checkout carries Leat rewards: payment starts only once it may spend their points. */
11885
+ loyalty_token?: string;
11504
11886
  };
11505
11887
  /** @description Write serializer for merchant-initiated or merchant-approved refunds. */
11506
11888
  ProcessRefund: {
@@ -19128,7 +19510,7 @@ interface operations {
19128
19510
  };
19129
19511
  };
19130
19512
  };
19131
- admin_stores_delivery_fee_split_partial_update: {
19513
+ admin_stores_delivery_fee_split_update: {
19132
19514
  parameters: {
19133
19515
  query?: never;
19134
19516
  header?: {
@@ -19140,11 +19522,11 @@ interface operations {
19140
19522
  };
19141
19523
  cookie?: never;
19142
19524
  };
19143
- requestBody?: {
19525
+ requestBody: {
19144
19526
  content: {
19145
- "application/json": components["schemas"]["PatchedAdminStoreDeliveryFeeSplit"];
19146
- "application/x-www-form-urlencoded": components["schemas"]["PatchedAdminStoreDeliveryFeeSplit"];
19147
- "multipart/form-data": components["schemas"]["PatchedAdminStoreDeliveryFeeSplit"];
19527
+ "application/json": components["schemas"]["AdminStoreDeliveryFeeSplitWrite"];
19528
+ "application/x-www-form-urlencoded": components["schemas"]["AdminStoreDeliveryFeeSplitWrite"];
19529
+ "multipart/form-data": components["schemas"]["AdminStoreDeliveryFeeSplitWrite"];
19148
19530
  };
19149
19531
  };
19150
19532
  responses: {
@@ -19192,6 +19574,15 @@ interface operations {
19192
19574
  "application/json": components["schemas"]["APIErrorEnvelope"];
19193
19575
  };
19194
19576
  };
19577
+ /** @description Possible error codes include `DELIVERY_FEE_SPLIT_NOT_ELIGIBLE`. Use `x-error-codes` for machine-readable retryability metadata. */
19578
+ 409: {
19579
+ headers: {
19580
+ [name: string]: unknown;
19581
+ };
19582
+ content: {
19583
+ "application/json": components["schemas"]["APIErrorEnvelope"];
19584
+ };
19585
+ };
19195
19586
  /** @description Possible error codes include `RATE_LIMITED`. Use `x-error-codes` for machine-readable retryability metadata. */
19196
19587
  429: {
19197
19588
  headers: {
@@ -26151,7 +26542,7 @@ interface operations {
26151
26542
  };
26152
26543
  };
26153
26544
  };
26154
- /** @description Possible error codes: `MISSING_GATEWAY_ID`, `CHECKOUT_EMPTY`, `ZEEMIJLEN_IN_USE_ELSEWHERE`, `GATEWAY_NOT_ENABLED`, `INVALID_GATEWAY`, `MISSING_GIFT_CARD_CODE`, `INVALID_TAX_PROVIDER`, `PRODUCT_UNAVAILABLE`, `SERVICE_POINT_REQUIRED`, `DISCOUNT_CUSTOMER_LIMIT`, `GIFT_CARD_HOLD_LAPSED`. Retryable: no. Possible error codes include `VALIDATION_ERROR`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `CHECKOUT_NOT_PAID`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `GIFT_CARD_BACKING_LOST_REFUNDED`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `GIFT_CARD_BACKING_LOST_REFUND_PENDING`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `GIFT_CARD_BACKING_LOST_REFUND_FAILED`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `GIFT_CARD_BACKING_LOST_NOT_CHARGED`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `GIFT_CARD_HOLD_LAPSED`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `CHECKOUT_VALIDATION_ERROR`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `UPSELL_ONLY_BASKET`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `MISSING_CART_ID`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `MISSING_GATEWAY_ID`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `INVALID_GATEWAY`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `INVALID_SHIPPING_METHOD`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `SHIPPING_FULFILLMENT_MISMATCH`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `MISSING_GIFT_CARD_CODE`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `GATEWAY_NOT_ENABLED`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `INVALID_TAX_PROVIDER`. Use `x-error-codes` for machine-readable retryability metadata. */
26545
+ /** @description Possible error codes: `MISSING_GATEWAY_ID`, `CHECKOUT_EMPTY`, `ZEEMIJLEN_IN_USE_ELSEWHERE`, `GATEWAY_NOT_ENABLED`, `INVALID_GATEWAY`, `MISSING_GIFT_CARD_CODE`, `INVALID_TAX_PROVIDER`, `PRODUCT_UNAVAILABLE`, `SERVICE_POINT_REQUIRED`, `DISCOUNT_CUSTOMER_LIMIT`, `GIFT_CARD_HOLD_LAPSED`, `LOYALTY_PAID_ITEM_REQUIRED`, `LOYALTY_EMAIL_MISMATCH`, `LOYALTY_REWARD_UNAVAILABLE`, `LOYALTY_NOT_ENOUGH_POINTS`. Retryable: no. Possible error codes include `VALIDATION_ERROR`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `CHECKOUT_NOT_PAID`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `GIFT_CARD_BACKING_LOST_REFUNDED`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `GIFT_CARD_BACKING_LOST_REFUND_PENDING`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `GIFT_CARD_BACKING_LOST_REFUND_FAILED`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `GIFT_CARD_BACKING_LOST_NOT_CHARGED`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `GIFT_CARD_HOLD_LAPSED`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `CHECKOUT_VALIDATION_ERROR`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `UPSELL_ONLY_BASKET`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `MISSING_CART_ID`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `MISSING_GATEWAY_ID`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `INVALID_GATEWAY`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `INVALID_SHIPPING_METHOD`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `SHIPPING_FULFILLMENT_MISMATCH`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `MISSING_GIFT_CARD_CODE`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `GATEWAY_NOT_ENABLED`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `INVALID_TAX_PROVIDER`. Use `x-error-codes` for machine-readable retryability metadata. */
26155
26546
  400: {
26156
26547
  headers: {
26157
26548
  [name: string]: unknown;
@@ -26160,7 +26551,7 @@ interface operations {
26160
26551
  "application/json": components["schemas"]["APIErrorEnvelope"];
26161
26552
  };
26162
26553
  };
26163
- /** @description Possible error codes include `UNAUTHORIZED`. Use `x-error-codes` for machine-readable retryability metadata. */
26554
+ /** @description Possible error codes: `LOYALTY_SIGN_IN_REQUIRED`, `LOYALTY_SESSION_EXPIRED`. Retryable: no. Possible error codes include `UNAUTHORIZED`. Use `x-error-codes` for machine-readable retryability metadata. */
26164
26555
  401: {
26165
26556
  headers: {
26166
26557
  [name: string]: unknown;
@@ -26178,7 +26569,7 @@ interface operations {
26178
26569
  "application/json": components["schemas"]["APIErrorEnvelope"];
26179
26570
  };
26180
26571
  };
26181
- /** @description Possible error codes: `CHECKOUT_NOT_FOUND`. Retryable: no. Possible error codes include `NOT_FOUND`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `CHECKOUT_NOT_FOUND`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `SHIPPING_GROUP_NOT_FOUND`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `SHIPPING_RATE_NOT_FOUND`. Use `x-error-codes` for machine-readable retryability metadata. */
26572
+ /** @description Possible error codes: `CHECKOUT_NOT_FOUND`, `LOYALTY_NOT_AVAILABLE`. Retryable: no. Possible error codes include `NOT_FOUND`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `CHECKOUT_NOT_FOUND`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `SHIPPING_GROUP_NOT_FOUND`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `SHIPPING_RATE_NOT_FOUND`. Use `x-error-codes` for machine-readable retryability metadata. */
26182
26573
  404: {
26183
26574
  headers: {
26184
26575
  [name: string]: unknown;
@@ -26223,11 +26614,20 @@ interface operations {
26223
26614
  "application/json": components["schemas"]["APIErrorEnvelope"];
26224
26615
  };
26225
26616
  };
26226
- };
26227
- };
26228
- checkout_payment_gateways_retrieve: {
26229
- parameters: {
26230
- query?: {
26617
+ /** @description Possible error codes: `LOYALTY_UNAVAILABLE`. Retryable: yes. */
26618
+ 503: {
26619
+ headers: {
26620
+ [name: string]: unknown;
26621
+ };
26622
+ content: {
26623
+ "application/json": components["schemas"]["APIErrorEnvelope"];
26624
+ };
26625
+ };
26626
+ };
26627
+ };
26628
+ checkout_payment_gateways_retrieve: {
26629
+ parameters: {
26630
+ query?: {
26231
26631
  /** @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`. */
26232
26632
  lang?: string;
26233
26633
  };
@@ -32536,7 +32936,7 @@ interface operations {
32536
32936
  };
32537
32937
  };
32538
32938
  };
32539
- loyalty_leat_code_create: {
32939
+ loyalty_leat_basket_create: {
32540
32940
  parameters: {
32541
32941
  query?: never;
32542
32942
  header?: never;
@@ -32545,18 +32945,18 @@ interface operations {
32545
32945
  };
32546
32946
  requestBody: {
32547
32947
  content: {
32548
- "application/json": components["schemas"]["LeatCode"];
32549
- "application/x-www-form-urlencoded": components["schemas"]["LeatCode"];
32550
- "multipart/form-data": components["schemas"]["LeatCode"];
32948
+ "application/json": components["schemas"]["LeatBasket"];
32949
+ "application/x-www-form-urlencoded": components["schemas"]["LeatBasket"];
32950
+ "multipart/form-data": components["schemas"]["LeatBasket"];
32551
32951
  };
32552
32952
  };
32553
32953
  responses: {
32554
- 202: {
32954
+ 200: {
32555
32955
  headers: {
32556
32956
  [name: string]: unknown;
32557
32957
  };
32558
32958
  content: {
32559
- "application/json": components["schemas"]["LeatCodeSent"];
32959
+ "application/json": components["schemas"]["LeatBasketPoints"];
32560
32960
  };
32561
32961
  };
32562
32962
  /** @description Possible error codes include `VALIDATION_ERROR`. Use `x-error-codes` for machine-readable retryability metadata. */
@@ -32568,7 +32968,7 @@ interface operations {
32568
32968
  "application/json": components["schemas"]["APIErrorEnvelope"];
32569
32969
  };
32570
32970
  };
32571
- /** @description Possible error codes include `UNAUTHORIZED`. Use `x-error-codes` for machine-readable retryability metadata. */
32971
+ /** @description Possible error codes include `UNAUTHORIZED`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `LOYALTY_SESSION_EXPIRED`. Use `x-error-codes` for machine-readable retryability metadata. */
32572
32972
  401: {
32573
32973
  headers: {
32574
32974
  [name: string]: unknown;
@@ -32595,7 +32995,7 @@ interface operations {
32595
32995
  "application/json": components["schemas"]["APIErrorEnvelope"];
32596
32996
  };
32597
32997
  };
32598
- /** @description Possible error codes include `RATE_LIMITED`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `LOYALTY_CODE_RATE_LIMITED`. Use `x-error-codes` for machine-readable retryability metadata. */
32998
+ /** @description Possible error codes include `RATE_LIMITED`. Use `x-error-codes` for machine-readable retryability metadata. */
32599
32999
  429: {
32600
33000
  headers: {
32601
33001
  [name: string]: unknown;
@@ -32624,7 +33024,100 @@ interface operations {
32624
33024
  };
32625
33025
  };
32626
33026
  };
32627
- loyalty_leat_verify_create: {
33027
+ loyalty_leat_cart_rewards_retrieve: {
33028
+ parameters: {
33029
+ query: {
33030
+ cart_id: string;
33031
+ };
33032
+ header?: never;
33033
+ path?: never;
33034
+ cookie?: never;
33035
+ };
33036
+ requestBody?: never;
33037
+ responses: {
33038
+ 200: {
33039
+ headers: {
33040
+ [name: string]: unknown;
33041
+ };
33042
+ content: {
33043
+ "application/json": components["schemas"]["LeatCartRewards"];
33044
+ };
33045
+ };
33046
+ /** @description Possible error codes include `VALIDATION_ERROR`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `LOYALTY_REWARD_UNAVAILABLE`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `LOYALTY_NOT_ENOUGH_POINTS`. Use `x-error-codes` for machine-readable retryability metadata. */
33047
+ 400: {
33048
+ headers: {
33049
+ [name: string]: unknown;
33050
+ };
33051
+ content: {
33052
+ "application/json": components["schemas"]["APIErrorEnvelope"];
33053
+ };
33054
+ };
33055
+ /** @description Possible error codes include `UNAUTHORIZED`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `LOYALTY_SESSION_EXPIRED`. Use `x-error-codes` for machine-readable retryability metadata. */
33056
+ 401: {
33057
+ headers: {
33058
+ [name: string]: unknown;
33059
+ };
33060
+ content: {
33061
+ "application/json": components["schemas"]["APIErrorEnvelope"];
33062
+ };
33063
+ };
33064
+ /** @description Possible error codes include `FORBIDDEN`. Use `x-error-codes` for machine-readable retryability metadata. */
33065
+ 403: {
33066
+ headers: {
33067
+ [name: string]: unknown;
33068
+ };
33069
+ content: {
33070
+ "application/json": components["schemas"]["APIErrorEnvelope"];
33071
+ };
33072
+ };
33073
+ /** @description Possible error codes include `NOT_FOUND`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `LOYALTY_NOT_AVAILABLE`. 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. */
33074
+ 404: {
33075
+ headers: {
33076
+ [name: string]: unknown;
33077
+ };
33078
+ content: {
33079
+ "application/json": components["schemas"]["APIErrorEnvelope"];
33080
+ };
33081
+ };
33082
+ /** @description Possible error codes include `PAYMENT_IN_FLIGHT`. Use `x-error-codes` for machine-readable retryability metadata. */
33083
+ 409: {
33084
+ headers: {
33085
+ [name: string]: unknown;
33086
+ };
33087
+ content: {
33088
+ "application/json": components["schemas"]["APIErrorEnvelope"];
33089
+ };
33090
+ };
33091
+ /** @description Possible error codes include `RATE_LIMITED`. Use `x-error-codes` for machine-readable retryability metadata. */
33092
+ 429: {
33093
+ headers: {
33094
+ [name: string]: unknown;
33095
+ };
33096
+ content: {
33097
+ "application/json": components["schemas"]["APIErrorEnvelope"];
33098
+ };
33099
+ };
33100
+ /** @description Possible error codes include `INTERNAL_ERROR`. Use `x-error-codes` for machine-readable retryability metadata. */
33101
+ 500: {
33102
+ headers: {
33103
+ [name: string]: unknown;
33104
+ };
33105
+ content: {
33106
+ "application/json": components["schemas"]["APIErrorEnvelope"];
33107
+ };
33108
+ };
33109
+ /** @description Possible error codes include `LOYALTY_UNAVAILABLE`. Use `x-error-codes` for machine-readable retryability metadata. */
33110
+ 503: {
33111
+ headers: {
33112
+ [name: string]: unknown;
33113
+ };
33114
+ content: {
33115
+ "application/json": components["schemas"]["APIErrorEnvelope"];
33116
+ };
33117
+ };
33118
+ };
33119
+ };
33120
+ loyalty_leat_cart_rewards_update: {
32628
33121
  parameters: {
32629
33122
  query?: never;
32630
33123
  header?: never;
@@ -32633,9 +33126,9 @@ interface operations {
32633
33126
  };
32634
33127
  requestBody: {
32635
33128
  content: {
32636
- "application/json": components["schemas"]["LeatVerify"];
32637
- "application/x-www-form-urlencoded": components["schemas"]["LeatVerify"];
32638
- "multipart/form-data": components["schemas"]["LeatVerify"];
33129
+ "application/json": components["schemas"]["LeatCartRewardRequest"];
33130
+ "application/x-www-form-urlencoded": components["schemas"]["LeatCartRewardRequest"];
33131
+ "multipart/form-data": components["schemas"]["LeatCartRewardRequest"];
32639
33132
  };
32640
33133
  };
32641
33134
  responses: {
@@ -32644,10 +33137,107 @@ interface operations {
32644
33137
  [name: string]: unknown;
32645
33138
  };
32646
33139
  content: {
32647
- "application/json": components["schemas"]["LeatSession"];
33140
+ "application/json": components["schemas"]["LeatCartRewards"];
32648
33141
  };
32649
33142
  };
32650
- /** @description Possible error codes include `VALIDATION_ERROR`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `LOYALTY_CODE_INVALID`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `LOYALTY_CONSENT_REQUIRED`. Use `x-error-codes` for machine-readable retryability metadata. */
33143
+ /** @description Possible error codes include `VALIDATION_ERROR`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `LOYALTY_REWARD_UNAVAILABLE`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `LOYALTY_NOT_ENOUGH_POINTS`. Use `x-error-codes` for machine-readable retryability metadata. */
33144
+ 400: {
33145
+ headers: {
33146
+ [name: string]: unknown;
33147
+ };
33148
+ content: {
33149
+ "application/json": components["schemas"]["APIErrorEnvelope"];
33150
+ };
33151
+ };
33152
+ /** @description Possible error codes include `UNAUTHORIZED`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `LOYALTY_SESSION_EXPIRED`. Use `x-error-codes` for machine-readable retryability metadata. */
33153
+ 401: {
33154
+ headers: {
33155
+ [name: string]: unknown;
33156
+ };
33157
+ content: {
33158
+ "application/json": components["schemas"]["APIErrorEnvelope"];
33159
+ };
33160
+ };
33161
+ /** @description Possible error codes include `FORBIDDEN`. Use `x-error-codes` for machine-readable retryability metadata. */
33162
+ 403: {
33163
+ headers: {
33164
+ [name: string]: unknown;
33165
+ };
33166
+ content: {
33167
+ "application/json": components["schemas"]["APIErrorEnvelope"];
33168
+ };
33169
+ };
33170
+ /** @description Possible error codes include `NOT_FOUND`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `LOYALTY_NOT_AVAILABLE`. 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. */
33171
+ 404: {
33172
+ headers: {
33173
+ [name: string]: unknown;
33174
+ };
33175
+ content: {
33176
+ "application/json": components["schemas"]["APIErrorEnvelope"];
33177
+ };
33178
+ };
33179
+ /** @description Possible error codes include `PAYMENT_IN_FLIGHT`. Use `x-error-codes` for machine-readable retryability metadata. */
33180
+ 409: {
33181
+ headers: {
33182
+ [name: string]: unknown;
33183
+ };
33184
+ content: {
33185
+ "application/json": components["schemas"]["APIErrorEnvelope"];
33186
+ };
33187
+ };
33188
+ /** @description Possible error codes include `RATE_LIMITED`. Use `x-error-codes` for machine-readable retryability metadata. */
33189
+ 429: {
33190
+ headers: {
33191
+ [name: string]: unknown;
33192
+ };
33193
+ content: {
33194
+ "application/json": components["schemas"]["APIErrorEnvelope"];
33195
+ };
33196
+ };
33197
+ /** @description Possible error codes include `INTERNAL_ERROR`. Use `x-error-codes` for machine-readable retryability metadata. */
33198
+ 500: {
33199
+ headers: {
33200
+ [name: string]: unknown;
33201
+ };
33202
+ content: {
33203
+ "application/json": components["schemas"]["APIErrorEnvelope"];
33204
+ };
33205
+ };
33206
+ /** @description Possible error codes include `LOYALTY_UNAVAILABLE`. Use `x-error-codes` for machine-readable retryability metadata. */
33207
+ 503: {
33208
+ headers: {
33209
+ [name: string]: unknown;
33210
+ };
33211
+ content: {
33212
+ "application/json": components["schemas"]["APIErrorEnvelope"];
33213
+ };
33214
+ };
33215
+ };
33216
+ };
33217
+ loyalty_leat_code_create: {
33218
+ parameters: {
33219
+ query?: never;
33220
+ header?: never;
33221
+ path?: never;
33222
+ cookie?: never;
33223
+ };
33224
+ requestBody: {
33225
+ content: {
33226
+ "application/json": components["schemas"]["LeatCode"];
33227
+ "application/x-www-form-urlencoded": components["schemas"]["LeatCode"];
33228
+ "multipart/form-data": components["schemas"]["LeatCode"];
33229
+ };
33230
+ };
33231
+ responses: {
33232
+ 202: {
33233
+ headers: {
33234
+ [name: string]: unknown;
33235
+ };
33236
+ content: {
33237
+ "application/json": components["schemas"]["LeatCodeSent"];
33238
+ };
33239
+ };
33240
+ /** @description Possible error codes include `VALIDATION_ERROR`. Use `x-error-codes` for machine-readable retryability metadata. */
32651
33241
  400: {
32652
33242
  headers: {
32653
33243
  [name: string]: unknown;
@@ -32683,6 +33273,605 @@ interface operations {
32683
33273
  "application/json": components["schemas"]["APIErrorEnvelope"];
32684
33274
  };
32685
33275
  };
33276
+ /** @description Possible error codes include `RATE_LIMITED`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `LOYALTY_CODE_RATE_LIMITED`. Use `x-error-codes` for machine-readable retryability metadata. */
33277
+ 429: {
33278
+ headers: {
33279
+ [name: string]: unknown;
33280
+ };
33281
+ content: {
33282
+ "application/json": components["schemas"]["APIErrorEnvelope"];
33283
+ };
33284
+ };
33285
+ /** @description Possible error codes include `INTERNAL_ERROR`. Use `x-error-codes` for machine-readable retryability metadata. */
33286
+ 500: {
33287
+ headers: {
33288
+ [name: string]: unknown;
33289
+ };
33290
+ content: {
33291
+ "application/json": components["schemas"]["APIErrorEnvelope"];
33292
+ };
33293
+ };
33294
+ /** @description Possible error codes include `LOYALTY_UNAVAILABLE`. Use `x-error-codes` for machine-readable retryability metadata. */
33295
+ 503: {
33296
+ headers: {
33297
+ [name: string]: unknown;
33298
+ };
33299
+ content: {
33300
+ "application/json": components["schemas"]["APIErrorEnvelope"];
33301
+ };
33302
+ };
33303
+ };
33304
+ };
33305
+ loyalty_leat_member_create: {
33306
+ parameters: {
33307
+ query?: never;
33308
+ header?: never;
33309
+ path?: never;
33310
+ cookie?: never;
33311
+ };
33312
+ requestBody: {
33313
+ content: {
33314
+ "application/json": components["schemas"]["LeatToken"];
33315
+ "application/x-www-form-urlencoded": components["schemas"]["LeatToken"];
33316
+ "multipart/form-data": components["schemas"]["LeatToken"];
33317
+ };
33318
+ };
33319
+ responses: {
33320
+ 200: {
33321
+ headers: {
33322
+ [name: string]: unknown;
33323
+ };
33324
+ content: {
33325
+ "application/json": components["schemas"]["LeatMember"];
33326
+ };
33327
+ };
33328
+ /** @description Possible error codes include `VALIDATION_ERROR`. Use `x-error-codes` for machine-readable retryability metadata. */
33329
+ 400: {
33330
+ headers: {
33331
+ [name: string]: unknown;
33332
+ };
33333
+ content: {
33334
+ "application/json": components["schemas"]["APIErrorEnvelope"];
33335
+ };
33336
+ };
33337
+ /** @description Possible error codes include `UNAUTHORIZED`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `LOYALTY_SESSION_EXPIRED`. Use `x-error-codes` for machine-readable retryability metadata. */
33338
+ 401: {
33339
+ headers: {
33340
+ [name: string]: unknown;
33341
+ };
33342
+ content: {
33343
+ "application/json": components["schemas"]["APIErrorEnvelope"];
33344
+ };
33345
+ };
33346
+ /** @description Possible error codes include `FORBIDDEN`. Use `x-error-codes` for machine-readable retryability metadata. */
33347
+ 403: {
33348
+ headers: {
33349
+ [name: string]: unknown;
33350
+ };
33351
+ content: {
33352
+ "application/json": components["schemas"]["APIErrorEnvelope"];
33353
+ };
33354
+ };
33355
+ /** @description Possible error codes include `NOT_FOUND`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `LOYALTY_NOT_AVAILABLE`. Use `x-error-codes` for machine-readable retryability metadata. */
33356
+ 404: {
33357
+ headers: {
33358
+ [name: string]: unknown;
33359
+ };
33360
+ content: {
33361
+ "application/json": components["schemas"]["APIErrorEnvelope"];
33362
+ };
33363
+ };
33364
+ /** @description Possible error codes include `RATE_LIMITED`. Use `x-error-codes` for machine-readable retryability metadata. */
33365
+ 429: {
33366
+ headers: {
33367
+ [name: string]: unknown;
33368
+ };
33369
+ content: {
33370
+ "application/json": components["schemas"]["APIErrorEnvelope"];
33371
+ };
33372
+ };
33373
+ /** @description Possible error codes include `INTERNAL_ERROR`. Use `x-error-codes` for machine-readable retryability metadata. */
33374
+ 500: {
33375
+ headers: {
33376
+ [name: string]: unknown;
33377
+ };
33378
+ content: {
33379
+ "application/json": components["schemas"]["APIErrorEnvelope"];
33380
+ };
33381
+ };
33382
+ /** @description Possible error codes include `LOYALTY_UNAVAILABLE`. Use `x-error-codes` for machine-readable retryability metadata. */
33383
+ 503: {
33384
+ headers: {
33385
+ [name: string]: unknown;
33386
+ };
33387
+ content: {
33388
+ "application/json": components["schemas"]["APIErrorEnvelope"];
33389
+ };
33390
+ };
33391
+ };
33392
+ };
33393
+ loyalty_leat_order_points_create: {
33394
+ parameters: {
33395
+ query?: never;
33396
+ header?: never;
33397
+ path?: never;
33398
+ cookie?: never;
33399
+ };
33400
+ requestBody: {
33401
+ content: {
33402
+ "application/json": components["schemas"]["LeatOrderPointsRequest"];
33403
+ "application/x-www-form-urlencoded": components["schemas"]["LeatOrderPointsRequest"];
33404
+ "multipart/form-data": components["schemas"]["LeatOrderPointsRequest"];
33405
+ };
33406
+ };
33407
+ responses: {
33408
+ 200: {
33409
+ headers: {
33410
+ [name: string]: unknown;
33411
+ };
33412
+ content: {
33413
+ "application/json": components["schemas"]["LeatOrderPoints"];
33414
+ };
33415
+ };
33416
+ /** @description Possible error codes include `VALIDATION_ERROR`. Use `x-error-codes` for machine-readable retryability metadata. */
33417
+ 400: {
33418
+ headers: {
33419
+ [name: string]: unknown;
33420
+ };
33421
+ content: {
33422
+ "application/json": components["schemas"]["APIErrorEnvelope"];
33423
+ };
33424
+ };
33425
+ /** @description Possible error codes include `UNAUTHORIZED`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `LOYALTY_SESSION_EXPIRED`. Use `x-error-codes` for machine-readable retryability metadata. */
33426
+ 401: {
33427
+ headers: {
33428
+ [name: string]: unknown;
33429
+ };
33430
+ content: {
33431
+ "application/json": components["schemas"]["APIErrorEnvelope"];
33432
+ };
33433
+ };
33434
+ /** @description Possible error codes include `FORBIDDEN`. Use `x-error-codes` for machine-readable retryability metadata. */
33435
+ 403: {
33436
+ headers: {
33437
+ [name: string]: unknown;
33438
+ };
33439
+ content: {
33440
+ "application/json": components["schemas"]["APIErrorEnvelope"];
33441
+ };
33442
+ };
33443
+ /** @description Possible error codes include `NOT_FOUND`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `LOYALTY_NOT_AVAILABLE`. Use `x-error-codes` for machine-readable retryability metadata. */
33444
+ 404: {
33445
+ headers: {
33446
+ [name: string]: unknown;
33447
+ };
33448
+ content: {
33449
+ "application/json": components["schemas"]["APIErrorEnvelope"];
33450
+ };
33451
+ };
33452
+ /** @description Possible error codes include `RATE_LIMITED`. Use `x-error-codes` for machine-readable retryability metadata. */
33453
+ 429: {
33454
+ headers: {
33455
+ [name: string]: unknown;
33456
+ };
33457
+ content: {
33458
+ "application/json": components["schemas"]["APIErrorEnvelope"];
33459
+ };
33460
+ };
33461
+ /** @description Possible error codes include `INTERNAL_ERROR`. Use `x-error-codes` for machine-readable retryability metadata. */
33462
+ 500: {
33463
+ headers: {
33464
+ [name: string]: unknown;
33465
+ };
33466
+ content: {
33467
+ "application/json": components["schemas"]["APIErrorEnvelope"];
33468
+ };
33469
+ };
33470
+ };
33471
+ };
33472
+ loyalty_leat_profile_create: {
33473
+ parameters: {
33474
+ query?: never;
33475
+ header?: never;
33476
+ path?: never;
33477
+ cookie?: never;
33478
+ };
33479
+ requestBody: {
33480
+ content: {
33481
+ "application/json": components["schemas"]["LeatProfile"];
33482
+ "application/x-www-form-urlencoded": components["schemas"]["LeatProfile"];
33483
+ "multipart/form-data": components["schemas"]["LeatProfile"];
33484
+ };
33485
+ };
33486
+ responses: {
33487
+ /** @description No response body */
33488
+ 204: {
33489
+ headers: {
33490
+ [name: string]: unknown;
33491
+ };
33492
+ content?: never;
33493
+ };
33494
+ /** @description Possible error codes include `VALIDATION_ERROR`. Use `x-error-codes` for machine-readable retryability metadata. */
33495
+ 400: {
33496
+ headers: {
33497
+ [name: string]: unknown;
33498
+ };
33499
+ content: {
33500
+ "application/json": components["schemas"]["APIErrorEnvelope"];
33501
+ };
33502
+ };
33503
+ /** @description Possible error codes include `UNAUTHORIZED`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `LOYALTY_SESSION_EXPIRED`. Use `x-error-codes` for machine-readable retryability metadata. */
33504
+ 401: {
33505
+ headers: {
33506
+ [name: string]: unknown;
33507
+ };
33508
+ content: {
33509
+ "application/json": components["schemas"]["APIErrorEnvelope"];
33510
+ };
33511
+ };
33512
+ /** @description Possible error codes include `FORBIDDEN`. Use `x-error-codes` for machine-readable retryability metadata. */
33513
+ 403: {
33514
+ headers: {
33515
+ [name: string]: unknown;
33516
+ };
33517
+ content: {
33518
+ "application/json": components["schemas"]["APIErrorEnvelope"];
33519
+ };
33520
+ };
33521
+ /** @description Possible error codes include `NOT_FOUND`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `LOYALTY_NOT_AVAILABLE`. Use `x-error-codes` for machine-readable retryability metadata. */
33522
+ 404: {
33523
+ headers: {
33524
+ [name: string]: unknown;
33525
+ };
33526
+ content: {
33527
+ "application/json": components["schemas"]["APIErrorEnvelope"];
33528
+ };
33529
+ };
33530
+ /** @description Possible error codes include `RATE_LIMITED`. Use `x-error-codes` for machine-readable retryability metadata. */
33531
+ 429: {
33532
+ headers: {
33533
+ [name: string]: unknown;
33534
+ };
33535
+ content: {
33536
+ "application/json": components["schemas"]["APIErrorEnvelope"];
33537
+ };
33538
+ };
33539
+ /** @description Possible error codes include `INTERNAL_ERROR`. Use `x-error-codes` for machine-readable retryability metadata. */
33540
+ 500: {
33541
+ headers: {
33542
+ [name: string]: unknown;
33543
+ };
33544
+ content: {
33545
+ "application/json": components["schemas"]["APIErrorEnvelope"];
33546
+ };
33547
+ };
33548
+ /** @description Possible error codes include `LOYALTY_UNAVAILABLE`. Use `x-error-codes` for machine-readable retryability metadata. */
33549
+ 503: {
33550
+ headers: {
33551
+ [name: string]: unknown;
33552
+ };
33553
+ content: {
33554
+ "application/json": components["schemas"]["APIErrorEnvelope"];
33555
+ };
33556
+ };
33557
+ };
33558
+ };
33559
+ loyalty_leat_rewards_retrieve: {
33560
+ parameters: {
33561
+ query?: never;
33562
+ header?: never;
33563
+ path?: never;
33564
+ cookie?: never;
33565
+ };
33566
+ requestBody?: never;
33567
+ responses: {
33568
+ 200: {
33569
+ headers: {
33570
+ [name: string]: unknown;
33571
+ };
33572
+ content: {
33573
+ "application/json": components["schemas"]["LeatShopRewards"];
33574
+ };
33575
+ };
33576
+ /** @description Possible error codes include `VALIDATION_ERROR`. Use `x-error-codes` for machine-readable retryability metadata. */
33577
+ 400: {
33578
+ headers: {
33579
+ [name: string]: unknown;
33580
+ };
33581
+ content: {
33582
+ "application/json": components["schemas"]["APIErrorEnvelope"];
33583
+ };
33584
+ };
33585
+ /** @description Possible error codes include `UNAUTHORIZED`. Use `x-error-codes` for machine-readable retryability metadata. */
33586
+ 401: {
33587
+ headers: {
33588
+ [name: string]: unknown;
33589
+ };
33590
+ content: {
33591
+ "application/json": components["schemas"]["APIErrorEnvelope"];
33592
+ };
33593
+ };
33594
+ /** @description Possible error codes include `FORBIDDEN`. Use `x-error-codes` for machine-readable retryability metadata. */
33595
+ 403: {
33596
+ headers: {
33597
+ [name: string]: unknown;
33598
+ };
33599
+ content: {
33600
+ "application/json": components["schemas"]["APIErrorEnvelope"];
33601
+ };
33602
+ };
33603
+ /** @description Possible error codes include `NOT_FOUND`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `LOYALTY_NOT_AVAILABLE`. Use `x-error-codes` for machine-readable retryability metadata. */
33604
+ 404: {
33605
+ headers: {
33606
+ [name: string]: unknown;
33607
+ };
33608
+ content: {
33609
+ "application/json": components["schemas"]["APIErrorEnvelope"];
33610
+ };
33611
+ };
33612
+ /** @description Possible error codes include `RATE_LIMITED`. Use `x-error-codes` for machine-readable retryability metadata. */
33613
+ 429: {
33614
+ headers: {
33615
+ [name: string]: unknown;
33616
+ };
33617
+ content: {
33618
+ "application/json": components["schemas"]["APIErrorEnvelope"];
33619
+ };
33620
+ };
33621
+ /** @description Possible error codes include `INTERNAL_ERROR`. Use `x-error-codes` for machine-readable retryability metadata. */
33622
+ 500: {
33623
+ headers: {
33624
+ [name: string]: unknown;
33625
+ };
33626
+ content: {
33627
+ "application/json": components["schemas"]["APIErrorEnvelope"];
33628
+ };
33629
+ };
33630
+ /** @description Possible error codes include `LOYALTY_UNAVAILABLE`. Use `x-error-codes` for machine-readable retryability metadata. */
33631
+ 503: {
33632
+ headers: {
33633
+ [name: string]: unknown;
33634
+ };
33635
+ content: {
33636
+ "application/json": components["schemas"]["APIErrorEnvelope"];
33637
+ };
33638
+ };
33639
+ };
33640
+ };
33641
+ loyalty_leat_session_create: {
33642
+ parameters: {
33643
+ query?: never;
33644
+ header?: never;
33645
+ path?: never;
33646
+ cookie?: never;
33647
+ };
33648
+ requestBody: {
33649
+ content: {
33650
+ "application/json": components["schemas"]["LeatSessionRequest"];
33651
+ "application/x-www-form-urlencoded": components["schemas"]["LeatSessionRequest"];
33652
+ "multipart/form-data": components["schemas"]["LeatSessionRequest"];
33653
+ };
33654
+ };
33655
+ responses: {
33656
+ 200: {
33657
+ headers: {
33658
+ [name: string]: unknown;
33659
+ };
33660
+ content: {
33661
+ "application/json": components["schemas"]["LeatSessionState"];
33662
+ };
33663
+ };
33664
+ /** @description Possible error codes include `VALIDATION_ERROR`. Use `x-error-codes` for machine-readable retryability metadata. */
33665
+ 400: {
33666
+ headers: {
33667
+ [name: string]: unknown;
33668
+ };
33669
+ content: {
33670
+ "application/json": components["schemas"]["APIErrorEnvelope"];
33671
+ };
33672
+ };
33673
+ /** @description Possible error codes include `UNAUTHORIZED`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `LOYALTY_SESSION_EXPIRED`. Use `x-error-codes` for machine-readable retryability metadata. */
33674
+ 401: {
33675
+ headers: {
33676
+ [name: string]: unknown;
33677
+ };
33678
+ content: {
33679
+ "application/json": components["schemas"]["APIErrorEnvelope"];
33680
+ };
33681
+ };
33682
+ /** @description Possible error codes include `FORBIDDEN`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `LOYALTY_SERVER_SIGNATURE_REQUIRED`. Use `x-error-codes` for machine-readable retryability metadata. */
33683
+ 403: {
33684
+ headers: {
33685
+ [name: string]: unknown;
33686
+ };
33687
+ content: {
33688
+ "application/json": components["schemas"]["APIErrorEnvelope"];
33689
+ };
33690
+ };
33691
+ /** @description Possible error codes include `NOT_FOUND`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `LOYALTY_NOT_AVAILABLE`. Use `x-error-codes` for machine-readable retryability metadata. */
33692
+ 404: {
33693
+ headers: {
33694
+ [name: string]: unknown;
33695
+ };
33696
+ content: {
33697
+ "application/json": components["schemas"]["APIErrorEnvelope"];
33698
+ };
33699
+ };
33700
+ /** @description Possible error codes include `RATE_LIMITED`. Use `x-error-codes` for machine-readable retryability metadata. */
33701
+ 429: {
33702
+ headers: {
33703
+ [name: string]: unknown;
33704
+ };
33705
+ content: {
33706
+ "application/json": components["schemas"]["APIErrorEnvelope"];
33707
+ };
33708
+ };
33709
+ /** @description Possible error codes include `INTERNAL_ERROR`. Use `x-error-codes` for machine-readable retryability metadata. */
33710
+ 500: {
33711
+ headers: {
33712
+ [name: string]: unknown;
33713
+ };
33714
+ content: {
33715
+ "application/json": components["schemas"]["APIErrorEnvelope"];
33716
+ };
33717
+ };
33718
+ /** @description Possible error codes include `LOYALTY_UNAVAILABLE`. Use `x-error-codes` for machine-readable retryability metadata. */
33719
+ 503: {
33720
+ headers: {
33721
+ [name: string]: unknown;
33722
+ };
33723
+ content: {
33724
+ "application/json": components["schemas"]["APIErrorEnvelope"];
33725
+ };
33726
+ };
33727
+ };
33728
+ };
33729
+ loyalty_leat_sign_out_create: {
33730
+ parameters: {
33731
+ query?: never;
33732
+ header?: never;
33733
+ path?: never;
33734
+ cookie?: never;
33735
+ };
33736
+ requestBody: {
33737
+ content: {
33738
+ "application/json": components["schemas"]["LeatSignOut"];
33739
+ "application/x-www-form-urlencoded": components["schemas"]["LeatSignOut"];
33740
+ "multipart/form-data": components["schemas"]["LeatSignOut"];
33741
+ };
33742
+ };
33743
+ responses: {
33744
+ /** @description No response body */
33745
+ 204: {
33746
+ headers: {
33747
+ [name: string]: unknown;
33748
+ };
33749
+ content?: never;
33750
+ };
33751
+ /** @description Possible error codes include `VALIDATION_ERROR`. Use `x-error-codes` for machine-readable retryability metadata. */
33752
+ 400: {
33753
+ headers: {
33754
+ [name: string]: unknown;
33755
+ };
33756
+ content: {
33757
+ "application/json": components["schemas"]["APIErrorEnvelope"];
33758
+ };
33759
+ };
33760
+ /** @description Possible error codes include `UNAUTHORIZED`. Use `x-error-codes` for machine-readable retryability metadata. */
33761
+ 401: {
33762
+ headers: {
33763
+ [name: string]: unknown;
33764
+ };
33765
+ content: {
33766
+ "application/json": components["schemas"]["APIErrorEnvelope"];
33767
+ };
33768
+ };
33769
+ /** @description Possible error codes include `FORBIDDEN`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `LOYALTY_SERVER_SIGNATURE_REQUIRED`. Use `x-error-codes` for machine-readable retryability metadata. */
33770
+ 403: {
33771
+ headers: {
33772
+ [name: string]: unknown;
33773
+ };
33774
+ content: {
33775
+ "application/json": components["schemas"]["APIErrorEnvelope"];
33776
+ };
33777
+ };
33778
+ /** @description Possible error codes include `NOT_FOUND`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `LOYALTY_NOT_AVAILABLE`. Use `x-error-codes` for machine-readable retryability metadata. */
33779
+ 404: {
33780
+ headers: {
33781
+ [name: string]: unknown;
33782
+ };
33783
+ content: {
33784
+ "application/json": components["schemas"]["APIErrorEnvelope"];
33785
+ };
33786
+ };
33787
+ /** @description Possible error codes include `RATE_LIMITED`. Use `x-error-codes` for machine-readable retryability metadata. */
33788
+ 429: {
33789
+ headers: {
33790
+ [name: string]: unknown;
33791
+ };
33792
+ content: {
33793
+ "application/json": components["schemas"]["APIErrorEnvelope"];
33794
+ };
33795
+ };
33796
+ /** @description Possible error codes include `INTERNAL_ERROR`. Use `x-error-codes` for machine-readable retryability metadata. */
33797
+ 500: {
33798
+ headers: {
33799
+ [name: string]: unknown;
33800
+ };
33801
+ content: {
33802
+ "application/json": components["schemas"]["APIErrorEnvelope"];
33803
+ };
33804
+ };
33805
+ /** @description Possible error codes include `LOYALTY_UNAVAILABLE`. Use `x-error-codes` for machine-readable retryability metadata. */
33806
+ 503: {
33807
+ headers: {
33808
+ [name: string]: unknown;
33809
+ };
33810
+ content: {
33811
+ "application/json": components["schemas"]["APIErrorEnvelope"];
33812
+ };
33813
+ };
33814
+ };
33815
+ };
33816
+ loyalty_leat_verify_create: {
33817
+ parameters: {
33818
+ query?: never;
33819
+ header?: never;
33820
+ path?: never;
33821
+ cookie?: never;
33822
+ };
33823
+ requestBody: {
33824
+ content: {
33825
+ "application/json": components["schemas"]["LeatVerify"];
33826
+ "application/x-www-form-urlencoded": components["schemas"]["LeatVerify"];
33827
+ "multipart/form-data": components["schemas"]["LeatVerify"];
33828
+ };
33829
+ };
33830
+ responses: {
33831
+ 200: {
33832
+ headers: {
33833
+ [name: string]: unknown;
33834
+ };
33835
+ content: {
33836
+ "application/json": components["schemas"]["LeatSession"];
33837
+ };
33838
+ };
33839
+ /** @description Possible error codes include `VALIDATION_ERROR`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `LOYALTY_CODE_INVALID`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `LOYALTY_CONSENT_REQUIRED`. Use `x-error-codes` for machine-readable retryability metadata. */
33840
+ 400: {
33841
+ headers: {
33842
+ [name: string]: unknown;
33843
+ };
33844
+ content: {
33845
+ "application/json": components["schemas"]["APIErrorEnvelope"];
33846
+ };
33847
+ };
33848
+ /** @description Possible error codes include `UNAUTHORIZED`. Use `x-error-codes` for machine-readable retryability metadata. */
33849
+ 401: {
33850
+ headers: {
33851
+ [name: string]: unknown;
33852
+ };
33853
+ content: {
33854
+ "application/json": components["schemas"]["APIErrorEnvelope"];
33855
+ };
33856
+ };
33857
+ /** @description Possible error codes include `FORBIDDEN`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `LOYALTY_SERVER_SIGNATURE_REQUIRED`. Use `x-error-codes` for machine-readable retryability metadata. */
33858
+ 403: {
33859
+ headers: {
33860
+ [name: string]: unknown;
33861
+ };
33862
+ content: {
33863
+ "application/json": components["schemas"]["APIErrorEnvelope"];
33864
+ };
33865
+ };
33866
+ /** @description Possible error codes include `NOT_FOUND`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `LOYALTY_NOT_AVAILABLE`. Use `x-error-codes` for machine-readable retryability metadata. */
33867
+ 404: {
33868
+ headers: {
33869
+ [name: string]: unknown;
33870
+ };
33871
+ content: {
33872
+ "application/json": components["schemas"]["APIErrorEnvelope"];
33873
+ };
33874
+ };
32686
33875
  /** @description Possible error codes include `LOYALTY_SIGN_IN_HELD`. Use `x-error-codes` for machine-readable retryability metadata. */
32687
33876
  409: {
32688
33877
  headers: {