# Commerce Value Types

> Shared activity, fee, batch-result, permission, document, and order-status values

These values keep B2B and commerce actions and entities consistent. Import them from `@laioutr-core/canonical-types`.

**Since v0.26.0** in `@laioutr-core/canonical-types`.

## ActivityEntry

A render-oriented entry in a quote or approval timeline. Every field is optional so connectors can emit only the history data their source provides.

<table>
<thead>
  <tr>
    <th>
      Field
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Description
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        action
      </code>
    </td>
    
    <td>
      <code>
        WellKnownActivityAction
      </code>
    </td>
    
    <td>
      Open action code such as <code>
        created
      </code>
      
      , <code>
        commented
      </code>
      
      , <code>
        approved
      </code>
      
      , <code>
        price-changed
      </code>
      
      , or <code>
        ordered
      </code>
      
      .
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        actionLabel
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      Connector-resolved fallback label for an unknown action.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        actorName
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      Display name of the actor.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        actorType
      </code>
    </td>
    
    <td>
      <code>
        WellKnownActorType
      </code>
    </td>
    
    <td>
      Open actor code such as <code>
        customer
      </code>
      
      , <code>
        employee
      </code>
      
      , <code>
        sales-rep
      </code>
      
      , or <code>
        system
      </code>
      
      .
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        comment
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      Optional note attached to the activity.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        at
      </code>
    </td>
    
    <td>
      <code>
        Date
      </code>
    </td>
    
    <td>
      When the activity occurred.
    </td>
  </tr>
</tbody>
</table>

## AppliedFee

An already-computed fee shown on a quote or quote item. This differs from the [Fee](/frontend/api-reference/entities/fee) entity, which defines how a fee is calculated.

<table>
<thead>
  <tr>
    <th>
      Field
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Description
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        code
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      Optional catalog fee code.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        kind
      </code>
    </td>
    
    <td>
      <code>
        WellKnownFeeKind
      </code>
    </td>
    
    <td>
      Open fee kind such as <code>
        recycling
      </code>
      
      , <code>
        deposit
      </code>
      
      , <code>
        environmental
      </code>
      
      , or <code>
        handling
      </code>
      
      .
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        name
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      Display name.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        amount
      </code>
    </td>
    
    <td>
      <code>
        Money
      </code>
    </td>
    
    <td>
      Computed charge.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        quantity
      </code>
    </td>
    
    <td>
      <code>
        number
      </code>
    </td>
    
    <td>
      Units used for a per-unit fee.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        taxRate
      </code>
    </td>
    
    <td>
      <code>
        number
      </code>
    </td>
    
    <td>
      Tax rate as a decimal, for example <code>
        0.19
      </code>
      
      .
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        taxIncluded
      </code>
    </td>
    
    <td>
      <code>
        boolean
      </code>
    </td>
    
    <td>
      Whether tax is included in the amount.
    </td>
  </tr>
</tbody>
</table>

## CartBatchResultItem

The per-item result returned by batch cart operations such as reorder, quick order, and adding a product list to the cart. A result has `status: 'added'` with the quantity actually added, or `status: 'rejected'` with an open rejection reason such as `not-found`, `sold-out`, `quantity-adjusted`, or `not-orderable`. Per-item rejection is output data rather than a whole-action error.

## CartSharePermission

An open permission code for shared carts. Well-known values are `read-only` and `full-access`; connectors may provide additional codes with a display label in the surrounding action payload.

## DocumentType

An open commerce-document code. Well-known values are `invoice`, `delivery-note`, `credit-note`, and `order-confirmation`.

## OrderStatus

An open, backend-independent order status. Well-known values are `open`, `confirmed`, `shipped`, `completed`, and `cancelled`. Connectors map vendor statuses to the nearest known code and may return additional codes with a resolved display label.
