com.konakart.app
Class PaymentOptions

java.lang.Object
  extended by com.konakart.app.PaymentOptions
All Implemented Interfaces:
PaymentOptionsIf

public class PaymentOptions
extends java.lang.Object
implements PaymentOptionsIf

Payment options which is passed to the admin payment module. It contains all of the necessary information that the module requires.


Constructor Summary
PaymentOptions()
          Constructor
 
Method Summary
 int getAction()
          Action attribute to inform the payment module what action to take.
 CreditCard getCreditCard()
          Object containing credit card details
 int getOrderId()
          The id of the order
 NameValue[] getParameters()
          Parameters passed to the payment module
 int getSubscriptionId()
          The id of the KonaKart subscription object
 void setAction(int action)
          Action attribute to inform the payment module what action to take.
 void setCreditCard(CreditCard creditCard)
          Object containing credit card details
 void setOrderId(int orderId)
          The id of the order
 void setParameters(NameValue[] parameters)
          Parameters passed to the payment module
 void setSubscriptionId(int subscriptionId)
          The id of the KonaKart subscription object
 java.lang.String toString()
          Returns a string containing the attributes of the PaymentDetail object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PaymentOptions

public PaymentOptions()
Constructor

Method Detail

toString

public java.lang.String toString()
Returns a string containing the attributes of the PaymentDetail object

Overrides:
toString in class java.lang.Object
Returns:
A String representing the AdminPaymentOptions object

getOrderId

public int getOrderId()
The id of the order

Specified by:
getOrderId in interface PaymentOptionsIf
Returns:
the orderId

setOrderId

public void setOrderId(int orderId)
The id of the order

Specified by:
setOrderId in interface PaymentOptionsIf
Parameters:
orderId - the orderId to set

getParameters

public NameValue[] getParameters()
Parameters passed to the payment module

Specified by:
getParameters in interface PaymentOptionsIf
Returns:
the parameters

setParameters

public void setParameters(NameValue[] parameters)
Parameters passed to the payment module

Specified by:
setParameters in interface PaymentOptionsIf
Parameters:
parameters - the parameters to set

getCreditCard

public CreditCard getCreditCard()
Object containing credit card details

Specified by:
getCreditCard in interface PaymentOptionsIf
Returns:
the creditCard

setCreditCard

public void setCreditCard(CreditCard creditCard)
Object containing credit card details

Specified by:
setCreditCard in interface PaymentOptionsIf
Parameters:
creditCard - the creditCard to set

getAction

public int getAction()
Action attribute to inform the payment module what action to take. i.e. It could be a payment or an authorization of a payment etc.

Specified by:
getAction in interface PaymentOptionsIf
Returns:
the action

setAction

public void setAction(int action)
Action attribute to inform the payment module what action to take. i.e. It could be a payment or an authorization of a payment etc.

Specified by:
setAction in interface PaymentOptionsIf
Parameters:
action - the action to set

getSubscriptionId

public int getSubscriptionId()
The id of the KonaKart subscription object

Specified by:
getSubscriptionId in interface PaymentOptionsIf
Returns:
the subscriptionId

setSubscriptionId

public void setSubscriptionId(int subscriptionId)
The id of the KonaKart subscription object

Specified by:
setSubscriptionId in interface PaymentOptionsIf
Parameters:
subscriptionId - the subscriptionId to set


Copyright © 2011 DS Data Systems UK Ltd.