{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "#/components/schemas/BillingWorkflowCollectionAlignmentAnchored", "title": "BillingWorkflowCollectionAlignmentAnchored", "description": "BillingWorkflowCollectionAlignmentAnchored specifies the alignment for collecting the pending line items\ninto an invoice.", "type": "object", "properties": { "type": { "description": "The type of alignment.", "type": "string", "enum": [ "anchored" ] }, "recurring_period": { "description": "The recurring period for the alignment.", "type": "object", "properties": { "anchor": { "description": "A date-time anchor to base the recurring period on.", "type": "string", "format": "date-time", "example": "2023-01-01T01:01:01.001Z", "title": "Anchor time" }, "interval": { "description": "The interval duration in ISO 8601 format.", "type": "string", "format": "ISO8601", "example": "P1M", "pattern": "^P(?:\\d+(?:\\.\\d+)?Y)?(?:\\d+(?:\\.\\d+)?M)?(?:\\d+(?:\\.\\d+)?W)?(?:\\d+(?:\\.\\d+)?D)?(?:T(?:\\d+(?:\\.\\d+)?H)?(?:\\d+(?:\\.\\d+)?M)?(?:\\d+(?:\\.\\d+)?S)?)?$", "title": "Interval in ISO 8601 duration format" } }, "required": [ "anchor", "interval" ] } }, "required": [ "type", "recurring_period" ] }