{"version":3,"sources":["../../src/service-fees-v1-rule-service-fees.http.ts","../../src/service-fees-v1-rule-service-fees.types.ts","../../src/service-fees-v1-rule-service-fees.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';\nimport { _Number } from './service-fees-v1-rule-service-fees.types';\n\nfunction resolveComWixpressServiceFeesV1ServiceFeesRulesUrl(\n  opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n  const domainToMappings = {\n    'www.wixapis.com': [\n      {\n        srcPath: '/restaurants/v1/service-fees/rules',\n        destPath: '/v1/service-fees/rules',\n      },\n      {\n        srcPath: '/restaurants/v1/service-fees/calculate',\n        destPath: '/v1/service-fees/calculate',\n      },\n      {\n        srcPath: '/service-fees/v1',\n        destPath: '/v1',\n      },\n    ],\n    'manage._base_domain_': [\n      {\n        srcPath: '/restaurants/v1/service-fees/rules',\n        destPath: '/v1/service-fees/rules',\n      },\n      {\n        srcPath: '/restaurants/v1/service-fees/calculate',\n        destPath: '/v1/service-fees/calculate',\n      },\n      {\n        srcPath: '/_api/service-fees/v1',\n        destPath: '/v1',\n      },\n    ],\n    'www._base_domain_': [\n      {\n        srcPath: '/restaurants/v1/service-fees/calculate',\n        destPath: '/v1/service-fees/calculate',\n      },\n      {\n        srcPath: '/restaurants/v1/service-fees/rules',\n        destPath: '/v1/service-fees/rules',\n      },\n      {\n        srcPath: '/_api/service-fees/v1',\n        destPath: '/v1',\n      },\n    ],\n    'users._base_domain_': [\n      {\n        srcPath: '/restaurants/v1/service-fees/calculate',\n        destPath: '/v1/service-fees/calculate',\n      },\n      {\n        srcPath: '/restaurants/v1/service-fees/rules',\n        destPath: '/v1/service-fees/rules',\n      },\n    ],\n    _base_domain_: [\n      {\n        srcPath: '/restaurants/v1/service-fees/calculate',\n        destPath: '/v1/service-fees/calculate',\n      },\n      {\n        srcPath: '/restaurants/v1/service-fees/rules',\n        destPath: '/v1/service-fees/rules',\n      },\n    ],\n    _: [\n      {\n        srcPath: '/_api/restaurants/v1/service-fees/calculate',\n        destPath: '/v1/service-fees/calculate',\n      },\n      {\n        srcPath: '/_api/restaurants/v1/service-fees/rules',\n        destPath: '/v1/service-fees/rules',\n      },\n      {\n        srcPath: '/_api/service-fees/v1',\n        destPath: '/v1',\n      },\n    ],\n    '*.dev.wix-code.com': [\n      {\n        srcPath: '/_api/restaurants/v1/service-fees/rules',\n        destPath: '/v1/service-fees/rules',\n      },\n      {\n        srcPath: '/_api/restaurants/v1/service-fees/calculate',\n        destPath: '/v1/service-fees/calculate',\n      },\n      {\n        srcPath: '/_api/service-fees/v1',\n        destPath: '/v1',\n      },\n    ],\n    'editor._base_domain_': [\n      {\n        srcPath: '/_api/restaurants/v1/service-fees/rules',\n        destPath: '/v1/service-fees/rules',\n      },\n      {\n        srcPath: '/_api/restaurants/v1/service-fees/calculate',\n        destPath: '/v1/service-fees/calculate',\n      },\n      {\n        srcPath: '/_api/service-fees/v1',\n        destPath: '/v1',\n      },\n    ],\n    'blocks._base_domain_': [\n      {\n        srcPath: '/_api/restaurants/v1/service-fees/rules',\n        destPath: '/v1/service-fees/rules',\n      },\n      {\n        srcPath: '/_api/restaurants/v1/service-fees/calculate',\n        destPath: '/v1/service-fees/calculate',\n      },\n      {\n        srcPath: '/_api/service-fees/v1',\n        destPath: '/v1',\n      },\n    ],\n    'create.editorx': [\n      {\n        srcPath: '/_api/restaurants/v1/service-fees/rules',\n        destPath: '/v1/service-fees/rules',\n      },\n      {\n        srcPath: '/_api/restaurants/v1/service-fees/calculate',\n        destPath: '/v1/service-fees/calculate',\n      },\n      {\n        srcPath: '/_api/service-fees/v1',\n        destPath: '/v1',\n      },\n    ],\n    'editor.wixapps.net': [\n      {\n        srcPath: '/_api/service-fees/v1',\n        destPath: '/v1',\n      },\n    ],\n    'apps._base_domain_': [\n      {\n        srcPath: '/_api/service-fees-rules',\n        destPath: '',\n      },\n    ],\n  };\n\n  return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nfunction resolveComWixpressServiceFeesV1ServiceFeesCalculateUrl(\n  opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n  const domainToMappings = {\n    'www.wixapis.com': [\n      {\n        srcPath: '/restaurants/v1/service-fees/rules',\n        destPath: '/v1/service-fees/rules',\n      },\n      {\n        srcPath: '/restaurants/v1/service-fees/calculate',\n        destPath: '/v1/service-fees/calculate',\n      },\n      {\n        srcPath: '/service-fees/v1',\n        destPath: '/v1',\n      },\n    ],\n    'manage._base_domain_': [\n      {\n        srcPath: '/restaurants/v1/service-fees/rules',\n        destPath: '/v1/service-fees/rules',\n      },\n      {\n        srcPath: '/restaurants/v1/service-fees/calculate',\n        destPath: '/v1/service-fees/calculate',\n      },\n      {\n        srcPath: '/_api/service-fees/v1',\n        destPath: '/v1',\n      },\n    ],\n    'www._base_domain_': [\n      {\n        srcPath: '/restaurants/v1/service-fees/calculate',\n        destPath: '/v1/service-fees/calculate',\n      },\n      {\n        srcPath: '/restaurants/v1/service-fees/rules',\n        destPath: '/v1/service-fees/rules',\n      },\n      {\n        srcPath: '/_api/service-fees/v1',\n        destPath: '/v1',\n      },\n    ],\n    'users._base_domain_': [\n      {\n        srcPath: '/restaurants/v1/service-fees/calculate',\n        destPath: '/v1/service-fees/calculate',\n      },\n      {\n        srcPath: '/restaurants/v1/service-fees/rules',\n        destPath: '/v1/service-fees/rules',\n      },\n    ],\n    _base_domain_: [\n      {\n        srcPath: '/restaurants/v1/service-fees/calculate',\n        destPath: '/v1/service-fees/calculate',\n      },\n      {\n        srcPath: '/restaurants/v1/service-fees/rules',\n        destPath: '/v1/service-fees/rules',\n      },\n    ],\n    _: [\n      {\n        srcPath: '/_api/restaurants/v1/service-fees/calculate',\n        destPath: '/v1/service-fees/calculate',\n      },\n      {\n        srcPath: '/_api/restaurants/v1/service-fees/rules',\n        destPath: '/v1/service-fees/rules',\n      },\n      {\n        srcPath: '/_api/service-fees/v1',\n        destPath: '/v1',\n      },\n    ],\n    '*.dev.wix-code.com': [\n      {\n        srcPath: '/_api/restaurants/v1/service-fees/rules',\n        destPath: '/v1/service-fees/rules',\n      },\n      {\n        srcPath: '/_api/restaurants/v1/service-fees/calculate',\n        destPath: '/v1/service-fees/calculate',\n      },\n      {\n        srcPath: '/_api/service-fees/v1',\n        destPath: '/v1',\n      },\n    ],\n    'editor._base_domain_': [\n      {\n        srcPath: '/_api/restaurants/v1/service-fees/rules',\n        destPath: '/v1/service-fees/rules',\n      },\n      {\n        srcPath: '/_api/restaurants/v1/service-fees/calculate',\n        destPath: '/v1/service-fees/calculate',\n      },\n      {\n        srcPath: '/_api/service-fees/v1',\n        destPath: '/v1',\n      },\n    ],\n    'blocks._base_domain_': [\n      {\n        srcPath: '/_api/restaurants/v1/service-fees/rules',\n        destPath: '/v1/service-fees/rules',\n      },\n      {\n        srcPath: '/_api/restaurants/v1/service-fees/calculate',\n        destPath: '/v1/service-fees/calculate',\n      },\n      {\n        srcPath: '/_api/service-fees/v1',\n        destPath: '/v1',\n      },\n    ],\n    'create.editorx': [\n      {\n        srcPath: '/_api/restaurants/v1/service-fees/rules',\n        destPath: '/v1/service-fees/rules',\n      },\n      {\n        srcPath: '/_api/restaurants/v1/service-fees/calculate',\n        destPath: '/v1/service-fees/calculate',\n      },\n      {\n        srcPath: '/_api/service-fees/v1',\n        destPath: '/v1',\n      },\n    ],\n    'editor.wixapps.net': [\n      {\n        srcPath: '/_api/service-fees/v1',\n        destPath: '/v1',\n      },\n    ],\n    'apps._base_domain_': [\n      {\n        srcPath: '/_api/service-fees-rules',\n        destPath: '',\n      },\n    ],\n  };\n\n  return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_restaurants_service-fees';\n\n/**\n * The `calculateServiceFees()` function returns a Promise that resolves to an array containing the calculated fees.\n *\n *\n * The specified order information is evaluated against all rules created for the site. If the rule conditions are met, the service fee set in the rule is applied. Otherwise, no service fee is added.\n */\nexport function calculateServiceFees(\n  payload: object\n): RequestOptionsFactory<any> {\n  function __calculateServiceFees({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.service.fees.v1.rule',\n      method: 'POST' as any,\n      methodFqn:\n        'com.wixpress.service.fees.v1.ServiceFeesCalculate.CalculateServiceFees',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveComWixpressServiceFeesV1ServiceFeesCalculateUrl({\n        protoPath: '/v1/calculate',\n        data: payload,\n        host,\n      }),\n      data: payload,\n    };\n\n    return metadata;\n  }\n\n  return __calculateServiceFees;\n}\n\n/**\n * The `createRule()` function returns a Promise that resolves to the created rule.\n *\n *\n * To create multiple rules at once, use the `bulkCreateRules()` function.\n */\nexport function createRule(payload: object): RequestOptionsFactory<any> {\n  function __createRule({ host }: any) {\n    const serializedData = transformPaths(payload, [\n      {\n        transformFn: transformSDKTimestampToRESTTimestamp,\n        paths: [{ path: 'rule.createdDate' }, { path: 'rule.updatedDate' }],\n      },\n      {\n        transformFn: transformSDKFloatToRESTFloat,\n        paths: [\n          { path: 'rule.condition.number.value' },\n          { path: 'rule.conditionTree.leftCondition.number.value' },\n          { path: 'rule.conditionTree.rightCondition.number.value' },\n          { path: 'rule.conditionOptions.number.value' },\n          { path: 'rule.conditionTreeOptions.leftCondition.number.value' },\n          { path: 'rule.conditionTreeOptions.rightCondition.number.value' },\n        ],\n      },\n    ]);\n    const metadata = {\n      entityFqdn: 'wix.service.fees.v1.rule',\n      method: 'POST' as any,\n      methodFqn: 'com.wixpress.service.fees.v1.ServiceFeesRules.CreateRule',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveComWixpressServiceFeesV1ServiceFeesRulesUrl({\n        protoPath: '/v1/rules',\n        data: serializedData,\n        host,\n      }),\n      data: serializedData,\n      transformResponse: (payload: any) =>\n        transformPaths(payload, [\n          {\n            transformFn: transformRESTTimestampToSDKTimestamp,\n            paths: [{ path: 'rule.createdDate' }, { path: 'rule.updatedDate' }],\n          },\n          {\n            transformFn: transformRESTFloatToSDKFloat,\n            paths: [\n              { path: 'rule.condition.number.value' },\n              { path: 'rule.conditionTree.leftCondition.number.value' },\n              { path: 'rule.conditionTree.rightCondition.number.value' },\n              { path: 'rule.conditionOptions.number.value' },\n              { path: 'rule.conditionTreeOptions.leftCondition.number.value' },\n              { path: 'rule.conditionTreeOptions.rightCondition.number.value' },\n            ],\n          },\n        ]),\n    };\n\n    return metadata;\n  }\n\n  return __createRule;\n}\n\n/** The `createRule()` function returns a Promise that resolves to the retrieved rule. */\nexport function getRule(payload: object): RequestOptionsFactory<any> {\n  function __getRule({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.service.fees.v1.rule',\n      method: 'GET' as any,\n      methodFqn: 'com.wixpress.service.fees.v1.ServiceFeesRules.GetRule',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveComWixpressServiceFeesV1ServiceFeesRulesUrl({\n        protoPath: '/v1/rules/{ruleId}',\n        data: payload,\n        host,\n      }),\n      params: toURLSearchParams(payload),\n      transformResponse: (payload: any) =>\n        transformPaths(payload, [\n          {\n            transformFn: transformRESTTimestampToSDKTimestamp,\n            paths: [{ path: 'rule.createdDate' }, { path: 'rule.updatedDate' }],\n          },\n          {\n            transformFn: transformRESTFloatToSDKFloat,\n            paths: [\n              { path: 'rule.condition.number.value' },\n              { path: 'rule.conditionTree.leftCondition.number.value' },\n              { path: 'rule.conditionTree.rightCondition.number.value' },\n              { path: 'rule.conditionOptions.number.value' },\n              { path: 'rule.conditionTreeOptions.leftCondition.number.value' },\n              { path: 'rule.conditionTreeOptions.rightCondition.number.value' },\n            ],\n          },\n        ]),\n    };\n\n    return metadata;\n  }\n\n  return __getRule;\n}\n\n/**\n * The `updateRule()` function returns a Promise that resolves to the updated rule.\n *\n *\n * Each time the task is updated, `revision` increments by 1. The existing `revision` must be included when updating the task. This ensures you're working with the latest task and prevents unintended overwrites.\n *\n * To update multiple rules at once, use the `bulkUpdateRules()` function.\n */\nexport function updateRule(payload: object): RequestOptionsFactory<any> {\n  function __updateRule({ host }: any) {\n    const serializedData = transformPaths(payload, [\n      {\n        transformFn: transformSDKFieldMaskToRESTFieldMask,\n        paths: [{ path: 'mask' }],\n      },\n      {\n        transformFn: transformSDKTimestampToRESTTimestamp,\n        paths: [{ path: 'rule.createdDate' }, { path: 'rule.updatedDate' }],\n      },\n      {\n        transformFn: transformSDKFloatToRESTFloat,\n        paths: [\n          { path: 'rule.condition.number.value' },\n          { path: 'rule.conditionTree.leftCondition.number.value' },\n          { path: 'rule.conditionTree.rightCondition.number.value' },\n          { path: 'rule.conditionOptions.number.value' },\n          { path: 'rule.conditionTreeOptions.leftCondition.number.value' },\n          { path: 'rule.conditionTreeOptions.rightCondition.number.value' },\n        ],\n      },\n    ]);\n    const metadata = {\n      entityFqdn: 'wix.service.fees.v1.rule',\n      method: 'PATCH' as any,\n      methodFqn: 'com.wixpress.service.fees.v1.ServiceFeesRules.UpdateRule',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveComWixpressServiceFeesV1ServiceFeesRulesUrl({\n        protoPath: '/v1/rules/{rule.id}',\n        data: serializedData,\n        host,\n      }),\n      data: serializedData,\n      transformResponse: (payload: any) =>\n        transformPaths(payload, [\n          {\n            transformFn: transformRESTTimestampToSDKTimestamp,\n            paths: [{ path: 'rule.createdDate' }, { path: 'rule.updatedDate' }],\n          },\n          {\n            transformFn: transformRESTFloatToSDKFloat,\n            paths: [\n              { path: 'rule.condition.number.value' },\n              { path: 'rule.conditionTree.leftCondition.number.value' },\n              { path: 'rule.conditionTree.rightCondition.number.value' },\n              { path: 'rule.conditionOptions.number.value' },\n              { path: 'rule.conditionTreeOptions.leftCondition.number.value' },\n              { path: 'rule.conditionTreeOptions.rightCondition.number.value' },\n            ],\n          },\n        ]),\n    };\n\n    return metadata;\n  }\n\n  return __updateRule;\n}\n\n/**\n * The `deleteRule()` function returns a Promise that resolves to void.\n *\n *\n * To delete multiple rules at once, use the `bulkDeleteRules()` function.\n */\nexport function deleteRule(payload: object): RequestOptionsFactory<any> {\n  function __deleteRule({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.service.fees.v1.rule',\n      method: 'DELETE' as any,\n      methodFqn: 'com.wixpress.service.fees.v1.ServiceFeesRules.DeleteRule',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveComWixpressServiceFeesV1ServiceFeesRulesUrl({\n        protoPath: '/v1/rules/{ruleId}',\n        data: payload,\n        host,\n      }),\n      params: toURLSearchParams(payload),\n    };\n\n    return metadata;\n  }\n\n  return __deleteRule;\n}\n\n/**\n * The `listRules()` function returns a Promise that resolves to an array of the retrieved rules.\n *\n *\n * You can filter by location or app that the rules are associated with.\n */\nexport function listRules(payload: object): RequestOptionsFactory<any> {\n  function __listRules({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.service.fees.v1.rule',\n      method: 'GET' as any,\n      methodFqn: 'com.wixpress.service.fees.v1.ServiceFeesRules.ListRules',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveComWixpressServiceFeesV1ServiceFeesRulesUrl({\n        protoPath: '/v1/rules',\n        data: payload,\n        host,\n      }),\n      params: toURLSearchParams(payload),\n      transformResponse: (payload: any) =>\n        transformPaths(payload, [\n          {\n            transformFn: transformRESTTimestampToSDKTimestamp,\n            paths: [\n              { path: 'rules.createdDate' },\n              { path: 'rules.updatedDate' },\n            ],\n          },\n          {\n            transformFn: transformRESTFloatToSDKFloat,\n            paths: [\n              { path: 'rules.condition.number.value' },\n              { path: 'rules.conditionTree.leftCondition.number.value' },\n              { path: 'rules.conditionTree.rightCondition.number.value' },\n              { path: 'rules.conditionOptions.number.value' },\n              { path: 'rules.conditionTreeOptions.leftCondition.number.value' },\n              {\n                path: 'rules.conditionTreeOptions.rightCondition.number.value',\n              },\n            ],\n          },\n        ]),\n    };\n\n    return metadata;\n  }\n\n  return __listRules;\n}\n\n/**\n * Creates a query to retrieve a list of rules.\n *\n *\n * The `queryRules()` function builds a query to retrieve a list of up to 1,000 rules and returns a `RulesQueryBuilder` object.\n *\n * The returned object contains the query definition which is typically used to run the query using the [`find()`](/service-fees/rules-query-builder/find) function.\n *\n * You can refine the query by chaining `RulesQueryBuilder` functions onto the query. `RulesQueryBuilder` functions enable you to sort, filter, and control the results that `queryRules()` returns. The functions that are chained to `queryRules()` are applied in the order they are called.\n *\n * `queryRules()` runs with the following `RulesQueryBuilder` defaults that you can override:\n *\n * * [`limit(50)`](/service-fees/rules-query-builder/limit)\n * * [`ascending('entityId')`](/service-fees/rules-query-builder/ascending)\n *\n * The following `QueryRulesBuilder` functions are supported for the `queryRules()` function. For a full description of the Rules object, see the object returned for the [`items`](/service-fees/rules-query-result/items) property in `RulesQueryResult`.\n */\nexport function queryRules(payload: object): RequestOptionsFactory<any> {\n  function __queryRules({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.service.fees.v1.rule',\n      method: 'POST' as any,\n      methodFqn: 'com.wixpress.service.fees.v1.ServiceFeesRules.QueryRules',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveComWixpressServiceFeesV1ServiceFeesRulesUrl({\n        protoPath: '/v1/rules/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: 'rules.createdDate' },\n              { path: 'rules.updatedDate' },\n            ],\n          },\n          {\n            transformFn: transformRESTFloatToSDKFloat,\n            paths: [\n              { path: 'rules.condition.number.value' },\n              { path: 'rules.conditionTree.leftCondition.number.value' },\n              { path: 'rules.conditionTree.rightCondition.number.value' },\n              { path: 'rules.conditionOptions.number.value' },\n              { path: 'rules.conditionTreeOptions.leftCondition.number.value' },\n              {\n                path: 'rules.conditionTreeOptions.rightCondition.number.value',\n              },\n            ],\n          },\n        ]),\n    };\n\n    return metadata;\n  }\n\n  return __queryRules;\n}\n\n/**\n * The `bulkCreateRules()` function returns a Promise that resolves to the created rules.\n *\n *\n * To create only one rule, use the `createRule()` function.\n */\nexport function bulkCreateRules(payload: object): RequestOptionsFactory<any> {\n  function __bulkCreateRules({ host }: any) {\n    const serializedData = transformPaths(payload, [\n      {\n        transformFn: transformSDKTimestampToRESTTimestamp,\n        paths: [{ path: 'rules.createdDate' }, { path: 'rules.updatedDate' }],\n      },\n      {\n        transformFn: transformSDKFloatToRESTFloat,\n        paths: [\n          { path: 'rules.condition.number.value' },\n          { path: 'rules.conditionTree.leftCondition.number.value' },\n          { path: 'rules.conditionTree.rightCondition.number.value' },\n          { path: 'rules.conditionOptions.number.value' },\n          { path: 'rules.conditionTreeOptions.leftCondition.number.value' },\n          { path: 'rules.conditionTreeOptions.rightCondition.number.value' },\n        ],\n      },\n    ]);\n    const metadata = {\n      entityFqdn: 'wix.service.fees.v1.rule',\n      method: 'POST' as any,\n      methodFqn:\n        'com.wixpress.service.fees.v1.ServiceFeesRules.BulkCreateRules',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveComWixpressServiceFeesV1ServiceFeesRulesUrl({\n        protoPath: '/v1/bulk/rules/create',\n        data: serializedData,\n        host,\n      }),\n      data: serializedData,\n      transformResponse: (payload: any) =>\n        transformPaths(payload, [\n          {\n            transformFn: transformRESTTimestampToSDKTimestamp,\n            paths: [\n              { path: 'results.rule.createdDate' },\n              { path: 'results.rule.updatedDate' },\n            ],\n          },\n          {\n            transformFn: transformRESTFloatToSDKFloat,\n            paths: [\n              { path: 'results.rule.condition.number.value' },\n              { path: 'results.rule.conditionTree.leftCondition.number.value' },\n              {\n                path: 'results.rule.conditionTree.rightCondition.number.value',\n              },\n              { path: 'results.rule.conditionOptions.number.value' },\n              {\n                path: 'results.rule.conditionTreeOptions.leftCondition.number.value',\n              },\n              {\n                path: 'results.rule.conditionTreeOptions.rightCondition.number.value',\n              },\n            ],\n          },\n        ]),\n    };\n\n    return metadata;\n  }\n\n  return __bulkCreateRules;\n}\n\n/**\n * The `bulkUpdateRules()` function returns a Promise that resolves to the updated rules.\n *\n *\n * Each time the task is updated, `revision` increments by 1. The existing `revision` must be included when updating the task. This ensures you're working with the latest task and prevents unintended overwrites.\n *\n * To update only one rule, use the `updateRule()` function.\n */\nexport function bulkUpdateRules(payload: object): RequestOptionsFactory<any> {\n  function __bulkUpdateRules({ host }: any) {\n    const serializedData = transformPaths(payload, [\n      {\n        transformFn: transformSDKFieldMaskToRESTFieldMask,\n        paths: [{ path: 'rules.mask' }],\n      },\n      {\n        transformFn: transformSDKTimestampToRESTTimestamp,\n        paths: [\n          { path: 'rules.rule.createdDate' },\n          { path: 'rules.rule.updatedDate' },\n        ],\n      },\n      {\n        transformFn: transformSDKFloatToRESTFloat,\n        paths: [\n          { path: 'rules.rule.condition.number.value' },\n          { path: 'rules.rule.conditionTree.leftCondition.number.value' },\n          { path: 'rules.rule.conditionTree.rightCondition.number.value' },\n          { path: 'rules.rule.conditionOptions.number.value' },\n          {\n            path: 'rules.rule.conditionTreeOptions.leftCondition.number.value',\n          },\n          {\n            path: 'rules.rule.conditionTreeOptions.rightCondition.number.value',\n          },\n        ],\n      },\n    ]);\n    const metadata = {\n      entityFqdn: 'wix.service.fees.v1.rule',\n      method: 'PATCH' as any,\n      methodFqn:\n        'com.wixpress.service.fees.v1.ServiceFeesRules.BulkUpdateRules',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveComWixpressServiceFeesV1ServiceFeesRulesUrl({\n        protoPath: '/v1/bulk/rules/update',\n        data: serializedData,\n        host,\n      }),\n      data: serializedData,\n      transformResponse: (payload: any) =>\n        transformPaths(payload, [\n          {\n            transformFn: transformRESTTimestampToSDKTimestamp,\n            paths: [\n              { path: 'results.rule.createdDate' },\n              { path: 'results.rule.updatedDate' },\n            ],\n          },\n          {\n            transformFn: transformRESTFloatToSDKFloat,\n            paths: [\n              { path: 'results.rule.condition.number.value' },\n              { path: 'results.rule.conditionTree.leftCondition.number.value' },\n              {\n                path: 'results.rule.conditionTree.rightCondition.number.value',\n              },\n              { path: 'results.rule.conditionOptions.number.value' },\n              {\n                path: 'results.rule.conditionTreeOptions.leftCondition.number.value',\n              },\n              {\n                path: 'results.rule.conditionTreeOptions.rightCondition.number.value',\n              },\n            ],\n          },\n        ]),\n    };\n\n    return metadata;\n  }\n\n  return __bulkUpdateRules;\n}\n\n/**\n * The `bulkDeleteRules()` function returns a Promise that resolves to the deleted rules.\n *\n *\n * To delete only one rule, use the `deleteRule()` function.\n */\nexport function bulkDeleteRules(payload: object): RequestOptionsFactory<any> {\n  function __bulkDeleteRules({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.service.fees.v1.rule',\n      method: 'DELETE' as any,\n      methodFqn:\n        'com.wixpress.service.fees.v1.ServiceFeesRules.BulkDeleteRules',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveComWixpressServiceFeesV1ServiceFeesRulesUrl({\n        protoPath: '/v1/bulk/rules/delete',\n        data: payload,\n        host,\n      }),\n      params: toURLSearchParams(payload),\n      transformResponse: (payload: any) =>\n        transformPaths(payload, [\n          {\n            transformFn: transformRESTTimestampToSDKTimestamp,\n            paths: [\n              { path: 'results.rule.createdDate' },\n              { path: 'results.rule.updatedDate' },\n            ],\n          },\n          {\n            transformFn: transformRESTFloatToSDKFloat,\n            paths: [\n              { path: 'results.rule.condition.number.value' },\n              { path: 'results.rule.conditionTree.leftCondition.number.value' },\n              {\n                path: 'results.rule.conditionTree.rightCondition.number.value',\n              },\n              { path: 'results.rule.conditionOptions.number.value' },\n              {\n                path: 'results.rule.conditionTreeOptions.leftCondition.number.value',\n              },\n              {\n                path: 'results.rule.conditionTreeOptions.rightCondition.number.value',\n              },\n            ],\n          },\n        ]),\n    };\n\n    return metadata;\n  }\n\n  return __bulkDeleteRules;\n}\n\n/**\n * Synchronously update tags on multiple rules.\n * If you specify a tag in both `assignTags` and `unassignTags`, it is assigned.\n */\nexport function bulkUpdateRuleTags(\n  payload: object\n): RequestOptionsFactory<any> {\n  function __bulkUpdateRuleTags({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.service.fees.v1.rule',\n      method: 'POST' as any,\n      methodFqn:\n        'com.wixpress.service.fees.v1.ServiceFeesRules.BulkUpdateRuleTags',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveComWixpressServiceFeesV1ServiceFeesRulesUrl({\n        protoPath: '/v1/bulk/rules/update-tags',\n        data: payload,\n        host,\n      }),\n      data: payload,\n    };\n\n    return metadata;\n  }\n\n  return __bulkUpdateRuleTags;\n}\n\n/**\n * Asynchronously update tags on multiple rules according to the specified filter.\n * If a filter isn't specified, this method updates all rules.\n * If you specify a tag in both `assignTags` and `unassignTags`, it is assigned.\n */\nexport function bulkUpdateRuleTagsByFilter(\n  payload: object\n): RequestOptionsFactory<any> {\n  function __bulkUpdateRuleTagsByFilter({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.service.fees.v1.rule',\n      method: 'POST' as any,\n      methodFqn:\n        'com.wixpress.service.fees.v1.ServiceFeesRules.BulkUpdateRuleTagsByFilter',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveComWixpressServiceFeesV1ServiceFeesRulesUrl({\n        protoPath: '/v1/bulk/rules/update-tags-by-filter',\n        data: payload,\n        host,\n      }),\n      data: payload,\n    };\n\n    return metadata;\n  }\n\n  return __bulkUpdateRuleTagsByFilter;\n}\n","export interface Rule\n  extends RuleValueOneOf,\n    RuleRequirementsOneOf,\n    RuleConditionsOneOf,\n    RuleConditionTypeOptionsOneOf,\n    RuleTaxesOneOf {\n  /**\n   * Fixed fee. Must hold a positive value.\n   * @deprecated Fixed fee. Must hold a positive value.\n   * @replacedBy fixed_fee\n   * @targetRemovalDate 2024-02-15\n   */\n  amount?: CommonMoney;\n  /**\n   * Percentage fee. For example, `5` represents a 5% fee applied to the order's total.\n   * @decimalValue options { maxScale:2, gte:0, lte:100 }\n   * @deprecated\n   * @replacedBy percentage_fee\n   * @targetRemovalDate 2024-02-15\n   */\n  percentage?: string | null;\n  /** Fixed fee. Must hold a positive value. */\n  fixedFee?: Money;\n  /**\n   * Percentage fee. For example, `5` represents a 5% fee applied to the order's total.\n   * @decimalValue options { maxScale:2, gte:0, lte:100 }\n   */\n  percentageFee?: string | null;\n  /**\n   * Single condition that must be met for the rule to be applied to an order.\n   * @deprecated Single condition that must be met for the rule to be applied to an order.\n   * @replacedBy condition_options\n   * @targetRemovalDate 2024-02-15\n   */\n  condition?: Condition;\n  /**\n   * Binary tree of conditions. Use the operator to indicate whether only one or both conditions must be met in order for a service fee rule to be applied to an order.\n   * @deprecated Binary tree of conditions. Use the operator to indicate whether only one or both conditions must be met in order for a service fee rule to be applied to an order.\n   * @replacedBy condition_tree_options\n   * @targetRemovalDate 2024-02-15\n   */\n  conditionTree?: ConditionTree;\n  /** Single condition that must be met for the rule to be applied to an order. */\n  conditionOptions?: Condition;\n  /** Binary tree of conditions. Use the operator to indicate whether only one or both conditions must be met in order for a service fee rule to be applied to an order. */\n  conditionTreeOptions?: ConditionTree;\n  /** Percentage value to apply as a custom tax rate. Range: [0-100]. */\n  customTaxRate?: string | null;\n  /**\n   * Tax group ID. Internal only.\n   * @format GUID\n   */\n  taxGroupId?: string | null;\n  /**\n   * Rule ID.\n   * @readonly\n   */\n  id?: string | null;\n  /**\n   * Business location ID ([SDK](https://dev.wix.com/docs/sdk/backend-modules/restaurants/wix-restaurants-new/about-business-locations) | [REST](https://dev.wix.com/docs/rest/business-solutions/restaurants/wix-restaurants-new/about-business-locations)) of the rule.\n   * @format GUID\n   */\n  locationId?: string | null;\n  /**\n   * Rule name.\n   * @maxLength 50\n   * @minLength 1\n   */\n  name?: string | null;\n  /**\n   * Date and time the rule was created.\n   * @readonly\n   */\n  createdDate?: Date | null;\n  /**\n   * Date and time the rule was updated.\n   * @readonly\n   */\n  updatedDate?: Date | null;\n  /**\n   * Percentage value to apply as a custom tax rate. For example, `5` represents a 5% fee applied to the order's total. <br />\n   * Min: '0'. <br />\n   * Max: `100`.\n   * @decimalValue options { maxScale:2, gte:0, lte:100 }\n   * @deprecated\n   * @replacedBy taxes\n   * @targetRemovalDate 2023-09-16\n   */\n  taxRate?: string | null;\n  /**\n   * Specifies the type of condition.\n   * @deprecated Specifies the type of condition.\n   * @replacedBy condition_type\n   * @targetRemovalDate 2024-02-15\n   */\n  conditionsType?: ConditionsTypeWithLiterals;\n  /** Specifies the type of condition. */\n  conditionType?: ConditionTypeWithLiterals;\n  /** Whether the rule is enabled. If `true`, the rule is evaluated when service fees are calculated. If `false`, the rule will not be evaluated when service fees are calculated. */\n  enabled?: boolean | null;\n  /**\n   * Revision number. Increments by 1 each time the rule is updated.\n   * To prevent conflicting changes, the existing `revision` must be used when updating a rule.\n   * @readonly\n   */\n  revision?: string | null;\n  /**\n   * DEPRECATED. Defines the app that the rule is connected to.\n   * @maxLength 100\n   * @minLength 1\n   * @deprecated DEPRECATED. Defines the app that the rule is connected to.\n   * @replacedBy app_id\n   * @targetRemovalDate 2023-02-19\n   */\n  label?: string | null;\n  /**\n   * Defines the app that the rule is connected to.\n   * @format GUID\n   */\n  appId?: string | null;\n  /** Rounding strategy to apply to fee and tax calculation. */\n  roundingStrategy?: RoundingStrategyWithLiterals;\n  /** Data Extensions */\n  extendedFields?: ExtendedFields;\n  /** Tags ([SDK](https://dev.wix.com/docs/sdk/backend-modules/tags/tags/introduction) | [REST](https://dev.wix.com/docs/rest/business-management/tags/introduction)) used to classify and sort different types of rules. */\n  tags?: Tags;\n}\n\n/** @oneof */\nexport interface RuleValueOneOf {\n  /**\n   * Fixed fee. Must hold a positive value.\n   * @deprecated Fixed fee. Must hold a positive value.\n   * @replacedBy fixed_fee\n   * @targetRemovalDate 2024-02-15\n   */\n  amount?: CommonMoney;\n  /**\n   * Percentage fee. For example, `5` represents a 5% fee applied to the order's total.\n   * @decimalValue options { maxScale:2, gte:0, lte:100 }\n   * @deprecated\n   * @replacedBy percentage_fee\n   * @targetRemovalDate 2024-02-15\n   */\n  percentage?: string | null;\n}\n\n/** @oneof */\nexport interface RuleRequirementsOneOf {\n  /** Fixed fee. Must hold a positive value. */\n  fixedFee?: Money;\n  /**\n   * Percentage fee. For example, `5` represents a 5% fee applied to the order's total.\n   * @decimalValue options { maxScale:2, gte:0, lte:100 }\n   */\n  percentageFee?: string | null;\n}\n\n/** @oneof */\nexport interface RuleConditionsOneOf {\n  /**\n   * Single condition that must be met for the rule to be applied to an order.\n   * @deprecated Single condition that must be met for the rule to be applied to an order.\n   * @replacedBy condition_options\n   * @targetRemovalDate 2024-02-15\n   */\n  condition?: Condition;\n  /**\n   * Binary tree of conditions. Use the operator to indicate whether only one or both conditions must be met in order for a service fee rule to be applied to an order.\n   * @deprecated Binary tree of conditions. Use the operator to indicate whether only one or both conditions must be met in order for a service fee rule to be applied to an order.\n   * @replacedBy condition_tree_options\n   * @targetRemovalDate 2024-02-15\n   */\n  conditionTree?: ConditionTree;\n}\n\n/** @oneof */\nexport interface RuleConditionTypeOptionsOneOf {\n  /** Single condition that must be met for the rule to be applied to an order. */\n  conditionOptions?: Condition;\n  /** Binary tree of conditions. Use the operator to indicate whether only one or both conditions must be met in order for a service fee rule to be applied to an order. */\n  conditionTreeOptions?: ConditionTree;\n}\n\n/** @oneof */\nexport interface RuleTaxesOneOf {\n  /** Percentage value to apply as a custom tax rate. Range: [0-100]. */\n  customTaxRate?: string | null;\n  /**\n   * Tax group ID. Internal only.\n   * @format GUID\n   */\n  taxGroupId?: string | null;\n}\n\n/**\n * Money.\n * Default format to use. Sufficiently compliant with majority of standards: w3c, ISO 4217, ISO 20022, ISO 8583:2003.\n */\nexport interface CommonMoney {\n  /**\n   * Monetary amount. Decimal string with a period as a decimal separator (e.g., 3.99). Optionally, a single (-), to indicate that the amount is negative.\n   * @format DECIMAL_VALUE\n   */\n  value?: string;\n  /**\n   * Currency code. Must be valid ISO 4217 currency code (e.g., USD).\n   * @format CURRENCY\n   */\n  currency?: string;\n  /** Monetary amount. Decimal string in local format (e.g., 1 000,30). Optionally, a single (-), to indicate that the amount is negative. */\n  formattedValue?: string | null;\n}\n\n/**\n * Money.\n * Default format to use. Sufficiently compliant with majority of standards: w3c, ISO 4217, ISO 20022, ISO 8583:2003.\n */\nexport interface Money {\n  /**\n   * Monetary amount. Decimal string with a period as a decimal separator (e.g., 3.99). Optionally, a single (-), to indicate that the amount is negative.\n   * @format DECIMAL_VALUE\n   */\n  value?: string;\n  /**\n   * Currency code. Must be valid ISO 4217 currency code (e.g., USD).\n   * @format CURRENCY\n   */\n  currency?: string;\n  /** Monetary amount. Decimal string in local format (e.g., 1 000,30). Optionally, a single (-), to indicate that the amount is negative. */\n  formattedValue?: string | null;\n}\n\nexport interface Condition extends ConditionValueOneOf {\n  /**\n   * Contains a numeric value and an operation.\n   *\n   * Required if `expectedFieldType` is `NUMBER`.\n   */\n  number?: _Number;\n  /**\n   * Contains an array of strings to compare with the value of the specified field. If the value of the field matches a string in the array, the condition is considered met.\n   *\n   * Required if `expectedFieldType` is `LIST`.\n   */\n  list?: List;\n  /**\n   * Path of the field in the order entity that this condition will evaluate. For example, `priceSummary.subtotal`.\n   * @maxLength 1000\n   * @deprecated\n   * @replacedBy order_field_path\n   * @targetRemovalDate 2024-02-15\n   */\n  path?: string;\n  /**\n   * Path of the field in the order entity that this condition will evaluate. For example, `priceSummary.subtotal`.\n   * @maxLength 1000\n   */\n  orderFieldPath?: string;\n  /**\n   * Type of the field specified in `orderFieldPath`. For example, the type of `priceSummary.subtotal` is `\"NUMBER\"`).\n   * @deprecated Type of the field specified in `orderFieldPath`. For example, the type of `priceSummary.subtotal` is `\"NUMBER\"`).\n   * @replacedBy expected_field_type\n   * @targetRemovalDate 2024-02-15\n   */\n  expectedType?: ExpectedType;\n  /** Type of the field specified in `orderFieldPath`. For example, the type of `priceSummary.subtotal` is `\"NUMBER\"`). */\n  expectedFieldType?: ExpectedFieldTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface ConditionValueOneOf {\n  /**\n   * Contains a numeric value and an operation.\n   *\n   * Required if `expectedFieldType` is `NUMBER`.\n   */\n  number?: _Number;\n  /**\n   * Contains an array of strings to compare with the value of the specified field. If the value of the field matches a string in the array, the condition is considered met.\n   *\n   * Required if `expectedFieldType` is `LIST`.\n   */\n  list?: List;\n}\n\nexport interface ExpectedType {\n  /** Type of the field specified in `orderFieldPath`. */\n  value?: ValueWithLiterals;\n}\n\nexport enum Value {\n  /** Represents a number value. */\n  NUMBER = 'NUMBER',\n  /** Represents a string value. */\n  STRING = 'STRING',\n}\n\n/** @enumType */\nexport type ValueWithLiterals = Value | 'NUMBER' | 'STRING';\n\nexport enum ExpectedFieldType {\n  /** Unknown expected field type */\n  UNKNOWN_EXPECTED_FIELD_TYPE = 'UNKNOWN_EXPECTED_FIELD_TYPE',\n  /** Represents a number value. */\n  NUMBER = 'NUMBER',\n  /** Represents a string value. */\n  STRING = 'STRING',\n}\n\n/** @enumType */\nexport type ExpectedFieldTypeWithLiterals =\n  | ExpectedFieldType\n  | 'UNKNOWN_EXPECTED_FIELD_TYPE'\n  | 'NUMBER'\n  | 'STRING';\n\nexport interface _Number {\n  /** Numeric value to compare with the value of the specified field. */\n  value?: number;\n  /** Operation to use. */\n  operation?: OperationWithLiterals;\n}\n\nexport enum Operation {\n  /** Equal to. */\n  EQ = 'EQ',\n  /** Strictly less than. */\n  LT = 'LT',\n  /** Less than or equal to. */\n  LE = 'LE',\n  /** Strictly greater than. */\n  GT = 'GT',\n  /** Greater than or equal to. */\n  GE = 'GE',\n}\n\n/** @enumType */\nexport type OperationWithLiterals =\n  | Operation\n  | 'EQ'\n  | 'LT'\n  | 'LE'\n  | 'GT'\n  | 'GE';\n\nexport interface List {\n  /**\n   * Array of string values to compare with the value of the field. If the value of the fields matches a string in the array, the condition is considered met.\n   * @minSize 1\n   * @maxSize 100\n   * @minLength 1\n   * @maxLength 100\n   */\n  values?: string[];\n}\n\n/** Used to represent a logical condition in the form of a tree structure. */\nexport interface ConditionTree\n  extends ConditionTreeLeftConditionNodeOneOf,\n    ConditionTreeRightConditionNodeOneOf {\n  /** Single condition that must be met for the rule to be applied to an order. */\n  leftCondition?: Condition;\n  /** Binary tree of conditions. Use the operator to indicate whether only one or both conditions must be met in order for a service fee rule to be applied to an order. */\n  leftConditionsTree?: ConditionTree;\n  /** Single condition that must be met for the rule to be applied to an order. */\n  rightCondition?: Condition;\n  /** Binary tree of conditions. Use the operator to indicate whether only one or both conditions must be met in order for a service fee rule to be applied to an order. */\n  rightConditionsTree?: ConditionTree;\n  /** Specifies the logical operator to use when combining the evaluation of the left and right conditions. */\n  operator?: OperatorWithLiterals;\n}\n\n/** @oneof */\nexport interface ConditionTreeLeftConditionNodeOneOf {\n  /** Single condition that must be met for the rule to be applied to an order. */\n  leftCondition?: Condition;\n  /** Binary tree of conditions. Use the operator to indicate whether only one or both conditions must be met in order for a service fee rule to be applied to an order. */\n  leftConditionsTree?: ConditionTree;\n}\n\n/** @oneof */\nexport interface ConditionTreeRightConditionNodeOneOf {\n  /** Single condition that must be met for the rule to be applied to an order. */\n  rightCondition?: Condition;\n  /** Binary tree of conditions. Use the operator to indicate whether only one or both conditions must be met in order for a service fee rule to be applied to an order. */\n  rightConditionsTree?: ConditionTree;\n}\n\nexport enum Operator {\n  /** The condition is true if both the left and right sides are true. */\n  AND = 'AND',\n  /** The condition is true if either the left or right side is true. */\n  OR = 'OR',\n}\n\n/** @enumType */\nexport type OperatorWithLiterals = Operator | 'AND' | 'OR';\n\nexport enum ConditionsType {\n  /** Indicates that the Rule has no conditions specified. */\n  NO_CONDITIONS = 'NO_CONDITIONS',\n  /** Indicates that the Rule has a single Condition. */\n  CONDITION = 'CONDITION',\n  /** Indicates that the Rule has a complex condition specified as a ConditionTree. */\n  CONDITION_TREE = 'CONDITION_TREE',\n}\n\n/** @enumType */\nexport type ConditionsTypeWithLiterals =\n  | ConditionsType\n  | 'NO_CONDITIONS'\n  | 'CONDITION'\n  | 'CONDITION_TREE';\n\nexport enum ConditionType {\n  /** Indicates that the Rule has no conditions specified. */\n  UNDEFINED_CONDITION_TYPE = 'UNDEFINED_CONDITION_TYPE',\n  /** Indicates that the Rule has a single Condition. */\n  CONDITION = 'CONDITION',\n  /** Indicates that the Rule has a complex condition specified as a ConditionTree. */\n  CONDITION_TREE = 'CONDITION_TREE',\n}\n\n/** @enumType */\nexport type ConditionTypeWithLiterals =\n  | ConditionType\n  | 'UNDEFINED_CONDITION_TYPE'\n  | 'CONDITION'\n  | 'CONDITION_TREE';\n\nexport enum RoundingStrategy {\n  /** Rounds up any number exactly halfway between two integers. For example, `2.5` rounds to `3`, and `3.5` and rounds to `4`. */\n  HALF_UP = 'HALF_UP',\n  /** Rounds such numbers to the nearest even integer. For example, `2.5` rounds to `2`, but `3.5` rounds to `4`. */\n  HALF_EVEN = 'HALF_EVEN',\n}\n\n/** @enumType */\nexport type RoundingStrategyWithLiterals =\n  | RoundingStrategy\n  | 'HALF_UP'\n  | 'HALF_EVEN';\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\n/**\n * Common object for tags.\n * Should be use as in this example:\n * message Foo {\n * string id = 1;\n * ...\n * Tags tags = 5\n * }\n * example of taggable entity\n * {\n * id: \"123\"\n * tags: {\n * tags: {\n * tag_ids:[\"11\",\"22\"]\n * },\n * private_tags: {\n * tag_ids: [\"33\", \"44\"]\n * }\n * }\n * }\n */\nexport interface Tags {\n  /** Tags that require an additional permission in order to access them, normally not given to site members or visitors. */\n  privateTags?: TagList;\n  /** Tags that are exposed to anyone who has access to the labeled entity itself, including site members and visitors. */\n  tags?: TagList;\n}\n\nexport interface TagList {\n  /**\n   * List of tag IDs\n   * @maxSize 100\n   * @maxLength 5\n   */\n  tagIds?: string[];\n}\n\nexport interface CalculateServiceFeesRequest {\n  /** Order information needed to evaluate the rules and calculate the relevant fees. */\n  order: Order;\n  /**\n   * DEPRECATED. Defines the app that the rule is connected to.\n   * @maxLength 100\n   * @minLength 1\n   * @deprecated DEPRECATED. Defines the app that the rule is connected to.\n   * @replacedBy app_id\n   * @targetRemovalDate 2023-02-19\n   */\n  label?: string | null;\n  /**\n   * Defines the app that the rule is connected to.\n   * @format GUID\n   */\n  appId?: string | null;\n}\n\nexport interface Order {\n  /**\n   * Order ID.\n   * @readonly\n   */\n  id?: string;\n  /**\n   * ID of the site's location.\n   * @format GUID\n   */\n  locationId?: string | null;\n  /**\n   * Currency used for pricing on the site.\n   * @format CURRENCY\n   */\n  currency?: string | null;\n  /** Information about the price of the order. */\n  priceSummary?: PriceSummary;\n  /** Order's shipping information. */\n  shippingInfo?: ShippingInformation;\n  /** Platform on which the order was placed. */\n  platform?: Platform;\n  /** Order's locale. */\n  locale?: Locale;\n}\n\nexport interface PriceSummary {\n  /**\n   * Subtotal of the order.\n   * @decimalValue options { maxScale:3 }\n   */\n  subtotal?: string;\n}\n\nexport interface ShippingInformation {\n  /** Information about the type of delivery. For example, pick-up. */\n  logistics?: DeliveryLogistics;\n}\n\nexport interface DeliveryLogistics {\n  /** Type of delivery. For example, pick-up. */\n  type?: TypeWithLiterals;\n}\n\nexport enum Type {\n  /** Missing type due to an error. */\n  UNSPECIFIED_FULFILLMENT_TYPE = 'UNSPECIFIED_FULFILLMENT_TYPE',\n  /** Pickup */\n  PICKUP = 'PICKUP',\n  /** Delivery */\n  DELIVERY = 'DELIVERY',\n  /** Dine-in */\n  DINE_IN = 'DINE_IN',\n  /** Curbside-pickup */\n  CURBSIDE_PICKUP = 'CURBSIDE_PICKUP',\n}\n\n/** @enumType */\nexport type TypeWithLiterals =\n  | Type\n  | 'UNSPECIFIED_FULFILLMENT_TYPE'\n  | 'PICKUP'\n  | 'DELIVERY'\n  | 'DINE_IN'\n  | 'CURBSIDE_PICKUP';\n\nexport interface Platform {\n  /** Platform on which the order was placed. */\n  value?: PlatformValueWithLiterals;\n}\n\nexport enum PlatformValue {\n  /** Site */\n  SITE = 'SITE',\n  /** Mobile site */\n  MOBILE_SITE = 'MOBILE_SITE',\n  /** Mobile app */\n  MOBILE_APP = 'MOBILE_APP',\n}\n\n/** @enumType */\nexport type PlatformValueWithLiterals =\n  | PlatformValue\n  | 'SITE'\n  | 'MOBILE_SITE'\n  | 'MOBILE_APP';\n\nexport interface Locale {\n  /**\n   * Locale in [IETF BCP 47 language tag](https://en.wikipedia.org/wiki/IETF_language_tag) format.\n   * Typically, this is a lowercase 2-letter language code,\n   * followed by a hyphen, followed by an uppercase 2-letter country code.\n   * For example, `en-US` for U.S. English, and `de-DE` for Germany German.\n   */\n  languageCode?: string | null;\n  /** 2-letter country code in [ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements) format. */\n  country?: string | null;\n}\n\nexport interface CalculateServiceFeesResponse {\n  /** A list of calculated fees based on rules evaluation. */\n  calculatedFees?: CalculatedFee[];\n}\n\nexport interface CalculatedFee {\n  /**\n   * The ID of the rule that was used to calculate the fee.\n   * @format GUID\n   */\n  ruleId?: string;\n  /**\n   * The name of the rule that was used to calculate the fee.\n   * @readonly\n   */\n  name?: string;\n  /** Fee amount. */\n  fee?: Money;\n  /** Tax amount. */\n  tax?: Money;\n  /**\n   * Tax group ID. This is an alternative to calculating the tax amount manually.\n   * @format GUID\n   */\n  taxGroupId?: string | null;\n}\n\nexport interface CreateRuleRequest {\n  /** Rule to create. */\n  rule: Rule;\n}\n\nexport interface CreateRuleResponse {\n  /** Created rule */\n  rule?: Rule;\n}\n\nexport interface GetRuleRequest {\n  /**\n   * ID of the rule to retrieve.\n   * @format GUID\n   */\n  ruleId: string;\n}\n\nexport interface GetRuleResponse {\n  /** The retrieved rule. */\n  rule?: Rule;\n}\n\nexport interface UpdateRuleRequest {\n  /** Rule to update. */\n  rule: Rule;\n}\n\nexport interface UpdateRuleResponse {\n  /** Updated rule. */\n  rule?: Rule;\n}\n\nexport interface DeleteRuleRequest {\n  /**\n   * ID of the rule to delete.\n   * @format GUID\n   */\n  ruleId: string;\n}\n\nexport interface DeleteRuleResponse {}\n\nexport interface ListRulesRequest {\n  /**\n   * Retrieve only rule that apply at the [location](https://dev.wix.com/docs/rest/api-reference/business-tools/locations/location-object) with this ID. If this field is `null`, the rules will not be filtered by location.\n   * @format GUID\n   */\n  locationId?: string | null;\n  /**\n   * DEPRECATED. Defines the app that the rule is connected to.\n   * @maxLength 100\n   * @minLength 1\n   * @deprecated DEPRECATED. Defines the app that the rule is connected to.\n   * @replacedBy app_id\n   * @targetRemovalDate 2023-02-19\n   */\n  label?: string | null;\n  /**\n   * Defines the app that the rule is connected to.\n   * @format GUID\n   */\n  appId?: string | null;\n}\n\nexport interface ListRulesResponse {\n  /** Array containing the retrieved rules. */\n  rules?: Rule[];\n}\n\nexport interface QueryRulesRequest {\n  /** Query options. */\n  query: CursorQuery;\n}\n\nexport interface CursorQuery extends CursorQueryPagingMethodOneOf {\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.\n   * See [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language)\n   * for more information.\n   */\n  filter?: Record<string, any> | null;\n  /** Sort object. */\n  sort?: Sorting[];\n}\n\n/** @oneof */\nexport interface CursorQueryPagingMethodOneOf {\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 CursorPaging {\n  /**\n   * Number of items to load. <br />\n   * Default: `50`\n   * @max 100\n   */\n  limit?: number | null;\n  /**\n   * Pointer to the next or previous page in the list of results.\n   *\n   * You can get the relevant cursor token\n   * from the `pagingMetadata` object in the previous call's response.\n   * Not relevant for the first request.\n   */\n  cursor?: string | null;\n}\n\nexport interface QueryRulesResponse {\n  /** The retrieved rules. */\n  rules?: Rule[];\n  /** Paging metadata. */\n  pagingMetadata?: CursorPagingMetadata;\n}\n\nexport interface CursorPagingMetadata {\n  /** Number of items returned in the response. */\n  count?: number | null;\n  /** Offset that was requested. */\n  cursors?: Cursors;\n  /**\n   * Indicates if there are more results after the current page.\n   * If `true`, another page of results can be retrieved.\n   * If `false`, this is the last page.\n   */\n  hasNext?: boolean | null;\n}\n\nexport interface Cursors {\n  /** Cursor pointing to next page in the list of results. */\n  next?: string | null;\n  /** Cursor pointing to previous page in the list of results. */\n  prev?: string | null;\n}\n\nexport interface BulkCreateRulesRequest {\n  /** Rules to create. */\n  rules: Rule[];\n  /**\n   * Whether the full rule entity is returned. <br />\n   * Default: `false`.\n   */\n  returnFullEntity?: boolean;\n}\n\nexport interface BulkCreateRulesResponse {\n  /** The created rules. Omitted if `returnFullEntity` is set to false. */\n  results?: BulkRuleResult[];\n  /** Bulk Create Rule metadata. */\n  bulkActionMetadata?: CommonBulkActionMetadata;\n}\n\nexport interface BulkRuleResult {\n  /** Metadata of the rule. */\n  itemMetadata?: CommonItemMetadata;\n  /** The created rule. */\n  rule?: Rule;\n}\n\nexport interface CommonItemMetadata {\n  /** Item ID. Should always be available, unless it's impossible (for example, when failing to create an item). */\n  id?: string | null;\n  /** Index of the item within the request array. Allows for correlation between request and response items. */\n  originalIndex?: number;\n  /** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */\n  success?: boolean;\n  /** Details about the error in case of failure. */\n  error?: ApplicationError;\n}\n\nexport interface ApplicationError {\n  /** Error code. */\n  code?: string;\n  /** Description of the error. */\n  description?: string;\n  /** Data related to the error. */\n  data?: Record<string, any> | null;\n}\n\nexport interface CommonBulkActionMetadata {\n  /** Number of items that were successfully processed. */\n  totalSuccesses?: number;\n  /** Number of items that couldn't be processed. */\n  totalFailures?: number;\n  /** Number of failures without details because detailed failure threshold was exceeded. */\n  undetailedFailures?: number;\n}\n\nexport interface BulkUpdateRulesRequest {\n  /** Masked rules to update. */\n  rules: MaskedRule[];\n  /**\n   * Whether the full rule entity is returned. <br />\n   * Default: `false`.\n   */\n  returnFullEntity?: boolean;\n}\n\nexport interface MaskedRule {\n  /** Rule to update. */\n  rule?: Rule;\n  /** Explicit list of fields to update */\n  mask?: string[];\n}\n\nexport interface BulkUpdateRulesResponse {\n  /** The updated rules. Omitted if `returnFullEntity` is set to false. */\n  results?: BulkRuleResult[];\n  /** Bulk Update Rule metadata. */\n  bulkActionMetadata?: CommonBulkActionMetadata;\n}\n\nexport interface BulkDeleteRulesRequest {\n  /**\n   * IDs of the rules to delete.\n   * @format GUID\n   */\n  ruleIds: string[];\n}\n\nexport interface BulkDeleteRulesResponse {\n  /** Information about the deleted rules. */\n  results?: BulkRuleResult[];\n  /** Bulk Delete Rule metadata. */\n  bulkActionMetadata?: CommonBulkActionMetadata;\n}\n\nexport interface BulkUpdateRuleTagsRequest {\n  /**\n   * IDs of the rules to update tags for.\n   * @minSize 1\n   * @maxSize 100\n   * @format GUID\n   */\n  ruleIds: string[];\n  /** Tags to assign to the rules. */\n  assignTags?: Tags;\n  /** Tags to unassign from the rules. */\n  unassignTags?: Tags;\n}\n\nexport interface BulkUpdateRuleTagsResponse {\n  /**\n   * Results of the bulk update.\n   * @minSize 1\n   * @maxSize 100\n   */\n  results?: BulkUpdateRuleTagsResult[];\n  /** Metadata for the bulk update. */\n  bulkActionMetadata?: BulkActionMetadata;\n}\n\nexport interface ItemMetadata {\n  /**\n   * Item ID. Should always be available, unless it's impossible (for example, when failing to create an item).\n   * @format GUID\n   */\n  id?: string | null;\n  /** Index of the item within the request array. Allows for correlation between request and response items. */\n  originalIndex?: number;\n  /** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */\n  success?: boolean;\n  /** Details about the error in case of failure. */\n  error?: ApplicationError;\n}\n\nexport interface BulkUpdateRuleTagsResult {\n  /** Metadata for the updated rule. */\n  itemMetadata?: ItemMetadata;\n}\n\nexport interface BulkActionMetadata {\n  /** Number of items that were successfully processed. */\n  totalSuccesses?: number;\n  /** Number of items that couldn't be processed. */\n  totalFailures?: number;\n  /** Number of failures without details because detailed failure threshold was exceeded. */\n  undetailedFailures?: number;\n}\n\nexport interface BulkUpdateRuleTagsByFilterRequest {\n  /** Filter that determines which rules to update tags for. */\n  filter: Record<string, any> | null;\n  /** Tags to assign to the rules. */\n  assignTags?: Tags;\n  /** Tags to unassign from the rules. */\n  unassignTags?: Tags;\n}\n\nexport interface BulkUpdateRuleTagsByFilterResponse {\n  /**\n   * Job ID. Pass this ID to Get Async Job ([SDK](https://dev.wix.com/docs/sdk/backend-modules/async-jobs/get-async-job) | [REST](https://dev.wix.com/docs/rest/business-management/async-job/get-async-job)) to track the job's status.\n   * @format GUID\n   */\n  jobId?: string;\n}\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 Empty {}\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 BulkUpdateRuleTagsApplicationErrors = {\n  code?: 'EMPTY_ASSIGN_AND_UNASSIGN_LISTS';\n  description?: string;\n  data?: Record<string, any>;\n};\n/** @docsIgnore */\nexport type BulkUpdateRuleTagsByFilterApplicationErrors = {\n  code?: 'EMPTY_ASSIGN_AND_UNASSIGN_LISTS';\n  description?: string;\n  data?: Record<string, any>;\n};\n","import * as ambassadorWixServiceFeesV1Rule from './service-fees-v1-rule-service-fees.http.js';\nimport * as ambassadorWixServiceFeesV1RuleTypes from './service-fees-v1-rule-service-fees.types.js';\nimport * as ambassadorWixServiceFeesV1RuleUniversalTypes from './service-fees-v1-rule-service-fees.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 calculateServiceFees(): __PublicMethodMetaInfo<\n  'POST',\n  {},\n  ambassadorWixServiceFeesV1RuleUniversalTypes.CalculateServiceFeesRequest,\n  ambassadorWixServiceFeesV1RuleTypes.CalculateServiceFeesRequest,\n  ambassadorWixServiceFeesV1RuleUniversalTypes.CalculateServiceFeesResponse,\n  ambassadorWixServiceFeesV1RuleTypes.CalculateServiceFeesResponse\n> {\n  const payload = {} as any;\n\n  const getRequestOptions =\n    ambassadorWixServiceFeesV1Rule.calculateServiceFees(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/calculate',\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 createRule(): __PublicMethodMetaInfo<\n  'POST',\n  {},\n  ambassadorWixServiceFeesV1RuleUniversalTypes.CreateRuleRequest,\n  ambassadorWixServiceFeesV1RuleTypes.CreateRuleRequest,\n  ambassadorWixServiceFeesV1RuleUniversalTypes.CreateRuleResponse,\n  ambassadorWixServiceFeesV1RuleTypes.CreateRuleResponse\n> {\n  const payload = {} as any;\n\n  const getRequestOptions = ambassadorWixServiceFeesV1Rule.createRule(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/rules',\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 getRule(): __PublicMethodMetaInfo<\n  'GET',\n  { ruleId: string },\n  ambassadorWixServiceFeesV1RuleUniversalTypes.GetRuleRequest,\n  ambassadorWixServiceFeesV1RuleTypes.GetRuleRequest,\n  ambassadorWixServiceFeesV1RuleUniversalTypes.GetRuleResponse,\n  ambassadorWixServiceFeesV1RuleTypes.GetRuleResponse\n> {\n  const payload = { ruleId: ':ruleId' } as any;\n\n  const getRequestOptions = ambassadorWixServiceFeesV1Rule.getRule(payload);\n\n  const getUrl = (context: any): string => {\n    const { url } = getRequestOptions(context);\n    return url!;\n  };\n\n  return {\n    getUrl,\n    httpMethod: 'GET',\n    path: '/v1/rules/{ruleId}',\n    pathParams: { ruleId: 'ruleId' },\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 updateRule(): __PublicMethodMetaInfo<\n  'PATCH',\n  { ruleId: string },\n  ambassadorWixServiceFeesV1RuleUniversalTypes.UpdateRuleRequest,\n  ambassadorWixServiceFeesV1RuleTypes.UpdateRuleRequest,\n  ambassadorWixServiceFeesV1RuleUniversalTypes.UpdateRuleResponse,\n  ambassadorWixServiceFeesV1RuleTypes.UpdateRuleResponse\n> {\n  const payload = { rule: { id: ':ruleId' } } as any;\n\n  const getRequestOptions = ambassadorWixServiceFeesV1Rule.updateRule(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/rules/{rule.id}',\n    pathParams: { ruleId: 'ruleId' },\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 deleteRule(): __PublicMethodMetaInfo<\n  'DELETE',\n  { ruleId: string },\n  ambassadorWixServiceFeesV1RuleUniversalTypes.DeleteRuleRequest,\n  ambassadorWixServiceFeesV1RuleTypes.DeleteRuleRequest,\n  ambassadorWixServiceFeesV1RuleUniversalTypes.DeleteRuleResponse,\n  ambassadorWixServiceFeesV1RuleTypes.DeleteRuleResponse\n> {\n  const payload = { ruleId: ':ruleId' } as any;\n\n  const getRequestOptions = ambassadorWixServiceFeesV1Rule.deleteRule(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/rules/{ruleId}',\n    pathParams: { ruleId: 'ruleId' },\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 listRules(): __PublicMethodMetaInfo<\n  'GET',\n  {},\n  ambassadorWixServiceFeesV1RuleUniversalTypes.ListRulesRequest,\n  ambassadorWixServiceFeesV1RuleTypes.ListRulesRequest,\n  ambassadorWixServiceFeesV1RuleUniversalTypes.ListRulesResponse,\n  ambassadorWixServiceFeesV1RuleTypes.ListRulesResponse\n> {\n  const payload = {} as any;\n\n  const getRequestOptions = ambassadorWixServiceFeesV1Rule.listRules(payload);\n\n  const getUrl = (context: any): string => {\n    const { url } = getRequestOptions(context);\n    return url!;\n  };\n\n  return {\n    getUrl,\n    httpMethod: 'GET',\n    path: '/v1/rules',\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 queryRules(): __PublicMethodMetaInfo<\n  'POST',\n  {},\n  ambassadorWixServiceFeesV1RuleUniversalTypes.QueryRulesRequest,\n  ambassadorWixServiceFeesV1RuleTypes.QueryRulesRequest,\n  ambassadorWixServiceFeesV1RuleUniversalTypes.QueryRulesResponse,\n  ambassadorWixServiceFeesV1RuleTypes.QueryRulesResponse\n> {\n  const payload = {} as any;\n\n  const getRequestOptions = ambassadorWixServiceFeesV1Rule.queryRules(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/rules/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 bulkCreateRules(): __PublicMethodMetaInfo<\n  'POST',\n  {},\n  ambassadorWixServiceFeesV1RuleUniversalTypes.BulkCreateRulesRequest,\n  ambassadorWixServiceFeesV1RuleTypes.BulkCreateRulesRequest,\n  ambassadorWixServiceFeesV1RuleUniversalTypes.BulkCreateRulesResponse,\n  ambassadorWixServiceFeesV1RuleTypes.BulkCreateRulesResponse\n> {\n  const payload = {} as any;\n\n  const getRequestOptions =\n    ambassadorWixServiceFeesV1Rule.bulkCreateRules(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/bulk/rules/create',\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 bulkUpdateRules(): __PublicMethodMetaInfo<\n  'PATCH',\n  {},\n  ambassadorWixServiceFeesV1RuleUniversalTypes.BulkUpdateRulesRequest,\n  ambassadorWixServiceFeesV1RuleTypes.BulkUpdateRulesRequest,\n  ambassadorWixServiceFeesV1RuleUniversalTypes.BulkUpdateRulesResponse,\n  ambassadorWixServiceFeesV1RuleTypes.BulkUpdateRulesResponse\n> {\n  const payload = {} as any;\n\n  const getRequestOptions =\n    ambassadorWixServiceFeesV1Rule.bulkUpdateRules(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/bulk/rules/update',\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 bulkDeleteRules(): __PublicMethodMetaInfo<\n  'DELETE',\n  {},\n  ambassadorWixServiceFeesV1RuleUniversalTypes.BulkDeleteRulesRequest,\n  ambassadorWixServiceFeesV1RuleTypes.BulkDeleteRulesRequest,\n  ambassadorWixServiceFeesV1RuleUniversalTypes.BulkDeleteRulesResponse,\n  ambassadorWixServiceFeesV1RuleTypes.BulkDeleteRulesResponse\n> {\n  const payload = {} as any;\n\n  const getRequestOptions =\n    ambassadorWixServiceFeesV1Rule.bulkDeleteRules(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/bulk/rules/delete',\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 bulkUpdateRuleTags(): __PublicMethodMetaInfo<\n  'POST',\n  {},\n  ambassadorWixServiceFeesV1RuleUniversalTypes.BulkUpdateRuleTagsRequest,\n  ambassadorWixServiceFeesV1RuleTypes.BulkUpdateRuleTagsRequest,\n  ambassadorWixServiceFeesV1RuleUniversalTypes.BulkUpdateRuleTagsResponse,\n  ambassadorWixServiceFeesV1RuleTypes.BulkUpdateRuleTagsResponse\n> {\n  const payload = {} as any;\n\n  const getRequestOptions =\n    ambassadorWixServiceFeesV1Rule.bulkUpdateRuleTags(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/bulk/rules/update-tags',\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 bulkUpdateRuleTagsByFilter(): __PublicMethodMetaInfo<\n  'POST',\n  {},\n  ambassadorWixServiceFeesV1RuleUniversalTypes.BulkUpdateRuleTagsByFilterRequest,\n  ambassadorWixServiceFeesV1RuleTypes.BulkUpdateRuleTagsByFilterRequest,\n  ambassadorWixServiceFeesV1RuleUniversalTypes.BulkUpdateRuleTagsByFilterResponse,\n  ambassadorWixServiceFeesV1RuleTypes.BulkUpdateRuleTagsByFilterResponse\n> {\n  const payload = {} as any;\n\n  const getRequestOptions =\n    ambassadorWixServiceFeesV1Rule.bulkUpdateRuleTagsByFilter(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/bulk/rules/update-tags-by-filter',\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 {\n  Rule as RuleOriginal,\n  RuleValueOneOf as RuleValueOneOfOriginal,\n  RuleRequirementsOneOf as RuleRequirementsOneOfOriginal,\n  RuleConditionsOneOf as RuleConditionsOneOfOriginal,\n  RuleConditionTypeOptionsOneOf as RuleConditionTypeOptionsOneOfOriginal,\n  RuleTaxesOneOf as RuleTaxesOneOfOriginal,\n  CommonMoney as CommonMoneyOriginal,\n  Money as MoneyOriginal,\n  Condition as ConditionOriginal,\n  ConditionValueOneOf as ConditionValueOneOfOriginal,\n  ExpectedType as ExpectedTypeOriginal,\n  Value as ValueOriginal,\n  ValueWithLiterals as ValueWithLiteralsOriginal,\n  ExpectedFieldType as ExpectedFieldTypeOriginal,\n  ExpectedFieldTypeWithLiterals as ExpectedFieldTypeWithLiteralsOriginal,\n  _Number as _NumberOriginal,\n  Operation as OperationOriginal,\n  OperationWithLiterals as OperationWithLiteralsOriginal,\n  List as ListOriginal,\n  ConditionTree as ConditionTreeOriginal,\n  ConditionTreeLeftConditionNodeOneOf as ConditionTreeLeftConditionNodeOneOfOriginal,\n  ConditionTreeRightConditionNodeOneOf as ConditionTreeRightConditionNodeOneOfOriginal,\n  Operator as OperatorOriginal,\n  OperatorWithLiterals as OperatorWithLiteralsOriginal,\n  ConditionsType as ConditionsTypeOriginal,\n  ConditionsTypeWithLiterals as ConditionsTypeWithLiteralsOriginal,\n  ConditionType as ConditionTypeOriginal,\n  ConditionTypeWithLiterals as ConditionTypeWithLiteralsOriginal,\n  RoundingStrategy as RoundingStrategyOriginal,\n  RoundingStrategyWithLiterals as RoundingStrategyWithLiteralsOriginal,\n  ExtendedFields as ExtendedFieldsOriginal,\n  Tags as TagsOriginal,\n  TagList as TagListOriginal,\n  CalculateServiceFeesRequest as CalculateServiceFeesRequestOriginal,\n  Order as OrderOriginal,\n  PriceSummary as PriceSummaryOriginal,\n  ShippingInformation as ShippingInformationOriginal,\n  DeliveryLogistics as DeliveryLogisticsOriginal,\n  Type as TypeOriginal,\n  TypeWithLiterals as TypeWithLiteralsOriginal,\n  Platform as PlatformOriginal,\n  PlatformValue as PlatformValueOriginal,\n  PlatformValueWithLiterals as PlatformValueWithLiteralsOriginal,\n  Locale as LocaleOriginal,\n  CalculateServiceFeesResponse as CalculateServiceFeesResponseOriginal,\n  CalculatedFee as CalculatedFeeOriginal,\n  CreateRuleRequest as CreateRuleRequestOriginal,\n  CreateRuleResponse as CreateRuleResponseOriginal,\n  GetRuleRequest as GetRuleRequestOriginal,\n  GetRuleResponse as GetRuleResponseOriginal,\n  UpdateRuleRequest as UpdateRuleRequestOriginal,\n  UpdateRuleResponse as UpdateRuleResponseOriginal,\n  DeleteRuleRequest as DeleteRuleRequestOriginal,\n  DeleteRuleResponse as DeleteRuleResponseOriginal,\n  ListRulesRequest as ListRulesRequestOriginal,\n  ListRulesResponse as ListRulesResponseOriginal,\n  QueryRulesRequest as QueryRulesRequestOriginal,\n  CursorQuery as CursorQueryOriginal,\n  CursorQueryPagingMethodOneOf as CursorQueryPagingMethodOneOfOriginal,\n  Sorting as SortingOriginal,\n  SortOrder as SortOrderOriginal,\n  SortOrderWithLiterals as SortOrderWithLiteralsOriginal,\n  CursorPaging as CursorPagingOriginal,\n  QueryRulesResponse as QueryRulesResponseOriginal,\n  CursorPagingMetadata as CursorPagingMetadataOriginal,\n  Cursors as CursorsOriginal,\n  BulkCreateRulesRequest as BulkCreateRulesRequestOriginal,\n  BulkCreateRulesResponse as BulkCreateRulesResponseOriginal,\n  BulkRuleResult as BulkRuleResultOriginal,\n  CommonItemMetadata as CommonItemMetadataOriginal,\n  ApplicationError as ApplicationErrorOriginal,\n  CommonBulkActionMetadata as CommonBulkActionMetadataOriginal,\n  BulkUpdateRulesRequest as BulkUpdateRulesRequestOriginal,\n  MaskedRule as MaskedRuleOriginal,\n  BulkUpdateRulesResponse as BulkUpdateRulesResponseOriginal,\n  BulkDeleteRulesRequest as BulkDeleteRulesRequestOriginal,\n  BulkDeleteRulesResponse as BulkDeleteRulesResponseOriginal,\n  BulkUpdateRuleTagsRequest as BulkUpdateRuleTagsRequestOriginal,\n  BulkUpdateRuleTagsResponse as BulkUpdateRuleTagsResponseOriginal,\n  ItemMetadata as ItemMetadataOriginal,\n  BulkUpdateRuleTagsResult as BulkUpdateRuleTagsResultOriginal,\n  BulkActionMetadata as BulkActionMetadataOriginal,\n  BulkUpdateRuleTagsByFilterRequest as BulkUpdateRuleTagsByFilterRequestOriginal,\n  BulkUpdateRuleTagsByFilterResponse as BulkUpdateRuleTagsByFilterResponseOriginal,\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  Empty as EmptyOriginal,\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  BulkUpdateRuleTagsApplicationErrors as BulkUpdateRuleTagsApplicationErrorsOriginal,\n  BulkUpdateRuleTagsByFilterApplicationErrors as BulkUpdateRuleTagsByFilterApplicationErrorsOriginal,\n} from './service-fees-v1-rule-service-fees.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;AAK3B,SAAS,mDACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,mBAAmB;AAAA,MACjB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU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BAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;AAEO,SAASC,8BAOd;AACA,QAAM,UAAU,CAAC;AAEjB,QAAM,oBAC2B,2BAA2B,OAAO;AAEnE,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;","names":["payload","Value","ExpectedFieldType","Operation","Operator","ConditionsType","ConditionType","RoundingStrategy","Type","PlatformValue","SortOrder","WebhookIdentityType","calculateServiceFees","createRule","getRule","updateRule","deleteRule","listRules","queryRules","bulkCreateRules","bulkUpdateRules","bulkDeleteRules","bulkUpdateRuleTags","bulkUpdateRuleTagsByFilter"]}