Versions Compared

Key

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

...

This specifies the identity of a Contract Typecontract type. Contract Types can be identified by a ContractTypeName or ContractTypeUid. When specifying an a PwsContractTypeRef as an input to a web service, you may specify one or both the ContractTypeName and ContractTypeUid. However, if you do specify both they must both refer to the same Contract Type contract type or the Contract Type Reference contract type reference will not be considered valid. When a PwsContractTypeRef  is returned in the response to a web service, both the ContractTypeName and ContractTypeUid will be populated, and guaranteed to refer to a single Contract Typecontract type.

Format


Panel
titlePwsContractTypeRef
  • PwsContractTypeRef
    • ContractTypeId: Int32
    • ContractTypeName: String (50)
    • ContractTypeUid: Int64

Elements


Element

Data Type

Required?

Description

Sample

Date

Data

ContractTypeId

Int32

No

The

Contract Type

contract type Id is a unique identifier for a

Contract Type

contract type. For internal use only.


ContractTypeName

String (50)

The Contract Type Name

One of ContractTypeName or ContractTypeUid is required

The contract type name is a unique identifier for a

Contract Type

contract type.

P001395-CL1
Retainer/Service Contract

ContractTypeUid

Int64

See ContractTypeName

A unique and immutable Id for a

Contract Type

contract type.

1152921504607083377
1152921504606848637


Usage Example(s)


Code Block
languagexml
titleExample 01 - without Uid
collapsetrue
               <PwsContractLineItemRef>           <b:ContractTypeIdentity>
       <ContractLineItemCode>P001395-CL1</ContractLineItemCode>                   <!--ContractLineItemId>?</ContractLineItemId-->                   <!--ContractLineItemUid>?</ContractLineItemUid--<b:ContractTypeId i:nil="true"/>
               </PwsContractLineItemRef>
Code Block
languagexml
titleExample 02 - with Uid
collapsetrue
              <PwsContractLineItemRef>      <b:ContractTypeName>Retainer/Service Contract</b:ContractTypeName>
           <ContractLineItemCode>P001395-CL1</ContractLineItemCode>                   <!--ContractLineItemId>?</ContractLineItemId-->
  <b:ContractTypeUid>1152921504606848637</b:ContractTypeUid>
               <ContractLineItemUid>1152921504607083377</ContractLineItemUid>                </PwsContractLineItemRef>b:ContractTypeIdentity>