RAPP.BW.MovableInk

<back to all web services

RequestFranceEnrolment

Requires Authentication
The following routes are available for this service:
All Verbs/RequestFranceEnrolment
<?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 RequestFranceEnrolment 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 RequestFranceEnrolment 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 /RequestFranceEnrolment HTTP/1.1 
Host: bwdynamicsuat.rapp-customers.co.uk 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<RequestFranceEnrolment xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RAPP.BW.MovableInk">
  <AESMemberID>String</AESMemberID>
</RequestFranceEnrolment>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<FrResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RAPP.BW.MovableInk">
  <Error>String</Error>
  <HasError>false</HasError>
  <MemberData>
    <AESMemberID>String</AESMemberID>
    <CurrentPoints>String</CurrentPoints>
    <Forename>String</Forename>
    <MemberID>String</MemberID>
    <NoofStaysToNextTier>String</NoofStaysToNextTier>
    <Surname>String</Surname>
    <TierDescription>0</TierDescription>
  </MemberData>
</FrResponse>