PwsDocumentAssociationData

Overview

This data structure includes basic information about an item that is associated with a document. Currently, the only supported association is between a receipt and one or more cost cards. For each cost card that a receipt is associated with, this structure will contain basic information about the cost card, such as the incurred date, expense type and disbursed amount. To maintain the generic nature of this structure, these values are returned in the format of a list of name/value pairs. 

Format

PwsDocumentAssociationData
  • PwsDocumentAssociationData

Elements

Element

Data Type

Description

Sample Data

Values

PwsValue[]

A list of name/value pairs containing information about the associated entity (e.g. cost card). Please click here for more information.


Usage Example(s)


Example 01 - cost card with receipt attached
                        <a:Data>
                           <a:Values xmlns:b="http://projectorpsa.com/DataContracts/Shared/Common/">
                              <b:PwsValue>
                                 <b:ColumnType>V</b:ColumnType>
                                 <b:Tag>Type</b:Tag>
                                 <b:Value>CostCard</b:Value>
                                 <b:Values/>
                              </b:PwsValue>
                              <b:PwsValue>
                                 <b:ColumnType>D</b:ColumnType>
                                 <b:Tag>Incurred Date</b:Tag>
                                 <b:Value>Mar  1 2018</b:Value>
                                 <b:Values/>
                              </b:PwsValue>
                              <b:PwsValue>
                                 <b:ColumnType>V</b:ColumnType>
                                 <b:Tag>Expense Type</b:Tag>
                                 <b:Value>Personal Auto Mileage</b:Value>
                                 <b:Values/>
                              </b:PwsValue>
                              <b:PwsValue>
                                 <b:ColumnType>M</b:ColumnType>
                                 <b:Tag>Disbursed Amount</b:Tag>
                                 <b:Value>12.00</b:Value>
                                 <b:Values/>
                              </b:PwsValue>
                              <b:PwsValue>
                                 <b:ColumnType>V</b:ColumnType>
                                 <b:Tag>Disbursed Currency Code</b:Tag>
                                 <b:Value>CAD</b:Value>
                                 <b:Values/>
                              </b:PwsValue>
                           </a:Values>
                        </a:Data>