Trendsic Platform Service

<back to all web services

CustomerLinkCreateRequest

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

public class dtos
{

    public static class CustomerLinkCreateRequest
    {
        public String ResourceType = null;
        public UUID ResourceUid = null;
        public Integer RecipientContactId = null;
        public String RecipientEmail = null;
        public String RecipientPhone = null;
        public Boolean DeliverEmail = null;
        public Boolean DeliverSms = null;
        public Integer ExpiresInHours = null;
        public Integer MaxViews = null;
        
        public String getResourceType() { return ResourceType; }
        public CustomerLinkCreateRequest setResourceType(String value) { this.ResourceType = value; return this; }
        public UUID getResourceUid() { return ResourceUid; }
        public CustomerLinkCreateRequest setResourceUid(UUID value) { this.ResourceUid = value; return this; }
        public Integer getRecipientContactId() { return RecipientContactId; }
        public CustomerLinkCreateRequest setRecipientContactId(Integer value) { this.RecipientContactId = value; return this; }
        public String getRecipientEmail() { return RecipientEmail; }
        public CustomerLinkCreateRequest setRecipientEmail(String value) { this.RecipientEmail = value; return this; }
        public String getRecipientPhone() { return RecipientPhone; }
        public CustomerLinkCreateRequest setRecipientPhone(String value) { this.RecipientPhone = value; return this; }
        public Boolean isDeliverEmail() { return DeliverEmail; }
        public CustomerLinkCreateRequest setDeliverEmail(Boolean value) { this.DeliverEmail = value; return this; }
        public Boolean isDeliverSms() { return DeliverSms; }
        public CustomerLinkCreateRequest setDeliverSms(Boolean value) { this.DeliverSms = value; return this; }
        public Integer getExpiresInHours() { return ExpiresInHours; }
        public CustomerLinkCreateRequest setExpiresInHours(Integer value) { this.ExpiresInHours = value; return this; }
        public Integer getMaxViews() { return MaxViews; }
        public CustomerLinkCreateRequest setMaxViews(Integer value) { this.MaxViews = value; return this; }
    }

    public static class CustomerLinkCreateResponse
    {
        public ResponseStatus ResponseStatus = null;
        public CustomerLinkExtended Link = null;
        public String PortalUrl = null;
        public ArrayList<String> DeliveryErrors = new ArrayList<String>();
        
        public ResponseStatus getResponseStatus() { return ResponseStatus; }
        public CustomerLinkCreateResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
        public CustomerLinkExtended getLink() { return Link; }
        public CustomerLinkCreateResponse setLink(CustomerLinkExtended value) { this.Link = value; return this; }
        public String getPortalUrl() { return PortalUrl; }
        public CustomerLinkCreateResponse setPortalUrl(String value) { this.PortalUrl = value; return this; }
        public ArrayList<String> getDeliveryErrors() { return DeliveryErrors; }
        public CustomerLinkCreateResponse setDeliveryErrors(ArrayList<String> value) { this.DeliveryErrors = 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 CustomerLinkCreateRequest 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.

POST /v1/customerlink HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<CustomerLinkCreateRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
  <DeliverEmail>false</DeliverEmail>
  <DeliverSms>false</DeliverSms>
  <ExpiresInHours>0</ExpiresInHours>
  <MaxViews>0</MaxViews>
  <RecipientContactId>0</RecipientContactId>
  <RecipientEmail>String</RecipientEmail>
  <RecipientPhone>String</RecipientPhone>
  <ResourceType>String</ResourceType>
  <ResourceUid>00000000-0000-0000-0000-000000000000</ResourceUid>
</CustomerLinkCreateRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<CustomerLinkCreateResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
  <DeliveryErrors xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>String</d2p1:string>
  </DeliveryErrors>
  <Link>
    <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>
  </Link>
  <PortalUrl>String</PortalUrl>
  <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>
</CustomerLinkCreateResponse>