BasicCustomerEventPayload
in package
implements
OfcpEvent
FinalYes
Payload for deleting customers
Table of Contents
Interfaces
- OfcpEvent
- Basic interface for OFCP-Events.
Properties
- $customer : string
- $salesChannel : string
Methods
- __construct() : self
- Payload for deleting customers
- from_json() : self
- Parse JSON data into an instance of this class.
- getCustomer() : string
- getSalesChannel() : string
- jsonSerialize() : array<string|int, mixed>
- setCustomer() : void
- setSalesChannel() : void
Properties
$customer
private
string
$customer
$salesChannel
private
string
$salesChannel
Methods
__construct()
Payload for deleting customers
public
__construct(string $customer, string $salesChannel) : self
Parameters
- $customer : string
-
The customer ID
- $salesChannel : string
-
The sales channel ID
Return values
selffrom_json()
Parse JSON data into an instance of this class.
public
static from_json(string|array<string|int, mixed> $json) : self
Parameters
- $json : string|array<string|int, mixed>
-
JSON data to parse.
Return values
selfgetCustomer()
public
getCustomer() : string
Return values
stringgetSalesChannel()
public
getSalesChannel() : string
Return values
stringjsonSerialize()
public
jsonSerialize() : array<string|int, mixed>
Return values
array<string|int, mixed>setCustomer()
public
setCustomer(string $customer) : void
Parameters
- $customer : string
setSalesChannel()
public
setSalesChannel(string $salesChannel) : void
Parameters
- $salesChannel : string