From f58c2219c5630456b5e99359e609b65dbdd5f6f5 Mon Sep 17 00:00:00 2001 From: ricky barrette Date: Tue, 8 Feb 2011 16:36:25 +0000 Subject: [PATCH] Add status PAYMENT_DECLINED. --- OrderProcessor/.orderprocessor.properties | 8 ++++---- .../com/TwentyCodes/java/OrderProcessor/Status.java | 12 +++++++++++- 2 files changed, 15 insertions(+), 5 deletions(-) diff --git a/OrderProcessor/.orderprocessor.properties b/OrderProcessor/.orderprocessor.properties index 4223707..6cd9176 100644 --- a/OrderProcessor/.orderprocessor.properties +++ b/OrderProcessor/.orderprocessor.properties @@ -1,9 +1,9 @@ #---Order Processor Settings--- -#Sat Jan 29 09:08:26 EST 2011 -server_parrword=ghHagtj3wfMjx/hHetKlFmvfd9ho54c4 +#Tue Feb 08 11:33:05 EST 2011 database_name=Orders -save_password=false +server_parrword=3qR0VY2ngKq+4rxX59oRtmHOIBKKLb96 +save_password=true +use_remote_server=true server_location=tcdevsvn1 -use_remote_server=false server_port_number=3306 server_user_name=ricky.barrette diff --git a/OrderProcessor/src/com/TwentyCodes/java/OrderProcessor/Status.java b/OrderProcessor/src/com/TwentyCodes/java/OrderProcessor/Status.java index 23bdb7d..e7c1370 100644 --- a/OrderProcessor/src/com/TwentyCodes/java/OrderProcessor/Status.java +++ b/OrderProcessor/src/com/TwentyCodes/java/OrderProcessor/Status.java @@ -47,7 +47,14 @@ public enum Status { /** * A fulfillment status representing that the order is new */ - NEW; + NEW, + + /** + * A financial status representing that the authorization of the customer's credit card failed. + * Google has sent an email instructing the customer to update their card. + * If they fail to provide a valid card within 7 days, this order will be automatically canceled by Google. + */ + PAYMENT_DECLINED ; @@ -81,6 +88,9 @@ public enum Status { if(s.equals(NEW.toString())) return NEW; + + if(s.equals(PAYMENT_DECLINED.toString())) + return PAYMENT_DECLINED; return null;