import * as actions from './actions'
import getters from './getters'
import mutations from './mutations'

const state = {
  ewalletAmount: 0,
  orderReviewStep: 'orderReviewAndShipping',
  orderItems: 'orderReviewItems',
  orderSummary: 'orderSummary',
  orderSummaryPromo: 'orderSummaryPromo',
  shippingMethodUsed: '',
  paymentMethodUsed: '',
  collPointState: '',
  collPointCity: '',
  recipientDetail: [],
  cartList: [],
  paymentDocumentDetails: [],
  existingAddresses: [
    {
      addressId: 1,
      streetName: 'J-26-2, Bukit Mewah, Jalan Maluri',
      postCode: '89000',
      city: 'Johor Bahru',
      state: 'Johor',
      countryId: '1',
    },
    {
      addressId: 2,
      streetName: 'A-1-1, Cyberjaya D.Corridor Multimedia 1/9',
      postCode: '69000',
      city: 'Cyberjaya',
      state: 'Selangor',
      countryId: '1',
    },
    {
      addressId: 3,
      streetName: 'B-6-7 Casa Desa Jalan Desa Utama 1, Taman Desa',
      postCode: '58100',
      city: 'WP Kuala Lumpur',
      state: '',
      countryId: '1',
    },
  ],
  collectionPoints: [
    {
      contactPerson: 'Wang Swee Kwang',
      streetName: 'J-26-2, Bukit Mewah, Jalan Maluri',
      zipCode: '89000',
      telNo: '07-556-1864',
      state: 'Johor',
      city: 'Johor Bahru',
      area: 'Skudai',
    },
    {
      contactPerson: 'Kim Yap Soo',
      streetName: 'B-6-7 Casa Desa Jalan Desa Utama 1',
      zipCode: '58000',
      telNo: '04-123-1234',
      state: 'Johor',
      city: 'Johor City',
      area: 'Taman Lama',
    },
  ],
  orders: [
    {
      orderDate: '06/04/2018 20:15',
      documentNo: 'MYHQ5647291828',
      orderBy: 'MY10000000056',
      paymentMethod: 'Credit Card',
      shippingMethod: 'Delivery',
      totalCv: 150,
      totalAmount: 4556,
      status: 'Completed',
    },
  ],
  EPPOnlineIssuingBanks: [
    {
      name: 'Bank A',
      tenures: ['3 months', '6 months', '12 months'],
    },
    {
      name: 'Bank B',
      tenures: ['3 months', '6 months', '9 months', '12 months'],
    },
    {
      name: 'Bank C',
      tenures: ['6 months', '12 months'],
    },
    {
      name: 'Bank D',
      tenures: ['6 months', '12 months', '18 months', '24 months'],
    },
  ],
  reviewAndShipping: {
    'active-step': true,
    'circle-title': true,
  },
  makePayment: {
    'active-step': false,
    'circle-title': true,
  },
  orderCompleted: {
    'active-step': false,
    'circle-title': true,
  },
  shippingData: null,
  paymentStepStatus: { validated: false },
}

export default {
  state,
  actions,
  mutations,
  getters,
}
