WithdrawalWriteServiceInterface
in
Interface WithdrawalWriteServiceInterface
Tags
Table of Contents
- createOrder() : WithdrawalOrder
- Returns a new instance of withdrawal order.
- createWithdrawal() : Withdrawal
- Returns new instances of withdrawal entities
- delete() : $this|WithdrawalWriteServiceInterface
- Deletes withdrawal entity from database.
- store() : $this|WithdrawalWriteServiceInterface
- Saves withdrawal entity in database.
Methods
createOrder()
Returns a new instance of withdrawal order.
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
Parameters
- $orderId : IntType
- $customerId : IntType
- $customerGender : StringType
- $customerFirstName : StringType
- $customerLastName : StringType
- $customerStreetAddress : StringType
- $customerPostCode : IntType
- $customerCity : StringType
- $customerCountry : StringType
- $customerEmail : StringType
- $orderDate : DateTime
- $deliveryDate : DateTime
Return values
WithdrawalOrder —createWithdrawal()
Returns new instances of withdrawal entities
public
createWithdrawal() : Withdrawal
Return values
Withdrawal —New withdrawal entity.
delete()
Deletes withdrawal entity from database.
public
delete(WithdrawalInterface $withdrawal) : $this|WithdrawalWriteServiceInterface
Parameters
- $withdrawal : WithdrawalInterface
-
Withdrawal entity to be deleted.
Return values
$this|WithdrawalWriteServiceInterface —Same instance for chained method calls.
store()
Saves withdrawal entity in database.
public
store(WithdrawalInterface $withdrawal) : $this|WithdrawalWriteServiceInterface
Parameters
- $withdrawal : WithdrawalInterface
-
Withdrawal unit to be saved.
Return values
$this|WithdrawalWriteServiceInterface —Same instance for chained method calls.