import { i as CreateShippingOptionRequest$1, j as CreateShippingOptionResponse$1, J as CreateShippingOptionResponseNonNullableFields$1, G as GetShippingOptionRequest$1, k as GetShippingOptionResponse$1, K as GetShippingOptionResponseNonNullableFields$1, l as UpdateShippingOptionRequest$1, m as UpdateShippingOptionResponse$1, N as UpdateShippingOptionResponseNonNullableFields$1, D as DeleteShippingOptionRequest$1, n as DeleteShippingOptionResponse$1, Q as QueryShippingOptionsRequest$1, s as QueryShippingOptionsResponse$1, O as QueryShippingOptionsResponseNonNullableFields$1, v as UpdateExtendedFieldsRequest$1, d as UpdateExtendedFieldsResponse$1, e as UpdateExtendedFieldsResponseNonNullableFields$1 } from './ecom-v1-shipping-option-shipping-options.universal-DfWXsWUe.mjs'; interface ShippingOption { /** * ShippingOption ID. * @readonly */ id?: string | null; /** * Revision number, which increments by 1 each time the ShippingOption is updated. * To prevent conflicting changes, * the current revision must be passed when updating the ShippingOption. * * Ignored when creating a ShippingOption. * @readonly */ revision?: string | null; /** * Date and time the ShippingOption was created. * @readonly */ createdDate?: Date | null; /** * Date and time the ShippingOption was last updated. * @readonly */ updatedDate?: Date | null; /** Associated delivery region id. */ deliveryRegionId?: string; /** Delivery option configured for the ShippingOption */ title?: string | null; estimateDeliveryTime?: string | null; /** at runtime for a given shipment input, up to one rate (price) should be returned in an option. If more than one rate is valid then we return the lowest one. */ rates?: ConditionalRates[]; /** Data Extensions */ extendedFields?: ExtendedFields; } interface ConditionalRates { /** * there is an AND logic between all the conditions. Empty conditions means true. * For example: weight > 0 and weight <= 10 */ conditions?: Condition[]; /** The amount of the rate that will be returned if all conditions are met. */ amount?: string; /** When this flag is set to true, multiply the amount by the number of line items passed on the request. */ multiplyByQuantity?: boolean; } interface Condition { type?: ConditionType; /** * The value in respective to the condition type * Weight values should be in the same weight units of the store: KG / LB * Total price is according to the store currency * Quantity of items should be integers */ value?: string; operator?: LogicalOperator; } declare enum ConditionType { UNKNOWN_TYPE = "UNKNOWN_TYPE", BY_TOTAL_WEIGHT = "BY_TOTAL_WEIGHT", BY_TOTAL_PRICE = "BY_TOTAL_PRICE", BY_TOTAL_QUANTITY = "BY_TOTAL_QUANTITY" } declare enum LogicalOperator { UNKNOWN_LOGICAL_OPERATOR_TYPE = "UNKNOWN_LOGICAL_OPERATOR_TYPE", EQ = "EQ", GT = "GT", GTE = "GTE", LT = "LT", LTE = "LTE" } interface ExtendedFields { /** * Extended field data. Each key corresponds to the namespace of the app that created the extended fields. * The value of each key is structured according to the schema defined when the extended fields were configured. * * You can only access fields for which you have the appropriate permissions. * * Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields). */ namespaces?: Record>; } interface CreateShippingOptionRequest { /** ShippingOption to be created. */ shippingOption: ShippingOption; } interface CreateShippingOptionResponse { /** The created ShippingOption. */ shippingOption?: ShippingOption; } interface GetShippingOptionRequest { /** ID of the ShippingOption to retrieve. */ shippingOptionId: string; } interface GetShippingOptionResponse { /** The requested ShippingOption. */ shippingOption?: ShippingOption; } interface UpdateShippingOptionRequest { /** ShippingOption to be updated, may be partial. */ shippingOption: ShippingOption; } interface UpdateShippingOptionResponse { /** Updated ShippingOption. */ shippingOption?: ShippingOption; } interface DeleteShippingOptionRequest { /** Id of the ShippingOption to delete. */ shippingOptionId: string; } interface DeleteShippingOptionResponse { } interface QueryShippingOptionsRequest { /** WQL expression. */ query?: CursorQuery; } interface CursorQuery extends CursorQueryPagingMethodOneOf { /** 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 in the following format: * `"filter" : { * "fieldName1": "value1", * "fieldName2":{"$operator":"value2"} * }` * Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains` */ filter?: Record | null; /** * Sort object in the following format: * `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]` */ sort?: Sorting[]; } /** @oneof */ interface CursorQueryPagingMethodOneOf { /** 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 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 QueryShippingOptionsResponse { /** List of ShippingOptions. */ shippingOptions?: ShippingOption[]; /** Paging metadata */ pagingMetadata?: CursorPagingMetadata; } interface CursorPagingMetadata { /** Number of items returned in the response. */ count?: number | null; /** Cursor strings that point to the next page, previous page, or both. */ cursors?: Cursors; /** * Whether there are more pages to retrieve following the current page. * * + `true`: Another page of results can be retrieved. * + `false`: This is the last page. */ hasNext?: boolean | null; } 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 UpdateExtendedFieldsRequest { /** ID of the entity to update. */ id: string; /** Identifier for the app whose extended fields are being updated. */ namespace: string; /** Data to update. Structured according to the [schema](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields#json-schema-for-extended-fields) defined when the extended fields were configured. */ namespaceData: Record | null; } interface UpdateExtendedFieldsResponse { /** Updated ShippingOption. */ shippingOption?: ShippingOption; } interface ConditionNonNullableFields { type: ConditionType; value: string; operator: LogicalOperator; } interface ConditionalRatesNonNullableFields { conditions: ConditionNonNullableFields[]; amount: string; multiplyByQuantity: boolean; } interface ShippingOptionNonNullableFields { deliveryRegionId: string; rates: ConditionalRatesNonNullableFields[]; } interface CreateShippingOptionResponseNonNullableFields { shippingOption?: ShippingOptionNonNullableFields; } interface GetShippingOptionResponseNonNullableFields { shippingOption?: ShippingOptionNonNullableFields; } interface UpdateShippingOptionResponseNonNullableFields { shippingOption?: ShippingOptionNonNullableFields; } interface QueryShippingOptionsResponseNonNullableFields { shippingOptions: ShippingOptionNonNullableFields[]; } interface UpdateExtendedFieldsResponseNonNullableFields { shippingOption?: ShippingOptionNonNullableFields; } type __PublicMethodMetaInfo = { getUrl: (context: any) => string; httpMethod: K; path: string; pathParams: M; __requestType: T; __originalRequestType: S; __responseType: Q; __originalResponseType: R; }; declare function createShippingOption(): __PublicMethodMetaInfo<'POST', {}, CreateShippingOptionRequest$1, CreateShippingOptionRequest, CreateShippingOptionResponse$1 & CreateShippingOptionResponseNonNullableFields$1, CreateShippingOptionResponse & CreateShippingOptionResponseNonNullableFields>; declare function getShippingOption(): __PublicMethodMetaInfo<'GET', { shippingOptionId: string; }, GetShippingOptionRequest$1, GetShippingOptionRequest, GetShippingOptionResponse$1 & GetShippingOptionResponseNonNullableFields$1, GetShippingOptionResponse & GetShippingOptionResponseNonNullableFields>; declare function updateShippingOption(): __PublicMethodMetaInfo<'PATCH', { shippingOptionId: string; }, UpdateShippingOptionRequest$1, UpdateShippingOptionRequest, UpdateShippingOptionResponse$1 & UpdateShippingOptionResponseNonNullableFields$1, UpdateShippingOptionResponse & UpdateShippingOptionResponseNonNullableFields>; declare function deleteShippingOption(): __PublicMethodMetaInfo<'DELETE', { shippingOptionId: string; }, DeleteShippingOptionRequest$1, DeleteShippingOptionRequest, DeleteShippingOptionResponse$1, DeleteShippingOptionResponse>; declare function queryShippingOptions(): __PublicMethodMetaInfo<'GET', {}, QueryShippingOptionsRequest$1, QueryShippingOptionsRequest, QueryShippingOptionsResponse$1 & QueryShippingOptionsResponseNonNullableFields$1, QueryShippingOptionsResponse & QueryShippingOptionsResponseNonNullableFields>; declare function updateExtendedFields(): __PublicMethodMetaInfo<'POST', { id: string; }, UpdateExtendedFieldsRequest$1, UpdateExtendedFieldsRequest, UpdateExtendedFieldsResponse$1 & UpdateExtendedFieldsResponseNonNullableFields$1, UpdateExtendedFieldsResponse & UpdateExtendedFieldsResponseNonNullableFields>; export { type __PublicMethodMetaInfo, createShippingOption, deleteShippingOption, getShippingOption, queryShippingOptions, updateExtendedFields, updateShippingOption };