Update OpenAPI spec to add InvoicingWashSubscriptionsDistributionResponse schema and reference it in the related endpoint

This commit is contained in:
Jeppe Bundgaard
2026-03-12 18:51:10 +01:00
parent 4ef20a1c90
commit 69c7c834d9
+54 -1
View File
@@ -5409,7 +5409,8 @@ paths:
description: Wash subscriptions distribution retrieved successfully
content:
application/json:
schema: {}
schema:
$ref: '#/components/schemas/InvoicingWashSubscriptionsDistributionResponse'
/superuser/invoicing/period/distribution/v2/all:
get:
@@ -10581,6 +10582,58 @@ components:
- discount_overrides
- timeline
InvoicingWashSubscriptionsDistributionResponse:
type: object
properties:
success:
type: boolean
example: true
data:
type: array
items:
$ref: '#/components/schemas/InvoicingWashSubscriptionsDistributionCustomer'
meta:
$ref: '#/components/schemas/InvoicingFixedPricingDistributionMeta'
includes:
type: object
additionalProperties: true
required:
- success
- data
- meta
- includes
InvoicingWashSubscriptionsDistributionCustomer:
type: object
properties:
id:
type: integer
nullable: true
customer_number:
type: integer
customer_name:
type: string
transactions:
type: array
items:
$ref: '#/components/schemas/InvoicingFixedPricingDistributionTransaction'
requires_action:
type: boolean
meta:
type: object
properties:
subscription:
type: object
additionalProperties: true
required:
- subscription
required:
- customer_number
- customer_name
- transactions
- requires_action
- meta
InvoicingFixedPricingDistributionResponse:
type: object
properties: