DX STF Client API

<back to all web services

SearchSenderPurchaseCondition

Purchase Conditions Requests

Purchase Conditions

Requires Authentication
The following routes are available for this service:
POST/api/purchaseCondition/search/senderSearch purchase condition based on search parameters

export enum ORDER
{
    ASC = 'ASC',
    DESC = 'DESC',
}

export class SearchPurchaseConditionByDateFilter implements ISearchPurchaseConditionByDateFilter
{
    public fromDate: string;
    public toDate: string;
    public continuationToken: string;
    public requestedPage: number;
    public numberOfRecordsPerPage: number;
    public orderBy: string;
    public order: ORDER;

    public constructor(init?: Partial<SearchPurchaseConditionByDateFilter>) { (Object as any).assign(this, init); }
}

/** @description Purchase Conditions */
// @Api(Description="Purchase Conditions")
// @ApiResponse(Description="Paged Purchase data", IsDefaultResponse=true, ResponseType="typeof(DX.STF.Models.Queries.QueryResult.PagedQueryResponseWithToken`1[[DX.Framework.Core.Querying.ResultItem`1[[DX.STF.Models.Dto.GS1.PurchaseConditionsMessage, DX.STF.Models, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]], DX.Framework.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]])", StatusCode=200)
export class SearchSenderPurchaseCondition
{
    /** @description Search query */
    // @ApiMember(Description="Search query", ParameterType="model")
    public query: SearchPurchaseConditionByDateFilter;

    public constructor(init?: Partial<SearchSenderPurchaseCondition>) { (Object as any).assign(this, init); }
}

export class PagedQueryResult<T>
{
    public startIndex: number;
    public endIndex: number;
    public numberOfRecordsReturned: number;
    public totalNumberOfPages: number;
    public totalNumberOfRecords: number;
    public results: ResultItem<ClaimMessage>[] = [];

    public constructor(init?: Partial<PagedQueryResult<T>>) { (Object as any).assign(this, init); }
}

export class PagedQueryResponseWithToken<T> extends PagedQueryResult<ResultItem<InvoiceMessage>>
{
    public continuationToken: string;

    public constructor(init?: Partial<PagedQueryResponseWithToken<T>>) { super(init); (Object as any).assign(this, init); }
}

TypeScript SearchSenderPurchaseCondition DTOs

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

HTTP + OTHER

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

POST /api/purchaseCondition/search/sender HTTP/1.1 
Host: stf-api-uat.data-xchange.co.za 
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length

{"query":{"continuationToken":"String","requestedPage":0,"numberOfRecordsPerPage":0,"orderBy":"String","order":"ASC"}}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"continuationToken":"String","startIndex":0,"endIndex":0,"numberOfRecordsReturned":0,"totalNumberOfPages":0,"totalNumberOfRecords":0,"results":[{}]}