Constants to stop hardcoding strings everywhere
This commit is contained in:
parent
964682716f
commit
e87854bba0
2 changed files with 22 additions and 5 deletions
11
camisatoshi_wordpress_reports/constants.py
Normal file
11
camisatoshi_wordpress_reports/constants.py
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
from types import SimpleNamespace
|
||||
|
||||
order_keys = SimpleNamespace()
|
||||
order_keys.meta_data = "meta_data"
|
||||
order_keys.line_items = "line_items"
|
||||
|
||||
order_keys.line_item_keys = SimpleNamespace()
|
||||
order_keys.line_item_keys.sku = "sku"
|
||||
|
||||
custom_meta_data_keys = SimpleNamespace()
|
||||
custom_meta_data_keys.is_settled_with_um = "is_settled_with_um"
|
||||
Loading…
Add table
Add a link
Reference in a new issue