{"info":{"_postman_id":"8a0bfeda-70a6-49e0-b83c-aa186d9f95ee","name":"eCommerce Management System - Aqua Developer Final Project","description":"<html><head></head><body><h1 id=\"introduction\">Introduction</h1>\n<p>﻿eCommerce Management System API ini dibuat sebagai hasil implementasi masa pembelajaran pada program eFishery Academy Aquadeveloper Software Engineer Batch 2</p>\n<h1 id=\"overview\">Overview</h1>\n<p>﻿API ini merupakan aplikasi backend berbahasa Go. Didesain sebagai API yang dapat memenuhi pengelolaan dasar dari aplikasi eCommerce. Beberapa service yang dapat digunakan pada versi ini</p>\n<ol>\n<li>﻿User Management</li>\n<li>Product Management</li>\n<li>Transaction Process</li>\n</ol>\n<h1 id=\"authentication\">Authentication</h1>\n<p>Proses autentikasi menggunakan Json Web Token.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[{"content":"Introduction","slug":"introduction"},{"content":"Overview","slug":"overview"},{"content":"Authentication","slug":"authentication"}],"owner":"21607478","collectionId":"8a0bfeda-70a6-49e0-b83c-aa186d9f95ee","publishedId":"2s83zdwRoW","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2022-10-07T06:39:07.000Z"},"item":[{"name":"User Management","item":[{"name":"Register New Admin (A)","event":[{"listen":"test","script":{"id":"b7715174-39e1-4688-8b0a-8854f4666315","exec":["pm.test('status code should be 201', () => {","    pm.response.to.have.status(201);","});","","pm.test('response header Content-Type should be application/json', () => {","    pm.expect(pm.response.headers.get('Content-Type')).to.equals('application/json; charset=UTF-8');","});","","pm.test('response body should be an object', () => {","    const responseJson = pm.response.json();","    pm.expect(responseJson).to.be.an('object');","});","","pm.test('response body should have correct property and value', () => {","    const responseJson = pm.response.json();","    ","    pm.expect(responseJson).to.haveOwnProperty('code');","    pm.expect(responseJson).to.haveOwnProperty('message');","    pm.expect(responseJson).to.haveOwnProperty('data');","","    pm.expect(responseJson.code).to.equals(201);","    pm.expect(responseJson.message).to.equals('Admin Registered Successfully');","    pm.expect(responseJson.data).to.be.an('object');","});","","pm.test('response data should have correct property and value', () => {","    const responseJson = pm.response.json();","    const { data } = responseJson;","    pm.collectionVariables.set('adminUID',data.uid);","","    pm.expect(data).to.haveOwnProperty('uid');","    pm.expect(data).to.haveOwnProperty('username');","});"],"type":"text/javascript"}}],"id":"4c80d295-b6d7-4f66-bc21-2044745bc610","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{}},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"username\": \"aquadev\",\n    \"email\": \"setya@gmail.com\",\n    \"fullname\": \"setya ikra\",\n    \"password\": \"aquadev6789\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:1323/api/v1/public/admins/register","urlObject":{"path":["api","v1","public","admins","register"],"host":["http://localhost:1323"],"query":[],"variable":[]}},"response":[{"id":"f3bee8e5-5325-4671-a9ad-29a70149f103","name":"Register New Admin (A)","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"username\": \"aquadev\",\n    \"email\": \"setya@gmail.com\",\n    \"fullname\": \"setya ikra\",\n    \"password\": \"aquadev6789\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:1323/api/v1/public/admins/register"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Date","value":"Fri, 07 Oct 2022 06:26:19 GMT"},{"key":"Content-Length","value":"130"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 201,\n    \"message\": \"Admin Registered Successfully\",\n    \"data\": {\n        \"uid\": \"916b19aa-d981-4cc0-9e80-f515269ecf37\",\n        \"username\": \"aquadev\"\n    }\n}"}],"_postman_id":"4c80d295-b6d7-4f66-bc21-2044745bc610"},{"name":"Login Admin (A)","event":[{"listen":"test","script":{"id":"b7715174-39e1-4688-8b0a-8854f4666315","exec":["pm.test('status code should be 200', () => {","    pm.response.to.have.status(200);","});","","pm.test('response header Content-Type should be application/json', () => {","    pm.expect(pm.response.headers.get('Content-Type')).to.equals('application/json; charset=UTF-8');","});","","pm.test('response body should be an object', () => {","    const responseJson = pm.response.json();","    pm.expect(responseJson).to.be.an('object');","});","","pm.test('response body should have correct property and value', () => {","    const responseJson = pm.response.json();","    ","    pm.expect(responseJson).to.haveOwnProperty('code');","    pm.expect(responseJson).to.haveOwnProperty('message');","    pm.expect(responseJson).to.haveOwnProperty('data');","","    pm.expect(responseJson.code).to.equals(200);","    pm.expect(responseJson.message).to.equals('Login Success');","    pm.expect(responseJson.data).to.be.an('object');","});","","pm.test('response data should have correct property and value', () => {","    const responseJson = pm.response.json();","    const { data } = responseJson;","    pm.collectionVariables.set('adminToken',data.access_token);","","    pm.expect(data).to.haveOwnProperty('access_token');","});"],"type":"text/javascript"}}],"id":"ef49f74c-99d7-4158-9ec7-025d22671e99","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{}},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"username\": \"aquadev\",\n    \"password\": \"aquadev6789\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:1323/api/v1/public/admins/login","urlObject":{"path":["api","v1","public","admins","login"],"host":["http://localhost:1323"],"query":[],"variable":[]}},"response":[{"id":"a49a7894-e198-4b84-ac23-763105ebed49","name":"Login Admin (A)","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"username\": \"aquadev\",\n    \"password\": \"aquadev6789\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:1323/api/v1/public/admins/login"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Date","value":"Fri, 07 Oct 2022 06:26:57 GMT"},{"key":"Content-Length","value":"274"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"message\": \"Login Success\",\n    \"data\": {\n        \"access_token\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOiI5MTZiMTlhYS1kOTgxLTRjYzAtOWU4MC1mNTE1MjY5ZWNmMzciLCJuYW1lIjoiYXF1YWRldiIsInJvbGUiOiJhZG1pbiIsImV4cCI6MTY2NTIxMDQxN30.E_j9SL722jLEXSPIEahP2jS6EaECIlBrEnhfvCZmrc4\"\n    }\n}"}],"_postman_id":"ef49f74c-99d7-4158-9ec7-025d22671e99"},{"name":"Register New User (A)","event":[{"listen":"test","script":{"id":"b7715174-39e1-4688-8b0a-8854f4666315","exec":["pm.test('status code should be 201', () => {","    pm.response.to.have.status(201);","});","","pm.test('response header Content-Type should be application/json', () => {","    pm.expect(pm.response.headers.get('Content-Type')).to.equals('application/json; charset=UTF-8');","});","","pm.test('response body should be an object', () => {","    const responseJson = pm.response.json();","    pm.expect(responseJson).to.be.an('object');","});","","pm.test('response body should have correct property and value', () => {","    const responseJson = pm.response.json();","    ","    pm.expect(responseJson).to.haveOwnProperty('code');","    pm.expect(responseJson).to.haveOwnProperty('message');","    pm.expect(responseJson).to.haveOwnProperty('data');","","    pm.expect(responseJson.code).to.equals(201);","    pm.expect(responseJson.message).to.equals('User registered successfully');","    pm.expect(responseJson.data).to.be.an('object');","});","","pm.test('response data should have correct property and value', () => {","    const responseJson = pm.response.json();","    const { data } = responseJson;","    pm.collectionVariables.set('userUID',data.uid);","","    pm.expect(data).to.haveOwnProperty('uid');","    pm.expect(data.uid).to.equal(pm.collectionVariables.get('userUID'));","    pm.expect(data).to.haveOwnProperty('username');","    pm.expect(data.username).to.equal(pm.collectionVariables.get('username'));","});"],"type":"text/javascript"}}],"id":"7c16312b-e6df-4d95-951b-fbcf3d8a85cb","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{}},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"username\": \"prasetyaikrap\",\n    \"email\": \"prasetya@gmail.com\",\n    \"fullname\": \"Prasetya Priyadi\",\n    \"password\": \"aquadev12345\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:1323/api/v1/public/users/register","urlObject":{"path":["api","v1","public","users","register"],"host":["http://localhost:1323"],"query":[],"variable":[]}},"response":[{"id":"b98c170c-ef82-4a4d-8c8b-fccd93fcf683","name":"Register New User (A)","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"username\": \"prasetyaikrap\",\n    \"email\": \"prasetya@gmail.com\",\n    \"fullname\": \"Prasetya Priyadi\",\n    \"password\": \"aquadev12345\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:1323/api/v1/public/users/register"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Date","value":"Fri, 07 Oct 2022 06:27:13 GMT"},{"key":"Content-Length","value":"135"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 201,\n    \"message\": \"User registered successfully\",\n    \"data\": {\n        \"uid\": \"da1c309a-8e80-40bb-966c-2534106b6997\",\n        \"username\": \"prasetyaikrap\"\n    }\n}"}],"_postman_id":"7c16312b-e6df-4d95-951b-fbcf3d8a85cb"},{"name":"Login User(A)","event":[{"listen":"test","script":{"id":"b7715174-39e1-4688-8b0a-8854f4666315","exec":["pm.test('status code should be 200', () => {","    pm.response.to.have.status(200);","});","","pm.test('response header Content-Type should be application/json', () => {","    pm.expect(pm.response.headers.get('Content-Type')).to.equals('application/json; charset=UTF-8');","});","","pm.test('response body should be an object', () => {","    const responseJson = pm.response.json();","    pm.expect(responseJson).to.be.an('object');","});","","pm.test('response body should have correct property and value', () => {","    const responseJson = pm.response.json();","    ","    pm.expect(responseJson).to.haveOwnProperty('code');","    pm.expect(responseJson).to.haveOwnProperty('message');","    pm.expect(responseJson).to.haveOwnProperty('data');","","    pm.expect(responseJson.code).to.equals(200);","    pm.expect(responseJson.message).to.equals('Login Success');","    pm.expect(responseJson.data).to.be.an('object');","});","","pm.test('response data should have correct property and value', () => {","    const responseJson = pm.response.json();","    const { data } = responseJson;","    pm.collectionVariables.set('authToken',data.access_token);","","    pm.expect(data).to.haveOwnProperty('access_token');","    pm.expect(data.access_token).to.equal(pm.collectionVariables.get('authToken'));","});"],"type":"text/javascript"}}],"id":"1d532ebc-9a2a-4090-a82b-8742f91b1f95","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{}},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"username\": \"prasetyaikrap\",\n    \"password\": \"aquadev12345\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:1323/api/v1/public/users/login","urlObject":{"path":["api","v1","public","users","login"],"host":["http://localhost:1323"],"query":[],"variable":[]}},"response":[{"id":"57aeb36e-64f4-45ff-bcee-d013ae636d99","name":"Login User(A)","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"username\": \"prasetyaikrap\",\n    \"password\": \"aquadev12345\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:1323/api/v1/public/users/login"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Date","value":"Fri, 07 Oct 2022 06:27:30 GMT"},{"key":"Content-Length","value":"281"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"message\": \"Login Success\",\n    \"data\": {\n        \"access_token\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOiJkYTFjMzA5YS04ZTgwLTQwYmItOTY2Yy0yNTM0MTA2YjY5OTciLCJuYW1lIjoicHJhc2V0eWFpa3JhcCIsInJvbGUiOiJ1c2VyIiwiZXhwIjoxNjY1MjEwNDUwfQ.P7BEtEHhlWc5HIE_E5QaNwIJLu0t1ESaTQZ3Z0jBBYA\"\n    }\n}"}],"_postman_id":"1d532ebc-9a2a-4090-a82b-8742f91b1f95"},{"name":"Get User Profile (A)","event":[{"listen":"test","script":{"id":"b7715174-39e1-4688-8b0a-8854f4666315","exec":["pm.test('status code should be 200', () => {","    pm.response.to.have.status(200);","});","","pm.test('response header Content-Type should be application/json', () => {","    pm.expect(pm.response.headers.get('Content-Type')).to.equals('application/json; charset=UTF-8');","});","","pm.test('response body should be an object', () => {","    const responseJson = pm.response.json();","    pm.expect(responseJson).to.be.an('object');","});","","pm.test('response body should have correct property and value', () => {","    const responseJson = pm.response.json();","    ","    pm.expect(responseJson).to.haveOwnProperty('code');","    pm.expect(responseJson).to.haveOwnProperty('message');","    pm.expect(responseJson).to.haveOwnProperty('data');","","    pm.expect(responseJson.code).to.equals(200);","    pm.expect(responseJson.message).to.equals('User Profile Found');","    pm.expect(responseJson.data).to.be.an('object');","});","","pm.test('response data should have correct property and value', () => {","    const responseJson = pm.response.json();","    const { data } = responseJson","    ","    pm.expect(data).to.haveOwnProperty('uid');","    pm.expect(data.uid).to.equals(pm.collectionVariables.get('userUID'));","    pm.expect(data).to.haveOwnProperty('username');","    pm.expect(data.username).to.equals(pm.collectionVariables.get('username'));","    pm.expect(data).to.haveOwnProperty('fullname');","    pm.expect(data.fullname).to.equals(pm.collectionVariables.get('userFullname'));","    pm.expect(data).to.haveOwnProperty('gender');","    pm.expect(data.gender).to.equals(\"\");","    pm.expect(data).to.haveOwnProperty('email');","    pm.expect(data.email).to.equals(pm.collectionVariables.get('userEmail'));","    pm.expect(data).to.haveOwnProperty('phone');","    pm.expect(data.phone).to.equals(0);","});"],"type":"text/javascript"}}],"id":"42db0585-bb24-4555-b39f-c2f2f619bb0c","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{}},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{auth_token}"}]},"isInherited":false},"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:1323/api/v1/auth/users/{user_uid}/profile","urlObject":{"path":["api","v1","auth","users","{user_uid}","profile"],"host":["http://localhost:1323"],"query":[],"variable":[]}},"response":[{"id":"ab21ac2c-d8bd-447b-bd8b-7efbb81d7567","name":"Get User Profile (A)","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:1323/api/v1/auth/users/{userUID}/profile"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Date","value":"Fri, 07 Oct 2022 06:27:48 GMT"},{"key":"Content-Length","value":"206"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"message\": \"User Profile Found\",\n    \"data\": {\n        \"uid\": \"da1c309a-8e80-40bb-966c-2534106b6997\",\n        \"username\": \"prasetyaikrap\",\n        \"fullname\": \"Prasetya Priyadi\",\n        \"gender\": \"\",\n        \"email\": \"prasetya@gmail.com\",\n        \"phone\": 0\n    }\n}"}],"_postman_id":"42db0585-bb24-4555-b39f-c2f2f619bb0c"},{"name":"Modified User Profile (A)","event":[{"listen":"test","script":{"id":"b7715174-39e1-4688-8b0a-8854f4666315","exec":["pm.test('status code should be 200', () => {","    pm.response.to.have.status(200);","});","","pm.test('response header Content-Type should be application/json', () => {","    pm.expect(pm.response.headers.get('Content-Type')).to.equals('application/json; charset=UTF-8');","});","","pm.test('response body should be an object', () => {","    const responseJson = pm.response.json();","    pm.expect(responseJson).to.be.an('object');","});","","pm.test('response body should have correct property and value', () => {","    const responseJson = pm.response.json();","    ","    pm.expect(responseJson).to.haveOwnProperty('code');","    pm.expect(responseJson).to.haveOwnProperty('message');","","    pm.expect(responseJson.code).to.equals(200);","    pm.expect(responseJson.message).to.equals('Profile Updated Successfully');","});"],"type":"text/javascript"}},{"listen":"prerequest","script":{"id":"c18ecc64-7344-4002-888a-5ecfc10271c3","exec":["pm.collectionVariables.set('userFullname',\"Prasetya Ikra Priyadi\");"],"type":"text/javascript"}}],"id":"4a0107bc-0c9e-4fad-8e62-4573a288cbe5","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{}},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{auth_token}"}]},"isInherited":false},"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"fullname\": \"Prasetya Priyadi\",\n    \"gender\": \"Pria\",\n    \"email\": \"prasetya@gmail.com\",\n    \"phone\": 6285700600850\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:1323/api/v1/auth/users/{user_uid}/profile","urlObject":{"path":["api","v1","auth","users","{user_uid}","profile"],"host":["http://localhost:1323"],"query":[],"variable":[]}},"response":[{"id":"794b330d-651d-41eb-a24f-02d3ad3242c8","name":"Modified User Profile (A)","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"fullname\": \"Prasetya Priyadi\",\n    \"gender\": \"Pria\",\n    \"email\": \"prasetya@gmail.com\",\n    \"phone\": 6285700600850\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:1323/api/v1/auth/users/{userUID}/profile"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Date","value":"Fri, 07 Oct 2022 06:28:08 GMT"},{"key":"Content-Length","value":"54"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"message\": \"Profile Updated Successfully\"\n}"}],"_postman_id":"4a0107bc-0c9e-4fad-8e62-4573a288cbe5"},{"name":"Create New Address (A)","event":[{"listen":"test","script":{"id":"b7715174-39e1-4688-8b0a-8854f4666315","exec":["pm.test('status code should be 201', () => {","    pm.response.to.have.status(201);","});","","pm.test('response header Content-Type should be application/json', () => {","    pm.expect(pm.response.headers.get('Content-Type')).to.equals('application/json; charset=UTF-8');","});","","pm.test('response body should be an object', () => {","    const responseJson = pm.response.json();","    pm.expect(responseJson).to.be.an('object');","});","","pm.test('response body should have correct property and value', () => {","    const responseJson = pm.response.json();","    ","    pm.expect(responseJson).to.haveOwnProperty('code');","    pm.expect(responseJson).to.haveOwnProperty('message');","    pm.expect(responseJson).to.haveOwnProperty('data');","","    pm.expect(responseJson.code).to.equals(201);","    pm.expect(responseJson.message).to.equals('Address Added Successfully');","    pm.expect(responseJson.data).to.be.an('object')","});","","pm.test('response body should have correct property and value', () => {","    const responseJson = pm.response.json();","    const { data } = responseJson","    pm.collectionVariables.set('userAddressID',data.address_id)","    ","    pm.expect(data).to.haveOwnProperty('address_id');","    pm.expect(data.address_id).to.equals(parseInt(pm.collectionVariables.get('userAddressID')));","    pm.expect(data).to.haveOwnProperty('user_uid');","    pm.expect(data.user_uid).to.equals(pm.collectionVariables.get('userUID'));","});"],"type":"text/javascript"}}],"id":"7dedb5f4-a486-4534-9e57-d52f0b28b969","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{}},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{auth_token}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"address_label\": \"Rumah\",\n    \"address_line\": \"Jl. Batununggal Indah No. 50\",\n    \"city\": \"Bandung\",\n    \"province\": \"Jawa Barat\",\n    \"postal_code\": 40287,\n    \"country\": \"Indonesia\",\n    \"region_id\": \"JAWA_01\",\n    \"is_default\": false\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:1323/api/v1/auth/users/{user_uid}/addresses","urlObject":{"path":["api","v1","auth","users","{user_uid}","addresses"],"host":["http://localhost:1323"],"query":[],"variable":[]}},"response":[{"id":"3e91cc19-1d91-4ee9-9c53-146bd12714e7","name":"Create New Address (A)","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"address_label\": \"Rumah\",\n    \"address_line\": \"Jl. Batununggal Indah No. 50\",\n    \"city\": \"Bandung\",\n    \"province\": \"Jawa Barat\",\n    \"postal_code\": 40287,\n    \"country\": \"Indonesia\",\n    \"region_id\": \"JAWA_01\",\n    \"is_default\": false\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:1323/api/v1/auth/users/{user_uid}/addresses"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Date","value":"Fri, 07 Oct 2022 06:28:18 GMT"},{"key":"Content-Length","value":"126"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 201,\n    \"message\": \"Address Added Successfully\",\n    \"data\": {\n        \"address_id\": 1,\n        \"user_uid\": \"da1c309a-8e80-40bb-966c-2534106b6997\"\n    }\n}"}],"_postman_id":"7dedb5f4-a486-4534-9e57-d52f0b28b969"},{"name":"Get Address List (A)","event":[{"listen":"test","script":{"id":"b7715174-39e1-4688-8b0a-8854f4666315","exec":["pm.test('status code should be 200', () => {","    pm.response.to.have.status(200);","});","","pm.test('response header Content-Type should be application/json', () => {","    pm.expect(pm.response.headers.get('Content-Type')).to.equals('application/json; charset=UTF-8');","});","","pm.test('response body should be an object', () => {","    const responseJson = pm.response.json();","    pm.expect(responseJson).to.be.an('object');","});","","pm.test('response body should have correct property and value', () => {","    const responseJson = pm.response.json();","    ","    pm.expect(responseJson).to.haveOwnProperty('code');","    pm.expect(responseJson).to.haveOwnProperty('message');","    pm.expect(responseJson).to.haveOwnProperty('data');","","    pm.expect(responseJson.code).to.equals(200);","    pm.expect(responseJson.message).to.equals('List of Address Found');","    pm.expect(responseJson.data).to.be.an('array')","});","","pm.test('response body should have correct property and value', () => {","    const responseJson = pm.response.json();","    const { data } = responseJson","    for (address of data) {","        pm.expect(address).to.haveOwnProperty('id');","        pm.expect(address.id).to.not.equals(0);","        pm.expect(address).to.haveOwnProperty('address_label');","        pm.expect(address.address_label).to.not.equals('');","        pm.expect(address).to.haveOwnProperty('address_line');","        pm.expect(address.address_line).to.not.equals('');","        pm.expect(address).to.haveOwnProperty('city');","        pm.expect(address.city).to.not.equals('');","        pm.expect(address).to.haveOwnProperty('province');","        pm.expect(address.province).to.not.equals('');","        pm.expect(address).to.haveOwnProperty('postal_code');","        pm.expect(address.postal_code).to.not.equals(0);","        pm.expect(address).to.haveOwnProperty('country');","        pm.expect(address.country).to.not.equals(0);","        pm.expect(address).to.haveOwnProperty('region_id');","        pm.expect(address.region_id).to.not.equals('');","        pm.expect(address).to.haveOwnProperty('is_default');","        pm.expect(address.is_default).to.be.oneOf([true,false])","    }","});"],"type":"text/javascript"}}],"id":"1932e03c-fed0-445f-a537-58a9f4691380","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{}},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{auth_token}"}]},"isInherited":false},"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:1323/api/v1/auth/users/{user_uid}/addresses","urlObject":{"path":["api","v1","auth","users","{user_uid}","addresses"],"host":["http://localhost:1323"],"query":[],"variable":[]}},"response":[{"id":"d8b27c04-d554-4f60-ba01-5346d6c8f1e7","name":"Get Address List (A)","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:1323/api/v1/auth/users/{user_uid}/addresses"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Date","value":"Fri, 07 Oct 2022 06:28:55 GMT"},{"key":"Content-Length","value":"259"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"message\": \"List of Address Found\",\n    \"data\": [\n        {\n            \"id\": 1,\n            \"address_label\": \"Rumah\",\n            \"address_line\": \"Jl. Batununggal Indah No. 50\",\n            \"city\": \"Bandung\",\n            \"province\": \"Jawa Barat\",\n            \"postal_code\": 40287,\n            \"country\": \"Indonesia\",\n            \"region_id\": \"JAWA_01\",\n            \"is_default\": false\n        }\n    ]\n}"}],"_postman_id":"1932e03c-fed0-445f-a537-58a9f4691380"},{"name":"Get Address By ID (A)","event":[{"listen":"test","script":{"id":"b7715174-39e1-4688-8b0a-8854f4666315","exec":["pm.test('status code should be 200', () => {","    pm.response.to.have.status(200);","});","","pm.test('response header Content-Type should be application/json', () => {","    pm.expect(pm.response.headers.get('Content-Type')).to.equals('application/json; charset=UTF-8');","});","","pm.test('response body should be an object', () => {","    const responseJson = pm.response.json();","    pm.expect(responseJson).to.be.an('object');","});","","pm.test('response body should have correct property and value', () => {","    const responseJson = pm.response.json();","    ","    pm.expect(responseJson).to.haveOwnProperty('code');","    pm.expect(responseJson).to.haveOwnProperty('message');","    pm.expect(responseJson).to.haveOwnProperty('data');","","    pm.expect(responseJson.code).to.equals(200);","    pm.expect(responseJson.message).to.equals('Address Found');","    pm.expect(responseJson.data).to.be.an('object')","});","","pm.test('response body should have correct property and value', () => {","    const responseJson = pm.response.json();","    const { data } = responseJson","    pm.expect(data).to.haveOwnProperty('id');","    pm.expect(data.id).to.not.equals(0);","    pm.expect(data).to.haveOwnProperty('address_label');","    pm.expect(data.address_label).to.not.equals('');","    pm.expect(data).to.haveOwnProperty('address_line');","    pm.expect(data.address_line).to.not.equals('');","    pm.expect(data).to.haveOwnProperty('city');","    pm.expect(data.city).to.not.equals('');","    pm.expect(data).to.haveOwnProperty('province');","    pm.expect(data.province).to.not.equals('');","    pm.expect(data).to.haveOwnProperty('postal_code');","    pm.expect(data.postal_code).to.not.equals(0);","    pm.expect(data).to.haveOwnProperty('country');","    pm.expect(data.country).to.not.equals(0);","    pm.expect(data).to.haveOwnProperty('region_id');","    pm.expect(data.region_id).to.not.equals('');","    pm.expect(data).to.haveOwnProperty('is_default');","    pm.expect(data.is_default).to.be.oneOf([true,false])","});"],"type":"text/javascript"}}],"id":"7130ce88-8cab-4d3c-8ebb-54e559343ce5","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{}},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{auth_token}"}]},"isInherited":false},"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:1323/api/v1/auth/users/{user_uid}/addresses/{address_id}","urlObject":{"path":["api","v1","auth","users","{user_uid}","addresses","{address_id}"],"host":["http://localhost:1323"],"query":[],"variable":[]}},"response":[{"id":"e338816b-bca2-4341-a089-0ec4df71adbe","name":"Get Address By ID (A)","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:1323/api/v1/auth/users/{user_uid}/addresses/{address_id}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Date","value":"Fri, 07 Oct 2022 06:29:15 GMT"},{"key":"Content-Length","value":"249"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"message\": \"Address Found\",\n    \"data\": {\n        \"id\": 1,\n        \"address_label\": \"Rumah\",\n        \"address_line\": \"Jl. Batununggal Indah No. 50\",\n        \"city\": \"Bandung\",\n        \"province\": \"Jawa Barat\",\n        \"postal_code\": 40287,\n        \"country\": \"Indonesia\",\n        \"region_id\": \"JAWA_01\",\n        \"is_default\": false\n    }\n}"}],"_postman_id":"7130ce88-8cab-4d3c-8ebb-54e559343ce5"},{"name":"Update Selected Address (A)","event":[{"listen":"test","script":{"id":"b7715174-39e1-4688-8b0a-8854f4666315","exec":["pm.test('status code should be 200', () => {","    pm.response.to.have.status(200);","});","","pm.test('response header Content-Type should be application/json', () => {","    pm.expect(pm.response.headers.get('Content-Type')).to.equals('application/json; charset=UTF-8');","});","","pm.test('response body should be an object', () => {","    const responseJson = pm.response.json();","    pm.expect(responseJson).to.be.an('object');","});","","pm.test('response body should have correct property and value', () => {","    const responseJson = pm.response.json();","    ","    pm.expect(responseJson).to.haveOwnProperty('code');","    pm.expect(responseJson).to.haveOwnProperty('message');","","    pm.expect(responseJson.code).to.equals(200);","    pm.expect(responseJson.message).to.equals('Address Updated Successfully');","});"],"type":"text/javascript"}},{"listen":"prerequest","script":{"id":"99d6df36-1fa9-4a7d-b1b0-91e353d5f1c7","exec":["pm.collectionVariables.set('userAddressLine',\"Komplek Permata Buah Batu D55\");","pm.collectionVariables.set('userAddressLabel',\"Kost\")"],"type":"text/javascript"}}],"id":"ce12bcb9-5cc3-4032-b2f0-da0cc159175b","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{}},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{auth_token}"}]},"isInherited":false},"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"address_label\": \"Rumah\",\n    \"address_line\": \"Jl. Batununggal Indah No. 50\",\n    \"city\": \"Bandung\",\n    \"province\": \"Jawa Barat\",\n    \"postal_code\": 40287,\n    \"country\": \"Indonesia\",\n    \"region_id\": \"JAWA_01\",\n    \"is_default\": false,\n    \"deleted_at\": \"2026-06-30T03:23:10.149Z\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:1323/api/v1/auth/users/{user_uid}/addresses/{address_id}","urlObject":{"path":["api","v1","auth","users","{user_uid}","addresses","{address_id}"],"host":["http://localhost:1323"],"query":[],"variable":[]}},"response":[{"id":"224216df-3823-4578-82f4-e15ab803514e","name":"Update Selected Address (A)","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"address_label\": \"Rumah\",\n    \"address_line\": \"Jl. Batununggal Indah No. 50\",\n    \"city\": \"Bandung\",\n    \"province\": \"Jawa Barat\",\n    \"postal_code\": 40287,\n    \"country\": \"Indonesia\",\n    \"region_id\": \"JAWA_01\",\n    \"is_default\": false,\n    \"deleted_at\": \"2026-06-30T03:23:10.149Z\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:1323/api/v1/auth/users/{user_uid}/addresses/{address_id}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Date","value":"Fri, 07 Oct 2022 06:29:30 GMT"},{"key":"Content-Length","value":"54"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"message\": \"Address Updated Successfully\"\n}"}],"_postman_id":"ce12bcb9-5cc3-4032-b2f0-da0cc159175b"},{"name":"Set Delete to Address (A)","event":[{"listen":"prerequest","script":{"id":"c2b52365-48f9-4875-99a6-1c8db2c1017c","exec":[""],"type":"text/javascript"}},{"listen":"test","script":{"id":"7a11ac2e-7368-434d-a34b-081c1bb1e126","exec":["pm.test('status code should be 200', () => {","    pm.response.to.have.status(200);","});","","pm.test('response header Content-Type should be application/json', () => {","    pm.expect(pm.response.headers.get('Content-Type')).to.equals('application/json; charset=UTF-8');","});","","pm.test('response body should be an object', () => {","    const responseJson = pm.response.json();","    pm.expect(responseJson).to.be.an('object');","});","","pm.test('response body should have correct property and value', () => {","    const responseJson = pm.response.json();","    ","    pm.expect(responseJson).to.haveOwnProperty('code');","    pm.expect(responseJson).to.haveOwnProperty('message');","","    pm.expect(responseJson.code).to.equals(200);","    pm.expect(responseJson.message).to.equals('Address Set To Deleted');","});"],"type":"text/javascript"}}],"id":"9a781281-1061-4b6e-b378-32539c9e1adf","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{auth_token}"}]},"isInherited":false},"method":"DELETE","header":[],"url":"http://localhost:1323/api/v1/auth/users/{user_uid}/addresses/{address_id}","urlObject":{"path":["api","v1","auth","users","{user_uid}","addresses","{address_id}"],"host":["http://localhost:1323"],"query":[],"variable":[]}},"response":[{"id":"1312393f-6f3e-4245-bd5e-690bdba303e8","name":"Set Delete to Address (A)","originalRequest":{"method":"DELETE","header":[],"url":"http://localhost:1323/api/v1/auth/users/{user_uid}/addresses/{address_id}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Date","value":"Fri, 07 Oct 2022 06:29:43 GMT"},{"key":"Content-Length","value":"48"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"message\": \"Address Set To Deleted\"\n}"}],"_postman_id":"9a781281-1061-4b6e-b378-32539c9e1adf"},{"name":"Create New Payment (A)","event":[{"listen":"test","script":{"id":"b7715174-39e1-4688-8b0a-8854f4666315","exec":["pm.test('status code should be 201', () => {","    pm.response.to.have.status(201);","});","","pm.test('response header Content-Type should be application/json', () => {","    pm.expect(pm.response.headers.get('Content-Type')).to.equals('application/json; charset=UTF-8');","});","","pm.test('response body should be an object', () => {","    const responseJson = pm.response.json();","    pm.expect(responseJson).to.be.an('object');","});","","pm.test('response body should have correct property and value', () => {","    const responseJson = pm.response.json();","    ","    pm.expect(responseJson).to.haveOwnProperty('code');","    pm.expect(responseJson).to.haveOwnProperty('message');","    pm.expect(responseJson).to.haveOwnProperty('data');","","    pm.expect(responseJson.code).to.equals(201);","    pm.expect(responseJson.message).to.equals('Payment Added Successfully');","    pm.expect(responseJson.data).to.be.an('object')","});","","pm.test('response body should have correct property and value', () => {","    const responseJson = pm.response.json();","    const { data } = responseJson","    pm.collectionVariables.set('userPaymentID',data.payment_id)","    ","    pm.expect(data).to.haveOwnProperty('payment_id');","    pm.expect(data).to.haveOwnProperty('user_uid');","});"],"type":"text/javascript"}}],"id":"a513a415-207b-4798-ba72-e1a315b17e0f","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{}},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{auth_token}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"user_uid\": \"{user_uid}\",\n    \"payment_type\": \"Bank Virtual Account\",\n    \"provider\": \"Bank Bahagia\",\n    \"account_number\": 1112222333334,\n    \"exp\": \"2026-06-30T03:23:10.149Z\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:1323/api/v1/auth/users/{user_uid}/payment","urlObject":{"path":["api","v1","auth","users","{user_uid}","payment"],"host":["http://localhost:1323"],"query":[],"variable":[]}},"response":[{"id":"426a0b0b-78ca-4293-8c11-a03793b74e88","name":"Create New Payment (A)","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"user_uid\": \"{user_uid}\",\n    \"payment_type\": \"Bank Virtual Account\",\n    \"provider\": \"Bank Bahagia\",\n    \"account_number\": 1112222333334,\n    \"exp\": \"2026-06-30T03:23:10.149Z\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:1323/api/v1/auth/users/{user_uid}/payment"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Date","value":"Fri, 07 Oct 2022 06:30:29 GMT"},{"key":"Content-Length","value":"126"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 201,\n    \"message\": \"Payment Added Successfully\",\n    \"data\": {\n        \"payment_id\": 1,\n        \"user_uid\": \"da1c309a-8e80-40bb-966c-2534106b6997\"\n    }\n}"}],"_postman_id":"a513a415-207b-4798-ba72-e1a315b17e0f"},{"name":"Get Payment List (A)","event":[{"listen":"test","script":{"id":"b7715174-39e1-4688-8b0a-8854f4666315","exec":["pm.test('status code should be 200', () => {","    pm.response.to.have.status(200);","});","","pm.test('response header Content-Type should be application/json', () => {","    pm.expect(pm.response.headers.get('Content-Type')).to.equals('application/json; charset=UTF-8');","});","","pm.test('response body should be an object', () => {","    const responseJson = pm.response.json();","    pm.expect(responseJson).to.be.an('object');","});","","pm.test('response body should have correct property and value', () => {","    const responseJson = pm.response.json();","    ","    pm.expect(responseJson).to.haveOwnProperty('code');","    pm.expect(responseJson).to.haveOwnProperty('message');","    pm.expect(responseJson).to.haveOwnProperty('data');","","    pm.expect(responseJson.code).to.equals(200);","    pm.expect(responseJson.message).to.equals('List of Payment Found');","    pm.expect(responseJson.data).to.be.an('array')","});","","pm.test('response body should have correct property and value', () => {","    const responseJson = pm.response.json();","    const { data } = responseJson","    for (payment of data) {","        pm.expect(payment).to.haveOwnProperty('id');","        pm.expect(payment).to.haveOwnProperty('user_uid');","        pm.expect(payment).to.haveOwnProperty('payment_type');","        pm.expect(payment).to.haveOwnProperty('provider');","    }","});"],"type":"text/javascript"}}],"id":"dbf2d7cb-fa6a-4c3f-b00c-6ff489b734a9","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{}},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{auth_token}"}]},"isInherited":false},"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:1323/api/v1/auth/users/{user_uid}/payment","urlObject":{"path":["api","v1","auth","users","{user_uid}","payment"],"host":["http://localhost:1323"],"query":[],"variable":[]}},"response":[{"id":"141379ff-ec35-44b0-ab7a-1853dbf6292a","name":"Get Payment List (A)","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:1323/api/v1/auth/users/{user_uid}/payment"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Date","value":"Fri, 07 Oct 2022 06:30:48 GMT"},{"key":"Content-Length","value":"179"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"message\": \"List of Payment Found\",\n    \"data\": [\n        {\n            \"id\": 1,\n            \"user_uid\": \"da1c309a-8e80-40bb-966c-2534106b6997\",\n            \"payment_type\": \"Bank Virtual Account\",\n            \"provider\": \"Bank Bahagia\"\n        }\n    ]\n}"}],"_postman_id":"dbf2d7cb-fa6a-4c3f-b00c-6ff489b734a9"},{"name":"Get Payment By ID (A)","event":[{"listen":"test","script":{"id":"b7715174-39e1-4688-8b0a-8854f4666315","exec":["pm.test('status code should be 200', () => {","    pm.response.to.have.status(200);","});","","pm.test('response header Content-Type should be application/json', () => {","    pm.expect(pm.response.headers.get('Content-Type')).to.equals('application/json; charset=UTF-8');","});","","pm.test('response body should be an object', () => {","    const responseJson = pm.response.json();","    pm.expect(responseJson).to.be.an('object');","});","","pm.test('response body should have correct property and value', () => {","    const responseJson = pm.response.json();","    ","    pm.expect(responseJson).to.haveOwnProperty('code');","    pm.expect(responseJson).to.haveOwnProperty('message');","    pm.expect(responseJson).to.haveOwnProperty('data');","","    pm.expect(responseJson.code).to.equals(200);","    pm.expect(responseJson.message).to.equals('Payment Found');","    pm.expect(responseJson.data).to.be.an('object')","});","","pm.test('response body should have correct property and value', () => {","    const responseJson = pm.response.json();","    const { data } = responseJson","    ","    pm.expect(data).to.haveOwnProperty('id');","    pm.expect(data).to.haveOwnProperty('user_uid');","    pm.expect(data).to.haveOwnProperty('payment_type');","    pm.expect(data).to.haveOwnProperty('provider');","    pm.expect(data).to.haveOwnProperty('account_number');","    pm.expect(data).to.haveOwnProperty('exp');","","","});"],"type":"text/javascript"}}],"id":"570471bb-4e8f-414a-b49a-5cba6a138076","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{}},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{auth_token}"}]},"isInherited":false},"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:1323/api/v1/auth/users/{user_uid}/payment/{payment_id}","urlObject":{"path":["api","v1","auth","users","{user_uid}","payment","{payment_id}"],"host":["http://localhost:1323"],"query":[],"variable":[]}},"response":[{"id":"d1cc5fc9-5453-4fc2-9ecc-aa826028bbe7","name":"Get Payment By ID (A)","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:1323/api/v1/auth/users/{user_uid}/payment/{payment_id}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Date","value":"Fri, 07 Oct 2022 06:31:10 GMT"},{"key":"Content-Length","value":"233"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"message\": \"Payment Found\",\n    \"data\": {\n        \"id\": 1,\n        \"user_uid\": \"da1c309a-8e80-40bb-966c-2534106b6997\",\n        \"payment_type\": \"Bank Virtual Account\",\n        \"provider\": \"Bank Bahagia\",\n        \"account_number\": 1112222333334,\n        \"exp\": \"2022-10-07T06:30:29.708Z\"\n    }\n}"}],"_postman_id":"570471bb-4e8f-414a-b49a-5cba6a138076"},{"name":"Update Selected Payment Profile (A)","event":[{"listen":"test","script":{"id":"b7715174-39e1-4688-8b0a-8854f4666315","exec":["pm.test('status code should be 200', () => {","    pm.response.to.have.status(200);","});","","pm.test('response header Content-Type should be application/json', () => {","    pm.expect(pm.response.headers.get('Content-Type')).to.equals('application/json; charset=UTF-8');","});","","pm.test('response body should be an object', () => {","    const responseJson = pm.response.json();","    pm.expect(responseJson).to.be.an('object');","});","","pm.test('response body should have correct property and value', () => {","    const responseJson = pm.response.json();","    ","    pm.expect(responseJson).to.haveOwnProperty('code');","    pm.expect(responseJson).to.haveOwnProperty('message');","","    pm.expect(responseJson.code).to.equals(200);","    pm.expect(responseJson.message).to.equals('Payment Set to Deleted');","});"],"type":"text/javascript"}},{"listen":"prerequest","script":{"id":"99d6df36-1fa9-4a7d-b1b0-91e353d5f1c7","exec":["pm.collectionVariables.set('userPaymentProvider',\"Bank Sejahtera\");","pm.collectionVariables.set('userPaymentAN',88888444447)"],"type":"text/javascript"}}],"id":"50e26fe6-57ff-4ce7-91d5-3d9ef759cf22","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{}},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{auth_token}"}]},"isInherited":false},"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"user_uid\": \"{user_uid}\",\n    \"payment_type\": \"Bank Virtual Account\",\n    \"provider\": \"Bank Bahagia\",\n    \"account_number\": 1112222333334,\n    \"exp\": \"2026-06-30T03:23:10.149Z\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:1323/api/v1/auth/users/{user_uid}/payment/{payment_id}","urlObject":{"path":["api","v1","auth","users","{user_uid}","payment","{payment_id}"],"host":["http://localhost:1323"],"query":[],"variable":[]}},"response":[{"id":"f33dc795-9e71-46ac-8bfe-c4adefb305ff","name":"Update Selected Payment Profile (A)","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"user_uid\": \"{user_uid}\",\n    \"payment_type\": \"Bank Virtual Account\",\n    \"provider\": \"Bank Bahagia\",\n    \"account_number\": 1112222333334,\n    \"exp\": \"2026-06-30T03:23:10.149Z\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:1323/api/v1/auth/users/{user_uid}/payment/{payment_id}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Date","value":"Fri, 07 Oct 2022 06:31:24 GMT"},{"key":"Content-Length","value":"54"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"message\": \"Payment Updated Successfully\"\n}"}],"_postman_id":"50e26fe6-57ff-4ce7-91d5-3d9ef759cf22"},{"name":"Set Delete to Payment(A)","event":[{"listen":"prerequest","script":{"id":"c2b52365-48f9-4875-99a6-1c8db2c1017c","exec":[""],"type":"text/javascript"}},{"listen":"test","script":{"id":"7a11ac2e-7368-434d-a34b-081c1bb1e126","exec":["pm.test('status code should be 200', () => {","    pm.response.to.have.status(200);","});","","pm.test('response header Content-Type should be application/json', () => {","    pm.expect(pm.response.headers.get('Content-Type')).to.equals('application/json; charset=UTF-8');","});","","pm.test('response body should be an object', () => {","    const responseJson = pm.response.json();","    pm.expect(responseJson).to.be.an('object');","});","","pm.test('response body should have correct property and value', () => {","    const responseJson = pm.response.json();","    ","    pm.expect(responseJson).to.haveOwnProperty('code');","    pm.expect(responseJson).to.haveOwnProperty('message');","","    pm.expect(responseJson.code).to.equals(200);","    pm.expect(responseJson.message).to.equals('Payment Set To Deleted');","});"],"type":"text/javascript"}}],"id":"f2aa0863-9eb3-43f5-8e86-1a9e777dbe72","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{auth_token}"}]},"isInherited":false},"method":"DELETE","header":[],"url":"http://localhost:1323/api/v1/auth/users/{user_uid}/payment/{payment_id}","urlObject":{"path":["api","v1","auth","users","{user_uid}","payment","{payment_id}"],"host":["http://localhost:1323"],"query":[],"variable":[]}},"response":[{"id":"65cc196f-7daa-402c-bf23-b91de681bcc5","name":"Set Delete to Payment(A)","originalRequest":{"method":"DELETE","header":[],"url":"http://localhost:1323/api/v1/auth/users/{user_uid}/payment/{payment_id}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Date","value":"Fri, 07 Oct 2022 06:31:53 GMT"},{"key":"Content-Length","value":"48"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"message\": \"Payment Set To Deleted\"\n}"}],"_postman_id":"f2aa0863-9eb3-43f5-8e86-1a9e777dbe72"}],"id":"53824771-2f77-4df7-ac80-31edddb13d67","_postman_id":"53824771-2f77-4df7-ac80-31edddb13d67","description":""},{"name":"Product Management","item":[{"name":"Create New Product (A)","event":[{"listen":"test","script":{"id":"b7715174-39e1-4688-8b0a-8854f4666315","exec":["pm.test('status code should be 201', () => {","    pm.response.to.have.status(201);","});","","pm.test('response header Content-Type should be application/json', () => {","    pm.expect(pm.response.headers.get('Content-Type')).to.equals('application/json; charset=UTF-8');","});","","pm.test('response body should be an object', () => {","    const responseJson = pm.response.json();","    pm.expect(responseJson).to.be.an('object');","});","","pm.test('response body should have correct property and value', () => {","    const responseJson = pm.response.json();","    ","    pm.expect(responseJson).to.haveOwnProperty('code');","    pm.expect(responseJson).to.haveOwnProperty('message');","    pm.expect(responseJson).to.haveOwnProperty('data');","","    pm.expect(responseJson.code).to.equals(201);","    pm.expect(responseJson.message).to.equals('Product Created Successfully');","    pm.expect(responseJson.data).to.be.an('object')","});","","pm.test('response body should have correct property and value', () => {","    const responseJson = pm.response.json();","    const { data } = responseJson","    pm.collectionVariables.set('productID',data.product_id)","    ","    pm.expect(data).to.haveOwnProperty('product_id');","    pm.expect(data.product_id).to.equals(parseInt(pm.collectionVariables.get('productID')));","    pm.expect(data).to.haveOwnProperty('product_sku');","    pm.expect(data.product_sku).to.not.equals('');","    pm.expect(data).to.haveOwnProperty('product_name');","    pm.expect(data.product_name).to.not.equals('');","});"],"type":"text/javascript"}}],"id":"0e4f1775-3d60-4d4e-a8c1-20cabef83386","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{}},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{admin_token}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"sku\": \"PK-L-NLA-001\",\n    \"name\": \"Pakan Nila Large Size\",\n    \"description\": \"Pakan Nila dengan grade A ukuran Large\",\n    \"price\": 45000,\n    \"quantity\": 20,\n    \"product_category\": \"Pakan Ternak\",\n    \"image_url\": \"https://drive.google.com/uc?export=view&id=19LuYVTWGp6RQ9trAYo47lHyla92bvWaQ\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:1323/api/v1/auth/admins/products","urlObject":{"path":["api","v1","auth","admins","products"],"host":["http://localhost:1323"],"query":[],"variable":[]}},"response":[{"id":"979c9d92-5d95-4caf-9ed6-f1c9aa2b4928","name":"Create New Product (A)","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"sku\": \"PK-L-NLA-001\",\n    \"name\": \"Pakan Nila Large Size\",\n    \"description\": \"Pakan Nila dengan grade A ukuran Large\",\n    \"price\": 45000,\n    \"quantity\": 20,\n    \"product_category\": \"Pakan Ternak\",\n    \"image_url\": \"https://drive.google.com/uc?export=view&id=19LuYVTWGp6RQ9trAYo47lHyla92bvWaQ\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:1323/api/v1/auth/admins/products"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Date","value":"Fri, 07 Oct 2022 06:32:33 GMT"},{"key":"Content-Length","value":"146"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 201,\n    \"message\": \"Product Created Successfully\",\n    \"data\": {\n        \"product_id\": 1,\n        \"product_sku\": \"PK-L-NLA-001\",\n        \"product_name\": \"Pakan Nila Large Size\"\n    }\n}"}],"_postman_id":"0e4f1775-3d60-4d4e-a8c1-20cabef83386"},{"name":"Get List of Products (A)","event":[{"listen":"test","script":{"id":"b7715174-39e1-4688-8b0a-8854f4666315","exec":["pm.test('status code should be 200', () => {","    pm.response.to.have.status(200);","});","","pm.test('response header Content-Type should be application/json', () => {","    pm.expect(pm.response.headers.get('Content-Type')).to.equals('application/json; charset=UTF-8');","});","","pm.test('response body should be an object', () => {","    const responseJson = pm.response.json();","    pm.expect(responseJson).to.be.an('object');","});","","pm.test('response body should have correct property and value', () => {","    const responseJson = pm.response.json();","    ","    pm.expect(responseJson).to.haveOwnProperty('code');","    pm.expect(responseJson).to.haveOwnProperty('message');","    pm.expect(responseJson).to.haveOwnProperty('data');","","    pm.expect(responseJson.code).to.equals(200);","    pm.expect(responseJson.message).to.equals('List Products Found');","    pm.expect(responseJson.data).to.be.an('array')","});","","// pm.test('response body should have correct property and value', () => {","//     const responseJson = pm.response.json();","//     const { data } = responseJson","//     pm.collectionVariables.set('productID',data.product_id)","    ","//     pm.expect(data).to.haveOwnProperty('product_id');","//     pm.expect(data.product_id).to.equals(parseInt(pm.collectionVariables.get('productID')));","//     pm.expect(data).to.haveOwnProperty('product_sku');","//     pm.expect(data.product_sku).to.not.equals('');","//     pm.expect(data).to.haveOwnProperty('product_name');","//     pm.expect(data.product_name).to.not.equals('');","// });"],"type":"text/javascript"}}],"id":"659be6c6-8c9d-4c6f-b6a0-de0bb8784c19","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{}},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{admin_token}"}]},"isInherited":false},"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:1323/api/v1/auth/admins/products","urlObject":{"path":["api","v1","auth","admins","products"],"host":["http://localhost:1323"],"query":[],"variable":[]}},"response":[{"id":"4b456c97-0b86-4f6e-ac17-adb80a9c7982","name":"Get List of Products (A)","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:1323/api/v1/auth/admins/products"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Date","value":"Fri, 07 Oct 2022 06:32:44 GMT"},{"key":"Content-Length","value":"476"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"message\": \"List Products Found\",\n    \"data\": [\n        {\n            \"id\": 1,\n            \"sku\": \"PK-L-NLA-001\",\n            \"name\": \"Pakan Nila Large Size\",\n            \"description\": \"Pakan Nila dengan grade A ukuran Large\",\n            \"price\": 45000,\n            \"quantity\": 20,\n            \"category\": {\n                \"category_id\": 1,\n                \"category_name\": \"Pakan Ternak\"\n            },\n            \"image_url\": \"https://drive.google.com/uc?export=view&id=19LuYVTWGp6RQ9trAYo47lHyla92bvWaQ\",\n            \"created_at\": \"2022-10-07T06:32:33.011909Z\",\n            \"updated_at\": \"2022-10-07T06:32:33.011909Z\",\n            \"deleted_at\": \"0001-01-01T00:00:00Z\"\n        }\n    ]\n}"}],"_postman_id":"659be6c6-8c9d-4c6f-b6a0-de0bb8784c19"},{"name":"Get List of Products With Public Access (A)","event":[{"listen":"test","script":{"id":"b7715174-39e1-4688-8b0a-8854f4666315","exec":["pm.test('status code should be 200', () => {","    pm.response.to.have.status(200);","});","","pm.test('response header Content-Type should be application/json', () => {","    pm.expect(pm.response.headers.get('Content-Type')).to.equals('application/json; charset=UTF-8');","});","","pm.test('response body should be an object', () => {","    const responseJson = pm.response.json();","    pm.expect(responseJson).to.be.an('object');","});","","pm.test('response body should have correct property and value', () => {","    const responseJson = pm.response.json();","    ","    pm.expect(responseJson).to.haveOwnProperty('code');","    pm.expect(responseJson).to.haveOwnProperty('message');","    pm.expect(responseJson).to.haveOwnProperty('data');","","    pm.expect(responseJson.code).to.equals(200);","    pm.expect(responseJson.message).to.equals('List Products Found');","    pm.expect(responseJson.data).to.be.an('array')","});","","// pm.test('response body should have correct property and value', () => {","//     const responseJson = pm.response.json();","//     const { data } = responseJson","//     pm.collectionVariables.set('productID',data.product_id)","    ","//     pm.expect(data).to.haveOwnProperty('product_id');","//     pm.expect(data.product_id).to.equals(parseInt(pm.collectionVariables.get('productID')));","//     pm.expect(data).to.haveOwnProperty('product_sku');","//     pm.expect(data.product_sku).to.not.equals('');","//     pm.expect(data).to.haveOwnProperty('product_name');","//     pm.expect(data.product_name).to.not.equals('');","// });"],"type":"text/javascript"}}],"id":"92061297-931b-4125-8d34-cf4893db2b5c","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{}},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{admin_token}"}]},"isInherited":false},"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:1323/api/v1/public/products","urlObject":{"path":["api","v1","public","products"],"host":["http://localhost:1323"],"query":[],"variable":[]}},"response":[{"id":"072137ff-b521-4556-a9ec-3852af513d06","name":"Get List of Products With Public Access (A)","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:1323/api/v1/public/products"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Date","value":"Fri, 07 Oct 2022 06:33:05 GMT"},{"key":"Content-Length","value":"476"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"message\": \"List Products Found\",\n    \"data\": [\n        {\n            \"id\": 1,\n            \"sku\": \"PK-L-NLA-001\",\n            \"name\": \"Pakan Nila Large Size\",\n            \"description\": \"Pakan Nila dengan grade A ukuran Large\",\n            \"price\": 45000,\n            \"quantity\": 20,\n            \"category\": {\n                \"category_id\": 1,\n                \"category_name\": \"Pakan Ternak\"\n            },\n            \"image_url\": \"https://drive.google.com/uc?export=view&id=19LuYVTWGp6RQ9trAYo47lHyla92bvWaQ\",\n            \"created_at\": \"2022-10-07T06:32:33.011909Z\",\n            \"updated_at\": \"2022-10-07T06:32:33.011909Z\",\n            \"deleted_at\": \"0001-01-01T00:00:00Z\"\n        }\n    ]\n}"}],"_postman_id":"92061297-931b-4125-8d34-cf4893db2b5c"},{"name":"Get Product By ID (A)","event":[{"listen":"test","script":{"id":"d933a1aa-c744-4287-b6b0-ec5008a8f3a1","exec":["pm.test('status code should be 200', () => {","    pm.response.to.have.status(200);","});","","pm.test('response header Content-Type should be application/json', () => {","    pm.expect(pm.response.headers.get('Content-Type')).to.equals('application/json; charset=UTF-8');","});","","pm.test('response body should be an object', () => {","    const responseJson = pm.response.json();","    pm.expect(responseJson).to.be.an('object');","});","","pm.test('response body should have correct property and value', () => {","    const responseJson = pm.response.json();","    ","    pm.expect(responseJson).to.haveOwnProperty('code');","    pm.expect(responseJson).to.haveOwnProperty('message');","    pm.expect(responseJson).to.haveOwnProperty('data');","","    pm.expect(responseJson.code).to.equals(200);","    pm.expect(responseJson.message).to.equals('Product Found');","    pm.expect(responseJson.data).to.be.an('object')","});","","pm.test('response data should have correct property and value', () => {","    const responseJson = pm.response.json();","    const { data } = responseJson","    ","    pm.expect(data).to.haveOwnProperty('id');","    pm.expect(data).to.haveOwnProperty('sku');","    pm.expect(data).to.haveOwnProperty('name');","    pm.expect(data).to.haveOwnProperty('description');","    pm.expect(data).to.haveOwnProperty('price');","    pm.expect(data).to.haveOwnProperty('quantity');","    pm.expect(data).to.haveOwnProperty('category');","    pm.expect(data.category).to.haveOwnProperty('category_id');","    pm.expect(data.category).to.haveOwnProperty('category_name');","    pm.expect(data).to.haveOwnProperty('image_url');","    pm.expect(data).to.haveOwnProperty('created_at');","    pm.expect(data).to.haveOwnProperty('updated_at');","    pm.expect(data).to.haveOwnProperty('deleted_at');","","});"],"type":"text/javascript"}}],"id":"78df8ddf-034b-4731-8de4-bc2e24b7eff1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{admin_token}"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:1323/api/v1/auth/admins/products/{product_id}","urlObject":{"path":["api","v1","auth","admins","products","{product_id}"],"host":["http://localhost:1323"],"query":[],"variable":[]}},"response":[{"id":"b43f8ee8-a56d-4c68-b105-27a5ee13b4eb","name":"Get Product By ID (A)","originalRequest":{"method":"GET","header":[],"url":"http://localhost:1323/api/v1/auth/admins/products/{product_id}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Date","value":"Fri, 07 Oct 2022 06:33:19 GMT"},{"key":"Content-Length","value":"468"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"message\": \"Product Found\",\n    \"data\": {\n        \"id\": 1,\n        \"sku\": \"PK-L-NLA-001\",\n        \"name\": \"Pakan Nila Large Size\",\n        \"description\": \"Pakan Nila dengan grade A ukuran Large\",\n        \"price\": 45000,\n        \"quantity\": 20,\n        \"category\": {\n            \"category_id\": 1,\n            \"category_name\": \"Pakan Ternak\"\n        },\n        \"image_url\": \"https://drive.google.com/uc?export=view&id=19LuYVTWGp6RQ9trAYo47lHyla92bvWaQ\",\n        \"created_at\": \"2022-10-07T06:32:33.011909Z\",\n        \"updated_at\": \"2022-10-07T06:32:33.011909Z\",\n        \"deleted_at\": \"0001-01-01T00:00:00Z\"\n    }\n}"}],"_postman_id":"78df8ddf-034b-4731-8de4-bc2e24b7eff1"},{"name":"Get Product By ID With Public Access (A)","event":[{"listen":"test","script":{"id":"d933a1aa-c744-4287-b6b0-ec5008a8f3a1","exec":["pm.test('status code should be 200', () => {","    pm.response.to.have.status(200);","});","","pm.test('response header Content-Type should be application/json', () => {","    pm.expect(pm.response.headers.get('Content-Type')).to.equals('application/json; charset=UTF-8');","});","","pm.test('response body should be an object', () => {","    const responseJson = pm.response.json();","    pm.expect(responseJson).to.be.an('object');","});","","pm.test('response body should have correct property and value', () => {","    const responseJson = pm.response.json();","    ","    pm.expect(responseJson).to.haveOwnProperty('code');","    pm.expect(responseJson).to.haveOwnProperty('message');","    pm.expect(responseJson).to.haveOwnProperty('data');","","    pm.expect(responseJson.code).to.equals(200);","    pm.expect(responseJson.message).to.equals('Product Found');","    pm.expect(responseJson.data).to.be.an('object')","});","","pm.test('response data should have correct property and value', () => {","    const responseJson = pm.response.json();","    const { data } = responseJson","    ","    pm.expect(data).to.haveOwnProperty('id');","    pm.expect(data).to.haveOwnProperty('sku');","    pm.expect(data).to.haveOwnProperty('name');","    pm.expect(data).to.haveOwnProperty('description');","    pm.expect(data).to.haveOwnProperty('price');","    pm.expect(data).to.haveOwnProperty('quantity');","    pm.expect(data).to.haveOwnProperty('category');","    pm.expect(data.category).to.haveOwnProperty('category_id');","    pm.expect(data.category).to.haveOwnProperty('category_name');","    pm.expect(data).to.haveOwnProperty('image_url');","    pm.expect(data).to.haveOwnProperty('created_at');","    pm.expect(data).to.haveOwnProperty('updated_at');","    pm.expect(data).to.haveOwnProperty('deleted_at');","","});"],"type":"text/javascript"}}],"id":"8b442d41-c942-44fb-ab26-75b42f71ccbd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:1323/api/v1/public/products/{product_id}","urlObject":{"path":["api","v1","public","products","{product_id}"],"host":["http://localhost:1323"],"query":[],"variable":[]}},"response":[{"id":"fdf9a1d5-27be-4e9f-b82f-7bc10cd6f5ff","name":"Get Product By ID With Public Access (A)","originalRequest":{"method":"GET","header":[],"url":"http://localhost:1323/api/v1/public/products/{product_id}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Date","value":"Fri, 07 Oct 2022 06:33:45 GMT"},{"key":"Content-Length","value":"468"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"message\": \"Product Found\",\n    \"data\": {\n        \"id\": 1,\n        \"sku\": \"PK-L-NLA-001\",\n        \"name\": \"Pakan Nila Large Size\",\n        \"description\": \"Pakan Nila dengan grade A ukuran Large\",\n        \"price\": 45000,\n        \"quantity\": 20,\n        \"category\": {\n            \"category_id\": 1,\n            \"category_name\": \"Pakan Ternak\"\n        },\n        \"image_url\": \"https://drive.google.com/uc?export=view&id=19LuYVTWGp6RQ9trAYo47lHyla92bvWaQ\",\n        \"created_at\": \"2022-10-07T06:32:33.011909Z\",\n        \"updated_at\": \"2022-10-07T06:32:33.011909Z\",\n        \"deleted_at\": \"0001-01-01T00:00:00Z\"\n    }\n}"},{"id":"61fde42c-5452-4b67-84be-6284b0a3fc21","name":"Get Product By ID With Public Access (A)","originalRequest":{"method":"GET","header":[],"url":"http://localhost:1323/api/v1/public/products/{product_id}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Date","value":"Fri, 07 Oct 2022 06:35:18 GMT"},{"key":"Content-Length","value":"458"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"message\": \"Product Found\",\n    \"data\": {\n        \"id\": 1,\n        \"sku\": \"PK-M-GUR-003\",\n        \"name\": \"Pakan Gurame Medium Size\",\n        \"description\": \"Pakan untuk gurame ukuran Medium\",\n        \"price\": 35000,\n        \"quantity\": 30,\n        \"category\": {\n            \"category_id\": 2,\n            \"category_name\": \"Pakan\"\n        },\n        \"image_url\": \"https://drive.google.com/uc?export=view&id=19LuYVTWGp6RQ9trAYo47lHyla92bvWaQ\",\n        \"created_at\": \"2022-10-07T06:32:33.011909Z\",\n        \"updated_at\": \"2022-10-07T06:34:00.312771Z\",\n        \"deleted_at\": \"0001-01-01T00:00:00Z\"\n    }\n}"}],"_postman_id":"8b442d41-c942-44fb-ab26-75b42f71ccbd"},{"name":"Update Product by ID (A)","event":[{"listen":"test","script":{"id":"b7715174-39e1-4688-8b0a-8854f4666315","exec":["pm.test('status code should be 200', () => {","    pm.response.to.have.status(200);","});","","pm.test('response header Content-Type should be application/json', () => {","    pm.expect(pm.response.headers.get('Content-Type')).to.equals('application/json; charset=UTF-8');","});","","pm.test('response body should be an object', () => {","    const responseJson = pm.response.json();","    pm.expect(responseJson).to.be.an('object');","});","","pm.test('response body should have correct property and value', () => {","    const responseJson = pm.response.json();","    ","    pm.expect(responseJson).to.haveOwnProperty('code');","    pm.expect(responseJson).to.haveOwnProperty('message');","","    pm.expect(responseJson.code).to.equals(200);","    pm.expect(responseJson.message).to.equals('Product Updated Successfully');","});"],"type":"text/javascript"}},{"listen":"prerequest","script":{"id":"2e24307d-d7b3-47ed-a4a4-799cee1fba24","exec":["pm.collectionVariables.set(\"productName\",\"Pakan Gurame Medium Size\")","pm.collectionVariables.set(\"productSKU\",\"PK-M-GUR-003\")","pm.collectionVariables.set(\"productPrice\", 35000)","pm.collectionVariables.set(\"productDescription\",\"Pakan untuk gurame ukuran Medium\")","pm.collectionVariables.set(\"productCategory\",\"Pakan\")","pm.collectionVariables.set(\"productQuantity\", 30)",""],"type":"text/javascript"}}],"id":"e53b3ed1-6d29-431d-b90f-9a8bebb12996","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{}},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{admin_token}"}]},"isInherited":false},"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"sku\": \"PK-L-NLA-001\",\n    \"name\": \"Pakan Nila Large Size\",\n    \"description\": \"Pakan Nila dengan grade A ukuran Large\",\n    \"price\": 45000,\n    \"quantity\": 20,\n    \"product_category\": \"Pakan Ternak\",\n    \"image_url\": \"https://drive.google.com/uc?export=view&id=19LuYVTWGp6RQ9trAYo47lHyla92bvWaQ\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:1323/api/v1/auth/admins/products/{product_id}","urlObject":{"path":["api","v1","auth","admins","products","{product_id}"],"host":["http://localhost:1323"],"query":[],"variable":[]}},"response":[{"id":"500ebdd5-5c6a-4dfd-b478-0ffc17889d46","name":"Update Product by ID (A)","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"sku\": \"PK-L-NLA-001\",\n    \"name\": \"Pakan Nila Large Size\",\n    \"description\": \"Pakan Nila dengan grade A ukuran Large\",\n    \"price\": 45000,\n    \"quantity\": 20,\n    \"product_category\": \"Pakan Ternak\",\n    \"image_url\": \"https://drive.google.com/uc?export=view&id=19LuYVTWGp6RQ9trAYo47lHyla92bvWaQ\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:1323/api/v1/auth/admins/products/{product_id}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Date","value":"Fri, 07 Oct 2022 06:34:00 GMT"},{"key":"Content-Length","value":"54"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"message\": \"Product Updated Successfully\"\n}"}],"_postman_id":"e53b3ed1-6d29-431d-b90f-9a8bebb12996"},{"name":"Get List of Product Category (A)","id":"677b4ed4-2607-4fbd-8624-eb3d690bc1c8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{admin_token}"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:1323/api/v1/auth/admins/products/categories","urlObject":{"path":["api","v1","auth","admins","products","categories"],"host":["http://localhost:1323"],"query":[],"variable":[]}},"response":[{"id":"d2990ec8-0338-40fa-8ec6-70298aee788d","name":"Get List of Product Category (A)","originalRequest":{"method":"GET","header":[],"url":"http://localhost:1323/api/v1/auth/admins/products/categories"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Date","value":"Fri, 07 Oct 2022 06:34:32 GMT"},{"key":"Content-Length","value":"197"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"message\": \"List Categories Found\",\n    \"data\": [\n        {\n            \"id\": 1,\n            \"name\": \"Pakan Ternak\",\n            \"created_at\": \"2022-10-07T06:32:33.007511Z\"\n        },\n        {\n            \"id\": 2,\n            \"name\": \"Pakan\",\n            \"created_at\": \"2022-10-07T06:34:00.309276Z\"\n        }\n    ]\n}"}],"_postman_id":"677b4ed4-2607-4fbd-8624-eb3d690bc1c8"},{"name":"Get List of Product Category With Public Access (A)","id":"b74db98f-c234-48fd-9fcc-f509546fc0a2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:1323/api/v1/public/products/categories","urlObject":{"path":["api","v1","public","products","categories"],"host":["http://localhost:1323"],"query":[],"variable":[]}},"response":[{"id":"b70b016a-dc6f-40e6-a910-5542bd301cdd","name":"Get List of Product Category With Public Access (A)","originalRequest":{"method":"GET","header":[],"url":"http://localhost:1323/api/v1/public/products/categories"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Date","value":"Fri, 07 Oct 2022 06:34:50 GMT"},{"key":"Content-Length","value":"197"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"message\": \"List Categories Found\",\n    \"data\": [\n        {\n            \"id\": 1,\n            \"name\": \"Pakan Ternak\",\n            \"created_at\": \"2022-10-07T06:32:33.007511Z\"\n        },\n        {\n            \"id\": 2,\n            \"name\": \"Pakan\",\n            \"created_at\": \"2022-10-07T06:34:00.309276Z\"\n        }\n    ]\n}"}],"_postman_id":"b74db98f-c234-48fd-9fcc-f509546fc0a2"}],"id":"94c68d44-c880-484e-879c-11aa21412238","_postman_id":"94c68d44-c880-484e-879c-11aa21412238","description":""},{"name":"Transaction","item":[{"name":"Get User Cart (A)","event":[{"listen":"test","script":{"id":"b7715174-39e1-4688-8b0a-8854f4666315","exec":["pm.test('status code should be 200', () => {","    pm.response.to.have.status(200);","});","","pm.test('response header Content-Type should be application/json', () => {","    pm.expect(pm.response.headers.get('Content-Type')).to.equals('application/json; charset=UTF-8');","});","","pm.test('response body should be an object', () => {","    const responseJson = pm.response.json();","    pm.expect(responseJson).to.be.an('object');","});","","pm.test('response body should have correct property and value', () => {","    const responseJson = pm.response.json();","    ","    pm.expect(responseJson).to.haveOwnProperty('code');","    pm.expect(responseJson).to.haveOwnProperty('message');","    pm.expect(responseJson).to.haveOwnProperty('data');","","    pm.expect(responseJson.code).to.equals(200);","    pm.expect(responseJson.message).to.equals('Cart Session Found');","    pm.expect(responseJson.data).to.be.an('object');","","    pm.collectionVariables.set(\"cartSessionID\",responseJson.data.id)","});"],"type":"text/javascript"}}],"id":"b40332f5-ea44-47b3-a27a-cc5774cb5620","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{}},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{auth_token}"}]},"isInherited":false},"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:1323/api/v1/auth/users/{user_uid}/cart","urlObject":{"path":["api","v1","auth","users","{user_uid}","cart"],"host":["http://localhost:1323"],"query":[],"variable":[]}},"response":[{"id":"a361d65f-6bde-4dcf-8a8c-9eb16fa9623d","name":"Get User Cart (A)","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:1323/api/v1/auth/users/{user_uid}/cart"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Date","value":"Fri, 07 Oct 2022 06:35:38 GMT"},{"key":"Content-Length","value":"182"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"message\": \"Cart Session Found\",\n    \"data\": {\n        \"id\": 1,\n        \"user_uid\": \"da1c309a-8e80-40bb-966c-2534106b6997\",\n        \"total\": 0,\n        \"updated_at\": \"2022-10-07T06:35:38.471813279Z\",\n        \"cart_items\": []\n    }\n}"}],"_postman_id":"b40332f5-ea44-47b3-a27a-cc5774cb5620"},{"name":"Add Item To Cart (A)","event":[{"listen":"test","script":{"id":"b7715174-39e1-4688-8b0a-8854f4666315","exec":["pm.test('status code should be 200', () => {","    pm.response.to.have.status(200);","});","","pm.test('response header Content-Type should be application/json', () => {","    pm.expect(pm.response.headers.get('Content-Type')).to.equals('application/json; charset=UTF-8');","});","","pm.test('response body should be an object', () => {","    const responseJson = pm.response.json();","    pm.expect(responseJson).to.be.an('object');","});","","pm.test('response body should have correct property and value', () => {","    const responseJson = pm.response.json();","    ","    pm.expect(responseJson).to.haveOwnProperty('code');","    pm.expect(responseJson).to.haveOwnProperty('message');","","    pm.expect(responseJson.code).to.equals(200);","    pm.expect(responseJson.message).to.equals('Item Added Successfully');","});"],"type":"text/javascript"}}],"id":"671ff499-9a9a-4d8d-8e4f-e1c34193678b","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{}},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{auth_token}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"session_id\": {session_id},\n    \"product_id\": {product_id},\n    \"quantity\": 5\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:1323/api/v1/auth/users/{user_uid}/cart/{session_id}/item","urlObject":{"path":["api","v1","auth","users","{user_uid}","cart","{session_id}","item"],"host":["http://localhost:1323"],"query":[],"variable":[]}},"response":[{"id":"d8a9e8b5-1e53-4bff-934b-adb3b231b35c","name":"Add Item To Cart (A)","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"session_id\": {session_id},\n    \"product_id\": {product_id},\n    \"quantity\": 5\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:1323/api/v1/auth/users/{user_uid}/cart/{session_id}/item"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Date","value":"Fri, 07 Oct 2022 06:36:00 GMT"},{"key":"Content-Length","value":"49"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"message\": \"Item Added Successfully\"\n}"}],"_postman_id":"671ff499-9a9a-4d8d-8e4f-e1c34193678b"},{"name":"Get Cart Items (A)","event":[{"listen":"test","script":{"id":"b7715174-39e1-4688-8b0a-8854f4666315","exec":["pm.test('status code should be 200', () => {","    pm.response.to.have.status(200);","});","","pm.test('response header Content-Type should be application/json', () => {","    pm.expect(pm.response.headers.get('Content-Type')).to.equals('application/json; charset=UTF-8');","});","","pm.test('response body should be an object', () => {","    const responseJson = pm.response.json();","    pm.expect(responseJson).to.be.an('object');","});","","pm.test('response body should have correct property and value', () => {","    const responseJson = pm.response.json();","    ","    pm.expect(responseJson).to.haveOwnProperty('code');","    pm.expect(responseJson).to.haveOwnProperty('message');","    pm.expect(responseJson).to.haveOwnProperty('data');","","    pm.expect(responseJson.code).to.equals(200);","    pm.expect(responseJson.message).to.equals('Items Found');","    pm.expect(responseJson.data).to.be.an('array');","","    const { data } = responseJson","    pm.collectionVariables.set(\"itemID\", data[0].id)","});",""],"type":"text/javascript"}}],"id":"acbcf808-63c1-48b4-8e67-db03085c6306","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{}},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{auth_token}"}]},"isInherited":false},"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:1323/api/v1/auth/users/{user_uid}/cart/{session_id}/item","urlObject":{"path":["api","v1","auth","users","{user_uid}","cart","{session_id}","item"],"host":["http://localhost:1323"],"query":[],"variable":[]}},"response":[{"id":"19a8d0bc-b4ec-4a86-8d9d-41f74949566c","name":"Get Cart Items (A)","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:1323/api/v1/auth/users/{user_uid}/cart/{session_id}/item"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Date","value":"Fri, 07 Oct 2022 06:36:13 GMT"},{"key":"Content-Length","value":"600"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"message\": \"Items Found\",\n    \"data\": [\n        {\n            \"id\": 1,\n            \"session_id\": 1,\n            \"product_id\": 1,\n            \"quantity\": 5,\n            \"updated_at\": \"2022-10-07T06:36:00.438741Z\",\n            \"products\": {\n                \"id\": 1,\n                \"sku\": \"PK-M-GUR-003\",\n                \"name\": \"Pakan Gurame Medium Size\",\n                \"description\": \"Pakan untuk gurame ukuran Medium\",\n                \"image_url\": \"https://drive.google.com/uc?export=view&id=19LuYVTWGp6RQ9trAYo47lHyla92bvWaQ\",\n                \"price\": 35000,\n                \"category_id\": 2,\n                \"quantity\": 30,\n                \"created_at\": \"2022-10-07T06:32:33.011909Z\",\n                \"updated_at\": \"2022-10-07T06:34:00.312771Z\",\n                \"deleted_at\": \"0001-01-01T00:00:00Z\",\n                \"ProductCategory\": {\n                    \"id\": 0,\n                    \"name\": \"\",\n                    \"created_at\": \"0001-01-01T00:00:00Z\"\n                }\n            }\n        }\n    ]\n}"}],"_postman_id":"acbcf808-63c1-48b4-8e67-db03085c6306"},{"name":"Delete Item From Cart (A)","event":[{"listen":"test","script":{"id":"b7715174-39e1-4688-8b0a-8854f4666315","exec":["pm.test('status code should be 200', () => {","    pm.response.to.have.status(200);","});","","pm.test('response header Content-Type should be application/json', () => {","    pm.expect(pm.response.headers.get('Content-Type')).to.equals('application/json; charset=UTF-8');","});","","pm.test('response body should be an object', () => {","    const responseJson = pm.response.json();","    pm.expect(responseJson).to.be.an('object');","});","","pm.test('response body should have correct property and value', () => {","    const responseJson = pm.response.json();","    ","    pm.expect(responseJson).to.haveOwnProperty('code');","    pm.expect(responseJson).to.haveOwnProperty('message');","","    pm.expect(responseJson.code).to.equals(200);","    pm.expect(responseJson.message).to.equals('Item Deleted Successfully');","});"],"type":"text/javascript"}}],"id":"f0986cc1-d3c1-4921-a4d5-43465cad50ac","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{}},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{auth_token}"}]},"isInherited":false},"method":"DELETE","header":[],"body":{"mode":"raw","raw":"{\n    \"session_id\": {session_id},\n    \"product_id\": {product_id},\n    \"quantity\": 5\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:1323/api/v1/auth/users/{user_uid}/cart/{session_id}/item/{item_id}","urlObject":{"path":["api","v1","auth","users","{user_uid}","cart","{session_id}","item","{item_id}"],"host":["http://localhost:1323"],"query":[],"variable":[]}},"response":[{"id":"98987e15-2706-4609-b8cf-09c9cc47cb97","name":"Delete Item From Cart (A)","originalRequest":{"method":"DELETE","header":[],"body":{"mode":"raw","raw":"{\n    \"session_id\": {session_id},\n    \"product_id\": {product_id},\n    \"quantity\": 5\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:1323/api/v1/auth/users/{user_uid}/cart/{session_id}/item/{item_id}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Date","value":"Fri, 07 Oct 2022 06:36:42 GMT"},{"key":"Content-Length","value":"51"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"message\": \"Item Deleted Successfully\"\n}"}],"_postman_id":"f0986cc1-d3c1-4921-a4d5-43465cad50ac"},{"name":"Add Item To Cart (A)","event":[{"listen":"test","script":{"id":"b7715174-39e1-4688-8b0a-8854f4666315","exec":["pm.test('status code should be 200', () => {","    pm.response.to.have.status(200);","});","","pm.test('response header Content-Type should be application/json', () => {","    pm.expect(pm.response.headers.get('Content-Type')).to.equals('application/json; charset=UTF-8');","});","","pm.test('response body should be an object', () => {","    const responseJson = pm.response.json();","    pm.expect(responseJson).to.be.an('object');","});","","pm.test('response body should have correct property and value', () => {","    const responseJson = pm.response.json();","    ","    pm.expect(responseJson).to.haveOwnProperty('code');","    pm.expect(responseJson).to.haveOwnProperty('message');","","    pm.expect(responseJson.code).to.equals(200);","    pm.expect(responseJson.message).to.equals('Item Added Successfully');","});"],"type":"text/javascript"}}],"id":"e481f747-4e8f-45a9-b6b5-919ba3b948b5","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{}},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{auth_token}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"session_id\": {session_id},\n    \"product_id\": {product_id},\n    \"quantity\": 4\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:1323/api/v1/auth/users/{user_uid}/cart/{session_id}/item","urlObject":{"path":["api","v1","auth","users","{user_uid}","cart","{session_id}","item"],"host":["http://localhost:1323"],"query":[],"variable":[]}},"response":[{"id":"2e110372-37c0-4637-9fbe-979a21502a66","name":"Add Item To Cart (A)","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"session_id\": {session_id},\n    \"product_id\": {product_id},\n    \"quantity\": 4\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:1323/api/v1/auth/users/{user_uid}/cart/{session_id}/item"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Date","value":"Fri, 07 Oct 2022 06:37:04 GMT"},{"key":"Content-Length","value":"49"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"message\": \"Item Added Successfully\"\n}"}],"_postman_id":"e481f747-4e8f-45a9-b6b5-919ba3b948b5"},{"name":"Create New Order (A)","event":[{"listen":"test","script":{"id":"b7715174-39e1-4688-8b0a-8854f4666315","exec":["pm.test('status code should be 200', () => {","    pm.response.to.have.status(200);","});","","pm.test('response header Content-Type should be application/json', () => {","    pm.expect(pm.response.headers.get('Content-Type')).to.equals('application/json; charset=UTF-8');","});","","pm.test('response body should be an object', () => {","    const responseJson = pm.response.json();","    pm.expect(responseJson).to.be.an('object');","});","","pm.test('response body should have correct property and value', () => {","    const responseJson = pm.response.json();","    ","    pm.expect(responseJson).to.haveOwnProperty('code');","    pm.expect(responseJson).to.haveOwnProperty('message');","","    pm.expect(responseJson.code).to.equals(200);","    pm.expect(responseJson.message).to.equals('Order Created Successfully');","});"],"type":"text/javascript"}}],"id":"b615d6df-f1e6-431c-b27b-7de2a505d019","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{}},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{auth_token}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"address_id\": {address_id},\n    \"user_payment_id\": {payment_id}\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:1323/api/v1/auth/users/{user_uid}/order/create/{session_id}","urlObject":{"path":["api","v1","auth","users","{user_uid}","order","create","{session_id}"],"host":["http://localhost:1323"],"query":[],"variable":[]}},"response":[{"id":"30665228-21ae-466c-a0c8-ffc46e4f7ad9","name":"Create New Order (A)","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"address_id\": {address_id},\n    \"user_payment_id\": {payment_id}\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:1323/api/v1/auth/users/{user_uid}/order/create/{session_id}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Date","value":"Fri, 07 Oct 2022 06:37:22 GMT"},{"key":"Content-Length","value":"52"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"message\": \"Order Created Successfully\"\n}"}],"_postman_id":"b615d6df-f1e6-431c-b27b-7de2a505d019"},{"name":"Get List of Orders (A)","event":[{"listen":"test","script":{"id":"b7715174-39e1-4688-8b0a-8854f4666315","exec":["pm.test('status code should be 200', () => {","    pm.response.to.have.status(200);","});","","pm.test('response header Content-Type should be application/json', () => {","    pm.expect(pm.response.headers.get('Content-Type')).to.equals('application/json; charset=UTF-8');","});","","pm.test('response body should be an object', () => {","    const responseJson = pm.response.json();","    pm.expect(responseJson).to.be.an('object');","});","","pm.test('response body should have correct property and value', () => {","    const responseJson = pm.response.json();","    ","    pm.expect(responseJson).to.haveOwnProperty('code');","    pm.expect(responseJson).to.haveOwnProperty('message');","    pm.expect(responseJson).to.haveOwnProperty('data');","","    pm.expect(responseJson.code).to.equals(200);","    pm.expect(responseJson.message).to.equals('Orders Found');","    pm.expect(responseJson.data).to.be.an('array');","","    const { data } = responseJson","    pm.collectionVariables.set(\"orderID\", data[0].id)","});",""],"type":"text/javascript"}}],"id":"ae783e8f-e7eb-4f97-929d-3a9135e57bc0","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{}},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{auth_token}"}]},"isInherited":false},"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:1323/api/v1/auth/users/{user_uid}/order","urlObject":{"path":["api","v1","auth","users","{user_uid}","order"],"host":["http://localhost:1323"],"query":[],"variable":[]}},"response":[{"id":"c99e6d5a-3c1d-4e21-9fcc-d52b4f853863","name":"Get List of Orders (A)","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:1323/api/v1/auth/users/{user_uid}/order"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Date","value":"Fri, 07 Oct 2022 06:37:38 GMT"},{"key":"Content-Length","value":"256"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"message\": \"Orders Found\",\n    \"data\": [\n        {\n            \"id\": 1,\n            \"user_uid\": \"da1c309a-8e80-40bb-966c-2534106b6997\",\n            \"address_id\": 2,\n            \"payment_id\": 1,\n            \"total\": 140000,\n            \"status\": \"PAYMENT\",\n            \"created_at\": \"2022-10-07T06:37:22.256824Z\",\n            \"updated_at\": \"2022-10-07T06:37:22.256824Z\"\n        }\n    ]\n}"}],"_postman_id":"ae783e8f-e7eb-4f97-929d-3a9135e57bc0"},{"name":"Get Order By ID (A)","event":[{"listen":"test","script":{"id":"b7715174-39e1-4688-8b0a-8854f4666315","exec":["pm.test('status code should be 200', () => {","    pm.response.to.have.status(200);","});","","pm.test('response header Content-Type should be application/json', () => {","    pm.expect(pm.response.headers.get('Content-Type')).to.equals('application/json; charset=UTF-8');","});","","pm.test('response body should be an object', () => {","    const responseJson = pm.response.json();","    pm.expect(responseJson).to.be.an('object');","});","","pm.test('response body should have correct property and value', () => {","    const responseJson = pm.response.json();","    ","    pm.expect(responseJson).to.haveOwnProperty('code');","    pm.expect(responseJson).to.haveOwnProperty('message');","    pm.expect(responseJson).to.haveOwnProperty('data');","","    pm.expect(responseJson.code).to.equals(200);","    pm.expect(responseJson.message).to.equals('Orders Found');","    pm.expect(responseJson.data).to.be.an('object');","","    const { data } = responseJson","    pm.collectionVariables.set('orderID', data.id)","    pm.collectionVariables.set('orderPaymentID', data.payment_details.id)","});",""],"type":"text/javascript"}}],"id":"5f179a66-9481-4427-8751-bec18807f259","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{}},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{auth_token}"}]},"isInherited":false},"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:1323/api/v1/auth/users/{user_uid}/order/{order_id}","urlObject":{"path":["api","v1","auth","users","{user_uid}","order","{order_id}"],"host":["http://localhost:1323"],"query":[],"variable":[]}},"response":[{"id":"aa0c288e-d28d-44c4-addd-c52e3fff8827","name":"Get Order By ID (A)","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:1323/api/v1/auth/users/{user_uid}/order/{order_id}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Date","value":"Fri, 07 Oct 2022 06:38:08 GMT"},{"key":"Content-Length","value":"1336"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"message\": \"Orders Found\",\n    \"data\": {\n        \"id\": 1,\n        \"user_uid\": \"da1c309a-8e80-40bb-966c-2534106b6997\",\n        \"address_id\": 2,\n        \"payment_id\": 1,\n        \"total\": 140000,\n        \"status\": \"PAYMENT\",\n        \"created_at\": \"2022-10-07T06:37:22.256824Z\",\n        \"updated_at\": \"2022-10-07T06:37:22.256824Z\",\n        \"user_details\": {\n            \"fullname\": \"Prasetya Ikra Priyadi\",\n            \"email\": \"prasetya@gmail.com\",\n            \"phone\": 6285700600850\n        },\n        \"shipment_address\": {\n            \"id\": 2,\n            \"address_label\": \"Kost\",\n            \"address_line\": \"Komplek Permata Buah Batu D55\",\n            \"city\": \"Bandung\",\n            \"province\": \"Jawa Barat\",\n            \"postal_code\": 40287,\n            \"country\": \"Indonesia\",\n            \"region_id\": \"JAWA_01\"\n        },\n        \"payment_details\": {\n            \"id\": 1,\n            \"user_payment_id\": 2,\n            \"ammount\": 140000,\n            \"receipt_url\": \"\",\n            \"payment_type\": \"Bank Virtual Account\",\n            \"provider\": \"Bank Sejahtera\",\n            \"account_number\": 88888444447,\n            \"exp\": \"2022-10-07T06:32:14.025Z\"\n        },\n        \"OrderItems\": [\n            {\n                \"id\": 1,\n                \"order_id\": 1,\n                \"product_id\": 1,\n                \"quantity\": 4,\n                \"updated_at\": \"2022-10-07T06:37:22.262583Z\",\n                \"products\": {\n                    \"id\": 1,\n                    \"sku\": \"PK-M-GUR-003\",\n                    \"name\": \"Pakan Gurame Medium Size\",\n                    \"description\": \"Pakan untuk gurame ukuran Medium\",\n                    \"image_url\": \"https://drive.google.com/uc?export=view&id=19LuYVTWGp6RQ9trAYo47lHyla92bvWaQ\",\n                    \"price\": 35000,\n                    \"category_id\": 2,\n                    \"quantity\": 30,\n                    \"created_at\": \"2022-10-07T06:32:33.011909Z\",\n                    \"updated_at\": \"2022-10-07T06:34:00.312771Z\",\n                    \"deleted_at\": \"0001-01-01T00:00:00Z\",\n                    \"ProductCategory\": {\n                        \"id\": 0,\n                        \"name\": \"\",\n                        \"created_at\": \"0001-01-01T00:00:00Z\"\n                    }\n                }\n            }\n        ]\n    }\n}"}],"_postman_id":"5f179a66-9481-4427-8751-bec18807f259"},{"name":"Upload Receipt (A)","event":[{"listen":"test","script":{"id":"b7715174-39e1-4688-8b0a-8854f4666315","exec":["pm.test('status code should be 200', () => {","    pm.response.to.have.status(200);","});","","pm.test('response header Content-Type should be application/json', () => {","    pm.expect(pm.response.headers.get('Content-Type')).to.equals('application/json; charset=UTF-8');","});","","pm.test('response body should be an object', () => {","    const responseJson = pm.response.json();","    pm.expect(responseJson).to.be.an('object');","});","","pm.test('response body should have correct property and value', () => {","    const responseJson = pm.response.json();","    ","    pm.expect(responseJson).to.haveOwnProperty('code');","    pm.expect(responseJson).to.haveOwnProperty('message');","","    pm.expect(responseJson.code).to.equals(200);","    pm.expect(responseJson.message).to.equals('Receipt Uploaded');","});",""],"type":"text/javascript"}}],"id":"9c99d294-3890-4229-97ce-f5e5b6471062","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{}},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{auth_token}"}]},"isInherited":false},"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"receipt_url\": \"www.linkedin.com\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:1323/api/v1/auth/users/{user_uid}/order/{order_id}/payment/{order_payment_id}","urlObject":{"path":["api","v1","auth","users","{user_uid}","order","{order_id}","payment","{order_payment_id}"],"host":["http://localhost:1323"],"query":[],"variable":[]}},"response":[{"id":"63c35b79-fcb9-40cf-8780-7af52b1e2777","name":"Upload Receipt (A)","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"receipt_url\": \"www.linkedin.com\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:1323/api/v1/auth/users/{user_uid}/order/{order_id}/payment/{order_payment_id}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=UTF-8"},{"key":"Date","value":"Fri, 07 Oct 2022 06:38:23 GMT"},{"key":"Content-Length","value":"42"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"message\": \"Receipt Uploaded\"\n}"}],"_postman_id":"9c99d294-3890-4229-97ce-f5e5b6471062"}],"id":"9e14eefa-3c82-4445-bf01-2a96026c7de2","_postman_id":"9e14eefa-3c82-4445-bf01-2a96026c7de2","description":""}],"event":[{"listen":"prerequest","script":{"id":"8a167992-086b-4a30-84f7-06aa5d90950e","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"dff9fdf7-d23f-4420-9d71-66ef6bd4a78b","type":"text/javascript","exec":[""]}}],"variable":[{"key":"baseURL","value":"http://localhost:1323","type":"string"},{"key":"adminToken","value":"{admin_token}","type":"string"},{"key":"adminUID","value":"{admin_uid}","type":"string"},{"key":"adminUsername","value":"aquadev","type":"string"},{"key":"adminFullname","value":"setya ikra","type":"string"},{"key":"adminEmail","value":"setya@gmail.com","type":"string"},{"key":"adminPassword","value":"aquadev6789","type":"string"},{"key":"authToken","value":"{auth_token}","type":"string"},{"key":"userUID","value":"{user_uid}","type":"string"},{"key":"username","value":"prasetyaikrap","type":"string"},{"key":"userPassword","value":"aquadev12345","type":"string"},{"key":"userFullname","value":"Prasetya Priyadi","type":"string"},{"key":"userEmail","value":"prasetya@gmail.com","type":"string"},{"key":"userGender","value":"Pria","type":"string"},{"key":"userPhone","value":"6285700600850","type":"string"},{"key":"userAddressID","value":"{address_id}","type":"string"},{"key":"userAddressLabel","value":"Rumah","type":"string"},{"key":"userAddressLine","value":"Jl. Batununggal Indah No. 50","type":"string"},{"key":"userAddressCity","value":"Bandung","type":"string"},{"key":"userAddressProvince","value":"Jawa Barat","type":"string"},{"key":"userAddressPostalCode","value":"40287","type":"string"},{"key":"userAddressCountry","value":"Indonesia","type":"string"},{"key":"userAddressRegionID","value":"JAWA_01","type":"string"},{"key":"userAddressIsDefault","value":"false","type":"string"},{"key":"productID","value":"{product_id}","type":"string"},{"key":"productSKU","value":"PK-L-NLA-001","type":"string"},{"key":"productName","value":"Pakan Nila Large Size","type":"string"},{"key":"productDescription","value":"Pakan Nila dengan grade A ukuran Large","type":"string"},{"key":"productPrice","value":"45000","type":"string"},{"key":"productQuantity","value":"20","type":"string"},{"key":"productCategory","value":"Pakan Ternak","type":"string"},{"key":"productImageUrl","value":"https://drive.google.com/uc?export=view&id=19LuYVTWGp6RQ9trAYo47lHyla92bvWaQ","type":"string"},{"key":"cartSessionID","value":"{session_id}","type":"string"},{"key":"itemID","value":"{item_id}","type":"string"},{"key":"userPaymentID","value":"{payment_id}","type":"string"},{"key":"userPaymentType","value":"Bank Virtual Account","type":"string"},{"key":"userPaymentProvider","value":"Bank Bahagia","type":"string"},{"key":"userPaymentExp","value":"1759752098","type":"string"},{"key":"userPaymentAN","value":"1112222333334","type":"string"},{"key":"orderID","value":"{order_id}","type":"string"},{"key":"orderPaymentID","value":"{order_payment_id}","type":"string"}]}