main
| 1 | /** |
| 2 | * @enum |
| 3 | * |
| 4 | * The status of a refund. |
| 5 | */ |
| 6 | export enum RefundStatus { |
| 7 | /** |
| 8 | * The refund was recorded and sent to the payment provider, which hasn't |
| 9 | * answered yet. |
| 10 | */ |
| 11 | PENDING = "pending", |
| 12 | /** |
| 13 | * The payment provider confirmed the refund. |
| 14 | */ |
| 15 | SUCCEEDED = "succeeded", |
| 16 | /** |
| 17 | * The payment provider didn't confirm the refund. The record is soft-deleted |
| 18 | * and kept so the refund can be retried with the same idempotency key. |
| 19 | */ |
| 20 | FAILED = "failed", |
| 21 | } |