package com.ruoyi.app.omgpay;

public enum OmgPaymentErrorCode {
    AUTH_REQUIRED("omg.pay.auth.required"),
    ORDER_REQUIRED("omg.pay.order.required"),
    ORDER_NOT_AVAILABLE("omg.pay.order.not.available"),
    MULTI_STORE_ORDER_NOT_SUPPORTED("omg.pay.multi.store.unsupported"),
    ORDER_STATE_NOT_PAYABLE("omg.pay.order.state.not.payable"),
    ORDER_ALREADY_PAID("omg.pay.order.already.paid"),
    ORDER_AMOUNT_INVALID("omg.pay.order.amount.invalid"),
    PAYMENT_TYPE_INVALID("omg.pay.payment.type.invalid"),
    PAYMENT_METHOD_INVALID("omg.pay.payment.method.invalid"),
    STORE_CREDENTIAL_UNAVAILABLE("omg.pay.credential.unavailable"),
    PAYMENT_ATTEMPT_EXISTS("omg.pay.attempt.exists"),
    PAYMENT_CONFIGURATION_INVALID("omg.pay.configuration.invalid"),
    PAYMENT_CREATION_FAILED("omg.pay.creation.failed"),
    PAYMENT_QUERY_NOT_AVAILABLE("omg.pay.query.not.available"),
    PAYMENT_QUERY_FAILED("omg.pay.query.failed"),
    PAYMENT_RETRY_NOT_AVAILABLE("omg.pay.retry.not.available"),
    PAYMENT_RETRY_FAILED("omg.pay.retry.failed"),
    PAYMENT_REFUND_UNAVAILABLE_IN_TEST_ENVIRONMENT(
            "omg.pay.refund.unavailable.test.environment"),
    PAYMENT_REFUND_FAILED("omg.pay.refund.failed");

    private final String messageKey;

    OmgPaymentErrorCode(String messageKey) {
        this.messageKey = messageKey;
    }

    public String getMessageKey() {
        return messageKey;
    }
}
