Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Panel
titlePwsSaveTimeOffCardResult

Elements


Element

Data Type

Description

Sample Data

ErrorDetail

PwsErrorDetail

The error detail regarding the failed time card off insert or save

 


ReferenceId

String

 Reference id (used to affiliate PwsSaveTimeOffCardResult records with associated PwsTimeCardDetail records).

 


TimeOffCard

PwsTimeOffCardDetail

This structure contains the complete set of information about a time off card

 


Usage Example(s)


Code Block
languagexml
titleExample 01 - successful response
collapsetrue
            <a:TimeOffCardResults>
               <a:PwsSaveTimeOffCardResult>
                  <a:ErrorDetail i:nil="true" xmlns:b="http://projectorpsa.com/DataContracts/Shared/Common/"/>
                  <a:ReferenceId i:nil="true"/>
                  <a:TimeOffCard>
                     <ReferenceId i:nil="true" xmlns="http://projectorpsa.com/DataContracts/Shared/Common/"/>
                     <TimecardId i:nil="true" xmlns="http://projectorpsa.com/DataContracts/Shared/Common/"/>
                     <TimecardType xmlns="http://projectorpsa.com/DataContracts/Shared/Common/">R</TimecardType>
                     <TimecardUid xmlns="http://projectorpsa.com/DataContracts/Shared/Common/">1152921504608460887</TimecardUid>
                     <a:Description>Vacation Day</a:Description>
                     <a:DescriptionClearFlag>false</a:DescriptionClearFlag>
                     <a:RejectedByUser i:nil="true" xmlns:b="http://projectorpsa.com/DataContracts/Shared/Common/"/>
                     <a:RejectedReason i:nil="true"/>
                     <a:RejectedTimestamp i:nil="true"/>
                     <a:Status>Submitted</a:Status>
                     <a:WorkDate>2018-03-21T00:00:00Z</a:WorkDate>
                     <a:WorkMinutes>480</a:WorkMinutes>
                     <a:Timestamp>AAAAAA64QjU=</a:Timestamp>
                     <a:CardStatus>S</a:CardStatus>
                     <a:TimeOffReasonIdentity xmlns:b="http://projectorpsa.com/DataContracts/Shared/Common/">
                        <b:TimeOffReasonId i:nil="true"/>
                        <b:TimeOffReasonName>Vacation</b:TimeOffReasonName>
                        <b:TimeOffReasonUid>1152921504606858293</b:TimeOffReasonUid>
                     </a:TimeOffReasonIdentity>
                  </a:TimeOffCard>
               </a:PwsSaveTimeOffCardResult>
            </a:TimeOffCardResults>
Code Block
languagexml
titleExample 02 - unsuccessful response
collapsetrue
            <a:TimeOffCardResults>
               <a:PwsSaveTimeOffCardResult>
                  <a:ErrorDetail xmlns:b="http://projectorpsa.com/DataContracts/Shared/Common/">
                     <b:ErrorCode>SpecifiedTimeOffReasonDoesNotExist</b:ErrorCode>
                     <b:ErrorNumber>57567</b:ErrorNumber>
                     <b:ErrorText>The specified time off reason does not exist.</b:ErrorText>
                  </a:ErrorDetail>
                  <a:ReferenceId i:nil="true"/>
                  <a:TimeOffCard i:nil="true"/>
               </a:PwsSaveTimeOffCardResult>
            </a:TimeOffCardResults>