regis

<back to all web services

UnauthenticatedRegistrationInProgressSubmitRequest

Requires Authentication
Required role:REGISUserRole
The following routes are available for this service:
POST/Registration/InProgressForUnauthenticatedPerson/{uuid}/Term/{reporting_term}/Submit
<?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 RegistrationInProgressSubmitResponse implements JsonSerializable
{
    public function __construct(
        /** @var ResponseStatus|null */
        public ?ResponseStatus $responseStatus=null,
        /** @var string|null */
        public ?string $email=null,
        /** @var string|null */
        public ?string $first_name=null,
        /** @var string|null */
        public ?string $preferred_name=null,
        /** @var string|null */
        public ?string $last_name=null
    ) {
    }

    /** @throws Exception */
    public function fromMap($o): void {
        if (isset($o['responseStatus'])) $this->responseStatus = JsonConverters::from('ResponseStatus', $o['responseStatus']);
        if (isset($o['email'])) $this->email = $o['email'];
        if (isset($o['first_name'])) $this->first_name = $o['first_name'];
        if (isset($o['preferred_name'])) $this->preferred_name = $o['preferred_name'];
        if (isset($o['last_name'])) $this->last_name = $o['last_name'];
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        if (isset($this->responseStatus)) $o['responseStatus'] = JsonConverters::to('ResponseStatus', $this->responseStatus);
        if (isset($this->email)) $o['email'] = $this->email;
        if (isset($this->first_name)) $o['first_name'] = $this->first_name;
        if (isset($this->preferred_name)) $o['preferred_name'] = $this->preferred_name;
        if (isset($this->last_name)) $o['last_name'] = $this->last_name;
        return empty($o) ? new class(){} : $o;
    }
}

class UnauthenticatedRegistrationInProgressSubmitRequest implements JsonSerializable
{
    public function __construct(
        /** @var string|null */
        public ?string $transaction_uuid=null,
        /** @var string|null */
        public ?string $uuid=null,
        /** @var string|null */
        public ?string $reporting_term=null,
        /** @var array<int>|null */
        public ?array $rates_opted_in=null,
        /** @var bool|null */
        public ?bool $casl_optin=null,
        /** @var bool|null */
        public ?bool $ams_optin=null,
        /** @var bool|null */
        public ?bool $rcsa_locker_optin=null,
        /** @var bool|null */
        public ?bool $appliedForDEReentryBenefit=null,
        /** @var bool|null */
        public ?bool $appliedForSpousalAuditBenefit=null,
        /** @var bool|null */
        public ?bool $appliedForSpousalCreditBenefit=null,
        /** @var string|null */
        public ?string $notes=null
    ) {
    }

    /** @throws Exception */
    public function fromMap($o): void {
        if (isset($o['transaction_uuid'])) $this->transaction_uuid = $o['transaction_uuid'];
        if (isset($o['uuid'])) $this->uuid = $o['uuid'];
        if (isset($o['reporting_term'])) $this->reporting_term = $o['reporting_term'];
        if (isset($o['rates_opted_in'])) $this->rates_opted_in = JsonConverters::fromArray('int', $o['rates_opted_in']);
        if (isset($o['casl_optin'])) $this->casl_optin = $o['casl_optin'];
        if (isset($o['ams_optin'])) $this->ams_optin = $o['ams_optin'];
        if (isset($o['rcsa_locker_optin'])) $this->rcsa_locker_optin = $o['rcsa_locker_optin'];
        if (isset($o['appliedForDEReentryBenefit'])) $this->appliedForDEReentryBenefit = $o['appliedForDEReentryBenefit'];
        if (isset($o['appliedForSpousalAuditBenefit'])) $this->appliedForSpousalAuditBenefit = $o['appliedForSpousalAuditBenefit'];
        if (isset($o['appliedForSpousalCreditBenefit'])) $this->appliedForSpousalCreditBenefit = $o['appliedForSpousalCreditBenefit'];
        if (isset($o['notes'])) $this->notes = $o['notes'];
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        if (isset($this->transaction_uuid)) $o['transaction_uuid'] = $this->transaction_uuid;
        if (isset($this->uuid)) $o['uuid'] = $this->uuid;
        if (isset($this->reporting_term)) $o['reporting_term'] = $this->reporting_term;
        if (isset($this->rates_opted_in)) $o['rates_opted_in'] = JsonConverters::toArray('int', $this->rates_opted_in);
        if (isset($this->casl_optin)) $o['casl_optin'] = $this->casl_optin;
        if (isset($this->ams_optin)) $o['ams_optin'] = $this->ams_optin;
        if (isset($this->rcsa_locker_optin)) $o['rcsa_locker_optin'] = $this->rcsa_locker_optin;
        if (isset($this->appliedForDEReentryBenefit)) $o['appliedForDEReentryBenefit'] = $this->appliedForDEReentryBenefit;
        if (isset($this->appliedForSpousalAuditBenefit)) $o['appliedForSpousalAuditBenefit'] = $this->appliedForSpousalAuditBenefit;
        if (isset($this->appliedForSpousalCreditBenefit)) $o['appliedForSpousalCreditBenefit'] = $this->appliedForSpousalCreditBenefit;
        if (isset($this->notes)) $o['notes'] = $this->notes;
        return empty($o) ? new class(){} : $o;
    }
}

PHP UnauthenticatedRegistrationInProgressSubmitRequest 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 /Registration/InProgressForUnauthenticatedPerson/{uuid}/Term/{reporting_term}/Submit HTTP/1.1 
Host: data.regent-college.edu 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<UnauthenticatedRegistrationInProgressSubmitRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/regis.ClassLibrary.Requests">
  <ams_optin>false</ams_optin>
  <appliedForDEReentryBenefit>false</appliedForDEReentryBenefit>
  <appliedForSpousalAuditBenefit>false</appliedForSpousalAuditBenefit>
  <appliedForSpousalCreditBenefit>false</appliedForSpousalCreditBenefit>
  <casl_optin>false</casl_optin>
  <notes>String</notes>
  <rates_opted_in xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>0</d2p1:int>
  </rates_opted_in>
  <rcsa_locker_optin>false</rcsa_locker_optin>
  <reporting_term>String</reporting_term>
  <transaction_uuid>String</transaction_uuid>
  <uuid>String</uuid>
</UnauthenticatedRegistrationInProgressSubmitRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<RegistrationInProgressSubmitResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/regis.ClassLibrary.Responses">
  <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>
  <email>String</email>
  <first_name>String</first_name>
  <last_name>String</last_name>
  <preferred_name>String</preferred_name>
</RegistrationInProgressSubmitResponse>