openapi: 3.1.1
info:
  title: DeliveryPolicy
  version: 2.0.0
  description: "Container schemas fetched from beckn.yaml. This cannot be extended as it is a reserved schema in beckn protocol. Any additional properties added to this schema can only be made using its *Attributes property"
  license:
    name: CC-BY-NC-SA 4.0 International
  contact:
    name: Beckn Labs
    url: https://beckn.io
components:
  schemas:
    DeliveryPolicy:
      x-iri: https://schema.nfh.global/DeliveryPolicy/v2.0
      type: object
      description: 'Callback delivery retry configuration


        This schema is part of the Long Term Support of Beckn Protocol V2.0 API specification and MUST NOT be extended. Any domain-specific extension must use the property of this schema which is of type Attribute.'
      properties:
        timeoutSeconds:
          type: integer
          default: 30
          description: Per-request HTTP timeout in seconds
        maxPayloadBytes:
          type: integer
          description: Maximum callback payload size in bytes
        retryPolicy:
          type: object
          properties:
            maxRetries:
              type: integer
              default: 5
              description: Maximum retry attempts before sending to DLT
            initialDelaySeconds:
              type: integer
              default: 5
              description: Base delay before first retry
            maxDelaySeconds:
              type: integer
              default: 300
              description: Maximum delay cap for exponential backoff
            backoffMultiplier:
              type: number
              default: 2.0
              description: Delay multiplied by this after each retry
      x-lts: true
