import { PaymentContext, SdkResponse } from "../../../model/types"; import { ApproveRefundRequest, ErrorResponse, FindRefundsResponse, RefundResponse } from "../domain"; export interface RefundsClient { /** * Resource /{merchantId}/refunds - Find refunds */ find(merchantId: string, paymentContext: FindRefundsParams): Promise>; /** * Resource /{merchantId}/refunds/{refundId} - Get refund */ get(merchantId: string, refundId: string, paymentContext?: PaymentContext | null): Promise>; /** * Resource /{merchantId}/refunds/{refundId}/approve - Approve refund */ approve(merchantId: string, refundId: string, postData: ApproveRefundRequest, paymentContext?: PaymentContext | null): Promise>; /** * Resource /{merchantId}/refunds/{refundId}/cancel - Cancel refund */ cancel(merchantId: string, refundId: string, paymentContext?: PaymentContext | null): Promise>; /** * Resource /{merchantId}/refunds/{refundId}/cancelapproval - Undo approve refund */ cancelapproval(merchantId: string, refundId: string, paymentContext?: PaymentContext | null): Promise>; } export interface FindRefundsParams extends PaymentContext { hostedCheckoutId?: string; merchantReference?: string; merchantOrderId?: number; offset?: number; limit?: number; }