@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
@@ -1 +1 @@
1
- {"version":3,"sources":["../../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":["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,SAAS,yBAAyB;AAClC,SAAS,oCAAoC;AAC7C,SAAS,oCAAoC;AAC7C,SAAS,4CAA4C;AACrD,SAAS,4CAA4C;AACrD,SAAS,4CAA4C;AACrD,SAAS,sBAAsB;AAC/B,SAAS,kBAAkB;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,SAAO,WAAW,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,wBAA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,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;AAEO,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":["payload","TipType","StaffDistributionMethod","SortOrder","WebhookIdentityType","queryTipSettings","updateTipSettings","createTipSettings","createDefaultTipSettings","deleteTipSettings"]}
1
+ {"version":3,"sources":["../../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":["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,SAAS,yBAAyB;AAClC,SAAS,oCAAoC;AAC7C,SAAS,oCAAoC;AAC7C,SAAS,4CAA4C;AACrD,SAAS,4CAA4C;AACrD,SAAS,4CAA4C;AACrD,SAAS,sBAAsB;AAC/B,SAAS,kBAAkB;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,MAC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,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":["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";
@@ -182,6 +182,12 @@ var QueryTipSettingsResponse = z.object({
182
182
  allowEditDistribution: z.boolean().describe(
183
183
  "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`"
184
184
  ).optional().nullable(),
185
+ autoTipOnCheckInEnabled: z.boolean().describe(
186
+ "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`"
187
+ ).optional().nullable(),
188
+ autoTipOnCheckInPercentage: z.number().describe(
189
+ "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`"
190
+ ).optional().nullable(),
185
191
  staffDistributionMethod: z.enum(["UNKNOWN_SPLIT_METHOD", "EQUAL", "PROPORTIONAL"]).describe(
186
192
  "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."
187
193
  ).optional(),
@@ -298,6 +304,12 @@ var UpdateTipSettingsRequest = z.object({
298
304
  allowEditDistribution: z.boolean().describe(
299
305
  "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`"
300
306
  ).optional().nullable(),
307
+ autoTipOnCheckInEnabled: z.boolean().describe(
308
+ "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`"
309
+ ).optional().nullable(),
310
+ autoTipOnCheckInPercentage: z.number().describe(
311
+ "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`"
312
+ ).optional().nullable(),
301
313
  staffDistributionMethod: z.enum(["UNKNOWN_SPLIT_METHOD", "EQUAL", "PROPORTIONAL"]).optional(),
302
314
  revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
303
315
  "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."
@@ -390,6 +402,12 @@ var UpdateTipSettingsResponse = z.intersection(
390
402
  allowEditDistribution: z.boolean().describe(
391
403
  "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`"
392
404
  ).optional().nullable(),
405
+ autoTipOnCheckInEnabled: z.boolean().describe(
406
+ "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`"
407
+ ).optional().nullable(),
408
+ autoTipOnCheckInPercentage: z.number().describe(
409
+ "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`"
410
+ ).optional().nullable(),
393
411
  staffDistributionMethod: z.enum(["UNKNOWN_SPLIT_METHOD", "EQUAL", "PROPORTIONAL"]).describe(
394
412
  "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."
395
413
  ).optional(),
@@ -484,6 +502,12 @@ var CreateTipSettingsRequest = z.object({
484
502
  allowEditDistribution: z.boolean().describe(
485
503
  "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`"
486
504
  ).optional().nullable(),
505
+ autoTipOnCheckInEnabled: z.boolean().describe(
506
+ "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`"
507
+ ).optional().nullable(),
508
+ autoTipOnCheckInPercentage: z.number().describe(
509
+ "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`"
510
+ ).optional().nullable(),
487
511
  staffDistributionMethod: z.enum(["UNKNOWN_SPLIT_METHOD", "EQUAL", "PROPORTIONAL"]).optional(),
488
512
  revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
489
513
  "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."
@@ -576,6 +600,12 @@ var CreateTipSettingsResponse = z.intersection(
576
600
  allowEditDistribution: z.boolean().describe(
577
601
  "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`"
578
602
  ).optional().nullable(),
603
+ autoTipOnCheckInEnabled: z.boolean().describe(
604
+ "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`"
605
+ ).optional().nullable(),
606
+ autoTipOnCheckInPercentage: z.number().describe(
607
+ "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`"
608
+ ).optional().nullable(),
579
609
  staffDistributionMethod: z.enum(["UNKNOWN_SPLIT_METHOD", "EQUAL", "PROPORTIONAL"]).describe(
580
610
  "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."
581
611
  ).optional(),
@@ -670,6 +700,12 @@ var CreateDefaultTipSettingsRequest = z.object({
670
700
  allowEditDistribution: z.boolean().describe(
671
701
  "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`"
672
702
  ).optional().nullable(),
703
+ autoTipOnCheckInEnabled: z.boolean().describe(
704
+ "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`"
705
+ ).optional().nullable(),
706
+ autoTipOnCheckInPercentage: z.number().describe(
707
+ "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`"
708
+ ).optional().nullable(),
673
709
  staffDistributionMethod: z.enum(["UNKNOWN_SPLIT_METHOD", "EQUAL", "PROPORTIONAL"]).optional(),
674
710
  revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
675
711
  "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."
@@ -763,6 +799,12 @@ var CreateDefaultTipSettingsResponse = z.object({
763
799
  allowEditDistribution: z.boolean().describe(
764
800
  "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`"
765
801
  ).optional().nullable(),
802
+ autoTipOnCheckInEnabled: z.boolean().describe(
803
+ "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`"
804
+ ).optional().nullable(),
805
+ autoTipOnCheckInPercentage: z.number().describe(
806
+ "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`"
807
+ ).optional().nullable(),
766
808
  staffDistributionMethod: z.enum(["UNKNOWN_SPLIT_METHOD", "EQUAL", "PROPORTIONAL"]).describe(
767
809
  "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."
768
810
  ).optional(),