From 7cc340323206a159331dc2c4c7bb56f67e625585 Mon Sep 17 00:00:00 2001 From: Alexis Gramaglia Date: Thu, 26 Mar 2026 14:22:48 +0100 Subject: [PATCH] fix: correct description formatting for credit note fields in schema --- openapi.yaml | 6 +++--- src/schemas/CreditNoteCreateInput.yaml | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/openapi.yaml b/openapi.yaml index 9b4ed891..3e529f83 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -13702,19 +13702,19 @@ components: type: - integer - 'null' - description: The total amount to be credited to the customer balance for discounts on future invoices. For a total or partial refund, credit or offset, the amount in cents must include both the item amount and the applicable tax. The refunded, credited and offsetted amounts should always balance. The total, including taxes, cannot exceed the invoice’s total fees.” + description: The total amount to be credited to the customer balance for discounts on future invoices. For a total or partial refund, credit or offset, the amount in cents must include both the item amount and the applicable tax. The refunded, credited and offsetted amounts should always balance. The total, including taxes, cannot exceed the invoice's total fees. example: 100 refund_amount_cents: type: - integer - 'null' - description: The total amount to be refunded immediately to the payment method used by the customer. For a total or partial refund, credit or offset, the amount in cents must include both the item amount and the applicable tax. The refunded, credited and offsetted amounts should always balance. The total, including taxes, cannot exceed the invoice’s total fees.” + description: The total amount to be refunded immediately to the payment method used by the customer. For a total or partial refund, credit or offset, the amount in cents must include both the item amount and the applicable tax. The refunded, credited and offsetted amounts should always balance. The total, including taxes, cannot exceed the invoice's total fees. example: 500 offset_amount_cents: type: - integer - 'null' - description: The total amount to be immediately deducted from the invoice balance. For a total or partial refund, credit or offset, the amount in cents must include both the item amount and the applicable tax. The refunded, credited and offsetted amounts should always balance. The total, including taxes, cannot exceed the invoice’s total fees.” + description: The total amount to be immediately deducted from the invoice balance. For a total or partial refund, credit or offset, the amount in cents must include both the item amount and the applicable tax. The refunded, credited and offsetted amounts should always balance. The total, including taxes, cannot exceed the invoice's total fees. example: 200 items: type: array diff --git a/src/schemas/CreditNoteCreateInput.yaml b/src/schemas/CreditNoteCreateInput.yaml index 55461367..528b4f9b 100644 --- a/src/schemas/CreditNoteCreateInput.yaml +++ b/src/schemas/CreditNoteCreateInput.yaml @@ -37,19 +37,19 @@ properties: type: - integer - "null" - description: The total amount to be credited to the customer balance for discounts on future invoices. For a total or partial refund, credit or offset, the amount in cents must include both the item amount and the applicable tax. The refunded, credited and offsetted amounts should always balance. The total, including taxes, cannot exceed the invoice’s total fees.” + description: The total amount to be credited to the customer balance for discounts on future invoices. For a total or partial refund, credit or offset, the amount in cents must include both the item amount and the applicable tax. The refunded, credited and offsetted amounts should always balance. The total, including taxes, cannot exceed the invoice's total fees. example: 100 refund_amount_cents: type: - integer - "null" - description: The total amount to be refunded immediately to the payment method used by the customer. For a total or partial refund, credit or offset, the amount in cents must include both the item amount and the applicable tax. The refunded, credited and offsetted amounts should always balance. The total, including taxes, cannot exceed the invoice’s total fees.” + description: The total amount to be refunded immediately to the payment method used by the customer. For a total or partial refund, credit or offset, the amount in cents must include both the item amount and the applicable tax. The refunded, credited and offsetted amounts should always balance. The total, including taxes, cannot exceed the invoice's total fees. example: 500 offset_amount_cents: type: - integer - "null" - description: The total amount to be immediately deducted from the invoice balance. For a total or partial refund, credit or offset, the amount in cents must include both the item amount and the applicable tax. The refunded, credited and offsetted amounts should always balance. The total, including taxes, cannot exceed the invoice’s total fees.” + description: The total amount to be immediately deducted from the invoice balance. For a total or partial refund, credit or offset, the amount in cents must include both the item amount and the applicable tax. The refunded, credited and offsetted amounts should always balance. The total, including taxes, cannot exceed the invoice's total fees. example: 200 items: type: array