Skip to content

Commit ae0e924

Browse files
authored
Merge pull request #230 from interledger/224/mk/post-quote-update
224/mk/post quote update
2 parents 54f4bdc + a1f363d commit ae0e924

File tree

1 file changed

+31
-11
lines changed

1 file changed

+31
-11
lines changed

openapi/resource-server.yaml

Lines changed: 31 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -576,17 +576,37 @@ paths:
576576
assetCode: USD
577577
assetScale: 2
578578
schema:
579-
type: object
580-
additionalProperties: false
581-
properties:
582-
receiver:
583-
$ref: ./schemas.yaml#/components/schemas/receiver
584-
receiveAmount:
585-
$ref: ./schemas.yaml#/components/schemas/amount
586-
sendAmount:
587-
$ref: ./schemas.yaml#/components/schemas/amount
588-
required:
589-
- receiver
579+
oneOf:
580+
- description: Create quote for an `receiver` that is an Incoming Payment with an `incomingAmount`
581+
properties:
582+
receiver:
583+
$ref: ./schemas.yaml#/components/schemas/receiver
584+
required:
585+
- receiver
586+
additionalProperties: false
587+
- description: Create a quote with a fixed-receive amount
588+
properties:
589+
receiver:
590+
$ref: ./schemas.yaml#/components/schemas/receiver
591+
receiveAmount:
592+
description: The fixed amount that would be paid into the receiving payment pointer given a successful outgoing payment.
593+
$ref: ./schemas.yaml#/components/schemas/amount
594+
required:
595+
- receiver
596+
- receiveAmount
597+
additionalProperties: false
598+
- description: Create a quote with a fixed send amount
599+
properties:
600+
receiver:
601+
$ref: ./schemas.yaml#/components/schemas/receiver
602+
sendAmount:
603+
description: The fixed amount that would be sent from the sending payment pointer given a successful outgoing payment.
604+
$ref: ./schemas.yaml#/components/schemas/amount
605+
required:
606+
- receiver
607+
- sendAmount
608+
additionalProperties: false
609+
590610
description: |-
591611
A subset of the quotes schema is accepted as input to create a new quote.
592612

0 commit comments

Comments
 (0)