@@ -14,13 +14,13 @@ class Decorator:
1414
1515 Attributes
1616 ----------
17- dependencies (Optional[dict ]): A dictionary of dependencies to be used by the decorator.
17+ dependencies (Optional[Dict ]): A dictionary of dependencies to be used by the decorator.
1818
1919 """
2020
21- dependencies : Optional [dict ]
21+ dependencies : Optional [Dict ]
2222
23- def __init__ (self , dependencies : dict = {}) -> None :
23+ def __init__ (self : "Decorator" , dependencies : Dict = {}) -> None :
2424 """
2525 Initialize the Decorator with optional dependencies.
2626
@@ -32,7 +32,7 @@ def __init__(self, dependencies: dict = {}) -> None:
3232 self .dependencies = dependencies
3333
3434 def adapt_checkout_options (
35- self ,
35+ self : "Decorator" ,
3636 checkout_options : Optional [Dict ],
3737 ) -> "Decorator" :
3838 """
@@ -57,7 +57,7 @@ def adapt_checkout_options(
5757 )
5858 return self
5959
60- def adapt_costs (self , costs : Optional [Dict ]) -> "Decorator" :
60+ def adapt_costs (self : "Decorator" , costs : Optional [Dict ]) -> "Decorator" :
6161 """
6262 Adapt the costs and update the dependencies.
6363
@@ -78,7 +78,10 @@ def adapt_costs(self, costs: Optional[Dict]) -> "Decorator":
7878 ]
7979 return self
8080
81- def adapt_custom_info (self , custom_info : Optional [Dict ]) -> "Decorator" :
81+ def adapt_custom_info (
82+ self : "Decorator" ,
83+ custom_info : Optional [Dict ],
84+ ) -> "Decorator" :
8285 """
8386 Adapt the custom information and update the dependencies.
8487
@@ -100,7 +103,10 @@ def adapt_custom_info(self, custom_info: Optional[Dict]) -> "Decorator":
100103
101104 return self
102105
103- def adapt_customer (self , customer : Optional [Dict ]) -> "Decorator" :
106+ def adapt_customer (
107+ self : "Decorator" ,
108+ customer : Optional [Dict ],
109+ ) -> "Decorator" :
104110 """
105111 Adapt the customer information and update the dependencies.
106112
@@ -121,7 +127,7 @@ def adapt_customer(self, customer: Optional[Dict]) -> "Decorator":
121127 return self
122128
123129 def adapt_order_adjustment (
124- self ,
130+ self : "Decorator" ,
125131 order_adjustment : Optional [Dict ],
126132 ) -> "Decorator" :
127133 """
@@ -148,7 +154,7 @@ def adapt_order_adjustment(
148154 return self
149155
150156 def adapt_payment_details (
151- self ,
157+ self : "Decorator" ,
152158 payment_details : Optional [Dict ],
153159 ) -> "Decorator" :
154160 """
@@ -175,7 +181,7 @@ def adapt_payment_details(
175181 return self
176182
177183 def adapt_payment_methods (
178- self ,
184+ self : "Decorator" ,
179185 payment_methods : Optional [Dict ],
180186 ) -> "Decorator" :
181187 """
@@ -200,7 +206,7 @@ def adapt_payment_methods(
200206 return self
201207
202208 def adapt_shopping_cart (
203- self ,
209+ self : "Decorator" ,
204210 shopping_cart : Optional [Dict ],
205211 ) -> "Decorator" :
206212 """
@@ -224,7 +230,7 @@ def adapt_shopping_cart(
224230 return self
225231
226232 def adapt_related_transactions (
227- self ,
233+ self : "Decorator" ,
228234 related_transactions : Optional [Dict ],
229235 ) -> "Decorator" :
230236 """
@@ -250,7 +256,7 @@ def adapt_related_transactions(
250256 ]
251257 return self
252258
253- def adapt_apps (self , apps : Optional [Dict ]) -> "Decorator" :
259+ def adapt_apps (self : "Decorator" , apps : Optional [Dict ]) -> "Decorator" :
254260 """
255261 Adapt the apps and update the dependencies.
256262
@@ -273,7 +279,7 @@ def adapt_apps(self, apps: Optional[Dict]) -> "Decorator":
273279 return self
274280
275281 def adapt_brands (
276- self ,
282+ self : "Decorator" ,
277283 brands : Optional [List [Optional [Dict ]]],
278284 ) -> "Decorator" :
279285 """
@@ -298,7 +304,10 @@ def adapt_brands(
298304 ]
299305 return self
300306
301- def adapt_icon_urls (self , icon_urls : Optional [Dict ]) -> "Decorator" :
307+ def adapt_icon_urls (
308+ self : "Decorator" ,
309+ icon_urls : Optional [Dict ],
310+ ) -> "Decorator" :
302311 """
303312 Adapt the icon URLs and update the dependencies.
304313
@@ -320,7 +329,10 @@ def adapt_icon_urls(self, icon_urls: Optional[Dict]) -> "Decorator":
320329
321330 return self
322331
323- def adapt_tokenization (self , tokenization : Optional [Dict ]) -> "Decorator" :
332+ def adapt_tokenization (
333+ self : "Decorator" ,
334+ tokenization : Optional [Dict ],
335+ ) -> "Decorator" :
324336 """
325337 Adapt the tokenization and update the dependencies.
326338
@@ -345,7 +357,7 @@ def adapt_tokenization(self, tokenization: Optional[Dict]) -> "Decorator":
345357 return self
346358
347359 def adapt_allowed_amount (
348- self ,
360+ self : "Decorator" ,
349361 allowed_amount : Optional [Dict ],
350362 ) -> "Decorator" :
351363 """
@@ -370,7 +382,7 @@ def adapt_allowed_amount(
370382 )
371383 return self
372384
373- def get_dependencies (self ) -> Dict [str , Any ]:
385+ def get_dependencies (self : "Decorator" ) -> Dict [str , Any ]:
374386 """
375387 Get the current dependencies.
376388
0 commit comments