1+ import datetime
2+
13from eolymp .commerce import address_pb2 as _address_pb2
4+ from google .protobuf import timestamp_pb2 as _timestamp_pb2
25from google .protobuf .internal import containers as _containers
36from google .protobuf .internal import enum_type_wrapper as _enum_type_wrapper
47from google .protobuf import descriptor as _descriptor
@@ -9,7 +12,7 @@ from typing import ClassVar as _ClassVar, Optional as _Optional, Union as _Union
912DESCRIPTOR : _descriptor .FileDescriptor
1013
1114class Order (_message .Message ):
12- __slots__ = ("id" , "reference" , "status" , "items" , "billing_address" , "shipping_address" , "billing_same_as_shipping" , "currency" , "total_amount" , "shipping_amount" , "discount_amount" , "tax_amount" , "tax_rate" , "tax_note" , "grand_total" )
15+ __slots__ = ("id" , "reference" , "status" , "items" , "billing_address" , "shipping_address" , "billing_same_as_shipping" , "estimated_shipping_date" , " currency" , "total_amount" , "shipping_amount" , "discount_amount" , "tax_amount" , "tax_rate" , "tax_note" , "grand_total" , "created_at" , "updated_at " )
1316 class Status (int , metaclass = _enum_type_wrapper .EnumTypeWrapper ):
1417 __slots__ = ()
1518 UNSPECIFIED : _ClassVar [Order .Status ]
@@ -58,6 +61,7 @@ class Order(_message.Message):
5861 BILLING_ADDRESS_FIELD_NUMBER : _ClassVar [int ]
5962 SHIPPING_ADDRESS_FIELD_NUMBER : _ClassVar [int ]
6063 BILLING_SAME_AS_SHIPPING_FIELD_NUMBER : _ClassVar [int ]
64+ ESTIMATED_SHIPPING_DATE_FIELD_NUMBER : _ClassVar [int ]
6165 CURRENCY_FIELD_NUMBER : _ClassVar [int ]
6266 TOTAL_AMOUNT_FIELD_NUMBER : _ClassVar [int ]
6367 SHIPPING_AMOUNT_FIELD_NUMBER : _ClassVar [int ]
@@ -66,13 +70,16 @@ class Order(_message.Message):
6670 TAX_RATE_FIELD_NUMBER : _ClassVar [int ]
6771 TAX_NOTE_FIELD_NUMBER : _ClassVar [int ]
6872 GRAND_TOTAL_FIELD_NUMBER : _ClassVar [int ]
73+ CREATED_AT_FIELD_NUMBER : _ClassVar [int ]
74+ UPDATED_AT_FIELD_NUMBER : _ClassVar [int ]
6975 id : str
7076 reference : str
7177 status : Order .Status
7278 items : _containers .RepeatedCompositeFieldContainer [Order .Item ]
7379 billing_address : _address_pb2 .Address
7480 shipping_address : _address_pb2 .Address
7581 billing_same_as_shipping : bool
82+ estimated_shipping_date : _timestamp_pb2 .Timestamp
7683 currency : str
7784 total_amount : int
7885 shipping_amount : int
@@ -81,4 +88,6 @@ class Order(_message.Message):
8188 tax_rate : int
8289 tax_note : str
8390 grand_total : int
84- def __init__ (self , id : _Optional [str ] = ..., reference : _Optional [str ] = ..., status : _Optional [_Union [Order .Status , str ]] = ..., items : _Optional [_Iterable [_Union [Order .Item , _Mapping ]]] = ..., billing_address : _Optional [_Union [_address_pb2 .Address , _Mapping ]] = ..., shipping_address : _Optional [_Union [_address_pb2 .Address , _Mapping ]] = ..., billing_same_as_shipping : bool = ..., currency : _Optional [str ] = ..., total_amount : _Optional [int ] = ..., shipping_amount : _Optional [int ] = ..., discount_amount : _Optional [int ] = ..., tax_amount : _Optional [int ] = ..., tax_rate : _Optional [int ] = ..., tax_note : _Optional [str ] = ..., grand_total : _Optional [int ] = ...) -> None : ...
91+ created_at : _timestamp_pb2 .Timestamp
92+ updated_at : _timestamp_pb2 .Timestamp
93+ def __init__ (self , id : _Optional [str ] = ..., reference : _Optional [str ] = ..., status : _Optional [_Union [Order .Status , str ]] = ..., items : _Optional [_Iterable [_Union [Order .Item , _Mapping ]]] = ..., billing_address : _Optional [_Union [_address_pb2 .Address , _Mapping ]] = ..., shipping_address : _Optional [_Union [_address_pb2 .Address , _Mapping ]] = ..., billing_same_as_shipping : bool = ..., estimated_shipping_date : _Optional [_Union [datetime .datetime , _timestamp_pb2 .Timestamp , _Mapping ]] = ..., currency : _Optional [str ] = ..., total_amount : _Optional [int ] = ..., shipping_amount : _Optional [int ] = ..., discount_amount : _Optional [int ] = ..., tax_amount : _Optional [int ] = ..., tax_rate : _Optional [int ] = ..., tax_note : _Optional [str ] = ..., grand_total : _Optional [int ] = ..., created_at : _Optional [_Union [datetime .datetime , _timestamp_pb2 .Timestamp , _Mapping ]] = ..., updated_at : _Optional [_Union [datetime .datetime , _timestamp_pb2 .Timestamp , _Mapping ]] = ...) -> None : ...
0 commit comments