Click or drag to resize

Subscription Class

Subscription business class.
Inheritance Hierarchy
SystemObject
  Atomia.Billing.Core.Sdk.BusinessObjectsSubscription

Namespace:  Atomia.Billing.Core.Sdk.BusinessObjects
Assembly:  Atomia.Billing.Core.Sdk (in Atomia.Billing.Core.Sdk.dll) Version: 18.10.7096.28998
Syntax
[SerializableAttribute]
public class Subscription : IBusinessObject<SubscriptionData>

The Subscription type exposes the following members.

Constructors
  NameDescription
Public methodSubscription
Initializes a new instance of the Subscription class.
Top
Properties
  NameDescription
Public propertyAccountId
Gets or sets the account id (reseller) which is the owner of this subscription.
Public propertyCompanyName
Gets or sets the name of the company.
Public propertyCreatedByAccountId
Gets or sets the created by account id.
Public propertyCurrency
Gets or sets the currency.
Public propertyCustomAttributes
Gets or sets the custom attributes.
Public propertyCustomerId
Gets or sets the customer id.
Public propertyDataObject
Gets or sets the data object. When getting data object it creates a new object from the database.
Public propertyDeleted
Gets or sets a value indicating whether this Subscription is deleted.
Public propertyDescription
Gets or sets the description.
Public propertyDiscount
Gets or sets the discount.
Public propertyExpirationDate
Gets or sets the expiration date.
Public propertyFirstName
Gets or sets the first name.
Public propertyFriendlyId
Gets or sets the friendly id.
Public propertyId
Gets or sets the id.
Public propertyInvoiceId
Gets or sets the invoice id.
Public propertyIsDiscountTransferable
Gets or sets a value indicating whether discount is transferable.
Public propertyIsProvisioningInProgress
Gets or sets a value indicating whether provisioning is in progress.
Public propertyItem
Gets or sets the item.
Public propertyItemId
Gets or sets the item id.
Public propertyItemName
Gets or sets the name of the item.
Public propertyLastName
Gets or sets the last name.
Public propertyLastProvisioningAttemptTime
Gets or sets the last provisioning attempt time.
Public propertyLegalNumber
Gets or sets customer's legal number.
Public propertyNextRenewalDate
Gets or sets the next renewal date.
Public propertyNotifications
Gets or sets the subscription notifications.
Public propertyOldSubscription
Gets or sets the old subscription for upgrades/downgrades to this one.
Public propertyPayment
Gets Payment status. This value is a string that can take the following values based on invoice state: OK FALSE
Public propertyProvisioningAttempts
Gets or sets the number of provisioning attempts.
Public propertyProvisioningOrder
Gets or sets the provisioning order.
Public propertyProvisioningStatus
Gets or sets the provisioning status. This value is a string that can take the following values: NONE PREPARED (prepare provisioning is done). PREPARE_ERROR (there was an error when prepare provisioning is tried). PROVISIONED (provisioning is successfully finished). PROVISION_ERROR (there was an error when provisioning is tried).
Public propertyProvisioningStatusMessage
Gets or sets the provisioning status error or warning message.
Public propertyQuantity
Gets or sets the qunatity.
Public propertyRecurring
Gets or sets a value indicating whether subscription is recurring.
Public propertyRenewalPeriod
Gets or sets the renewal period.
Public propertyRenewalPeriodId
Gets or sets the renewal period id.
Public propertyStartDate
Gets or sets the start date.
Public propertyState
Gets or sets the state.
Public propertySubscriptionNotes
Gets or sets the subscription notes.
Public propertySubscriptionPrices
Gets or sets the subscription prices.
Public propertyType
Gets or sets the type.
Top
Methods
  NameDescription
Public methodCalculateNextRenewalDate(DateTime)
Calculates the next renewal date from the starting date.
Public methodCalculateNextRenewalDate(DateTime, RenewalPeriod)
Calculates the next renewal date.
Public methodCalculateProrateCoeficient
Calculates the prorate coeficient.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodUpdateDataObject
Updates the data object by merging it's properties with the properties from the current business object.
Top
Fields
See Also