import { EventDefinition, HttpClient } from '@wix/sdk-types'; import { CreateRefundOptions, GetRefundabilityResponse, GetRefundabilityResponseNonNullableFields, Refund, RefundCreatedEnvelope, RefundNonNullableFields, RefundUpdatedEnvelope, RefundsQueryBuilder, UpdateExtendedFieldsOptions, UpdateExtendedFieldsResponse, UpdateExtendedFieldsResponseNonNullableFields } from './payments-refunds-v1-refund-refunds.universal.js'; export declare const __metadata: { PACKAGE_NAME: string; }; export declare function createRefund(httpClient: HttpClient): CreateRefundSignature; interface CreateRefundSignature { /** * Creates a refund. * * The refunding process starts immediately after a refund entity is created. * * If you specify an `amount`, you must also specify a `currency`. This currency should be the same as the currency of the charge. * If `amount` and `currency` are not specified, the refund is created for the full charge amount. If the charge was already partially refunded, this refund will fail. * * The refund is initially created with a status of `STARTING`. However, the call does not return a response until the refund status transitions away from `STARTING`. Lean more about the [refund lifecycle](https://dev.wix.com/docs/rest/business-management/payments/refunds/introduction#refund-lifecycle). * @param - Refund to be created. * @returns The created refund. */ (refund: Refund, options?: CreateRefundOptions | undefined): Promise; } export declare function getRefund(httpClient: HttpClient): GetRefundSignature; interface GetRefundSignature { /** * Retrieves a refund. * @param - ID of the refund to retrieve. * @returns The requested refund. */ (refundId: string): Promise; } export declare function queryRefunds(httpClient: HttpClient): QueryRefundsSignature; interface QueryRefundsSignature { /** * Retrieves a list of refunds given the provided paging, filtering, and sorting. Up to 100 Refunds can be returned per request. * * For a detailed list of supported operations, see the [Sorting and Filtering](https://dev.wix.com/docs/rest/business-management/payments/refunds/sorting-and-filtering) article. * To learn how to query refunds, see [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language). */ (): RefundsQueryBuilder; } export declare function updateExtendedFields(httpClient: HttpClient): UpdateExtendedFieldsSignature; interface UpdateExtendedFieldsSignature { /** * Updates the extended fields of a refund without incrementing the revision number. * @param - ID of the entity to update. * @param - Identifier for the app whose extended fields are being updated. */ (_id: string, namespace: string, options: UpdateExtendedFieldsOptions): Promise; } export declare function getRefundability(httpClient: HttpClient): GetRefundabilitySignature; interface GetRefundabilitySignature { /** * Calculates the refundability of a charge. * * Learn more about [refundability](https://dev.wix.com/docs/rest/business-management/payments/refunds/introduction#refundability). * @param - ID of the charge to calculate refundability for. */ (chargeId: string): Promise; } export declare const onRefundCreated: EventDefinition; export declare const onRefundUpdated: EventDefinition; export { ActionEvent, BaseEventMetadata, CreateRefundOptions, CreateRefundRequest, CreateRefundResponse, CreateRefundResponseNonNullableFields, CursorPaging, CursorPagingMetadata, CursorQuery, CursorQueryPagingMethodOneOf, Cursors, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, ExtendedFields, GetRefundRequest, GetRefundResponse, GetRefundResponseNonNullableFields, GetRefundabilityRequest, GetRefundabilityResponse, GetRefundabilityResponseNonNullableFields, IdentificationData, IdentificationDataIdOneOf, Initiator, MessageEnvelope, QueryRefundsRequest, QueryRefundsResponse, QueryRefundsResponseNonNullableFields, Refund, RefundCreatedEnvelope, RefundDetails, RefundNonNullableFields, RefundUpdatedEnvelope, Refundability, RefundabilityDetailsOneOf, RefundsQueryBuilder, RefundsQueryResult, RejectionDetails, RejectionReason, RestoreInfo, SortOrder, Sorting, Status, StatusInfo, SyncRefundRequest, SyncRefundResponse, UpdateExtendedFieldsOptions, UpdateExtendedFieldsRequest, UpdateExtendedFieldsResponse, UpdateExtendedFieldsResponseNonNullableFields, WebhookIdentityType, } from './payments-refunds-v1-refund-refunds.universal.js';