66
77from pydantic import AnyHttpUrl , BaseModel , Field
88
9- from stapi_fastapi .models .opportunity import OpportunityPropertiesBase
10- from stapi_fastapi .models .order import OrderParametersBase
9+ from stapi_fastapi .models .opportunity import OpportunityProperties
10+ from stapi_fastapi .models .order import OrderParameters
1111from stapi_fastapi .models .shared import Link
1212
1313if TYPE_CHECKING :
@@ -45,16 +45,16 @@ class Product(BaseModel):
4545 links : list [Link ] = Field (default_factory = list )
4646
4747 # we don't want to include these in the model fields
48- _constraints : type [OpportunityPropertiesBase ]
49- _order_parameters : OrderParametersBase
48+ _constraints : type [OpportunityProperties ]
49+ _order_parameters : type [ OrderParameters ]
5050 _backend : ProductBackend
5151
5252 def __init__ (
5353 self ,
5454 * args ,
5555 backend : ProductBackend ,
56- constraints : type [OpportunityPropertiesBase ],
57- order_parameters : type [OrderParametersBase ],
56+ constraints : type [OpportunityProperties ],
57+ order_parameters : type [OrderParameters ],
5858 ** kwargs ,
5959 ) -> None :
6060 super ().__init__ (* args , ** kwargs )
@@ -67,11 +67,11 @@ def backend(self: Self) -> ProductBackend:
6767 return self ._backend
6868
6969 @property
70- def constraints (self : Self ) -> type [OpportunityPropertiesBase ]:
70+ def constraints (self : Self ) -> type [OpportunityProperties ]:
7171 return self ._constraints
7272
7373 @property
74- def order_parameters (self : Self ) -> type [OrderParametersBase ]:
74+ def order_parameters (self : Self ) -> type [OrderParameters ]:
7575 return self ._order_parameters
7676
7777 def with_links (self : Self , links : list [Link ] | None = None ) -> Self :
0 commit comments