Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion .spec-sha256
Original file line number Diff line number Diff line change
@@ -1 +1 @@
8c6a3b8bfecad67daa21d1361057c24f2e063b17c13afdcc93e7f71806011003
41311cb64247613fcc1634a63a1804e344c71873d665fc58af33e053a5f919f1
60 changes: 52 additions & 8 deletions src/controlresell/generated/api/items/create_item.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,19 @@ def sync_detailed(
publishing it: publish it with `POST /items/{id}/publish`. Only `name` is required. The amounts are
`{amount, currency}` in the item's currency (EUR for a new item; another currency is refused with
`422 currency_mismatch`). `photoIds` are files already in the seller's library: another seller's, or
an unknown one, is `404 photo_not_found`. A label the seller does not have yet is created. Requires
`items:write` and an `Idempotency-Key`.
an unknown one, is `404 photo_not_found`. A label the seller does not have yet is created. The
fields a marketplace asks for are written with the item: `packageSizeId`, `materialIds`,
`measurementLength` and `measurementWidth` (centimeters), `enumValues` (the category's enumerated
fields, `{enumKey, enumValue}`, one entry per picked value), `attributes` (its free-text fields,
`{fieldKey, value}`, one per key) and `customFields` (the seller's own fields, `{fieldId, value}`);
each list replaces the item's whole list. A place (`purchasePlaceId`, `sellingPlaceId`) or a custom
field of another seller, or an unknown one, is `404 place_not_found` or `404 field_not_found`.
`categoryId`, `sizeId` and `state` are ids from 1 (`0` is a 400, `null` clears them). Keys and
enumerated values are trimmed and counted in characters (UTF-16 units), 1 to 100 for a key and 1 to
255 for a value; two entries that differ only by case or accents (as the database compares them) are
a 400. At most 100 entries per list, and 65,535 bytes (UTF-8) per free-text value. Read back,
`enumValues`, `attributes` and `customFields` are sorted by key (then value, or field id), as plain
strings (upper case before lower case). Requires `items:write` and an `Idempotency-Key`.

Args:
idempotency_key (str):
Expand Down Expand Up @@ -156,8 +167,19 @@ def sync(
publishing it: publish it with `POST /items/{id}/publish`. Only `name` is required. The amounts are
`{amount, currency}` in the item's currency (EUR for a new item; another currency is refused with
`422 currency_mismatch`). `photoIds` are files already in the seller's library: another seller's, or
an unknown one, is `404 photo_not_found`. A label the seller does not have yet is created. Requires
`items:write` and an `Idempotency-Key`.
an unknown one, is `404 photo_not_found`. A label the seller does not have yet is created. The
fields a marketplace asks for are written with the item: `packageSizeId`, `materialIds`,
`measurementLength` and `measurementWidth` (centimeters), `enumValues` (the category's enumerated
fields, `{enumKey, enumValue}`, one entry per picked value), `attributes` (its free-text fields,
`{fieldKey, value}`, one per key) and `customFields` (the seller's own fields, `{fieldId, value}`);
each list replaces the item's whole list. A place (`purchasePlaceId`, `sellingPlaceId`) or a custom
field of another seller, or an unknown one, is `404 place_not_found` or `404 field_not_found`.
`categoryId`, `sizeId` and `state` are ids from 1 (`0` is a 400, `null` clears them). Keys and
enumerated values are trimmed and counted in characters (UTF-16 units), 1 to 100 for a key and 1 to
255 for a value; two entries that differ only by case or accents (as the database compares them) are
a 400. At most 100 entries per list, and 65,535 bytes (UTF-8) per free-text value. Read back,
`enumValues`, `attributes` and `customFields` are sorted by key (then value, or field id), as plain
strings (upper case before lower case). Requires `items:write` and an `Idempotency-Key`.

Args:
idempotency_key (str):
Expand Down Expand Up @@ -190,8 +212,19 @@ async def asyncio_detailed(
publishing it: publish it with `POST /items/{id}/publish`. Only `name` is required. The amounts are
`{amount, currency}` in the item's currency (EUR for a new item; another currency is refused with
`422 currency_mismatch`). `photoIds` are files already in the seller's library: another seller's, or
an unknown one, is `404 photo_not_found`. A label the seller does not have yet is created. Requires
`items:write` and an `Idempotency-Key`.
an unknown one, is `404 photo_not_found`. A label the seller does not have yet is created. The
fields a marketplace asks for are written with the item: `packageSizeId`, `materialIds`,
`measurementLength` and `measurementWidth` (centimeters), `enumValues` (the category's enumerated
fields, `{enumKey, enumValue}`, one entry per picked value), `attributes` (its free-text fields,
`{fieldKey, value}`, one per key) and `customFields` (the seller's own fields, `{fieldId, value}`);
each list replaces the item's whole list. A place (`purchasePlaceId`, `sellingPlaceId`) or a custom
field of another seller, or an unknown one, is `404 place_not_found` or `404 field_not_found`.
`categoryId`, `sizeId` and `state` are ids from 1 (`0` is a 400, `null` clears them). Keys and
enumerated values are trimmed and counted in characters (UTF-16 units), 1 to 100 for a key and 1 to
255 for a value; two entries that differ only by case or accents (as the database compares them) are
a 400. At most 100 entries per list, and 65,535 bytes (UTF-8) per free-text value. Read back,
`enumValues`, `attributes` and `customFields` are sorted by key (then value, or field id), as plain
strings (upper case before lower case). Requires `items:write` and an `Idempotency-Key`.

Args:
idempotency_key (str):
Expand Down Expand Up @@ -227,8 +260,19 @@ async def asyncio(
publishing it: publish it with `POST /items/{id}/publish`. Only `name` is required. The amounts are
`{amount, currency}` in the item's currency (EUR for a new item; another currency is refused with
`422 currency_mismatch`). `photoIds` are files already in the seller's library: another seller's, or
an unknown one, is `404 photo_not_found`. A label the seller does not have yet is created. Requires
`items:write` and an `Idempotency-Key`.
an unknown one, is `404 photo_not_found`. A label the seller does not have yet is created. The
fields a marketplace asks for are written with the item: `packageSizeId`, `materialIds`,
`measurementLength` and `measurementWidth` (centimeters), `enumValues` (the category's enumerated
fields, `{enumKey, enumValue}`, one entry per picked value), `attributes` (its free-text fields,
`{fieldKey, value}`, one per key) and `customFields` (the seller's own fields, `{fieldId, value}`);
each list replaces the item's whole list. A place (`purchasePlaceId`, `sellingPlaceId`) or a custom
field of another seller, or an unknown one, is `404 place_not_found` or `404 field_not_found`.
`categoryId`, `sizeId` and `state` are ids from 1 (`0` is a 400, `null` clears them). Keys and
enumerated values are trimmed and counted in characters (UTF-16 units), 1 to 100 for a key and 1 to
255 for a value; two entries that differ only by case or accents (as the database compares them) are
a 400. At most 100 entries per list, and 65,535 bytes (UTF-8) per free-text value. Read back,
`enumValues`, `attributes` and `customFields` are sorted by key (then value, or field id), as plain
strings (upper case before lower case). Requires `items:write` and an `Idempotency-Key`.

Args:
idempotency_key (str):
Expand Down
96 changes: 72 additions & 24 deletions src/controlresell/generated/api/items/update_item.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,12 +106,24 @@ def sync_detailed(
"""Change an item of the seller's stock

Changes one item of the seller's stock with a JSON merge patch: a field left out keeps its value, a
field set to `null` is cleared (not `name`, `sold`, `photoIds`, `colorIds` nor `labels`: send `[]`
to empty a list), a list replaces the whole list. It changes the item in ControlResell only, not its
listings on the marketplaces. The amounts are `{amount, currency}` in the item's currency (EUR for a
new item; another currency is refused with `422 currency_mismatch`). `photoIds` are files already in
the seller's library: another seller's, or an unknown one, is `404 photo_not_found`. A label the
seller does not have yet is created. Requires `items:write`.
field set to `null` is cleared (not `name`, `sold`, nor a list: send `[]` to empty a list), a list
replaces the whole list. It changes the item in ControlResell only, not its listings on the
marketplaces. The amounts are `{amount, currency}` in the item's currency (EUR for a new item;
another currency is refused with `422 currency_mismatch`). `photoIds` are files already in the
seller's library: another seller's, or an unknown one, is `404 photo_not_found`. A label the seller
does not have yet is created. The fields a marketplace asks for are written with the item:
`packageSizeId`, `materialIds`, `measurementLength` and `measurementWidth` (centimeters),
`enumValues` (the category's enumerated fields, `{enumKey, enumValue}`, one entry per picked value),
`attributes` (its free-text fields, `{fieldKey, value}`, one per key) and `customFields` (the
seller's own fields, `{fieldId, value}`); each list replaces the item's whole list. A place
(`purchasePlaceId`, `sellingPlaceId`) or a custom field of another seller, or an unknown one, is
`404 place_not_found` or `404 field_not_found`. `categoryId`, `sizeId` and `state` are ids from 1
(`0` is a 400, `null` clears them). Keys and enumerated values are trimmed and counted in characters
(UTF-16 units), 1 to 100 for a key and 1 to 255 for a value; two entries that differ only by case or
accents (as the database compares them) are a 400. At most 100 entries per list, and 65,535 bytes
(UTF-8) per free-text value. Read back, `enumValues`, `attributes` and `customFields` are sorted by
key (then value, or field id), as plain strings (upper case before lower case). Requires
`items:write`.

Args:
id (int):
Expand Down Expand Up @@ -146,12 +158,24 @@ def sync(
"""Change an item of the seller's stock

Changes one item of the seller's stock with a JSON merge patch: a field left out keeps its value, a
field set to `null` is cleared (not `name`, `sold`, `photoIds`, `colorIds` nor `labels`: send `[]`
to empty a list), a list replaces the whole list. It changes the item in ControlResell only, not its
listings on the marketplaces. The amounts are `{amount, currency}` in the item's currency (EUR for a
new item; another currency is refused with `422 currency_mismatch`). `photoIds` are files already in
the seller's library: another seller's, or an unknown one, is `404 photo_not_found`. A label the
seller does not have yet is created. Requires `items:write`.
field set to `null` is cleared (not `name`, `sold`, nor a list: send `[]` to empty a list), a list
replaces the whole list. It changes the item in ControlResell only, not its listings on the
marketplaces. The amounts are `{amount, currency}` in the item's currency (EUR for a new item;
another currency is refused with `422 currency_mismatch`). `photoIds` are files already in the
seller's library: another seller's, or an unknown one, is `404 photo_not_found`. A label the seller
does not have yet is created. The fields a marketplace asks for are written with the item:
`packageSizeId`, `materialIds`, `measurementLength` and `measurementWidth` (centimeters),
`enumValues` (the category's enumerated fields, `{enumKey, enumValue}`, one entry per picked value),
`attributes` (its free-text fields, `{fieldKey, value}`, one per key) and `customFields` (the
seller's own fields, `{fieldId, value}`); each list replaces the item's whole list. A place
(`purchasePlaceId`, `sellingPlaceId`) or a custom field of another seller, or an unknown one, is
`404 place_not_found` or `404 field_not_found`. `categoryId`, `sizeId` and `state` are ids from 1
(`0` is a 400, `null` clears them). Keys and enumerated values are trimmed and counted in characters
(UTF-16 units), 1 to 100 for a key and 1 to 255 for a value; two entries that differ only by case or
accents (as the database compares them) are a 400. At most 100 entries per list, and 65,535 bytes
(UTF-8) per free-text value. Read back, `enumValues`, `attributes` and `customFields` are sorted by
key (then value, or field id), as plain strings (upper case before lower case). Requires
`items:write`.

Args:
id (int):
Expand Down Expand Up @@ -181,12 +205,24 @@ async def asyncio_detailed(
"""Change an item of the seller's stock

Changes one item of the seller's stock with a JSON merge patch: a field left out keeps its value, a
field set to `null` is cleared (not `name`, `sold`, `photoIds`, `colorIds` nor `labels`: send `[]`
to empty a list), a list replaces the whole list. It changes the item in ControlResell only, not its
listings on the marketplaces. The amounts are `{amount, currency}` in the item's currency (EUR for a
new item; another currency is refused with `422 currency_mismatch`). `photoIds` are files already in
the seller's library: another seller's, or an unknown one, is `404 photo_not_found`. A label the
seller does not have yet is created. Requires `items:write`.
field set to `null` is cleared (not `name`, `sold`, nor a list: send `[]` to empty a list), a list
replaces the whole list. It changes the item in ControlResell only, not its listings on the
marketplaces. The amounts are `{amount, currency}` in the item's currency (EUR for a new item;
another currency is refused with `422 currency_mismatch`). `photoIds` are files already in the
seller's library: another seller's, or an unknown one, is `404 photo_not_found`. A label the seller
does not have yet is created. The fields a marketplace asks for are written with the item:
`packageSizeId`, `materialIds`, `measurementLength` and `measurementWidth` (centimeters),
`enumValues` (the category's enumerated fields, `{enumKey, enumValue}`, one entry per picked value),
`attributes` (its free-text fields, `{fieldKey, value}`, one per key) and `customFields` (the
seller's own fields, `{fieldId, value}`); each list replaces the item's whole list. A place
(`purchasePlaceId`, `sellingPlaceId`) or a custom field of another seller, or an unknown one, is
`404 place_not_found` or `404 field_not_found`. `categoryId`, `sizeId` and `state` are ids from 1
(`0` is a 400, `null` clears them). Keys and enumerated values are trimmed and counted in characters
(UTF-16 units), 1 to 100 for a key and 1 to 255 for a value; two entries that differ only by case or
accents (as the database compares them) are a 400. At most 100 entries per list, and 65,535 bytes
(UTF-8) per free-text value. Read back, `enumValues`, `attributes` and `customFields` are sorted by
key (then value, or field id), as plain strings (upper case before lower case). Requires
`items:write`.

Args:
id (int):
Expand Down Expand Up @@ -219,12 +255,24 @@ async def asyncio(
"""Change an item of the seller's stock

Changes one item of the seller's stock with a JSON merge patch: a field left out keeps its value, a
field set to `null` is cleared (not `name`, `sold`, `photoIds`, `colorIds` nor `labels`: send `[]`
to empty a list), a list replaces the whole list. It changes the item in ControlResell only, not its
listings on the marketplaces. The amounts are `{amount, currency}` in the item's currency (EUR for a
new item; another currency is refused with `422 currency_mismatch`). `photoIds` are files already in
the seller's library: another seller's, or an unknown one, is `404 photo_not_found`. A label the
seller does not have yet is created. Requires `items:write`.
field set to `null` is cleared (not `name`, `sold`, nor a list: send `[]` to empty a list), a list
replaces the whole list. It changes the item in ControlResell only, not its listings on the
marketplaces. The amounts are `{amount, currency}` in the item's currency (EUR for a new item;
another currency is refused with `422 currency_mismatch`). `photoIds` are files already in the
seller's library: another seller's, or an unknown one, is `404 photo_not_found`. A label the seller
does not have yet is created. The fields a marketplace asks for are written with the item:
`packageSizeId`, `materialIds`, `measurementLength` and `measurementWidth` (centimeters),
`enumValues` (the category's enumerated fields, `{enumKey, enumValue}`, one entry per picked value),
`attributes` (its free-text fields, `{fieldKey, value}`, one per key) and `customFields` (the
seller's own fields, `{fieldId, value}`); each list replaces the item's whole list. A place
(`purchasePlaceId`, `sellingPlaceId`) or a custom field of another seller, or an unknown one, is
`404 place_not_found` or `404 field_not_found`. `categoryId`, `sizeId` and `state` are ids from 1
(`0` is a 400, `null` clears them). Keys and enumerated values are trimmed and counted in characters
(UTF-16 units), 1 to 100 for a key and 1 to 255 for a value; two entries that differ only by case or
accents (as the database compares them) are a 400. At most 100 entries per list, and 65,535 bytes
(UTF-8) per free-text value. Read back, `enumValues`, `attributes` and `customFields` are sorted by
key (then value, or field id), as plain strings (upper case before lower case). Requires
`items:write`.

Args:
id (int):
Expand Down
6 changes: 6 additions & 0 deletions src/controlresell/generated/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@
from .customer_page import CustomerPage
from .error_response import ErrorResponse
from .item import Item
from .item_attribute import ItemAttribute
from .item_create_request import ItemCreateRequest
from .item_custom_field import ItemCustomField
from .item_enum_value import ItemEnumValue
from .item_page import ItemPage
from .item_photo import ItemPhoto
from .item_update_request import ItemUpdateRequest
Expand Down Expand Up @@ -46,7 +49,10 @@
"CustomerPage",
"ErrorResponse",
"Item",
"ItemAttribute",
"ItemCreateRequest",
"ItemCustomField",
"ItemEnumValue",
"ItemPage",
"ItemPhoto",
"ItemUpdateRequest",
Expand Down
Loading
Loading