Class OrderDataBase<TOrderItem, TAddressDto>
Shopping cart data to create order from.
public class OrderDataBase<TOrderItem, TAddressDto> : IOrderData where TOrderItem : IOrderItem<ProductIdentifier> where TAddressDto : AddressDto, new()
Type Parameters
TOrderItemProduct items in shopping carty type.
TAddressDtoAddress type.
- Inheritance
-
objectOrderDataBase<TOrderItem, TAddressDto>
- Implements
- Derived
- Extension Methods
Constructors
OrderDataBase()
public OrderDataBase()
Properties
BillingAddress
public TAddressDto BillingAddress { get; set; }
Property Value
- TAddressDto
BuyerIdentifier
The identifier of the buyer for whom the order is being created. This identifies the customer or registered member in the system and determines which customer-specific pricing, promotions, or customer-specific rules apply.
public BuyerIdentifier BuyerIdentifier { get; set; }
Property Value
Remarks
The BuyerIdentifier may refer to an existing customer (CustomerId) or a registered member who may not yet have a customer record (MemberId). In contexts such as order creation or price calculations, if the MemberId corresponds to an existing customer, this identifier is used to identify the customer, regardless of whether it was created via FromCustomerId(int) or FromMemberId(int).
CouponCodes
Collection of coupon codes to be applied during order price calculation. These codes are used to identify and apply promotions to the order and its items.
public IEnumerable<string> CouponCodes { get; set; }
Property Value
- IEnumerable<string>
LanguageName
Language name.
public string LanguageName { get; init; }
Property Value
- string
Remarks
Used to fetch localized ProductData from the underlying product store during price calculation. The language name is used for product data localization during product data retrieval via IProductDataRetriever<TProductIdentifier, TProductData>.
- See Also
MemberId
Member ID of logged customer.
[Obsolete("Use BuyerIdentifier instead.")]
public int MemberId { get; set; }
Property Value
- int
OrderItems
public IEnumerable<TOrderItem> OrderItems { get; set; }
Property Value
- IEnumerable<TOrderItem>
OrderNumber
Order number.
public string OrderNumber { get; set; }
Property Value
- string
PaymentMethodId
Payment method ID pointing to PaymentMethodID.
public int PaymentMethodId { get; set; }
Property Value
- int
ShippingAddress
public TAddressDto ShippingAddress { get; set; }
Property Value
- TAddressDto
ShippingMethodId
Shipping method ID pointing to ShippingMethodID.
public int ShippingMethodId { get; set; }
Property Value
- int