import { HttpClient, NonNullablePaths, MaybeContext, BuildRESTFunction } from '@wix/sdk-types'; import { CreatePackageOptions, CreatePackageResponse, CreatePackageV2Options, CancelPackageOptions, CancelPackageResponse, Package, AssignProductInstanceToSiteIdentifiers, AssignProductInstanceToSiteOptions, AssignProductInstanceToSiteResponse, UnassignProductInstanceFromSiteOptions, UnassignProductInstanceFromSiteResponse, CancelProductInstanceOptions, CancelProductInstanceResponse, AdjustProductInstanceSpecificationsOptions, AdjustProductInstanceSpecificationsResponse, UpdatePackageExternalIdIdentifiers, UpdatePackageExternalIdResponse, PackagesQueryBuilder, PackageQuery, typedQueryPackages } from './index.typings.js'; export { AccountInfo, ActionEvent, AdjustProductInstanceSpecificationsRequest, AdjustedProductInstanceSpecifications, AssignProductInstanceToSiteRequest, AssignedProductInstanceToSite, BillingReference, Cancel, CancelPackageRequest, CancelProductInstanceRequest, CancellationDetails, CommonQueryWithEntityContext, Complete, ContractSwitchReason, ContractSwitchReasonWithLiterals, ContractSwitchType, ContractSwitchTypeWithLiterals, ContractSwitched, CountPackagesRequest, CountPackagesResponse, CreatePackageRequest, CursorPaging, Cursors, Cycle, CycleCycleSelectorOneOf, CycleDescriptorType, CycleDescriptorTypeWithLiterals, CycleInterval, DomainEvent, DomainEventBodyOneOf, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, FailureReason, FailureReasonCode, FailureReasonCodeWithLiterals, FailureReportRequest, FieldToUpdate, FieldToUpdateWithLiterals, FixBrokenMigrationRequest, FixBrokenMigrationResponse, GetPackageRequest, GetPackageResponse, IdentificationData, IdentificationDataIdOneOf, Initiator, InitiatorWithLiterals, Interval, IntervalIntervalUnit, IntervalIntervalUnitWithLiterals, IntervalUnit, IntervalUnitWithLiterals, MessageEnvelope, MigrateSubscriptionToPackagesRequest, MigrateSubscriptionToPackagesResponse, OneTime, PackageCanceled, PackageQuerySpec, PackagesQueryResult, Paging, PagingMetadataV2, PriceIncreaseTrigger, PriceIncreaseTriggerWithLiterals, ProductAdjustment, ProductAdjustmentWithLiterals, ProductInstance, ProductInstanceCanceled, ProductInstanceContractDetailsOneOf, ProductInstanceCycle, ProductInstanceFailed, ProductInstanceUpdated, ProductPriceIncreaseData, ProviderName, ProviderNameWithLiterals, QueryPackagesRequest, QueryPackagesResponse, QueryV2, QueryV2PagingMethodOneOf, ReactivationData, ReactivationReasonEnum, ReactivationReasonEnumWithLiterals, RecurringChargeAttemptFailed, RecurringChargeSucceeded, RefundType, RefundTypeWithLiterals, Reschedule, RestoreInfo, SortOrder, SortOrderWithLiterals, Sorting, Status, StatusWithLiterals, Subscription, SubscriptionAssigned, SubscriptionAutoRenewTurnedOff, SubscriptionAutoRenewTurnedOn, SubscriptionCancelled, SubscriptionCreated, SubscriptionEvent, SubscriptionEventEventOneOf, SubscriptionNearEndOfPeriod, SubscriptionPendingChange, SubscriptionStatus, SubscriptionStatusWithLiterals, SubscriptionTransferred, SubscriptionUnassigned, Task, TaskAction, TaskActionActionOneOf, TaskKey, UnassignProductInstanceFromSiteRequest, UnassignReason, UnassignReasonWithLiterals, UnassignedProductInstanceFromSite, UpdatePackageExternalIdRequest, UpdateProductInstanceRequest, UpdateProductInstanceResponse, WebhookIdentityType, WebhookIdentityTypeWithLiterals, utils } from './index.typings.js'; declare function createPackage$1(httpClient: HttpClient): CreatePackageSignature; interface CreatePackageSignature { /** * Creates a new package. * * Deprecated: This method is deprecated and will be removed by 2024-12-31. * Use com.wixpress.premium.reseller.packages.v1.Packages.CreatePackageV2 instead. * * HTTP Request: * POST /v1/packages * * Permissions: * Requires the "premium.reseller-package.manage" permission with MANUAL type. * * Event: * A PRIVATE callback will be triggered when the package is successfully created. * * Required Fields: * - CreatePackageRequest.products * * Maturity: GA * Exposure: PUBLIC * @deprecated */ (options?: NonNullablePaths): Promise>; } declare function createPackageV2$1(httpClient: HttpClient): CreatePackageV2Signature; interface CreatePackageV2Signature { /** * Creates a package of product instances. * * * You must pass the relevant Wix account ID in the header of the call. In * the DIY flow, we recommend to pass the customer's sub-account ID instead * of your main reseller account ID. * * You may also pass a Wix site ID for each product in the body of the call. * If you omit the site ID, a floating product instance is created. * * When Wix customers purchase a specific paid service or product, Wix may offer * them time-limited free access to a different product. For example, customers * get a voucher for a free 1-year domain registration when purchasing any Wix * Premium plan. If you want to offer your customers the same benefit, create a * package containing the original product first. Then, create a second package * with the additional product. In the second Create Package call, pass the * instance ID of the original product as `referenceProductInstanceId`. This way, * Wix doesn't charge you for the additional product. Make sure that the status * of the referenced product is either `"PENDING"` or `"ACTIVE"`. Note that you * can use each product instance only a single time as reference instance. * * You need to pass a `countryCode` to specify where customers can claim * vouchers that may come with a product. Contact the * [Wix B2B sales team](mailto:bizdev@wix.com) to get information about * vouchers and supported locations. * * > **Important**: This call requires an account level API key and cannot be * > authenticated with the standard authorization header. */ (options?: NonNullablePaths): Promise>; } declare function cancelPackage$1(httpClient: HttpClient): CancelPackageSignature; interface CancelPackageSignature { /** * Cancels all product instances included in the package and the customer * immediately loses access to the canceled functionality. * * * You must pass the ID of the Wix account that the package belongs to in the * header of the call. The call fails, if the package and Wix account don't * match. * * If a canceled product instance is a requirement for another Wix service, that * functionality is also no longer available to the customer. For example, if * you cancel a Premium plan, a previously connected domain is automatically * disconnected from the site. * * > **Important**: This call requires an account level API key and cannot be * > authenticated with the standard authorization header. * @param - ID of the package to cancel. */ (_id: string, options?: CancelPackageOptions): Promise>; } declare function getPackage$1(httpClient: HttpClient): GetPackageSignature; interface GetPackageSignature { /** * Retrieves a package. * * * You must pass the ID of the Wix account that the package belongs to in the * header of the call. The call fails, if the package and Wix account don't * match. * * > **Important**: This call requires an account level API key and cannot be * > authenticated with the standard authorization header. * @param - Package ID. * @returns Retrieved package. */ (_id: string): Promise>; } declare function assignProductInstanceToSite$1(httpClient: HttpClient): AssignProductInstanceToSiteSignature; interface AssignProductInstanceToSiteSignature { /** * Assigns a product instance to a site. * * You must pass the ID of the Wix account that the product instance belongs to in the header of the call. * * The customer immediately gains access to features included in the assigned service. It's up to the reseller to decide whether assigning a product instance affects the customer’s payment. * * It's possible to assign a product instance that's already assigned to a site, to a different site without [unassigning](/packages/unassign-product-instance-from-site) it first. But if the call fails in such a situation, the product instance may either remain assigned to the original site or become unassigned. You can confirm the instance's status by [retrieving the relevant package](/packages/get-package). * * > **Important:** This call requires an account level API key and cannot be authenticated with the standard authorization header. */ (identifiers: NonNullablePaths, options?: AssignProductInstanceToSiteOptions): Promise>; } declare function unassignProductInstanceFromSite$1(httpClient: HttpClient): UnassignProductInstanceFromSiteSignature; interface UnassignProductInstanceFromSiteSignature { /** * Unassigns a product instance from a site. * * You must pass the ID of the Wix account that the product instance belongs to in the header of the call. * * The product instance becomes floating and the customer immediately looses access to features included in the unassigned service. It's up to the reseller to decide whether unassigning a product instance affects the customer’s payment. * * If an unassigned product instance is a requirement for another service, that service may not be available to the customer any longer. For example, if you unassign a `Combo Plan` plan from a site, a previously connected domain is disconnected. * * You can assign floating product instances to sites using the [Assign Product Instance to Site](/packages/assign-product-instance-to-site) method. * * > **Important:** This call requires an account level API key and cannot be authenticated with the standard authorization header. * @param - ID of the product instance to unassign from a site. */ (instanceId: string, options?: UnassignProductInstanceFromSiteOptions): Promise>; } declare function cancelProductInstance$1(httpClient: HttpClient): CancelProductInstanceSignature; interface CancelProductInstanceSignature { /** * Cancels a product instance. * * * You must pass the ID of the Wix account that the product instance belongs * to in the header of the call. The call fails, if the product instance and * Wix account don't match. * * The customer immediately loses access to features included in the * canceled service. It's up to the reseller to decide whether the adjustment * affects the customer’s payment. * * If a canceled service is a requirement for another service, that service * may not be available to the customer any longer. For example, if you cancel * a `Combo Plan` plan, a previously connected domain is disconnected * from the site. * * * > **Important**: This call requires an account level API key and cannot be * > authenticated with the standard authorization header. * @param - ID of the product instance to cancel. */ (instanceId: string, options?: CancelProductInstanceOptions): Promise>; } declare function adjustProductInstanceSpecifications$1(httpClient: HttpClient): AdjustProductInstanceSpecificationsSignature; interface AdjustProductInstanceSpecificationsSignature { /** * Upgrades or downgrades a product instance. For example, you can upgrade a * customer's `Business Unlimited Premium` plan to `Business VIP` using this * endpoint. * * * You must pass the ID of the Wix account that the product instance belongs * to in the header of the call. The call fails, if the product instance and * Wix account don't match. * * The customer has immediate access to new features, while losing access to * features not included in the new service. It's up to the reseller to * decide whether the adjustment affects the customer’s payment. * * You can only exchange a product instance with a service of the same type. * Contact the [Wix B2B sales team](mailto:bizdev@wix.com) for details about * which services belong to the same type. * * You must provide either a new `catalogProductId` or a new `billingInfo` * object. The new billing cycle must be supported for the product. Contact the * [Wix B2B sales team](mailto:bizdev@wix.com) for information * about which billing cycles are supported for each product. If you adjust the * billing cycle for a product instance with `RECURRING` payments, you must * also provide `billingInfo.cycleDuration.unit`. * * If a removed feature is a requirement for another service, that service * may not be available to the customer any longer. For example, if you downgrade a * `Business Unlimited` plan to `Business Basic`, the site owners won’t be * able to use `Pro eCommerce Features` any longer. * * > **Important**: This call requires an account level API key and cannot be * > authenticated with the standard authorization header. * @param - ID of the product instance to adjust. */ (instanceId: string, options?: AdjustProductInstanceSpecificationsOptions): Promise>; } declare function updatePackageExternalId$1(httpClient: HttpClient): UpdatePackageExternalIdSignature; interface UpdatePackageExternalIdSignature { /** * Updates a package's external ID field. */ (identifiers: NonNullablePaths): Promise>; } declare function customQueryPackages(httpClient: HttpClient): { (): PackagesQueryBuilder; (query: PackageQuery): ReturnType; }; declare const createPackage: MaybeContext & typeof createPackage$1>; declare const createPackageV2: MaybeContext & typeof createPackageV2$1>; declare const cancelPackage: MaybeContext & typeof cancelPackage$1>; declare const getPackage: MaybeContext & typeof getPackage$1>; declare const assignProductInstanceToSite: MaybeContext & typeof assignProductInstanceToSite$1>; declare const unassignProductInstanceFromSite: MaybeContext & typeof unassignProductInstanceFromSite$1>; declare const cancelProductInstance: MaybeContext & typeof cancelProductInstance$1>; declare const adjustProductInstanceSpecifications: MaybeContext & typeof adjustProductInstanceSpecifications$1>; declare const updatePackageExternalId: MaybeContext & typeof updatePackageExternalId$1>; declare const queryPackages: MaybeContext & typeof customQueryPackages>; export { AdjustProductInstanceSpecificationsOptions, AdjustProductInstanceSpecificationsResponse, AssignProductInstanceToSiteIdentifiers, AssignProductInstanceToSiteOptions, AssignProductInstanceToSiteResponse, CancelPackageOptions, CancelPackageResponse, CancelProductInstanceOptions, CancelProductInstanceResponse, CreatePackageOptions, CreatePackageResponse, CreatePackageV2Options, Package, PackageQuery, PackagesQueryBuilder, UnassignProductInstanceFromSiteOptions, UnassignProductInstanceFromSiteResponse, UpdatePackageExternalIdIdentifiers, UpdatePackageExternalIdResponse, adjustProductInstanceSpecifications, assignProductInstanceToSite, cancelPackage, cancelProductInstance, createPackage, createPackageV2, getPackage, queryPackages, unassignProductInstanceFromSite, updatePackageExternalId };