export declare enum RefundError { /** * The request tried to create a refund, but the payment was not found. The request was rejected. Corrective action: Use the ID of a valid payment that is in 'closed' status. */ ERROR_ADDING_REFUND = "ERROR_ADDING_REFUND", /** * The request tried to create a refund against a payment, but the operation failed. Corrective action: Verify that the payment exists and is not closed, and check all input parameters. */ ERROR_CREATE_REFUND = "ERROR_CREATE_REFUND", /** * The request tried to create a refund, but the currency was not recognized. The request was rejected. Corrective action: Set 'currency' to the value of 'merchant_requested_currency' or 'currency_code' from the response to 'Create Payment'. */ ERROR_CREATE_REFUND_CURRENCY_NOT_VALID = "ERROR_CREATE_REFUND_CURRENCY_NOT_VALID", /** * The request tried to refund a split payment, but the refund split was not defined correctly. The request was rejected. Corrective action: In the ‘ewallets’ array, specify the ‘amount’ field for all wallets or the ‘percent’ field for all wallets. */ ERROR_CREATE_REFUND_DUPLICATE_EWALLET = "ERROR_CREATE_REFUND_DUPLICATE_EWALLET", /** * The request tried to refund a payment, but the wallet was not found in the payment. The request was rejected. Corrective action: In the ‘ewallets’ array, specify wallets that appear in the payment. */ ERROR_CREATE_REFUND_EWALLET_NOT_FOUND_IN_PAYMENT = "ERROR_CREATE_REFUND_EWALLET_NOT_FOUND_IN_PAYMENT", /** * The request tried to create a refund, but the amount from one wallet was not valid. The request was rejected. Corrective action: In the ‘ewallets’ array, set the ‘amount’ field for all wallets to a positive decimal number. */ ERROR_CREATE_REFUND_INVALID_EWALLETS_AMOUNT = "ERROR_CREATE_REFUND_INVALID_EWALLETS_AMOUNT", /** * The request tried to create a refund, but the percentage from one wallet was not valid. The request was rejected. Corrective action: In the ‘ewallets’ array, set the ‘percentage’ field for all wallets to a decimal number between 0 and 100. */ ERROR_CREATE_REFUND_INVALID_EWALLETS_PERCENTAGE = "ERROR_CREATE_REFUND_INVALID_EWALLETS_PERCENTAGE", /** * The request tried to refund a payment, but the ID of one of the wallets was missing. The request was rejected. Corrective action: In the 'ewallet' field, provide the ID of the wallet that the refund will be taken from. */ ERROR_CREATE_REFUND_MISSING_EWALLET_ID = "ERROR_CREATE_REFUND_MISSING_EWALLET_ID", /** * The request tried to create a refund, but the payment method does not allow this operation. The request was rejected. Corrective action: Send the funds to the payer using ‘Create Payout’ or ‘Transfer Funds Between Wallets’, or contact Client Support. */ ERROR_CREATE_REFUND_PAYMENT_NOT_REFUNDABLE = "ERROR_CREATE_REFUND_PAYMENT_NOT_REFUNDABLE", /** * The request tried to create a refund of a payment to one or more wallets, but one of the wallets did not have enough funds to complete the refund. The request was rejected. Corrective action: Fund the wallet with 'Create Payment' or transfer funds from another wallet using 'Transfer Funds Between Wallets'. */ ERROR_GET_EWALLET_NOT_ENOUGH_FUNDS = "ERROR_GET_EWALLET_NOT_ENOUGH_FUNDS", /** * The request tried to update a refund, but the refund was not found, or the operation failed. The request was rejected. Corrective action: Check all input fields, and verify that the refund exists and was not already closed. */ ERROR_UPDATE_REFUND = "ERROR_UPDATE_REFUND", /** * The request attempted an operation that requires a refund, but the refund was not found. The request was rejected. Corrective action: Use the ID of a valid refund. */ INVALID_REFUND = "INVALID_REFUND", /** * The request tried to complete a refund, but the refund was already completed and closed. The request was rejected. Corrective action: Determine why multiple attempts were made to complete the same refund. */ INVALID_REFUND_STATUS = "INVALID_REFUND_STATUS", /** * The request tried to update a refund, but the refund was not found. The request was rejected. Corrective action: Use the ID of a valid refund. */ INVALID_REFUND_TOKEN = "INVALID_REFUND_TOKEN", /** * The request tried to create a refund, but the payment object on which the refund is based is not in 'closed' status. The request was rejected. Corrective action: Wait until the payment is closed, and then create the refund. */ PAYMENT_NOT_COMPLETED = "PAYMENT_NOT_COMPLETED" } //# sourceMappingURL=RefundError.d.ts.map