import { G as GetAbandonedCheckoutRequest$1, q as GetAbandonedCheckoutResponse$1, ah as GetAbandonedCheckoutResponseNonNullableFields$1, D as DeleteAbandonedCheckoutRequest$1, r as DeleteAbandonedCheckoutResponse$1, Q as QueryAbandonedCheckoutsRequest$1, w as QueryAbandonedCheckoutsResponse$1, ai as QueryAbandonedCheckoutsResponseNonNullableFields$1, z as SearchAbandonedCheckoutsRequest$1, c as SearchAbandonedCheckoutsResponse$1, d as SearchAbandonedCheckoutsResponseNonNullableFields$1, X as AddAbandonedCheckoutActivityRequest$1, Y as AddAbandonedCheckoutActivityResponse$1, aj as AddAbandonedCheckoutActivityResponseNonNullableFields$1, a4 as RedirectToCheckoutRequest$1, R as RawHttpResponse$1, e as RawHttpResponseNonNullableFields$1 } from './ecom-v1-abandoned-checkout-abandoned-checkouts.universal-BhpVdTfC.js'; interface AbandonedCheckout { /** Abandoned checkout ID. */ id?: string; /** Date and time the abandoned checkout was created. */ createdDate?: Date | null; /** Date and time the abandoned checkout was updated. */ updatedDate?: Date | null; /** The associated checkout ID. */ checkoutId?: string | null; /** The associated cart ID. */ cartId?: string | null; /** Status of the abandoned checkout. */ status?: Status; /** * Language for communication with the buyer. Defaults to the site language. * For a site that supports multiple languages, this is the language the buyer selected. */ buyerLanguage?: string | null; /** Buyer information. */ buyerInfo?: V1BuyerInfo; /** Contact details. */ contactDetails?: FullAddressContactDetails; /** The store's currency. */ currency?: string; /** Currency the buyer used in checkout. */ conversionCurrency?: string | null; /** Total price after discounts, gift cards, and tax. */ totalPrice?: MultiCurrencyPrice; /** * List of all automation activities performed by [Wix Automations](https://dev.wix.com/docs/rest/business-management/automations/introduction) regarding the abandoned checkout. * Wix Automations updates the `activities` field for each activity in the automation flow. Only relevant if the site owner set up * [automations in the Dashboard](https://support.wix.com/en/article/wix-automations-creating-an-automation-with-the-new-builder#step-1-create-a-new-automation). Read more about `activities` in * the [introduction](https://dev.wix.com/docs/rest/api-reference/wix-e-commerce/abandoned-checkout/introduction). */ activities?: Activity[]; /** Date and time the abandoned checkout was recovered. */ checkoutRecoveredDate?: Date | null; /** Checkout URL. */ checkoutUrl?: string; /** Subtotal price of all line items, before discounts and before tax. */ subtotalPrice?: MultiCurrencyPrice; } declare enum ActivityType { /** Not implemented. */ UNKNOWN_TYPE = "UNKNOWN_TYPE", /** Scheduled. */ SCHEDULED = "SCHEDULED", /** Email sent. */ EMAIL_SENT = "EMAIL_SENT", /** Email not sent. */ EMAIL_NOT_SENT = "EMAIL_NOT_SENT", /** Notification sent. */ NOTIFICATION_SENT = "NOTIFICATION_SENT", /** Task created. */ TASK_CREATED = "TASK_CREATED" } /** Status of the abandoned checkout. */ declare enum Status { /** Abandoned. */ ABANDONED = "ABANDONED", /** Recovered. */ RECOVERED = "RECOVERED" } /** Buyer information. */ interface V1BuyerInfo extends V1BuyerInfoIdOneOf { /** Visitor ID (if the site visitor is **not** a site member). */ visitorId?: string; /** Member ID (if the site visitor is a site member). */ memberId?: string; /** User ID (if the site visitor is a site owner or collaborator). */ userId?: string; /** * Contact ID. For more information, see the [Contacts API](https://dev.wix.com/docs/rest/api-reference/contacts/introduction). * @readonly */ contactId?: string | null; /** Buyer email address. */ email?: string | null; } /** @oneof */ interface V1BuyerInfoIdOneOf { /** Visitor ID (if the site visitor is **not** a site member). */ visitorId?: string; /** Member ID (if the site visitor is a site member). */ memberId?: string; /** User ID (if the site visitor is a site owner or collaborator). */ userId?: string; } /** Full contact details for an address */ interface FullAddressContactDetails { /** First name. */ firstName?: string | null; /** Last name. */ lastName?: string | null; /** Phone number. */ phone?: string | null; /** Company name. */ company?: string | null; /** Tax information (for Brazil only). If ID is provided, `vatId.type` must also be set, `UNSPECIFIED` is not allowed. */ vatId?: VatId; } interface VatId { /** Customer's tax ID. */ id?: string; /** * Tax type. * * Supported values: * + `CPF`: for individual tax payers * + `CNPJ`: for corporations */ type?: VatType; } /** tax info types */ declare enum VatType { UNSPECIFIED = "UNSPECIFIED", /** CPF - for individual tax payers. */ CPF = "CPF", /** CNPJ - for corporations */ CNPJ = "CNPJ" } interface MultiCurrencyPrice { /** Amount. */ amount?: string; /** * Converted amount. * @readonly */ convertedAmount?: string; /** * Amount formatted with currency symbol. * @readonly */ formattedAmount?: string; /** * Converted amount formatted with currency symbol. * @readonly */ formattedConvertedAmount?: string; } interface Activity { /** Date and time the automation activity was created. */ createdDate?: Date | null; /** Automation activity type. */ type?: ActivityType; } interface GetAbandonedCheckoutRequest { /** Abandoned checkout ID. */ abandonedCheckoutId: string; } interface GetAbandonedCheckoutResponse { /** The requested abandoned checkout. */ abandonedCheckout?: AbandonedCheckout; } interface DeleteAbandonedCheckoutRequest { /** Id of the abandoned checkout to delete */ abandonedCheckoutId: string; } interface DeleteAbandonedCheckoutResponse { } interface QueryAbandonedCheckoutsRequest { /** Query options. */ query: QueryV2; } interface QueryV2 extends QueryV2PagingMethodOneOf { /** Paging options to limit and skip the number of items. */ paging?: Paging; /** 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`. */ cursorPaging?: CursorPaging; /** * Filter object. * * Learn more about the [filter section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-filter-section). */ filter?: Record | null; /** * Sort object. * * Learn more about the [sort section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-sort-section). */ sort?: Sorting[]; /** Array of projected fields. A list of specific field names to return. If `fieldsets` are also specified, the union of `fieldsets` and `fields` is returned. */ fields?: string[]; /** Array of named, predefined sets of projected fields. A array of predefined named sets of fields to be returned. Specifying multiple `fieldsets` will return the union of fields from all sets. If `fields` are also specified, the union of `fieldsets` and `fields` is returned. */ fieldsets?: string[]; } /** @oneof */ interface QueryV2PagingMethodOneOf { /** Paging options to limit and skip the number of items. */ paging?: Paging; /** 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`. */ cursorPaging?: CursorPaging; } interface Sorting { /** Name of the field to sort by. */ fieldName?: string; /** Sort order. */ order?: SortOrder; } declare enum SortOrder { ASC = "ASC", DESC = "DESC" } interface Paging { /** Number of items to load. */ limit?: number | null; /** Number of items to skip in the current sort order. */ offset?: number | null; } interface CursorPaging { /** Maximum number of items to return in the results. */ limit?: number | null; /** * Pointer to the next or previous page in the list of results. * * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response. * Not relevant for the first request. */ cursor?: string | null; } interface QueryAbandonedCheckoutsResponse { /** * __Deprecated.__ Use `abandonedCheckouts` instead. * @deprecated */ results?: AbandonedCheckout[]; /** List of abandoned checkouts. */ abandonedCheckouts?: AbandonedCheckout[]; /** Details on the paged set of results returned. */ metadata?: PagingMetadataV2; } interface PagingMetadataV2 { /** Number of items returned in the response. */ count?: number | null; /** Offset that was requested. */ offset?: number | null; /** Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set. */ total?: number | null; /** Flag that indicates the server failed to calculate the `total` field. */ tooManyToCount?: boolean | null; /** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */ cursors?: Cursors; } interface Cursors { /** Cursor string pointing to the next page in the list of results. */ next?: string | null; /** Cursor pointing to the previous page in the list of results. */ prev?: string | null; } interface SearchAbandonedCheckoutsRequest { /** WQL query expression. */ search?: Search; } interface Search extends SearchPagingMethodOneOf { /** Pointer to page of results using offset. Can not be used together with 'cursor_paging' */ paging?: CommonPaging; /** Cursor pointing to page of results. Can't be used together with 'paging'. 'cursor_paging.cursor' can not be used together with 'filter' or 'sort' */ cursorPaging?: CommonCursorPaging; /** A filter object. See documentation [here](https://bo.wix.com/wix-docs/rnd/platformization-guidelines/api-query-language#platformization-guidelines_api-query-language_defining-in-protobuf) */ filter?: Record | null; /** Sort object in the form [{"fieldName":"sortField1"},{"fieldName":"sortField2","direction":"DESC"}] */ sort?: CommonSorting[]; /** free text to match in searchable fields */ search?: SearchDetails; } /** @oneof */ interface SearchPagingMethodOneOf { /** Pointer to page of results using offset. Can not be used together with 'cursor_paging' */ paging?: CommonPaging; /** Cursor pointing to page of results. Can't be used together with 'paging'. 'cursor_paging.cursor' can not be used together with 'filter' or 'sort' */ cursorPaging?: CommonCursorPaging; } interface CommonSorting { /** Name of the field to sort by. */ fieldName?: string; /** Sort order. */ order?: CommonSortOrder; } declare enum CommonSortOrder { /** Ascending order. */ ASC = "ASC", /** Descending order. */ DESC = "DESC" } interface SearchDetails { /** boolean search mode */ mode?: Mode; /** search term or expression */ expression?: string | null; /** fields to search in. if empty - server will search in own default fields */ fields?: string[]; /** flag if should use auto fuzzy search (allowing typos by a managed proximity algorithm) */ fuzzy?: boolean; } declare enum Mode { /** Any */ OR = "OR", /** All */ AND = "AND" } interface CommonPaging { /** Number of items to load. */ limit?: number | null; /** Number of items to skip in the current sort order. */ offset?: number | null; } interface CommonCursorPaging { /** Maximum number of items to return in the results. */ limit?: number | null; /** * Pointer to the next or previous page in the list of results. * * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response. * Not relevant for the first request. */ cursor?: string | null; } interface SearchAbandonedCheckoutsResponse { /** List of abandoned checkouts. */ abandonedCheckouts?: AbandonedCheckout[]; /** Paging metadata. Contains cursor which can be used in next query. */ pagingMetadata?: CommonPagingMetadataV2; } interface CommonPagingMetadataV2 { /** Number of items returned in the response. */ count?: number | null; /** Offset that was requested. */ offset?: number | null; /** Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set. */ total?: number | null; /** Flag that indicates the server failed to calculate the `total` field. */ tooManyToCount?: boolean | null; /** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */ cursors?: CommonCursors; } interface CommonCursors { /** Cursor string pointing to the next page in the list of results. */ next?: string | null; /** Cursor pointing to the previous page in the list of results. */ prev?: string | null; } interface AddAbandonedCheckoutActivityRequest { /** Id of the abandoned checkout to update */ abandonedCheckoutId: string | null; /** The type of the activity to add */ activityType?: ActivityType; } interface AddAbandonedCheckoutActivityResponse { /** The updated abandoned checkout with the added activity */ abandonedCheckout?: AbandonedCheckout; } interface RedirectToCheckoutRequest { /** ID of the abandoned checkout. */ abandonedCheckoutId: string; /** Metasite ID of the site associated with the abandoned checkout. */ metasiteId: string; } interface RawHttpResponse { body?: Uint8Array; statusCode?: number | null; headers?: HeadersEntry[]; } interface HeadersEntry { key?: string; value?: string; } interface V1BuyerInfoNonNullableFields { visitorId: string; memberId: string; userId: string; } interface VatIdNonNullableFields { id: string; type: VatType; } interface FullAddressContactDetailsNonNullableFields { vatId?: VatIdNonNullableFields; } interface MultiCurrencyPriceNonNullableFields { amount: string; convertedAmount: string; formattedAmount: string; formattedConvertedAmount: string; } interface ActivityNonNullableFields { type: ActivityType; } interface AbandonedCheckoutNonNullableFields { id: string; status: Status; buyerInfo?: V1BuyerInfoNonNullableFields; contactDetails?: FullAddressContactDetailsNonNullableFields; currency: string; totalPrice?: MultiCurrencyPriceNonNullableFields; activities: ActivityNonNullableFields[]; checkoutUrl: string; subtotalPrice?: MultiCurrencyPriceNonNullableFields; } interface GetAbandonedCheckoutResponseNonNullableFields { abandonedCheckout?: AbandonedCheckoutNonNullableFields; } interface QueryAbandonedCheckoutsResponseNonNullableFields { results: AbandonedCheckoutNonNullableFields[]; abandonedCheckouts: AbandonedCheckoutNonNullableFields[]; } interface SearchAbandonedCheckoutsResponseNonNullableFields { abandonedCheckouts: AbandonedCheckoutNonNullableFields[]; } interface AddAbandonedCheckoutActivityResponseNonNullableFields { abandonedCheckout?: AbandonedCheckoutNonNullableFields; } interface HeadersEntryNonNullableFields { key: string; value: string; } interface RawHttpResponseNonNullableFields { body: Uint8Array; headers: HeadersEntryNonNullableFields[]; } type __PublicMethodMetaInfo = { getUrl: (context: any) => string; httpMethod: K; path: string; pathParams: M; __requestType: T; __originalRequestType: S; __responseType: Q; __originalResponseType: R; }; declare function getAbandonedCheckout(): __PublicMethodMetaInfo<'GET', { abandonedCheckoutId: string; }, GetAbandonedCheckoutRequest$1, GetAbandonedCheckoutRequest, GetAbandonedCheckoutResponse$1 & GetAbandonedCheckoutResponseNonNullableFields$1, GetAbandonedCheckoutResponse & GetAbandonedCheckoutResponseNonNullableFields>; declare function deleteAbandonedCheckout(): __PublicMethodMetaInfo<'DELETE', { abandonedCheckoutId: string; }, DeleteAbandonedCheckoutRequest$1, DeleteAbandonedCheckoutRequest, DeleteAbandonedCheckoutResponse$1, DeleteAbandonedCheckoutResponse>; declare function queryAbandonedCheckouts(): __PublicMethodMetaInfo<'POST', {}, QueryAbandonedCheckoutsRequest$1, QueryAbandonedCheckoutsRequest, QueryAbandonedCheckoutsResponse$1 & QueryAbandonedCheckoutsResponseNonNullableFields$1, QueryAbandonedCheckoutsResponse & QueryAbandonedCheckoutsResponseNonNullableFields>; declare function searchAbandonedCheckouts(): __PublicMethodMetaInfo<'POST', {}, SearchAbandonedCheckoutsRequest$1, SearchAbandonedCheckoutsRequest, SearchAbandonedCheckoutsResponse$1 & SearchAbandonedCheckoutsResponseNonNullableFields$1, SearchAbandonedCheckoutsResponse & SearchAbandonedCheckoutsResponseNonNullableFields>; declare function addAbandonedCheckoutActivity(): __PublicMethodMetaInfo<'POST', { abandonedCheckoutId: string; }, AddAbandonedCheckoutActivityRequest$1, AddAbandonedCheckoutActivityRequest, AddAbandonedCheckoutActivityResponse$1 & AddAbandonedCheckoutActivityResponseNonNullableFields$1, AddAbandonedCheckoutActivityResponse & AddAbandonedCheckoutActivityResponseNonNullableFields>; declare function redirectToCheckout(): __PublicMethodMetaInfo<'GET', { abandonedCheckoutId: string; }, RedirectToCheckoutRequest$1, RedirectToCheckoutRequest, RawHttpResponse$1 & RawHttpResponseNonNullableFields$1, RawHttpResponse & RawHttpResponseNonNullableFields>; export { type __PublicMethodMetaInfo, addAbandonedCheckoutActivity, deleteAbandonedCheckout, getAbandonedCheckout, queryAbandonedCheckouts, redirectToCheckout, searchAbandonedCheckouts };