{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "#/components/schemas/BillingWorkflowCollectionAlignment", "title": "BillingWorkflowCollectionAlignment", "description": "The alignment for collecting the pending line items into an invoice.\n\nDefaults to subscription, which means that we are to create a new invoice every time the\na subscription period starts (for in advance items) or ends (for in arrears items).", "type": "object", "discriminator": { "propertyName": "type", "mapping": { "subscription": "#/components/schemas/BillingWorkflowCollectionAlignmentSubscription", "anchored": "#/components/schemas/BillingWorkflowCollectionAlignmentAnchored" } }, "oneOf": [ { "$ref": "#/components/schemas/BillingWorkflowCollectionAlignmentSubscription" }, { "$ref": "#/components/schemas/BillingWorkflowCollectionAlignmentAnchored" } ] }