Trendsic Platform Service

<back to all web services

ApplicationCreationRequest

The following routes are available for this service:
GET/v1/Application/Creation
GET/v1/Application/Creation/{PortalID}
GET/v1/Application/Creation/{PortalID}/{AgentID}
GET/v1/Application/Creation/{PortalID}/{AgentID}/{JurisdictionID}/{CarrierID}/{ProductID}/{ContactId}
<?php namespace dtos;

use DateTime;
use Exception;
use DateInterval;
use JsonSerializable;
use ServiceStack\{IReturn,IReturnVoid,IGet,IPost,IPut,IDelete,IPatch,IMeta,IHasSessionId,IHasBearerToken,IHasVersion};
use ServiceStack\{ICrud,ICreateDb,IUpdateDb,IPatchDb,IDeleteDb,ISaveDb,AuditBase,QueryDb,QueryDb2,QueryData,QueryData2,QueryResponse};
use ServiceStack\{ResponseStatus,ResponseError,EmptyResponse,IdResponse,ArrayList,KeyValuePair2,StringResponse,StringsResponse,Tuple2,Tuple3,ByteArray};
use ServiceStack\{JsonConverters,Returns,TypeContext};


class ApplicationCreationRequest implements JsonSerializable
{
    public function __construct(
        /** @var string|null */
        public ?string $PortalID=null,
        /** @var string|null */
        public ?string $AgentID=null,
        /** @var string|null */
        public ?string $JurisdictionID=null,
        /** @var string|null */
        public ?string $CarrierID=null,
        /** @var string|null */
        public ?string $ProductID=null,
        /** @var int */
        public int $ContactID=0
    ) {
    }

    /** @throws Exception */
    public function fromMap($o): void {
        if (isset($o['PortalID'])) $this->PortalID = $o['PortalID'];
        if (isset($o['AgentID'])) $this->AgentID = $o['AgentID'];
        if (isset($o['JurisdictionID'])) $this->JurisdictionID = $o['JurisdictionID'];
        if (isset($o['CarrierID'])) $this->CarrierID = $o['CarrierID'];
        if (isset($o['ProductID'])) $this->ProductID = $o['ProductID'];
        if (isset($o['ContactID'])) $this->ContactID = $o['ContactID'];
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        if (isset($this->PortalID)) $o['PortalID'] = $this->PortalID;
        if (isset($this->AgentID)) $o['AgentID'] = $this->AgentID;
        if (isset($this->JurisdictionID)) $o['JurisdictionID'] = $this->JurisdictionID;
        if (isset($this->CarrierID)) $o['CarrierID'] = $this->CarrierID;
        if (isset($this->ProductID)) $o['ProductID'] = $this->ProductID;
        if (isset($this->ContactID)) $o['ContactID'] = $this->ContactID;
        return empty($o) ? new class(){} : $o;
    }
}

PHP ApplicationCreationRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv

HTTP + CSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /v1/Application/Creation HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/csv