From cbbfcc93bdedeee526a1b2a6c1c23c1574a08c65 Mon Sep 17 00:00:00 2001 From: Lovro Colic Date: Thu, 11 Jun 2026 10:51:35 +0200 Subject: [PATCH] update dunning_campaign.finished definition --- openapi.yaml | 19 +++++++++++++++++++ .../DunningCampaignFinishedObject.yaml | 5 +++++ .../OverdueBalancePerCurrencyObject.yaml | 13 +++++++++++++ 3 files changed, 37 insertions(+) create mode 100644 src/schemas/OverdueBalancePerCurrencyObject.yaml diff --git a/openapi.yaml b/openapi.yaml index 34e76c9c..8d9917f0 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -22135,6 +22135,20 @@ components: - type: string - type: object additionalProperties: true + OverdueBalancePerCurrencyObject: + type: object + required: + - amount_cents + - currency + properties: + amount_cents: + type: integer + description: The amount of the overdue balance for this currency, expressed in cents. + example: 120 + currency: + $ref: '#/components/schemas/Currency' + description: The currency of the overdue balance. + example: EUR DunningCampaignFinishedObject: type: object required: @@ -22159,6 +22173,11 @@ components: $ref: '#/components/schemas/Currency' description: The currency of the balance. example: EUR + overdue_balances: + type: array + description: Overdue balance broken down per currency. + items: + $ref: '#/components/schemas/OverdueBalancePerCurrencyObject' EventErrorsObject: type: object required: diff --git a/src/schemas/DunningCampaignFinishedObject.yaml b/src/schemas/DunningCampaignFinishedObject.yaml index 0bd89d1b..402e8999 100644 --- a/src/schemas/DunningCampaignFinishedObject.yaml +++ b/src/schemas/DunningCampaignFinishedObject.yaml @@ -21,3 +21,8 @@ properties: $ref: "./Currency.yaml" description: The currency of the balance. example: "EUR" + overdue_balances: + type: array + description: Overdue balance broken down per currency. + items: + $ref: "./OverdueBalancePerCurrencyObject.yaml" diff --git a/src/schemas/OverdueBalancePerCurrencyObject.yaml b/src/schemas/OverdueBalancePerCurrencyObject.yaml new file mode 100644 index 00000000..1a56ba5c --- /dev/null +++ b/src/schemas/OverdueBalancePerCurrencyObject.yaml @@ -0,0 +1,13 @@ +type: object +required: + - amount_cents + - currency +properties: + amount_cents: + type: integer + description: The amount of the overdue balance for this currency, expressed in cents. + example: 120 + currency: + $ref: "./Currency.yaml" + description: The currency of the overdue balance. + example: "EUR"