The following section briefly describes the classes related to cost centers. For more information on each of these classes, refer to the ATG API Reference.
CostCenter Interface
The CostCenter
interface represents all the information included in a cost center. The CostCenter
interface contains the following:
CostCenterClassType
Identifier
Description
Amount
CostCenterImpl
is the default implementation of the CostCenter
interface.
CostCenterManager
CostCenterManager
includes methods for manipulation of cost centers within the context of an order. This includes methods for adding, removing, and editing CostCenter
and CostCenterRelationship
objects. As well as methods for getting order information based on cost centers.
CostCenterContainer
Handles access to a group of cost centers. CostCenterContainerImpl
will be the default implementation of CostCenterContainer
. This interface provides methods for managing a list of cost centers within an order.
CostCenterRelationship
CostCenterRelationship
represents a part of a relationship between items and a cost center. The CostCenterRelationship
interface consists of two properties:
CostCenter
: references the relevant Cost CenterAmount
: indicates the total price attributed to that cost center within the given order.
CostCenterCommerceItemRelationship
The CostCenterCommerceItemRelationship
defines a relationship between a commerce item and the cost center to which it belongs. It implements both CostCenterRelationship
and CommerceItemRelationship
. This relationship has four possible types:
Amount
: indicates that the Amount property tells how much of the total cost of the item should be attributed to the given cost center.AmountRemaining
: indicates that all costs of the item that are not assigned to a different cost center in a separate relationship will be attributed to the cost center in the given relationship.Quantity
: indicates that the Quantity property tells how many of a given commerce item should be assigned to cost center.QuantityRemaining
: indicates that all items of the item that are not assigned to a different cost center in a separate relationship will be attributed to the cost center in the given relationship.
CostCenterShippingGroupRelationship
The CostCenterShippingGroupRelationship
is used to tie the cost center to the shipping group, rather than each item within the shipping group. This relationship also allows assignment of shipping charges to cost centers. This class implements both CostCenterRelationship
and ShippingGroupRelationship
.
The CostCenterShippingGroupRelationship
can be of two possible types:
ShippingAmount
ShippingAmountRemaining
CostCenterOrderRelationship
CostCenterOrderRelationship
is used to tie the cost center to the order, rather than each item within the shipping group, or to a specific shipping group. This class implements both CostCenterRelationship
and OrderRelationship
. This relationship will also allow assignment of tax and shipping charges to cost centers.
This relationship has four possible types:
TaxAmount
TaxAmountRemaining
OrderAmount
OrderAmountRemaining