ChemPal Documentation - v1.6.0
    Preparing search index...

    Interface PurchaseRestriction

    Per-option purchase restriction parsed from a supplier's product text, used to hide products a given user cannot legally or logistically buy. Every field is a restriction signal; an absent field means "not restricted in that way".

    const r: PurchaseRestriction = { excludedCountries: ["US", "DE"], buyerRestricted: true };
    
    interface PurchaseRestriction {
        excludedCountries?: valueof<any>[];
        euOnly?: boolean;
        restrictedDelivery?: boolean;
        buyerRestricted?: boolean;
        declarationOfUseRequired?: boolean;
        note?: string;
    }
    Index

    Properties

    excludedCountries?: valueof<any>[]

    ISO 3166-1 alpha-2 codes this option cannot ship to. A user whose location is in this list cannot buy it.

    ["US", "DE"]
    
    euOnly?: boolean

    True when the option ships only within the EU (an allowlist ≈ EU). Users outside the EU cannot buy it.

    true
    
    restrictedDelivery?: boolean

    True when a delivery restriction was detected but could not be resolved to a specific country or the EU. Excluded for everyone to be safe.

    true
    
    buyerRestricted?: boolean

    True when the option is limited to company/business/government/professional buyers. Excluded for everyone.

    true
    
    declarationOfUseRequired?: boolean

    True when a declaration of (intended) use is required to purchase. Informational only — this never excludes the product.

    true
    
    note?: string

    The original human-readable restriction sentence(s), preserved for display.

    "We do not ship this product to: US, DE"