import { ConnectWixPaymentsAccountRequest as ConnectWixPaymentsAccountRequest$1, ConnectWixPaymentsAccountResponse as ConnectWixPaymentsAccountResponse$1, ConnectWixPaymentsAccountBase44Request as ConnectWixPaymentsAccountBase44Request$1, ConnectWixPaymentsAccountBase44Response as ConnectWixPaymentsAccountBase44Response$1, SetupBase44SiteRequest as SetupBase44SiteRequest$1, SetupBase44SiteResponse as SetupBase44SiteResponse$1 } from './index.typings.js'; import '@wix/sdk-types'; /** An account that enables a Wix site to process customer payments. */ interface WixPaymentsAccount { /** * ID of the Wix Payments account. * @format GUID * @readonly */ id?: string | null; /** * First name of the Wix Payments account owner. * @maxLength 500 */ firstName?: string | null; /** * Last name of the Wix Payments account owner. * @maxLength 500 */ lastName?: string | null; /** * Whether the account owner has accepted the * [Wix Payments Terms of Service](https://www.wix.com/about/terms-of-payments). * The account owner must accept these terms for the account to be created * successfully. If the terms aren't accepted, the Connect Wix Payments Account * call fails. * @deprecated Whether the account owner has accepted the * [Wix Payments Terms of Service](https://www.wix.com/about/terms-of-payments). * The account owner must accept these terms for the account to be created * successfully. If the terms aren't accepted, the Connect Wix Payments Account * call fails. * @replacedBy terms_of_service_acceptance * @targetRemovalDate 2026-07-31 */ tosAccepted?: boolean | null; termsOfServiceAcceptance?: TermsOfServiceAcceptance; /** * email of the Wix Payments account owner. * @format EMAIL */ email?: string | null; /** * Brief summary of the types of products and services offered for sale through the Wix Payments account. * For example, "Sportswear and sport accessories". * @maxLength 500 */ productDescription?: string | null; /** * Country code. * @format COUNTRY */ country?: string | null; /** @maxLength 50 */ softDescriptor?: string | null; /** @format WEB_URL */ businessUrl?: string | null; } interface TermsOfServiceAcceptance { /** @format IPV4 */ ip?: string; } interface ConnectWixPaymentsAccountRequest { /** Wix Payments account to connect to the site. */ account: WixPaymentsAccount; } interface ConnectWixPaymentsAccountResponse { /** Connected Wix Payments account. */ account?: WixPaymentsAccount; } interface ConnectWixPaymentsAccountBase44Request { /** Wix Payments account to connect to the site. */ account: WixPaymentsAccount; /** * MetaSite id * @format GUID */ siteId?: string | null; /** * User id * @format GUID */ userId?: string | null; /** * App id * @maxLength 32 */ appId?: string | null; base44App?: Base44AppData; } interface Base44AppData { /** * App id * @maxLength 32 */ appId?: string | null; /** * App name * @maxLength 512 */ appName?: string | null; /** * App url * @format WEB_URL */ appUrl?: string | null; /** * email of the Base app owner. * @format EMAIL */ ownerEmail?: string | null; /** * Country code. * @format COUNTRY */ country?: string | null; } interface ConnectWixPaymentsAccountBase44Response { /** Connected Wix Payments account. */ account?: WixPaymentsAccount; base44Metadata?: Base44Metadata; } interface Base44Metadata { /** * MetaSite ID * @format GUID */ siteId?: string; /** * Webhook public key for verifying callbacks * @maxLength 500 */ webhookPublicKey?: string; /** * App secret for authentication * @maxLength 500 */ appSecret?: string; /** * API key for subsequent calls * @maxLength 500 */ apiKey?: string; } interface SetupBase44SiteRequest { /** * MetaSite ID. If not provided, a new metasite is created. * @format GUID */ siteId?: string | null; /** * User ID. If not provided, extracted from the authentication token. * @format GUID */ userId?: string | null; /** * App ID * @maxLength 32 */ appId?: string | null; /** Base44 app data */ base44App?: Base44AppData; } interface SetupBase44SiteResponse { /** * MetaSite ID of the created or existing site * @format GUID */ siteId?: string; /** * API key for subsequent calls * @maxLength 500 */ apiKey?: string; } /** @docsIgnore */ type ConnectWixPaymentsAccountBase44ApplicationErrors = { code?: 'MISSING_TERMS_OF_SERVICE'; 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 connectWixPaymentsAccount(): __PublicMethodMetaInfo<'POST', {}, ConnectWixPaymentsAccountRequest$1, ConnectWixPaymentsAccountRequest, ConnectWixPaymentsAccountResponse$1, ConnectWixPaymentsAccountResponse>; declare function connectWixPaymentsAccountBase44(): __PublicMethodMetaInfo<'POST', {}, ConnectWixPaymentsAccountBase44Request$1, ConnectWixPaymentsAccountBase44Request, ConnectWixPaymentsAccountBase44Response$1, ConnectWixPaymentsAccountBase44Response>; declare function setupBase44Site(): __PublicMethodMetaInfo<'POST', {}, SetupBase44SiteRequest$1, SetupBase44SiteRequest, SetupBase44SiteResponse$1, SetupBase44SiteResponse>; export { type Base44AppData as Base44AppDataOriginal, type Base44Metadata as Base44MetadataOriginal, type ConnectWixPaymentsAccountBase44ApplicationErrors as ConnectWixPaymentsAccountBase44ApplicationErrorsOriginal, type ConnectWixPaymentsAccountBase44Request as ConnectWixPaymentsAccountBase44RequestOriginal, type ConnectWixPaymentsAccountBase44Response as ConnectWixPaymentsAccountBase44ResponseOriginal, type ConnectWixPaymentsAccountRequest as ConnectWixPaymentsAccountRequestOriginal, type ConnectWixPaymentsAccountResponse as ConnectWixPaymentsAccountResponseOriginal, type SetupBase44SiteRequest as SetupBase44SiteRequestOriginal, type SetupBase44SiteResponse as SetupBase44SiteResponseOriginal, type TermsOfServiceAcceptance as TermsOfServiceAcceptanceOriginal, type WixPaymentsAccount as WixPaymentsAccountOriginal, type __PublicMethodMetaInfo, connectWixPaymentsAccount, connectWixPaymentsAccountBase44, setupBase44Site };