Package DE_EPAGES::Order::API::LineItemContainer
The line item container
@EXPORT_OK |
Functions
SavePayment
Set the new payment method for container. Adds a Warning 'PaymentMethodChanged' if another payment method is used, because the $NewPaymentMethod is not avaible (not visible, no price, ...). If $NewPaymentMethod is undefined, then the current payment method is re-validated. The warning 'PaymentMethodChanged' is added if the current payment is no longer available.
Syntax |
SavePayment($Container, $NewPaymentMethod); |
Input |
|
SaveShipping
Set the new shipping method for container. Adds a Warning 'ShippingMethodChanged' if another Shipping method is used, because the $NewShippingMethod is not avaible (not visible, no price, ...). If $NewShippingMethod is undefined, then the current shipping method is re-validated. The warning 'ShippingMethodChanged' is added if the current shipping is no longer available.
Syntax |
SaveShipping($Container, $NewShippingMethod); |
Input |
|
UpdateTaxModel
Updates the tax model of the LineItemContainer based on the billing address. Set tax model to net, when country of billing address in eu and vatid is valid.
Syntax |
UpdateTaxModel($LineItemContainer); |
Input |
|
Return |
|