Skip to content

Commit

Permalink
(ensure) carrier connection settings with cache set default value
Browse files Browse the repository at this point in the history
  • Loading branch information
danh91 committed Jul 15, 2023
1 parent a038d49 commit 5d5b903
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions requirements.server.dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ django-debug-toolbar
# -e ./sdk/extensions/amazon_mws
# -e ./sdk/extensions/aramex
# -e ./sdk/extensions/australiapost
# -e ./sdk/extensions/boxknight
-e ./sdk/extensions/boxknight
# -e ./sdk/extensions/canadapost
# -e ./sdk/extensions/canpar
# -e ./sdk/extensions/chronopost
# -e ./sdk/extensions/dhl_express
# -e ./sdk/extensions/dhl_poland
# -e ./sdk/extensions/dhl_universal
# -e ./sdk/extensions/dicom
# -e ./sdk/extensions/dpd
-e ./sdk/extensions/dpd
# -e ./sdk/extensions/dpdhl
# -e ./sdk/extensions/fedex
# -e ./sdk/extensions/geodis
Expand Down Expand Up @@ -46,15 +46,15 @@ karrio.generic
karrio.amazon-mws
karrio.aramex
karrio.australiapost
karrio.boxknight
# karrio.boxknight
karrio.canadapost
karrio.canpar
karrio.chronopost
karrio.dhl-express
karrio.dhl-poland
karrio.dhl-universal
karrio.dicom
karrio.dpd
# karrio.dpd
karrio.dpdhl
karrio.fedex
karrio.geodis
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class Settings(provider_utils.Settings):
# required carrier specific properties
username: str
password: str
cache: lib.Cache = jstruct.JStruct[lib.Cache]
cache: lib.Cache = jstruct.JStruct[lib.Cache, False, dict(default=lib.Cache())]

# generic properties
id: str = None
Expand Down
2 changes: 1 addition & 1 deletion sdk/extensions/dpd/karrio/mappers/dpd/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class Settings(provider_utils.Settings, rating_proxy.RatingMixinSettings):
carrier_id: str = "dpd"
account_country_code: str = "BE"
services: typing.List[models.ServiceLevel] = jstruct.JList[models.ServiceLevel, False, dict(default=provider_units.DEFAULT_SERVICES)] # type: ignore
cache: lib.Cache = jstruct.JStruct[lib.Cache]
cache: lib.Cache = jstruct.JStruct[lib.Cache, False, dict(default=lib.Cache())]
metadata: dict = {}
config: dict = {}

Expand Down
2 changes: 1 addition & 1 deletion sdk/extensions/ups/karrio/mappers/ups/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ class Settings(BaseSettings):
id: str = None
test_mode: bool = False
carrier_id: str = "ups"
cache: lib.Cache = jstruct.JStruct[lib.Cache]
cache: lib.Cache = jstruct.JStruct[lib.Cache, False, dict(default=lib.Cache())]

0 comments on commit 5d5b903

Please sign in to comment.