import { NonNullablePaths } from '@wix/sdk-types'; interface Configuration { /** * Configuration ID for the location on the Wix site. * @format GUID */ _id?: string | null; /** * The corresponding Wix location for the configuration, as defined for the Wix site using the Business Info's [Locations](https://dev.wix.com/api/rest/business-info/locations) and/or [Site Properties](https://dev.wix.com/api/rest/business-info/site-properties) APIs, * or using [Dashboard Settings](https://www.wix.com/my-account/site-selector/?buttonText=Select%20Site&title=Select%20a%20Site&autoSelectOnSingleSite=true&actionUrl=https:%2F%2Fwww.wix.com%2Fdashboard%2F%7B%7BmetaSiteId%7D%7D%2Fsettings/business-info). */ location?: Location; /** * Restaurant catalog ID. * @format GUID */ catalogId?: string; /** Whether a configuration is archived. */ archived?: boolean; /** Whether a configuration is enabled. */ enabled?: boolean; /** * URL linking to the POS integration settings in the Dashboard * if an online POS ordering app is installed. */ integrationSettingsUrl?: string | null; } interface Location { /** The Wix location [name](https://dev.wix.com/api/rest/business-info/locations/location-object). */ name?: string; } interface GetConfigurationRequest { /** * Configuration ID. * @format GUID */ _id: string; } interface GetConfigurationResponse { /** The merchant's location configuration on Wix. */ configuration?: Configuration; } interface ListConfigurationsRequest { } interface ListConfigurationsResponse { /** The merchant's configurations (locations) on Wix. */ configurations?: Configuration[]; } interface DisconnectAccountRequest { /** * The app's definition ID. * @format GUID */ appDefId?: string; /** The ID for the account between the merchant and the POS service provider. */ accountId: string; } interface DisconnectAccountResponse { } interface DisconnectConfigurationRequest { /** * The ID of the merchant's location configuration on Wix. * @format GUID */ configurationId: string; } interface DisconnectConfigurationResponse { } /** * This endpoint gets a location configuration by ID on the Wix site. * @param _id - Configuration ID. * @internal * @documentationMaturity preview * @requiredField _id * @permissionId WIX_RESTAURANTS.READ_POS * @applicableIdentity APP * @returns The merchant's location configuration on Wix. * @fqn com.wixpress.restaurants.postpaapi.RestaurantsPosTpaApi.GetConfiguration */ declare function getConfiguration(_id: string): Promise>; /** * This endpoint retrieves a list of location configurations on the Wix site. * @internal * @documentationMaturity preview * @permissionId WIX_RESTAURANTS.READ_POS * @applicableIdentity APP * @fqn com.wixpress.restaurants.postpaapi.RestaurantsPosTpaApi.ListConfigurations */ declare function listConfigurations(): Promise>; /** * This endpoint disconnects the account between the merchant and the POS service provider. * * The account is not deleted. You can reconnect to the account using the POS integration settings in the Dashboard. * * Call the [List Account IDs](https://dev.wix.com/api/rest/wix-restaurants/point-of-sale-integration/pos-connectivity-spi/list-account-ids) SPI endpoint to retrieve a list of existing account IDs. * @param accountId - The ID for the account between the merchant and the POS service provider. * @internal * @documentationMaturity preview * @requiredField accountId * @permissionId WIX_RESTAURANTS.WRITE_POS * @fqn com.wixpress.restaurants.postpaapi.RestaurantsPosTpaApi.DisconnectAccount */ declare function disconnectAccount(accountId: string, options?: DisconnectAccountOptions): Promise; interface DisconnectAccountOptions { /** * The app's definition ID. * @format GUID */ appDefId?: string; } /** * This endpoint disconnects the Wix location configuration from a POS service provider's location. * * The configuration is not deleted. You can reconnect to the configuration using the POS integration settings in the Dashboard. * * Call the [List Configurations](https://dev.wix.com/api/rest/wix-restaurants/point-of-sale-integration/pos-connectivity-api/list-configurations) SPI endpoint to retrieve a list of existing configuration IDs. * @param configurationId - The ID of the merchant's location configuration on Wix. * @internal * @documentationMaturity preview * @requiredField configurationId * @permissionId WIX_RESTAURANTS.WRITE_POS * @fqn com.wixpress.restaurants.postpaapi.RestaurantsPosTpaApi.DisconnectConfiguration */ declare function disconnectConfiguration(configurationId: string): Promise; export { type Configuration, type DisconnectAccountOptions, type DisconnectAccountRequest, type DisconnectAccountResponse, type DisconnectConfigurationRequest, type DisconnectConfigurationResponse, type GetConfigurationRequest, type GetConfigurationResponse, type ListConfigurationsRequest, type ListConfigurationsResponse, type Location, disconnectAccount, disconnectConfiguration, getConfiguration, listConfigurations };