コード例 #1
0
ファイル: units.py プロジェクト: iliaaz/purplship
class Option(Enum):
    dicom_common_declared_value = Spec.asKeyVal("DCV")
    dicom_common_dangerous_goods = Spec.asKey("DGG")
    dicom_common_residential_delivery = Spec.asKey("PHD")
    dicom_common_tradeshow_delivery = Spec.asKey("TRD")
    dicom_common_signature_not_required = Spec.asKey("SNR")
    dicom_parcel_ca_hold_for_pickup = Spec.asKey("HFP")
    dicom_parcel_ca_non_conveyable = Spec.asKey("NCV")
    dicom_parcel_ca_residential_delivery_signature = Spec.asKey("PHDS")
    dicom_parcel_ca_weekend_delivery = Spec.asKey("WKD")
    dicom_freight_construction_site_delivery = Spec.asKey("CNSTD")
    dicom_freight_collect_on_delivery = Spec.asKeyVal("COD")
    dicom_freight_heating = Spec.asKey("HEAT")
    dicom_freight_inside_delivery = Spec.asKey("IDEL")
    dicom_freight_residential_delivery_signature = Spec.asKey("PHDS")
    dicom_freight_residential_pickup = Spec.asKey("PHPU")
    dicom_freight_tailgate_delivery = Spec.asKey("TGT")
    dicom_freight_tailgate_pickup = Spec.asKey("TGTPU")
    dicom_parcel_us_adult_signature = Spec.asKey("ADLSIG")
    dicom_parcel_us_direct_signature = Spec.asKey("DIRSIG")
    dicom_parcel_us_saturday_delivery = Spec.asKey("SAT")
    dicom_parcel_us_sunday_delivery = Spec.asKey("SUN")
    dicom_parcel_us_residential_delivery_signature = Spec.asKey("PHDS")
    dicom_parcel_us_earliest_possible = Spec.asKey("EP")
    dicom_parcel_us_priority_service = Spec.asKey("PR")
    dicom_parcel_us_pouch_service = Spec.asKey("PO")
    dicom_parcel_us_pallet_service_pa = Spec.asKey("PA")
    dicom_parcel_us_pallet_service_rap = Spec.asKey("RAP")
    dicom_parcel_us_pallet_service_nd = Spec.asKey("ND")
コード例 #2
0
ファイル: units.py プロジェクト: iliaaz/purplship
class OptionCode(Enum):
    canadapost_signature = Spec.asKey("SO")
    canadapost_coverage = Spec.asKeyVal("COV", float)
    canadapost_collect_on_delivery = Spec.asKeyVal("COD", float)
    canadapost_proof_of_age_required_18 = Spec.asKey("PA18")
    canadapost_proof_of_age_required_19 = Spec.asKey("PA19")
    canadapost_card_for_pickup = Spec.asKey("HFP")
    canadapost_do_not_safe_drop = Spec.asKey("DNS")
    canadapost_leave_at_door = Spec.asKey("LAD")
    canadapost_deliver_to_post_office = Spec.asKey("D2PO")
    canadapost_return_at_senders_expense = Spec.asKey("RASE")
    canadapost_return_to_sender = Spec.asKey("RTS")
    canadapost_abandon = Spec.asKey("ABAN")
    """ Unified Option type mapping """
    insurance = canadapost_coverage
    cash_on_delivery = canadapost_collect_on_delivery
    signature_confirmation = canadapost_signature
コード例 #3
0
ファイル: units.py プロジェクト: derekcao0226/purplship
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.asKey("KB")
    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
コード例 #4
0
class SpecialServiceType(Enum):
    fedex_blind_shipment = Spec.asKey("BLIND_SHIPMENT")
    fedex_broker_select_option = Spec.asKey("BROKER_SELECT_OPTION")
    fedex_call_before_delivery = Spec.asKey("CALL_BEFORE_DELIVERY")
    fedex_cod = Spec.asKeyVal("COD")
    fedex_cod_remittance = Spec.asKey("COD_REMITTANCE")
    fedex_custom_delivery_window = Spec.asKey("CUSTOM_DELIVERY_WINDOW")
    fedex_cut_flowers = Spec.asKey("CUT_FLOWERS")
    fedex_dangerous_goods = Spec.asKey("DANGEROUS_GOODS")
    fedex_delivery_on_invoice_acceptance = Spec.asKey(
        "DELIVERY_ON_INVOICE_ACCEPTANCE")
    fedex_detention = Spec.asKey("DETENTION")
    fedex_do_not_break_down_pallets = Spec.asKey("DO_NOT_BREAK_DOWN_PALLETS")
    fedex_do_not_stack_pallets = Spec.asKey("DO_NOT_STACK_PALLETS")
    fedex_dry_ice = Spec.asKey("DRY_ICE")
    fedex_east_coast_special = Spec.asKey("EAST_COAST_SPECIAL")
    fedex_electronic_trade_documents = Spec.asKey("ELECTRONIC_TRADE_DOCUMENTS")
    fedex_event_notification = Spec.asKey("EVENT_NOTIFICATION")
    fedex_exclude_from_consolidation = Spec.asKey("EXCLUDE_FROM_CONSOLIDATION")
    fedex_exclusive_use = Spec.asKey("EXCLUSIVE_USE")
    fedex_exhibition_delivery = Spec.asKey("EXHIBITION_DELIVERY")
    fedex_exhibition_pickup = Spec.asKey("EXHIBITION_PICKUP")
    fedex_expedited_alternate_delivery_route = Spec.asKey(
        "EXPEDITED_ALTERNATE_DELIVERY_ROUTE")
    fedex_expedited_one_day_earlier = Spec.asKey("EXPEDITED_ONE_DAY_EARLIER")
    fedex_expedited_service_monitoring_and_delivery = Spec.asKey(
        "EXPEDITED_SERVICE_MONITORING_AND_DELIVERY")
    fedex_expedited_standard_day_early_delivery = Spec.asKey(
        "EXPEDITED_STANDARD_DAY_EARLY_DELIVERY")
    fedex_extra_labor = Spec.asKey("EXTRA_LABOR")
    fedex_extreme_length = Spec.asKey("EXTREME_LENGTH")
    fedex_one_rate = Spec.asKey("FEDEX_ONE_RATE")
    fedex_flatbed_trailer = Spec.asKey("FLATBED_TRAILER")
    fedex_food = Spec.asKey("FOOD")
    fedex_freight_guarantee = Spec.asKey("FREIGHT_GUARANTEE")
    fedex_freight_to_collect = Spec.asKey("FREIGHT_TO_COLLECT")
    fedex_future_day_shipment = Spec.asKey("FUTURE_DAY_SHIPMENT")
    fedex_hold_at_location = Spec.asKey("HOLD_AT_LOCATION")
    fedex_holiday_delivery = Spec.asKey("HOLIDAY_DELIVERY")
    fedex_holiday_guarantee = Spec.asKey("HOLIDAY_GUARANTEE")
    fedex_home_delivery_premium = Spec.asKey("HOME_DELIVERY_PREMIUM")
    fedex_inside_delivery = Spec.asKey("INSIDE_DELIVERY")
    fedex_inside_pickup = Spec.asKey("INSIDE_PICKUP")
    fedex_international_controlled_export_service = Spec.asKey(
        "INTERNATIONAL_CONTROLLED_EXPORT_SERVICE")
    fedex_international_mail_service = Spec.asKey("INTERNATIONAL_MAIL_SERVICE")
    fedex_international_traffic_in_arms_regulations = Spec.asKey(
        "INTERNATIONAL_TRAFFIC_IN_ARMS_REGULATIONS")
    fedex_liftgate_delivery = Spec.asKey("LIFTGATE_DELIVERY")
    fedex_liftgate_pickup = Spec.asKey("LIFTGATE_PICKUP")
    fedex_limited_access_delivery = Spec.asKey("LIMITED_ACCESS_DELIVERY")
    fedex_limited_access_pickup = Spec.asKey("LIMITED_ACCESS_PICKUP")
    fedex_marking_or_tagging = Spec.asKey("MARKING_OR_TAGGING")
    fedex_non_business_time = Spec.asKey("NON_BUSINESS_TIME")
    fedex_pallet_shrinkwrap = Spec.asKey("PALLET_SHRINKWRAP")
    fedex_pallet_weight_allowance = Spec.asKey("PALLET_WEIGHT_ALLOWANCE")
    fedex_pallets_provided = Spec.asKey("PALLETS_PROVIDED")
    fedex_pending_complete = Spec.asKey("PENDING_COMPLETE")
    fedex_pending_shipment = Spec.asKey("PENDING_SHIPMENT")
    fedex_permit = Spec.asKey("PERMIT")
    fedex_pharmacy_delivery = Spec.asKey("PHARMACY_DELIVERY")
    fedex_poison = Spec.asKey("POISON")
    fedex_port_delivery = Spec.asKey("PORT_DELIVERY")
    fedex_port_pickup = Spec.asKey("PORT_PICKUP")
    fedex_pre_delivery_notification = Spec.asKey("PRE_DELIVERY_NOTIFICATION")
    fedex_pre_eig_processing = Spec.asKey("PRE_EIG_PROCESSING")
    fedex_pre_multiplier_processing = Spec.asKey("PRE_MULTIPLIER_PROCESSING")
    fedex_protection_from_freezing = Spec.asKey("PROTECTION_FROM_FREEZING")
    fedex_regional_mall_delivery = Spec.asKey("REGIONAL_MALL_DELIVERY")
    fedex_regional_mall_pickup = Spec.asKey("REGIONAL_MALL_PICKUP")
    fedex_return_shipment = Spec.asKey("RETURN_SHIPMENT")
    fedex_returns_clearance = Spec.asKey("RETURNS_CLEARANCE")
    fedex_returns_clearance_special_routing_required = Spec.asKey(
        "RETURNS_CLEARANCE_SPECIAL_ROUTING_REQUIRED")
    fedex_saturday_delivery = Spec.asKey("SATURDAY_DELIVERY")
    fedex_saturday_pickup = Spec.asKey("SATURDAY_PICKUP")
    fedex_shipment_assembly = Spec.asKey("SHIPMENT_ASSEMBLY")
    fedex_sort_and_segregate = Spec.asKey("SORT_AND_SEGREGATE")
    fedex_special_delivery = Spec.asKey("SPECIAL_DELIVERY")
    fedex_special_equipment = Spec.asKey("SPECIAL_EQUIPMENT")
    fedex_storage = Spec.asKey("STORAGE")
    fedex_sunday_delivery = Spec.asKey("SUNDAY_DELIVERY")
    fedex_third_party_consignee = Spec.asKey("THIRD_PARTY_CONSIGNEE")
    fedex_top_load = Spec.asKey("TOP_LOAD")
    fedex_usps_delivery = Spec.asKey("USPS_DELIVERY")
    fedex_usps_pickup = Spec.asKey("USPS_PICKUP")
    fedex_weighing = Spec.asKey("WEIGHING")
    """ Unified Option type mapping """
    notification = fedex_event_notification
    cash_on_delivery = fedex_cod