From 8007ebe77bdc5efa247616f3621fc3405baed1b4 Mon Sep 17 00:00:00 2001 From: Matin Tamizi Date: Tue, 28 Aug 2012 12:18:11 -0700 Subject: [PATCH 1/2] use status instead of timestamps --- endpoints.md | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/endpoints.md b/endpoints.md index 8534aea..d030cbc 100644 --- a/endpoints.md +++ b/endpoints.md @@ -48,8 +48,7 @@ "type": "checking" } "amount": 1716, - "available": null, - "rejected": null + "status": "pending" } ### completed @@ -65,8 +64,7 @@ "type": "checking" } "amount": 1716, - "available": 1345567104, - "rejected": null + "status": "completed" } ### rejected @@ -82,6 +80,5 @@ "type": "checking" } "amount": 1716, - "available": null, - "rejected": 1345567104 + "status": "rejected" } \ No newline at end of file From 70e9a66176eaafeb826eb40671cdbaa1dfaf8562 Mon Sep 17 00:00:00 2001 From: Matin Tamizi Date: Tue, 28 Aug 2012 18:19:59 -0700 Subject: [PATCH 2/2] use cleared instead of completed --- endpoints.md | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/endpoints.md b/endpoints.md index d030cbc..c9d0283 100644 --- a/endpoints.md +++ b/endpoints.md @@ -6,8 +6,7 @@ - id - bank_account - amount - - available - - rejected + - status: pending, cleared, rejected ### Bank Account @@ -17,7 +16,7 @@ - name - account_number - routing_number - - type + - type: savings, checking ## Examples @@ -51,7 +50,7 @@ "status": "pending" } -### completed +### cleared `GET /ach_debits/` @@ -64,7 +63,7 @@ "type": "checking" } "amount": 1716, - "status": "completed" + "status": "cleared" } ### rejected @@ -81,4 +80,4 @@ } "amount": 1716, "status": "rejected" - } \ No newline at end of file + }