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

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()

Properties summary

protected $withdrawalWriteService : WithdrawalWriteServiceInterface

Withdrawals write service.


		

Properties inherited from AbstractJsonSerializer

$languageProvider