Class Order
- Namespace
- Dynamicweb.Ecommerce.Orders
- Assembly
- Dynamicweb.Ecommerce.dll
Represents information about an order.
[Serializable]
public class Order : IWithPrice
- Inheritance
-
Order
- Implements
- Inherited Members
Constructors
Order()
Initializes a new instance of the Order class.
[Obsolete("Use constructor which takes currency, country and language")]
public Order()
Order(Currency, Country, Language)
Initializes a new instance of the Order class.
public Order(Currency currency, Country country, Language language)
Parameters
Order(IDataReader)
Initializes a new instance of the Order class.
[Obsolete("This method is no longer used.")]
public Order(IDataReader dataReader)
Parameters
dataReader
IDataReader- The DataReader with the properties.
Properties
AddressValidatorResults
Gets the address validator results.
public List<AddressValidatorResult> AddressValidatorResults { get; set; }
Property Value
AllowOverridePrices
Indicated whether Price is overridden and not calculated. Used to set explicit PriceInfo values.
public bool AllowOverridePrices { get; set; }
Property Value
AutoId
Gets the Order Auto ID.
public int AutoId { get; }
Property Value
BoughtGiftCards
Gets the Order GiftCards if any are bought.
public IEnumerable<GiftCard> BoughtGiftCards { get; }
Property Value
Calculate
Gets a value indicating whether this Order is calculated (is in the cart state).
public bool Calculate { get; }
Property Value
- bool
true
if calculated; otherwise,false
.
CaptureAmount
Gets or sets the captured amount.
public double CaptureAmount { get; set; }
Property Value
CaptureInfo
Gets or sets the capture info.
public OrderCaptureInfo CaptureInfo { get; set; }
Property Value
CartV2StepIndex
Gets or sets the index of the current step(CartV2).
public int CartV2StepIndex { get; set; }
Property Value
CheckoutHandler
Gets the selected checkout handler (CartV2).
public CheckoutHandler CheckoutHandler { get; }
Property Value
CheckoutPageId
Gets or sets the PageID where was checkout step.
public int CheckoutPageId { get; set; }
Property Value
Comment
Gets or sets the comment.
public string Comment { get; set; }
Property Value
Complete
Gets or sets a value indicating whether this Order is completed.
Non-completed orders are displayed in red, meaning that the ordering process was interrupted prior to finishing the final step.
public bool Complete { get; set; }
Property Value
- bool
true
if complete; otherwise,false
.
CompletedDate
Gets or sets the date when order was completed.
public DateTime? CompletedDate { get; set; }
Property Value
Currency
Gets the currency.
public Currency Currency { get; }
Property Value
CurrencyCode
Gets or sets the currency code.
public string CurrencyCode { get; set; }
Property Value
CurrencyName
Gets or sets the currency name.
public string CurrencyName { get; set; }
Property Value
CurrencyRate
Gets or sets the currency rate on the order creation date.
public double CurrencyRate { get; set; }
Property Value
CustomerAccepted
Gets or sets a value indicating whether customer has accepted order terms and conditions.
public bool CustomerAccepted { get; set; }
Property Value
- bool
true
if customer was accepted; otherwise,false
.
CustomerAccessUserId
Gets or sets the customer access user ID.
public int CustomerAccessUserId { get; set; }
Property Value
CustomerAccessUserUserName
Gets or sets the customer access user name.
public string CustomerAccessUserUserName { get; set; }
Property Value
CustomerAddress
Gets or sets the customer address.
public string CustomerAddress { get; set; }
Property Value
CustomerAddress2
Gets or sets the customer address2.
public string CustomerAddress2 { get; set; }
Property Value
CustomerAddressId
Gets or sets the ID of the UserAddress
public int CustomerAddressId { get; set; }
Property Value
CustomerCell
Gets or sets the customer cell.
public string CustomerCell { get; set; }
Property Value
CustomerCity
Gets or sets the customer city.
public string CustomerCity { get; set; }
Property Value
CustomerComment
Gets or sets the customer comment.
public string CustomerComment { get; set; }
Property Value
CustomerCompany
Gets or sets the customer company.
public string CustomerCompany { get; set; }
Property Value
CustomerCountry
Gets or sets the customer country.
public string CustomerCountry { get; set; }
Property Value
CustomerCountryCode
Gets or sets the customer country code.
public string CustomerCountryCode { get; set; }
Property Value
CustomerEan
Gets or sets the customer EAN.
public string CustomerEan { get; set; }
Property Value
CustomerEmail
Gets or sets the customer email.
public string CustomerEmail { get; set; }
Property Value
CustomerFax
Gets or sets the customer fax.
public string CustomerFax { get; set; }
Property Value
CustomerFirstName
Gets or sets the customer first name.
public string CustomerFirstName { get; set; }
Property Value
CustomerHouseNumber
Gets or sets the customer house number.
public string CustomerHouseNumber { get; set; }
Property Value
CustomerInitials
Gets or sets the customer initials.
public string CustomerInitials { get; set; }
Property Value
CustomerMiddleName
Gets or sets the customer middle name.
public string CustomerMiddleName { get; set; }
Property Value
CustomerName
Gets or sets the customer name.
public string CustomerName { get; set; }
Property Value
CustomerNumber
Gets or sets the customer number.
public string CustomerNumber { get; set; }
Property Value
CustomerPhone
Gets or sets the customer phone.
public string CustomerPhone { get; set; }
Property Value
CustomerPrefix
Gets or sets the customer prefix.
public string CustomerPrefix { get; set; }
Property Value
CustomerRefId
Gets or sets the customer reference ID.
public string CustomerRefId { get; set; }
Property Value
CustomerRegion
Gets or sets the customer region.
public string CustomerRegion { get; set; }
Property Value
CustomerSurname
Gets or sets the customer surname.
public string CustomerSurname { get; set; }
Property Value
CustomerTitle
Gets or sets the customer title.
public string CustomerTitle { get; set; }
Property Value
CustomerVatRegNumber
Gets or sets the customer VAT registration number.
public string CustomerVatRegNumber { get; set; }
Property Value
CustomerZip
Gets or sets the customer zip code.
public string CustomerZip { get; set; }
Property Value
Date
Gets or sets the order creation date.
public DateTime Date { get; set; }
Property Value
DateCount
Gets or sets the date count.
public int DateCount { get; set; }
Property Value
Deleted
Gets or sets a value indicating whether this Order is deleted.
When administrator delete the order it only marked as deleted.
public bool Deleted { get; set; }
Property Value
- bool
true
if deleted; otherwise,false
.
DeliveryAddress
Gets or sets the delivery address.
public string DeliveryAddress { get; set; }
Property Value
DeliveryAddress2
Gets or sets the delivery address2.
public string DeliveryAddress2 { get; set; }
Property Value
DeliveryAddressId
Gets or sets the ID of the UserAddress
public int DeliveryAddressId { get; set; }
Property Value
DeliveryCell
Gets or sets the delivery cell.
public string DeliveryCell { get; set; }
Property Value
DeliveryCity
Gets or sets the delivery city.
public string DeliveryCity { get; set; }
Property Value
DeliveryCompany
Gets or sets the delivery company.
public string DeliveryCompany { get; set; }
Property Value
DeliveryCountry
Gets or sets the delivery country.
public string DeliveryCountry { get; set; }
Property Value
DeliveryCountryCode
Gets or sets the delivery country code.
public string DeliveryCountryCode { get; set; }
Property Value
DeliveryEmail
Gets or sets the delivery email.
public string DeliveryEmail { get; set; }
Property Value
DeliveryFax
Gets or sets the delivery fax.
public string DeliveryFax { get; set; }
Property Value
DeliveryFirstName
Gets or sets the delivery first name.
public string DeliveryFirstName { get; set; }
Property Value
DeliveryHouseNumber
Gets or sets the delivery house number.
public string DeliveryHouseNumber { get; set; }
Property Value
DeliveryInitials
Gets or sets the delivery initials.
public string DeliveryInitials { get; set; }
Property Value
DeliveryMiddleName
Gets or sets the delivery middle name.
public string DeliveryMiddleName { get; set; }
Property Value
DeliveryName
Gets or sets the delivery name.
public string DeliveryName { get; set; }
Property Value
DeliveryPhone
Gets or sets the delivery phone.
public string DeliveryPhone { get; set; }
Property Value
DeliveryPrefix
Gets or sets the delivery prefix.
public string DeliveryPrefix { get; set; }
Property Value
DeliveryRegion
Gets or sets the delivery region.
public string DeliveryRegion { get; set; }
Property Value
DeliverySurname
Gets or sets the delivery surname.
public string DeliverySurname { get; set; }
Property Value
DeliveryTitle
Gets or sets the delivery title.
public string DeliveryTitle { get; set; }
Property Value
DeliveryZip
Gets or sets the delivery ZIP.
public string DeliveryZip { get; set; }
Property Value
DisableDiscountCalculation
public bool DisableDiscountCalculation { get; set; }
Property Value
DiscountAmount
Gets or sets the discount amount that can be used for custom discounts on the order
public double DiscountAmount { get; set; }
Property Value
DiscountPercentage
Gets or sets the discount percentage that can be used for custom discounts on the order
public double DiscountPercentage { get; set; }
Property Value
DisplayName
Gets or sets the order name
public string DisplayName { get; set; }
Property Value
DoSaveCardToken
Gets or sets the value indicating whether to save card.
public bool DoSaveCardToken { get; set; }
Property Value
Errors
Gets or sets the errors.
public ArrayList Errors { get; set; }
Property Value
ExternalPaymentFee
Get or set the external payment fee.
public double ExternalPaymentFee { get; set; }
Property Value
FieldsXml
Gets or sets the fields XML.
public string FieldsXml { get; set; }
Property Value
FixedId
Gets the fixed ID.
public int FixedId { get; }
Property Value
Gateway
Gets the selected payment gateway (CartV1).
[Obsolete]
public GatewayProvider Gateway { get; }
Property Value
GatewayPaymentStatus
Gets or sets the gateway payment status(Paid, Rejected etc).
public string GatewayPaymentStatus { get; set; }
Property Value
GatewayResult
Gets or sets the result from the payment gateway.
public string GatewayResult { get; set; }
Property Value
GatewayTransactionProblems
Gets the gateway transaction problems.
public List<string> GatewayTransactionProblems { get; }
Property Value
GatewayUniqueId
Gets or sets the gateway unique ID.
public string GatewayUniqueId { get; set; }
Property Value
GiftCardTransactionFailed
Gets or sets the Order GiftCard transactions failed status.
public bool GiftCardTransactionFailed { get; set; }
Property Value
HasSetUserDetails
Gets or sets a value indicating whether the customer data has been filled in.
public bool HasSetUserDetails { get; set; }
Property Value
- bool
true
if this instance has set user details; otherwise,false
.
HasShippingDocument
Determines whether the shipping document values is empty or not.
public bool HasShippingDocument { get; }
Property Value
Icon
Gets the icon file name of the order payment method.
[Obsolete("Use Icon or IconOrderList property on the associated payment.")]
public string Icon { get; }
Property Value
Id
Gets or sets the Order ID.
public string Id { get; set; }
Property Value
IdWithIcon
Gets the ID with icon.
[Obsolete("No longer in use.")]
public string IdWithIcon { get; }
Property Value
InfoDirectProviderErrors
Gets the Info Direct service errors.
public List<string> InfoDirectProviderErrors { get; }
Property Value
IntegrationOrderId
Gets or sets the integration order ID.
public string IntegrationOrderId { get; set; }
Property Value
Ip
Gets or sets the customer's IP.
public string Ip { get; set; }
Property Value
IsCaptureSupported
Return "true" if the payment method of this order supports remote capture feature.
Capturing an order allows to withdraw or cancel payment directly while order placement. In this case, user does not need to log in the gateway administration system to be able to cancel the order.
public bool IsCaptureSupported { get; }
Property Value
IsCart
Gets or sets a value indicating whether order has "cart" status. The order will have "cart" status until customer confirms the payment.
public bool IsCart { get; set; }
Property Value
- bool
true
if this instance is cart; otherwise,false
.
IsCartEditable
Gets or sets a value indicating whether this order could be edited while it is in a cart.
public bool IsCartEditable { get; }
Property Value
- bool
true
if this instance is could be edited while it is in a cart; otherwise,false
.
IsExported
Determines whether order was exported.
public bool IsExported { get; set; }
Property Value
IsLedgerEntry
Gets or sets a value indicating whether this is a "ledger entry".
public bool IsLedgerEntry { get; set; }
Property Value
- bool
true
if this instance is ledger entry; otherwise,false
.
IsPartialCaptureSupported
Return "true" if the payment method of this order supports remote capture feature.
Capturing an order allows to withdraw or cancel payment directly while order placement. In this case, user does not need to log in the gateway administration system to be able to cancel the order.
public bool IsPartialCaptureSupported { get; }
Property Value
IsPayable
Gets or sets a value indicating whether this order can be "payed".
public bool IsPayable { get; set; }
Property Value
- bool
true
if this instance is payable; otherwise,false
.
IsPaymentSet
Gets a value indicating whether the payment method is set.
[Obsolete("Does not work.")]
public bool IsPaymentSet { get; }
Property Value
- bool
true
if this instance is payment set; otherwise,false
.
IsPriceCalculatedByProvider
Gets or sets a value indicating whether prices are calculated by a provider.
public bool IsPriceCalculatedByProvider { get; set; }
Property Value
- bool
true
if prices are calculated by a provider; otherwise,false
.
IsQuote
Gets or sets a value indicating whether this is an "order" or a "quote".
public bool IsQuote { get; set; }
Property Value
- bool
true
if this instance is quote; otherwise,false
.
IsRecurringOrderTemplate
Gets or sets a value indicating whether this is an "order" or a "Recurring order template".
public bool IsRecurringOrderTemplate { get; set; }
Property Value
- bool
true
if this instance is recurring order; otherwise,false
.
IsShippingDocumentSupported
Determines whether the shipping document is supported.
public bool IsShippingDocumentSupported { get; }
Property Value
Language
public Language Language { get; }
Property Value
LanguageId
Gets or sets the order language ID.
public string LanguageId { get; set; }
Property Value
LedgerType
Gets or sets the ledger type.
public string LedgerType { get; set; }
Property Value
Modified
Gets or sets the date when order was modified.
public DateTime Modified { get; set; }
Property Value
NewsletterSubscribe
Gets or sets a value indicating whether customer was subscribed for a newsletter.
public bool NewsletterSubscribe { get; set; }
Property Value
- bool
true
if newsletter was subscribed; otherwise,false
.
OrderContextId
Gets or sets the order context ID.
public string OrderContextId { get; set; }
Property Value
OrderField
Gets the order field.
[Obsolete("Use OrderFields instead.")]
public OrderField OrderField { get; }
Property Value
OrderFields
Gets the custom order fields.
public OrderFieldCollection OrderFields { get; }
Property Value
OrderFieldValues
Gets or sets the custom order field values.
public OrderFieldValueCollection OrderFieldValues { get; set; }
Property Value
OrderLines
Gets the collection of all order lines.
public OrderLineCollection OrderLines { get; }
Property Value
OrderState
Gets the current order state, e.g. Completed, New, Important etc.
public OrderState OrderState { get; }
Property Value
OrderStates
Gets the order states collection with the current order state.
[Obsolete("Use OrderState instead")]
public OrderStateCollection OrderStates { get; }
Property Value
ParentOrderId
Gets or sets the parent Order ID.
public string ParentOrderId { get; set; }
Property Value
PaymentCountrySelection
Gets or sets the country for shipping.
public CountrySelectionForMethod PaymentCountrySelection { get; set; }
Property Value
PaymentFee
Gets the payment fee.
public PriceInfo PaymentFee { get; }
Property Value
PaymentMethod
Gets or sets the payment method name.
public string PaymentMethod { get; set; }
Property Value
PaymentMethodCode
Gets or sets the payment method Code.
public string PaymentMethodCode { get; set; }
Property Value
PaymentMethodDescription
Gets or sets the payment method description.
public string PaymentMethodDescription { get; set; }
Property Value
PaymentMethodId
Gets or sets the payment method ID.
public string PaymentMethodId { get; set; }
Property Value
PaymentMethodTermsCode
Gets or sets the payment method terms code.
public string PaymentMethodTermsCode { get; set; }
Property Value
PaymentRecurringInfo
Gets or sets payment provider recurring order information(recurring identity, user profiles, any information needed for payment provider).
public string PaymentRecurringInfo { get; set; }
Property Value
PointsToUse
Gets or sets the amount of loyalty points to use for pay.
public double PointsToUse { get; set; }
Property Value
Price
Gets the price, including payment and shipping fees.
public PriceInfo Price { get; }
Property Value
PriceBeforeFees
Gets the price without payment and shipping fees.
public PriceInfo PriceBeforeFees { get; }
Property Value
- PriceInfo
- The price before fees.
PriceCalculationDate
Gets or sets the price calculation date on order.
public DateTime? PriceCalculationDate { get; set; }
Property Value
ProductOrderLines
Gets an OrderLineCollection containing all OrderLine objects where OrderLine.Product is not null.
public OrderLineCollection ProductOrderLines { get; }
Property Value
Remarks
Order lines with gift card product are not included
Products
Gets the collection of all ordered products.
public ProductCollection Products { get; }
Property Value
Remarks
Gift card products are not included
ReceiptShowCount
Gets or sets the count of receipt was shown.
public int ReceiptShowCount { get; set; }
Property Value
RecurringOrderId
Gets or sets the Order recurring order ID.
public int RecurringOrderId { get; set; }
Property Value
Reference
Gets or sets the reference.
public string Reference { get; set; }
Property Value
Referrer
Gets or sets the referrer.
public string Referrer { get; set; }
Property Value
Requisition
Gets or sets the requisition.
public string Requisition { get; set; }
Property Value
ReSendEmail
Gets or sets the resend email.
public string ReSendEmail { get; set; }
Property Value
ReturnOperations
Gets or sets the order return operations as collection of OrderReturnInfo.
public IEnumerable<OrderReturnInfo> ReturnOperations { get; set; }
Property Value
Remarks
History of operations for payments with IFullReturn, IPartialReturn interfaces implemented.
ReverseChargeForVat
Gets or sets a value indicating whether VAT is in a reverse charge situation.
In this case, VAT is not present in the product price for the affected VAT groups.
This is standard VAT law in EU for B2B, where the buyer must handle the VAT rather than the reseller.
public bool ReverseChargeForVat { get; set; }
Property Value
- bool
true
if VAT is in a reverse charge situation; otherwise,false
.
RewardTotalPoints
Points for reward.
public double? RewardTotalPoints { get; }
Property Value
SalesDiscount
Gets or sets the sales discount.
public double SalesDiscount { get; set; }
Property Value
SavedCardDraftName
Gets or sets the name for saved card to be created.
public string SavedCardDraftName { get; set; }
Property Value
SavedCardId
Gets or sets the ID of saved card.
public int SavedCardId { get; set; }
Property Value
SecondaryUserId
Gets or sets the impersonated access user ID.
public int SecondaryUserId { get; set; }
Property Value
SecondaryUserName
Gets the impersonated access user Name.
public string SecondaryUserName { get; }
Property Value
Secret
A secret sequence of characters to use e.g. for security. The secret is non-changeable for this order.
public string Secret { get; }
Property Value
ShippingCountrySelection
Gets or sets the shipping country.
public CountrySelectionForMethod ShippingCountrySelection { get; set; }
Property Value
ShippingDate
Gets or sets the shipping date.
public DateTime? ShippingDate { get; set; }
Property Value
ShippingDocumentValues
Gets the shipping document values.
public Dictionary<string, object> ShippingDocumentValues { get; }
Property Value
ShippingFee
Gets the shipping fee.
public PriceInfo ShippingFee { get; }
Property Value
ShippingMethod
Gets or sets the shipping method.
public string ShippingMethod { get; set; }
Property Value
ShippingMethodAgentCode
Gets or sets the shipping method agent code.
public string ShippingMethodAgentCode { get; set; }
Property Value
ShippingMethodAgentServiceCode
Gets or sets the shipping method agent sercice code.
public string ShippingMethodAgentServiceCode { get; set; }
Property Value
ShippingMethodCode
Gets or sets the shipping method Code.
public string ShippingMethodCode { get; set; }
Property Value
ShippingMethodCountryCode
Gets or sets the shipping method country code.
public string ShippingMethodCountryCode { get; set; }
Property Value
ShippingMethodDescription
Gets or sets the shipping method description.
public string ShippingMethodDescription { get; set; }
Property Value
ShippingMethodId
Gets or sets the shipping method ID.
public string ShippingMethodId { get; set; }
Property Value
ShippingProviderErrors
Gets the shipping provider errors.
public List<string> ShippingProviderErrors { get; }
Property Value
ShippingProviderValues
Gets the shipping provider values.
public Dictionary<string, object> ShippingProviderValues { get; }
Property Value
ShippingProviderWarnings
Gets the shipping provider warnings.
public List<string> ShippingProviderWarnings { get; }
Property Value
ShopId
Gets or sets the shop ID where the order was sold.
public string ShopId { get; set; }
Property Value
ShopName
Gets or sets the shop name where the order was sold.
public string ShopName { get; set; }
Property Value
Shops
Gets the shop where the order was sold.
public IEnumerable<Shop> Shops { get; }
Property Value
StateId
Gets or sets the order state ID e.g. Completed, New, Important etc.
public string StateId { get; set; }
Property Value
StepHistory
Gets or sets the order step history.
public string StepHistory { get; set; }
Property Value
StepNum
Gets or sets the current step number (CartV1).
public int StepNum { get; set; }
Property Value
TaxProviderErrors
Gets the tax provider errors.
public List<string> TaxProviderErrors { get; }
Property Value
TaxTransactionNumber
Gets or sets the tax transaction number.
public string TaxTransactionNumber { get; set; }
Property Value
TotalDiscount
Gets the total discount.
public PriceInfo TotalDiscount { get; }
Property Value
TotalOrderDiscount
Gets the total discount.
public PriceInfo TotalOrderDiscount { get; }
Property Value
TotalPoints
Points for redeem.
public double? TotalPoints { get; }
Property Value
TotalPrice
Gets the total price including VAT.
public double TotalPrice { get; }
Property Value
TotalPriceFormatted
Gets the total price string in currency format.
public string TotalPriceFormatted { get; }
Property Value
TotalPriceWithoutDiscounts
Gets the total price without discounts.
public PriceInfo TotalPriceWithoutDiscounts { get; }
Property Value
TotalPriceWithoutDiscountsFeesAndTaxes
Gets the total price without discounts, fees and taxes.
public PriceInfo TotalPriceWithoutDiscountsFeesAndTaxes { get; }
Property Value
TotalPriceWithoutDiscountsOrTaxes
Gets the total price without discounts or taxes.
public PriceInfo TotalPriceWithoutDiscountsOrTaxes { get; }
Property Value
TotalPriceWithoutFees
Gets the total price without discounts, fees and taxes.
public PriceInfo TotalPriceWithoutFees { get; }
Property Value
TotalPriceWithoutFeesAndTaxes
Gets the total price without fees and taxes.
public PriceInfo TotalPriceWithoutFeesAndTaxes { get; }
Property Value
TotalPriceWithoutOrderDiscountsAndFees
Gets the total price without orderdiscounts and fees. This is the subtotal of all products with discounts, but without any order discounts
public PriceInfo TotalPriceWithoutOrderDiscountsAndFees { get; }
Property Value
TotalPriceWithoutOrderDiscountsAndFeesAndTaxes
Gets the total price without order discounts, fees and taxes. This is the subtotal of all products with discounts, but without any order discounts, fees and taxes.
public PriceInfo TotalPriceWithoutOrderDiscountsAndFeesAndTaxes { get; }
Property Value
TotalPriceWithoutTaxes
Gets the total price without taxes.
public PriceInfo TotalPriceWithoutTaxes { get; }
Property Value
TotalPriceWithoutVatFormatted
Gets the total price without VAT string in currency format.
public string TotalPriceWithoutVatFormatted { get; }
Property Value
TotalProductDiscount
Gets the total discount.
public PriceInfo TotalProductDiscount { get; }
Property Value
TotalTax
public PriceInfo TotalTax { get; }
Property Value
TrackTrace
Gets the track trace. Track & Trace property allows determining current and previous locations of purchased items and other statuses of cargo in transit.
public TrackAndTrace TrackTrace { get; }
Property Value
TrackTraceId
Gets or sets the track trace ID. Track & Trace property allows determining the current and previous locations of purchased items and other statuses of cargo in transit.
public int TrackTraceId { get; set; }
Property Value
TrackTraceName
Gets or sets the and track trace name.
public string TrackTraceName { get; set; }
Property Value
TrackTraceNumber
Gets or sets the track trace number (obsolete).
public string TrackTraceNumber { get; set; }
Property Value
TrackTraceParameters
Gets or sets the track trace parameters. Track & Trace property allows determining the current and previous locations of purchased items and other statuses of cargo in transit.
public string TrackTraceParameters { get; set; }
Property Value
TrackTraceUrl
Gets or sets the track trace URL. Track & Trace property allows determining the current and previous locations of purchased items and other statuses of cargo in transit.
public string TrackTraceUrl { get; }
Property Value
TransactionAmount
Gets or sets the transaction amount.
public double TransactionAmount { get; set; }
Property Value
TransactionCardNumber
Gets or sets the payment card number.
public string TransactionCardNumber { get; set; }
Property Value
TransactionCardType
Gets or sets the payment card type.
public string TransactionCardType { get; set; }
Property Value
TransactionMailSend
Gets or sets a value indicating whether the mail with transaction state was sent to customer.
public bool TransactionMailSend { get; set; }
Property Value
TransactionNumber
Gets or sets the payment gateway transaction number.
public string TransactionNumber { get; set; }
Property Value
TransactionPayGatewayCode
Gets or sets the transaction payment gateway code.
public string TransactionPayGatewayCode { get; set; }
Property Value
TransactionStatus
Gets or sets the payment gateway transaction status (succeeded, canceled, failed etc).
public string TransactionStatus { get; set; }
Property Value
TransactionToken
Get or set the payment transaction token.
public string TransactionToken { get; set; }
Property Value
TransactionTokenCheckSum
Gets the token check sum.
public string TransactionTokenCheckSum { get; }
Property Value
TransactionType
Gets or sets the transaction type.
public string TransactionType { get; set; }
Property Value
TransactionValue
Gets or sets the transaction value.
public string TransactionValue { get; set; }
Property Value
Vat
Gets or sets the VAT.
public double Vat { get; set; }
Property Value
VatCountry
public Country VatCountry { get; set; }
Property Value
VisitorSessionDate
Gets the created date of this experiment.
public DateTime VisitorSessionDate { get; }
Property Value
VisitorSessionId
Gets or sets the ID of the visitor's session that corresponds to the visitor that this order is associated with.
public string VisitorSessionId { get; set; }
Property Value
Volume
Gets the total volume of the ordered products.
public double Volume { get; }
Property Value
VoucherCode
Gets or sets the Order Voucher code used to activate voucher discount.
public string VoucherCode { get; set; }
Property Value
VoucherUseType
Gets or sets the Order value indicates where Voucher code is used.
public VoucherUseCategoryType VoucherUseType { get; set; }
Property Value
Weight
Gets the total weight of the ordered products.
public double Weight { get; }
Property Value
Methods
CalculateDiscounts()
Calculates the discounts for this Order.
If RecalculateDiscountsNeeded is
false
or if Calculate is false
, discounts will not be calculated.[Obsolete("Use Ecommerce.Services.Orders.CalculateDiscounts instead")]
public void CalculateDiscounts()
Capture()
Performs capture on this order and stores the resulting OrderCaptureInfo on the order.
[Obsolete("Use Ecommerce.Services.Orders.Capture instead.")]
public OrderCaptureInfo Capture()
Returns
- OrderCaptureInfo
- Return the generated OrderCaptureInfo or null if capture is not supported.
Capture(long, bool)
Performs capture on this order and stores the resulting OrderCaptureInfo on the order.
[Obsolete("Use Ecommerce.Services.Orders.Capture instead.")]
public OrderCaptureInfo Capture(long amount, bool final)
Parameters
Returns
- OrderCaptureInfo
- Return the generated OrderCaptureInfo or null if capture is not supported.
ClearCachedPrices()
Clears the cached prices.
[Obsolete("Use Ecommerce.Services.Orders.ClearCachedPrices instead.")]
public void ClearCachedPrices()
CreateOrderLine(Product)
Adds a new OrderLine to the OrderLineCollection of this Order based on the given Product.
A quantity of '1' is used.
The Products DefaultUnit is used.
[Obsolete("Use Ecommerce.Services.Orders.CreateOrderLine instead.")]
public OrderLine CreateOrderLine(Product product)
Parameters
product
Product- The product.
Returns
CreateOrderLine(Product, double)
Adds a new OrderLine to the OrderLineCollection of this Order based on the given Product.
The Products DefaultUnit is used.
[Obsolete("Use Ecommerce.Services.Orders.CreateOrderLine instead.")]
public OrderLine CreateOrderLine(Product product, double quantity)
Parameters
Returns
CreateOrderLine(Product, double, StockUnit)
[Obsolete("Use Ecommerce.Services.Orders.CreateOrderLine instead.")]
public OrderLine CreateOrderLine(Product product, double quantity, StockUnit unit)
Parameters
Returns
CreateOrderLine(Product, double, StockUnit, PriceInfo)
[Obsolete("Use Ecommerce.Services.OrderLines.Create instead.")]
public OrderLine CreateOrderLine(Product product, double quantity, StockUnit unit, PriceInfo unitPrice)
Parameters
product
Product- The product.
quantity
double- The quantity.
unit
StockUnit- The unit.
unitPrice
PriceInfo- The unit price of the product. Use this if unit price should be different from the price of the product.
Returns
CreateOrderLine(string, double, PriceInfo, OrderLineType)
Adds a new OrderLine to the OrderLineCollection of this Order with the given OrderLineType and the given text.
[Obsolete("Use Ecommerce.Services.Orders.CreateOrderLine instead.")]
public OrderLine CreateOrderLine(string text, double quantity, PriceInfo unitPrice, OrderLineType type)
Parameters
text
string- The text.
quantity
double- The quantity.
unitPrice
PriceInfo- The unit price.
type
OrderLineType- The type.
Returns
CreateOrderLine(string, double, PriceInfo, OrderLineType, string)
Adds a new OrderLine to the OrderLineCollection of this Order with the given OrderLineType and the given text.
[Obsolete("Use Ecommerce.Services.Orders.CreateOrderLine instead.")]
public OrderLine CreateOrderLine(string text, double quantity, PriceInfo unitPrice, OrderLineType type, string parentOrderLineId)
Parameters
text
string- The text.
quantity
double- The quantity.
unitPrice
PriceInfo- The unit price.
type
OrderLineType- The type.
parentOrderLineId
string- The parent order line identifier.
Returns
CreateOrderLine(string, double, PriceInfo, OrderLineType, string, string)
Adds a new OrderLine to the OrderLineCollection of this Order with the given OrderLineType and the given text.
[Obsolete("Use Ecommerce.Services.OrderLines.Create instead.")]
public OrderLine CreateOrderLine(string text, double quantity, PriceInfo unitPrice, OrderLineType type, string parentOrderLineId, string discountId)
Parameters
text
string- The text.
quantity
double- The quantity.
unitPrice
PriceInfo- The unit price.
type
OrderLineType- The type.
parentOrderLineId
string- The parent order line identifier.
discountId
string- The discount identifier.
Returns
Delete()
Deletes this instance.
[Obsolete("Use Ecommerce.Services.Orders.Delete instead.")]
public void Delete()
Delete(string)
Deletes the order.
[Obsolete("Use Ecommerce.Services.Orders.Delete instead.")]
public static void Delete(string id)
Parameters
id
string- The order ID.
DowngradeToCart()
Converts the order back to cart
[Obsolete("Use Ecommerce.Services.Orders.DowngradeToCart instead.")]
public void DowngradeToCart()
ForcePriceRecalculation()
Forces the recalculation of the Price.
[Obsolete("Use Ecommerce.Services.Orders.ForcePriceRecalculation instead.")]
public void ForcePriceRecalculation()
get_ParentOrderLineCount(OrderLineCollection)
Gets the parent order line count. Does not count lines of the parent product parts.
[Obsolete("Use GetParentOrderLineCount instead")]
public int get_ParentOrderLineCount(OrderLineCollection OrderLines)
Parameters
OrderLines
OrderLineCollection
Returns
get_ParentOrderLineQuantityCount(OrderLineCollection)
Gets the parent order line quantity count. Does not count lines of the parent product parts.
[Obsolete("Use GetParentOrderLineQuantityCount instead")]
public double get_ParentOrderLineQuantityCount(OrderLineCollection OrderLines)
Parameters
OrderLines
OrderLineCollection
Returns
get_ParentProductLineQuantityCount(OrderLineCollection)
Gets the parent product line quantity counts. Does not include lines with discounts and parent product parts.
[Obsolete("Use ParentProductLineQuantityCount instead")]
public double get_ParentProductLineQuantityCount(OrderLineCollection orderLines)
Parameters
orderLines
OrderLineCollection
Returns
GetAllOrderVersionsById(string)
Gets all versions for the order.
[Obsolete("Use Ecommerce.Services.Orders.GetAllVersions instead.")]
public static OrderCollection GetAllOrderVersionsById(string id)
Parameters
id
string- The order ID.
Returns
GetCartFormName()
Gets the name of the cart form.
[Obsolete("Use Ecommerce.Services.Orders.GetCartFormName instead.")]
public string GetCartFormName()
Returns
- string
- "CartForm_[ID]"
GetEmptyOrderDataSet()
Gets an empty DataSet with the schema from the database.
[Obsolete]
public static DataSet GetEmptyOrderDataSet()
Returns
GetOrderById(string)
Gets the order by ID.
[Obsolete("Use Ecommerce.Services.Orders.GetById instead.")]
public static Order GetOrderById(string id)
Parameters
id
string- The id.
Returns
GetOrderById(string, bool)
Gets the order by ID.
[Obsolete("Use Ecommerce.Services.Orders.GetById instead.")]
public static Order GetOrderById(string id, bool useItemsCache)
Parameters
id
string- The id.
useItemsCache
bool- if set to
true
use Context.Current.Items cache to store the Order.
Returns
GetOrderDataReader(string)
Gets the DataReader with order.
[Obsolete]
public IDataReader GetOrderDataReader(string orderId)
Parameters
orderId
string- The order ID.
Returns
GetOrderDataSetByOrderId(string)
Gets the DataSet object with orders.
[Obsolete]
public static DataSet GetOrderDataSetByOrderId(string orderId)
Parameters
orderId
string- The order ID.
Returns
GetOrderFromHistoryById(string, int)
Gets the order from history by Id.
[Obsolete("Use Ecommerce.Services.Orders.GetOrderFromHistory instead.")]
public static Tuple<Order, DateTime> GetOrderFromHistoryById(string orderId, int versionId)
Parameters
Returns
GetOrders(string)
Gets the orders.
[Obsolete("Please use the OrderService to get order instances.")]
public static OrderCollection GetOrders(string query)
Parameters
query
string- The SQL.
Returns
GetOrders(string, bool)
Gets the orders.
[Obsolete("Please use the OrderService to get order instances.")]
public static OrderCollection GetOrders(string query, bool preLoadOrderLines)
Parameters
query
string- The SQL query.
preLoadOrderLines
bool- if set to
true
get order lines from DB and attach to orders.
Returns
GetOrders(string, string, string, string, bool, string)
Gets the orders.
[Obsolete("Use Ecommerce.Services.Orders.FindOrders instead.")]
public static OrderCollection GetOrders(string keyword, string stateId, string startdate, string enddate, bool showCart, string shopId)
Parameters
keyword
string- The keyword.
stateId
string- The state ID. DB field name is OrderStateID.
startdate
string- The start date. DB field name is OrderDate.
enddate
string- The end date. DB field name is OrderDate.
showCart
bool- if set to
true
show cart. DB field name is OrderCart. shopId
string- The shop ID. DB field name is OrderShopID.
Returns
GetParentOrderLineCount(OrderLineCollection)
Gets the parent order line count. Does not count lines of the parent product parts.
public int GetParentOrderLineCount(OrderLineCollection orderLines)
Parameters
orderLines
OrderLineCollection
Returns
GetParentOrderLineQuantityCount(OrderLineCollection)
Gets the parent order line quantity count. Does not count lines of the parent product parts.
public double GetParentOrderLineQuantityCount(OrderLineCollection orderLines)
Parameters
orderLines
OrderLineCollection
Returns
GetParentProductLineQuantityCount(OrderLineCollection)
Gets the parent product line quantity counts. Does not include lines with discounts and parent product parts.
public double GetParentProductLineQuantityCount(OrderLineCollection orderLines)
Parameters
orderLines
OrderLineCollection- Order lines
Returns
GetPriceContext()
Gets price context information for the order.
public PriceContext GetPriceContext()
Returns
GetPriceProductSelections()
Gets product selections for the order.
public IEnumerable<PriceProductSelection> GetPriceProductSelections()
Returns
GetPropertyType(string)
Gets the property type.
[Obsolete("Use Ecommerce.Services.Orders.GetPropertyType instead.")]
public string GetPropertyType(string propertyName)
Parameters
propertyName
string- Name of the property.
Returns
- string
- The property type.
GetPropertyValue(string)
Gets the property value.
[Obsolete("Use Ecommerce.Services.Orders.GetPropertyValue instead.")]
public object GetPropertyValue(string propertyName)
Parameters
propertyName
string- Name of the property.
Returns
- object
- The property value.
GetTotalPurchasesByCustomerId(int, DateTime, Currency)
Get total purchases price by customer ID.
[Obsolete("Use Ecommerce.Services.Orders.GetTotalPurchasesByCustomerId instead.")]
public static PriceInfo GetTotalPurchasesByCustomerId(int customerId, DateTime fromDate, Currency priceCurrency)
Parameters
customerId
int- The customer ID.
fromDate
DateTime- The from date.
priceCurrency
Currency- The price currency.
Returns
IsVatCountrySetByUser()
public bool IsVatCountrySetByUser()
Returns
OrderLineBuilder(OrderLineBuilderConfig)
Builds an OrderLine based on the given OrderLineBuilderConfig.
[Obsolete("Use Ecommerce.Services.OrderLines.OrderLineBuilder instead.")]
public OrderLine OrderLineBuilder(OrderLineBuilderConfig builderConfiguration)
Parameters
builderConfiguration
OrderLineBuilderConfig- The builder configuration.
Returns
PreparePrices()
public void PreparePrices()
RemoveNoneActiveProducts()
Removes all orderlines that is of type Product and that no longer exist in the database. Also removes products according to the control panel settings: Active, on stock, price is zero.
[Obsolete("Use Ecommerce.Services.Orders.RemoveNoneActiveProducts instead.")]
public void RemoveNoneActiveProducts()
Save()
Saves this instance.
[Obsolete("Use Ecommerce.Services.Orders.Save instead.")]
public void Save()
Save(string)
Saves the instance into DB.
[Obsolete("Use Ecommerce.Services.Orders.Save instead.")]
public void Save(string orderId)
Parameters
orderId
string- The order ID.
Save(string, bool)
Saves the instance into DB.
[Obsolete("Use Ecommerce.Services.Orders.Save instead.")]
public void Save(string orderId, bool saveOldVersion)
Parameters
SaveGatewayResult()
Save the gateway result.
[Obsolete("Use Ecommerce.Services.Orders.SaveGatewayResult instead.")]
public void SaveGatewayResult()
SaveOrderComplete(bool)
Save order complete state.
[Obsolete("Use Ecommerce.Services.Orders.Complete instead.")]
public void SaveOrderComplete(bool setComplete)
Parameters
setComplete
bool- if set to
true
[set complete].
SendTo(ref PageView, List<string>, string, ref Template)
Sends the mail to the specified list of addresses.
[Obsolete("Use Ecommerce.Services.Orders.SendEmail instead.")]
public bool SendTo(ref PageView pageView, List<string> toMailAddresses, string fromMailAddress, ref Template mailTemplate)
Parameters
pageView
PageView- The page view.
toMailAddresses
List<string>- To mail addresses list.
fromMailAddress
string- From mail address.
mailTemplate
Template- The mail template.
Returns
- bool
true
if send was succesful; otherwisefalse
.
SendTo(ref PageView, string, List<string>, string, string, ref Template)
Sends the mail to the specified addresses.
[Obsolete("Use Ecommerce.Services.Orders.SendEmail instead.")]
public bool SendTo(ref PageView pageView, string subject, List<string> toMailAddresses, string fromMailAddress, string fromMailName, ref Template mailTemplate)
Parameters
pageView
PageView- The page view.
subject
string- Mail subject.
toMailAddresses
List<string>- To mail addresses list.
fromMailAddress
string- From mail address.
fromMailName
string- From mail sender name.
mailTemplate
Template- The mail template.
Returns
- bool
true
if send was succesful; otherwisefalse
.
SendTo(ref PageView, string, string, ref Template)
Sends the mail to the specified address.
[Obsolete("Use Ecommerce.Services.Orders.SendEmail instead.")]
public bool SendTo(ref PageView pageView, string toMailAddress, string fromMailAddress, ref Template mailTemplate)
Parameters
pageView
PageView- The page view.
toMailAddress
string- To mail address.
fromMailAddress
string- From mail address.
mailTemplate
Template- The mail template.
Returns
- bool
true
if send was succesful; otherwisefalse
.
SendTo(ref PageView, string, string, string, ref Template)
Sends the mail to the specified address.
[Obsolete("Use Ecommerce.Services.Orders.SendEmail instead.")]
public static bool SendTo(ref PageView pageView, string orderId, string toMailAddress, string fromMailAddress, ref Template mailTemplate)
Parameters
pageView
PageView- The page view.
orderId
string- The order ID.
toMailAddress
string- To mail address.
fromMailAddress
string- From mail address.
mailTemplate
Template- The mail template.
Returns
- bool
true
if send was succesful; otherwisefalse
.
SendTo(ref PageView, string, string, string, string, ref Template)
Sends the mail to the specified address.
[Obsolete("Use Ecommerce.Services.Orders.SendEmail instead.")]
public bool SendTo(ref PageView pageView, string subject, string toMailAddress, string fromMailAddress, string fromMailName, ref Template mailTemplate)
Parameters
pageView
PageView- The page view.
subject
string- Mail subject.
toMailAddress
string- To mail address.
fromMailAddress
string- From mail address.
fromMailName
string- From mail sender name.
mailTemplate
Template- The mail template.
Returns
- bool
true
if send was succesful; otherwisefalse
.
SetToken(string)
Sets token related to the order.
[Obsolete]
public void SetToken(string token)
Parameters
token
string- The payment transaction token.
UpdateCartToOrder()
Updates the order.
[Obsolete("Use Ecommerce.Services.Orders.UpdateCartToOrder instead.")]
public void UpdateCartToOrder()
UpdateCartToQuote()
Updates the order.
[Obsolete("Use Ecommerce.Services.Orders.UpdateCartToQuote instead.")]
public void UpdateCartToQuote()
UpdateExistOrderFromCartToOrder()
Updates the existing order from cart to order.
[Obsolete("Use Ecommerce.Services.Orders.UpdateCartToQuote instead.")]
public void UpdateExistOrderFromCartToOrder()
UpdateGatewayResult()
Updates the gateway result.
[Obsolete("Use Ecommerce.Services.Orders.UpdateGatewayResult instead.")]
public void UpdateGatewayResult()
UpdateGatewayResult(bool)
Updates the gateway result.
[Obsolete("Use Ecommerce.Services.Orders.UpdateGatewayResult instead.")]
public void UpdateGatewayResult(bool setComplete)
Parameters
setComplete
bool- if set to
true
[set complete].
UpdateStepInfo()
Updates the step information.
[Obsolete("Use Ecommerce.Services.Orders.UpdateStepInfo instead.")]
public void UpdateStepInfo()
UpdateVat(double)
Updates the VAT.
[Obsolete("Use Ecommerce.Services.Orders.UpdateVat instead.")]
public void UpdateVat(double vat)
Parameters
vat
double- The VAT. DB fields names are OrderVAT and OrderPriceVAT.
UpdateVat(double, double)
Updates the VAT.
[Obsolete("Use Ecommerce.Services.Orders.UpdateVat instead.")]
public void UpdateVat(double vat, double vatpercent)
Parameters
vat
double- The VAT. DB fields names are OrderVAT and OrderPriceVAT.
vatpercent
double- The VAT percent. DB field name is OrderPriceVATPercent.
ValidatePricesInDatabase()
Validates the prices in database. If AllowOverridePrices is set to
true
, this method also returns true
.[Obsolete("Use Ecommerce.Services.Orders.ValidatePricesInDatabase instead.")]
public bool ValidatePricesInDatabase()
Returns
- bool
true
if prices validate;false
otherwise.
ValidatePricesInDatabase(ref double, ref double, ref double)
Validates the prices in database. If AllowOverridePrices is set to
true
, this method also returns true
.[Obsolete("Use Ecommerce.Services.Orders.ValidatePricesInDatabase instead.")]
public bool ValidatePricesInDatabase(ref double orderPrice, ref double orderlinePrice, ref double priceDifference)
Parameters
orderPrice
double- returns order price if prices invalid
orderlinePrice
double- returns order lines price if prices invalid
priceDifference
double- returns price difference if prices invalid
Returns
- bool
true
if prices validate;false
otherwise.