Table of Contents

Class OrderDataBase<TOrderItem, TAddressDto>

Namespace
CMS.Commerce
Assembly
CMS.Commerce.dll

Shopping cart data to create order from.

public class OrderDataBase<TOrderItem, TAddressDto> : IOrderData where TOrderItem : IOrderItem<ProductIdentifier> where TAddressDto : AddressDto, new()

Type Parameters

TOrderItem

Product items in shopping carty type.

TAddressDto

Address type.

Inheritance
object
OrderDataBase<TOrderItem, TAddressDto>
Implements
Derived
Extension Methods

Constructors

OrderDataBase()

public OrderDataBase()

Properties

BillingAddress

public TAddressDto BillingAddress { get; set; }

Property Value

TAddressDto

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.

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