public class Subscription extends Object implements Serializable
| Modifier | Constructor and Description |
|---|---|
protected |
Subscription() |
| Modifier and Type | Method and Description |
|---|---|
static Subscription |
createSubscription()
Create a subscription.
|
BigDecimal |
getAmount()
Get the subscription amount.
|
Customer |
getCustomer()
Get the customer container.
|
String |
getName()
Get the name of the subscription.
|
Order |
getOrder() |
Payment |
getPayment()
Get the payment container.
|
Profile |
getProfile()
Get the profile container.
|
String |
getRefId() |
PaymentSchedule |
getSchedule()
Get the payment schedule of the subscription.
|
String |
getSubscriptionId()
Get the subscription id.
|
BigDecimal |
getTrialAmount()
Get the trial amount of the subscription.
|
void |
setAmount(BigDecimal amount)
Set the subscription amount.
|
void |
setCustomer(Customer customer)
Set the customer container.
|
void |
setName(String name)
Set the name of the subscription.
|
void |
setOrder(Order order) |
void |
setPayment(Payment payment)
Set the payment container for the subscription.
|
void |
setProfile(Profile profile)
Set the profile container.
|
void |
setRefId(String refId) |
void |
setSchedule(PaymentSchedule schedule)
Set the payment schedule of the subscription.
|
void |
setSubscriptionId(String subscription_id)
Set the subscription id.
|
void |
setTrialAmount(BigDecimal trial_amount)
Set the trial amount of the subscription.
|
public static Subscription createSubscription()
public String getSubscriptionId()
public void setSubscriptionId(String subscription_id)
subscription_id - public Customer getCustomer()
public void setCustomer(Customer customer)
customer - public Profile getProfile()
public void setProfile(Profile profile)
profile - public BigDecimal getAmount()
public void setAmount(BigDecimal amount)
amount - public String getName()
public void setName(String name)
name - public Payment getPayment()
public void setPayment(Payment payment)
payment - public PaymentSchedule getSchedule()
public void setSchedule(PaymentSchedule schedule)
schedule - public BigDecimal getTrialAmount()
public void setTrialAmount(BigDecimal trial_amount)
trial_amount - public String getRefId()
public void setRefId(String refId)
refId - the refId to setpublic Order getOrder()
public void setOrder(Order order)
order - the order to setCopyright © 2016. All Rights Reserved.