{"version":3,"sources":["../../src/restaurants-catalogs-v3-discount-discount.http.ts","../../src/restaurants-catalogs-v3-discount-discount.types.ts","../../src/restaurants-catalogs-v3-discount-discount.meta.ts"],"sourcesContent":["import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\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 resolveComWixpressRestaurantsCatalogsV3DiscountsApiUrl(\n  opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n  const domainToMappings = {};\n\n  return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_restaurants_discount';\n\n/**\n * Retrieves a discount.\n * @deprecated It has been replaced with com.wix.ecom.discounts.DiscountRuleService.GetDiscountRule(), and will be removed on 2025-09-30.\n */\nexport function getDiscount(payload: object): RequestOptionsFactory<any> {\n  function __getDiscount({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.restaurants.catalogs.v3.discount',\n      method: 'GET' as any,\n      methodFqn:\n        'com.wixpress.restaurants.catalogs.v3.DiscountsApi.GetDiscount',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveComWixpressRestaurantsCatalogsV3DiscountsApiUrl({\n        protoPath: '/v3/catalogs/{catalogId}/discounts/{discountId}',\n        data: payload,\n        host,\n      }),\n      params: toURLSearchParams(payload),\n    };\n\n    return metadata;\n  }\n\n  return __getDiscount;\n}\n\n/**\n * Updates a discount.\n * A discount can belong to a catalog, section, or dish. You can't create a discount that applies to a menu.\n * @deprecated It has been replaced with com.wix.ecom.discounts.DiscountRuleService.UpdateDiscountRule(), and will be removed on 2025-09-30.\n */\nexport function updateDiscount(payload: object): RequestOptionsFactory<any> {\n  function __updateDiscount({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.restaurants.catalogs.v3.discount',\n      method: 'PATCH' as any,\n      methodFqn:\n        'com.wixpress.restaurants.catalogs.v3.DiscountsApi.UpdateDiscount',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveComWixpressRestaurantsCatalogsV3DiscountsApiUrl({\n        protoPath: '/v3/catalogs/{catalogId}/discounts/{discount.id}',\n        data: payload,\n        host,\n      }),\n      data: payload,\n    };\n\n    return metadata;\n  }\n\n  return __updateDiscount;\n}\n\n/**\n * Creates a discount.\n * You can create discounts for catalogs, sections, or dishes. You can't create a discount that applies to a menu.\n * @deprecated It has been replaced with com.wix.ecom.discounts.DiscountRuleService.CreateDiscountRule(), and will be removed on 2025-09-30.\n */\nexport function createDiscount(payload: object): RequestOptionsFactory<any> {\n  function __createDiscount({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.restaurants.catalogs.v3.discount',\n      method: 'POST' as any,\n      methodFqn:\n        'com.wixpress.restaurants.catalogs.v3.DiscountsApi.CreateDiscount',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveComWixpressRestaurantsCatalogsV3DiscountsApiUrl({\n        protoPath: '/v3/catalogs/{catalogId}/discounts',\n        data: payload,\n        host,\n      }),\n      data: payload,\n    };\n\n    return metadata;\n  }\n\n  return __createDiscount;\n}\n\n/**\n * Retrieves up to 1000 discounts.\n * @deprecated It has been replaced with com.wix.ecom.discounts.DiscountRuleService.QueryDiscountRules(), and will be removed on 2025-09-30.\n */\nexport function listDiscounts(payload: object): RequestOptionsFactory<any> {\n  function __listDiscounts({ host }: any) {\n    const serializedData = transformPaths(payload, [\n      {\n        transformFn: transformSDKFieldMaskToRESTFieldMask,\n        paths: [{ path: 'fieldMask' }],\n      },\n    ]);\n    const metadata = {\n      entityFqdn: 'wix.restaurants.catalogs.v3.discount',\n      method: 'GET' as any,\n      methodFqn:\n        'com.wixpress.restaurants.catalogs.v3.DiscountsApi.ListDiscounts',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveComWixpressRestaurantsCatalogsV3DiscountsApiUrl({\n        protoPath: '/v3/catalogs/{catalogId}/discounts',\n        data: serializedData,\n        host,\n      }),\n      params: toURLSearchParams(serializedData),\n    };\n\n    return metadata;\n  }\n\n  return __listDiscounts;\n}\n","/**\n * Customers can use a discount to pay less. Can be an amount or a percentage.\n * You can read more about discounts in the [introduction](https://dev.wix.com/api/rest/wix-restaurants/catalogs/introduction).\n */\nexport interface Discount\n  extends DiscountValueOneOf,\n    DiscountApplyToFilterOneOf {\n  /** Discount amount. */\n  amount?: Money;\n  /**\n   * Discount percentage.\n   * @decimalValue options { maxScale:3 }\n   */\n  percentage?: string | null;\n  /** IDs of the sections the discount applies to. */\n  sectionIds?: SectionIds;\n  /** IDs of the items the discount applies to. **Note:** The items must be of type `dish`. */\n  itemIds?: ItemIds;\n  /**\n   * Discount ID.\n   * @readonly\n   */\n  discountId?: string | null;\n  /** Discount name. */\n  name?: string | null;\n  /** Discount description. */\n  description?: string | null;\n  /** Whether the discount is active. Defaults to `true`. */\n  active?: boolean | null;\n  /** Discount type. */\n  type?: DiscountTypeWithLiterals;\n  /**\n   * Discount condition.\n   * All conditions must be met so that a customer can apply the discount.\n   */\n  condition?: DiscountCondition;\n}\n\n/** @oneof */\nexport interface DiscountValueOneOf {\n  /** Discount amount. */\n  amount?: Money;\n  /**\n   * Discount percentage.\n   * @decimalValue options { maxScale:3 }\n   */\n  percentage?: string | null;\n}\n\n/** @oneof */\nexport interface DiscountApplyToFilterOneOf {\n  /** IDs of the sections the discount applies to. */\n  sectionIds?: SectionIds;\n  /** IDs of the items the discount applies to. **Note:** The items must be of type `dish`. */\n  itemIds?: ItemIds;\n}\n\nexport enum DiscountType {\n  UNSPECIFIED_TYPE = 'UNSPECIFIED_TYPE',\n  OFF_ITEM = 'OFF_ITEM',\n  OFF_ORDER = 'OFF_ORDER',\n}\n\n/** @enumType */\nexport type DiscountTypeWithLiterals =\n  | DiscountType\n  | 'UNSPECIFIED_TYPE'\n  | 'OFF_ITEM'\n  | 'OFF_ORDER';\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 in decimal string format. For example, `3.99`, `6`, and `10.5` are all accepted values.\n   * @format DECIMAL_VALUE\n   */\n  value?: string;\n  /**\n   * Three-letter currency code in [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format.\n   * @format CURRENCY\n   * @readonly\n   */\n  currency?: string;\n}\n\nexport interface SectionIds {\n  values?: string[];\n}\n\nexport interface ItemIds {\n  values?: string[];\n}\n\nexport interface DiscountCondition {\n  /**\n   * Which fulfillment types the discount applies to.\n   * @minSize 1\n   * @maxSize 2\n   */\n  fulfillmentTypes?: FulfillmentTypeWithLiterals[];\n  /**\n   * Which ordering platforms the discount applies to.\n   * @minSize 1\n   * @maxSize 3\n   */\n  platforms?: DiscountPlatformWithLiterals[];\n  /** List of times when the discount is available. */\n  availability?: Availability;\n  /** Minimum order price for the discount. */\n  minOrderPrice?: Money;\n  /**\n   * Coupon associated with the discount.\n   * @readonly\n   */\n  coupon?: Coupon;\n}\n\nexport enum FulfillmentType {\n  UNSPECIFIED_FULFILLMENT_TYPE = 'UNSPECIFIED_FULFILLMENT_TYPE',\n  DELIVERY = 'DELIVERY',\n  PICKUP_OR_DINE_IN = 'PICKUP_OR_DINE_IN',\n}\n\n/** @enumType */\nexport type FulfillmentTypeWithLiterals =\n  | FulfillmentType\n  | 'UNSPECIFIED_FULFILLMENT_TYPE'\n  | 'DELIVERY'\n  | 'PICKUP_OR_DINE_IN';\n\nexport enum DiscountPlatform {\n  UNSPECIFIED_PLATFORM = 'UNSPECIFIED_PLATFORM',\n  SITE = 'SITE',\n  MOBILE_SITE = 'MOBILE_SITE',\n  CALL_CENTER = 'CALL_CENTER',\n}\n\n/** @enumType */\nexport type DiscountPlatformWithLiterals =\n  | DiscountPlatform\n  | 'UNSPECIFIED_PLATFORM'\n  | 'SITE'\n  | 'MOBILE_SITE'\n  | 'CALL_CENTER';\n\nexport interface Availability {\n  /**\n   * Weekly recurring time periods when the entity is available.\n   * Limited to 100 time periods.\n   */\n  periods?: TimePeriod[];\n  /** Exceptions to the entity's regular availability. The entity can be available or not available during the special hour period. */\n  specialHourPeriods?: SpecialHourPeriod[];\n}\n\n/** Weekly recurring time periods when the entity is available. */\nexport interface TimePeriod {\n  /** Day of the week the period starts on. */\n  openDay?: DayOfWeekWithLiterals;\n  /**\n   * Time the period starts in 24-hour [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) extended format. Valid values are 00:00-24:00, where 24:00 represents\n   * midnight at the end of the specified day.\n   */\n  openTime?: string;\n  /** Day of the week the period ends on. */\n  closeDay?: DayOfWeekWithLiterals;\n  /**\n   * Time the period ends in 24-hour [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) extended format. Valid values are 00:00-24:00, where 24:00 represents\n   * midnight at the end of the specified day.\n   * __Note:__ If `openDay` and `closeDay` specify the same day of the week `closeTime` must be later than `openTime`.\n   */\n  closeTime?: string;\n}\n\nexport enum DayOfWeek {\n  UNDEFINED = 'UNDEFINED',\n  SUN = 'SUN',\n  MON = 'MON',\n  TUE = 'TUE',\n  WED = 'WED',\n  THU = 'THU',\n  FRI = 'FRI',\n  SAT = 'SAT',\n}\n\n/** @enumType */\nexport type DayOfWeekWithLiterals =\n  | DayOfWeek\n  | 'UNDEFINED'\n  | 'SUN'\n  | 'MON'\n  | 'TUE'\n  | 'WED'\n  | 'THU'\n  | 'FRI'\n  | 'SAT';\n\n/** Exception to the business's regular hours. The business can be open or closed during the exception. */\nexport interface SpecialHourPeriod {\n  /** Start date and time of the exception in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format and [Coordinated Universal Time (UTC)](https://en.wikipedia.org/wiki/Coordinated_Universal_Time). */\n  startDate?: string;\n  /** End date and time of the exception in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format and [Coordinated Universal Time (UTC)](https://en.wikipedia.org/wiki/Coordinated_Universal_Time). */\n  endDate?: string;\n  /** Whether the item is available during the exception. Defaults to `true`. */\n  available?: boolean;\n  /** Name of the special hour period. In the dashboard, the special hour period is called event. */\n  eventName?: string | null;\n}\n\nexport interface Coupon {\n  /**\n   * Whether the customer needs to enter the coupon code to receive the discount. Defaults to `true`.\n   * @readonly\n   */\n  applied?: boolean | null;\n  /**\n   * Coupon code.\n   * @readonly\n   */\n  code?: string | null;\n}\n\nexport interface GetDiscountRequest {\n  /**\n   * ID of the discount to retrieve.\n   * @format GUID\n   */\n  discountId: string;\n  /**\n   * ID of the catalog the discount belongs to.\n   * @format GUID\n   */\n  catalogId: string;\n}\n\nexport interface GetDiscountResponse {\n  /** Retrieved discount. */\n  discount?: Discount;\n}\n\nexport interface UpdateDiscountRequest {\n  /** Discount to update. */\n  discount?: Discount;\n  /**\n   * ID of the catalog the discount belongs to.\n   * @format GUID\n   */\n  catalogId: string;\n}\n\nexport interface UpdateDiscountResponse {\n  /** Updated discount. */\n  discount?: Discount;\n}\n\nexport interface CreateDiscountRequest {\n  /** Discount to create. */\n  discount?: Discount;\n  /**\n   * ID of the catalog the discount belongs to.\n   * @format GUID\n   */\n  catalogId: string;\n}\n\nexport interface CreateDiscountResponse {\n  /** Created discount. */\n  discount?: Discount;\n}\n\nexport interface ListDiscountsRequest {\n  /** Filed mask path. */\n  fieldMask?: string[];\n  /** Whether only active discounts are returned. Defaults to `true`. */\n  active?: boolean | null;\n  /**\n   * ID of the catalog the discounts belong to.\n   * @format GUID\n   */\n  catalogId: string;\n}\n\nexport interface ListDiscountsResponse {\n  /** Retrieved discounts. */\n  discounts?: Discount[];\n}\n\nexport interface AddLoyaltyDiscount {\n  /** @format GUID */\n  locationId?: string | null;\n}\n\nexport interface Empty {}\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","import * as ambassadorWixRestaurantsCatalogsV3Discount from './restaurants-catalogs-v3-discount-discount.http.js';\nimport * as ambassadorWixRestaurantsCatalogsV3DiscountTypes from './restaurants-catalogs-v3-discount-discount.types.js';\nimport * as ambassadorWixRestaurantsCatalogsV3DiscountUniversalTypes from './restaurants-catalogs-v3-discount-discount.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 getDiscount(): __PublicMethodMetaInfo<\n  'GET',\n  { catalogId: string; discountId: string },\n  ambassadorWixRestaurantsCatalogsV3DiscountUniversalTypes.GetDiscountRequest,\n  ambassadorWixRestaurantsCatalogsV3DiscountTypes.GetDiscountRequest,\n  ambassadorWixRestaurantsCatalogsV3DiscountUniversalTypes.GetDiscountResponse,\n  ambassadorWixRestaurantsCatalogsV3DiscountTypes.GetDiscountResponse\n> {\n  const payload = { catalogId: ':catalogId', discountId: ':discountId' } as any;\n\n  const getRequestOptions =\n    ambassadorWixRestaurantsCatalogsV3Discount.getDiscount(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: '/v3/catalogs/{catalogId}/discounts/{discountId}',\n    pathParams: { catalogId: 'catalogId', discountId: 'discountId' },\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 updateDiscount(): __PublicMethodMetaInfo<\n  'PATCH',\n  { catalogId: string; discountId: string },\n  ambassadorWixRestaurantsCatalogsV3DiscountUniversalTypes.UpdateDiscountRequest,\n  ambassadorWixRestaurantsCatalogsV3DiscountTypes.UpdateDiscountRequest,\n  ambassadorWixRestaurantsCatalogsV3DiscountUniversalTypes.UpdateDiscountResponse,\n  ambassadorWixRestaurantsCatalogsV3DiscountTypes.UpdateDiscountResponse\n> {\n  const payload = {\n    catalogId: ':catalogId',\n    discount: { id: ':discountId' },\n  } as any;\n\n  const getRequestOptions =\n    ambassadorWixRestaurantsCatalogsV3Discount.updateDiscount(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: '/v3/catalogs/{catalogId}/discounts/{discount.id}',\n    pathParams: { catalogId: 'catalogId', discountId: 'discountId' },\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 createDiscount(): __PublicMethodMetaInfo<\n  'POST',\n  { catalogId: string },\n  ambassadorWixRestaurantsCatalogsV3DiscountUniversalTypes.CreateDiscountRequest,\n  ambassadorWixRestaurantsCatalogsV3DiscountTypes.CreateDiscountRequest,\n  ambassadorWixRestaurantsCatalogsV3DiscountUniversalTypes.CreateDiscountResponse,\n  ambassadorWixRestaurantsCatalogsV3DiscountTypes.CreateDiscountResponse\n> {\n  const payload = { catalogId: ':catalogId' } as any;\n\n  const getRequestOptions =\n    ambassadorWixRestaurantsCatalogsV3Discount.createDiscount(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: '/v3/catalogs/{catalogId}/discounts',\n    pathParams: { catalogId: 'catalogId' },\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 listDiscounts(): __PublicMethodMetaInfo<\n  'GET',\n  { catalogId: string },\n  ambassadorWixRestaurantsCatalogsV3DiscountUniversalTypes.ListDiscountsRequest,\n  ambassadorWixRestaurantsCatalogsV3DiscountTypes.ListDiscountsRequest,\n  ambassadorWixRestaurantsCatalogsV3DiscountUniversalTypes.ListDiscountsResponse,\n  ambassadorWixRestaurantsCatalogsV3DiscountTypes.ListDiscountsResponse\n> {\n  const payload = { catalogId: ':catalogId' } as any;\n\n  const getRequestOptions =\n    ambassadorWixRestaurantsCatalogsV3Discount.listDiscounts(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: '/v3/catalogs/{catalogId}/discounts',\n    pathParams: { catalogId: 'catalogId' },\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  Discount as DiscountOriginal,\n  DiscountValueOneOf as DiscountValueOneOfOriginal,\n  DiscountApplyToFilterOneOf as DiscountApplyToFilterOneOfOriginal,\n  DiscountType as DiscountTypeOriginal,\n  DiscountTypeWithLiterals as DiscountTypeWithLiteralsOriginal,\n  Money as MoneyOriginal,\n  SectionIds as SectionIdsOriginal,\n  ItemIds as ItemIdsOriginal,\n  DiscountCondition as DiscountConditionOriginal,\n  FulfillmentType as FulfillmentTypeOriginal,\n  FulfillmentTypeWithLiterals as FulfillmentTypeWithLiteralsOriginal,\n  DiscountPlatform as DiscountPlatformOriginal,\n  DiscountPlatformWithLiterals as DiscountPlatformWithLiteralsOriginal,\n  Availability as AvailabilityOriginal,\n  TimePeriod as TimePeriodOriginal,\n  DayOfWeek as DayOfWeekOriginal,\n  DayOfWeekWithLiterals as DayOfWeekWithLiteralsOriginal,\n  SpecialHourPeriod as SpecialHourPeriodOriginal,\n  Coupon as CouponOriginal,\n  GetDiscountRequest as GetDiscountRequestOriginal,\n  GetDiscountResponse as GetDiscountResponseOriginal,\n  UpdateDiscountRequest as UpdateDiscountRequestOriginal,\n  UpdateDiscountResponse as UpdateDiscountResponseOriginal,\n  CreateDiscountRequest as CreateDiscountRequestOriginal,\n  CreateDiscountResponse as CreateDiscountResponseOriginal,\n  ListDiscountsRequest as ListDiscountsRequestOriginal,\n  ListDiscountsResponse as ListDiscountsResponseOriginal,\n  AddLoyaltyDiscount as AddLoyaltyDiscountOriginal,\n  Empty as EmptyOriginal,\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} from './restaurants-catalogs-v3-discount-discount.types.js';\n"],"mappings":";AAAA,SAAS,yBAAyB;AAClC,SAAS,4CAA4C;AACrD,SAAS,sBAAsB;AAC/B,SAAS,kBAAkB;AAI3B,SAAS,uDACP,MACA;AACA,QAAM,mBAAmB,CAAC;AAE1B,SAAO,WAAW,OAAO,OAAO,MAAM,EAAE,iBAAiB,CAAC,CAAC;AAC7D;AAEA,IAAM,eAAe;AAMd,SAAS,YAAY,SAA6C;AACvE,WAAS,cAAc,EAAE,KAAK,GAAQ;AACpC,UAAM,W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a;AAE1C,QAAM,oBACuC,cAAc,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,WAAW,YAAY;AAAA,IACrC,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["DiscountType","FulfillmentType","DiscountPlatform","DayOfWeek","WebhookIdentityType","getDiscount","updateDiscount","createDiscount","listDiscounts"]}