| All Verbs | /BookingsCreatedAndSegments |
|---|
"use strict";
export class PagingMetadata {
/** @param {{Offset?:string,Limit?:string,TotalRecords?:number,ResponseRecords?:number}} [init] */
constructor(init) { Object.assign(this, init) }
/**
* @type {string}
* @description Starting Record */
Offset;
/**
* @type {string}
* @description Number of records to return (PageSize) */
Limit;
/**
* @type {number}
* @description Total Number of Records in a Full Reponse (if no paging) */
TotalRecords;
/**
* @type {number}
* @description Total Number of Records in this Reponse (on this page) */
ResponseRecords;
}
export class CompanyLevelRequestBase extends PagingMetadata {
/** @param {{OwningCompanyCode?:string[],UserName?:string,Offset?:string,Limit?:string,TotalRecords?:number,ResponseRecords?:number}} [init] */
constructor(init) { super(init); Object.assign(this, init) }
/**
* @type {string[]}
* @description Comma Delimited List of Owning Company Codes */
OwningCompanyCode;
/**
* @type {string}
* @description UserName in form of an email address */
UserName;
}
export class GetBookingsCreatedAndSegments extends CompanyLevelRequestBase {
/** @param {{OwningAgencyLocationID?:string[],PNRCreationDateStart?:string,PNRCreationDateEnd?:string,AirSegmentsMustBeTicketed?:boolean,OwningCompanyCode?:string[],UserName?:string,Offset?:string,Limit?:string,TotalRecords?:number,ResponseRecords?:number}} [init] */
constructor(init) { super(init); Object.assign(this, init) }
/**
* @type {string[]}
* @description Comma Delimited List of PCCs */
OwningAgencyLocationID;
/**
* @type {string}
* @description Date in format YYYYMMDD */
PNRCreationDateStart;
/**
* @type {string}
* @description Date in format YYYYMMDD */
PNRCreationDateEnd;
/**
* @type {boolean}
* @description When set to true, filters the results to only include air segments where the associated PNR has been ticketed. Other segments types are unaffected by this filter */
AirSegmentsMustBeTicketed;
}
JavaScript GetBookingsCreatedAndSegments DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /BookingsCreatedAndSegments HTTP/1.1
Host: apidemo.agentivity.com
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{"OwningAgencyLocationID":["String"],"PNRCreationDateStart":"String","PNRCreationDateEnd":"String","AirSegmentsMustBeTicketed":false,"OwningCompanyCode":["String"],"UserName":"String","Offset":"String","Limit":"String","TotalRecords":0,"ResponseRecords":0}