@wix/auto_sdk_ecom_tip-settings 1.0.52 → 1.0.53

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 (45) hide show
  1. package/build/cjs/index.js +49 -28
  2. package/build/cjs/index.js.map +1 -1
  3. package/build/cjs/index.typings.d.ts +16 -0
  4. package/build/cjs/index.typings.js +49 -28
  5. package/build/cjs/index.typings.js.map +1 -1
  6. package/build/cjs/meta.d.ts +16 -0
  7. package/build/cjs/meta.js +49 -28
  8. package/build/cjs/meta.js.map +1 -1
  9. package/build/cjs/schemas.d.ts +14 -0
  10. package/build/cjs/schemas.js +42 -0
  11. package/build/cjs/schemas.js.map +1 -1
  12. package/build/es/index.mjs +49 -28
  13. package/build/es/index.mjs.map +1 -1
  14. package/build/es/index.typings.d.mts +16 -0
  15. package/build/es/index.typings.mjs +49 -28
  16. package/build/es/index.typings.mjs.map +1 -1
  17. package/build/es/meta.d.mts +16 -0
  18. package/build/es/meta.mjs +49 -28
  19. package/build/es/meta.mjs.map +1 -1
  20. package/build/es/schemas.d.mts +14 -0
  21. package/build/es/schemas.mjs +42 -0
  22. package/build/es/schemas.mjs.map +1 -1
  23. package/build/internal/cjs/index.js +49 -28
  24. package/build/internal/cjs/index.js.map +1 -1
  25. package/build/internal/cjs/index.typings.d.ts +16 -0
  26. package/build/internal/cjs/index.typings.js +49 -28
  27. package/build/internal/cjs/index.typings.js.map +1 -1
  28. package/build/internal/cjs/meta.d.ts +16 -0
  29. package/build/internal/cjs/meta.js +49 -28
  30. package/build/internal/cjs/meta.js.map +1 -1
  31. package/build/internal/cjs/schemas.d.ts +14 -0
  32. package/build/internal/cjs/schemas.js +42 -0
  33. package/build/internal/cjs/schemas.js.map +1 -1
  34. package/build/internal/es/index.mjs +49 -28
  35. package/build/internal/es/index.mjs.map +1 -1
  36. package/build/internal/es/index.typings.d.mts +16 -0
  37. package/build/internal/es/index.typings.mjs +49 -28
  38. package/build/internal/es/index.typings.mjs.map +1 -1
  39. package/build/internal/es/meta.d.mts +16 -0
  40. package/build/internal/es/meta.mjs +49 -28
  41. package/build/internal/es/meta.mjs.map +1 -1
  42. package/build/internal/es/schemas.d.mts +14 -0
  43. package/build/internal/es/schemas.mjs +42 -0
  44. package/build/internal/es/schemas.mjs.map +1 -1
  45. package/package.json +2 -2
package/build/cjs/meta.js CHANGED
@@ -94,16 +94,19 @@ function queryTipSettings(payload) {
94
94
  }),
95
95
  data: payload,
96
96
  transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
97
+ {
98
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
99
+ paths: [
100
+ { path: "tipSettings.autoTipOnCheckInPercentage" },
101
+ { path: "tipSettings.presets.value" }
102
+ ]
103
+ },
97
104
  {
98
105
  transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
99
106
  paths: [
100
107
  { path: "tipSettings.createdDate" },
101
108
  { path: "tipSettings.updatedDate" }
102
109
  ]
103
- },
104
- {
105
- transformFn: import_float2.transformRESTFloatToSDKFloat,
106
- paths: [{ path: "tipSettings.presets.value" }]
107
110
  }
108
111
  ])
109
112
  };
@@ -118,16 +121,19 @@ function updateTipSettings(payload) {
118
121
  transformFn: import_field_mask.transformSDKFieldMaskToRESTFieldMask,
119
122
  paths: [{ path: "fieldMask" }]
120
123
  },
124
+ {
125
+ transformFn: import_float.transformSDKFloatToRESTFloat,
126
+ paths: [
127
+ { path: "tipSettings.autoTipOnCheckInPercentage" },
128
+ { path: "tipSettings.presets.value" }
129
+ ]
130
+ },
121
131
  {
122
132
  transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
123
133
  paths: [
124
134
  { path: "tipSettings.createdDate" },
125
135
  { path: "tipSettings.updatedDate" }
126
136
  ]
127
- },
128
- {
129
- transformFn: import_float.transformSDKFloatToRESTFloat,
130
- paths: [{ path: "tipSettings.presets.value" }]
131
137
  }
132
138
  ]);
133
139
  const metadata = {
@@ -145,16 +151,19 @@ function updateTipSettings(payload) {
145
151
  }),
146
152
  data: serializedData,
147
153
  transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
154
+ {
155
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
156
+ paths: [
157
+ { path: "tipSettings.autoTipOnCheckInPercentage" },
158
+ { path: "tipSettings.presets.value" }
159
+ ]
160
+ },
148
161
  {
149
162
  transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
150
163
  paths: [
151
164
  { path: "tipSettings.createdDate" },
152
165
  { path: "tipSettings.updatedDate" }
153
166
  ]
154
- },
155
- {
156
- transformFn: import_float2.transformRESTFloatToSDKFloat,
157
- paths: [{ path: "tipSettings.presets.value" }]
158
167
  }
159
168
  ])
160
169
  };
@@ -165,16 +174,19 @@ function updateTipSettings(payload) {
165
174
  function createTipSettings(payload) {
166
175
  function __createTipSettings({ host }) {
167
176
  const serializedData = (0, import_transform_paths.transformPaths)(payload, [
177
+ {
178
+ transformFn: import_float.transformSDKFloatToRESTFloat,
179
+ paths: [
180
+ { path: "tipSettings.autoTipOnCheckInPercentage" },
181
+ { path: "tipSettings.presets.value" }
182
+ ]
183
+ },
168
184
  {
169
185
  transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
170
186
  paths: [
171
187
  { path: "tipSettings.createdDate" },
172
188
  { path: "tipSettings.updatedDate" }
173
189
  ]
174
- },
175
- {
176
- transformFn: import_float.transformSDKFloatToRESTFloat,
177
- paths: [{ path: "tipSettings.presets.value" }]
178
190
  }
179
191
  ]);
180
192
  const metadata = {
@@ -192,16 +204,19 @@ function createTipSettings(payload) {
192
204
  }),
193
205
  data: serializedData,
194
206
  transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
207
+ {
208
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
209
+ paths: [
210
+ { path: "tipSettings.autoTipOnCheckInPercentage" },
211
+ { path: "tipSettings.presets.value" }
212
+ ]
213
+ },
195
214
  {
196
215
  transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
197
216
  paths: [
198
217
  { path: "tipSettings.createdDate" },
199
218
  { path: "tipSettings.updatedDate" }
200
219
  ]
201
- },
202
- {
203
- transformFn: import_float2.transformRESTFloatToSDKFloat,
204
- paths: [{ path: "tipSettings.presets.value" }]
205
220
  }
206
221
  ])
207
222
  };
@@ -212,16 +227,19 @@ function createTipSettings(payload) {
212
227
  function createDefaultTipSettings(payload) {
213
228
  function __createDefaultTipSettings({ host }) {
214
229
  const serializedData = (0, import_transform_paths.transformPaths)(payload, [
230
+ {
231
+ transformFn: import_float.transformSDKFloatToRESTFloat,
232
+ paths: [
233
+ { path: "tipSettings.autoTipOnCheckInPercentage" },
234
+ { path: "tipSettings.presets.value" }
235
+ ]
236
+ },
215
237
  {
216
238
  transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
217
239
  paths: [
218
240
  { path: "tipSettings.createdDate" },
219
241
  { path: "tipSettings.updatedDate" }
220
242
  ]
221
- },
222
- {
223
- transformFn: import_float.transformSDKFloatToRESTFloat,
224
- paths: [{ path: "tipSettings.presets.value" }]
225
243
  }
226
244
  ]);
227
245
  const metadata = {
@@ -239,16 +257,19 @@ function createDefaultTipSettings(payload) {
239
257
  }),
240
258
  data: serializedData,
241
259
  transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
260
+ {
261
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
262
+ paths: [
263
+ { path: "tipSettings.autoTipOnCheckInPercentage" },
264
+ { path: "tipSettings.presets.value" }
265
+ ]
266
+ },
242
267
  {
243
268
  transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
244
269
  paths: [
245
270
  { path: "tipSettings.createdDate" },
246
271
  { path: "tipSettings.updatedDate" }
247
272
  ]
248
- },
249
- {
250
- transformFn: import_float2.transformRESTFloatToSDKFloat,
251
- paths: [{ path: "tipSettings.presets.value" }]
252
273
  }
253
274
  ])
254
275
  };
@@ -1 +1 @@
1
- {"version":3,"sources":["../../meta.ts","../../src/tips-settings-v1-tip-settings-tip-settings.http.ts","../../src/tips-settings-v1-tip-settings-tip-settings.types.ts","../../src/tips-settings-v1-tip-settings-tip-settings.meta.ts"],"sourcesContent":["export * from './src/tips-settings-v1-tip-settings-tip-settings.meta.js';\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformSDKFloatToRESTFloat } from '@wix/sdk-runtime/transformations/float';\nimport { transformRESTFloatToSDKFloat } from '@wix/sdk-runtime/transformations/float';\nimport { transformSDKTimestampToRESTTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformSDKFieldMaskToRESTFieldMask } from '@wix/sdk-runtime/transformations/field-mask';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveWixTipsSettingsV1TipSettingsServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'manage._base_domain_': [\n {\n srcPath: '/_api/tip-settings',\n destPath: '',\n },\n ],\n _: [\n {\n srcPath: '/_api/tip-settings',\n destPath: '',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/_api/tip-settings',\n destPath: '',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/tip-settings',\n destPath: '',\n },\n ],\n 'apps._base_domain_': [\n {\n srcPath: '/_api/tip-settings',\n destPath: '',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_ecom_tip-settings';\n\n/**\n * Creates a query to retrieve a list of tip settings.\n *\n * The `queryTipSettings()` function builds a query to retrieve a list of tip settings and returns a `TipSettingsQueryBuilder` object.\n *\n * The returned object contains the query definition, which is typically used to run the query using the [find()](https://dev.wix.com/docs/sdk/backend-modules/ecom/tip-settings/tip-settings-query-builder/find) function.\n *\n * You can refine the query by chaining `TipSettingsQueryBuilder` functions onto the query. `TipSettingsQueryBuilder` functions enable you to sort, filter, and control the results that `queryTipSettings()` returns.\n *\n * `queryTipSettings()` runs with the following `TipSettingsQueryBuilder` default that you can override:\n *\n * + `limit` is `50`.\n * + Sorted by `id` in ascending order.\n *\n * The functions that are chained to `queryTipSettings()` are applied in the order they are called. For example, if you apply `ascending(\"tipType\")` and then `ascending(\"locationId\")`, the results are sorted first by the `\"tipType\"`, and then, if there are multiple results with the same `\"tipType\"`, the items are sorted by `\"locationId\"`.\n *\n * The following `TipSettingsQueryBuilder` functions are supported for the `queryTipSettings()` function. For a full description of the tip settings object, see the object returned for the [items](https://dev.wix.com/docs/sdk/backend-modules/ecom/tip-settings/tip-settings-query-result/items) property in `TipSettingsQueryResult`.\n */\nexport function queryTipSettings(payload: object): RequestOptionsFactory<any> {\n function __queryTipSettings({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.tips.settings.v1.tip_settings',\n method: 'POST' as any,\n methodFqn: 'wix.tips.settings.v1.TipSettingsService.QueryTipSettings',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixTipsSettingsV1TipSettingsServiceUrl({\n protoPath: '/v1/tip-settings/query',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'tipSettings.createdDate' },\n { path: 'tipSettings.updatedDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [{ path: 'tipSettings.presets.value' }],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __queryTipSettings;\n}\n\n/**\n * Updates a `tipSettings` object.\n *\n *\n * You can't update the `default` field.\n */\nexport function updateTipSettings(payload: object): RequestOptionsFactory<any> {\n function __updateTipSettings({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFieldMaskToRESTFieldMask,\n paths: [{ path: 'fieldMask' }],\n },\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'tipSettings.createdDate' },\n { path: 'tipSettings.updatedDate' },\n ],\n },\n {\n transformFn: transformSDKFloatToRESTFloat,\n paths: [{ path: 'tipSettings.presets.value' }],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.tips.settings.v1.tip_settings',\n method: 'PATCH' as any,\n methodFqn: 'wix.tips.settings.v1.TipSettingsService.UpdateTipSettings',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixTipsSettingsV1TipSettingsServiceUrl({\n protoPath: '/v1/tip-settings',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'tipSettings.createdDate' },\n { path: 'tipSettings.updatedDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [{ path: 'tipSettings.presets.value' }],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __updateTipSettings;\n}\n\n/**\n * Creates a `tipSettings` object.\n *\n *\n * You can't create a `tipSettings` object with `{\"default\": true}`.\n */\nexport function createTipSettings(payload: object): RequestOptionsFactory<any> {\n function __createTipSettings({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'tipSettings.createdDate' },\n { path: 'tipSettings.updatedDate' },\n ],\n },\n {\n transformFn: transformSDKFloatToRESTFloat,\n paths: [{ path: 'tipSettings.presets.value' }],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.tips.settings.v1.tip_settings',\n method: 'POST' as any,\n methodFqn: 'wix.tips.settings.v1.TipSettingsService.CreateTipSettings',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixTipsSettingsV1TipSettingsServiceUrl({\n protoPath: '/v1/tip-settings',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'tipSettings.createdDate' },\n { path: 'tipSettings.updatedDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [{ path: 'tipSettings.presets.value' }],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __createTipSettings;\n}\n\n/**\n * Creates a default `tipSettings` object.\n *\n *\n * The call fails if there is already an existing default `tipSettings` object.\n */\nexport function createDefaultTipSettings(\n payload: object\n): RequestOptionsFactory<any> {\n function __createDefaultTipSettings({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'tipSettings.createdDate' },\n { path: 'tipSettings.updatedDate' },\n ],\n },\n {\n transformFn: transformSDKFloatToRESTFloat,\n paths: [{ path: 'tipSettings.presets.value' }],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.tips.settings.v1.tip_settings',\n method: 'POST' as any,\n methodFqn:\n 'wix.tips.settings.v1.TipSettingsService.CreateDefaultTipSettings',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixTipsSettingsV1TipSettingsServiceUrl({\n protoPath: '/v1/tip-settings/create-default',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'tipSettings.createdDate' },\n { path: 'tipSettings.updatedDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [{ path: 'tipSettings.presets.value' }],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __createDefaultTipSettings;\n}\n\n/**\n * Deletes a `tipSettings` object.\n *\n *\n * You can't delete the default `tipSettings` object.\n */\nexport function deleteTipSettings(payload: object): RequestOptionsFactory<any> {\n function __deleteTipSettings({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.tips.settings.v1.tip_settings',\n method: 'DELETE' as any,\n methodFqn: 'wix.tips.settings.v1.TipSettingsService.DeleteTipSettings',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixTipsSettingsV1TipSettingsServiceUrl({\n protoPath: '/v1/tip-settings/{tipSettingsId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __deleteTipSettings;\n}\n","/**\n * Tip settings define how tips are calculated and distributed among staff. When\n * Wix Tips is installed, default settings are automatically created. You can't\n * delete these default settings but you can update them. Creating additional\n * settings allows Wix users to customize tip screens for different payment\n * terminals or set specific presets for various products or services.\n */\nexport interface TipSettings extends TipSettingsIdentifierOneOf {\n /**\n * ID of the location ([SDK](https://dev.wix.com/docs/sdk/backend-modules/business-tools/locations/introduction) | [REST](https://dev.wix.com/docs/rest/business-management/locations/location-object))\n * for which the tip settings apply.\n * @format GUID\n */\n locationId?: string | null;\n /**\n * ID of the payment terminal for which the tip settings apply. Wix Tips doesn't\n * validate the ID you provide.\n *\n * Max: 30 characters\n * @maxLength 30\n */\n paymentTerminalId?: string | null;\n /**\n * ID of the Wix user for whom the tip settings apply. For example, the site owner or a\n * [site collaborator](https://support.wix.com/en/article/inviting-people-to-contribute-to-your-site).\n * @format GUID\n */\n userId?: string | null;\n /**\n * ID of the tip settings.\n * @format GUID\n * @readonly\n */\n id?: string | null;\n /** Tip type. */\n tipType?: TipTypeWithLiterals;\n /**\n * Information about the tip choices that Wix Tips displays to customers during the\n * eCommerce checkout ([SDK](https://dev.wix.com/docs/sdk/backend-modules/ecom/checkout/introduction) | [REST](https://dev.wix.com/docs/rest/business-solutions/e-commerce/checkout/introduction)).\n *\n * Min: `1` preset\n * Max: `3` presets\n * @minSize 1\n * @maxSize 3\n */\n presets?: Preset[];\n /**\n * Whether customers are allowed to tip during the\n * eCommerce checkout ([SDK](https://dev.wix.com/docs/sdk/backend-modules/ecom/checkout/introduction) | [REST](https://dev.wix.com/docs/rest/business-solutions/e-commerce/checkout/introduction)).\n *\n * Default: `true`\n */\n allowCustomerTip?: boolean | null;\n /**\n * Whether the Wix users are given the option to add a tip during the\n * payment collection flow in their dashboard.\n *\n * Default: `true`\n */\n allowBusinessTipAtPayment?: boolean | null;\n /**\n * Whether customers can enter a custom tip amount. If set to `false`, customers\n * can only select a tip value from the available `presets` and can't enter a\n * custom amount.\n *\n * Default: `true`\n */\n allowCustomAmount?: boolean | null;\n /**\n * Whether Wix users are allowed to edit tip distributions. If set to\n * `false`, Wix users can't edit distributions after they were created.\n *\n * Default: `true`\n */\n allowEditDistribution?: boolean | null;\n /**\n * How the tip is distributed among staff.\n *\n * Supported values:\n * `UNKNOWN_SPLIT_METHOD`: There is no information about the staff distribution method.\n * `EQUAL`: The tip is distributed equally among all staff.\n * `PROPORTIONAL`: The tip is distributed proportionally among staff.\n */\n staffDistributionMethod?: StaffDistributionMethodWithLiterals;\n /**\n * Revision number, which increments by 1 each time `tipSettings` object is\n * updated. To prevent conflicting changes, the current revision must be passed\n * when updating `tipSettings`. Ignored when creating a `tipSettings` object.\n * @readonly\n */\n revision?: string | null;\n /**\n * Date and time the tip settings were created in\n * `YYYY-MM-DDThh:mm:ss.sssZ` format.\n * @readonly\n */\n createdDate?: Date | null;\n /**\n * Date and time the tip settings were last updated in\n * `YYYY-MM-DDThh:mm:ss.sssZ` format.\n * @readonly\n */\n updatedDate?: Date | null;\n /**\n * Whether these are the default tip settings.\n *\n * Wix Tips automatically creates the default settings during\n * the app's installation. You can't delete these default settings\n * but you can update them. Wix Tips uses the default settings\n * to calculate tips, unless you specify other settings.\n * @readonly\n */\n default?: boolean | null;\n /**\n * ID of the app that has created the settings. See the list of app IDs for\n * Wix business solutions ([SDK](https://dev.wix.com/docs/sdk/articles/work-with-the-sdk/apps-created-by-wix) | [REST](https://dev.wix.com/docs/rest/articles/getting-started/apps-created-by-wix)).\n * @format GUID\n */\n appId?: string | null;\n /**\n * Custom field data for the `tipSettings` object. Extended fields must be\n * configured in the app dashboard before they can be accessed with API calls.\n */\n extendedFields?: ExtendedFields;\n}\n\n/** @oneof */\nexport interface TipSettingsIdentifierOneOf {\n /**\n * ID of the location ([SDK](https://dev.wix.com/docs/sdk/backend-modules/business-tools/locations/introduction) | [REST](https://dev.wix.com/docs/rest/business-management/locations/location-object))\n * for which the tip settings apply.\n * @format GUID\n */\n locationId?: string | null;\n /**\n * ID of the payment terminal for which the tip settings apply. Wix Tips doesn't\n * validate the ID you provide.\n *\n * Max: 30 characters\n * @maxLength 30\n */\n paymentTerminalId?: string | null;\n /**\n * ID of the Wix user for whom the tip settings apply. For example, the site owner or a\n * [site collaborator](https://support.wix.com/en/article/inviting-people-to-contribute-to-your-site).\n * @format GUID\n */\n userId?: string | null;\n}\n\nexport enum TipType {\n /** There is no information about the tip type. */\n UNKNOWN_TIP_TYPE = 'UNKNOWN_TIP_TYPE',\n /** The tip is calculated as a percentage of the subtotal of all related line items. */\n PERCENTAGE = 'PERCENTAGE',\n /** The tip is a fixed amount. */\n AMOUNT = 'AMOUNT',\n}\n\n/** @enumType */\nexport type TipTypeWithLiterals =\n | TipType\n | 'UNKNOWN_TIP_TYPE'\n | 'PERCENTAGE'\n | 'AMOUNT';\n\nexport interface Preset {\n /**\n * Value of the preset tip choice that's displayed to customers in the\n * eCommerce checkout ([SDK](https://dev.wix.com/docs/sdk/backend-modules/ecom/checkout/introduction) | [REST](https://dev.wix.com/docs/rest/business-solutions/e-commerce/checkout/introduction)).\n * For example, `5`, `10`, and `15` percent or `1`, `3`, and `5` USD.\n *\n * Min: `0`\n */\n value?: number | null;\n /**\n * Whether this tip choice value is the default preset that's highlighted automatically in the\n * eCommerce checkout ([SDK](https://dev.wix.com/docs/sdk/backend-modules/ecom/checkout/introduction) | [REST](https://dev.wix.com/docs/rest/business-solutions/e-commerce/checkout/introduction)).\n *\n * Default: `false`\n */\n default?: boolean | null;\n}\n\nexport enum StaffDistributionMethod {\n /** There is no information about the staff distribution method. */\n UNKNOWN_SPLIT_METHOD = 'UNKNOWN_SPLIT_METHOD',\n /** All staff receive an equal amount of the tip. */\n EQUAL = 'EQUAL',\n /** Staff receive a proportional amount of the tip. */\n PROPORTIONAL = 'PROPORTIONAL',\n}\n\n/** @enumType */\nexport type StaffDistributionMethodWithLiterals =\n | StaffDistributionMethod\n | 'UNKNOWN_SPLIT_METHOD'\n | 'EQUAL'\n | 'PROPORTIONAL';\n\nexport interface ExtendedFields {\n /**\n * Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\n * The value of each key is structured according to the schema defined when the extended fields were configured.\n *\n * You can only access fields for which you have the appropriate permissions.\n *\n * Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).\n */\n namespaces?: Record<string, Record<string, any>>;\n}\n\nexport interface QueryTipSettingsRequest {\n /** WQL expression */\n query: QueryV2;\n}\n\nexport interface QueryV2 extends QueryV2PagingMethodOneOf {\n /** Paging options to limit and skip the number of items. */\n paging?: Paging;\n /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */\n cursorPaging?: CursorPaging;\n /**\n * Filter object in the following format:\n * `\"filter\" : {\n * \"fieldName1\": \"value1\",\n * \"fieldName2\":{\"$operator\":\"value2\"}\n * }`\n * Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`\n */\n filter?: Record<string, any> | null;\n /**\n * Sort object in the following format:\n * `[{\"fieldName\":\"sortField1\",\"order\":\"ASC\"},{\"fieldName\":\"sortField2\",\"order\":\"DESC\"}]`\n * @maxSize 10\n */\n sort?: Sorting[];\n /**\n * Array of projected fields. A list of specific field names to return. If `fieldsets` are also specified, the union of `fieldsets` and `fields` is returned.\n * @maxLength 200\n * @maxSize 10\n */\n fields?: string[];\n /**\n * Array of named, predefined sets of projected fields. A array of predefined named sets of fields to be returned. Specifying multiple `fieldsets` will return the union of fields from all sets. If `fields` are also specified, the union of `fieldsets` and `fields` is returned.\n * @maxLength 200\n * @maxSize 10\n */\n fieldsets?: string[];\n}\n\n/** @oneof */\nexport interface QueryV2PagingMethodOneOf {\n /** Paging options to limit and skip the number of items. */\n paging?: Paging;\n /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */\n cursorPaging?: CursorPaging;\n}\n\nexport interface Sorting {\n /**\n * Name of the field to sort by.\n * @maxLength 512\n */\n fieldName?: string;\n /** Sort order. */\n order?: SortOrderWithLiterals;\n}\n\nexport enum SortOrder {\n ASC = 'ASC',\n DESC = 'DESC',\n}\n\n/** @enumType */\nexport type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';\n\nexport interface Paging {\n /** Number of items to load. */\n limit?: number | null;\n /** Number of items to skip in the current sort order. */\n offset?: number | null;\n}\n\nexport interface CursorPaging {\n /**\n * Maximum number of items to return in the results.\n * @max 100\n */\n limit?: number | null;\n /**\n * Pointer to the next or previous page in the list of results.\n *\n * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.\n * Not relevant for the first request.\n * @maxLength 16000\n */\n cursor?: string | null;\n}\n\nexport interface QueryTipSettingsResponse {\n /** Retrieved `tipSettings` objects. */\n tipSettings?: TipSettings[];\n /** Metadata for the paged set of retrieved `tipSettings` objects. */\n pagingMetadata?: PagingMetadataV2;\n}\n\nexport interface PagingMetadataV2 {\n /** Number of items returned in the response. */\n count?: number | null;\n /** Offset that was requested. */\n offset?: number | null;\n /** Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set. */\n total?: number | null;\n /** Flag that indicates the server failed to calculate the `total` field. */\n tooManyToCount?: boolean | null;\n /** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */\n cursors?: Cursors;\n}\n\nexport interface Cursors {\n /**\n * Cursor string pointing to the next page in the list of results.\n * @maxLength 16000\n */\n next?: string | null;\n /**\n * Cursor pointing to the previous page in the list of results.\n * @maxLength 16000\n */\n prev?: string | null;\n}\n\nexport interface UpdateTipSettingsRequest {\n /** Tip settings to update. */\n tipSettings: TipSettings;\n}\n\nexport interface UpdateTipSettingsResponse {\n /** Updated tip settings. */\n tipSettings?: TipSettings;\n}\n\nexport interface CreateTipSettingsRequest {\n /** Tip settings to create. */\n tipSettings: TipSettings;\n}\n\nexport interface CreateTipSettingsResponse {\n /** Created tip settings. */\n tipSettings?: TipSettings;\n}\n\nexport interface CreateDefaultTipSettingsRequest {\n /** Default tip settings to create. */\n tipSettings: TipSettings;\n}\n\nexport interface CreateDefaultTipSettingsResponse {\n /** Created default tip settings. */\n tipSettings?: TipSettings;\n}\n\nexport interface DeleteTipSettingsRequest {\n /**\n * ID of the `tipSettings` object to delete.\n * @format GUID\n */\n tipSettingsId: string | null;\n}\n\nexport interface DeleteTipSettingsResponse {}\n\nexport interface DomainEvent extends DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n /** Event ID. With this ID you can easily spot duplicated events and ignore them. */\n id?: string;\n /**\n * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.\n * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.\n */\n entityFqdn?: string;\n /**\n * Event action name, placed at the top level to make it easier for users to dispatch messages.\n * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.\n */\n slug?: string;\n /** ID of the entity associated with the event. */\n entityId?: string;\n /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */\n eventTime?: Date | null;\n /**\n * Whether the event was triggered as a result of a privacy regulation application\n * (for example, GDPR).\n */\n triggeredByAnonymizeRequest?: boolean | null;\n /** If present, indicates the action that triggered the event. */\n originatedFrom?: string | null;\n /**\n * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at `16:00` and then again at `16:01`, the second update will always have a higher sequence number.\n * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.\n */\n entityEventSequence?: string | null;\n}\n\n/** @oneof */\nexport interface DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n}\n\nexport interface EntityCreatedEvent {\n entityAsJson?: string;\n /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */\n restoreInfo?: RestoreInfo;\n}\n\nexport interface RestoreInfo {\n deletedDate?: Date | null;\n}\n\nexport interface EntityUpdatedEvent {\n /**\n * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.\n * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.\n * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.\n */\n currentEntityAsJson?: string;\n}\n\nexport interface EntityDeletedEvent {\n /** Entity that was deleted. */\n deletedEntityAsJson?: string | null;\n}\n\nexport interface ActionEvent {\n bodyAsJson?: string;\n}\n\nexport interface MessageEnvelope {\n /**\n * App instance ID.\n * @format GUID\n */\n instanceId?: string | null;\n /**\n * Event type.\n * @maxLength 150\n */\n eventType?: string;\n /** The identification type and identity data. */\n identity?: IdentificationData;\n /** Stringify payload. */\n data?: string;\n /** Details related to the account */\n accountInfo?: AccountInfo;\n}\n\nexport interface IdentificationData extends IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n /** @readonly */\n identityType?: WebhookIdentityTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n}\n\nexport enum WebhookIdentityType {\n UNKNOWN = 'UNKNOWN',\n ANONYMOUS_VISITOR = 'ANONYMOUS_VISITOR',\n MEMBER = 'MEMBER',\n WIX_USER = 'WIX_USER',\n APP = 'APP',\n}\n\n/** @enumType */\nexport type WebhookIdentityTypeWithLiterals =\n | WebhookIdentityType\n | 'UNKNOWN'\n | 'ANONYMOUS_VISITOR'\n | 'MEMBER'\n | 'WIX_USER'\n | 'APP';\n\nexport interface AccountInfo {\n /**\n * ID of the Wix account associated with the event.\n * @format GUID\n */\n accountId?: string | null;\n /**\n * ID of the parent Wix account. Only included when accountId belongs to a child account.\n * @format GUID\n */\n parentAccountId?: string | null;\n /**\n * ID of the Wix site associated with the event. Only included when the event is tied to a specific site.\n * @format GUID\n */\n siteId?: string | null;\n}\n\n/** @docsIgnore */\nexport type UpdateTipSettingsApplicationErrors =\n | {\n code?: 'DEFAULT_SETTINGS_ALREADY_EXISTS';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'CANNOT_HAVE_MORE_THAN_ONE_DEFAULT_PRESET';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'PRESET_PERCENTAGE_TOO_HIGH';\n description?: string;\n data?: Record<string, any>;\n };\n/** @docsIgnore */\nexport type CreateTipSettingsApplicationErrors =\n | {\n code?: 'CANNOT_HAVE_MORE_THAN_ONE_DEFAULT_PRESET';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'PRESET_PERCENTAGE_TOO_HIGH';\n description?: string;\n data?: Record<string, any>;\n };\n/** @docsIgnore */\nexport type CreateDefaultTipSettingsApplicationErrors =\n | {\n code?: 'DEFAULT_SETTINGS_ALREADY_EXISTS';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'CANNOT_HAVE_MORE_THAN_ONE_DEFAULT_PRESET';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'PRESET_PERCENTAGE_TOO_HIGH';\n description?: string;\n data?: Record<string, any>;\n };\n/** @docsIgnore */\nexport type DeleteTipSettingsApplicationErrors = {\n code?: 'CANNOT_DELETE_DEFAULT_SETTINGS';\n description?: string;\n data?: Record<string, any>;\n};\n","import * as ambassadorWixTipsSettingsV1TipSettings from './tips-settings-v1-tip-settings-tip-settings.http.js';\nimport * as ambassadorWixTipsSettingsV1TipSettingsTypes from './tips-settings-v1-tip-settings-tip-settings.types.js';\nimport * as ambassadorWixTipsSettingsV1TipSettingsUniversalTypes from './tips-settings-v1-tip-settings-tip-settings.universal.js';\n\nexport type __PublicMethodMetaInfo<\n K = string,\n M = unknown,\n T = unknown,\n S = unknown,\n Q = unknown,\n R = unknown\n> = {\n getUrl: (context: any) => string;\n httpMethod: K;\n path: string;\n pathParams: M;\n __requestType: T;\n __originalRequestType: S;\n __responseType: Q;\n __originalResponseType: R;\n};\n\nexport function queryTipSettings(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixTipsSettingsV1TipSettingsUniversalTypes.QueryTipSettingsRequest,\n ambassadorWixTipsSettingsV1TipSettingsTypes.QueryTipSettingsRequest,\n ambassadorWixTipsSettingsV1TipSettingsUniversalTypes.QueryTipSettingsResponse,\n ambassadorWixTipsSettingsV1TipSettingsTypes.QueryTipSettingsResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixTipsSettingsV1TipSettings.queryTipSettings(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/tip-settings/query',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function updateTipSettings(): __PublicMethodMetaInfo<\n 'PATCH',\n {},\n ambassadorWixTipsSettingsV1TipSettingsUniversalTypes.UpdateTipSettingsRequest,\n ambassadorWixTipsSettingsV1TipSettingsTypes.UpdateTipSettingsRequest,\n ambassadorWixTipsSettingsV1TipSettingsUniversalTypes.UpdateTipSettingsResponse,\n ambassadorWixTipsSettingsV1TipSettingsTypes.UpdateTipSettingsResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixTipsSettingsV1TipSettings.updateTipSettings(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'PATCH',\n path: '/v1/tip-settings',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function createTipSettings(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixTipsSettingsV1TipSettingsUniversalTypes.CreateTipSettingsRequest,\n ambassadorWixTipsSettingsV1TipSettingsTypes.CreateTipSettingsRequest,\n ambassadorWixTipsSettingsV1TipSettingsUniversalTypes.CreateTipSettingsResponse,\n ambassadorWixTipsSettingsV1TipSettingsTypes.CreateTipSettingsResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixTipsSettingsV1TipSettings.createTipSettings(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/tip-settings',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function createDefaultTipSettings(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixTipsSettingsV1TipSettingsUniversalTypes.CreateDefaultTipSettingsRequest,\n ambassadorWixTipsSettingsV1TipSettingsTypes.CreateDefaultTipSettingsRequest,\n ambassadorWixTipsSettingsV1TipSettingsUniversalTypes.CreateDefaultTipSettingsResponse,\n ambassadorWixTipsSettingsV1TipSettingsTypes.CreateDefaultTipSettingsResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixTipsSettingsV1TipSettings.createDefaultTipSettings(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/tip-settings/create-default',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function deleteTipSettings(): __PublicMethodMetaInfo<\n 'DELETE',\n { tipSettingsId: string },\n ambassadorWixTipsSettingsV1TipSettingsUniversalTypes.DeleteTipSettingsRequest,\n ambassadorWixTipsSettingsV1TipSettingsTypes.DeleteTipSettingsRequest,\n ambassadorWixTipsSettingsV1TipSettingsUniversalTypes.DeleteTipSettingsResponse,\n ambassadorWixTipsSettingsV1TipSettingsTypes.DeleteTipSettingsResponse\n> {\n const payload = { tipSettingsId: ':tipSettingsId' } as any;\n\n const getRequestOptions =\n ambassadorWixTipsSettingsV1TipSettings.deleteTipSettings(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'DELETE',\n path: '/v1/tip-settings/{tipSettingsId}',\n pathParams: { tipSettingsId: 'tipSettingsId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport {\n TipSettings as TipSettingsOriginal,\n TipSettingsIdentifierOneOf as TipSettingsIdentifierOneOfOriginal,\n TipType as TipTypeOriginal,\n TipTypeWithLiterals as TipTypeWithLiteralsOriginal,\n Preset as PresetOriginal,\n StaffDistributionMethod as StaffDistributionMethodOriginal,\n StaffDistributionMethodWithLiterals as StaffDistributionMethodWithLiteralsOriginal,\n ExtendedFields as ExtendedFieldsOriginal,\n QueryTipSettingsRequest as QueryTipSettingsRequestOriginal,\n QueryV2 as QueryV2Original,\n QueryV2PagingMethodOneOf as QueryV2PagingMethodOneOfOriginal,\n Sorting as SortingOriginal,\n SortOrder as SortOrderOriginal,\n SortOrderWithLiterals as SortOrderWithLiteralsOriginal,\n Paging as PagingOriginal,\n CursorPaging as CursorPagingOriginal,\n QueryTipSettingsResponse as QueryTipSettingsResponseOriginal,\n PagingMetadataV2 as PagingMetadataV2Original,\n Cursors as CursorsOriginal,\n UpdateTipSettingsRequest as UpdateTipSettingsRequestOriginal,\n UpdateTipSettingsResponse as UpdateTipSettingsResponseOriginal,\n CreateTipSettingsRequest as CreateTipSettingsRequestOriginal,\n CreateTipSettingsResponse as CreateTipSettingsResponseOriginal,\n CreateDefaultTipSettingsRequest as CreateDefaultTipSettingsRequestOriginal,\n CreateDefaultTipSettingsResponse as CreateDefaultTipSettingsResponseOriginal,\n DeleteTipSettingsRequest as DeleteTipSettingsRequestOriginal,\n DeleteTipSettingsResponse as DeleteTipSettingsResponseOriginal,\n DomainEvent as DomainEventOriginal,\n DomainEventBodyOneOf as DomainEventBodyOneOfOriginal,\n EntityCreatedEvent as EntityCreatedEventOriginal,\n RestoreInfo as RestoreInfoOriginal,\n EntityUpdatedEvent as EntityUpdatedEventOriginal,\n EntityDeletedEvent as EntityDeletedEventOriginal,\n ActionEvent as ActionEventOriginal,\n MessageEnvelope as MessageEnvelopeOriginal,\n IdentificationData as IdentificationDataOriginal,\n IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal,\n WebhookIdentityType as WebhookIdentityTypeOriginal,\n WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal,\n AccountInfo as AccountInfoOriginal,\n UpdateTipSettingsApplicationErrors as UpdateTipSettingsApplicationErrorsOriginal,\n CreateTipSettingsApplicationErrors as CreateTipSettingsApplicationErrorsOriginal,\n CreateDefaultTipSettingsApplicationErrors as CreateDefaultTipSettingsApplicationErrorsOriginal,\n DeleteTipSettingsApplicationErrors as DeleteTipSettingsApplicationErrorsOriginal,\n} from './tips-settings-v1-tip-settings-tip-settings.types.js';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kCAAAA;AAAA,EAAA,yBAAAC;AAAA,EAAA,yBAAAC;AAAA,EAAA,wBAAAC;AAAA,EAAA,yBAAAC;AAAA;AAAA;;;ACAA,0BAAkC;AAClC,mBAA6C;AAC7C,IAAAC,gBAA6C;AAC7C,uBAAqD;AACrD,IAAAC,oBAAqD;AACrD,wBAAqD;AACrD,6BAA+B;AAC/B,IAAAC,uBAA2B;AAI3B,SAAS,8CACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,GAAG;AAAA,MACD;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,sBAAsB;AAAA,MACpB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,mBAAmB;AAAA,MACjB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,sBAAsB;AAAA,MACpB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,EACF;AAEA,aAAO,iCAAW,OAAO,OAAO,MAAM,EAAE,iBAAiB,CAAC,CAAC;AAC7D;AAEA,IAAM,eAAe;AAoBd,SAAS,iBAAiB,SAA6C;AAC5E,WAAS,mBAAmB,EAAE,KAAK,GAAQ;AACzC,UAAM,WAAW;AAAA,MACf,YAAY;AAAA,MACZ,QAAQ;AAAA,MACR,WAAW;AAAA,MACX,aAAa;AAAA,MACb,kBAAkB;AAAA,QAChB,wBAAwB;AAAA,MAC1B;AAAA,MACA,KAAK,8CAA8C;AAAA,QACjD,WAAW;AAAA,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,SAASC,qBAOd;AACA,QAAM,UAAU,CAAC;AAEjB,QAAM,oBACmC,kBAAkB,OAAO;AAElE,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;AAEO,SAASC,4BAOd;AACA,QAAM,UAAU,CAAC;AAEjB,QAAM,oBACmC,yBAAyB,OAAO;AAEzE,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;AAEO,SAASC,qBAOd;AACA,QAAM,UAAU,EAAE,eAAe,iBAAiB;AAElD,QAAM,oBACmC,kBAAkB,OAAO;AAElE,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,EAAE,eAAe,gBAAgB;AAAA,IAC7C,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["createDefaultTipSettings","createTipSettings","deleteTipSettings","queryTipSettings","updateTipSettings","import_float","import_timestamp","import_rest_modules","payload","TipType","StaffDistributionMethod","SortOrder","WebhookIdentityType","queryTipSettings","updateTipSettings","createTipSettings","createDefaultTipSettings","deleteTipSettings"]}
1
+ {"version":3,"sources":["../../meta.ts","../../src/tips-settings-v1-tip-settings-tip-settings.http.ts","../../src/tips-settings-v1-tip-settings-tip-settings.types.ts","../../src/tips-settings-v1-tip-settings-tip-settings.meta.ts"],"sourcesContent":["export * from './src/tips-settings-v1-tip-settings-tip-settings.meta.js';\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformSDKFloatToRESTFloat } from '@wix/sdk-runtime/transformations/float';\nimport { transformRESTFloatToSDKFloat } from '@wix/sdk-runtime/transformations/float';\nimport { transformSDKTimestampToRESTTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformSDKFieldMaskToRESTFieldMask } from '@wix/sdk-runtime/transformations/field-mask';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveWixTipsSettingsV1TipSettingsServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'manage._base_domain_': [\n {\n srcPath: '/_api/tip-settings',\n destPath: '',\n },\n ],\n _: [\n {\n srcPath: '/_api/tip-settings',\n destPath: '',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/_api/tip-settings',\n destPath: '',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/tip-settings',\n destPath: '',\n },\n ],\n 'apps._base_domain_': [\n {\n srcPath: '/_api/tip-settings',\n destPath: '',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_ecom_tip-settings';\n\n/**\n * Creates a query to retrieve a list of tip settings.\n *\n * The `queryTipSettings()` function builds a query to retrieve a list of tip settings and returns a `TipSettingsQueryBuilder` object.\n *\n * The returned object contains the query definition, which is typically used to run the query using the [find()](https://dev.wix.com/docs/sdk/backend-modules/ecom/tip-settings/tip-settings-query-builder/find) function.\n *\n * You can refine the query by chaining `TipSettingsQueryBuilder` functions onto the query. `TipSettingsQueryBuilder` functions enable you to sort, filter, and control the results that `queryTipSettings()` returns.\n *\n * `queryTipSettings()` runs with the following `TipSettingsQueryBuilder` default that you can override:\n *\n * + `limit` is `50`.\n * + Sorted by `id` in ascending order.\n *\n * The functions that are chained to `queryTipSettings()` are applied in the order they are called. For example, if you apply `ascending(\"tipType\")` and then `ascending(\"locationId\")`, the results are sorted first by the `\"tipType\"`, and then, if there are multiple results with the same `\"tipType\"`, the items are sorted by `\"locationId\"`.\n *\n * The following `TipSettingsQueryBuilder` functions are supported for the `queryTipSettings()` function. For a full description of the tip settings object, see the object returned for the [items](https://dev.wix.com/docs/sdk/backend-modules/ecom/tip-settings/tip-settings-query-result/items) property in `TipSettingsQueryResult`.\n */\nexport function queryTipSettings(payload: object): RequestOptionsFactory<any> {\n function __queryTipSettings({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.tips.settings.v1.tip_settings',\n method: 'POST' as any,\n methodFqn: 'wix.tips.settings.v1.TipSettingsService.QueryTipSettings',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixTipsSettingsV1TipSettingsServiceUrl({\n protoPath: '/v1/tip-settings/query',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'tipSettings.autoTipOnCheckInPercentage' },\n { path: 'tipSettings.presets.value' },\n ],\n },\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'tipSettings.createdDate' },\n { path: 'tipSettings.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __queryTipSettings;\n}\n\n/**\n * Updates a `tipSettings` object.\n *\n *\n * You can't update the `default` field.\n */\nexport function updateTipSettings(payload: object): RequestOptionsFactory<any> {\n function __updateTipSettings({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFieldMaskToRESTFieldMask,\n paths: [{ path: 'fieldMask' }],\n },\n {\n transformFn: transformSDKFloatToRESTFloat,\n paths: [\n { path: 'tipSettings.autoTipOnCheckInPercentage' },\n { path: 'tipSettings.presets.value' },\n ],\n },\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'tipSettings.createdDate' },\n { path: 'tipSettings.updatedDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.tips.settings.v1.tip_settings',\n method: 'PATCH' as any,\n methodFqn: 'wix.tips.settings.v1.TipSettingsService.UpdateTipSettings',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixTipsSettingsV1TipSettingsServiceUrl({\n protoPath: '/v1/tip-settings',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'tipSettings.autoTipOnCheckInPercentage' },\n { path: 'tipSettings.presets.value' },\n ],\n },\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'tipSettings.createdDate' },\n { path: 'tipSettings.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __updateTipSettings;\n}\n\n/**\n * Creates a `tipSettings` object.\n *\n *\n * You can't create a `tipSettings` object with `{\"default\": true}`.\n */\nexport function createTipSettings(payload: object): RequestOptionsFactory<any> {\n function __createTipSettings({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFloatToRESTFloat,\n paths: [\n { path: 'tipSettings.autoTipOnCheckInPercentage' },\n { path: 'tipSettings.presets.value' },\n ],\n },\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'tipSettings.createdDate' },\n { path: 'tipSettings.updatedDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.tips.settings.v1.tip_settings',\n method: 'POST' as any,\n methodFqn: 'wix.tips.settings.v1.TipSettingsService.CreateTipSettings',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixTipsSettingsV1TipSettingsServiceUrl({\n protoPath: '/v1/tip-settings',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'tipSettings.autoTipOnCheckInPercentage' },\n { path: 'tipSettings.presets.value' },\n ],\n },\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'tipSettings.createdDate' },\n { path: 'tipSettings.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __createTipSettings;\n}\n\n/**\n * Creates a default `tipSettings` object.\n *\n *\n * The call fails if there is already an existing default `tipSettings` object.\n */\nexport function createDefaultTipSettings(\n payload: object\n): RequestOptionsFactory<any> {\n function __createDefaultTipSettings({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFloatToRESTFloat,\n paths: [\n { path: 'tipSettings.autoTipOnCheckInPercentage' },\n { path: 'tipSettings.presets.value' },\n ],\n },\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'tipSettings.createdDate' },\n { path: 'tipSettings.updatedDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.tips.settings.v1.tip_settings',\n method: 'POST' as any,\n methodFqn:\n 'wix.tips.settings.v1.TipSettingsService.CreateDefaultTipSettings',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixTipsSettingsV1TipSettingsServiceUrl({\n protoPath: '/v1/tip-settings/create-default',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'tipSettings.autoTipOnCheckInPercentage' },\n { path: 'tipSettings.presets.value' },\n ],\n },\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'tipSettings.createdDate' },\n { path: 'tipSettings.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __createDefaultTipSettings;\n}\n\n/**\n * Deletes a `tipSettings` object.\n *\n *\n * You can't delete the default `tipSettings` object.\n */\nexport function deleteTipSettings(payload: object): RequestOptionsFactory<any> {\n function __deleteTipSettings({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.tips.settings.v1.tip_settings',\n method: 'DELETE' as any,\n methodFqn: 'wix.tips.settings.v1.TipSettingsService.DeleteTipSettings',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixTipsSettingsV1TipSettingsServiceUrl({\n protoPath: '/v1/tip-settings/{tipSettingsId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __deleteTipSettings;\n}\n","/**\n * Tip settings define how tips are calculated and distributed among staff. When\n * Wix Tips is installed, default settings are automatically created. You can't\n * delete these default settings but you can update them. Creating additional\n * settings allows Wix users to customize tip screens for different payment\n * terminals or set specific presets for various products or services.\n */\nexport interface TipSettings extends TipSettingsIdentifierOneOf {\n /**\n * ID of the location ([SDK](https://dev.wix.com/docs/sdk/backend-modules/business-tools/locations/introduction) | [REST](https://dev.wix.com/docs/rest/business-management/locations/location-object))\n * for which the tip settings apply.\n * @format GUID\n */\n locationId?: string | null;\n /**\n * ID of the payment terminal for which the tip settings apply. Wix Tips doesn't\n * validate the ID you provide.\n *\n * Max: 30 characters\n * @maxLength 30\n */\n paymentTerminalId?: string | null;\n /**\n * ID of the Wix user for whom the tip settings apply. For example, the site owner or a\n * [site collaborator](https://support.wix.com/en/article/inviting-people-to-contribute-to-your-site).\n * @format GUID\n */\n userId?: string | null;\n /**\n * ID of the tip settings.\n * @format GUID\n * @readonly\n */\n id?: string | null;\n /** Tip type. */\n tipType?: TipTypeWithLiterals;\n /**\n * Information about the tip choices that Wix Tips displays to customers during the\n * eCommerce checkout ([SDK](https://dev.wix.com/docs/sdk/backend-modules/ecom/checkout/introduction) | [REST](https://dev.wix.com/docs/rest/business-solutions/e-commerce/checkout/introduction)).\n *\n * Min: `1` preset\n * Max: `3` presets\n * @minSize 1\n * @maxSize 3\n */\n presets?: Preset[];\n /**\n * Whether customers are allowed to tip during the\n * eCommerce checkout ([SDK](https://dev.wix.com/docs/sdk/backend-modules/ecom/checkout/introduction) | [REST](https://dev.wix.com/docs/rest/business-solutions/e-commerce/checkout/introduction)).\n *\n * Default: `true`\n */\n allowCustomerTip?: boolean | null;\n /**\n * Whether the Wix users are given the option to add a tip during the\n * payment collection flow in their dashboard.\n *\n * Default: `true`\n */\n allowBusinessTipAtPayment?: boolean | null;\n /**\n * Whether customers can enter a custom tip amount. If set to `false`, customers\n * can only select a tip value from the available `presets` and can't enter a\n * custom amount.\n *\n * Default: `true`\n */\n allowCustomAmount?: boolean | null;\n /**\n * Whether Wix users are allowed to edit tip distributions. If set to\n * `false`, Wix users can't edit distributions after they were created.\n *\n * Default: `true`\n */\n allowEditDistribution?: boolean | null;\n /**\n * Whether a tip is automatically added to the related order on check-in.\n * When `true`, a tip of `auto_tip_on_check_in_percentage` percent is added\n * to the order when a check-in occurs.\n *\n * Default: `false`\n */\n autoTipOnCheckInEnabled?: boolean | null;\n /**\n * The tip percentage that is automatically added to the order on check-in when\n * `auto_tip_on_check_in_enabled` is `true`.\n *\n * Min: `1`\n * Max: `100`\n */\n autoTipOnCheckInPercentage?: number | null;\n /**\n * How the tip is distributed among staff.\n *\n * Supported values:\n * `UNKNOWN_SPLIT_METHOD`: There is no information about the staff distribution method.\n * `EQUAL`: The tip is distributed equally among all staff.\n * `PROPORTIONAL`: The tip is distributed proportionally among staff.\n */\n staffDistributionMethod?: StaffDistributionMethodWithLiterals;\n /**\n * Revision number, which increments by 1 each time `tipSettings` object is\n * updated. To prevent conflicting changes, the current revision must be passed\n * when updating `tipSettings`. Ignored when creating a `tipSettings` object.\n * @readonly\n */\n revision?: string | null;\n /**\n * Date and time the tip settings were created in\n * `YYYY-MM-DDThh:mm:ss.sssZ` format.\n * @readonly\n */\n createdDate?: Date | null;\n /**\n * Date and time the tip settings were last updated in\n * `YYYY-MM-DDThh:mm:ss.sssZ` format.\n * @readonly\n */\n updatedDate?: Date | null;\n /**\n * Whether these are the default tip settings.\n *\n * Wix Tips automatically creates the default settings during\n * the app's installation. You can't delete these default settings\n * but you can update them. Wix Tips uses the default settings\n * to calculate tips, unless you specify other settings.\n * @readonly\n */\n default?: boolean | null;\n /**\n * ID of the app that has created the settings. See the list of app IDs for\n * Wix business solutions ([SDK](https://dev.wix.com/docs/sdk/articles/work-with-the-sdk/apps-created-by-wix) | [REST](https://dev.wix.com/docs/rest/articles/getting-started/apps-created-by-wix)).\n * @format GUID\n */\n appId?: string | null;\n /**\n * Custom field data for the `tipSettings` object. Extended fields must be\n * configured in the app dashboard before they can be accessed with API calls.\n */\n extendedFields?: ExtendedFields;\n}\n\n/** @oneof */\nexport interface TipSettingsIdentifierOneOf {\n /**\n * ID of the location ([SDK](https://dev.wix.com/docs/sdk/backend-modules/business-tools/locations/introduction) | [REST](https://dev.wix.com/docs/rest/business-management/locations/location-object))\n * for which the tip settings apply.\n * @format GUID\n */\n locationId?: string | null;\n /**\n * ID of the payment terminal for which the tip settings apply. Wix Tips doesn't\n * validate the ID you provide.\n *\n * Max: 30 characters\n * @maxLength 30\n */\n paymentTerminalId?: string | null;\n /**\n * ID of the Wix user for whom the tip settings apply. For example, the site owner or a\n * [site collaborator](https://support.wix.com/en/article/inviting-people-to-contribute-to-your-site).\n * @format GUID\n */\n userId?: string | null;\n}\n\nexport enum TipType {\n /** There is no information about the tip type. */\n UNKNOWN_TIP_TYPE = 'UNKNOWN_TIP_TYPE',\n /** The tip is calculated as a percentage of the subtotal of all related line items. */\n PERCENTAGE = 'PERCENTAGE',\n /** The tip is a fixed amount. */\n AMOUNT = 'AMOUNT',\n}\n\n/** @enumType */\nexport type TipTypeWithLiterals =\n | TipType\n | 'UNKNOWN_TIP_TYPE'\n | 'PERCENTAGE'\n | 'AMOUNT';\n\nexport interface Preset {\n /**\n * Value of the preset tip choice that's displayed to customers in the\n * eCommerce checkout ([SDK](https://dev.wix.com/docs/sdk/backend-modules/ecom/checkout/introduction) | [REST](https://dev.wix.com/docs/rest/business-solutions/e-commerce/checkout/introduction)).\n * For example, `5`, `10`, and `15` percent or `1`, `3`, and `5` USD.\n *\n * Min: `0`\n */\n value?: number | null;\n /**\n * Whether this tip choice value is the default preset that's highlighted automatically in the\n * eCommerce checkout ([SDK](https://dev.wix.com/docs/sdk/backend-modules/ecom/checkout/introduction) | [REST](https://dev.wix.com/docs/rest/business-solutions/e-commerce/checkout/introduction)).\n *\n * Default: `false`\n */\n default?: boolean | null;\n}\n\nexport enum StaffDistributionMethod {\n /** There is no information about the staff distribution method. */\n UNKNOWN_SPLIT_METHOD = 'UNKNOWN_SPLIT_METHOD',\n /** All staff receive an equal amount of the tip. */\n EQUAL = 'EQUAL',\n /** Staff receive a proportional amount of the tip. */\n PROPORTIONAL = 'PROPORTIONAL',\n}\n\n/** @enumType */\nexport type StaffDistributionMethodWithLiterals =\n | StaffDistributionMethod\n | 'UNKNOWN_SPLIT_METHOD'\n | 'EQUAL'\n | 'PROPORTIONAL';\n\nexport interface ExtendedFields {\n /**\n * Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\n * The value of each key is structured according to the schema defined when the extended fields were configured.\n *\n * You can only access fields for which you have the appropriate permissions.\n *\n * Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).\n */\n namespaces?: Record<string, Record<string, any>>;\n}\n\nexport interface QueryTipSettingsRequest {\n /** WQL expression */\n query: QueryV2;\n}\n\nexport interface QueryV2 extends QueryV2PagingMethodOneOf {\n /** Paging options to limit and skip the number of items. */\n paging?: Paging;\n /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */\n cursorPaging?: CursorPaging;\n /**\n * Filter object in the following format:\n * `\"filter\" : {\n * \"fieldName1\": \"value1\",\n * \"fieldName2\":{\"$operator\":\"value2\"}\n * }`\n * Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`\n */\n filter?: Record<string, any> | null;\n /**\n * Sort object in the following format:\n * `[{\"fieldName\":\"sortField1\",\"order\":\"ASC\"},{\"fieldName\":\"sortField2\",\"order\":\"DESC\"}]`\n * @maxSize 10\n */\n sort?: Sorting[];\n /**\n * Array of projected fields. A list of specific field names to return. If `fieldsets` are also specified, the union of `fieldsets` and `fields` is returned.\n * @maxLength 200\n * @maxSize 10\n */\n fields?: string[];\n /**\n * Array of named, predefined sets of projected fields. A array of predefined named sets of fields to be returned. Specifying multiple `fieldsets` will return the union of fields from all sets. If `fields` are also specified, the union of `fieldsets` and `fields` is returned.\n * @maxLength 200\n * @maxSize 10\n */\n fieldsets?: string[];\n}\n\n/** @oneof */\nexport interface QueryV2PagingMethodOneOf {\n /** Paging options to limit and skip the number of items. */\n paging?: Paging;\n /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */\n cursorPaging?: CursorPaging;\n}\n\nexport interface Sorting {\n /**\n * Name of the field to sort by.\n * @maxLength 512\n */\n fieldName?: string;\n /** Sort order. */\n order?: SortOrderWithLiterals;\n}\n\nexport enum SortOrder {\n ASC = 'ASC',\n DESC = 'DESC',\n}\n\n/** @enumType */\nexport type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';\n\nexport interface Paging {\n /** Number of items to load. */\n limit?: number | null;\n /** Number of items to skip in the current sort order. */\n offset?: number | null;\n}\n\nexport interface CursorPaging {\n /**\n * Maximum number of items to return in the results.\n * @max 100\n */\n limit?: number | null;\n /**\n * Pointer to the next or previous page in the list of results.\n *\n * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.\n * Not relevant for the first request.\n * @maxLength 16000\n */\n cursor?: string | null;\n}\n\nexport interface QueryTipSettingsResponse {\n /** Retrieved `tipSettings` objects. */\n tipSettings?: TipSettings[];\n /** Metadata for the paged set of retrieved `tipSettings` objects. */\n pagingMetadata?: PagingMetadataV2;\n}\n\nexport interface PagingMetadataV2 {\n /** Number of items returned in the response. */\n count?: number | null;\n /** Offset that was requested. */\n offset?: number | null;\n /** Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set. */\n total?: number | null;\n /** Flag that indicates the server failed to calculate the `total` field. */\n tooManyToCount?: boolean | null;\n /** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */\n cursors?: Cursors;\n}\n\nexport interface Cursors {\n /**\n * Cursor string pointing to the next page in the list of results.\n * @maxLength 16000\n */\n next?: string | null;\n /**\n * Cursor pointing to the previous page in the list of results.\n * @maxLength 16000\n */\n prev?: string | null;\n}\n\nexport interface UpdateTipSettingsRequest {\n /** Tip settings to update. */\n tipSettings: TipSettings;\n}\n\nexport interface UpdateTipSettingsResponse {\n /** Updated tip settings. */\n tipSettings?: TipSettings;\n}\n\nexport interface CreateTipSettingsRequest {\n /** Tip settings to create. */\n tipSettings: TipSettings;\n}\n\nexport interface CreateTipSettingsResponse {\n /** Created tip settings. */\n tipSettings?: TipSettings;\n}\n\nexport interface CreateDefaultTipSettingsRequest {\n /** Default tip settings to create. */\n tipSettings: TipSettings;\n}\n\nexport interface CreateDefaultTipSettingsResponse {\n /** Created default tip settings. */\n tipSettings?: TipSettings;\n}\n\nexport interface DeleteTipSettingsRequest {\n /**\n * ID of the `tipSettings` object to delete.\n * @format GUID\n */\n tipSettingsId: string | null;\n}\n\nexport interface DeleteTipSettingsResponse {}\n\nexport interface DomainEvent extends DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n /** Event ID. With this ID you can easily spot duplicated events and ignore them. */\n id?: string;\n /**\n * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.\n * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.\n */\n entityFqdn?: string;\n /**\n * Event action name, placed at the top level to make it easier for users to dispatch messages.\n * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.\n */\n slug?: string;\n /** ID of the entity associated with the event. */\n entityId?: string;\n /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */\n eventTime?: Date | null;\n /**\n * Whether the event was triggered as a result of a privacy regulation application\n * (for example, GDPR).\n */\n triggeredByAnonymizeRequest?: boolean | null;\n /** If present, indicates the action that triggered the event. */\n originatedFrom?: string | null;\n /**\n * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at `16:00` and then again at `16:01`, the second update will always have a higher sequence number.\n * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.\n */\n entityEventSequence?: string | null;\n}\n\n/** @oneof */\nexport interface DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n}\n\nexport interface EntityCreatedEvent {\n entityAsJson?: string;\n /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */\n restoreInfo?: RestoreInfo;\n}\n\nexport interface RestoreInfo {\n deletedDate?: Date | null;\n}\n\nexport interface EntityUpdatedEvent {\n /**\n * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.\n * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.\n * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.\n */\n currentEntityAsJson?: string;\n}\n\nexport interface EntityDeletedEvent {\n /** Entity that was deleted. */\n deletedEntityAsJson?: string | null;\n}\n\nexport interface ActionEvent {\n bodyAsJson?: string;\n}\n\nexport interface MessageEnvelope {\n /**\n * App instance ID.\n * @format GUID\n */\n instanceId?: string | null;\n /**\n * Event type.\n * @maxLength 150\n */\n eventType?: string;\n /** The identification type and identity data. */\n identity?: IdentificationData;\n /** Stringify payload. */\n data?: string;\n /** Details related to the account */\n accountInfo?: AccountInfo;\n}\n\nexport interface IdentificationData extends IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n /** @readonly */\n identityType?: WebhookIdentityTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n}\n\nexport enum WebhookIdentityType {\n UNKNOWN = 'UNKNOWN',\n ANONYMOUS_VISITOR = 'ANONYMOUS_VISITOR',\n MEMBER = 'MEMBER',\n WIX_USER = 'WIX_USER',\n APP = 'APP',\n}\n\n/** @enumType */\nexport type WebhookIdentityTypeWithLiterals =\n | WebhookIdentityType\n | 'UNKNOWN'\n | 'ANONYMOUS_VISITOR'\n | 'MEMBER'\n | 'WIX_USER'\n | 'APP';\n\nexport interface AccountInfo {\n /**\n * ID of the Wix account associated with the event.\n * @format GUID\n */\n accountId?: string | null;\n /**\n * ID of the parent Wix account. Only included when accountId belongs to a child account.\n * @format GUID\n */\n parentAccountId?: string | null;\n /**\n * ID of the Wix site associated with the event. Only included when the event is tied to a specific site.\n * @format GUID\n */\n siteId?: string | null;\n}\n\n/** @docsIgnore */\nexport type UpdateTipSettingsApplicationErrors =\n | {\n code?: 'DEFAULT_SETTINGS_ALREADY_EXISTS';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'CANNOT_HAVE_MORE_THAN_ONE_DEFAULT_PRESET';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'PRESET_PERCENTAGE_TOO_HIGH';\n description?: string;\n data?: Record<string, any>;\n };\n/** @docsIgnore */\nexport type CreateTipSettingsApplicationErrors =\n | {\n code?: 'CANNOT_HAVE_MORE_THAN_ONE_DEFAULT_PRESET';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'PRESET_PERCENTAGE_TOO_HIGH';\n description?: string;\n data?: Record<string, any>;\n };\n/** @docsIgnore */\nexport type CreateDefaultTipSettingsApplicationErrors =\n | {\n code?: 'DEFAULT_SETTINGS_ALREADY_EXISTS';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'CANNOT_HAVE_MORE_THAN_ONE_DEFAULT_PRESET';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'PRESET_PERCENTAGE_TOO_HIGH';\n description?: string;\n data?: Record<string, any>;\n };\n/** @docsIgnore */\nexport type DeleteTipSettingsApplicationErrors = {\n code?: 'CANNOT_DELETE_DEFAULT_SETTINGS';\n description?: string;\n data?: Record<string, any>;\n};\n","import * as ambassadorWixTipsSettingsV1TipSettings from './tips-settings-v1-tip-settings-tip-settings.http.js';\nimport * as ambassadorWixTipsSettingsV1TipSettingsTypes from './tips-settings-v1-tip-settings-tip-settings.types.js';\nimport * as ambassadorWixTipsSettingsV1TipSettingsUniversalTypes from './tips-settings-v1-tip-settings-tip-settings.universal.js';\n\nexport type __PublicMethodMetaInfo<\n K = string,\n M = unknown,\n T = unknown,\n S = unknown,\n Q = unknown,\n R = unknown\n> = {\n getUrl: (context: any) => string;\n httpMethod: K;\n path: string;\n pathParams: M;\n __requestType: T;\n __originalRequestType: S;\n __responseType: Q;\n __originalResponseType: R;\n};\n\nexport function queryTipSettings(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixTipsSettingsV1TipSettingsUniversalTypes.QueryTipSettingsRequest,\n ambassadorWixTipsSettingsV1TipSettingsTypes.QueryTipSettingsRequest,\n ambassadorWixTipsSettingsV1TipSettingsUniversalTypes.QueryTipSettingsResponse,\n ambassadorWixTipsSettingsV1TipSettingsTypes.QueryTipSettingsResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixTipsSettingsV1TipSettings.queryTipSettings(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/tip-settings/query',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function updateTipSettings(): __PublicMethodMetaInfo<\n 'PATCH',\n {},\n ambassadorWixTipsSettingsV1TipSettingsUniversalTypes.UpdateTipSettingsRequest,\n ambassadorWixTipsSettingsV1TipSettingsTypes.UpdateTipSettingsRequest,\n ambassadorWixTipsSettingsV1TipSettingsUniversalTypes.UpdateTipSettingsResponse,\n ambassadorWixTipsSettingsV1TipSettingsTypes.UpdateTipSettingsResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixTipsSettingsV1TipSettings.updateTipSettings(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'PATCH',\n path: '/v1/tip-settings',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function createTipSettings(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixTipsSettingsV1TipSettingsUniversalTypes.CreateTipSettingsRequest,\n ambassadorWixTipsSettingsV1TipSettingsTypes.CreateTipSettingsRequest,\n ambassadorWixTipsSettingsV1TipSettingsUniversalTypes.CreateTipSettingsResponse,\n ambassadorWixTipsSettingsV1TipSettingsTypes.CreateTipSettingsResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixTipsSettingsV1TipSettings.createTipSettings(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/tip-settings',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function createDefaultTipSettings(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixTipsSettingsV1TipSettingsUniversalTypes.CreateDefaultTipSettingsRequest,\n ambassadorWixTipsSettingsV1TipSettingsTypes.CreateDefaultTipSettingsRequest,\n ambassadorWixTipsSettingsV1TipSettingsUniversalTypes.CreateDefaultTipSettingsResponse,\n ambassadorWixTipsSettingsV1TipSettingsTypes.CreateDefaultTipSettingsResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixTipsSettingsV1TipSettings.createDefaultTipSettings(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/tip-settings/create-default',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function deleteTipSettings(): __PublicMethodMetaInfo<\n 'DELETE',\n { tipSettingsId: string },\n ambassadorWixTipsSettingsV1TipSettingsUniversalTypes.DeleteTipSettingsRequest,\n ambassadorWixTipsSettingsV1TipSettingsTypes.DeleteTipSettingsRequest,\n ambassadorWixTipsSettingsV1TipSettingsUniversalTypes.DeleteTipSettingsResponse,\n ambassadorWixTipsSettingsV1TipSettingsTypes.DeleteTipSettingsResponse\n> {\n const payload = { tipSettingsId: ':tipSettingsId' } as any;\n\n const getRequestOptions =\n ambassadorWixTipsSettingsV1TipSettings.deleteTipSettings(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'DELETE',\n path: '/v1/tip-settings/{tipSettingsId}',\n pathParams: { tipSettingsId: 'tipSettingsId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport {\n TipSettings as TipSettingsOriginal,\n TipSettingsIdentifierOneOf as TipSettingsIdentifierOneOfOriginal,\n TipType as TipTypeOriginal,\n TipTypeWithLiterals as TipTypeWithLiteralsOriginal,\n Preset as PresetOriginal,\n StaffDistributionMethod as StaffDistributionMethodOriginal,\n StaffDistributionMethodWithLiterals as StaffDistributionMethodWithLiteralsOriginal,\n ExtendedFields as ExtendedFieldsOriginal,\n QueryTipSettingsRequest as QueryTipSettingsRequestOriginal,\n QueryV2 as QueryV2Original,\n QueryV2PagingMethodOneOf as QueryV2PagingMethodOneOfOriginal,\n Sorting as SortingOriginal,\n SortOrder as SortOrderOriginal,\n SortOrderWithLiterals as SortOrderWithLiteralsOriginal,\n Paging as PagingOriginal,\n CursorPaging as CursorPagingOriginal,\n QueryTipSettingsResponse as QueryTipSettingsResponseOriginal,\n PagingMetadataV2 as PagingMetadataV2Original,\n Cursors as CursorsOriginal,\n UpdateTipSettingsRequest as UpdateTipSettingsRequestOriginal,\n UpdateTipSettingsResponse as UpdateTipSettingsResponseOriginal,\n CreateTipSettingsRequest as CreateTipSettingsRequestOriginal,\n CreateTipSettingsResponse as CreateTipSettingsResponseOriginal,\n CreateDefaultTipSettingsRequest as CreateDefaultTipSettingsRequestOriginal,\n CreateDefaultTipSettingsResponse as CreateDefaultTipSettingsResponseOriginal,\n DeleteTipSettingsRequest as DeleteTipSettingsRequestOriginal,\n DeleteTipSettingsResponse as DeleteTipSettingsResponseOriginal,\n DomainEvent as DomainEventOriginal,\n DomainEventBodyOneOf as DomainEventBodyOneOfOriginal,\n EntityCreatedEvent as EntityCreatedEventOriginal,\n RestoreInfo as RestoreInfoOriginal,\n EntityUpdatedEvent as EntityUpdatedEventOriginal,\n EntityDeletedEvent as EntityDeletedEventOriginal,\n ActionEvent as ActionEventOriginal,\n MessageEnvelope as MessageEnvelopeOriginal,\n IdentificationData as IdentificationDataOriginal,\n IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal,\n WebhookIdentityType as WebhookIdentityTypeOriginal,\n WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal,\n AccountInfo as AccountInfoOriginal,\n UpdateTipSettingsApplicationErrors as UpdateTipSettingsApplicationErrorsOriginal,\n CreateTipSettingsApplicationErrors as CreateTipSettingsApplicationErrorsOriginal,\n CreateDefaultTipSettingsApplicationErrors as CreateDefaultTipSettingsApplicationErrorsOriginal,\n DeleteTipSettingsApplicationErrors as DeleteTipSettingsApplicationErrorsOriginal,\n} from './tips-settings-v1-tip-settings-tip-settings.types.js';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kCAAAA;AAAA,EAAA,yBAAAC;AAAA,EAAA,yBAAAC;AAAA,EAAA,wBAAAC;AAAA,EAAA,yBAAAC;AAAA;AAAA;;;ACAA,0BAAkC;AAClC,mBAA6C;AAC7C,IAAAC,gBAA6C;AAC7C,uBAAqD;AACrD,IAAAC,oBAAqD;AACrD,wBAAqD;AACrD,6BAA+B;AAC/B,IAAAC,uBAA2B;AAI3B,SAAS,8CACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,GAAG;AAAA,MACD;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,sBAAsB;AAAA,MACpB;A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ASC,4BAOd;AACA,QAAM,UAAU,CAAC;AAEjB,QAAM,oBACmC,yBAAyB,OAAO;AAEzE,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;AAEO,SAASC,qBAOd;AACA,QAAM,UAAU,EAAE,eAAe,iBAAiB;AAElD,QAAM,oBACmC,kBAAkB,OAAO;AAElE,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,EAAE,eAAe,gBAAgB;AAAA,IAC7C,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["createDefaultTipSettings","createTipSettings","deleteTipSettings","queryTipSettings","updateTipSettings","import_float","import_timestamp","import_rest_modules","payload","TipType","StaffDistributionMethod","SortOrder","WebhookIdentityType","queryTipSettings","updateTipSettings","createTipSettings","createDefaultTipSettings","deleteTipSettings"]}
@@ -168,6 +168,8 @@ declare const QueryTipSettingsResponse: z.ZodObject<{
168
168
  allowBusinessTipAtPayment: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
169
169
  allowCustomAmount: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
170
170
  allowEditDistribution: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
171
+ autoTipOnCheckInEnabled: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
172
+ autoTipOnCheckInPercentage: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
171
173
  staffDistributionMethod: z.ZodOptional<z.ZodEnum<{
172
174
  UNKNOWN_SPLIT_METHOD: "UNKNOWN_SPLIT_METHOD";
173
175
  EQUAL: "EQUAL";
@@ -225,6 +227,8 @@ declare const UpdateTipSettingsRequest: z.ZodObject<{
225
227
  allowBusinessTipAtPayment: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
226
228
  allowCustomAmount: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
227
229
  allowEditDistribution: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
230
+ autoTipOnCheckInEnabled: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
231
+ autoTipOnCheckInPercentage: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
228
232
  staffDistributionMethod: z.ZodOptional<z.ZodEnum<{
229
233
  UNKNOWN_SPLIT_METHOD: "UNKNOWN_SPLIT_METHOD";
230
234
  EQUAL: "EQUAL";
@@ -271,6 +275,8 @@ declare const UpdateTipSettingsResponse: z.ZodIntersection<z.ZodObject<{
271
275
  allowBusinessTipAtPayment: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
272
276
  allowCustomAmount: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
273
277
  allowEditDistribution: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
278
+ autoTipOnCheckInEnabled: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
279
+ autoTipOnCheckInPercentage: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
274
280
  staffDistributionMethod: z.ZodOptional<z.ZodEnum<{
275
281
  UNKNOWN_SPLIT_METHOD: "UNKNOWN_SPLIT_METHOD";
276
282
  EQUAL: "EQUAL";
@@ -317,6 +323,8 @@ declare const CreateTipSettingsRequest: z.ZodObject<{
317
323
  allowBusinessTipAtPayment: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
318
324
  allowCustomAmount: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
319
325
  allowEditDistribution: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
326
+ autoTipOnCheckInEnabled: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
327
+ autoTipOnCheckInPercentage: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
320
328
  staffDistributionMethod: z.ZodOptional<z.ZodEnum<{
321
329
  UNKNOWN_SPLIT_METHOD: "UNKNOWN_SPLIT_METHOD";
322
330
  EQUAL: "EQUAL";
@@ -363,6 +371,8 @@ declare const CreateTipSettingsResponse: z.ZodIntersection<z.ZodObject<{
363
371
  allowBusinessTipAtPayment: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
364
372
  allowCustomAmount: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
365
373
  allowEditDistribution: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
374
+ autoTipOnCheckInEnabled: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
375
+ autoTipOnCheckInPercentage: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
366
376
  staffDistributionMethod: z.ZodOptional<z.ZodEnum<{
367
377
  UNKNOWN_SPLIT_METHOD: "UNKNOWN_SPLIT_METHOD";
368
378
  EQUAL: "EQUAL";
@@ -409,6 +419,8 @@ declare const CreateDefaultTipSettingsRequest: z.ZodObject<{
409
419
  allowBusinessTipAtPayment: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
410
420
  allowCustomAmount: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
411
421
  allowEditDistribution: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
422
+ autoTipOnCheckInEnabled: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
423
+ autoTipOnCheckInPercentage: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
412
424
  staffDistributionMethod: z.ZodOptional<z.ZodEnum<{
413
425
  UNKNOWN_SPLIT_METHOD: "UNKNOWN_SPLIT_METHOD";
414
426
  EQUAL: "EQUAL";
@@ -456,6 +468,8 @@ declare const CreateDefaultTipSettingsResponse: z.ZodObject<{
456
468
  allowBusinessTipAtPayment: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
457
469
  allowCustomAmount: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
458
470
  allowEditDistribution: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
471
+ autoTipOnCheckInEnabled: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
472
+ autoTipOnCheckInPercentage: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
459
473
  staffDistributionMethod: z.ZodOptional<z.ZodEnum<{
460
474
  UNKNOWN_SPLIT_METHOD: "UNKNOWN_SPLIT_METHOD";
461
475
  EQUAL: "EQUAL";
@@ -227,6 +227,12 @@ var QueryTipSettingsResponse = z.object({
227
227
  allowEditDistribution: z.boolean().describe(
228
228
  "Whether Wix users are allowed to edit tip distributions. If set to\n`false`, Wix users can't edit distributions after they were created.\n\nDefault: `true`"
229
229
  ).optional().nullable(),
230
+ autoTipOnCheckInEnabled: z.boolean().describe(
231
+ "Whether a tip is automatically added to the related order on check-in.\nWhen `true`, a tip of `auto_tip_on_check_in_percentage` percent is added\nto the order when a check-in occurs.\n\nDefault: `false`"
232
+ ).optional().nullable(),
233
+ autoTipOnCheckInPercentage: z.number().describe(
234
+ "The tip percentage that is automatically added to the order on check-in when\n`auto_tip_on_check_in_enabled` is `true`.\n\nMin: `1`\nMax: `100`"
235
+ ).optional().nullable(),
230
236
  staffDistributionMethod: z.enum(["UNKNOWN_SPLIT_METHOD", "EQUAL", "PROPORTIONAL"]).describe(
231
237
  "How the tip is distributed among staff.\n\nSupported values:\n`UNKNOWN_SPLIT_METHOD`: There is no information about the staff distribution method.\n`EQUAL`: The tip is distributed equally among all staff.\n`PROPORTIONAL`: The tip is distributed proportionally among staff."
232
238
  ).optional(),
@@ -343,6 +349,12 @@ var UpdateTipSettingsRequest = z.object({
343
349
  allowEditDistribution: z.boolean().describe(
344
350
  "Whether Wix users are allowed to edit tip distributions. If set to\n`false`, Wix users can't edit distributions after they were created.\n\nDefault: `true`"
345
351
  ).optional().nullable(),
352
+ autoTipOnCheckInEnabled: z.boolean().describe(
353
+ "Whether a tip is automatically added to the related order on check-in.\nWhen `true`, a tip of `auto_tip_on_check_in_percentage` percent is added\nto the order when a check-in occurs.\n\nDefault: `false`"
354
+ ).optional().nullable(),
355
+ autoTipOnCheckInPercentage: z.number().describe(
356
+ "The tip percentage that is automatically added to the order on check-in when\n`auto_tip_on_check_in_enabled` is `true`.\n\nMin: `1`\nMax: `100`"
357
+ ).optional().nullable(),
346
358
  staffDistributionMethod: z.enum(["UNKNOWN_SPLIT_METHOD", "EQUAL", "PROPORTIONAL"]).optional(),
347
359
  revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
348
360
  "Revision number, which increments by 1 each time `tipSettings` object is\nupdated. To prevent conflicting changes, the current revision must be passed\nwhen updating `tipSettings`. Ignored when creating a `tipSettings` object."
@@ -435,6 +447,12 @@ var UpdateTipSettingsResponse = z.intersection(
435
447
  allowEditDistribution: z.boolean().describe(
436
448
  "Whether Wix users are allowed to edit tip distributions. If set to\n`false`, Wix users can't edit distributions after they were created.\n\nDefault: `true`"
437
449
  ).optional().nullable(),
450
+ autoTipOnCheckInEnabled: z.boolean().describe(
451
+ "Whether a tip is automatically added to the related order on check-in.\nWhen `true`, a tip of `auto_tip_on_check_in_percentage` percent is added\nto the order when a check-in occurs.\n\nDefault: `false`"
452
+ ).optional().nullable(),
453
+ autoTipOnCheckInPercentage: z.number().describe(
454
+ "The tip percentage that is automatically added to the order on check-in when\n`auto_tip_on_check_in_enabled` is `true`.\n\nMin: `1`\nMax: `100`"
455
+ ).optional().nullable(),
438
456
  staffDistributionMethod: z.enum(["UNKNOWN_SPLIT_METHOD", "EQUAL", "PROPORTIONAL"]).describe(
439
457
  "How the tip is distributed among staff.\n\nSupported values:\n`UNKNOWN_SPLIT_METHOD`: There is no information about the staff distribution method.\n`EQUAL`: The tip is distributed equally among all staff.\n`PROPORTIONAL`: The tip is distributed proportionally among staff."
440
458
  ).optional(),
@@ -529,6 +547,12 @@ var CreateTipSettingsRequest = z.object({
529
547
  allowEditDistribution: z.boolean().describe(
530
548
  "Whether Wix users are allowed to edit tip distributions. If set to\n`false`, Wix users can't edit distributions after they were created.\n\nDefault: `true`"
531
549
  ).optional().nullable(),
550
+ autoTipOnCheckInEnabled: z.boolean().describe(
551
+ "Whether a tip is automatically added to the related order on check-in.\nWhen `true`, a tip of `auto_tip_on_check_in_percentage` percent is added\nto the order when a check-in occurs.\n\nDefault: `false`"
552
+ ).optional().nullable(),
553
+ autoTipOnCheckInPercentage: z.number().describe(
554
+ "The tip percentage that is automatically added to the order on check-in when\n`auto_tip_on_check_in_enabled` is `true`.\n\nMin: `1`\nMax: `100`"
555
+ ).optional().nullable(),
532
556
  staffDistributionMethod: z.enum(["UNKNOWN_SPLIT_METHOD", "EQUAL", "PROPORTIONAL"]).optional(),
533
557
  revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
534
558
  "Revision number, which increments by 1 each time `tipSettings` object is\nupdated. To prevent conflicting changes, the current revision must be passed\nwhen updating `tipSettings`. Ignored when creating a `tipSettings` object."
@@ -621,6 +645,12 @@ var CreateTipSettingsResponse = z.intersection(
621
645
  allowEditDistribution: z.boolean().describe(
622
646
  "Whether Wix users are allowed to edit tip distributions. If set to\n`false`, Wix users can't edit distributions after they were created.\n\nDefault: `true`"
623
647
  ).optional().nullable(),
648
+ autoTipOnCheckInEnabled: z.boolean().describe(
649
+ "Whether a tip is automatically added to the related order on check-in.\nWhen `true`, a tip of `auto_tip_on_check_in_percentage` percent is added\nto the order when a check-in occurs.\n\nDefault: `false`"
650
+ ).optional().nullable(),
651
+ autoTipOnCheckInPercentage: z.number().describe(
652
+ "The tip percentage that is automatically added to the order on check-in when\n`auto_tip_on_check_in_enabled` is `true`.\n\nMin: `1`\nMax: `100`"
653
+ ).optional().nullable(),
624
654
  staffDistributionMethod: z.enum(["UNKNOWN_SPLIT_METHOD", "EQUAL", "PROPORTIONAL"]).describe(
625
655
  "How the tip is distributed among staff.\n\nSupported values:\n`UNKNOWN_SPLIT_METHOD`: There is no information about the staff distribution method.\n`EQUAL`: The tip is distributed equally among all staff.\n`PROPORTIONAL`: The tip is distributed proportionally among staff."
626
656
  ).optional(),
@@ -715,6 +745,12 @@ var CreateDefaultTipSettingsRequest = z.object({
715
745
  allowEditDistribution: z.boolean().describe(
716
746
  "Whether Wix users are allowed to edit tip distributions. If set to\n`false`, Wix users can't edit distributions after they were created.\n\nDefault: `true`"
717
747
  ).optional().nullable(),
748
+ autoTipOnCheckInEnabled: z.boolean().describe(
749
+ "Whether a tip is automatically added to the related order on check-in.\nWhen `true`, a tip of `auto_tip_on_check_in_percentage` percent is added\nto the order when a check-in occurs.\n\nDefault: `false`"
750
+ ).optional().nullable(),
751
+ autoTipOnCheckInPercentage: z.number().describe(
752
+ "The tip percentage that is automatically added to the order on check-in when\n`auto_tip_on_check_in_enabled` is `true`.\n\nMin: `1`\nMax: `100`"
753
+ ).optional().nullable(),
718
754
  staffDistributionMethod: z.enum(["UNKNOWN_SPLIT_METHOD", "EQUAL", "PROPORTIONAL"]).optional(),
719
755
  revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
720
756
  "Revision number, which increments by 1 each time `tipSettings` object is\nupdated. To prevent conflicting changes, the current revision must be passed\nwhen updating `tipSettings`. Ignored when creating a `tipSettings` object."
@@ -808,6 +844,12 @@ var CreateDefaultTipSettingsResponse = z.object({
808
844
  allowEditDistribution: z.boolean().describe(
809
845
  "Whether Wix users are allowed to edit tip distributions. If set to\n`false`, Wix users can't edit distributions after they were created.\n\nDefault: `true`"
810
846
  ).optional().nullable(),
847
+ autoTipOnCheckInEnabled: z.boolean().describe(
848
+ "Whether a tip is automatically added to the related order on check-in.\nWhen `true`, a tip of `auto_tip_on_check_in_percentage` percent is added\nto the order when a check-in occurs.\n\nDefault: `false`"
849
+ ).optional().nullable(),
850
+ autoTipOnCheckInPercentage: z.number().describe(
851
+ "The tip percentage that is automatically added to the order on check-in when\n`auto_tip_on_check_in_enabled` is `true`.\n\nMin: `1`\nMax: `100`"
852
+ ).optional().nullable(),
811
853
  staffDistributionMethod: z.enum(["UNKNOWN_SPLIT_METHOD", "EQUAL", "PROPORTIONAL"]).describe(
812
854
  "How the tip is distributed among staff.\n\nSupported values:\n`UNKNOWN_SPLIT_METHOD`: There is no information about the staff distribution method.\n`EQUAL`: The tip is distributed equally among all staff.\n`PROPORTIONAL`: The tip is distributed proportionally among staff."
813
855
  ).optional(),