diff --git a/openapi.yaml b/openapi.yaml index 34e76c9..8d9917f 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 0bd89d1..402e899 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 0000000..1a56ba5 --- /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"