| POST | /cl_payboxdirect |
|---|
<?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 cl_payboxdirectRequest implements JsonSerializable
{
public function __construct(
/** @var string|null */
public ?string $id_operateur=null,
/** @var string|null */
public ?string $id_client=null,
/** @var string|null */
public ?string $numtrans=null,
/** @var float */
public float $montant=0.0,
/** @var string|null */
public ?string $authorisation=null,
/** @var string|null */
public ?string $codereponse=null,
/** @var string|null */
public ?string $numappel=null,
/** @var string|null */
public ?string $webreponse=null
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['id_operateur'])) $this->id_operateur = $o['id_operateur'];
if (isset($o['id_client'])) $this->id_client = $o['id_client'];
if (isset($o['numtrans'])) $this->numtrans = $o['numtrans'];
if (isset($o['montant'])) $this->montant = $o['montant'];
if (isset($o['authorisation'])) $this->authorisation = $o['authorisation'];
if (isset($o['codereponse'])) $this->codereponse = $o['codereponse'];
if (isset($o['numappel'])) $this->numappel = $o['numappel'];
if (isset($o['webreponse'])) $this->webreponse = $o['webreponse'];
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->id_operateur)) $o['id_operateur'] = $this->id_operateur;
if (isset($this->id_client)) $o['id_client'] = $this->id_client;
if (isset($this->numtrans)) $o['numtrans'] = $this->numtrans;
if (isset($this->montant)) $o['montant'] = $this->montant;
if (isset($this->authorisation)) $o['authorisation'] = $this->authorisation;
if (isset($this->codereponse)) $o['codereponse'] = $this->codereponse;
if (isset($this->numappel)) $o['numappel'] = $this->numappel;
if (isset($this->webreponse)) $o['webreponse'] = $this->webreponse;
return empty($o) ? new class(){} : $o;
}
}
PHP cl_payboxdirectRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /cl_payboxdirect HTTP/1.1
Host: freemotion-staging.milliet.paris
Accept: application/json
Content-Type: application/json
Content-Length: length
{"id_operateur":"String","id_client":"String","numtrans":"String","montant":0,"authorisation":"String","codereponse":"String","numappel":"String","webreponse":"String"}