14nrv/buefy-shop

View on GitHub
store/modules/cart/actions.js

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
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)
}