store/modules/cart/actions.js
export default {
addItem: ({ commit }, item) =>
commit('ADD_ITEM', item),
removeItem: ({ commit }, item) =>
commit('REMOVE_ITEM', item),
clearCount: ({ commit }) =>
commit('CLEAR_COUNT'),
clearContents: ({ commit }) =>
commit('CLEAR_CONTENTS'),
setSuccess: ({ commit }, value) =>
commit('SET_SUCCESS', value),
setActualStep: ({ commit }, value) =>
commit('SET_ACTUAL_STEP', value),
setTotal: ({ commit }, value) =>
commit('SET_TOTAL', value),
setShippingInformation: ({ commit }, payload) =>
commit('SET_SHIPPING_INFORMATION', payload)
}