---
title: PurchaseOrder
summary: API reference for PurchaseOrder.
status: draft
owner: SAIF.Core documentation team
last_reviewed: 2026-09-24
library: SAIF.Data
reference_type: package
---

# PurchaseOrder

Domain entity representing Purchase order data within the corporate area of the claims/policy domain, mapped for NHibernate persistence.*

## Purpose
- Models purchase order data used by the corporate area of this library.*
- Inherits shared identity/lifecycle behavior from `EntityBase`.

## Context
- Namespace: `SAIF.Data.Model.Corporate`
- Assembly/package: `SAIF.Data`

## Public members
| Member | Signature | Purpose |
| --- | --- | --- |
| Id | `string Id { get; set; }` | Primary key / surrogate identifier for this record.* |
| VendorId | `string VendorId { get; set; }` | Foreign-key identifier referencing the related vendor record.* |
| VendorName | `string VendorName { get; set; }` | Value of vendor name exposed by this type.* |
| Address1 | `string Address1 { get; set; }` | Value of address1 exposed by this type.* |
| Address2 | `string Address2 { get; set; }` | Value of address2 exposed by this type.* |
| Address3 | `string Address3 { get; set; }` | Value of address3 exposed by this type.* |
| Address4 | `string Address4 { get; set; }` | Value of address4 exposed by this type.* |
| City | `string City { get; set; }` | Value of city exposed by this type.* |
| State | `string State { get; set; }` | Value of state exposed by this type.* |
| PostalCode | `string PostalCode { get; set; }` | Coded value identifying postal code.* |
| Country | `string Country { get; set; }` | Value of country exposed by this type.* |
| BuyerName | `string BuyerName { get; set; }` | Value of buyer name exposed by this type.* |
| BuyerPhone | `string BuyerPhone { get; set; }` | Value of buyer phone exposed by this type.* |
| PurchaseOrderDate | `DateTime? PurchaseOrderDate { get; set; }` | Date/time value for purchase order date.* |
| DefaultDeliveryDate | `DateTime? DefaultDeliveryDate { get; set; }` | Date/time value for default delivery date.* |
| TermCode | `string TermCode { get; set; }` | Coded value identifying term code.* |
| IsRevised | `bool IsRevised { get; set; }` | Indicates whether revised.* |
| IsReleased | `bool IsReleased { get; set; }` | Indicates whether released.* |
| IsIssued | `bool IsIssued { get; set; }` | Indicates whether issued.* |
| Canceled | `bool Canceled { get; set; }` | Value of canceled exposed by this type.* |
| IsIssuePending | `bool IsIssuePending { get; set; }` | Indicates whether issue pending.* |
| IsClosed | `bool IsClosed { get; set; }` | Indicates whether closed.* |
| TotalOrderAmount | `decimal TotalOrderAmount { get; set; }` | Monetary amount for total order amount.* |
| CurrencyCode | `string CurrencyCode { get; set; }` | Coded value identifying currency code.* |
| LocationAddress | `string LocationAddress { get; set; }` | Value of location address exposed by this type.* |
| LocationCity | `string LocationCity { get; set; }` | Value of location city exposed by this type.* |
| LocationState | `string LocationState { get; set; }` | Value of location state exposed by this type.* |
| LocationZip | `string LocationZip { get; set; }` | Value of location zip exposed by this type.* |
| Terms | `string Terms { get; set; }` | Value of terms exposed by this type.* |
| LocationName | `string LocationName { get; set; }` | Value of location name exposed by this type.* |
| SubLocationName | `string SubLocationName { get; set; }` | Value of sub location name exposed by this type.* |
| Index | `string Index { get; set; }` | Value of index exposed by this type.* |
| PurchaseOrderLineItems | `IList<PurchaseOrderLine> PurchaseOrderLineItems { get; set; }` | Value of purchase order line items exposed by this type.* |
| PurchaseOrderComments | `IList<PurchaseOrderComment> PurchaseOrderComments { get; set; }` | Value of purchase order comments exposed by this type.* |
| PurchaseOrder() | `PurchaseOrder()` | Initializes a new instance of the type with the supplied dependencies.* |

## Behavioral notes
- Properties are typically declared `virtual` to support NHibernate lazy-loading proxies (see the corresponding mapping file under `Data/SAIF.Data.NHibernate`).*

## Constraints and usage notes
- No additional usage constraints beyond standard NHibernate entity/DTO conventions could be confirmed from static analysis.**

> **Note:** Statements marked with * were inferred from code structure, naming conventions, or contextual evidence where direct confirmation was not available in source artifacts. Statements marked with ** could not be confirmed; treat as unknown until verified.

## Sources
- `Data/SAIF.Data/Model/Corporate/PurchaseOrder.cs`
