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.Objectpublic int getId()
getId in interface SubscriptionIfpublic void setId(int id)
setId in interface SubscriptionIfid - the id to setpublic java.lang.String getCustom1()
getCustom1 in interface SubscriptionIfpublic void setCustom1(java.lang.String custom1)
setCustom1 in interface SubscriptionIfcustom1 - the custom1 to setpublic java.lang.String getCustom2()
getCustom2 in interface SubscriptionIfpublic void setCustom2(java.lang.String custom2)
setCustom2 in interface SubscriptionIfcustom2 - the custom2 to setpublic java.lang.String getCustom3()
getCustom3 in interface SubscriptionIfpublic void setCustom3(java.lang.String custom3)
setCustom3 in interface SubscriptionIfcustom3 - the custom3 to setpublic java.lang.String getCustom4()
getCustom4 in interface SubscriptionIfpublic void setCustom4(java.lang.String custom4)
setCustom4 in interface SubscriptionIfcustom4 - the custom4 to setpublic java.lang.String getCustom5()
getCustom5 in interface SubscriptionIfpublic void setCustom5(java.lang.String custom5)
setCustom5 in interface SubscriptionIfcustom5 - the custom5 to setpublic java.util.Calendar getDateAdded()
getDateAdded in interface SubscriptionIfpublic void setDateAdded(java.util.Calendar dateAdded)
setDateAdded in interface SubscriptionIfdateAdded - the dateAdded to setpublic java.util.Calendar getLastModified()
getLastModified in interface SubscriptionIfpublic void setLastModified(java.util.Calendar lastModified)
setLastModified in interface SubscriptionIflastModified - the lastModified to setpublic int getOrderId()
getOrderId in interface SubscriptionIfpublic void setOrderId(int orderId)
setOrderId in interface SubscriptionIforderId - the orderId to setpublic int getProductId()
getProductId in interface SubscriptionIfpublic void setProductId(int productId)
setProductId in interface SubscriptionIfproductId - the productId to setpublic java.lang.String getSubscriptionCode()
getSubscriptionCode in interface SubscriptionIfpublic void setSubscriptionCode(java.lang.String subscriptionCode)
setSubscriptionCode in interface SubscriptionIfsubscriptionCode - the subscriptionCode to setpublic java.util.Calendar getStartDate()
getStartDate in interface SubscriptionIfpublic void setStartDate(java.util.Calendar startDate)
setStartDate in interface SubscriptionIfstartDate - the startDate to setpublic java.math.BigDecimal getAmount()
getAmount in interface SubscriptionIfpublic void setAmount(java.math.BigDecimal amount)
setAmount in interface SubscriptionIfamount - the amount to setpublic java.math.BigDecimal getTrialAmount()
getTrialAmount in interface SubscriptionIfpublic void setTrialAmount(java.math.BigDecimal trialAmount)
setTrialAmount in interface SubscriptionIftrialAmount - the trialAmount to setpublic boolean isActive()
isActive in interface SubscriptionIfpublic void setActive(boolean active)
setActive in interface SubscriptionIfactive - the active to setpublic boolean isProblem()
isProblem in interface SubscriptionIfpublic void setProblem(boolean problem)
setProblem in interface SubscriptionIfproblem - the problem to setpublic java.lang.String getProblemDesc()
getProblemDesc in interface SubscriptionIfpublic void setProblemDesc(java.lang.String problemDesc)
setProblemDesc in interface SubscriptionIfproblemDesc - the problemDesc to setpublic java.util.Calendar getLastBillingDate()
getLastBillingDate in interface SubscriptionIfpublic void setLastBillingDate(java.util.Calendar lastBillingDate)
setLastBillingDate in interface SubscriptionIflastBillingDate - the lastBillingDate to setpublic java.util.Calendar getNextBillingDate()
getNextBillingDate in interface SubscriptionIfpublic void setNextBillingDate(java.util.Calendar nextBillingDate)
setNextBillingDate in interface SubscriptionIfnextBillingDate - the nextBillingDate to setpublic int getPaymentScheduleId()
getPaymentScheduleId in interface SubscriptionIfpublic void setPaymentScheduleId(int paymentScheduleId)
setPaymentScheduleId in interface SubscriptionIfpaymentScheduleId - the paymentScheduleId to setpublic java.lang.String getOrderNumber()
getOrderNumber in interface SubscriptionIfpublic void setOrderNumber(java.lang.String orderNumber)
setOrderNumber in interface SubscriptionIforderNumber - the orderNumber to setpublic java.lang.String getProductSku()
getProductSku in interface SubscriptionIfpublic void setProductSku(java.lang.String productSku)
setProductSku in interface SubscriptionIfproductSku - the productSku to setpublic int getCustomerId()
getCustomerId in interface SubscriptionIfpublic void setCustomerId(int customerId)
setCustomerId in interface SubscriptionIfcustomerId - the customerId to setpublic PaymentScheduleIf getPaymentSchedule()
getPaymentSchedule in interface SubscriptionIfpublic void setPaymentSchedule(PaymentScheduleIf paymentSchedule)
setPaymentSchedule in interface SubscriptionIfpaymentSchedule - the paymentSchedule to setpublic CreditCardIf getCreditCard()
getCreditCard in interface SubscriptionIfpublic void setCreditCard(CreditCardIf creditCard)
setCreditCard in interface SubscriptionIfcreditCard - the creditCard to setCopyright © 2018 DS Data Systems UK Ltd.