import { ListAccountIdsRequest as ListAccountIdsRequest$1, ListAccountIdsResponse as ListAccountIdsResponse$1, BusinessStatusRequest as BusinessStatusRequest$1, BusinessStatusResponse as BusinessStatusResponse$1, EstimateDeliveryRequest as EstimateDeliveryRequest$1, EstimateDeliveryResponse as EstimateDeliveryResponse$1, CreateDeliveryRequest as CreateDeliveryRequest$1, CreateDeliveryResponse as CreateDeliveryResponse$1 } from './index.typings.js'; import '@wix/sdk-types'; interface Tpa { } interface ListAccountIdsRequest { /** * Instance ID. * @format GUID */ instanceId: string; } interface ListAccountIdsResponse { /** Account IDs. */ accountIds?: string[]; } interface BusinessStatusRequest { /** * Instance ID. * @format GUID */ instanceId: string; /** Account ID. */ accountId: string; } interface BusinessStatusResponse { /** List of statue. */ status?: BusinessStatusWithLiterals; /** The reason for the error in free text. */ failureReasonMessage?: string | null; } /** Business Status. */ declare enum BusinessStatus { NONE = "NONE", READY = "READY", PENDING = "PENDING", ERROR = "ERROR", NOT_STARTED = "NOT_STARTED" } /** @enumType */ type BusinessStatusWithLiterals = BusinessStatus | 'NONE' | 'READY' | 'PENDING' | 'ERROR' | 'NOT_STARTED'; interface EstimateDeliveryRequest extends EstimateDeliveryRequestDispatchTimeOneOf { /** Estimated pickup time. */ pickupTime?: Date | null; /** Estimated dropoff time. */ dropoffTime?: Date | null; /** * Instance ID. * @format GUID */ instanceId: string; /** Account ID. */ accountId: string; /** Delivery pickup address. */ pickupAddress?: Address; /** Delivery dropoff address. */ dropoffAddress?: Address; /** Unique identifier of the specific store that the delivery is for. */ storeLocationId: string; /** The subtotal for all items in the order, excluding tax/tip. */ orderTotal: Money; } /** @oneof */ interface EstimateDeliveryRequestDispatchTimeOneOf { /** Estimated pickup time. */ pickupTime?: Date | null; /** Estimated dropoff time. */ dropoffTime?: Date | null; } /** Physical address */ interface Address { /** * Country code. * @format COUNTRY */ country?: string; /** Subdivision. Usually a state, region, prefecture, or province code, according to [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2). */ subdivision?: string | null; /** City name. */ city?: string; /** Zip/postal code. */ postalCode?: string | null; /** Street name and number. */ streetAddress?: StreetAddress; /** Free text providing more detailed address info. Usually contains Apt, Suite, and Floor. */ addressLine2?: string | null; /** Coordinates of the physical address. */ geocode?: AddressLocation; } interface StreetAddress { /** Street number. */ number?: string; /** Street name. */ name?: string; } interface AddressLocation { /** Address latitude. */ latitude?: number | null; /** Address longitude. */ longitude?: number | null; } /** * Money. * Default format to use. Sufficiently compliant with majority of standards: w3c, ISO 4217, ISO 20022, ISO 8583:2003. */ interface Money { /** * 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. * @format DECIMAL_VALUE */ value?: string; /** * Currency code. Must be valid ISO 4217 currency code (e.g., USD). * @format CURRENCY */ currency?: string; /** Monetary amount. Decimal string in local format (e.g., 1 000,30). Optionally, a single (-), to indicate that the amount is negative. */ formattedValue?: string | null; } interface EstimateDeliveryResponse { /** Optional. Used as reference to the estimate when creating a new order. */ id?: string | null; /** Amount that is charged for this delivery. */ fee?: Money; /** Estimated pickup time. */ promisedPickupTime?: Date | null; /** Estimated dropoff time. */ promisedDropoffTime?: Date | null; } interface CreateDeliveryRequest extends CreateDeliveryRequestDispatchTimeOneOf { /** The requested time at which the order should be picked up. */ pickupTime?: Date | null; /** The requested time at which the order should be delivered. */ dropoffTime?: Date | null; /** * Instance ID. * @format GUID */ instanceId: string; /** Account ID. */ accountId: string; /** Unique identifier of the specific store that the delivery is for. */ storeLocationId: string; /** The name of the business where the order should be picked up from. */ pickupBusinessName: string; /** Estimate ID. */ estimateId?: string | null; /** Delivery pickup address. */ pickupAddress: Address; /** Delivery dropoff address. */ dropoffAddress: Address; /** Phone number of the store where the order should be picked up from. */ pickupPhoneNumber: string; /** Customer details. */ customer: Customer; /** Instructions for the courier at the pickup location. */ pickupInstructions?: string | null; /** Instructions for the courier at the dropoff location. */ dropoffInstructions?: string | null; /** Is contactless delivery. */ contactlessDelivery?: boolean | null; /** Order ID. */ orderId: string; /** The subtotal for all items in the order, excluding tax/tip. */ orderTotal: Money; /** Amount that will be paid to the courier. */ orderTip: Money; } /** @oneof */ interface CreateDeliveryRequestDispatchTimeOneOf { /** The requested time at which the order should be picked up. */ pickupTime?: Date | null; /** The requested time at which the order should be delivered. */ dropoffTime?: Date | null; } interface Customer { /** First name. */ firstName?: string; /** Last name. */ lastName?: string; /** Phone number. */ phoneNumber?: string; /** * Email address. * @format EMAIL */ email?: string; } interface CreateDeliveryResponse { /** The vendor new order id */ id?: string; /** When a delivery is ready to be picked up. This is the start of the pickup window. */ pickupWindowStartTime?: Date | null; /** When a delivery must be picked up by. This is the end of the pickup window. */ pickupWindowEndTime?: Date | null; /** When a delivery is ready to be dropped off. This is the start of the dropoff window. */ dropoffWindowStartTime?: Date | null; /** When a delivery must be dropped off by. This is the end of the dropoff window. */ dropoffWindowEndTime?: Date | null; /** Amount that is charged for this delivery. */ fee?: Money; } /** @docsIgnore */ type EstimateDeliveryApplicationErrors = { code?: 'ESTIMATE_DELIVERY_REJECTED'; description?: string; data?: Record; }; /** @docsIgnore */ type CreateDeliveryApplicationErrors = { code?: 'CREATE_DELIVERY_REJECTED'; description?: string; data?: Record; }; type __PublicMethodMetaInfo = { getUrl: (context: any) => string; httpMethod: K; path: string; pathParams: M; __requestType: T; __originalRequestType: S; __responseType: Q; __originalResponseType: R; }; declare function listAccountIds(): __PublicMethodMetaInfo<'POST', {}, ListAccountIdsRequest$1, ListAccountIdsRequest, ListAccountIdsResponse$1, ListAccountIdsResponse>; declare function businessStatus(): __PublicMethodMetaInfo<'POST', {}, BusinessStatusRequest$1, BusinessStatusRequest, BusinessStatusResponse$1, BusinessStatusResponse>; declare function estimateDelivery(): __PublicMethodMetaInfo<'POST', {}, EstimateDeliveryRequest$1, EstimateDeliveryRequest, EstimateDeliveryResponse$1, EstimateDeliveryResponse>; declare function createDelivery(): __PublicMethodMetaInfo<'POST', {}, CreateDeliveryRequest$1, CreateDeliveryRequest, CreateDeliveryResponse$1, CreateDeliveryResponse>; export { type AddressLocation as AddressLocationOriginal, type Address as AddressOriginal, BusinessStatus as BusinessStatusOriginal, type BusinessStatusRequest as BusinessStatusRequestOriginal, type BusinessStatusResponse as BusinessStatusResponseOriginal, type BusinessStatusWithLiterals as BusinessStatusWithLiteralsOriginal, type CreateDeliveryApplicationErrors as CreateDeliveryApplicationErrorsOriginal, type CreateDeliveryRequestDispatchTimeOneOf as CreateDeliveryRequestDispatchTimeOneOfOriginal, type CreateDeliveryRequest as CreateDeliveryRequestOriginal, type CreateDeliveryResponse as CreateDeliveryResponseOriginal, type Customer as CustomerOriginal, type EstimateDeliveryApplicationErrors as EstimateDeliveryApplicationErrorsOriginal, type EstimateDeliveryRequestDispatchTimeOneOf as EstimateDeliveryRequestDispatchTimeOneOfOriginal, type EstimateDeliveryRequest as EstimateDeliveryRequestOriginal, type EstimateDeliveryResponse as EstimateDeliveryResponseOriginal, type ListAccountIdsRequest as ListAccountIdsRequestOriginal, type ListAccountIdsResponse as ListAccountIdsResponseOriginal, type Money as MoneyOriginal, type StreetAddress as StreetAddressOriginal, type Tpa as TpaOriginal, type __PublicMethodMetaInfo, businessStatus, createDelivery, estimateDelivery, listAccountIds };