| PUT | /partner/warranty/equipment/customer | Update the customer for provided Sales Force sellout |
|---|
<?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 UpdateEquipmentWarrantyCustomerResponse implements JsonSerializable
{
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
return empty($o) ? new class(){} : $o;
}
}
class UpdateEquipmentWarrantyCustomer implements JsonSerializable
{
public function __construct(
/** @description Brand Trigram, e.g. CAR, IWC */
// @ApiMember(Description="Brand Trigram, e.g. CAR, IWC")
/** @var string|null */
public ?string $brand=null,
/** @description POS code, e.g. 102048 */
// @ApiMember(Description="POS code, e.g. 102048", IsRequired=true)
/** @var string */
public string $posCode='',
/** @description Sales Force sellout ID, e.g a0RbW000000qIyXUAU */
// @ApiMember(Description="Sales Force sellout ID, e.g a0RbW000000qIyXUAU", IsRequired=true)
/** @var string */
public string $sfSelloutId='',
/** @description Booster customer ID, e.g 12345678 */
// @ApiMember(Description="Booster customer ID, e.g 12345678", IsRequired=true)
/** @var int */
public int $boosterCustomerId=0
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['brand'])) $this->brand = $o['brand'];
if (isset($o['posCode'])) $this->posCode = $o['posCode'];
if (isset($o['sfSelloutId'])) $this->sfSelloutId = $o['sfSelloutId'];
if (isset($o['boosterCustomerId'])) $this->boosterCustomerId = $o['boosterCustomerId'];
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->brand)) $o['brand'] = $this->brand;
if (isset($this->posCode)) $o['posCode'] = $this->posCode;
if (isset($this->sfSelloutId)) $o['sfSelloutId'] = $this->sfSelloutId;
if (isset($this->boosterCustomerId)) $o['boosterCustomerId'] = $this->boosterCustomerId;
return empty($o) ? new class(){} : $o;
}
}
PHP UpdateEquipmentWarrantyCustomer DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
PUT /partner/warranty/equipment/customer HTTP/1.1
Host: dev-api-booster.richemont.com
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{"brand":"String","posCode":"String","sfSelloutId":"String","boosterCustomerId":0}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
{}