Skip to content

Commit

Permalink
simple push to card credit reversal balanced#620
Browse files Browse the repository at this point in the history
  • Loading branch information
matin committed May 19, 2014
1 parent 3a6f8f8 commit 101dec6
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions features/push_to_card.feature
Original file line number Diff line number Diff line change
Expand Up @@ -157,3 +157,24 @@ Feature: Push to card
"category_code": "request"
}
"""

Scenario: Reverse a succeeded credit to a debit card
Given I have sufficient funds in my marketplace
And I have tokenized a debit card
And I POST to "cards.credits" with the body:
"""
{
"credits": [{
"amount": 1234
}]
}
"""
When I make a POST request to the link "credits.reversals"
Then I should get a 201 Created status code
And the response is valid according to the "reversals" schema
And the fields on this credit match:
"""
{
"status": "succeeded"
}
"""

0 comments on commit 101dec6

Please sign in to comment.