Trendsic Platform Service

<back to all web services

PayAppG702Request

Requires Authentication
The following routes are available for this service:
GET,OPTIONS/v1/projects/{ProjectID}/pay-apps/{PeriodNumber}/g702
import java.math.*
import java.util.*
import java.io.InputStream
import net.servicestack.client.*


open class PayAppG702Request
{
    open var ProjectID:Int? = null
    open var PeriodNumber:Int? = null
}

open class PrintableResponse
{
    open var ResponseStatus:ResponseStatus? = null
    open var Document:PrintDocument? = null
}

open class PrintDocument
{
    open var Kind:String? = null
    open var Title:String? = null
    open var Subtitle:String? = null
    open var FileName:String? = null
    open var Landscape:Boolean? = null
    open var GeneratedAtUtc:Date? = null
    open var GeneratedBy:String? = null
    open var Meta:ArrayList<DocField> = ArrayList<DocField>()
    open var Blocks:ArrayList<DocBlock> = ArrayList<DocBlock>()
    open var Issues:ArrayList<DocIssue> = ArrayList<DocIssue>()
    open var CanPrint:Boolean? = null
}

open class DocField
{
    open var Label:String? = null
    open var Value:String? = null
    open var Ref:String? = null
    open var Emphasis:Boolean? = null
}

open class DocBlock
{
    open var Type:String? = null
    open var Text:String? = null
    open var Level:Int? = null
    open var Fields:ArrayList<DocField> = ArrayList<DocField>()
    open var Columns:Int? = null
    open var Table:DocTable? = null
    open var Signatures:ArrayList<String> = ArrayList<String>()
}

open class DocTable
{
    open var Caption:String? = null
    open var Columns:ArrayList<DocColumn> = ArrayList<DocColumn>()
    open var Rows:ArrayList<ArrayList<String>> = ArrayList<ArrayList<String>>()
    open var Footer:ArrayList<ArrayList<String>> = ArrayList<ArrayList<String>>()
}

open class DocColumn
{
    open var Key:String? = null
    open var Label:String? = null
    open var Align:String? = null
    open var Width:Int? = null
}

open class DocIssue
{
    open var Severity:String? = null
    open var Code:String? = null
    open var Message:String? = null
}

Kotlin PayAppG702Request DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml

HTTP + XML

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /v1/projects/{ProjectID}/pay-apps/{PeriodNumber}/g702 HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<PrintableResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
  <Document>
    <Blocks>
      <DocBlock>
        <Columns>0</Columns>
        <Fields>
          <DocField>
            <Emphasis>false</Emphasis>
            <Label>String</Label>
            <Ref>String</Ref>
            <Value>String</Value>
          </DocField>
        </Fields>
        <Level>0</Level>
        <Signatures xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
          <d5p1:string>String</d5p1:string>
        </Signatures>
        <Table>
          <Caption>String</Caption>
          <Columns>
            <DocColumn>
              <Align>String</Align>
              <Key>String</Key>
              <Label>String</Label>
              <Width>0</Width>
            </DocColumn>
          </Columns>
          <Footer xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
            <d6p1:ArrayOfstring>
              <d6p1:string>String</d6p1:string>
            </d6p1:ArrayOfstring>
          </Footer>
          <Rows xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
            <d6p1:ArrayOfstring>
              <d6p1:string>String</d6p1:string>
            </d6p1:ArrayOfstring>
          </Rows>
        </Table>
        <Text>String</Text>
        <Type>String</Type>
      </DocBlock>
    </Blocks>
    <FileName>String</FileName>
    <GeneratedAtUtc>0001-01-01T00:00:00</GeneratedAtUtc>
    <GeneratedBy>String</GeneratedBy>
    <Issues>
      <DocIssue>
        <Code>String</Code>
        <Message>String</Message>
        <Severity>String</Severity>
      </DocIssue>
    </Issues>
    <Kind>String</Kind>
    <Landscape>false</Landscape>
    <Meta>
      <DocField>
        <Emphasis>false</Emphasis>
        <Label>String</Label>
        <Ref>String</Ref>
        <Value>String</Value>
      </DocField>
    </Meta>
    <Subtitle>String</Subtitle>
    <Title>String</Title>
  </Document>
  <ResponseStatus xmlns:d2p1="http://schemas.servicestack.net/types">
    <d2p1:ErrorCode>String</d2p1:ErrorCode>
    <d2p1:Message>String</d2p1:Message>
    <d2p1:StackTrace>String</d2p1:StackTrace>
    <d2p1:Errors>
      <d2p1:ResponseError>
        <d2p1:ErrorCode>String</d2p1:ErrorCode>
        <d2p1:FieldName>String</d2p1:FieldName>
        <d2p1:Message>String</d2p1:Message>
        <d2p1:Meta xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
          <d5p1:KeyValueOfstringstring>
            <d5p1:Key>String</d5p1:Key>
            <d5p1:Value>String</d5p1:Value>
          </d5p1:KeyValueOfstringstring>
        </d2p1:Meta>
      </d2p1:ResponseError>
    </d2p1:Errors>
    <d2p1:Meta xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:KeyValueOfstringstring>
        <d3p1:Key>String</d3p1:Key>
        <d3p1:Value>String</d3p1:Value>
      </d3p1:KeyValueOfstringstring>
    </d2p1:Meta>
  </ResponseStatus>
</PrintableResponse>