«
body: { "shopAvatar": "string", "category"(): 0, "status"(): "string", "dealer"(): "string", "discountType"(): "string", "discountRate"(): 0, "customerDiscountRate"(): 0, "dealerCommissionRate"(): 0, "marketingPartnerCommissionRate"(): 0, "note": "string" }
| id |
|---|
| ID01 |
| X-Tenant | m26 |
|---|
{
"discountType": "ALL_PRODUCT",
"discountRate": 15,
"customerDiscountRate": 10,
"dealerCommissionRate": 10,
"marketingPartnerCommissionRate": 10,
"note": "thích thì note"
}| X-Tenant | m26 |
|---|
{
"discountType": "ALL_PRODUCT",
"discountRate": 15,
"customerDiscountRate": 10,
"dealerCommissionRate": 10,
"marketingPartnerCommissionRate": 10,
"note": "thích thì note"
}| account | permissionGroup | permissionGroupName | permission |
|---|---|---|---|
| supplier | supplier_group | supplier_group | trừ quyền supplier:update_supplier |
| X-Tenant | m26 |
|---|
{
"discountType": "ALL_PRODUCT",
"discountRate": 15,
"customerDiscountRate": 10,
"dealerCommissionRate": 10,
"marketingPartnerCommissionRate": 10,
"note": "thích thì note"
}{
"discountType": "ALL_PRODUCT",
"discountRate": 15,
"customerDiscountRate": 10,
"dealerCommissionRate": 10,
"marketingPartnerCommissionRate": 10,
"note": "thích thì note"
}{
"title": "shop_not_found",
"detail": "Shop is not found with tenant `{}`"
}| X-Tenant | <tenant> |
|---|
{
"discountType": "ALL_PRODUCT",
"discountRate": 15,
"customerDiscountRate": 10,
"dealerCommissionRate": 10,
"marketingPartnerCommissionRate": 10,
"note": "thích thì note"
}{
"title": "shop_not_found"
}| tenant | |
|---|---|
| m2 | |
| null |
| X-Tenant | m26 |
|---|
{
"discountType": "ALL_PRODUCT",
"discountRate": 15,
"customerDiscountRate": 10,
"dealerCommissionRate": 10,
"marketingPartnerCommissionRate": 10,
"note": "thích thì note"
}{
"title": "shop_not_found"
}| categoryId | name |
|---|---|
| 01 | Giày |
| 02 | Vật liệu xây dựng |
| id | category | status | dealer | discountRate | customerDiscountRate | dealerCommissionRate | marketingPartnerCommissionRate | note |
|---|---|---|---|---|---|---|---|---|
| ID01 | Vật liệu xây dựng | <status> | admin | 15 | 60 | 15 | 15 | <note> |
| X-Tenant | m26 |
|---|
{
<bodyJson>
}{
<responseJson>
}[
{
"change" : {"valueChange": {<logResponseJson>}}
}
]| status | note | bodyJson | responseJson | logResponseJson | |
|---|---|---|---|---|---|
| thích thì note | "note": "không thích cũng note" | "note": "không thích cũng note" | "changedValues": [{"key": "note","left": "thích thì note","right": "không thích cũng note"}] | ||
| "note": "không thích cũng note" | "note": "không thích cũng note" | "changedValues": [{"key": "note","left": "","right": "không thích cũng note"}] | |||
| thích thì note | "note": "" | "note": "" | "changedValues": [{ "key": "note", "left": "thích thì note", "right": "" }] | ||
| "category": ${01} | "category": ${01} | "changedValues": [{ "key": "category"}] | |||
| "dealer": "lanhuong" | "dealer": "lanhuong" | "changedValues": [{"key": "dealer","left": "admin","right": "lanhuong"}] | |||
| "discountRate": 20 | "discountRate": 20.0 | "changedValues": [ {"key": "discountRate","left": 15,"right": 20.0}] | |||
| "discountRate": 0 | "discountRate": 0.0 | "changedValues": [ {"key": "discountRate","left": 15,"right": 0.0}] | |||
| "discountRate": 20.5 | "discountRate": 20.5 | "changedValues": [ {"key": "discountRate","left": 15,"right": 20.5}] | |||
| "customerDiscountRate": 65 | "customerDiscountRate": 65.0, "otherCommissionRate": 5.0 | "changedValues": [{"key": "customerDiscountRate","left": 60,"right": 65.0}, {"key": "otherCommissionRate", "left": 10, "right": 5.0}] | |||
| "customerDiscountRate": 65.5 | "customerDiscountRate": 65.5, "otherCommissionRate": 4.5 | "changedValues": [{"key": "customerDiscountRate","left": 60,"right": 65.5}, {"key": "otherCommissionRate", "left": 10, "right": 4.5}] | |||
| "customerDiscountRate": 0 | "customerDiscountRate": 0.0, "otherCommissionRate": 70.0 | "changedValues": [{"key": "customerDiscountRate","left": 60,"right": 0.0}, {"key": "otherCommissionRate", "left": 10, "right": 70.0}] | |||
| "dealerCommissionRate": 20 | "dealerCommissionRate": 20.0, "otherCommissionRate": 5.0 | "changedValues": [{ "key": "dealerCommissionRate", "left": 15, "right": 20.0 }, {"key": "otherCommissionRate","left": 10,"right": 5.0 }] | |||
| "dealerCommissionRate": 20.5 | "dealerCommissionRate": 20.5, "otherCommissionRate": 4.5 | "changedValues": [{ "key": "dealerCommissionRate", "left": 15, "right": 20.5 }, {"key": "otherCommissionRate","left": 10,"right": 4.5 }] | |||
| "dealerCommissionRate": 0 | "dealerCommissionRate": 0.0, "otherCommissionRate": 25.0 | "changedValues": [{ "key": "dealerCommissionRate", "left": 15, "right": 0.0 }, {"key": "otherCommissionRate","left": 10,"right": 25.0 }] | |||
| "marketingPartnerCommissionRate": 20 | "marketingPartnerCommissionRate": 20.0, "otherCommissionRate": 5.0 | "changedValues": [{"key": "marketingPartnerCommissionRate", "left": 15,"right": 20.0},{"key": "otherCommissionRate", "left": 10, "right": 5.0 }] | |||
| "marketingPartnerCommissionRate": 20.5 | "marketingPartnerCommissionRate": 20.5, "otherCommissionRate": 4.5 | "changedValues": [{"key": "marketingPartnerCommissionRate", "left": 15,"right": 20.5},{"key": "otherCommissionRate", "left": 10, "right": 4.5 }] | |||
| "marketingPartnerCommissionRate": 0 | "marketingPartnerCommissionRate": 0.0, "otherCommissionRate": 25.0 | "changedValues": [{"key": "marketingPartnerCommissionRate", "left": 15,"right": 0.0},{"key": "otherCommissionRate", "left": 10, "right": 25.0 }] | |||
| INACTIVE | "status": "ACTIVE" | "shopStatus": "ACTIVE" | "changedValues": [{"key": "shopStatus","left": "INACTIVE","right": "ACTIVE"}] | ||
| ACTIVE | "status": "INACTIVE" | "shopStatus": "INACTIVE" | "changedValues": [{"key": "shopStatus","left": "ACTIVE","right": "INACTIVE"}] |
| id | status | discountType |
|---|---|---|
| ID01 | ACTIVE | <typeBefore> |
| X-Tenant | m26 |
|---|
{
"discountType": "<typeAfter>"
}{
"discountType": "<typeAfter>"
}[
{
"change" : {"valueChange": { "changedValues": [{"key": "discountType", "left": "<typeBefore>","right": "<typeAfter>" }]}}
}
]| typeBefore | typeAfter | |
|---|---|---|
| ALL_PRODUCT | SOME_PRODUCT | |
| SOME_PRODUCT | ALL_PRODUCT |
| X-Tenant | m26 |
|---|
{
"category": ${001}
}{
"title": "category_invalid"
}| X-Tenant | m26 |
|---|
{
"dealer": "dealerNotexist"
}{
"title": "dealer_invalid"
}| X-Tenant | m26 |
|---|
{
"discountType": "abc"
}{
"title": "discount_type_invalid"
}| X-Tenant | m26 |
|---|
{
"discountRate": <discountRate>
}{
"title": <title>
}| discountRate | title | |
|---|---|---|
| a | "Bad Request" | |
| -1 | "discount_rate_invalid" | |
| 101 | "discount_rate_invalid" |
| X-Tenant | m26 |
|---|
{
"customerDiscountRate": <customerDiscountRate>
}{
"title": <title>
}| customerDiscountRate | title | |
|---|---|---|
| 101 | "discount_value_invalid" | |
| a | "Bad Request" | |
| -1 | "discount_value_invalid" |
| X-Tenant | m26 |
|---|
{
"dealerCommissionRate": <dealerCommissionRate>
}{
"title": <title>
}| dealerCommissionRate | title | |
|---|---|---|
| a | "Bad Request" | |
| -1 | "discount_value_invalid" | |
| 101 | "discount_value_invalid" |
| X-Tenant | m26 |
|---|
{
"marketingPartnerCommissionRate": <marketingPartnerCommissionRate>
}{
"title": <title>
}| marketingPartnerCommissionRate | title | |
|---|---|---|
| a | "Bad Request" | |
| -1 | "discount_value_invalid" | |
| 101 | "discount_value_invalid" |