Repo ini berhubungan dengan order server (https://github.com/allfix53/order) dan bertugas untuk mengelola data product dan coupon
stack expressJs - mongo
collections coupon
- code: kodu kupon yang bisa di apply oleh customer
- validFrom: batas awal coupon dapat digunakan
- validTo: batas akhir coupon dapat digunakan
- value: nilai diskon. Jika value berupa number dan berakhiran % maka nilai diskon berupa prosentase, jika tidak maka bernilai angka
- limit: jumlah maksimum yang dapat di apply
product
- name: nama product
- price: harga satuan
- qty: ready stock product