com.braintreegateway
Class Subscription

java.lang.Object
  extended by com.braintreegateway.Subscription

public class Subscription
extends Object


Nested Class Summary
static class Subscription.DurationUnit
           
static class Subscription.Status
           
 
Field Summary
private  ArrayList<AddOn> addOns
           
private  BigDecimal balance
           
private  Integer billingDayOfMonth
           
private  Calendar billingPeriodEndDate
           
private  Calendar billingPeriodStartDate
           
private  Integer currentBillingCycle
           
private  Integer daysPastDue
           
private  Descriptor descriptor
           
private  ArrayList<Discount> discounts
           
private  Integer failureCount
           
private  Calendar firstBillingDate
           
private  Boolean hasTrialPeriod
           
private  String id
           
private  String merchantAccountId
           
private  boolean neverExpires
           
private  BigDecimal nextBillAmount
           
private  Calendar nextBillingDate
           
private  BigDecimal nextBillingPeriodAmount
           
private  Integer numberOfBillingCycles
           
private  Calendar paidThroughDate
           
private  String paymentMethodToken
           
private  String planId
           
private  BigDecimal price
           
private  Subscription.Status status
           
private  List<Transaction> transactions
           
private  Integer trialDuration
           
private  Subscription.DurationUnit trialDurationUnit
           
 
Constructor Summary
Subscription(NodeWrapper node)
           
 
Method Summary
 List<AddOn> getAddOns()
           
 BigDecimal getBalance()
           
 Integer getBillingDayOfMonth()
           
 Calendar getBillingPeriodEndDate()
           
 Calendar getBillingPeriodStartDate()
           
 Integer getCurrentBillingCycle()
           
 Integer getDaysPastDue()
           
 Descriptor getDescriptor()
           
 List<Discount> getDiscounts()
           
 Integer getFailureCount()
           
 Calendar getFirstBillingDate()
           
 String getId()
           
 String getMerchantAccountId()
           
 BigDecimal getNextBillAmount()
          Deprecated. 
 Calendar getNextBillingDate()
           
 BigDecimal getNextBillingPeriodAmount()
           
 Integer getNumberOfBillingCycles()
           
 Calendar getPaidThroughDate()
           
 String getPaymentMethodToken()
           
 String getPlanId()
           
 BigDecimal getPrice()
           
 Subscription.Status getStatus()
           
 List<Transaction> getTransactions()
           
 Integer getTrialDuration()
           
 Subscription.DurationUnit getTrialDurationUnit()
           
 Boolean hasTrialPeriod()
           
 boolean neverExpires()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

addOns

private ArrayList<AddOn> addOns

balance

private BigDecimal balance

billingDayOfMonth

private Integer billingDayOfMonth

billingPeriodEndDate

private Calendar billingPeriodEndDate

billingPeriodStartDate

private Calendar billingPeriodStartDate

currentBillingCycle

private Integer currentBillingCycle

daysPastDue

private Integer daysPastDue

descriptor

private Descriptor descriptor

discounts

private ArrayList<Discount> discounts

failureCount

private Integer failureCount

firstBillingDate

private Calendar firstBillingDate

hasTrialPeriod

private Boolean hasTrialPeriod

id

private String id

merchantAccountId

private String merchantAccountId

neverExpires

private boolean neverExpires

nextBillAmount

private BigDecimal nextBillAmount

nextBillingDate

private Calendar nextBillingDate

nextBillingPeriodAmount

private BigDecimal nextBillingPeriodAmount

numberOfBillingCycles

private Integer numberOfBillingCycles

paidThroughDate

private Calendar paidThroughDate

paymentMethodToken

private String paymentMethodToken

planId

private String planId

price

private BigDecimal price

status

private Subscription.Status status

transactions

private List<Transaction> transactions

trialDuration

private Integer trialDuration

trialDurationUnit

private Subscription.DurationUnit trialDurationUnit
Constructor Detail

Subscription

public Subscription(NodeWrapper node)
Method Detail

getAddOns

public List<AddOn> getAddOns()

getBalance

public BigDecimal getBalance()

getBillingDayOfMonth

public Integer getBillingDayOfMonth()

getBillingPeriodEndDate

public Calendar getBillingPeriodEndDate()

getBillingPeriodStartDate

public Calendar getBillingPeriodStartDate()

getCurrentBillingCycle

public Integer getCurrentBillingCycle()

getDaysPastDue

public Integer getDaysPastDue()

getDescriptor

public Descriptor getDescriptor()

getDiscounts

public List<Discount> getDiscounts()

getFailureCount

public Integer getFailureCount()

getFirstBillingDate

public Calendar getFirstBillingDate()

getId

public String getId()

getMerchantAccountId

public String getMerchantAccountId()

getNextBillAmount

@Deprecated
public BigDecimal getNextBillAmount()
Deprecated. 


getNextBillingDate

public Calendar getNextBillingDate()

getNextBillingPeriodAmount

public BigDecimal getNextBillingPeriodAmount()

getNumberOfBillingCycles

public Integer getNumberOfBillingCycles()

getPaidThroughDate

public Calendar getPaidThroughDate()

getPaymentMethodToken

public String getPaymentMethodToken()

getPlanId

public String getPlanId()

getPrice

public BigDecimal getPrice()

getStatus

public Subscription.Status getStatus()

getTransactions

public List<Transaction> getTransactions()

getTrialDuration

public Integer getTrialDuration()

getTrialDurationUnit

public Subscription.DurationUnit getTrialDurationUnit()

hasTrialPeriod

public Boolean hasTrialPeriod()

neverExpires

public boolean neverExpires()


Copyright © 2013. All Rights Reserved.