From cad5c4e2b37d34a53add143f0fcf3f8c1d4fddd2 Mon Sep 17 00:00:00 2001 From: nitro-neal <5314059+nitro-neal@users.noreply.github.com> Date: Thu, 1 Aug 2024 09:52:04 -0700 Subject: [PATCH] update quote payment instructions (#266) * update quote payment instructions * update changeset --- .changeset/mighty-carrots-jog.md | 5 +++++ packages/protocol/src/dev-tools.ts | 24 ++++++++---------------- packages/protocol/src/types.ts | 13 ------------- tbdex | 2 +- 4 files changed, 14 insertions(+), 30 deletions(-) create mode 100644 .changeset/mighty-carrots-jog.md diff --git a/.changeset/mighty-carrots-jog.md b/.changeset/mighty-carrots-jog.md new file mode 100644 index 00000000..7969f17e --- /dev/null +++ b/.changeset/mighty-carrots-jog.md @@ -0,0 +1,5 @@ +--- +"@tbdex/protocol": patch +--- + +update to latest tbdex spec diff --git a/packages/protocol/src/dev-tools.ts b/packages/protocol/src/dev-tools.ts index 6b03c63b..c3bc3aa6 100644 --- a/packages/protocol/src/dev-tools.ts +++ b/packages/protocol/src/dev-tools.ts @@ -153,24 +153,16 @@ export class DevTools { return { expiresAt : new Date().toISOString(), payin : { - currencyCode : 'BTC', - subtotal : '0.01', - fee : '0.0001', - total : '0.0101', - paymentInstruction : { - link : 'tbdex.io/example', - instruction : 'Fake instruction' - } + currencyCode : 'BTC', + subtotal : '0.01', + fee : '0.0001', + total : '0.0101' }, payout: { - currencyCode : 'USD', - subtotal : '1000', - fee : '0', - total : '1000', - paymentInstruction : { - link : 'tbdex.io/example', - instruction : 'Fake instruction' - } + currencyCode : 'USD', + subtotal : '1000', + fee : '0', + total : '1000' }, payoutUnitsPerPayinUnit: '100000.01' } diff --git a/packages/protocol/src/types.ts b/packages/protocol/src/types.ts index 6bd12d0e..cd115e3b 100644 --- a/packages/protocol/src/types.ts +++ b/packages/protocol/src/types.ts @@ -392,19 +392,6 @@ export type QuoteDetails = { fee?: string /** The total amount of currency to be paid in or paid out. It is always a sum of subtotal and fee */ total: string - /** Object that describes how to pay the PFI, and how to get paid by the PFI (e.g. BTC address, payment link) */ - paymentInstruction?: PaymentInstruction -} - -/** - * Describes the payment instructions with plain text and/or a link - * @beta - */ -export type PaymentInstruction = { - /** Link to allow Alice to pay PFI, or be paid by the PFI */ - link?: string - /** Instruction on how Alice can pay PFI, or how Alice can be paid by the PFI */ - instruction?: string } /** diff --git a/tbdex b/tbdex index 621f54f0..cf2d78ed 160000 --- a/tbdex +++ b/tbdex @@ -1 +1 @@ -Subproject commit 621f54f078401c1552fc18d6b5f69bc1ba697221 +Subproject commit cf2d78ed3d15da2c37a59233931869b1c643d412