import { TiktokConfig } from '../dto/request/config.request'; import { TiktokResponseCommon } from '../dto/response/config.response'; import { TiktokApproveCancellationParams, TiktokApproveReturnParams, TiktokCalculateCancellationParams, TiktokCancelOrderBody, TiktokCreateReturnParams, TiktokGetAftersaleEligibilityParams, TiktokGetRejectReasonQuery, TiktokGetReturnRecordParams, TiktokRejectCancellationParams, TiktokRejectReturnParams, TiktokSearchCancellationParams, TiktokSearchReturnParams } from '../dto/request/return-refund-v3.request'; import { TiktokCalculateCancellationResponse, TiktokCancelOrderResponse, TiktokCreateReturnResponse, TiktokGetAftersaleEligibilityResponse, TiktokGetRejectReasonResponse, TiktokGetReturnRecordResponse, TiktokSearchCancellationResponse, TiktokSearchReturnResponse } from '../dto/response/return-refund-v3.response'; /** * Get aftersale eligibility information for a given order. * * GET /return_refund/202309/orders/{order_id}/aftersale_eligibility */ export declare function getAftersaleEligibility(params: TiktokGetAftersaleEligibilityParams, config: TiktokConfig): Promise>; /** * Get reasons for rejecting a return request. * * GET /return_refund/202309/reject_reasons */ export declare function getRejectReasons(query: TiktokGetRejectReasonQuery, config: TiktokConfig): Promise>; /** * Create a new return request. * * POST /return_refund/202309/returns */ export declare function createReturn(params: TiktokCreateReturnParams, config: TiktokConfig): Promise>; /** * Search for return/refund requests. * * POST /return_refund/202309/returns/search */ export declare function searchReturn(params: TiktokSearchReturnParams, config: TiktokConfig): Promise>; /** * Get the operation record history of a return/refund request. * * GET /return_refund/202309/returns/{return_id}/records */ export declare function getReturnRecord(params: TiktokGetReturnRecordParams, config: TiktokConfig): Promise>; /** * Reject a return/refund request submitted by the buyer. * * POST /return_refund/202309/returns/{return_id}/reject */ export declare function rejectReturn(params: TiktokRejectReturnParams, config: TiktokConfig): Promise>; /** * Approve a return/refund request submitted by the buyer. * * POST /return_refund/202309/returns/{return_id}/approve * * Seller can choose to: * - Approve full return (`APPROVE_RETURN`) * - Approve refund without return (`APPROVE_REFUND`) * - Offer partial refund (`OFFER_PARTIAL_REFUND`) * - Approve replacement or received package, etc. * * Refer to the `decision` field for available options: * - APPROVE_REFUND * - APPROVE_RETURN * - APPROVE_RECEIVED_PACKAGE * - APPROVE_REPLACEMENT * - ISSUE_REPLACEMENT_REFUND * - OFFER_PARTIAL_REFUND * * Note: * - For return-and-refund requests (`return_type = RETURN_AND_REFUND`), use `APPROVE_RETURN`. * - For refund-only requests, use `APPROVE_REFUND`. * - For partial refund, provide `partial_refund.amount` and `currency`, and set `decision = OFFER_PARTIAL_REFUND`. * - Use `buyer_keep_item = true` if you wish to refund without requiring the buyer to return the item. * * Reference: https://partner.tiktokshop.com/docv2/page/650b2001bace3e02b76db38a */ export declare function approveReturn(params: TiktokApproveReturnParams, config: TiktokConfig): Promise>; /** * Cancel an order by providing a cancellation reason and order_id. * * POST /return_refund/202309/cancellations * * This API is used by sellers to request cancellation before the order is shipped. * Cancellation may be rejected by the buyer depending on the status and reason. */ export declare function cancelOrder(body: TiktokCancelOrderBody, config: TiktokConfig): Promise>; /** * Approve a buyer's cancellation request. * * POST /return_refund/202309/cancellations/{cancel_id}/approve * * This method is used by sellers to accept the buyer's request to cancel the order. */ export declare function approveCancellation(params: TiktokApproveCancellationParams, config: TiktokConfig): Promise>; /** * Reject a buyer's cancellation request. * * POST /return_refund/202309/cancellations/{cancel_id}/reject * * Sellers can reject the cancellation request with a specific reason. */ export declare function rejectCancellation(params: TiktokRejectCancellationParams, config: TiktokConfig): Promise>; /** * Search cancellation requests made by buyers. * * POST /return_refund/202309/cancellations/search * * This method retrieves a list of cancellations based on filter criteria like time range, order ID, and status. */ export declare function searchCancellation(params: TiktokSearchCancellationParams, config: TiktokConfig): Promise>; /** * Calculate the refund amount for an order cancellation before submitting the request. * * POST /return_refund/202309/refunds/calculate * * Useful to preview how much will be refunded if the order is canceled. */ export declare function calculateCancellation(body: TiktokCalculateCancellationParams, config: TiktokConfig): Promise>;