Esempio n. 1
0
class Service(Enum):
    purolator_dangerous_goods = Spec.asKey("Dangerous Goods")
    purolator_chain_of_signature = Spec.asKey("Chain of Signature")
    purolator_express_cheque = Spec.asKey("ExpressCheque")
    purolator_hold_for_pickup = Spec.asKey("Hold For Pickup")
    purolator_return_services = Spec.asKey("Return Services")
    purolator_saturday_service = Spec.asKey("Saturday Service")
    purolator_origin_signature_not_required = Spec.asKey(
        "Origin Signature Not Required (OSNR)")
    purolator_adult_signature_required = Spec.asKey(
        "Adult Signature Required (ASR)")
    purolator_special_handling = Spec.asKey("Special Handling")
    """Purplship specific option"""
    purolator_show_alternative_services = Spec.asFlag(
        "Show Alternate Services")
Esempio n. 2
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")
Esempio n. 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")
Esempio n. 4
0
class Option(Flag):
    canpar_cash_on_delivery = Spec.asKey('Y')
    canpar_dangerous_goods = Spec.asFlag('dg')
    canpar_extra_care = Spec.asFlag('xc')
    canpar_ten_am = Spec.asFlag('A')
    canpar_noon = Spec.asFlag('B')
    canpar_no_signature_required = Spec.asFlag('2')
    canpar_not_no_signature_required = Spec.asFlag('0')
    canpar_saturday = Spec.asFlag('S')
    """ Unified Option type mapping """
    cash_on_delivery = canpar_cash_on_delivery
Esempio n. 5
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
Esempio n. 6
0
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")
Esempio n. 7
0
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
Esempio n. 8
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")
Esempio n. 9
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)
Esempio n. 10
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.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
Esempio n. 11
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
Esempio n. 12
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
Esempio n. 13
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
Esempio n. 14
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")
Esempio n. 15
0
class Option(Enum):
    boxknight_signature_required = Spec.asFlag("signature_required")
    """ Unified Option type mapping """
    signature_confirmation = boxknight_signature_required
Esempio n. 16
0
class Option(Flag):
    asendia_sub_account_number = Spec.asValue("asendia_sub_account_number")
    asendia_processing_location = Spec.asValue("asendia_processing_location")