Class WithdrawalJsonSerializer
Class WithdrawalJsonSerializer
This class will serialize and deserialize a Withdrawal entity. It can be used into many places where PHP interacts with external requests such as AJAX or API communications.
- AbstractJsonSerializer implements SerializerInterface
- ┗ WithdrawalJsonSerializer
Package: Extensions\Serializers
Category: System
Located at Extensions/Serializers/WithdrawalJsonSerializer.inc.php
Category: System
Located at Extensions/Serializers/WithdrawalJsonSerializer.inc.php
Methods summary
public
__construct( WithdrawalWriteServiceInterface $withdrawalWriteService )
WithdrawalJsonSerializer constructor.
public
serialize( WithdrawalInterface $object, boolean $encode = true )
: string|array
Serialize a Withdrawal object to a JSON string.
public
deserialize( string $string, WithdrawalInterface $baseObject = null )
: WithdrawalInterface
Deserialize a Product JSON String.
public
serializeWithdrawalCollection( WithdrawalCollection $withdrawalCollection, boolean $encode = true )
: string|array
Serializes withdrawal collections.
protected
_serializeWithdrawalOrder( WithdrawalOrderInterface $withdrawalOrder )
: array
Serializes withdrawal order entities.
protected
_deserializeWithdrawalOrder( stdClass $withdrawalOrderData )
: WithdrawalOrderInterface
Deserialize withdrawal order entities.
Methods inherited from AbstractJsonSerializer
_deserializeAddonValues(),
_deserializeLanguageSpecificProperty(),
_serializeAddonValues(),
_serializeLanguageSpecificProperty(),
jsonEncode()