Class GiftCard
- Namespace
- Dynamicweb.Ecommerce.GiftCards
- Assembly
- Dynamicweb.Ecommerce.dll
Represents information about an GiftCard.
[Serializable]
public class GiftCard
- Inheritance
-
GiftCard
- Inherited Members
Constructors
GiftCard(bool)
Initializes a new instance of the GiftCard
public GiftCard(bool generateNewCode)
Parameters
generateNewCode
boolIf set to
true
, generates a new code for the gift card.
Properties
Code
Gets the GiftCard Code.
public string Code { get; }
Property Value
CreationDate
Gets or sets the GiftCard expiry date.
public DateTime CreationDate { get; set; }
Property Value
CurrencyCode
Gets or sets the currency code.
public string CurrencyCode { get; set; }
Property Value
ExpiryDate
Gets the GiftCard expiry date.
public DateTime ExpiryDate { get; }
Property Value
GiftCardId
Gets or sets the GiftCard ID.
public string GiftCardId { get; set; }
Property Value
ID
public int ID { get; set; }
Property Value
InitialAmount
Gets or sets the GiftCard initial Amount.
public double InitialAmount { get; set; }
Property Value
IsNew
public bool IsNew { get; }
Property Value
Name
Gets or sets or sets the GiftCard name.
public string Name { get; set; }
Property Value
VATPercent
Gets or sets the VAT percent.
public double? VATPercent { get; set; }
Property Value
- double?
The VAT percent