Class ShippingInfo

Value container used for shipping calculations. This class is meant to allow the front end code to pass shipping options to the business object. The Invoice object then utilizes the data stored in this object to calculate shipping rates for the invoice in combination with the LineItems of the invoice.

Use of this object is user definable - you can choose on what values are set and what they mean. You can also extend this class with any custom options you need to pass forward. The idea is that this object lets the front end communicate values from the UI back to the Invoice to do its job in the Invoice.CalculateShipping() method.

System.Object
  Westwind.WebStore.ShippingInfo

public class ShippingInfo : object

Class Members

MemberDescription
Constructor
CountryId The two letter country ID that is shipped to
FixedPrice Optional value that can be set to identify a fixed shipping price for this item.
PromoCode A promotional code that is applied to an invoice
ShippingMethod Shipper ID. This is a user defined value that corresponds to the shipping methods available (such as UPS, FedEx, Priority Mail, etc.
ShipToCustomer Flag that determines whether anything needs to be shipped to the customer
State The State that is shipped to
TotalWeight The total weight of the items of this order. Note this value is set internally only after InvoiceTotal() is called.
UseInvoiceFields Determines whether the ShippingInfo fields should be used to calculate Invoice totals. If false internal invoice fields are used and the LoadFromInvoice method should be called to load up this object.
UseShippingAddress Determines whether we use a separate shipping address
Zip The PostalCode that is shipped to
LoadFromInvoice Loads the ShipInfo structure from the values of an existing invoice.
public void LoadFromInvoice( busInvoice Invoice );
ToString Override so that we can see content in Trace for the Session
public virtual string ToString();

Requirements

Namespace: Westwind.WebStore
Assembly: westwind.webstore.business.dll


 Last Updated: 3/7/2007 | Send topic feedback