com.google.checkout.merchantcalculation
Class MerchantCodeString

java.lang.Object
  extended by com.google.checkout.merchantcalculation.MerchantCodeString

public class MerchantCodeString
extends java.lang.Object

This class encapsulates the <merchant-code-string> element, used as part of the Merchant Calculations API.

Author:
simonjsmith

Constructor Summary
MerchantCodeString(java.lang.String code, java.lang.String pin)
          A constructor which takes the code and pin.
 
Method Summary
 java.lang.String getCode()
          Retrieve the contents of the code attribute.
 java.lang.String getPin()
          Retrieve the contents of the pin attribute.
 void setCode(java.lang.String code)
          Set the contents of the code attribute.
 void setPin(java.lang.String pin)
          Set the contents of the pin attribute.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MerchantCodeString

public MerchantCodeString(java.lang.String code,
                          java.lang.String pin)
A constructor which takes the code and pin.

Parameters:
code - The code.
pin - The pin.
Method Detail

getCode

public java.lang.String getCode()
Retrieve the contents of the code attribute.

Returns:
The code.

setCode

public void setCode(java.lang.String code)
Set the contents of the code attribute.

Parameters:
code - The code.

getPin

public java.lang.String getPin()
Retrieve the contents of the pin attribute.

Returns:
The pin.

setPin

public void setPin(java.lang.String pin)
Set the contents of the pin attribute.

Parameters:
pin - The pin.