From 77b72790703d96c09511c38974ded714f0f68759 Mon Sep 17 00:00:00 2001 From: Diane Huxley Date: Fri, 8 Dec 2023 12:45:29 -0800 Subject: [PATCH] Fold PaymentInstruction into QuoteDetail #201 --- specs/protocol/README.md | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) diff --git a/specs/protocol/README.md b/specs/protocol/README.md index 57259827..fade4af2 100644 --- a/specs/protocol/README.md +++ b/specs/protocol/README.md @@ -418,21 +418,14 @@ a `Close` can be sent by Alice _or_ the PFI as a reply to an RFQ or a Quote. It | `expiresAt ` | datetime | Y | When this quote expires. Expressed as ISO8601 | | `payin` | [`QuoteDetails`](#quotedetails) | Y | the amount of _payin_ currency that the PFI will receive | | `payout` | [`QuoteDetails`](#quotedetails) | Y | the amount of _payout_ currency that Alice will receive | -| `paymentInstructions` | [`PaymentInstructions`](#paymentinstructions) | N | Object that describes how to pay the PFI, and how to get paid by the PFI (e.g. BTC address, payment link) | - #### `QuoteDetails` -| field | data type | required | description | -| ---------------- | --------- | -------- | ------------------------------------------------------------------------------- | -| `currencyCode` | string | Y | ISO 3166 currency code string | -| `amountSubunits` | string | Y | The amount of currency including fees expressed in the smallest respective unit | -| `feeSubunits` | string | N | The amount paid in fees expressed in the smallest respective unit | - -#### `PaymentInstructions` -| field | data type | required | description | -| -------- | ------------------------------------------- | -------- | --------------------------------------------------------- | -| `payin` | [`PaymentInstruction`](#paymentinstruction) | N | Link or Instruction describing how to pay the PFI. | -| `payout` | [`PaymentInstruction`](#paymentinstruction) | N | Link or Instruction describing how to get paid by the PFI | +| field | data type | required | description | +|----------------------|--------------------------------------------|----------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| `currencyCode` | string | Y | ISO 3166 currency code string | +| `amountSubunits` | string | Y | The amount of currency paid out from or paid in to Alice in the smallest respective unit | +| `feeSubunits` | string | N | The amount paid in fees expressed in the smallest respective unit. This field is strictly informative, i.e. it does not affect the total payin/payout amount stated in the `amountSubunits` field. | +| `paymentInstruction` | `PaymentInstruction`](#paymentinstruction) | N | Link or Instruction describing how to pay the PFI or how to get paid by the PFI. | #### `PaymentInstruction` | field | data type | required | description |