Class Subscription
[JsonObject(NamingStrategyType = typeof(CamelCaseNamingStrategy))]
public class Subscription : IEntity, IRescopeEntity, IBasketOrSubscription
- Inheritance
-
Subscription
- Implements
- Inherited Members
Properties
AdditionalData
public Dictionary<string, string> AdditionalData { get; set; }
Property Value
BillingAddress
public PostalAddress? BillingAddress { get; set; }
Property Value
CreatedAt
public DateTime CreatedAt { get; set; }
Property Value
CreatedByOrder
[JsonIgnore]
public Order? CreatedByOrder { get; }
Property Value
CreatedByOrderId
public Guid? CreatedByOrderId { get; }
Property Value
- Guid?
Currency
public Currency Currency { get; }
Property Value
CurrencyId
public Guid CurrencyId { get; }
Property Value
CustomData
public string? CustomData { get; set; }
Property Value
DeliveryAddress
public PostalAddress? DeliveryAddress { get; set; }
Property Value
public string? Email { get; set; }
Property Value
Enabled
public bool Enabled { get; set; }
Property Value
Id
public Guid Id { get; }
Property Value
Name
public string? Name { get; set; }
Property Value
NextOrderTime
public DateTime? NextOrderTime { get; set; }
Property Value
Notes
public string? Notes { get; set; }
Property Value
NotificationLogs
public IEnumerable<SubscriptionNotificationLog> NotificationLogs { get; }
Property Value
Orders
[JsonIgnore]
public IEnumerable<Order> Orders { get; }
Property Value
PaymentCardToken
public string? PaymentCardToken { get; set; }
Property Value
PaymentMethod
public PaymentMethod? PaymentMethod { get; set; }
Property Value
PaymentMethodId
public Guid? PaymentMethodId { get; set; }
Property Value
- Guid?
Phone
public string? Phone { get; set; }
Property Value
RecurEveryDays
public int? RecurEveryDays { get; set; }
Property Value
- int?
RecurEveryMonths
public int? RecurEveryMonths { get; set; }
Property Value
- int?
RecurPeriod
public string RecurPeriod { get; }
Property Value
ShippingMethod
public ShippingMethod? ShippingMethod { get; set; }
Property Value
ShippingMethodId
public Guid? ShippingMethodId { get; set; }
Property Value
- Guid?
ShippingPrice
[Column(TypeName = "DECIMAL(19, 4)")]
public decimal ShippingPrice { get; }
Property Value
ShippingPriceFormatted
public string ShippingPriceFormatted { get; }
Property Value
ShippingTax
[Column(TypeName = "DECIMAL(19, 4)")]
public decimal ShippingTax { get; }
Property Value
ShippingTaxFormatted
public string ShippingTaxFormatted { get; }
Property Value
Store
public Store Store { get; }
Property Value
StoreId
public Guid StoreId { get; }
Property Value
SubscriptionLineItems
[NotMapped]
public IEnumerable<SubscriptionLineItem> SubscriptionLineItems { get; }
Property Value
TotalLineItemsTax
[Column(TypeName = "DECIMAL(19, 4)")]
public decimal TotalLineItemsTax { get; }
Property Value
TotalLineItemsTaxFormatted
public string TotalLineItemsTaxFormatted { get; }
Property Value
TotalPrice
[Column(TypeName = "DECIMAL(19, 4)")]
public decimal TotalPrice { get; }
Property Value
TotalPriceFormatted
public string TotalPriceFormatted { get; }
Property Value
TotalShippingPrice
[Column(TypeName = "DECIMAL(19, 4)")]
public decimal TotalShippingPrice { get; }
Property Value
TotalShippingPriceFormatted
public string TotalShippingPriceFormatted { get; }
Property Value
TotalTax
[Column(TypeName = "DECIMAL(19, 4)")]
public decimal TotalTax { get; }
Property Value
TotalTaxFormatted
public string TotalTaxFormatted { get; }
Property Value
UmbracoMemberKey
public Guid? UmbracoMemberKey { get; set; }
Property Value
- Guid?
UpdatedAt
public DateTime? UpdatedAt { get; set; }
Property Value
Methods
FormatNumber(decimal)
Format a decimal using this order's selected currency
public string FormatNumber(decimal number)
Parameters
number
decimal
Returns
GetIdHash()
public string GetIdHash()