Pak-Thani / consumer-api

0 stars 0 forks source link

Bugfix/add shift delivery #47

Closed RaidyMR closed 1 year ago

RaidyMR commented 1 year ago

Issue / Task

Menambahkan field shiftPengantaran kedalam model transaksi.

Summary

field shiftPengantaran sudah berhasil ditambahkan ke model transaksi dan sudah bisa menerima data menggunakan postman.

Test Plan

data dikirim

{
    "namaPembeli": "Joko",
    "nomorWhatsapp": "081234567890",
    "kabupaten": "Kabupaten Bandung",
    "kecamatan": "Cimahi",
    "detailAlamat": "Jalan Raya Cimahi",
    "alamat": "Jalan Raya Cimahi",
    "products": [
        {
            "product_slug":"ayam-135",
            "quantity": 3
        },
        {
            "product_slug":"test",
            "quantity": 4
        }
    ],
    "pembayaran": "Transfer",
    "total": 200000,
    "shiftPengantaran": "13:00 - 14:00"
}

respon diterima

{
    "success": true,
    "error": "",
    "data": {
        "id": 334,
        "products": [
            {
                "id": 1,
                "product": "Ayam Paha",
                "product_slug": "ayam-135",
                "quantity": 3
            },
            {
                "id": 5,
                "product": "test",
                "product_slug": "test",
                "quantity": 4
            }
        ],
        "created": "2022-12-08T11:36:11.771130Z",
        "namaPembeli": "Joko",
        "nomorWhatsapp": "081234567890",
        "kabupaten": "Kabupaten Bandung",
        "kecamatan": "Cimahi",
        "detailAlamat": "Jalan Raya Cimahi",
        "alamat": "Jalan Raya Cimahi",
        "total": 200000,
        "shiftPengantaran": "13:00 - 14:00",
        "pembayaran": "Transfer",
        "status": "Belum Dibayar"
    }
}