Пример #1
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")
Пример #2
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
Пример #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")
Пример #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
Пример #5
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)
Пример #6
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")
Пример #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")
Пример #8
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
Пример #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")
Пример #10
0
class Option(Enum):
    boxknight_signature_required = Spec.asFlag("signature_required")
    """ Unified Option type mapping """
    signature_confirmation = boxknight_signature_required