| Required role: | REGISUserRole |
| POST | /Finance/AccountLate/{reporting_term}/Jobs/Status |
|---|
<?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 FinanceAccountLateChargeOutcome implements JsonSerializable
{
public function __construct(
/** @var int */
public int $regent_id=0,
/** @var string|null */
public ?string $status=null,
/** @var float|null */
public ?float $charge_amount=null,
/** @var string|null */
public ?string $charge_status=null,
/** @var string|null */
public ?string $email_status=null,
/** @var string|null */
public ?string $message=null
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['regent_id'])) $this->regent_id = $o['regent_id'];
if (isset($o['status'])) $this->status = $o['status'];
if (isset($o['charge_amount'])) $this->charge_amount = $o['charge_amount'];
if (isset($o['charge_status'])) $this->charge_status = $o['charge_status'];
if (isset($o['email_status'])) $this->email_status = $o['email_status'];
if (isset($o['message'])) $this->message = $o['message'];
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->regent_id)) $o['regent_id'] = $this->regent_id;
if (isset($this->status)) $o['status'] = $this->status;
if (isset($this->charge_amount)) $o['charge_amount'] = $this->charge_amount;
if (isset($this->charge_status)) $o['charge_status'] = $this->charge_status;
if (isset($this->email_status)) $o['email_status'] = $this->email_status;
if (isset($this->message)) $o['message'] = $this->message;
return empty($o) ? new class(){} : $o;
}
}
class FinanceAccountLateChargeJobResponse implements JsonSerializable
{
public function __construct(
/** @var ResponseStatus|null */
public ?ResponseStatus $responseStatus=null,
/** @var string */
public string $operation_id='',
/** @var string|null */
public ?string $reporting_term=null,
/** @var DateTime */
public DateTime $calculation_date=new DateTime(),
/** @var bool|null */
public ?bool $preview_only=null,
/** @var float|null */
public ?float $skip_exact_balance=null,
/** @var string|null */
public ?string $state=null,
/** @var int|null */
public ?int $total=null,
/** @var int|null */
public ?int $current_regent_id=null,
/** @var int */
public int $processed=0,
/** @var int */
public int $succeeded=0,
/** @var int */
public int $skipped=0,
/** @var int */
public int $failed=0,
/** @var DateTime */
public DateTime $created_utc=new DateTime(),
/** @var DateTime */
public DateTime $updated_utc=new DateTime(),
/** @var string|null */
public ?string $message=null,
/** @var bool|null */
public ?bool $report_available=null,
/** @var array<FinanceAccountLateChargeOutcome>|null */
public ?array $outcomes=null
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['responseStatus'])) $this->responseStatus = JsonConverters::from('ResponseStatus', $o['responseStatus']);
if (isset($o['operation_id'])) $this->operation_id = $o['operation_id'];
if (isset($o['reporting_term'])) $this->reporting_term = $o['reporting_term'];
if (isset($o['calculation_date'])) $this->calculation_date = JsonConverters::from('DateTime', $o['calculation_date']);
if (isset($o['preview_only'])) $this->preview_only = $o['preview_only'];
if (isset($o['skip_exact_balance'])) $this->skip_exact_balance = $o['skip_exact_balance'];
if (isset($o['state'])) $this->state = $o['state'];
if (isset($o['total'])) $this->total = $o['total'];
if (isset($o['current_regent_id'])) $this->current_regent_id = $o['current_regent_id'];
if (isset($o['processed'])) $this->processed = $o['processed'];
if (isset($o['succeeded'])) $this->succeeded = $o['succeeded'];
if (isset($o['skipped'])) $this->skipped = $o['skipped'];
if (isset($o['failed'])) $this->failed = $o['failed'];
if (isset($o['created_utc'])) $this->created_utc = JsonConverters::from('DateTime', $o['created_utc']);
if (isset($o['updated_utc'])) $this->updated_utc = JsonConverters::from('DateTime', $o['updated_utc']);
if (isset($o['message'])) $this->message = $o['message'];
if (isset($o['report_available'])) $this->report_available = $o['report_available'];
if (isset($o['outcomes'])) $this->outcomes = JsonConverters::fromArray('FinanceAccountLateChargeOutcome', $o['outcomes']);
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->responseStatus)) $o['responseStatus'] = JsonConverters::to('ResponseStatus', $this->responseStatus);
if (isset($this->operation_id)) $o['operation_id'] = $this->operation_id;
if (isset($this->reporting_term)) $o['reporting_term'] = $this->reporting_term;
if (isset($this->calculation_date)) $o['calculation_date'] = JsonConverters::to('DateTime', $this->calculation_date);
if (isset($this->preview_only)) $o['preview_only'] = $this->preview_only;
if (isset($this->skip_exact_balance)) $o['skip_exact_balance'] = $this->skip_exact_balance;
if (isset($this->state)) $o['state'] = $this->state;
if (isset($this->total)) $o['total'] = $this->total;
if (isset($this->current_regent_id)) $o['current_regent_id'] = $this->current_regent_id;
if (isset($this->processed)) $o['processed'] = $this->processed;
if (isset($this->succeeded)) $o['succeeded'] = $this->succeeded;
if (isset($this->skipped)) $o['skipped'] = $this->skipped;
if (isset($this->failed)) $o['failed'] = $this->failed;
if (isset($this->created_utc)) $o['created_utc'] = JsonConverters::to('DateTime', $this->created_utc);
if (isset($this->updated_utc)) $o['updated_utc'] = JsonConverters::to('DateTime', $this->updated_utc);
if (isset($this->message)) $o['message'] = $this->message;
if (isset($this->report_available)) $o['report_available'] = $this->report_available;
if (isset($this->outcomes)) $o['outcomes'] = JsonConverters::toArray('FinanceAccountLateChargeOutcome', $this->outcomes);
return empty($o) ? new class(){} : $o;
}
}
class FinanceAccountLateChargeJobStatusRequest implements JsonSerializable
{
public function __construct(
/** @var string|null */
public ?string $authorizing_uuid=null,
/** @var string|null */
public ?string $reporting_term=null,
/** @var string */
public string $operation_id=''
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['authorizing_uuid'])) $this->authorizing_uuid = $o['authorizing_uuid'];
if (isset($o['reporting_term'])) $this->reporting_term = $o['reporting_term'];
if (isset($o['operation_id'])) $this->operation_id = $o['operation_id'];
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->authorizing_uuid)) $o['authorizing_uuid'] = $this->authorizing_uuid;
if (isset($this->reporting_term)) $o['reporting_term'] = $this->reporting_term;
if (isset($this->operation_id)) $o['operation_id'] = $this->operation_id;
return empty($o) ? new class(){} : $o;
}
}
PHP FinanceAccountLateChargeJobStatusRequest 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/AccountLate/{reporting_term}/Jobs/Status HTTP/1.1
Host: data.regent-college.edu
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<FinanceAccountLateChargeJobStatusRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/regis.ClassLibrary.Requests">
<authorizing_uuid>String</authorizing_uuid>
<operation_id>00000000-0000-0000-0000-000000000000</operation_id>
<reporting_term>String</reporting_term>
</FinanceAccountLateChargeJobStatusRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<FinanceAccountLateChargeJobResponse 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>
<calculation_date>0001-01-01T00:00:00</calculation_date>
<created_utc>0001-01-01T00:00:00</created_utc>
<current_regent_id>0</current_regent_id>
<failed>0</failed>
<message>String</message>
<operation_id>00000000-0000-0000-0000-000000000000</operation_id>
<outcomes>
<FinanceAccountLateChargeOutcome>
<charge_amount>0</charge_amount>
<charge_status>String</charge_status>
<email_status>String</email_status>
<message>String</message>
<regent_id>0</regent_id>
<status>String</status>
</FinanceAccountLateChargeOutcome>
</outcomes>
<preview_only>false</preview_only>
<processed>0</processed>
<report_available>false</report_available>
<reporting_term>String</reporting_term>
<skip_exact_balance>0</skip_exact_balance>
<skipped>0</skipped>
<state>String</state>
<succeeded>0</succeeded>
<total>0</total>
<updated_utc>0001-01-01T00:00:00</updated_utc>
</FinanceAccountLateChargeJobResponse>