RAPP.BW.MovableInk

<back to all web services

RequestFranceWallet

Requires Authentication
The following routes are available for this service:
All Verbs/RequestFranceWallet
<?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 FranceWalletMemberData implements JsonSerializable
{
    public function __construct(
        /** @var string|null */
        public ?string $AESMemberID=null,
        /** @var string|null */
        public ?string $MemberID=null,
        /** @var string|null */
        public ?string $Forename=null,
        /** @var string|null */
        public ?string $Surname=null,
        /** @var int */
        public int $TierDescription=0,
        /** @var string|null */
        public ?string $CurrentPoints=null,
        /** @var string|null */
        public ?string $NoofStaysToNextTier=null
    ) {
    }

    /** @throws Exception */
    public function fromMap($o): void {
        if (isset($o['AESMemberID'])) $this->AESMemberID = $o['AESMemberID'];
        if (isset($o['MemberID'])) $this->MemberID = $o['MemberID'];
        if (isset($o['Forename'])) $this->Forename = $o['Forename'];
        if (isset($o['Surname'])) $this->Surname = $o['Surname'];
        if (isset($o['TierDescription'])) $this->TierDescription = $o['TierDescription'];
        if (isset($o['CurrentPoints'])) $this->CurrentPoints = $o['CurrentPoints'];
        if (isset($o['NoofStaysToNextTier'])) $this->NoofStaysToNextTier = $o['NoofStaysToNextTier'];
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        if (isset($this->AESMemberID)) $o['AESMemberID'] = $this->AESMemberID;
        if (isset($this->MemberID)) $o['MemberID'] = $this->MemberID;
        if (isset($this->Forename)) $o['Forename'] = $this->Forename;
        if (isset($this->Surname)) $o['Surname'] = $this->Surname;
        if (isset($this->TierDescription)) $o['TierDescription'] = $this->TierDescription;
        if (isset($this->CurrentPoints)) $o['CurrentPoints'] = $this->CurrentPoints;
        if (isset($this->NoofStaysToNextTier)) $o['NoofStaysToNextTier'] = $this->NoofStaysToNextTier;
        return empty($o) ? new class(){} : $o;
    }
}

class FrResponse implements JsonSerializable
{
    public function __construct(
        // @DataMember
        /** @var bool|null */
        public ?bool $HasError=null,

        // @DataMember
        /** @var string|null */
        public ?string $Error=null,

        // @DataMember
        /** @var FranceWalletMemberData|null */
        public ?FranceWalletMemberData $MemberData=null
    ) {
    }

    /** @throws Exception */
    public function fromMap($o): void {
        if (isset($o['HasError'])) $this->HasError = $o['HasError'];
        if (isset($o['Error'])) $this->Error = $o['Error'];
        if (isset($o['MemberData'])) $this->MemberData = JsonConverters::from('FranceWalletMemberData', $o['MemberData']);
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        if (isset($this->HasError)) $o['HasError'] = $this->HasError;
        if (isset($this->Error)) $o['Error'] = $this->Error;
        if (isset($this->MemberData)) $o['MemberData'] = JsonConverters::to('FranceWalletMemberData', $this->MemberData);
        return empty($o) ? new class(){} : $o;
    }
}

class RequestFranceWallet implements JsonSerializable
{
    public function __construct(
        /** @var string|null */
        public ?string $AESMemberID=null
    ) {
    }

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

PHP RequestFranceWallet 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.

POST /RequestFranceWallet HTTP/1.1 
Host: bwdynamicsuat.rapp-customers.co.uk 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"AESMemberID":"String"}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"HasError":false,"Error":"String","MemberData":{"AESMemberID":"String","MemberID":"String","Forename":"String","Surname":"String","TierDescription":0,"CurrentPoints":"String","NoofStaysToNextTier":"String"}}