Skip to content

Commit

Permalink
(disable) extensions in development
Browse files Browse the repository at this point in the history
  • Loading branch information
danh91 committed Oct 14, 2023
1 parent 0a0f053 commit 92b2989
Show file tree
Hide file tree
Showing 318 changed files with 223,603 additions and 29 deletions.
19 changes: 8 additions & 11 deletions requirements.sdk.dev.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
# Carrier Schemas packages
-e ./schemas/usps

# Carrier Extentions packages
-e ./sdk/core
-e ./sdk/extensions/amazon_shipping
Expand All @@ -11,26 +8,26 @@
-e ./sdk/extensions/canadapost
-e ./sdk/extensions/canpar
-e ./sdk/extensions/chronopost
-e ./sdk/extensions/collissimo
-e ./sdk/extensions/dhl_express
# -e ./sdk/extensions/colissimo
# -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/dpdhl
-e ./sdk/extensions/dpdhl_international
-e ./sdk/extensions/fedex
# -e ./sdk/extensions/dpdhl
# -e ./sdk/extensions/dpdhl_international
# -e ./sdk/extensions/fedex
-e ./sdk/extensions/generic
-e ./sdk/extensions/geodis
-e ./sdk/extensions/gls_eu
# -e ./sdk/extensions/geodis
# -e ./sdk/extensions/gls_eu
-e ./sdk/extensions/laposte
-e ./sdk/extensions/nationex
# -e ./sdk/extensions/postnl
-e ./sdk/extensions/purolator
-e ./sdk/extensions/roadie
-e ./sdk/extensions/royalmail
-e ./sdk/extensions/sendle
-e ./sdk/extensions/tnt
# -e ./sdk/extensions/tnt
-e ./sdk/extensions/ups
-e ./sdk/extensions/usps
-e ./sdk/extensions/usps_international
Expand Down
3 changes: 0 additions & 3 deletions requirements.server.dev.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
django-debug-toolbar

# Carrier Schemas packages
-e ./schemas/usps

# Carrier Extentions packages
-e ./sdk/core
-e ./sdk/extensions/amazon_shipping
Expand Down
2 changes: 1 addition & 1 deletion sdk/core/karrio/lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ def to_object(
def to_dict(
value: typing.Any,
clear_empty: bool = None,
) -> dict:
) -> typing.Union[dict, list, typing.Any]:
"""Parse value into a Python dictionay.
:param value: a value that can converted in dictionary.
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
68 changes: 68 additions & 0 deletions sdk/extensions/usps/generate
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
SCHEMAS=./schemas
LIB_MODULES=./karrio/schemas/usps
mkdir -p $LIB_MODULES
find $LIB_MODULES -name "*.py" -exec rm -r {} \;
touch $LIB_MODULES/__init__.py

generateDS --no-namespace-defs -o "$LIB_MODULES/address_validate_request.py" $SCHEMAS/AddressValidateRequest.xsd
generateDS --no-namespace-defs -o "$LIB_MODULES/address_validate_response.py" $SCHEMAS/AddressValidateResponse.xsd
generateDS --no-namespace-defs -o "$LIB_MODULES/carrier_pickup_availability_request.py" $SCHEMAS/CarrierPickupAvailabilityRequest.xsd
generateDS --no-namespace-defs -o "$LIB_MODULES/carrier_pickup_availability_response.py" $SCHEMAS/CarrierPickupAvailabilityResponse.xsd
generateDS --no-namespace-defs -o "$LIB_MODULES/carrier_pickup_cancel_request.py" $SCHEMAS/CarrierPickupCancelRequest.xsd
generateDS --no-namespace-defs -o "$LIB_MODULES/carrier_pickup_cancel_response.py" $SCHEMAS/CarrierPickupCancelResponse.xsd
generateDS --no-namespace-defs -o "$LIB_MODULES/carrier_pickup_change_request.py" $SCHEMAS/CarrierPickupChangeRequest.xsd
generateDS --no-namespace-defs -o "$LIB_MODULES/carrier_pickup_change_response.py" $SCHEMAS/CarrierPickupChangeResponse.xsd
generateDS --no-namespace-defs -o "$LIB_MODULES/carrier_pickup_inquiry_request.py" $SCHEMAS/CarrierPickupInquiryRequest.xsd
generateDS --no-namespace-defs -o "$LIB_MODULES/carrier_pickup_inquiry_response.py" $SCHEMAS/CarrierPickupInquiryResponse.xsd
generateDS --no-namespace-defs -o "$LIB_MODULES/carrier_pickup_schedule_request.py" $SCHEMAS/CarrierPickupScheduleRequest.xsd
generateDS --no-namespace-defs -o "$LIB_MODULES/carrier_pickup_schedule_response.py" $SCHEMAS/CarrierPickupScheduleResponse.xsd
generateDS --no-namespace-defs -o "$LIB_MODULES/city_state_lookup_request.py" $SCHEMAS/CityStateLookupRequest.xsd
generateDS --no-namespace-defs -o "$LIB_MODULES/city_state_lookup_response.py" $SCHEMAS/CityStateLookupResponse.xsd
generateDS --no-namespace-defs -o "$LIB_MODULES/emrsv4_0_bulk_request.py" $SCHEMAS/EMRSV4.0BulkRequest.xsd
generateDS --no-namespace-defs -o "$LIB_MODULES/error.py" $SCHEMAS/Error.xsd
generateDS --no-namespace-defs -o "$LIB_MODULES/express_mail_commitment_request.py" $SCHEMAS/ExpressMailCommitmentRequest.xsd
generateDS --no-namespace-defs -o "$LIB_MODULES/express_mail_commitment_response.py" $SCHEMAS/ExpressMailCommitmentResponse.xsd
generateDS --no-namespace-defs -o "$LIB_MODULES/first_class_mail_request.py" $SCHEMAS/FirstClassMailRequest.xsd
generateDS --no-namespace-defs -o "$LIB_MODULES/first_class_mail_response.py" $SCHEMAS/FirstClassMailResponse.xsd
generateDS --no-namespace-defs -o "$LIB_MODULES/hfp_facility_info_request.py" $SCHEMAS/HFPFacilityInfoRequest.xsd
generateDS --no-namespace-defs -o "$LIB_MODULES/hfp_facility_info_response.py" $SCHEMAS/HFPFacilityInfoResponse.xsd
generateDS --no-namespace-defs -o "$LIB_MODULES/intl_rate_v2_request.py" $SCHEMAS/IntlRateV2Request.xsd
generateDS --no-namespace-defs -o "$LIB_MODULES/intl_rate_v2_response.py" $SCHEMAS/IntlRateV2Response.xsd
generateDS --no-namespace-defs -o "$LIB_MODULES/mrsv4_0_request.py" $SCHEMAS/MRSV4.0Request.xsd
generateDS --no-namespace-defs -o "$LIB_MODULES/pts_emailresult.py" $SCHEMAS/PTSEmailResult.xsd
generateDS --no-namespace-defs -o "$LIB_MODULES/pts_email_request.py" $SCHEMAS/PTSEmailRequest.xsd
generateDS --no-namespace-defs -o "$LIB_MODULES/ptspod_result.py" $SCHEMAS/PTSPODResult.xsd
generateDS --no-namespace-defs -o "$LIB_MODULES/ptspod_request.py" $SCHEMAS/PTSPodRequest.xsd
generateDS --no-namespace-defs -o "$LIB_MODULES/ptsrre_result.py" $SCHEMAS/PTSRREResult.xsd
generateDS --no-namespace-defs -o "$LIB_MODULES/ptsrre_request.py" $SCHEMAS/PTSRreRequest.xsd
generateDS --no-namespace-defs -o "$LIB_MODULES/ptstpod_result.py" $SCHEMAS/PTSTPODResult.xsd
generateDS --no-namespace-defs -o "$LIB_MODULES/ptstpod_request.py" $SCHEMAS/PTSTPodRequest.xsd
generateDS --no-namespace-defs -o "$LIB_MODULES/priority_mail_request.py" $SCHEMAS/PriorityMailRequest.xsd
generateDS --no-namespace-defs -o "$LIB_MODULES/priority_mail_response.py" $SCHEMAS/PriorityMailResponse.xsd
generateDS --no-namespace-defs -o "$LIB_MODULES/rate_v4_request.py" $SCHEMAS/RateV4Request.xsd
generateDS --no-namespace-defs -o "$LIB_MODULES/rate_v4_response.py" $SCHEMAS/RateV4Response.xsd
generateDS --no-namespace-defs -o "$LIB_MODULES/scan_request.py" $SCHEMAS/SCANRequest.xsd
generateDS --no-namespace-defs -o "$LIB_MODULES/scan_response.py" $SCHEMAS/SCANResponse.xsd
generateDS --no-namespace-defs -o "$LIB_MODULES/sdc_get_locations_request.py" $SCHEMAS/SDCGetLocationsRequest.xsd
generateDS --no-namespace-defs -o "$LIB_MODULES/sdc_get_locations_response.py" $SCHEMAS/SDCGetLocationsResponse.xsd
generateDS --no-namespace-defs -o "$LIB_MODULES/standard_b_request.py" $SCHEMAS/StandardBRequest.xsd
generateDS --no-namespace-defs -o "$LIB_MODULES/standard_b_response.py" $SCHEMAS/StandardBResponse.xsd
generateDS --no-namespace-defs -o "$LIB_MODULES/track_field_request.py" $SCHEMAS/TrackFieldRequest.xsd
generateDS --no-namespace-defs -o "$LIB_MODULES/track_request.py" $SCHEMAS/TrackRequest.xsd
generateDS --no-namespace-defs -o "$LIB_MODULES/track_response.py" $SCHEMAS/TrackResponse.xsd
generateDS --no-namespace-defs -o "$LIB_MODULES/zip_code_lookup_request.py" $SCHEMAS/ZipCodeLookupRequest.xsd
generateDS --no-namespace-defs -o "$LIB_MODULES/zip_code_lookup_response.py" $SCHEMAS/ZipCodeLookupResponse.xsd
generateDS --no-namespace-defs -o "$LIB_MODULES/evs_cancel_request.py" $SCHEMAS/eVSCancelRequest.xsd
generateDS --no-namespace-defs -o "$LIB_MODULES/evs_cancel_response.py" $SCHEMAS/eVSCancelResponse.xsd
generateDS --no-namespace-defs -o "$LIB_MODULES/evs_request.py" $SCHEMAS/eVSRequest.xsd
generateDS --no-namespace-defs -o "$LIB_MODULES/evs_response.py" $SCHEMAS/eVSResponse.xsd
generateDS --no-namespace-defs -o "$LIB_MODULES/evs_express_mail_intl_request.py" $SCHEMAS/eVSExpressMailIntlRequest.xsd
generateDS --no-namespace-defs -o "$LIB_MODULES/evs_express_mail_intl_response.py" $SCHEMAS/eVSExpressMailIntlResponse.xsd
generateDS --no-namespace-defs -o "$LIB_MODULES/evs_first_class_mail_intl_request.py" $SCHEMAS/eVSFirstClassMailIntlRequest.xsd
generateDS --no-namespace-defs -o "$LIB_MODULES/evs_first_class_mail_intl_response.py" $SCHEMAS/eVSFirstClassMailIntlResponse.xsd
generateDS --no-namespace-defs -o "$LIB_MODULES/evs_gxg_get_label_request.py" $SCHEMAS/eVSGXGGetLabelRequest.xsd
generateDS --no-namespace-defs -o "$LIB_MODULES/evs_gxg_get_label_response.py" $SCHEMAS/eVSGXGGetLabelResponse.xsd
generateDS --no-namespace-defs -o "$LIB_MODULES/evsi_cancel_request.py" $SCHEMAS/eVSICancelRequest.xsd
generateDS --no-namespace-defs -o "$LIB_MODULES/evsi_cancel_response.py" $SCHEMAS/eVSICancelResponse.xsd
generateDS --no-namespace-defs -o "$LIB_MODULES/evs_priority_mail_intl_request.py" $SCHEMAS/eVSPriorityMailIntlRequest.xsd
generateDS --no-namespace-defs -o "$LIB_MODULES/evs_priority_mail_intl_response.py" $SCHEMAS/eVSPriorityMailIntlResponse.xsd
2 changes: 0 additions & 2 deletions sdk/extensions/usps/karrio/mappers/usps/proxy.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import urllib.parse
from karrio.schemas.usps.track_field_request import TrackFieldRequest

from karrio.api.proxy import Proxy as BaseProxy
from karrio.core.utils import Serializable, Deserializable, XP, request as http
from karrio.mappers.usps.settings import Settings
Expand Down
Empty file.
Loading

0 comments on commit 92b2989

Please sign in to comment.