public class Subscription extends MutableEntity<Subscription>
| Modifier and Type | Class and Description |
|---|---|
static class |
Subscription.SubscriptionState |
static class |
Subscription.SubscriptionType |
| Modifier and Type | Field and Description |
|---|---|
protected String |
accountID |
protected Date |
actualStartDate |
protected String |
changedBy |
protected Date |
created |
protected Date |
currentPeriodEnd |
protected Date |
currentPeriodEndExplicit |
protected Date |
currentPeriodStart |
protected String |
description |
protected Date |
effectiveStartDate |
protected String |
id |
protected String |
locked |
protected String |
managedBy |
protected String |
name |
protected String |
organizationID |
protected List<PaymentMethodSubscriptionLink> |
paymentMethodSubscriptionLinks |
protected List<PricingComponentValue> |
pricingComponentValues |
protected String |
productID |
protected RatePlan |
productRatePlan |
protected String |
productRatePlanID |
protected static ResourcePath |
resourcePath |
protected String |
state |
protected Date |
subscriptionEnd |
protected String |
type |
protected Date |
updated |
m_client, PRETTY_PRINT_GSON| Constructor and Description |
|---|
Subscription() |
Subscription(BillForwardClient client_) |
savecreate, create, retiregetAll, getByID, getByID, getByIDPostPath, getClient, setClient, toStringprotected String id
protected String accountID
protected String organizationID
protected String productID
protected String productRatePlanID
protected String name
protected String description
protected String type
protected String state
protected Date currentPeriodStart
protected Date currentPeriodEnd
protected Date effectiveStartDate
protected Date actualStartDate
protected Date subscriptionEnd
protected Date currentPeriodEndExplicit
protected String locked
protected String managedBy
protected Date updated
protected String changedBy
protected Date created
protected RatePlan productRatePlan
protected List<PaymentMethodSubscriptionLink> paymentMethodSubscriptionLinks
protected List<PricingComponentValue> pricingComponentValues
protected static ResourcePath resourcePath
public Subscription(BillForwardClient client_)
public Subscription()
public String getID()
public String getAccountID()
public void setAccountID(String accountID)
public String getProductID()
public void setProductID(String productID)
public String getProductRatePlanID()
public void setProductRatePlanID(String productRatePlanID)
public String getName()
public void setName(String name)
public String getDescription()
public void setDescription(String description)
public String getTypeAsString()
public Subscription.SubscriptionType getType()
public void setType(Subscription.SubscriptionType type)
public String getStateAsString()
public Subscription.SubscriptionState getState()
public void setState(Subscription.SubscriptionState state)
public Date getCurrentPeriodStart()
public void setCurrentPeriodStart(Date currentPeriodStart)
public Date getCurrentPeriodEnd()
public void setCurrentPeriodEnd(Date currentPeriodEnd)
public Date getEffectiveStartDate()
public void setEffectiveStartDate(Date effectiveStartDate)
public Date getActualStartDate()
public void setActualStartDate(Date actualStartDate)
public Date getSubscriptionEnd()
public void setSubscriptionEnd(Date subscriptionEnd)
public Date getCurrentPeriodEndExplicit()
public void setCurrentPeriodEndExplicit(Date currentPeriodEndExplicit)
public String getManagedBy()
public void setManagedBy(String managedBy)
public Date getUpdated()
public String getChangedBy()
public Date getCreated()
public RatePlan getProductRatePlan()
public List<PricingComponentValue> getPricingComponentValues()
public void setPricingComponentValues(List<PricingComponentValue> pricingComponentValues)
public static Subscription create(Subscription subscription) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
public static Subscription getByID(String ID) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
public static Subscription[] getByAccountID(String accountID) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
public static Subscription[] getByState(Subscription.SubscriptionState state_) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
public static Subscription[] getByRatePlanID(String ratePlanID) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
public static Subscription[] getByProductID(String productID) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
public static Subscription[] getAll() throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
protected ResourcePath getResourcePath()
getResourcePath in class BillingEntityprotected static ResourcePath ResourcePath()
public void addPaymentMethod(PaymentMethod paymentMethod)
public CancellationAmendment cancelImmediately() throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
AuthenticationExceptionInvalidRequestExceptionAPIConnectionExceptionCardExceptionAPIExceptionpublic CancellationAmendment cancelAtPeriodEnd() throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
AuthenticationExceptionInvalidRequestExceptionAPIConnectionExceptionCardExceptionAPIExceptionCopyright © 2014 BillForward. All rights reserved.