Sana Assistant (online)
Table of Contents

Basket Class

Basket model for validation.

Backward compatibility of the constructor is not guaranteed.

Basket class diagram

Properties

Id

public string Id { get; }

The basket identifier.

Lines

public IReadOnlyList<BasketLine> Lines { get; }

The collection that contains all products the user added to this basket.

ShippingAddress

public CustomerAddress? ShippingAddress { get; }

The shipping address.

SalesAgreementIds

public IReadOnlyList<string> SalesAgreementIds { get; }

The collection of IDs of currently applied sales agreements. Can be empty, contain a single agreement, or multiple agreements if the multiple sales agreements feature is enabled.

TotalPrice

public decimal TotalPrice { get; }

The total price of all products in the basket.

TaxAmount

public decimal TaxAmount { get; }

The total tax amount.

TaxPercent

public decimal TaxPercent { get; }

The total tax percentage.

DiscountAmount

public decimal DiscountAmount { get; }

The total discount amount.

TotalPriceExcludingTax

public decimal TotalPriceExcludingTax { get; }

The total price of items in the basket without tax.

TotalPriceExcludingDiscount

public decimal TotalPriceExcludingDiscount { get; }

The total price of items in the basket without discount.

ExceededCreditLimit

public decimal ExceededCreditLimit { get; }

The amount of exceeded credit.

PrepaymentAmount

public decimal PrepaymentAmount { get; }

The prepayment amount.

PaymentDiscount

public decimal PaymentDiscount { get; }

The payment discount amount.

TotalGrossWeight

public decimal? TotalGrossWeight { get; }

The total gross weight of items in the basket.

See Also