Click or drag to resize

Subscription Class

Describes a Braintree subscription.
Inheritance Hierarchy
SystemObject
  NetQuarry.Services.PaymentSubscription

Namespace:  NetQuarry.Services.Payment
Assembly:  EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax
[SerializableAttribute]
public class Subscription : ICloneable

The Subscription type exposes the following members.

Constructors
  NameDescription
Public methodSubscription
Initializes a new instance of the Subscription class
Top
Properties
  NameDescription
Public propertybalance
The current unpaid balance.
Public propertybilling_period_end_date
The start end of the billing period.
Public propertybilling_period_start_date
The start date of the billing period.
Public propertycreated_at
The date/time that the subscription was created.
Public propertycurrent_billing_cycle
The current billing cycle.
Public propertydays_past_due
The number of days the oldest overdue payment is past due.
Public propertyfailure_count
The number of attempted payments that have failed.
Public propertyfirst_billing_date
The first billing date of the subscription.
Public propertyhas_trial_period
True if this should have a trial period
Public propertyid
The subscription ID.
Public propertynever_expires
Specifies that the subscription has no expiration.
Public propertynext_bill_amount
The next bill amount.
Public propertynext_billing_date
The next billing date.
Public propertynext_billing_period_amount
The total amount of the next billing period.
Public propertynumber_of_billing_cycles
The number of billing cycles in this subscription.
Public propertypaid_through_date
The date through which all payments are current.
Public propertypayment_method_token
The payment token to use for the subscription.
Public propertyplan_id
The Braintree plan id. Must be created in braintree first.
Public propertyprice
The per-period cost
Public propertystatus
The status of the current subscription.
Public propertytransaction
The first transaction
Public propertytrial_duration_days
The number of trial days
Public propertyupdated_at
The date/time that the subscription was last updated.
Top
Methods
  NameDescription
Public methodClone
Typesafe Clone
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(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.)
Top
Extension Methods
  NameDescription
Public Extension MethodEqualValue
Determines if the object value is equal to another object. If the two objects are null, then this returns true. There is special handling for guid comparisons (since a guid could be a string formatted in up to 3 different ways). If the special guid handling is not performed, then the object.Equals method is used.
(Defined by EAPUtil.)
Top
See Also