DocumentApiCall¶
Document API client that assembles a one-distribution request and posts generated premium-audit output to /v1/distribute.
Purpose¶
- Shape the fixed
PremAuditdistribution request used by the Premium Audit workflow. - Translate caller-provided package XML and channel options into the Document API contract.
Context¶
- Namespace:
SAIF.Business.Policy.Audit.ApiCalls - Assembly/package:
SAIF.Business.Policy.Audit.ApiCalls
Public members¶
| Member | Signature | Purpose |
|---|---|---|
| DocumentApiCall | public DocumentApiCall() |
Constructs the client and resolves the Document API base URL plus caller identity. |
| CallDocumentApi | public bool CallDocumentApi(string packageName, string documentXml, DistributionOptions options) |
Builds the fixed premium-audit distribution request, posts it to /v1/distribute, and reports success only for HTTP 200 responses. |
Behavioral notes¶
CallDocumentApireports success only for HTTP 200 responses.- Exceptions are converted to a console message and
false.
Constraints and usage notes¶
- The client depends on environment setting
documentapi.urlduring construction.
Sources¶
Business\SAIF.Business.Policy.Audit.ApiCalls\DocumentApiCall.cs