public class Subscription extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Subscription.DurationUnit |
static class |
Subscription.Source |
static class |
Subscription.Status |
Constructor and Description |
---|
Subscription(NodeWrapper node) |
private BigDecimal balance
private Integer billingDayOfMonth
private Calendar billingPeriodEndDate
private Calendar billingPeriodStartDate
private Integer currentBillingCycle
private Integer daysPastDue
private Descriptor descriptor
private String description
private Integer failureCount
private Calendar createdAt
private Calendar updatedAt
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<SubscriptionStatusEvent> statusHistory
private List<Transaction> transactions
private Integer trialDuration
private Subscription.DurationUnit trialDurationUnit
public Subscription(NodeWrapper node)
public BigDecimal getBalance()
public Integer getBillingDayOfMonth()
public Calendar getBillingPeriodEndDate()
public Calendar getBillingPeriodStartDate()
public Integer getCurrentBillingCycle()
public Integer getDaysPastDue()
public Descriptor getDescriptor()
public String getDescription()
public Integer getFailureCount()
public Calendar getFirstBillingDate()
public String getId()
public String getMerchantAccountId()
@Deprecated public BigDecimal getNextBillAmount()
public Calendar getNextBillingDate()
public BigDecimal getNextBillingPeriodAmount()
public Integer getNumberOfBillingCycles()
public Calendar getCreatedAt()
public Calendar getUpdatedAt()
public Calendar getPaidThroughDate()
public String getPaymentMethodToken()
public String getPlanId()
public BigDecimal getPrice()
public List<SubscriptionStatusEvent> getStatusHistory()
public Subscription.Status getStatus()
public List<Transaction> getTransactions()
public Integer getTrialDuration()
public Subscription.DurationUnit getTrialDurationUnit()
public Boolean hasTrialPeriod()
public boolean neverExpires()
Copyright © 2013-2018. All Rights Reserved.