Skip to content

Commit

Permalink
Merge pull request #230 from interledger/224/mk/post-quote-update
Browse files Browse the repository at this point in the history
224/mk/post quote update
  • Loading branch information
mkurapov authored Dec 9, 2022
2 parents 54f4bdc + a1f363d commit ae0e924
Showing 1 changed file with 31 additions and 11 deletions.
42 changes: 31 additions & 11 deletions openapi/resource-server.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -576,17 +576,37 @@ paths:
assetCode: USD
assetScale: 2
schema:
type: object
additionalProperties: false
properties:
receiver:
$ref: ./schemas.yaml#/components/schemas/receiver
receiveAmount:
$ref: ./schemas.yaml#/components/schemas/amount
sendAmount:
$ref: ./schemas.yaml#/components/schemas/amount
required:
- receiver
oneOf:
- description: Create quote for an `receiver` that is an Incoming Payment with an `incomingAmount`
properties:
receiver:
$ref: ./schemas.yaml#/components/schemas/receiver
required:
- receiver
additionalProperties: false
- description: Create a quote with a fixed-receive amount
properties:
receiver:
$ref: ./schemas.yaml#/components/schemas/receiver
receiveAmount:
description: The fixed amount that would be paid into the receiving payment pointer given a successful outgoing payment.
$ref: ./schemas.yaml#/components/schemas/amount
required:
- receiver
- receiveAmount
additionalProperties: false
- description: Create a quote with a fixed send amount
properties:
receiver:
$ref: ./schemas.yaml#/components/schemas/receiver
sendAmount:
description: The fixed amount that would be sent from the sending payment pointer given a successful outgoing payment.
$ref: ./schemas.yaml#/components/schemas/amount
required:
- receiver
- sendAmount
additionalProperties: false

description: |-
A subset of the quotes schema is accepted as input to create a new quote.
Expand Down

0 comments on commit ae0e924

Please sign in to comment.