77
88"""Decorator class for response model transformations and dependencies."""
99
10- from typing import Any , Dict , List , Optional
10+ from typing import Any , Optional
1111
1212
1313class Decorator :
@@ -20,9 +20,9 @@ class Decorator:
2020
2121 """
2222
23- dependencies : Optional [Dict ]
23+ dependencies : Optional [dict ]
2424
25- def __init__ (self : "Decorator" , dependencies : Dict = None ) -> None :
25+ def __init__ (self : "Decorator" , dependencies : dict = None ) -> None :
2626 """
2727 Initialize the Decorator with optional dependencies.
2828
@@ -35,7 +35,7 @@ def __init__(self: "Decorator", dependencies: Dict = None) -> None:
3535
3636 def adapt_checkout_options (
3737 self : "Decorator" ,
38- checkout_options : Optional [Dict ],
38+ checkout_options : Optional [dict ],
3939 ) -> "Decorator" :
4040 """
4141 Adapt the checkout options and update the dependencies.
@@ -59,7 +59,7 @@ def adapt_checkout_options(
5959 )
6060 return self
6161
62- def adapt_costs (self : "Decorator" , costs : Optional [Dict ]) -> "Decorator" :
62+ def adapt_costs (self : "Decorator" , costs : Optional [dict ]) -> "Decorator" :
6363 """
6464 Adapt the costs and update the dependencies.
6565
@@ -82,7 +82,7 @@ def adapt_costs(self: "Decorator", costs: Optional[Dict]) -> "Decorator":
8282
8383 def adapt_custom_info (
8484 self : "Decorator" ,
85- custom_info : Optional [Dict ],
85+ custom_info : Optional [dict ],
8686 ) -> "Decorator" :
8787 """
8888 Adapt the custom information and update the dependencies.
@@ -107,7 +107,7 @@ def adapt_custom_info(
107107
108108 def adapt_customer (
109109 self : "Decorator" ,
110- customer : Optional [Dict ],
110+ customer : Optional [dict ],
111111 ) -> "Decorator" :
112112 """
113113 Adapt the customer information and update the dependencies.
@@ -130,7 +130,7 @@ def adapt_customer(
130130
131131 def adapt_order_adjustment (
132132 self : "Decorator" ,
133- order_adjustment : Optional [Dict ],
133+ order_adjustment : Optional [dict ],
134134 ) -> "Decorator" :
135135 """
136136 Adapt the order adjustment and update the dependencies.
@@ -157,7 +157,7 @@ def adapt_order_adjustment(
157157
158158 def adapt_payment_details (
159159 self : "Decorator" ,
160- payment_details : Optional [Dict ],
160+ payment_details : Optional [dict ],
161161 ) -> "Decorator" :
162162 """
163163 Adapt the payment details and update the dependencies.
@@ -184,7 +184,7 @@ def adapt_payment_details(
184184
185185 def adapt_payment_methods (
186186 self : "Decorator" ,
187- payment_methods : Optional [Dict ],
187+ payment_methods : Optional [dict ],
188188 ) -> "Decorator" :
189189 """
190190 Adapt the payment methods and update the dependencies.
@@ -209,7 +209,7 @@ def adapt_payment_methods(
209209
210210 def adapt_shopping_cart (
211211 self : "Decorator" ,
212- shopping_cart : Optional [Dict ],
212+ shopping_cart : Optional [dict ],
213213 ) -> "Decorator" :
214214 """
215215 Adapt the shopping cart and update the dependencies.
@@ -233,7 +233,7 @@ def adapt_shopping_cart(
233233
234234 def adapt_related_transactions (
235235 self : "Decorator" ,
236- related_transactions : Optional [Dict ],
236+ related_transactions : Optional [dict ],
237237 ) -> "Decorator" :
238238 """
239239 Adapt the related transactions and update the dependencies.
@@ -258,7 +258,7 @@ def adapt_related_transactions(
258258 ]
259259 return self
260260
261- def adapt_apps (self : "Decorator" , apps : Optional [Dict ]) -> "Decorator" :
261+ def adapt_apps (self : "Decorator" , apps : Optional [dict ]) -> "Decorator" :
262262 """
263263 Adapt the apps and update the dependencies.
264264
@@ -282,7 +282,7 @@ def adapt_apps(self: "Decorator", apps: Optional[Dict]) -> "Decorator":
282282
283283 def adapt_brands (
284284 self : "Decorator" ,
285- brands : Optional [List [Optional [Dict ]]],
285+ brands : Optional [list [Optional [dict ]]],
286286 ) -> "Decorator" :
287287 """
288288 Adapt the brands and update the dependencies.
@@ -308,7 +308,7 @@ def adapt_brands(
308308
309309 def adapt_icon_urls (
310310 self : "Decorator" ,
311- icon_urls : Optional [Dict ],
311+ icon_urls : Optional [dict ],
312312 ) -> "Decorator" :
313313 """
314314 Adapt the icon URLs and update the dependencies.
@@ -333,7 +333,7 @@ def adapt_icon_urls(
333333
334334 def adapt_tokenization (
335335 self : "Decorator" ,
336- tokenization : Optional [Dict ],
336+ tokenization : Optional [dict ],
337337 ) -> "Decorator" :
338338 """
339339 Adapt the tokenization and update the dependencies.
@@ -360,7 +360,7 @@ def adapt_tokenization(
360360
361361 def adapt_allowed_amount (
362362 self : "Decorator" ,
363- allowed_amount : Optional [Dict ],
363+ allowed_amount : Optional [dict ],
364364 ) -> "Decorator" :
365365 """
366366 Adapt the allowed amount and update the dependencies.
@@ -384,7 +384,7 @@ def adapt_allowed_amount(
384384 )
385385 return self
386386
387- def get_dependencies (self : "Decorator" ) -> Dict [str , Any ]:
387+ def get_dependencies (self : "Decorator" ) -> dict [str , Any ]:
388388 """
389389 Get the current dependencies.
390390
0 commit comments