Skip to content

Commit 62cd010

Browse files
authored
Update payment result type to a status (#480)
1 parent aa4c356 commit 62cd010

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

components/schemas/billing/invoices/PaymentResult.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,14 @@ required:
66
- pending
77
- error
88
properties:
9-
success:
10-
type: boolean
11-
description: A boolean where true represents the success of the payment.
12-
pending:
13-
type: boolean
14-
description: Whether the payment is still pending or not.
9+
status:
10+
type: string
11+
description: The status of a payment.
12+
enum:
13+
- success
14+
- processing
15+
- cancelled
16+
- error
1517
error:
1618
type: string
17-
description: A description of the error that took place.
19+
description: A description of the error that took place when processing the payment.

0 commit comments

Comments
 (0)