com.konakart.rmi.app
Class S_Subscription

java.lang.Object
  extended by com.konakart.rmi.app.S_Subscription
All Implemented Interfaces:
java.io.Serializable

public class S_Subscription
extends java.lang.Object
implements java.io.Serializable

Defines a recurring billing subscription.

See Also:
Serialized Form

Constructor Summary
S_Subscription()
           
 
Method Summary
 java.math.BigDecimal getAmount()
          The amount billed
 S_CreditCard 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
 S_PaymentSchedule 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(S_CreditCard _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(S_PaymentSchedule _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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

S_Subscription

public S_Subscription()
Method Detail

getId

public int getId()
Returns:
the id

setId

public void setId(int _id)
Parameters:
_id - the id to set

getCustom1

public java.lang.String getCustom1()
Returns:
the custom1

setCustom1

public void setCustom1(java.lang.String _custom1)
Parameters:
_custom1 - the custom1 to set

getCustom2

public java.lang.String getCustom2()
Returns:
the custom2

setCustom2

public void setCustom2(java.lang.String _custom2)
Parameters:
_custom2 - the custom2 to set

getCustom3

public java.lang.String getCustom3()
Returns:
the custom3

setCustom3

public void setCustom3(java.lang.String _custom3)
Parameters:
_custom3 - the custom3 to set

getCustom4

public java.lang.String getCustom4()
Returns:
the custom4

setCustom4

public void setCustom4(java.lang.String _custom4)
Parameters:
_custom4 - the custom4 to set

getCustom5

public java.lang.String getCustom5()
Returns:
the custom5

setCustom5

public void setCustom5(java.lang.String _custom5)
Parameters:
_custom5 - the custom5 to set

getDateAdded

public java.util.Calendar getDateAdded()
Returns:
the dateAdded

setDateAdded

public void setDateAdded(java.util.Calendar _dateAdded)
Parameters:
_dateAdded - the dateAdded to set

getLastModified

public java.util.Calendar getLastModified()
Returns:
the lastModified

setLastModified

public void setLastModified(java.util.Calendar _lastModified)
Parameters:
_lastModified - the lastModified to set

getOrderId

public int getOrderId()
Id of the order

Returns:
the orderId

setOrderId

public void setOrderId(int _orderId)
Id of the order

Parameters:
_orderId - the orderId to set

getProductId

public int getProductId()
Id of the product being paid for

Returns:
the productId

setProductId

public void setProductId(int _productId)
Id of the product being paid for

Parameters:
_productId - the productId to set

getSubscriptionCode

public java.lang.String getSubscriptionCode()
Unique code for the subscription. Normally returned by a payment gateway when the subscription is created.

Returns:
the subscriptionCode

setSubscriptionCode

public void setSubscriptionCode(java.lang.String _subscriptionCode)
Unique code for the subscription. Normally returned by a payment gateway when the subscription is created.

Parameters:
_subscriptionCode - the subscriptionCode to set

getStartDate

public java.util.Calendar getStartDate()
Start date for the subscription

Returns:
the startDate

setStartDate

public void setStartDate(java.util.Calendar _startDate)
Start date for the subscription

Parameters:
_startDate - the startDate to set

getAmount

public java.math.BigDecimal getAmount()
The amount billed

Returns:
the amount

setAmount

public void setAmount(java.math.BigDecimal _amount)
The amount billed

Parameters:
_amount - the amount to set

getTrialAmount

public java.math.BigDecimal getTrialAmount()
The amount billed during the trial period

Returns:
the trialAmount

setTrialAmount

public void setTrialAmount(java.math.BigDecimal _trialAmount)
The amount billed during the trial period

Parameters:
_trialAmount - the trialAmount to set

isActive

public boolean isActive()
Set to true when the subscription is active

Returns:
the active

setActive

public void setActive(boolean _active)
Set to true when the subscription is active

Parameters:
_active - the active to set

isProblem

public boolean isProblem()
Set to true if a problem has been detected during a billing transaction. i.e. Credit card may have expired.

Returns:
the problem

setProblem

public void setProblem(boolean _problem)
Set to true if a problem has been detected during a billing transaction. i.e. Credit card may have expired.

Parameters:
_problem - the problem to set

getProblemDesc

public java.lang.String getProblemDesc()
A description of the problem detected during billing

Returns:
the problemDesc

setProblemDesc

public void setProblemDesc(java.lang.String _problemDesc)
A description of the problem detected during billing

Parameters:
_problemDesc - the problemDesc to set

getLastBillingDate

public java.util.Calendar getLastBillingDate()
The last time that the customer was billed

Returns:
the lastBillingDate

setLastBillingDate

public void setLastBillingDate(java.util.Calendar _lastBillingDate)
The last time that the customer was billed

Parameters:
_lastBillingDate - the lastBillingDate to set

getNextBillingDate

public java.util.Calendar getNextBillingDate()
The next time that the customer will be billed

Returns:
the nextBillingDate

setNextBillingDate

public void setNextBillingDate(java.util.Calendar _nextBillingDate)
The next time that the customer will be billed

Parameters:
_nextBillingDate - the nextBillingDate to set

getPaymentSchedule

public S_PaymentSchedule getPaymentSchedule()
PaymentSchedule object for this subscription

Returns:
the paymentSchedule

setPaymentSchedule

public void setPaymentSchedule(S_PaymentSchedule _paymentSchedule)
PaymentSchedule object for this subscription

Parameters:
_paymentSchedule - the paymentSchedule to set

getPaymentScheduleId

public int getPaymentScheduleId()
PaymentSchedule id for this subscription

Returns:
the paymentScheduleId

setPaymentScheduleId

public void setPaymentScheduleId(int _paymentScheduleId)
PaymentSchedule id for this subscription

Parameters:
_paymentScheduleId - the paymentScheduleId to set

getOrderNumber

public java.lang.String getOrderNumber()
Order Number

Returns:
the orderNumber

setOrderNumber

public void setOrderNumber(java.lang.String _orderNumber)
Order Number

Parameters:
_orderNumber - the orderNumber to set

getProductSku

public java.lang.String getProductSku()
SKU of the product being paid for

Returns:
the productSku

setProductSku

public void setProductSku(java.lang.String _productSku)
SKU of the product being paid for

Parameters:
_productSku - the productSku to set

getCustomerId

public int getCustomerId()
Customer id

Returns:
the customerId

setCustomerId

public void setCustomerId(int _customerId)
Customer id

Parameters:
_customerId - the customerId to set

getCreditCard

public S_CreditCard getCreditCard()
Credit Card for the subscription

Returns:
the creditCard

setCreditCard

public void setCreditCard(S_CreditCard _creditCard)
Credit Card for the subscription

Parameters:
_creditCard - the creditCard to set


Copyright © 2011 DS Data Systems UK Ltd.