Skip to content

Commit d7f6d5d

Browse files
committed
Update SDK using contracts version daab2bfe03a2ad1a84841afbf1c2be63ba7bfb44
1 parent c197f59 commit d7f6d5d

2 files changed

Lines changed: 38 additions & 20 deletions

File tree

eolymp/commerce/product_pb2.py

Lines changed: 16 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

eolymp/commerce/product_pb2.pyi

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ from typing import ClassVar as _ClassVar, Optional as _Optional, Union as _Union
99
DESCRIPTOR: _descriptor.FileDescriptor
1010

1111
class Product(_message.Message):
12-
__slots__ = ("id", "name", "description", "images", "out_of_stock", "currency", "unit_price", "attributes", "variants")
12+
__slots__ = ("id", "name", "summary", "description", "images", "out_of_stock", "featured", "inactive", "backorder", "currency", "unit_price", "attributes", "variants")
1313
class Extra(_message.Message):
1414
__slots__ = ()
1515
class Field(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
@@ -32,19 +32,25 @@ class Product(_message.Message):
3232
UNKNOWN_FIELD: _ClassVar[Product.Patch.Field]
3333
ALL: _ClassVar[Product.Patch.Field]
3434
NAME: _ClassVar[Product.Patch.Field]
35+
SUMMARY: _ClassVar[Product.Patch.Field]
3536
DESCRIPTION: _ClassVar[Product.Patch.Field]
3637
IMAGES: _ClassVar[Product.Patch.Field]
3738
UNIT_PRICE: _ClassVar[Product.Patch.Field]
3839
ATTRIBUTES: _ClassVar[Product.Patch.Field]
3940
VARIANTS: _ClassVar[Product.Patch.Field]
41+
FEATURED: _ClassVar[Product.Patch.Field]
42+
INACTIVE: _ClassVar[Product.Patch.Field]
4043
UNKNOWN_FIELD: Product.Patch.Field
4144
ALL: Product.Patch.Field
4245
NAME: Product.Patch.Field
46+
SUMMARY: Product.Patch.Field
4347
DESCRIPTION: Product.Patch.Field
4448
IMAGES: Product.Patch.Field
4549
UNIT_PRICE: Product.Patch.Field
4650
ATTRIBUTES: Product.Patch.Field
4751
VARIANTS: Product.Patch.Field
52+
FEATURED: Product.Patch.Field
53+
INACTIVE: Product.Patch.Field
4854
def __init__(self) -> None: ...
4955
class Attribute(_message.Message):
5056
__slots__ = ("key", "label")
@@ -54,7 +60,7 @@ class Product(_message.Message):
5460
label: str
5561
def __init__(self, key: _Optional[str] = ..., label: _Optional[str] = ...) -> None: ...
5662
class Variant(_message.Message):
57-
__slots__ = ("id", "values", "images", "out_of_stock")
63+
__slots__ = ("id", "name", "values", "images", "out_of_stock", "available_qty")
5864
class ValuesEntry(_message.Message):
5965
__slots__ = ("key", "value")
6066
KEY_FIELD_NUMBER: _ClassVar[int]
@@ -63,30 +69,42 @@ class Product(_message.Message):
6369
value: str
6470
def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ...
6571
ID_FIELD_NUMBER: _ClassVar[int]
72+
NAME_FIELD_NUMBER: _ClassVar[int]
6673
VALUES_FIELD_NUMBER: _ClassVar[int]
6774
IMAGES_FIELD_NUMBER: _ClassVar[int]
6875
OUT_OF_STOCK_FIELD_NUMBER: _ClassVar[int]
76+
AVAILABLE_QTY_FIELD_NUMBER: _ClassVar[int]
6977
id: str
78+
name: str
7079
values: _containers.ScalarMap[str, str]
7180
images: _containers.RepeatedScalarFieldContainer[str]
7281
out_of_stock: bool
73-
def __init__(self, id: _Optional[str] = ..., values: _Optional[_Mapping[str, str]] = ..., images: _Optional[_Iterable[str]] = ..., out_of_stock: bool = ...) -> None: ...
82+
available_qty: bool
83+
def __init__(self, id: _Optional[str] = ..., name: _Optional[str] = ..., values: _Optional[_Mapping[str, str]] = ..., images: _Optional[_Iterable[str]] = ..., out_of_stock: bool = ..., available_qty: bool = ...) -> None: ...
7484
ID_FIELD_NUMBER: _ClassVar[int]
7585
NAME_FIELD_NUMBER: _ClassVar[int]
86+
SUMMARY_FIELD_NUMBER: _ClassVar[int]
7687
DESCRIPTION_FIELD_NUMBER: _ClassVar[int]
7788
IMAGES_FIELD_NUMBER: _ClassVar[int]
7889
OUT_OF_STOCK_FIELD_NUMBER: _ClassVar[int]
90+
FEATURED_FIELD_NUMBER: _ClassVar[int]
91+
INACTIVE_FIELD_NUMBER: _ClassVar[int]
92+
BACKORDER_FIELD_NUMBER: _ClassVar[int]
7993
CURRENCY_FIELD_NUMBER: _ClassVar[int]
8094
UNIT_PRICE_FIELD_NUMBER: _ClassVar[int]
8195
ATTRIBUTES_FIELD_NUMBER: _ClassVar[int]
8296
VARIANTS_FIELD_NUMBER: _ClassVar[int]
8397
id: str
8498
name: str
99+
summary: _content_pb2.Content
85100
description: _content_pb2.Content
86101
images: _containers.RepeatedScalarFieldContainer[str]
87102
out_of_stock: bool
103+
featured: bool
104+
inactive: bool
105+
backorder: bool
88106
currency: str
89107
unit_price: int
90108
attributes: _containers.RepeatedCompositeFieldContainer[Product.Attribute]
91109
variants: _containers.RepeatedCompositeFieldContainer[Product.Variant]
92-
def __init__(self, id: _Optional[str] = ..., name: _Optional[str] = ..., description: _Optional[_Union[_content_pb2.Content, _Mapping]] = ..., images: _Optional[_Iterable[str]] = ..., out_of_stock: bool = ..., currency: _Optional[str] = ..., unit_price: _Optional[int] = ..., attributes: _Optional[_Iterable[_Union[Product.Attribute, _Mapping]]] = ..., variants: _Optional[_Iterable[_Union[Product.Variant, _Mapping]]] = ...) -> None: ...
110+
def __init__(self, id: _Optional[str] = ..., name: _Optional[str] = ..., summary: _Optional[_Union[_content_pb2.Content, _Mapping]] = ..., description: _Optional[_Union[_content_pb2.Content, _Mapping]] = ..., images: _Optional[_Iterable[str]] = ..., out_of_stock: bool = ..., featured: bool = ..., inactive: bool = ..., backorder: bool = ..., currency: _Optional[str] = ..., unit_price: _Optional[int] = ..., attributes: _Optional[_Iterable[_Union[Product.Attribute, _Mapping]]] = ..., variants: _Optional[_Iterable[_Union[Product.Variant, _Mapping]]] = ...) -> None: ...

0 commit comments

Comments
 (0)