@sumup/sdk
    Preparing search index...

    Type Alias SaleItemFeature

    A named, typed characteristic of a line. New item types add data here instead of a typed sub-object per type.

    Examples by item type (illustrative, not exhaustive):

    • DEPOSIT: operation_type = "SALE", linked_line_id = "line-1"
    • GIFT_CARD: gift_card_reference = "GCMINGXPC5"
    • CATALOG: variant_name = "Large", item_id / variant_id (TEXT), reporting_category_id = "cat-..."
    • FEE: fee_type = "SHIPPING" (required); optional fee_id, value_absolute or value_percentage, and per-type metadata features such as delivery_name / tracking_reference (shipping), card_type / scheme (surcharge), or policy_id (cancellation)
    • (future) SUBSCRIPTION: billing_period = "P1M", renews_at = "2026-07-02"

    Conventional FEE feature keys:

    • fee_type (TEXT, required): SHIPPING, SURCHARGE, SERVICE_CHARGE, or CANCELLATION
    • fee_id (TEXT, optional): identifier of the fee definition
    • value_absolute (INTEGER, optional): configured absolute value in minor units of the sale currency (the charged amount is on price)
    • value_percentage (INTEGER, optional): configured percentage in minor units (1/100000; e.g. 10000 = 10%)
    • Per-type metadata (optional, TEXT unless noted): delivery_name, tracking_reference (shipping); card_type, scheme (surcharge); policy_id (cancellation)
    type SaleItemFeature = {
        name: string;
        value: string;
        value_type: SaleItemFeatureValueType;
    }
    Index
    name: string

    The feature name/key.

    Max length: 100

    value: string

    The feature value in canonical string form, to be parsed per value_type (e.g. INTEGER -> "3", DECIMAL -> "1.50", DATE -> "2026-07-02", BOOLEAN -> "true"). Carrying it as a string keeps the wire format stable as new feature names and value types are introduced.

    Max length: 1000