public class Subscription extends java.lang.Object implements SubscriptionIf
Constructor and Description |
---|
Subscription()
Constructor
|
Subscription(com.workingdogs.village.Record vr,
KKCriteria c)
Instantiates the attributes of the Country object from a Record object
|
Modifier and Type | Method and Description |
---|---|
java.math.BigDecimal |
getAmount()
The amount billed
|
CreditCardIf |
getCreditCard()
Credit Card for the subscription
|
java.lang.String |
getCustom1() |
java.lang.String |
getCustom2() |
java.lang.String |
getCustom3() |
java.lang.String |
getCustom4() |
java.lang.String |
getCustom5() |
int |
getCustomerId()
Customer id
|
java.util.Calendar |
getDateAdded() |
int |
getId() |
java.util.Calendar |
getLastBillingDate()
The last time that the customer was billed
|
java.util.Calendar |
getLastModified() |
java.util.Calendar |
getNextBillingDate()
The next time that the customer will be billed
|
int |
getOrderId()
Id of the order
|
java.lang.String |
getOrderNumber()
Order Number
|
PaymentScheduleIf |
getPaymentSchedule()
PaymentSchedule object for this subscription
|
int |
getPaymentScheduleId()
PaymentSchedule id for this subscription
|
java.lang.String |
getProblemDesc()
A description of the problem detected during billing
|
int |
getProductId()
Id of the product being paid for
|
java.lang.String |
getProductSku()
SKU of the product being paid for
|
java.util.Calendar |
getStartDate()
Start date for the subscription
|
java.lang.String |
getSubscriptionCode()
Unique code for the subscription.
|
java.math.BigDecimal |
getTrialAmount()
The amount billed during the trial period
|
boolean |
isActive()
Set to true when the subscription is active
|
boolean |
isProblem()
Set to true if a problem has been detected during a billing transaction.
|
void |
setActive(boolean active)
Set to true when the subscription is active
|
void |
setAmount(java.math.BigDecimal amount)
The amount billed
|
void |
setCreditCard(CreditCardIf creditCard)
Credit Card for the subscription
|
void |
setCustom1(java.lang.String custom1) |
void |
setCustom2(java.lang.String custom2) |
void |
setCustom3(java.lang.String custom3) |
void |
setCustom4(java.lang.String custom4) |
void |
setCustom5(java.lang.String custom5) |
void |
setCustomerId(int customerId)
Customer id
|
void |
setDateAdded(java.util.Calendar dateAdded) |
void |
setId(int id) |
void |
setLastBillingDate(java.util.Calendar lastBillingDate)
The last time that the customer was billed
|
void |
setLastModified(java.util.Calendar lastModified) |
void |
setNextBillingDate(java.util.Calendar nextBillingDate)
The next time that the customer will be billed
|
void |
setOrderId(int orderId)
Id of the order
|
void |
setOrderNumber(java.lang.String orderNumber)
Order Number
|
void |
setPaymentSchedule(PaymentScheduleIf paymentSchedule)
PaymentSchedule object for this subscription
|
void |
setPaymentScheduleId(int paymentScheduleId)
PaymentSchedule id for this subscription
|
void |
setProblem(boolean problem)
Set to true if a problem has been detected during a billing transaction.
|
void |
setProblemDesc(java.lang.String problemDesc)
A description of the problem detected during billing
|
void |
setProductId(int productId)
Id of the product being paid for
|
void |
setProductSku(java.lang.String productSku)
SKU of the product being paid for
|
void |
setStartDate(java.util.Calendar startDate)
Start date for the subscription
|
void |
setSubscriptionCode(java.lang.String subscriptionCode)
Unique code for the subscription.
|
void |
setTrialAmount(java.math.BigDecimal trialAmount)
The amount billed during the trial period
|
java.lang.String |
toString() |
public Subscription()
public Subscription(com.workingdogs.village.Record vr, KKCriteria c) throws com.workingdogs.village.DataSetException
vr
- Record containing datac
- Criteria containing column namescom.workingdogs.village.DataSetException
- an unexpected exception due to data in Torque (the database layer)public java.lang.String toString()
toString
in class java.lang.Object
public int getId()
getId
in interface SubscriptionIf
public void setId(int id)
setId
in interface SubscriptionIf
id
- the id to setpublic java.lang.String getCustom1()
getCustom1
in interface SubscriptionIf
public void setCustom1(java.lang.String custom1)
setCustom1
in interface SubscriptionIf
custom1
- the custom1 to setpublic java.lang.String getCustom2()
getCustom2
in interface SubscriptionIf
public void setCustom2(java.lang.String custom2)
setCustom2
in interface SubscriptionIf
custom2
- the custom2 to setpublic java.lang.String getCustom3()
getCustom3
in interface SubscriptionIf
public void setCustom3(java.lang.String custom3)
setCustom3
in interface SubscriptionIf
custom3
- the custom3 to setpublic java.lang.String getCustom4()
getCustom4
in interface SubscriptionIf
public void setCustom4(java.lang.String custom4)
setCustom4
in interface SubscriptionIf
custom4
- the custom4 to setpublic java.lang.String getCustom5()
getCustom5
in interface SubscriptionIf
public void setCustom5(java.lang.String custom5)
setCustom5
in interface SubscriptionIf
custom5
- the custom5 to setpublic java.util.Calendar getDateAdded()
getDateAdded
in interface SubscriptionIf
public void setDateAdded(java.util.Calendar dateAdded)
setDateAdded
in interface SubscriptionIf
dateAdded
- the dateAdded to setpublic java.util.Calendar getLastModified()
getLastModified
in interface SubscriptionIf
public void setLastModified(java.util.Calendar lastModified)
setLastModified
in interface SubscriptionIf
lastModified
- the lastModified to setpublic int getOrderId()
getOrderId
in interface SubscriptionIf
public void setOrderId(int orderId)
setOrderId
in interface SubscriptionIf
orderId
- the orderId to setpublic int getProductId()
getProductId
in interface SubscriptionIf
public void setProductId(int productId)
setProductId
in interface SubscriptionIf
productId
- the productId to setpublic java.lang.String getSubscriptionCode()
getSubscriptionCode
in interface SubscriptionIf
public void setSubscriptionCode(java.lang.String subscriptionCode)
setSubscriptionCode
in interface SubscriptionIf
subscriptionCode
- the subscriptionCode to setpublic java.util.Calendar getStartDate()
getStartDate
in interface SubscriptionIf
public void setStartDate(java.util.Calendar startDate)
setStartDate
in interface SubscriptionIf
startDate
- the startDate to setpublic java.math.BigDecimal getAmount()
getAmount
in interface SubscriptionIf
public void setAmount(java.math.BigDecimal amount)
setAmount
in interface SubscriptionIf
amount
- the amount to setpublic java.math.BigDecimal getTrialAmount()
getTrialAmount
in interface SubscriptionIf
public void setTrialAmount(java.math.BigDecimal trialAmount)
setTrialAmount
in interface SubscriptionIf
trialAmount
- the trialAmount to setpublic boolean isActive()
isActive
in interface SubscriptionIf
public void setActive(boolean active)
setActive
in interface SubscriptionIf
active
- the active to setpublic boolean isProblem()
isProblem
in interface SubscriptionIf
public void setProblem(boolean problem)
setProblem
in interface SubscriptionIf
problem
- the problem to setpublic java.lang.String getProblemDesc()
getProblemDesc
in interface SubscriptionIf
public void setProblemDesc(java.lang.String problemDesc)
setProblemDesc
in interface SubscriptionIf
problemDesc
- the problemDesc to setpublic java.util.Calendar getLastBillingDate()
getLastBillingDate
in interface SubscriptionIf
public void setLastBillingDate(java.util.Calendar lastBillingDate)
setLastBillingDate
in interface SubscriptionIf
lastBillingDate
- the lastBillingDate to setpublic java.util.Calendar getNextBillingDate()
getNextBillingDate
in interface SubscriptionIf
public void setNextBillingDate(java.util.Calendar nextBillingDate)
setNextBillingDate
in interface SubscriptionIf
nextBillingDate
- the nextBillingDate to setpublic int getPaymentScheduleId()
getPaymentScheduleId
in interface SubscriptionIf
public void setPaymentScheduleId(int paymentScheduleId)
setPaymentScheduleId
in interface SubscriptionIf
paymentScheduleId
- the paymentScheduleId to setpublic java.lang.String getOrderNumber()
getOrderNumber
in interface SubscriptionIf
public void setOrderNumber(java.lang.String orderNumber)
setOrderNumber
in interface SubscriptionIf
orderNumber
- the orderNumber to setpublic java.lang.String getProductSku()
getProductSku
in interface SubscriptionIf
public void setProductSku(java.lang.String productSku)
setProductSku
in interface SubscriptionIf
productSku
- the productSku to setpublic int getCustomerId()
getCustomerId
in interface SubscriptionIf
public void setCustomerId(int customerId)
setCustomerId
in interface SubscriptionIf
customerId
- the customerId to setpublic PaymentScheduleIf getPaymentSchedule()
getPaymentSchedule
in interface SubscriptionIf
public void setPaymentSchedule(PaymentScheduleIf paymentSchedule)
setPaymentSchedule
in interface SubscriptionIf
paymentSchedule
- the paymentSchedule to setpublic CreditCardIf getCreditCard()
getCreditCard
in interface SubscriptionIf
public void setCreditCard(CreditCardIf creditCard)
setCreditCard
in interface SubscriptionIf
creditCard
- the creditCard to setCopyright © 2018 DS Data Systems UK Ltd.