Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UNITY-8613 oder units #1323

Merged
merged 36 commits into from
Mar 21, 2024
Merged
Show file tree
Hide file tree
Changes from 32 commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
91e553d
UNITY-8613 oder units
Sep 28, 2023
c94fb28
Update apps/data-types.md
mhoehn Oct 26, 2023
c6842a2
Update apps/data-types.md
mhoehn Oct 26, 2023
5b2f6a6
Update apps/data-types.md
mhoehn Oct 26, 2023
6911e87
Update _raml/apps/products/examples/patch_product_productid_request.json
mhoehn Oct 26, 2023
2c85506
Update apps/data-types.md
mhoehn Oct 26, 2023
118d636
Update apps/data-types.md
mhoehn Oct 26, 2023
58ac396
Update _raml/apps/products/examples/post_product_find_response.json
mhoehn Oct 26, 2023
d797765
Update _raml/apps/products/examples/put_product_productid_crosssellin…
mhoehn Oct 26, 2023
b1dfd23
Update _raml/apps/products/examples/put_product_productid_crosssellin…
mhoehn Oct 26, 2023
2324ddf
Update _raml/apps/search/examples/post_search_products_response.json
mhoehn Oct 26, 2023
76a2749
Update apps/data-types.md
mhoehn Oct 26, 2023
86885da
Update apps/data-types.md
mhoehn Oct 26, 2023
2fa7f3a
Update apps/data-types.md
mhoehn Oct 26, 2023
ac13f84
Update _raml/apps/products/examples/get_product_productid_crosssellin…
mhoehn Oct 26, 2023
43e95c3
Update _raml/apps/products/examples/get_product_productid_response.json
mhoehn Oct 26, 2023
c0f0999
Update _raml/apps/products/examples/get_product_response.json
mhoehn Oct 26, 2023
b4a8392
Update _raml/apps/products/examples/get_product_response.json
mhoehn Oct 26, 2023
854f91d
Update _raml/apps/products/examples/get_product_response.json
mhoehn Oct 26, 2023
cddc5ea
Update _raml/apps/products/examples/get_product_updated_property_resp…
mhoehn Oct 26, 2023
f000cda
Update _raml/apps/products/examples/patch_product_productid_crosssell…
mhoehn Oct 26, 2023
a7d5ed6
Update _raml/apps/products/examples/patch_product_productid_crosssell…
mhoehn Oct 26, 2023
3ddcbfa
UNITY-8613 add missing entries
Oct 26, 2023
66a344c
Update _raml/apps/products/examples/get_product_productid_crosssellin…
mhoehn Oct 26, 2023
f6efc9a
Update _raml/apps/products/examples/post_product_find_response.json
mhoehn Oct 26, 2023
bdfe1d2
Update _raml/apps/products/examples/post_product_find_response.json
mhoehn Oct 26, 2023
e32215c
Update apps/data-types.md
mhoehn Oct 26, 2023
51e6139
Update apps/data-types.md
mhoehn Oct 26, 2023
7e3ee65
UNITY-8613 add missing entries
mhoehn-pr Oct 26, 2023
90059da
Merge branch 'master' into story/UNITY-8613-order-units
dkluever22 Oct 26, 2023
7d6a911
Update apps/data-types.md
mhoehn Dec 14, 2023
a64b1f8
Update apps/data-types.md
mhoehn Dec 14, 2023
61e2ebf
Update apps/data-types.md
mhoehn Feb 22, 2024
527e881
Update apps/data-types.md
mhoehn Feb 22, 2024
7329236
Merge branch 'master' into story/UNITY-8613-order-units
dkluever22 Mar 18, 2024
1b096e6
Merge branch 'master' into story/UNITY-8613-order-units
dkluever22 Mar 21, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,10 @@
"refAmount": 1,
"refUnit": "piece",
"refContentAmount": 1,
"priceQuantity": 1,
"orderUnit": "piece(s)",
"minOrder": 1,
"intervalOrder": 1,
"productCode": null,
"manufacturer": "Dr. Boom",
"upc": null,
Expand Down Expand Up @@ -364,6 +368,10 @@
"refAmount": 1,
"refUnit": "piece",
"refContentAmount": 1,
"priceQuantity": 1,
"orderUnit": "piece(s)",
"minOrder": 1,
"intervalOrder": 1,
"productCode": null,
"manufacturer": "Bass by Dr.Boom",
"upc": null,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,10 @@
"refAmount": 1,
"refUnit": "piece",
"refContentAmount": 1,
"priceQuantity": 1,
"orderUnit": "piece(s)",
"minOrder": 1,
"intervalOrder": 1,
"productCode": null,
"manufacturer": "Bass by Dr.Boom",
"upc": null,
Expand Down
12 changes: 12 additions & 0 deletions _raml/apps/products/examples/get_product_response.json
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,10 @@
"refAmount": 1,
"refUnit": "piece",
"refContentAmount": 1,
"priceQuantity": 1,
"orderUnit": "piece(s)",
"minOrder": 1,
"intervalOrder": 1,
"productCode": null,
"manufacturer": "Dr. Boom",
"upc": null,
Expand Down Expand Up @@ -261,6 +265,10 @@
"refAmount": 1,
"refUnit": "piece",
"refContentAmount": 1,
"priceQuantity": 1,
"orderUnit": "piece(s)",
"minOrder": 1,
"intervalOrder": 1,
"productCode": null,
"manufacturer": "Bass by Dr.Boom",
"upc": null,
Expand Down Expand Up @@ -530,6 +538,10 @@
"refAmount": 1,
"refUnit": "piece",
"refContentAmount": 1,
"priceQuantity": 1,
"orderUnit": "piece(s)",
"minOrder": 1,
"intervalOrder": 1,
"productCode": null,
"manufacturer": "Bass by Dr.Boom",
"upc": null,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,10 @@
"refAmount": 1,
"refUnit": "piece",
"refContentAmount": 1,
"priceQuantity": 1,
"orderUnit": "piece(s)",
"minOrder": 1,
"intervalOrder": 1,
"productCode": null,
"manufacturer": "Bass by Dr.Boom",
"upc": null,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,10 @@
"refAmount": 1,
"refUnit": "piece",
"refContentAmount": 1,
"priceQuantity": 1,
"orderUnit": "piece(s)",
"minOrder": 1,
"intervalOrder": 1,
"productCode": null,
"manufacturer": "Dr. Boom",
"upc": null,
Expand Down Expand Up @@ -295,6 +299,10 @@
"refAmount": 1,
"refUnit": "piece",
"refContentAmount": 1,
"priceQuantity": 1,
"orderUnit": "piece(s)",
"minOrder": 1,
"intervalOrder": 1,
"productCode": null,
"manufacturer": "Bass by Dr.Boom",
"upc": null,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,4 +129,9 @@
"op": "add",
"path": "/productCode",
"value": "Z-1080-BT-02"
},
{
"op": "add",
"path": "/orderUnitInfo",
"value": { "priceQuantity":1, "orderUnit":"piece(s)", "minOrder":1, "intervalOrder":1 }
}]
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,10 @@
"refAmount": 1,
"refUnit": "piece",
"refContentAmount": 1,
"priceQuantity": 1,
"orderUnit": "piece(s)",
"minOrder": 1,
"intervalOrder": 1,
"productCode": "Z-108-002",
"manufacturer": "Bass by Dr.Boom",
"upc": null,
Expand Down
12 changes: 12 additions & 0 deletions _raml/apps/products/examples/post_product_find_response.json
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,10 @@
"refAmount": 1,
"refUnit": "piece",
"refContentAmount": 1,
"priceQuantity": 1,
"orderUnit": "piece(s)",
"minOrder": 1,
"intervalOrder": 1,
"productCode": null,
"manufacturer": "Dr. Boom",
"upc": null,
Expand Down Expand Up @@ -249,6 +253,10 @@
"refAmount": 1,
"refUnit": "piece",
"refContentAmount": 1,
"priceQuantity": 1,
"orderUnit": "piece(s)",
"minOrder": 1,
"intervalOrder": 1,
"productCode": null,
"manufacturer": "Bass by Dr.Boom",
"upc": null,
Expand Down Expand Up @@ -454,6 +462,10 @@
"refAmount": 1,
"refUnit": "piece",
"refContentAmount": 1,
"priceQuantity": 1,
"orderUnit": "piece(s)",
"minOrder": 1,
"intervalOrder": 1,
"productCode": null,
"manufacturer": "Bass by Dr.Boom",
"upc": null,
Expand Down
4 changes: 4 additions & 0 deletions _raml/apps/products/examples/post_product_response.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,10 @@
"refAmount": 1,
"refUnit": "piece",
"refContentAmount": 1,
"priceQuantity": 1,
"orderUnit": "piece(s)",
"minOrder": 1,
"intervalOrder": 1,
"productCode": null,
"manufacturer": "Awesome Products Company",
"upc": null,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,10 @@
"refAmount": 1,
"refUnit": "piece",
"refContentAmount": 1,
"priceQuantity": 1,
"orderUnit": "piece(s)",
"minOrder": 1,
"intervalOrder": 1,
"productCode": null,
"manufacturer": "Dr. Boom",
"upc": null,
Expand Down Expand Up @@ -295,6 +299,10 @@
"refAmount": 1,
"refUnit": "piece",
"refContentAmount": 1,
"priceQuantity": 1,
"orderUnit": "piece(s)",
"minOrder": 1,
"intervalOrder": 1,
"productCode": null,
"manufacturer": "Bass by Dr.Boom",
"upc": null,
Expand Down
1 change: 1 addition & 0 deletions _raml/apps/products/products.raml
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ post:
- /productDataSheet<br>
- /shippingMethodsRestrictedTo<br>
- /productCode<br>
- /orderUnitInfo¹<br>

**¹** supports *add* only<br>
**²** value will not be replaced, but changed, i.e. if the stocklevel is 3 and you add 1, you will get 4; if you add -5, you will get -2.<br>
Expand Down
4 changes: 4 additions & 0 deletions _raml/apps/search/examples/post_search_products_response.json
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,10 @@
"refAmount": 1,
"refUnit": "piece",
"refContentAmount": 1,
"priceQuantity": 1,
"orderUnit": "piece(s)",
"minOrder": 1,
"intervalOrder": 1,
"productCode": null,
"manufacturer": "Dr. Boom",
"upc": null,
Expand Down
8 changes: 8 additions & 0 deletions apps/data-types.md
Original file line number Diff line number Diff line change
Expand Up @@ -640,6 +640,10 @@ This object is used for the attributes of basePrice, depositPrice, ecoParticipat
| refAmount | string | The product reference amount with respect to the product price (e.g. every 1 'piece' costs 10,00 €) |
| refUnit | string | The product reference unit. Can be *byte*, *kilobyte*, *megabyte*, *gigabyte*, *terrabyte*, *gram*, *kilogram*, *milligram*, *ounce*, *pound*, *tone*, *litre*, *cubicfoot*, *cubicinch*, *cubicmetre*, *cubicyard*, *fluidounce*, *gallon*, *millilitre*, *quart*, *metre*, *centimetre*, *foot*, *inch*, *kilometre*, *millimetre*, *yard*, *piece*, *bottle*, *box*, *can*, *capsule*, *carton*, *glass*, *kit*, *pack*, *packet*, *pair*, *roll*, *set*, *sheet*, *ticket*, *unit*, *second*, *day*, *hour*, *minute*, *month*, *night*, *week*, *year*, *squaremetre*, *squarecentimetre*, *squarefoot*, *squareinch*, *squaremillimetre*, *squareyard*. |
| refContentAmount | string | The number of reference units that is packaged within the product itself (e.g. the product contains 2 'piece(s)'). |
| priceQuantity | number | The product quantity that the list price refers to (e.g. 1 'box' containing 6 'piece(s) costs 60,00 €). |
| orderUnit | string | The product order unit. Can be one of *byte(s)*, *kilobyte(s)*, *megabyte(s)*, *gigabyte(s)*, *terabyte(s)*, *gram(s)*, *kilogram(s)*, *milligram(s)*, *ounce(s)*, *pound(s)*, *ton(s)*, *liter(s)*, *milliliter(s)*, *cubic foot*, *cubic feet*, *cubic inch(es)*, *cubic meter(s)*, *cubic yard(s)*, *fluid ounce(s)*, *gallon(s)*, *quart(s)*, *meter(s)*, *centimeter(s)*, *foot*, *feet*, *inch(es)*, *kilometer(s)*, *millimeter(s), *yard(s)*, *piece(s)*, *bottle(s)*, *box(es)*, *can(s)*, *capsule(s)*, *crate(s),* *glass(es)*, *kit(s)*, *pack(s)*, *package(s)*, *pair(s)*, *roll(s)*, *set(s)*, *sheet(s)*, *ticket(s)*, *unit(s)*, *second(s)*, *minute(s)*, *hour(s)*, *day(s)*, *night(s)*, *week(s)*, *month(s)*, *year(s)*, *square meter(s)*, *square centimeter(s)*, *square foot*, *square feet*, *square inch(es)*, *square millimeter(s)* or *square yard(s)*. The localised name of the unit is displayed. |
| minOrder | number | The minimum order amount for the product. |
| intervalOrder | number | The increment by which the order amount for the product can be adjusted (e.g. 1.5 m). |
| productCode | string | The product code (e.g. EAN, UPC, ASIN and ISBN). |

## product (create request)
Expand Down Expand Up @@ -770,6 +774,10 @@ This object is used for the attributes of basePrice, depositPrice, ecoParticipat
| refAmount | string | The product reference amount with respect to the product price (e.g. every 1 'piece' costs 10,00 €). |
| refUnit | string | The product reference unit. Can be *byte*, *kilobyte*, *megabyte*, *gigabyte*, *terrabyte*, *gram*, *kilogram*, *milligram*, *ounce*, *pound*, *tone*, *litre*, *cubicfoot*, *cubicinch*, *cubicmetre*, *cubicyard*, *fluidounce*, *gallon*, *millilitre*, *quart*, *metre*, *centimetre*, *foot*, *inch*, *kilometre*, *millimetre*, *yard*, *piece*, *bottle*, *box*, *can*, *capsule*, *carton*, *glass*, *kit*, *pack*, *packet*, *pair*, *roll*, *set*, *sheet*, *ticket*, *unit*, *second*, *day*, *hour*, *minute*, *month*, *night*, *week*, *year*, *squaremetre*, *squarecentimetre*, *squarefoot*, *squareinch*, *squaremillimetre*, *squareyard*. |
| refContentAmount | string | The number of reference units that is packaged within the product itself (e.g. the product contains 2 'piece(s)'). |
| priceQuantity | number | The product quantity that the list price refers to (e.g. 1 'box' containing 6 'piece(s) costs 60,00 €). |
| orderUnit | string | The product order unit. Can be one of *byte(s)*, *kilobyte(s)*, *megabyte(s)*, *gigabyte(s)*, *terabyte(s)*, *gram(s)*, *kilogram(s)*, *milligram(s)*, *ounce(s)*, *pound(s)*, *ton(s)*, *liter(s)*, *milliliter(s)*, *cubic foot*, *cubic feet*, *cubic inch(es)*, *cubic meter(s)*, *cubic yard(s)*, *fluid ounce(s)*, *gallon(s)*, *quart(s)*, *meter(s)*, *centimeter(s)*, *foot*, *feet*, *inch(es)*, *kilometer(s)*, *millimeter(s), *yard(s)*, *piece(s)*, *bottle(s)*, *box(es)*, *can(s)*, *capsule(s)*, *crate(s),* *glass(es)*, *kit(s)*, *pack(s)*, *package(s)*, *pair(s)*, *roll(s)*, *set(s)*, *sheet(s)*, *ticket(s)*, *unit(s)*, *second(s)*, *minute(s)*, *hour(s)*, *day(s)*, *night(s)*, *week(s)*, *month(s)*, *year(s)*, *square meter(s)*, *square centimeter(s)*, *square foot*, *square feet*, *square inch(es)*, *square millimeter(s)* or *square yard(s)*. The localised name of the unit is displayed. |
| minOrder | number | The minimum order amount for the product. |
| intervalOrder | number | The increment by which the order amount for the product can be adjusted (e.g. 1.5 m). |
| productCode | string | The product code (e.g. EAN, UPC, ASIN and ISBN). |
| query | string | The search query. |
| fallbackQuery | string | The fallback used if the original query did not produce any results. |
Expand Down