Skip to content

Commit c908135

Browse files
committed
Update SDK using contracts version e6bcc4dedcf7bcbd0bc91bac668bf45ed1d89be0
1 parent c01b2a5 commit c908135

6 files changed

Lines changed: 52 additions & 44 deletions

File tree

eolymp/commerce/product_pb2.py

Lines changed: 18 additions & 18 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: 12 additions & 6 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", "summary", "description", "images", "out_of_stock", "featured", "inactive", "backorder", "currency", "unit_price", "attributes", "variants")
12+
__slots__ = ("id", "name", "summary", "description", "images", "out_of_stock", "featured", "inactive", "backorder", "currency", "price", "regular_price", "attributes", "variants", "cursor")
1313
class Extra(_message.Message):
1414
__slots__ = ()
1515
class Field(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
@@ -39,7 +39,8 @@ class Product(_message.Message):
3939
SUMMARY: _ClassVar[Product.Patch.Field]
4040
DESCRIPTION: _ClassVar[Product.Patch.Field]
4141
IMAGES: _ClassVar[Product.Patch.Field]
42-
UNIT_PRICE: _ClassVar[Product.Patch.Field]
42+
PRICE: _ClassVar[Product.Patch.Field]
43+
REGULAR_PRICE: _ClassVar[Product.Patch.Field]
4344
ATTRIBUTES: _ClassVar[Product.Patch.Field]
4445
VARIANTS: _ClassVar[Product.Patch.Field]
4546
FEATURED: _ClassVar[Product.Patch.Field]
@@ -51,7 +52,8 @@ class Product(_message.Message):
5152
SUMMARY: Product.Patch.Field
5253
DESCRIPTION: Product.Patch.Field
5354
IMAGES: Product.Patch.Field
54-
UNIT_PRICE: Product.Patch.Field
55+
PRICE: Product.Patch.Field
56+
REGULAR_PRICE: Product.Patch.Field
5557
ATTRIBUTES: Product.Patch.Field
5658
VARIANTS: Product.Patch.Field
5759
FEATURED: Product.Patch.Field
@@ -114,9 +116,11 @@ class Product(_message.Message):
114116
INACTIVE_FIELD_NUMBER: _ClassVar[int]
115117
BACKORDER_FIELD_NUMBER: _ClassVar[int]
116118
CURRENCY_FIELD_NUMBER: _ClassVar[int]
117-
UNIT_PRICE_FIELD_NUMBER: _ClassVar[int]
119+
PRICE_FIELD_NUMBER: _ClassVar[int]
120+
REGULAR_PRICE_FIELD_NUMBER: _ClassVar[int]
118121
ATTRIBUTES_FIELD_NUMBER: _ClassVar[int]
119122
VARIANTS_FIELD_NUMBER: _ClassVar[int]
123+
CURSOR_FIELD_NUMBER: _ClassVar[int]
120124
id: str
121125
name: str
122126
summary: _content_pb2.Content
@@ -127,7 +131,9 @@ class Product(_message.Message):
127131
inactive: bool
128132
backorder: bool
129133
currency: str
130-
unit_price: int
134+
price: int
135+
regular_price: int
131136
attributes: _containers.RepeatedCompositeFieldContainer[Product.Attribute]
132137
variants: _containers.RepeatedCompositeFieldContainer[Product.Variant]
133-
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: ...
138+
cursor: str
139+
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] = ..., price: _Optional[int] = ..., regular_price: _Optional[int] = ..., attributes: _Optional[_Iterable[_Union[Product.Attribute, _Mapping]]] = ..., variants: _Optional[_Iterable[_Union[Product.Variant, _Mapping]]] = ..., cursor: _Optional[str] = ...) -> None: ...

eolymp/commerce/product_service_pb2.py

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

0 commit comments

Comments
 (0)