Package com.braintreegateway
Class Subscription
- java.lang.Object
-
- com.braintreegateway.Subscription
-
public class Subscription extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Subscription.DurationUnit
static class
Subscription.Source
static class
Subscription.Status
-
Field Summary
-
Constructor Summary
Constructors Constructor Description Subscription(NodeWrapper node)
-
Method Summary
-
-
-
Field Detail
-
balance
private BigDecimal balance
-
billingDayOfMonth
private Integer billingDayOfMonth
-
billingPeriodEndDate
private Calendar billingPeriodEndDate
-
billingPeriodStartDate
private Calendar billingPeriodStartDate
-
createdAt
private Calendar createdAt
-
currentBillingCycle
private Integer currentBillingCycle
-
daysPastDue
private Integer daysPastDue
-
description
private String description
-
descriptor
private Descriptor descriptor
-
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
-
statusHistory
private List<SubscriptionStatusEvent> statusHistory
-
transactions
private List<Transaction> transactions
-
trialDuration
private Integer trialDuration
-
trialDurationUnit
private Subscription.DurationUnit trialDurationUnit
-
updatedAt
private Calendar updatedAt
-
-
Constructor Detail
-
Subscription
public Subscription(NodeWrapper node)
-
-
Method Detail
-
getBalance
public BigDecimal getBalance()
-
getBillingDayOfMonth
public Integer getBillingDayOfMonth()
-
getBillingPeriodEndDate
public Calendar getBillingPeriodEndDate()
-
getBillingPeriodStartDate
public Calendar getBillingPeriodStartDate()
-
getCreatedAt
public Calendar getCreatedAt()
-
getCurrentBillingCycle
public Integer getCurrentBillingCycle()
-
getDaysPastDue
public Integer getDaysPastDue()
-
getDescription
public String getDescription()
-
getDescriptor
public Descriptor getDescriptor()
-
getFailureCount
public Integer getFailureCount()
-
getFirstBillingDate
public Calendar getFirstBillingDate()
-
getId
public String getId()
-
getMerchantAccountId
public String getMerchantAccountId()
-
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()
-
getStatusHistory
public List<SubscriptionStatusEvent> getStatusHistory()
-
getStatus
public Subscription.Status getStatus()
-
getTransactions
public List<Transaction> getTransactions()
-
getTrialDuration
public Integer getTrialDuration()
-
getTrialDurationUnit
public Subscription.DurationUnit getTrialDurationUnit()
-
getUpdatedAt
public Calendar getUpdatedAt()
-
hasTrialPeriod
public Boolean hasTrialPeriod()
-
neverExpires
public boolean neverExpires()
-
-