From ecda1540f21907e8f551bea3a03762a73ceff04b Mon Sep 17 00:00:00 2001 From: Benjamin Collins Date: Wed, 25 Oct 2023 17:49:11 +0900 Subject: [PATCH] feat: add currency conversion --- .../schemas/credentials/EInvoiceCredential.yml | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/docs/openapi/components/schemas/credentials/EInvoiceCredential.yml b/docs/openapi/components/schemas/credentials/EInvoiceCredential.yml index 54f75272f..d8661c0aa 100644 --- a/docs/openapi/components/schemas/credentials/EInvoiceCredential.yml +++ b/docs/openapi/components/schemas/credentials/EInvoiceCredential.yml @@ -579,14 +579,18 @@ properties: title: Terms of Payment description: Terms, conditions, and currency of settlement, as agreed upon by the vendor and purchaser per the pro forma invoice, customer purchase order, and/or the letter of credit. type: string - payTo: - title: Pay To - description: Information about the account in which to deposit the funds - type: string currencyOfSettlement: title: Terms of Settlement description: Currency agreed upon between seller and buyer as payment. type: string + localCurrency: + title: Local Currency + description: Currency in the case the requested and local currency are different + type: string + conversionRate: + title: Conversion Rate + description: The rate at which the currency conversion is pegged for the transaction + type: string totalDue: title: Price description: The total sum of the invoice due @@ -961,8 +965,9 @@ example: |- "Payment" ], "termsOfPayment": "Payment made to bank account within 30 days of invoice", - "payTo": "Example Bank Acct. 1234567 Routing Number 123456789", "currencyOfSettlement": "USD", + "localCurrency": "MXN", + "conversionRate": "1 USD = 18.25 MXN", "totalDue": 4700, "invoiceSubtotal": { "type": [