diff --git a/descriptions/shared/components/schemas/Event.yaml b/descriptions/shared/components/schemas/Event.yaml index b2bba3b..a79f91e 100755 --- a/descriptions/shared/components/schemas/Event.yaml +++ b/descriptions/shared/components/schemas/Event.yaml @@ -47,33 +47,35 @@ properties: description: | Unique identifier of the group triggering the event. example: "60d58518-78b3-4739-afa5-71e2dab2b91f" - subscription: - type: "object" + subscriptions: + type: "array" description: | - Holds the details about the account/customer from which the event has - been triggered. It's useful for tracking customer usages. - properties: - id: - type: "string" - example: "sub_2NqIQtvdSEyPnDJl09eZGCajDDj" - customer_id: - type: "string" - example: "cus_2NqITqoYLIGSR7Ac06Sd6saihUm" - plan_id: - type: "string" - example: "plan_2NqITpRSxizBwnfWY7Rnk9uPrOu" - usage: - type: "string" - example: "demo.request" - increment_by: - type: "number" - example: 1 - flags: - type: "object" - additionalProperties: + Holds the details about the account/customer subscriptions from which the + event has been triggered. It's useful for tracking customer usages. + items: + type: "object" + properties: + id: + type: "string" + example: "sub_2NqIQtvdSEyPnDJl09eZGCajDDj" + customer_id: + type: "string" + example: "cus_2NqITqoYLIGSR7Ac06Sd6saihUm" + plan_id: + type: "string" + example: "plan_2NqITpRSxizBwnfWY7Rnk9uPrOu" + usage: type: "string" - example: - version: "blue" + example: "demo.request" + increment_by: + type: "number" + example: 1 + flags: + type: "object" + additionalProperties: + type: "string" + example: + version: "blue" app: type: "object" description: |