public class AdminSubscription
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private boolean |
active
Set to true when the subscription is active
|
private java.math.BigDecimal |
amount
The amount billed
|
private java.lang.String |
custom1
custom field
|
private java.lang.String |
custom2
custom field
|
private java.lang.String |
custom3
custom field
|
private java.lang.String |
custom4
custom field
|
private java.lang.String |
custom5
custom field
|
private int |
customerId
Id of the customer
|
private java.util.Date |
dateAdded
dateAdded
|
private int |
id
Id
|
private java.util.Date |
lastBillingDate
The last time that the customer was billed
|
private java.util.Date |
lastModified
lastModified
|
private java.util.Date |
nextBillingDate
The next time that the customer will be billed
|
private int |
orderId
Id of the order
|
private java.lang.String |
orderNumber
The order number
|
private AdminPaymentSchedule |
paymentSchedule
The Payment Schedule object for the subscription
|
private int |
paymentScheduleId
The Payment Schedule id for the subscription
|
private boolean |
problem
Set to true if a problem has been detected during a billing transaction.
|
private java.lang.String |
problemDesc
A description of the problem detected during billing
|
private int |
productId
Id of the product being paid for
|
private java.lang.String |
productSku
SKU of the product being paid for
|
private java.util.Date |
startDate
Start date for the subscription
|
private java.lang.String |
subscriptionCode
Unique code for the subscription.
|
private java.math.BigDecimal |
trialAmount
The amount billed during the trial period
|
Constructor and Description |
---|
AdminSubscription()
Constructor
|
AdminSubscription(com.workingdogs.village.Record vr,
com.konakart.db.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
|
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.Date |
getDateAdded() |
int |
getId() |
java.util.Date |
getLastBillingDate()
The last time that the customer was billed
|
java.util.Date |
getLastModified() |
java.util.Date |
getNextBillingDate()
The next time that the customer will be billed
|
int |
getOrderId()
Id of the order
|
java.lang.String |
getOrderNumber()
Order Number
|
AdminPaymentSchedule |
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.Date |
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 |
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.Date dateAdded) |
void |
setId(int id) |
void |
setLastBillingDate(java.util.Date lastBillingDate)
The last time that the customer was billed
|
void |
setLastModified(java.util.Date lastModified) |
void |
setNextBillingDate(java.util.Date 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(AdminPaymentSchedule 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.Date 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() |
private int id
private int orderId
private java.lang.String orderNumber
private int productId
private int customerId
private java.lang.String productSku
private java.lang.String subscriptionCode
private java.util.Date startDate
private java.math.BigDecimal amount
private java.math.BigDecimal trialAmount
private boolean active
private boolean problem
private java.lang.String problemDesc
private java.util.Date lastBillingDate
private java.util.Date nextBillingDate
private AdminPaymentSchedule paymentSchedule
private int paymentScheduleId
private java.lang.String custom1
private java.lang.String custom2
private java.lang.String custom3
private java.lang.String custom4
private java.lang.String custom5
private java.util.Date dateAdded
private java.util.Date lastModified
public AdminSubscription()
public AdminSubscription(com.workingdogs.village.Record vr, com.konakart.db.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()
public void setId(int id)
id
- the id to setpublic java.lang.String getCustom1()
public void setCustom1(java.lang.String custom1)
custom1
- the custom1 to setpublic java.lang.String getCustom2()
public void setCustom2(java.lang.String custom2)
custom2
- the custom2 to setpublic java.lang.String getCustom3()
public void setCustom3(java.lang.String custom3)
custom3
- the custom3 to setpublic java.lang.String getCustom4()
public void setCustom4(java.lang.String custom4)
custom4
- the custom4 to setpublic java.lang.String getCustom5()
public void setCustom5(java.lang.String custom5)
custom5
- the custom5 to setpublic java.util.Date getDateAdded()
public void setDateAdded(java.util.Date dateAdded)
dateAdded
- the dateAdded to setpublic java.util.Date getLastModified()
public void setLastModified(java.util.Date lastModified)
lastModified
- the lastModified to setpublic int getOrderId()
public void setOrderId(int orderId)
orderId
- the orderId to setpublic int getProductId()
public void setProductId(int productId)
productId
- the productId to setpublic java.lang.String getSubscriptionCode()
public void setSubscriptionCode(java.lang.String subscriptionCode)
subscriptionCode
- the subscriptionCode to setpublic java.util.Date getStartDate()
public void setStartDate(java.util.Date startDate)
startDate
- the startDate to setpublic java.math.BigDecimal getAmount()
public void setAmount(java.math.BigDecimal amount)
amount
- the amount to setpublic java.math.BigDecimal getTrialAmount()
public void setTrialAmount(java.math.BigDecimal trialAmount)
trialAmount
- the trialAmount to setpublic boolean isActive()
public void setActive(boolean active)
active
- the active to setpublic boolean isProblem()
public void setProblem(boolean problem)
problem
- the problem to setpublic java.lang.String getProblemDesc()
public void setProblemDesc(java.lang.String problemDesc)
problemDesc
- the problemDesc to setpublic java.util.Date getLastBillingDate()
public void setLastBillingDate(java.util.Date lastBillingDate)
lastBillingDate
- the lastBillingDate to setpublic java.util.Date getNextBillingDate()
public void setNextBillingDate(java.util.Date nextBillingDate)
nextBillingDate
- the nextBillingDate to setpublic AdminPaymentSchedule getPaymentSchedule()
public void setPaymentSchedule(AdminPaymentSchedule paymentSchedule)
paymentSchedule
- the paymentSchedule to setpublic int getPaymentScheduleId()
public void setPaymentScheduleId(int paymentScheduleId)
paymentScheduleId
- the paymentScheduleId to setpublic java.lang.String getOrderNumber()
public void setOrderNumber(java.lang.String orderNumber)
orderNumber
- the orderNumber to setpublic java.lang.String getProductSku()
public void setProductSku(java.lang.String productSku)
productSku
- the productSku to setpublic int getCustomerId()
public void setCustomerId(int customerId)
customerId
- the customerId to setCopyright © 2018 DS Data Systems UK Ltd.