Click or drag to resize

OrderHelperFillOrderTaxes Method

Fills order lines with appropriate taxes (objects) depending on order line item.

Namespace:  Atomia.Billing.Core.Sdk.BusinessLogic
Assembly:  Atomia.Billing.Core.Sdk (in Atomia.Billing.Core.Sdk.dll) Version: 18.10.7096.28998
Syntax
public static Order FillOrderTaxes(
	IAtomiaBillingApi api,
	Order order
)

Parameters

api
Type: Atomia.Billing.Core.SdkIAtomiaBillingApi
IAtomiaBillingApi instance.
order
Type: Atomia.Billing.Core.Sdk.BusinessObjectsOrder
Parameter must have following properties initialized: ResellerId, CustomerId, CusomerCountry, CustomerLegalNumber, OrderLines, OrderLine.ItemId, OrderLine.ItemId

Return Value

Type: Order
Updated order with taxes.
Remarks
Method retrieves item for each order line and creates list of taxes for it.
See Also