com.google.checkout.notification
Class FinancialOrderState

java.lang.Object
  extended by com.google.checkout.notification.FinancialOrderState

public class FinancialOrderState
extends java.lang.Object

This class represents the financial status of an order. The valid states are: REVIEWING - Google Checkout is reviewing the order. CHARGEABLE - The order is ready to be charged. CHARGING - The order is being charged; you may not refund or cancel an order until is the charge is completed. CHARGED - The order has been successfully charged; if the order was only partially charged, the buyer's account page will reflect the partial charge. PAYMENT_DECLINED - The charge attempt failed. CANCELLED - The seller canceled the order; an order's financial state cannot be changed after the order is canceled. CANCELLED_BY_GOOGLE - Google canceled the order.

Author:
simonjsmith

Field Summary
static FinancialOrderState CANCELLED
          An instance of the FinancialOrderState class representing CANCELLED.
static FinancialOrderState CANCELLED_BY_GOOGLE
          An instance of the FinancialOrderState class representing CANCELLED_BY_GOOGLE.
static FinancialOrderState CHARGEABLE
          An instance of the FinancialOrderState class representing CHARGEABLE.
static FinancialOrderState CHARGED
          An instance of the FinancialOrderState class representing CHARGED.
static FinancialOrderState CHARGING
          An instance of the FinancialOrderState class representing CHARGING.
static FinancialOrderState PAYMENT_DECLINED
          An instance of the FinancialOrderState class representing PAYMENT_DECLINED.
static FinancialOrderState REVIEWING
          An instance of the FinancialOrderState class representing REVIEWING.
 
Method Summary
static FinancialOrderState getState(java.lang.String state)
          Get an instance of the FinancialOrderState based on the string value passed in.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CANCELLED

public static final FinancialOrderState CANCELLED
An instance of the FinancialOrderState class representing CANCELLED.


CANCELLED_BY_GOOGLE

public static final FinancialOrderState CANCELLED_BY_GOOGLE
An instance of the FinancialOrderState class representing CANCELLED_BY_GOOGLE.


CHARGEABLE

public static final FinancialOrderState CHARGEABLE
An instance of the FinancialOrderState class representing CHARGEABLE.


CHARGED

public static final FinancialOrderState CHARGED
An instance of the FinancialOrderState class representing CHARGED.


CHARGING

public static final FinancialOrderState CHARGING
An instance of the FinancialOrderState class representing CHARGING.


PAYMENT_DECLINED

public static final FinancialOrderState PAYMENT_DECLINED
An instance of the FinancialOrderState class representing PAYMENT_DECLINED.


REVIEWING

public static final FinancialOrderState REVIEWING
An instance of the FinancialOrderState class representing REVIEWING.

Method Detail

toString

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

getState

public static FinancialOrderState getState(java.lang.String state)
Get an instance of the FinancialOrderState based on the string value passed in.

Parameters:
state - The string value of the state.
Returns:
The FinancialOrderState instance or null if no matching state could be found.