Required role: | REGISUserRole |
POST | /Finance/FinancialAid/Application/{application_uuid}/Email |
---|
<?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 FinancialAidApplicationEmailRequest implements JsonSerializable
{
public function __construct(
/** @var string|null */
public ?string $application_uuid=null,
/** @var bool|null */
public ?bool $incomplete=null,
/** @var bool|null */
public ?bool $complete=null,
/** @var bool|null */
public ?bool $servant_fund=null,
/** @var bool|null */
public ?bool $ruth_ericson=null,
/** @var bool|null */
public ?bool $mary_elizabeth_bramhall=null,
/** @var bool|null */
public ?bool $winifred_rennie=null
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['application_uuid'])) $this->application_uuid = $o['application_uuid'];
if (isset($o['incomplete'])) $this->incomplete = $o['incomplete'];
if (isset($o['complete'])) $this->complete = $o['complete'];
if (isset($o['servant_fund'])) $this->servant_fund = $o['servant_fund'];
if (isset($o['ruth_ericson'])) $this->ruth_ericson = $o['ruth_ericson'];
if (isset($o['mary_elizabeth_bramhall'])) $this->mary_elizabeth_bramhall = $o['mary_elizabeth_bramhall'];
if (isset($o['winifred_rennie'])) $this->winifred_rennie = $o['winifred_rennie'];
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->application_uuid)) $o['application_uuid'] = $this->application_uuid;
if (isset($this->incomplete)) $o['incomplete'] = $this->incomplete;
if (isset($this->complete)) $o['complete'] = $this->complete;
if (isset($this->servant_fund)) $o['servant_fund'] = $this->servant_fund;
if (isset($this->ruth_ericson)) $o['ruth_ericson'] = $this->ruth_ericson;
if (isset($this->mary_elizabeth_bramhall)) $o['mary_elizabeth_bramhall'] = $this->mary_elizabeth_bramhall;
if (isset($this->winifred_rennie)) $o['winifred_rennie'] = $this->winifred_rennie;
return empty($o) ? new class(){} : $o;
}
}
PHP FinancialAidApplicationEmailRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /Finance/FinancialAid/Application/{application_uuid}/Email HTTP/1.1
Host: data.regent-college.edu
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<FinancialAidApplicationEmailRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/regis.ClassLibrary.Requests">
<application_uuid>String</application_uuid>
<complete>false</complete>
<incomplete>false</incomplete>
<mary_elizabeth_bramhall>false</mary_elizabeth_bramhall>
<ruth_ericson>false</ruth_ericson>
<servant_fund>false</servant_fund>
<winifred_rennie>false</winifred_rennie>
</FinancialAidApplicationEmailRequest>
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length (string)