Class WithdrawalWriteService

Class WithdrawalWriteService

WithdrawalWriteService implements WithdrawalWriteServiceInterface

Methods summary

public __construct( WithdrawalFactory $withdrawalFactory )

WithdrawalWriteService constructor.

public createWithdrawal( void ) : Withdrawal

Returns new instances of withdrawal entities

public createOrder( IntType $orderId, IntType $customerId, StringType $customerGender, StringType $customerFirstName, StringType $customerLastName, StringType $customerStreetAddress, IntType $customerPostCode, StringType $customerCity, StringType $customerCountry, StringType $customerEmail, DateTime $orderDate, DateTime $deliveryDate ) : WithdrawalOrder

Returns a new instance of withdrawal order.

public store( WithdrawalInterface $withdrawal ) :

Saves withdrawal entity in database.

public delete( WithdrawalInterface $withdrawal ) :

Deletes withdrawal entity from database.

Properties summary