Class OrderAddress
Order address.
Implements
Inherited Members
Namespace: Mediachase.Commerce.Orders
Assembly: Mediachase.Commerce.dll
Version: 10.8.0Syntax
public class OrderAddress : OrderStorageBase, IXmlSerializable, IStorageObject, ICloneable, ISerializable, IOrderAddress, IExtendedProperties
Constructors
OrderAddress()
Initializes a new instance of the OrderAddress class.
Declaration
public OrderAddress()
OrderAddress(AddressEntity)
Initializes a new instance of the OrderAddress class and copies the fields from an existing customer address.
Declaration
public OrderAddress(AddressEntity customerAddress)
Parameters
Type | Name | Description |
---|---|---|
AddressEntity | customerAddress |
OrderAddress(SerializationInfo, StreamingContext)
Initializes a new instance of the OrderAddress class.
Declaration
protected OrderAddress(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
System.Runtime.Serialization.SerializationInfo | info | The info. |
System.Runtime.Serialization.StreamingContext | context | The context. |
Properties
City
Gets or sets the city.
Declaration
public string City { get; set; }
Property Value
Type | Description |
---|---|
System.String | The city. |
CountryCode
Gets or sets the country code.
Declaration
public string CountryCode { get; set; }
Property Value
Type | Description |
---|---|
System.String | The country code. |
CountryName
Gets or sets the name of the country.
Declaration
public string CountryName { get; set; }
Property Value
Type | Description |
---|---|
System.String | The name of the country. |
DaytimePhoneNumber
Gets or sets the daytime phone number.
Declaration
public string DaytimePhoneNumber { get; set; }
Property Value
Type | Description |
---|---|
System.String | The daytime phone number. |
Gets or sets the email.
Declaration
public string Email { get; set; }
Property Value
Type | Description |
---|---|
System.String | The email. |
EveningPhoneNumber
Gets or sets the evening phone number.
Declaration
public string EveningPhoneNumber { get; set; }
Property Value
Type | Description |
---|---|
System.String | The evening phone number. |
FaxNumber
Gets or sets the fax number.
Declaration
public string FaxNumber { get; set; }
Property Value
Type | Description |
---|---|
System.String | The fax number. |
FirstName
Gets or sets the first name.
Declaration
public string FirstName { get; set; }
Property Value
Type | Description |
---|---|
System.String | The name of the first. |
LastName
Gets or sets last name.
Declaration
public string LastName { get; set; }
Property Value
Type | Description |
---|---|
System.String | The name of the last. |
Line1
Gets or sets the line1.
Declaration
public string Line1 { get; set; }
Property Value
Type | Description |
---|---|
System.String | The line1. |
Line2
Gets or sets the line2.
Declaration
public string Line2 { get; set; }
Property Value
Type | Description |
---|---|
System.String | The line2. |
Name
Gets or sets the name.
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
System.String | The name. |
OrderGroupAddressId
Gets the order group address id.
Declaration
public int OrderGroupAddressId { get; }
Property Value
Type | Description |
---|---|
System.Int32 | The order group address id. |
OrderGroupId
Gets or sets the order group id.
Declaration
public int OrderGroupId { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 | The order group id. |
Organization
Gets or sets the organization.
Declaration
public string Organization { get; set; }
Property Value
Type | Description |
---|---|
System.String | The organization. |
Parent
Gets the parent Order group.
Declaration
public OrderGroup Parent { get; }
Property Value
Type | Description |
---|---|
OrderGroup | The parent. |
PostalCode
Gets or sets the postal code.
Declaration
public string PostalCode { get; set; }
Property Value
Type | Description |
---|---|
System.String | The postal code. |
RegionCode
Gets or sets the region code.
Declaration
public string RegionCode { get; set; }
Property Value
Type | Description |
---|---|
System.String | The region code. |
RegionName
Gets or sets the name of the region.
Declaration
public string RegionName { get; set; }
Property Value
Type | Description |
---|---|
System.String | The name of the region. |
State
Gets or sets the state.
Declaration
public string State { get; set; }
Property Value
Type | Description |
---|---|
System.String | The state. |
Methods
AcceptChanges()
Accepts the changes.
Declaration
public override void AcceptChanges()
Overrides
CopyOrderAddressToCustomerAddress(OrderAddress, AddressEntity)
Copies the fields from an instance of an OrderAddress object to an instance of a CustomerAddress object.
Declaration
public static void CopyOrderAddressToCustomerAddress(OrderAddress orderAddress, AddressEntity customerAddress)
Parameters
Type | Name | Description |
---|---|---|
OrderAddress | orderAddress | |
AddressEntity | customerAddress |
GetObjectData(SerializationInfo, StreamingContext)
Gets the object data.
Declaration
public override void GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
System.Runtime.Serialization.SerializationInfo | info | The info. |
System.Runtime.Serialization.StreamingContext | context | The context. |
Overrides
SetParent(Object)
Sets the parent.
Declaration
public override void SetParent(object parent)
Parameters
Type | Name | Description |
---|---|---|
System.Object | parent | The parent. |
Overrides
WriteXml(XmlWriter)
Converts an object into its XML representation.
Declaration
public override void WriteXml(XmlWriter writer)
Parameters
Type | Name | Description |
---|---|---|
System.Xml.XmlWriter | writer | The System.Xml.XmlWriter stream to which the object is serialized |
Overrides
Explicit Interface Implementations
IOrderAddress.Id
Declaration
string IOrderAddress.Id { get; set; }
Returns
Type | Description |
---|---|
System.String |
IExtendedProperties.Properties
Gets the property bag for dealing with custom meta fields.
Declaration
Hashtable IExtendedProperties.Properties { get; }
Returns
Type | Description |
---|---|
System.Collections.Hashtable |