Table of Contents

Class Subscription

Namespace
Rescope.Commerce.Core.Entities
Assembly
Rescope.Commerce.Core.dll
[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

Dictionary<string, string>

BillingAddress

public PostalAddress? BillingAddress { get; set; }

Property Value

PostalAddress

CreatedAt

public DateTime CreatedAt { get; set; }

Property Value

DateTime

CreatedByOrder

[JsonIgnore]
public Order? CreatedByOrder { get; }

Property Value

Order

CreatedByOrderId

public Guid? CreatedByOrderId { get; }

Property Value

Guid?

Currency

public Currency Currency { get; }

Property Value

Currency

CurrencyId

public Guid CurrencyId { get; }

Property Value

Guid

CustomData

public string? CustomData { get; set; }

Property Value

string

DeliveryAddress

public PostalAddress? DeliveryAddress { get; set; }

Property Value

PostalAddress

Email

public string? Email { get; set; }

Property Value

string

Enabled

public bool Enabled { get; set; }

Property Value

bool

Id

public Guid Id { get; }

Property Value

Guid

Name

public string? Name { get; set; }

Property Value

string

NextOrderTime

public DateTime? NextOrderTime { get; set; }

Property Value

DateTime?

Notes

public string? Notes { get; set; }

Property Value

string

NotificationLogs

public IEnumerable<SubscriptionNotificationLog> NotificationLogs { get; }

Property Value

IEnumerable<SubscriptionNotificationLog>

Orders

[JsonIgnore]
public IEnumerable<Order> Orders { get; }

Property Value

IEnumerable<Order>

PaymentCardToken

public string? PaymentCardToken { get; set; }

Property Value

string

PaymentMethod

public PaymentMethod? PaymentMethod { get; set; }

Property Value

PaymentMethod

PaymentMethodId

public Guid? PaymentMethodId { get; set; }

Property Value

Guid?

Phone

public string? Phone { get; set; }

Property Value

string

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

string

ShippingMethod

public ShippingMethod? ShippingMethod { get; set; }

Property Value

ShippingMethod

ShippingMethodId

public Guid? ShippingMethodId { get; set; }

Property Value

Guid?

ShippingPrice

[Column(TypeName = "DECIMAL(19, 4)")]
public decimal ShippingPrice { get; }

Property Value

decimal

ShippingPriceFormatted

public string ShippingPriceFormatted { get; }

Property Value

string

ShippingTax

[Column(TypeName = "DECIMAL(19, 4)")]
public decimal ShippingTax { get; }

Property Value

decimal

ShippingTaxFormatted

public string ShippingTaxFormatted { get; }

Property Value

string

Store

public Store Store { get; }

Property Value

Store

StoreId

public Guid StoreId { get; }

Property Value

Guid

SubscriptionLineItems

[NotMapped]
public IEnumerable<SubscriptionLineItem> SubscriptionLineItems { get; }

Property Value

IEnumerable<SubscriptionLineItem>

TotalLineItemsTax

[Column(TypeName = "DECIMAL(19, 4)")]
public decimal TotalLineItemsTax { get; }

Property Value

decimal

TotalLineItemsTaxFormatted

public string TotalLineItemsTaxFormatted { get; }

Property Value

string

TotalPrice

[Column(TypeName = "DECIMAL(19, 4)")]
public decimal TotalPrice { get; }

Property Value

decimal

TotalPriceFormatted

public string TotalPriceFormatted { get; }

Property Value

string

TotalShippingPrice

[Column(TypeName = "DECIMAL(19, 4)")]
public decimal TotalShippingPrice { get; }

Property Value

decimal

TotalShippingPriceFormatted

public string TotalShippingPriceFormatted { get; }

Property Value

string

TotalTax

[Column(TypeName = "DECIMAL(19, 4)")]
public decimal TotalTax { get; }

Property Value

decimal

TotalTaxFormatted

public string TotalTaxFormatted { get; }

Property Value

string

UmbracoMemberKey

public Guid? UmbracoMemberKey { get; set; }

Property Value

Guid?

UpdatedAt

public DateTime? UpdatedAt { get; set; }

Property Value

DateTime?

Methods

FormatNumber(decimal)

Format a decimal using this order's selected currency

public string FormatNumber(decimal number)

Parameters

number decimal

Returns

string

GetIdHash()

public string GetIdHash()

Returns

string