/* Options: Date: 2026-06-22 20:28:07 Version: 8.80 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.dev.dynamics.trendsic.com //GlobalNamespace: //MakePropertiesOptional: False //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: CustomerLinkCreateRequest.* //ExcludeTypes: //DefaultImports: */ export interface IReturn { createResponse(): T; } export class CustomerLink { public CustomerLinkId: number; public CustomerLinkUID: string; public TokenHash: string; public ResourceType: string; public ResourceUid: string; public SensitivityTier: string; public RequireOtp: boolean; public OtpChannel: string; public DeliveryChannels: string; public RecipientContactId?: number; public RecipientEmail: string; public RecipientPhone: string; public SmsConsentSnapshot: boolean; public CreatedByUserId: string; public CreatedByAgentId?: number; public CreatedAtUtc: string; public ExpiresAtUtc?: string; public MaxViews?: number; public ViewCount: number; public RevokedAtUtc?: string; public RevokedByUserId?: string; public TenantId: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export class CustomerLinkExtended extends CustomerLink { public RecipientDisplayName: string; public RecipientType: string; public Status: string; public constructor(init?: Partial) { super(init); (Object as any).assign(this, init); } } // @DataContract export class ResponseStatus { // @DataMember(Order=1) public ErrorCode: string; // @DataMember(Order=2) public Message: string; // @DataMember(Order=3) public StackTrace: string; // @DataMember(Order=4) public Errors: ResponseError[] = []; // @DataMember(Order=5) public Meta: { [index:string]: string; } = {}; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export class CustomerLinkCreateResponse { public ResponseStatus: ResponseStatus; public Link: CustomerLinkExtended; public PortalUrl: string; public DeliveryErrors: string[] = []; public constructor(init?: Partial) { (Object as any).assign(this, init); } } // @Route("/v1/customerlink", "POST,OPTIONS") export class CustomerLinkCreateRequest implements IReturn { public ResourceType: string; public ResourceUid: string; public RecipientContactId?: number; public RecipientEmail: string; public RecipientPhone: string; public DeliverEmail: boolean; public DeliverSms: boolean; public ExpiresInHours?: number; public MaxViews?: number; public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'CustomerLinkCreateRequest'; } public getMethod() { return 'POST'; } public createResponse() { return new CustomerLinkCreateResponse(); } }