paypalnvp.fields
Class UserSelectedOptions

java.lang.Object
  extended by paypalnvp.fields.UserSelectedOptions
All Implemented Interfaces:
java.io.Serializable, RequestFields

public final class UserSelectedOptions
extends java.lang.Object
implements RequestFields

User Selected Options Type Fields

See Also:
Serialized Form

Nested Class Summary
static class UserSelectedOptions.ShippingCalculation
          How the options that were presented to the user were determined
 
Constructor Summary
UserSelectedOptions()
           
 
Method Summary
 java.util.Map<java.lang.String,java.lang.String> getNVPRequest()
          Creates and returns part of the nvp (name value pair) request containing request values
 void setDefaultShippingOption(boolean option)
          Is true if the buyer chose the default shipping option.
 void setInsurance(boolean insurance)
          The Yes/No option that you chose for insurance.
 void setShippingAmount(java.lang.String amount)
          The shipping amount that was chosen by the buyer Limitations: Must not exceed $10,000 USD in any currency.
 void setShippingCalculation(UserSelectedOptions.ShippingCalculation calculation)
          Describes how the options that were presented to the user were determined.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UserSelectedOptions

public UserSelectedOptions()
Method Detail

setShippingCalculation

public void setShippingCalculation(UserSelectedOptions.ShippingCalculation calculation)
Describes how the options that were presented to the user were determined.

Parameters:
calculation -

setInsurance

public void setInsurance(boolean insurance)
The Yes/No option that you chose for insurance.

Parameters:
insurance -

setDefaultShippingOption

public void setDefaultShippingOption(boolean option)
Is true if the buyer chose the default shipping option.

Parameters:
option -

setShippingAmount

public void setShippingAmount(java.lang.String amount)
                       throws java.lang.IllegalArgumentException
The shipping amount that was chosen by the buyer Limitations: Must not exceed $10,000 USD in any currency. No currency symbol. Must have two decimal places, decimal separator must be a period (.).

Parameters:
amount -
Throws:
java.lang.IllegalArgumentException

getNVPRequest

public java.util.Map<java.lang.String,java.lang.String> getNVPRequest()
Description copied from interface: RequestFields
Creates and returns part of the nvp (name value pair) request containing request values

Specified by:
getNVPRequest in interface RequestFields
Returns:
part of the nvp request as a Map

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object