Skip to content

Commit 7c208e0

Browse files
authored
Add acceptance conditions to quotes (#1760)
* Add acceptance conditions to quotes * Apply code review suggestions
1 parent 421219e commit 7c208e0

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

openapi/components/schemas/Quote.yaml

+30
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,36 @@ properties:
1717
enum:
1818
- subscription-order
1919
- one-time-order
20+
acceptanceConditions:
21+
type: array
22+
writeOnly: true
23+
description: Conditions that must be met for the quote to be automatically accepted.
24+
items:
25+
type: string
26+
enum:
27+
- customer
28+
- payment
29+
- organization
30+
x-enumDescriptions:
31+
customer: Quote is accepted when the customer accepts the quote.
32+
payment: Quote is accepted when the customer pays the quote.
33+
example: ['payment']
34+
default: ['customer']
35+
acceptanceFulfillment:
36+
type: array
37+
readOnly: true
38+
description: List of `acceptanceConditions` with fulfillment status.
39+
items:
40+
type: object
41+
properties:
42+
condition:
43+
type: string
44+
enum:
45+
- customer
46+
- payment
47+
- organization
48+
isFulfilled:
49+
type: boolean
2050
status:
2151
description: Status of the quote.
2252
type: string

0 commit comments

Comments
 (0)