Beispiel #1
0
class ServiceOption(Enum):
    ups_saturday_delivery_indicator = Spec.asFlag("SaturdayDeliveryIndicator")
    ups_access_point_cod = Spec.asValue("AccessPointCOD", float)
    ups_deliver_to_addressee_only_indicator = Spec.asFlag(
        "DeliverToAddresseeOnlyIndicator")
    ups_direct_delivery_only_indicator = Spec.asFlag(
        "DirectDeliveryOnlyIndicator")
    ups_cod = Spec.asValue("COD", float)
    ups_delivery_confirmation = Spec.asFlag("DeliveryConfirmation")
    ups_return_of_document_indicator = Spec.asFlag("ReturnOfDocumentIndicator")
    ups_carbonneutral_indicator = Spec.asFlag("UPScarbonneutralIndicator")
    ups_certificate_of_origin_indicator = Spec.asFlag(
        "CertificateOfOriginIndicator")
    ups_pickup_options = Spec.asFlag("PickupOptions")
    ups_delivery_options = Spec.asFlag("DeliveryOptions")
    ups_restricted_articles = Spec.asFlag("RestrictedArticles")
    ups_shipper_export_declaration_indicator = Spec.asFlag(
        "ShipperExportDeclarationIndicator")
    ups_commercial_invoice_removal_indicator = Spec.asFlag(
        "CommercialInvoiceRemovalIndicator")
    ups_import_control = Spec.asFlag("ImportControl")
    ups_return_service = Spec.asFlag("ReturnService")
    ups_sdl_shipment_indicator = Spec.asFlag("SDLShipmentIndicator")
    ups_epra_indicator = Spec.asFlag("EPRAIndicator")
    """ Unified Option type mapping """
    cash_on_delivery = ups_cod
Beispiel #2
0
class ShipmentOption(Enum):
    usps_registered_mail = Spec.asKey("103")
    usps_insurance_global_express_guaranteed = Spec.asValue("106")
    usps_insurance_express_mail_international = Spec.asValue("107")
    usps_insurance_priority_mail_international = Spec.asValue("108")
    usps_return_receipt = Spec.asKey("105")
    usps_certificate_of_mailing = Spec.asKey("100")
    usps_electronic_usps_delivery_confirmation_international = Spec.asKey(
        "109")
    """ Non official options """
    usps_option_machinable_item = Spec.asFlag("usps_option_machinable_item")
    usps_option_abandon_non_delivery = Spec.asKey("ABANDON")
    usps_option_return_non_delivery = Spec.asKey("RETURN")
    usps_option_redirect_non_delivery = Spec.asValue("REDIRECT", Address)
Beispiel #3
0
class Option(Enum):
    """universal shipment options (special services)"""
    currency = Spec.asValue("currency")
    insurance = Spec.asValue("insurance", float)
    cash_on_delivery = Spec.asValue("COD", float)
    label_format = Spec.asValue("label_format")
    shipment_date = Spec.asValue("shipment_date")
    label_printing = Spec.asValue("label_printing")
    notification_emails = Spec.asValue("notification_emails")
    signature_confirmation = Spec.asFlag("signature_confirmation")
Beispiel #4
0
class Option(Enum):
    """universal shipment options (special services)"""

    currency = Spec.asValue("currency")
    insurance = Spec.asValue("insurance", float)
    cash_on_delivery = Spec.asValue("COD", float)
    shipment_date = Spec.asValue("shipment_date")
    dangerous_good = Spec.asFlag("dangerous_good")
    declared_value = Spec.asValue("declared_value", float)
    email_notification = Spec.asFlag("email_notification")
    email_notification_to = Spec.asValue("email_notification_to")
    signature_confirmation = Spec.asFlag("signature_confirmation")
Beispiel #5
0
class ShipmentOption(Flag):
    tnt_priority = Spec.asKey('PR')
    tnt_insurance = Spec.asValue('IN', float)
    tnt_enhanced_liability = Spec.asKey('EL')
    tnt_dangerous_goods_fully_regulated = Spec.asKey('HZ')
    tnt_dangerous_goods_in_limited_quantities = Spec.asKey('LQ')
    tnt_dry_ice_shipments = Spec.asKey('DI')
    tnt_biological_substances = Spec.asKey('BB')
    tnt_lithium_batteries = Spec.asKey('LB')
    tnt_dangerous_goods_in_excepted_quantities = Spec.asKey('EQ')
    tnt_radioactive_materials_in_excepted_packages = Spec.asKey('XP')
    tnt_pre_delivery_notification = Spec.asKey('SMS')

    tnt_division_international_shipments = Spec.asKey('G')
    tnt_division_global_link_domestic = Spec.asKey('D')
    tnt_division_german_domestic = Spec.asKey('H')
    tnt_division_uk_domestic = Spec.asKey('010')

    insurance = tnt_insurance
Beispiel #6
0
class ShipmentOption(Enum):
    usps_insurance = Spec.asValue("100", float)
    usps_insurance_priority_mail_express = Spec.asValue("101", float)
    usps_return_receipt = Spec.asKey("102")
    usps_collect_on_delivery = Spec.asKey("103")
    usps_certificate_of_mailing_form_3665 = Spec.asKey("104")
    usps_certified_mail = Spec.asKey("105")
    usps_tracking = Spec.asKey("106")
    usps_signature_confirmation = Spec.asKey("108")
    usps_registered_mail = Spec.asKey("109")
    usps_return_receipt_electronic = Spec.asKey("110")
    usps_registered_mail_cod_collection_charge = Spec.asKey("112")
    usps_return_receipt_priority_mail_express = Spec.asKey("118")
    usps_adult_signature_required = Spec.asKey("119")
    usps_adult_signature_restricted_delivery = Spec.asKey("120")
    usps_insurance_priority_mail = Spec.asValue("125", float)
    usps_tracking_electronic = Spec.asKey("155")
    usps_signature_confirmation_electronic = Spec.asKey("156")
    usps_certificate_of_mailing_form_3817 = Spec.asKey("160")
    usps_priority_mail_express_10_30_am_delivery = Spec.asKey("161")
    usps_certified_mail_restricted_delivery = Spec.asKey("170")
    usps_certified_mail_adult_signature_required = Spec.asKey("171")
    usps_certified_mail_adult_signature_restricted_delivery = Spec.asKey("172")
    usps_signature_confirm_restrict_delivery = Spec.asKey("173")
    usps_signature_confirmation_electronic_restricted_delivery = Spec.asKey(
        "174")
    usps_collect_on_delivery_restricted_delivery = Spec.asKey("175")
    usps_registered_mail_restricted_delivery = Spec.asKey("176")
    usps_insurance_restricted_delivery = Spec.asValue("177", float)
    usps_insurance_restrict_delivery_priority_mail = Spec.asValue("179", float)
    usps_insurance_restrict_delivery_priority_mail_express = Spec.asValue(
        "178", float)
    usps_insurance_restrict_delivery_bulk_only = Spec.asValue("180", float)
    usps_scan_retention = Spec.asKey("181")
    usps_scan_signature_retention = Spec.asKey("182")
    usps_special_handling_fragile = Spec.asKey("190")
    """ Non official options """
    usps_option_machinable_item = Spec.asFlag("usps_option_machinable_item")
    usps_option_ground_only = Spec.asFlag("usps_option_ground_only")
    usps_option_return_service_info = Spec.asFlag(
        "usps_option_return_service_info")
    usps_option_ship_info = Spec.asFlag("usps_option_ship_info")
    """ Unified Shipment Option type mapping """
    insurance = usps_insurance
Beispiel #7
0
class Option(Flag):
    eshipper_saturday_pickup_required = Spec.asFlag("saturdayPickupRequired")
    eshipper_homeland_security = Spec.asFlag("homelandSecurity")
    eshipper_exhibition_convention_site = Spec.asFlag(
        "exhibitionConventionSite")
    eshipper_military_base_delivery = Spec.asFlag("militaryBaseDelivery")
    eshipper_customs_in_bond_freight = Spec.asFlag("customsIn_bondFreight")
    eshipper_limited_access = Spec.asFlag("limitedAccess")
    eshipper_excess_length = Spec.asFlag("excessLength")
    eshipper_tailgate_pickup = Spec.asFlag("tailgatePickup")
    eshipper_residential_pickup = Spec.asFlag("residentialPickup")
    eshipper_cross_border_fee = Spec.asFlag("crossBorderFee")
    eshipper_notify_recipient = Spec.asFlag("notifyRecipient")
    eshipper_single_shipment = Spec.asFlag("singleShipment")
    eshipper_tailgate_delivery = Spec.asFlag("tailgateDelivery")
    eshipper_residential_delivery = Spec.asFlag("residentialDelivery")
    eshipper_insurance_type = Spec.asValue("insuranceType", float)
    eshipper_inside_delivery = Spec.asFlag("insideDelivery")
    eshipper_is_saturday_service = Spec.asFlag("isSaturdayService")
    eshipper_dangerous_goods_type = Spec.asFlag("dangerousGoodsType")
    eshipper_stackable = Spec.asFlag("stackable")
Beispiel #8
0
class SpecialServiceCode(Enum):
    dhl_logistics_services = Spec.asKey("0A")
    dhl_mailroom_management = Spec.asKey("0B")
    dhl_pallet_administration = Spec.asKey("0C")
    dhl_warehousing = Spec.asKey("0D")
    dhl_express_logistics_centre = Spec.asKey("0E")
    dhl_strategic_parts_centre = Spec.asKey("0F")
    dhl_local_distribution_centre = Spec.asKey("0G")
    dhl_terminal_handling = Spec.asKey("0H")
    dhl_cross_docking = Spec.asKey("0I")
    dhl_inventory_management = Spec.asKey("0J")
    dhl_loading_unloading = Spec.asKey("0K")
    dhl_product_kitting = Spec.asKey("0L")
    dhl_priority_account_desk = Spec.asKey("0M")
    dhl_document_archiving = Spec.asKey("0N")
    dhl_saturday_delivery = Spec.asKey("AA")
    dhl_saturday_pickup = Spec.asKey("AB")
    dhl_holiday_delivery = Spec.asKey("AC")
    dhl_holiday_pickup = Spec.asKey("AD")
    dhl_domestic_saturday_delivery = Spec.asKey("AG")
    dhl_standard = Spec.asKey("BA")
    dhl_globalmail_item = Spec.asKey("BB")
    dhl_letter = Spec.asKey("BC")
    dhl_packet = Spec.asKey("BD")
    dhl_letter_plus = Spec.asKey("BE")
    dhl_packet_plus = Spec.asKey("BF")
    dhl_elevated_risk = Spec.asKey("CA")
    dhl_restricted_destination = Spec.asKey("CB")
    dhl_security_validation = Spec.asKey("CC")
    dhl_secure_protection = Spec.asKey("CD")
    dhl_proof_of_identity = Spec.asKey("CE")
    dhl_secure_storage = Spec.asKey("CF")
    dhl_diplomatic_material = Spec.asKey("CG")
    dhl_smart_sensor = Spec.asKey("CH")
    dhl_visa_program = Spec.asKey("CI")
    dhl_onboard_courier = Spec.asKey("CJ")
    dhl_secure_safebox = Spec.asKey("CK")
    dhl_smart_sentry = Spec.asKey("CL")
    dhl_split_duties_and_tax = Spec.asKey("DC")
    dhl_duties_and_taxes_paid = Spec.asKey("DD")
    dhl_receiver_paid = Spec.asKey("DE")
    dhl_duties_and_taxes_unpaid = Spec.asKey("DS")
    dhl_import_billing = Spec.asKey("DT")
    dhl_importer_of_record = Spec.asKey("DU")
    dhl_go_green_carbon_neutral = Spec.asKey("EA")
    dhl_go_green_carbon_footprint = Spec.asKey("EB")
    dhl_go_green_carbon_estimate = Spec.asKey("EC")
    dhl_fuel_surcharge_b = Spec.asKey("FB")
    dhl_fuel_surcharge_c = Spec.asKey("FC")
    dhl_fuel_surcharge_f = Spec.asKey("FF")
    dhl_smartphone_box = Spec.asKey("GA")
    dhl_laptop_box = Spec.asKey("GB")
    dhl_bottle_box = Spec.asKey("GC")
    dhl_repacking = Spec.asKey("GD")
    dhl_tablet_box = Spec.asKey("GE")
    dhl_filler_material = Spec.asKey("GF")
    dhl_packaging = Spec.asKey("GG")
    dhl_diplomatic_bag = Spec.asKey("GH")
    dhl_pallet_box = Spec.asKey("GI")
    dhl_lock_box = Spec.asKey("GJ")
    dhl_lithium_ion_pi965_section_ii = Spec.asKey("HB")
    dhl_dry_ice_un1845 = Spec.asKey("HC")
    dhl_lithium_ion_pi965_966_section_ii = Spec.asKey("HD")
    dhl_dangerous_goods = Spec.asKey("HE")
    dhl_perishable_cargo = Spec.asKey("HG")
    dhl_excepted_quantity = Spec.asKey("HH")
    dhl_spill_cleaning = Spec.asKey("HI")
    dhl_consumer_commodities = Spec.asKey("HK")
    dhl_limited_quantities_adr = Spec.asKey("HL")
    dhl_lithium_metal_pi969_section_ii = Spec.asKey("HM")
    dhl_adr_load_exemption = Spec.asKey("HN")
    dhl_lithium_ion_pi967_section_ii = Spec.asKey("HV")
    dhl_lithium_metal_pi970_section_ii = Spec.asKey("HW")
    dhl_biological_un3373 = Spec.asKey("HY")
    dhl_extended_liability = Spec.asKey("IB")
    dhl_contract_insurance = Spec.asKey("IC")
    dhl_shipment_insurance = Spec.asKeyVal("II", float)
    dhl_delivery_notification = Spec.asKeyVal("JA")
    dhl_pickup_notification = Spec.asKey("JC")
    dhl_proactive_tracking = Spec.asKey("JD")
    dhl_performance_reporting = Spec.asKey("JE")
    dhl_prealert_notification = Spec.asKey("JY")
    dhl_change_of_billing = Spec.asKey("KA")
    dhl_cash_on_delivery = Spec.asValue("KB", float)
    dhl_printed_invoice = Spec.asKey("KD")
    dhl_waybill_copy = Spec.asKey("KE")
    dhl_import_paperwork = Spec.asKey("KF")
    dhl_payment_on_pickup = Spec.asKey("KY")
    dhl_shipment_intercept = Spec.asKey("LA")
    dhl_shipment_redirect = Spec.asKey("LC")
    dhl_storage_at_facility = Spec.asKey("LE")
    dhl_cold_storage = Spec.asKey("LG")
    dhl_specific_routing = Spec.asKey("LH")
    dhl_service_recovery = Spec.asKey("LV")
    dhl_alternative_address = Spec.asKey("LW")
    dhl_hold_for_collection = Spec.asKey("LX")
    dhl_address_correction_a = Spec.asKey("MA")
    dhl_address_correction_b = Spec.asKey("MB")
    dhl_neutral_delivery = Spec.asKey("NN")
    dhl_remote_area_pickup = Spec.asKey("OB")
    dhl_remote_area_delivery_c = Spec.asKey("OC")
    dhl_out_of_service_area = Spec.asKey("OE")
    dhl_remote_area_delivery_o = Spec.asKey("OO")
    dhl_shipment_preparation = Spec.asKey("PA")
    dhl_shipment_labeling = Spec.asKey("PB")
    dhl_shipment_consolidation = Spec.asKey("PC")
    dhl_relabeling_data_entry = Spec.asKey("PD")
    dhl_preprinted_waybill = Spec.asKey("PE")
    dhl_piece_labelling = Spec.asKey("PS")
    dhl_data_staging_03 = Spec.asKey("PT")
    dhl_data_staging_06 = Spec.asKey("PU")
    dhl_data_staging_12 = Spec.asKey("PV")
    dhl_data_staging_24 = Spec.asKey("PW")
    dhl_standard_pickup = Spec.asKey("PX")
    dhl_scheduled_pickup = Spec.asKey("PY")
    dhl_dedicated_pickup = Spec.asKey("QA")
    dhl_early_pickup = Spec.asKey("QB")
    dhl_late_pickup = Spec.asKey("QD")
    dhl_residential_pickup = Spec.asKey("QE")
    dhl_loading_waiting = Spec.asKey("QF")
    dhl_bypass_injection = Spec.asKey("QH")
    dhl_direct_injection = Spec.asKey("QI")
    dhl_drop_off_at_facility = Spec.asKey("QY")
    dhl_delivery_signature = Spec.asKey("SA")
    dhl_content_signature = Spec.asKey("SB")
    dhl_named_signature = Spec.asKey("SC")
    dhl_adult_signature = Spec.asKey("SD")
    dhl_contract_signature = Spec.asKey("SE")
    dhl_alternative_signature = Spec.asKey("SW")
    dhl_no_signature_required = Spec.asKey("SX")
    dhl_dedicated_delivery = Spec.asKey("TA")
    dhl_early_delivery = Spec.asKey("TB")
    dhl_time_window_delivery = Spec.asKey("TC")
    dhl_evening_delivery = Spec.asKey("TD")
    dhl_delivery_on_appointment = Spec.asKey("TE")
    dhl_return_undeliverable = Spec.asKey("TG")
    dhl_swap_delivery = Spec.asKey("TH")
    dhl_unloading_waiting = Spec.asKey("TJ")
    dhl_residential_delivery = Spec.asKey("TK")
    dhl_repeat_delivery = Spec.asKey("TN")
    dhl_alternative_date = Spec.asKey("TT")
    dhl_no_partial_delivery = Spec.asKey("TU")
    dhl_service_point_24_7 = Spec.asKey("TV")
    dhl_pre_9_00 = Spec.asKey("TW")
    dhl_pre_10_30 = Spec.asKey("TX")
    dhl_pre_12_00 = Spec.asKey("TY")
    dhl_thermo_packaging = Spec.asKey("UA")
    dhl_ambient_vialsafe = Spec.asKey("UB")
    dhl_ambient_non_insulated = Spec.asKey("UC")
    dhl_ambient_insulated = Spec.asKey("UD")
    dhl_ambient_extreme = Spec.asKey("UE")
    dhl_chilled_box_s = Spec.asKey("UF")
    dhl_chilled_box_m = Spec.asKey("UG")
    dhl_chilled_box_l = Spec.asKey("UH")
    dhl_frozen_no_ice_s = Spec.asKey("UI")
    dhl_frozen_no_ice_m = Spec.asKey("UJ")
    dhl_frozen_no_ice_l = Spec.asKey("UK")
    dhl_frozen_ice_sticks_s = Spec.asKey("UL")
    dhl_frozen_ice_sticks_m = Spec.asKey("UM")
    dhl_frozen_ice_sticks_l = Spec.asKey("UN")
    dhl_frozen_ice_plates_s = Spec.asKey("UO")
    dhl_frozen_ice_plates_m = Spec.asKey("UP")
    dhl_frozen_ice_plates_l = Spec.asKey("UQ")
    dhl_combination_no_ice = Spec.asKey("UR")
    dhl_combination_dry_ice = Spec.asKey("US")
    dhl_frozen_ice_sticks_e = Spec.asKey("UT")
    dhl_frozen_ice_plates_e = Spec.asKey("UV")
    dhl_customer_tcp_1 = Spec.asKey("UW")
    dhl_thermo_accessories = Spec.asKey("VA")
    dhl_absorbent_sleeve = Spec.asKey("VB")
    dhl_cooland_wrap = Spec.asKey("VC")
    dhl_dry_ice_supplies = Spec.asKey("VD")
    dhl_pressure_bag_s = Spec.asKey("VE")
    dhl_pressure_bag_m = Spec.asKey("VF")
    dhl_pressure_bag_l = Spec.asKey("VG")
    dhl_informal_clearance = Spec.asKey("WA")
    dhl_formal_clearance = Spec.asKey("WB")
    dhl_payment_deferment = Spec.asKey("WC")
    dhl_clearance_authorization = Spec.asKey("WD")
    dhl_multiline_entry = Spec.asKey("WE")
    dhl_post_clearance_modification = Spec.asKey("WF")
    dhl_handover_to_broker = Spec.asKey("WG")
    dhl_physical_intervention = Spec.asKey("WH")
    dhl_bio_phyto_veterinary_controls = Spec.asKey("WI")
    dhl_obtaining_permits_and_licences = Spec.asKey("WJ")
    dhl_bonded_storage = Spec.asKey("WK")
    dhl_bonded_transit_documents = Spec.asKey("WL")
    dhl_temporary_import_export = Spec.asKey("WM")
    dhl_under_bond_guarantee = Spec.asKey("WN")
    dhl_export_declaration = Spec.asKey("WO")
    dhl_exporter_validation = Spec.asKey("WP")
    dhl_certificate_of_origin = Spec.asKey("WQ")
    dhl_document_translation = Spec.asKey("WR")
    dhl_personal_effects = Spec.asKey("WS")
    dhl_paperless_trade = Spec.asKey("WY")
    dhl_import_export_taxes = Spec.asKey("XB")
    dhl_unrecoverable_origin_tax = Spec.asKey("XC")
    dhl_quarantine_inspection = Spec.asKey("XD")
    dhl_merchandise_process = Spec.asKey("XE")
    dhl_domestic_postal_tax = Spec.asKey("XF")
    dhl_tier_two_tax = Spec.asKey("XG")
    dhl_tier_three_tax = Spec.asKey("XH")
    dhl_import_penalty = Spec.asKey("XI")
    dhl_cargo_zone_process = Spec.asKey("XJ")
    dhl_import_export_duties = Spec.asKey("XX")
    dhl_premium_09_00 = Spec.asKey("Y1")
    dhl_premium_10_30 = Spec.asKey("Y2")
    dhl_premium_12_00 = Spec.asKey("Y3")
    dhl_over_sized_piece_b = Spec.asKey("YB")
    dhl_over_handled_piece_c = Spec.asKey("YC")
    dhl_multipiece_shipment = Spec.asKey("YE")
    dhl_over_weight_piece_f = Spec.asKey("YF")
    dhl_over_sized_piece_g = Spec.asKey("YG")
    dhl_over_handled_piece_h = Spec.asKey("YH")
    dhl_premium_9_00_i = Spec.asKey("YI")
    dhl_premium_10_30_j = Spec.asKey("YJ")
    dhl_premium_12_00_k = Spec.asKey("YK")
    dhl_paket_shipment = Spec.asKey("YV")
    dhl_breakbulk_mother = Spec.asKey("YW")
    dhl_breakbulk_baby = Spec.asKey("YX")
    dhl_over_weight_piece_y = Spec.asKey("YY")
    dhl_customer_claim = Spec.asKey("ZA")
    dhl_damage_compensation = Spec.asKey("ZB")
    dhl_loss_compensation = Spec.asKey("ZC")
    dhl_customer_rebate = Spec.asKey("ZD")
    dhl_e_com_discount = Spec.asKey("ZE")
    """ Unified Option type mapping """
    insurance = dhl_shipment_insurance
    cash_on_delivery = dhl_cash_on_delivery
Beispiel #9
0
class Option(Flag):
    ics_courier_cost_center = Spec.asValue("CostCenter")
    ics_courier_special_instruction = Spec.asValue("SpecialInstruction")
    ics_courier_no_signature_required = Spec.asFlag("NoSignatureRequired")
Beispiel #10
0
class Option(Flag):
    asendia_sub_account_number = Spec.asValue("asendia_sub_account_number")
    asendia_processing_location = Spec.asValue("asendia_processing_location")