Feature: Refunds & <returns>
A refund gives the money back,
in the way it was paid.
- Given a customer named "Ana"
The plain case.
From the background: Background
- Given a customer named "Ana"
- Given an order with these lines:
item price pen 1.50 a | b 2 - When the order is refunded
- Then the card gets
json {"amount": 3.50} - And a note is kept
Refunded in full. Indented.
From the background: Background
- Given a customer named "Ana"
- Given <count> items
- Then the total is <total>
| count | total |
|---|---|
| 1 | 2 |
| count | total |
|---|
- Given 1 items
- Then the total is 2
Only store credit.
- Given an order from forty days ago
From the background: Background
- Given a customer named "Ana"
From the rule's background: Background: An old order
- Given an order from forty days ago
- Then store credit is given
From the background: Background
- Given a customer named "Ana"
From the rule's background: Background: An old order
- Given an order from forty days ago
- Given <count> refunds
| count |
|---|
| 2 |
- Given 2 refunds
From the background: Background
- Given a customer named "Ana"
- Then it is refused