Representa a un ítem solicitado en una Orden.
Se trata de un snapshot de un BranchGood al momento de solicitar la Orden.
{
"id": 1,
"quantity": 1,
"name": "Chocolate caliente",
"base_price_e2": 450000,
"total_price_e2": 450000,
"provider_fee_e2": 0,
"short_details": "n/a",
"details": "Asdfghjklñ",
"notes": null,
"picture_urls": [
"https://ondemand-api.manzanares.com.ve/storage/companies/46/good/good_2_0_1550073018.jpeg"
],
"good_stock": null,
"order_id": 1,
"good_id": 2,
"client_id": 1
}
Método | URI | Cabeceras |
---|---|---|
POST | /companies/{companyId}/orders/{orderId}/ordered-goods |
Authorization |
{
"good_id": "required|integer|exists:goods,id",
"quantity": "required|integer|min:1",
"notes": "string|max:255",
"properties": [
{
"property_id": "required|integer",
"value": "required|string"
}
]
}
Display a listing of the resource.
Método | URI | Cabeceras |
---|---|---|
GET | /companies/{companyId}/orders/{orderId}/ordered-goods |
Authorization |
Método | URI | Cabeceras |
---|---|---|
DELETE | /companies/{companyId}/orders/{orderId}/ordered-goods/{orderedGoodId} |
Authorization |
branch
BelongsTo BranchbranchGood
HasOne BranchGoodclient
BelongsTo Clientcompany
BelongsTo Companygood
BelongsTo Goodorder
BelongsTo OrderorderProviderService
HasOne OrderProviderServicepromo
BelongsTo CouponproofOfDelivery
HasOne ProofOfDeliveryproperties
HasMany OrderedGoodPropertyrating
HasOne GoodRating