import {OrderPayStatus, OrderPayUseStatus, OrderStatus} from "$utils/control/order/const/order";
import {OrderUpdateOperation} from "$utils/control/order/const/operation";

export default {

    [OrderStatus.placeOrder] : {
        [OrderPayStatus.completed]: {
            [OrderPayUseStatus.all]: OrderUpdateOperation.update,
            [OrderPayUseStatus.orders]: OrderUpdateOperation.delete,
            [OrderPayUseStatus.completed]: OrderUpdateOperation.add
        },
        [OrderPayStatus.cancel]: {
            [OrderPayUseStatus.all]: OrderUpdateOperation.update,
            [OrderPayUseStatus.orders]: OrderUpdateOperation.delete
        },
    },

    [OrderStatus.receivingOrder] : {
        [OrderPayStatus.have]: {
            [OrderPayUseStatus.all]: OrderUpdateOperation.update,
            [OrderPayUseStatus.orders]: OrderUpdateOperation.delete,
            [OrderPayUseStatus.have]: OrderUpdateOperation.add
        },
        [OrderPayStatus.completed]: {
            [OrderPayUseStatus.all]: OrderUpdateOperation.update,
            [OrderPayUseStatus.have]: OrderUpdateOperation.delete,
            [OrderPayUseStatus.completed]: OrderUpdateOperation.add
        }
    },

}