/* Options: Date: 2025-09-14 01:25:26 Version: 8.52 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://production-eros-gateway-api-supplierconnect.azurewebsites.net/api //GlobalNamespace: //MakePropertiesOptional: False //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: CancelScheduleRequest.* //ExcludeTypes: //DefaultImports: */ export interface IReturn { createResponse(): T; } // @DataContract export class ObjectReference { // @DataMember(Name="RmsTableContextId") public RmsTableContextId: string; // @DataMember(Name="AlternateKey") public AlternateKey: string; // @DataMember(Name="DataSourceInstanceId") public DataSourceInstanceId: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } } // @DataContract export class ContactInfo { // @DataMember(Name="Id") public Id: string; // @DataMember(Name="Name") public Name: string; // @DataMember(Name="Email") public Email: string; // @DataMember(Name="Phone") public Phone: string; // @DataMember(Name="ContactReference") public ContactReference: ObjectReference; public constructor(init?: Partial) { (Object as any).assign(this, init); } } // @DataContract export class ProjectInfo { // @DataMember(Name="Id") public Id: string; // @DataMember(Name="Name") public Name: string; // @DataMember(Name="Reference") public Reference: string; // @DataMember(Name="Description") public Description: string; // @DataMember(Name="Address") public Address: string; // @DataMember(Name="HouseType") public HouseType: string; // @DataMember(Name="Elevation") public Elevation: string; // @DataMember(Name="CustomerName") public CustomerName: string; // @DataMember(Name="Supervisor") public Supervisor: ContactInfo; // @DataMember(Name="ProjectReference") public ProjectReference: ObjectReference; public constructor(init?: Partial) { (Object as any).assign(this, init); } } // @DataContract export class PurchaseOrderInfo { // @DataMember(Name="Id") public Id: string; // @DataMember(Name="Reference") public Reference: string; // @DataMember(Name="Description") public Description: string; // @DataMember(Name="PurchaseOrderReference") public PurchaseOrderReference: ObjectReference; public constructor(init?: Partial) { (Object as any).assign(this, init); } } // @DataContract export class ActivityReference { /** @description Name/details of the activity */ // @DataMember(Name="name") // @ApiMember(Description="Name/details of the activity", IsRequired=true, Name="Name") public name: string; // @DataMember(Name="notes") public notes: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } } // @DataContract export class ScheduleParams { // @DataMember(Name="Name") public Name: string; // @DataMember(Name="Value") public Value: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export enum AttachmentType { Url = 'Url', FileStream = 'FileStream', } export class EmailAttachment { public FileName: string; public ContentType: string; public Path: string; public Url: string; public Length: number; public FileStream: string; public StreamContent: string; public AttachmentType: AttachmentType; public ProcessedAndUploadedAsBlob: boolean; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export class ScheduleResponse { public ReferenceId: string; public CommunicationId: string; public Success: boolean; public Message: string; public Payload: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } } /** @description Creates or Reschedules a SupplierConnect schedule. This will return the id of the schedule request created and the communication id of the notification sent. */ // @Route("/schedules/{RequestId}/cancel", "POST") // @Api(Description="Creates or Reschedules a SupplierConnect schedule. This will return the id of the schedule request created and the communication id of the notification sent.") // @DataContract export class CancelScheduleRequest implements IReturn { /** @description Id of the schedule request to be recreated */ // @DataMember(Name="RequestId") // @ApiMember(Description="Id of the schedule request to be recreated", IsRequired=true, Name="RequestId") public RequestId: string; /** @description Date/Time of the activity */ // @DataMember(Name="ScheduleDateTime") // @ApiMember(Description="Date/Time of the activity", IsRequired=true, Name="ScheduleDateTime") // @Required() public ScheduleDateTime: string; // @DataMember(Name="Requester") public Requester: ContactInfo; // @DataMember(Name="Supplier") public Supplier: ContactInfo; // @DataMember(Name="Project") public Project: ProjectInfo; // @DataMember(Name="PurchaseOrder") public PurchaseOrder: PurchaseOrderInfo; // @DataMember(Name="Activity") public Activity: ActivityReference; // @DataMember(Name="Params") public Params: ScheduleParams[]; // @DataMember(Name="Attachments") public Attachments: EmailAttachment[]; public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'CancelScheduleRequest'; } public getMethod() { return 'POST'; } public createResponse() { return new ScheduleResponse(); } }