Trendsic Platform Service

<back to all web services

CustomerLinkListRequest

Requires Authentication
The following routes are available for this service:
GET,OPTIONS/v1/customerlink/resource/{ResourceType}/{ResourceUid}
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;

public class dtos
{

    public static class CustomerLinkListRequest
    {
        public String ResourceType = null;
        public UUID ResourceUid = null;
        
        public String getResourceType() { return ResourceType; }
        public CustomerLinkListRequest setResourceType(String value) { this.ResourceType = value; return this; }
        public UUID getResourceUid() { return ResourceUid; }
        public CustomerLinkListRequest setResourceUid(UUID value) { this.ResourceUid = value; return this; }
    }

    public static class CustomerLinkListResponse
    {
        public ResponseStatus ResponseStatus = null;
        public ArrayList<CustomerLinkExtended> Links = new ArrayList<CustomerLinkExtended>();
        
        public ResponseStatus getResponseStatus() { return ResponseStatus; }
        public CustomerLinkListResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
        public ArrayList<CustomerLinkExtended> getLinks() { return Links; }
        public CustomerLinkListResponse setLinks(ArrayList<CustomerLinkExtended> value) { this.Links = value; return this; }
    }

    public static class CustomerLinkExtended extends CustomerLink
    {
        public String RecipientDisplayName = null;
        public String RecipientType = null;
        public String Status = null;
        
        public String getRecipientDisplayName() { return RecipientDisplayName; }
        public CustomerLinkExtended setRecipientDisplayName(String value) { this.RecipientDisplayName = value; return this; }
        public String getRecipientType() { return RecipientType; }
        public CustomerLinkExtended setRecipientType(String value) { this.RecipientType = value; return this; }
        public String getStatus() { return Status; }
        public CustomerLinkExtended setStatus(String value) { this.Status = value; return this; }
    }

    public static class CustomerLink
    {
        public Integer CustomerLinkId = null;
        public UUID CustomerLinkUID = null;
        public String TokenHash = null;
        public String ResourceType = null;
        public UUID ResourceUid = null;
        public String SensitivityTier = null;
        public Boolean RequireOtp = null;
        public String OtpChannel = null;
        public String DeliveryChannels = null;
        public Integer RecipientContactId = null;
        public String RecipientEmail = null;
        public String RecipientPhone = null;
        public Boolean SmsConsentSnapshot = null;
        public UUID CreatedByUserId = null;
        public Integer CreatedByAgentId = null;
        public Date CreatedAtUtc = null;
        public Date ExpiresAtUtc = null;
        public Integer MaxViews = null;
        public Integer ViewCount = null;
        public Date RevokedAtUtc = null;
        public UUID RevokedByUserId = null;
        public UUID TenantId = null;
        
        public Integer getCustomerLinkId() { return CustomerLinkId; }
        public CustomerLink setCustomerLinkId(Integer value) { this.CustomerLinkId = value; return this; }
        public UUID getCustomerLinkUID() { return CustomerLinkUID; }
        public CustomerLink setCustomerLinkUID(UUID value) { this.CustomerLinkUID = value; return this; }
        public String getTokenHash() { return TokenHash; }
        public CustomerLink setTokenHash(String value) { this.TokenHash = value; return this; }
        public String getResourceType() { return ResourceType; }
        public CustomerLink setResourceType(String value) { this.ResourceType = value; return this; }
        public UUID getResourceUid() { return ResourceUid; }
        public CustomerLink setResourceUid(UUID value) { this.ResourceUid = value; return this; }
        public String getSensitivityTier() { return SensitivityTier; }
        public CustomerLink setSensitivityTier(String value) { this.SensitivityTier = value; return this; }
        public Boolean isRequireOtp() { return RequireOtp; }
        public CustomerLink setRequireOtp(Boolean value) { this.RequireOtp = value; return this; }
        public String getOtpChannel() { return OtpChannel; }
        public CustomerLink setOtpChannel(String value) { this.OtpChannel = value; return this; }
        public String getDeliveryChannels() { return DeliveryChannels; }
        public CustomerLink setDeliveryChannels(String value) { this.DeliveryChannels = value; return this; }
        public Integer getRecipientContactId() { return RecipientContactId; }
        public CustomerLink setRecipientContactId(Integer value) { this.RecipientContactId = value; return this; }
        public String getRecipientEmail() { return RecipientEmail; }
        public CustomerLink setRecipientEmail(String value) { this.RecipientEmail = value; return this; }
        public String getRecipientPhone() { return RecipientPhone; }
        public CustomerLink setRecipientPhone(String value) { this.RecipientPhone = value; return this; }
        public Boolean isSmsConsentSnapshot() { return SmsConsentSnapshot; }
        public CustomerLink setSmsConsentSnapshot(Boolean value) { this.SmsConsentSnapshot = value; return this; }
        public UUID getCreatedByUserId() { return CreatedByUserId; }
        public CustomerLink setCreatedByUserId(UUID value) { this.CreatedByUserId = value; return this; }
        public Integer getCreatedByAgentId() { return CreatedByAgentId; }
        public CustomerLink setCreatedByAgentId(Integer value) { this.CreatedByAgentId = value; return this; }
        public Date getCreatedAtUtc() { return CreatedAtUtc; }
        public CustomerLink setCreatedAtUtc(Date value) { this.CreatedAtUtc = value; return this; }
        public Date getExpiresAtUtc() { return ExpiresAtUtc; }
        public CustomerLink setExpiresAtUtc(Date value) { this.ExpiresAtUtc = value; return this; }
        public Integer getMaxViews() { return MaxViews; }
        public CustomerLink setMaxViews(Integer value) { this.MaxViews = value; return this; }
        public Integer getViewCount() { return ViewCount; }
        public CustomerLink setViewCount(Integer value) { this.ViewCount = value; return this; }
        public Date getRevokedAtUtc() { return RevokedAtUtc; }
        public CustomerLink setRevokedAtUtc(Date value) { this.RevokedAtUtc = value; return this; }
        public UUID getRevokedByUserId() { return RevokedByUserId; }
        public CustomerLink setRevokedByUserId(UUID value) { this.RevokedByUserId = value; return this; }
        public UUID getTenantId() { return TenantId; }
        public CustomerLink setTenantId(UUID value) { this.TenantId = value; return this; }
    }

}

Java CustomerLinkListRequest 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/customerlink/resource/{ResourceType}/{ResourceUid} HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<CustomerLinkListResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
  <Links>
    <CustomerLinkExtended>
      <CreatedAtUtc>0001-01-01T00:00:00</CreatedAtUtc>
      <CreatedByAgentId>0</CreatedByAgentId>
      <CreatedByUserId>00000000-0000-0000-0000-000000000000</CreatedByUserId>
      <CustomerLinkId>0</CustomerLinkId>
      <CustomerLinkUID>00000000-0000-0000-0000-000000000000</CustomerLinkUID>
      <DeliveryChannels>String</DeliveryChannels>
      <ExpiresAtUtc>0001-01-01T00:00:00</ExpiresAtUtc>
      <MaxViews>0</MaxViews>
      <OtpChannel>String</OtpChannel>
      <RecipientContactId>0</RecipientContactId>
      <RecipientEmail>String</RecipientEmail>
      <RecipientPhone>String</RecipientPhone>
      <RequireOtp>false</RequireOtp>
      <ResourceType>String</ResourceType>
      <ResourceUid>00000000-0000-0000-0000-000000000000</ResourceUid>
      <RevokedAtUtc>0001-01-01T00:00:00</RevokedAtUtc>
      <RevokedByUserId>00000000-0000-0000-0000-000000000000</RevokedByUserId>
      <SensitivityTier>String</SensitivityTier>
      <SmsConsentSnapshot>false</SmsConsentSnapshot>
      <TenantId>00000000-0000-0000-0000-000000000000</TenantId>
      <TokenHash>String</TokenHash>
      <ViewCount>0</ViewCount>
      <RecipientDisplayName>String</RecipientDisplayName>
      <RecipientType>String</RecipientType>
      <Status>String</Status>
    </CustomerLinkExtended>
  </Links>
  <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>
</CustomerLinkListResponse>