Copied!

CheckoutServiceDecorator

CheckoutServiceDecorator.php : 16

Properties

protected $innerService

CheckoutServiceDecorator.php : 18
protected CheckoutServiceInterface $innerService

Methods

public__construct()

CheckoutServiceDecorator.php : 20
public __construct(CheckoutServiceInterface $innerService)

Parameters

Name Type Default value Description
$innerService CheckoutServiceInterface - -

publiccreateCheckout()

CheckoutServiceDecorator.php : 45
public createCheckout(CheckoutCreateStruct $createStruct) : CheckoutInterface

Parameters

Name Type Default value Description
$createStruct CheckoutCreateStruct - -

Return values

CheckoutInterface

publicdeleteCheckout()

CheckoutServiceDecorator.php : 55
public deleteCheckout(CheckoutInterface $checkout) : void

Parameters

Name Type Default value Description
$checkout CheckoutInterface - -

publicgetCheckout()

CheckoutServiceDecorator.php : 35
public getCheckout(string $identifier) : CheckoutInterface

Parameters

Name Type Default value Description
$identifier string - -

Return values

CheckoutInterface

publicgetCheckoutForCart()

CheckoutServiceDecorator.php : 40
public getCheckoutForCart(CartInterface $cart) : CheckoutInterface

Parameters

Name Type Default value Description
$cart CartInterface - -

Return values

CheckoutInterface

publicnewCheckoutCreateStruct()

CheckoutServiceDecorator.php : 25
public newCheckoutCreateStruct([CartInterface|null $cart = null ][, string|null $checkoutName = null ]) : CheckoutCreateStruct

Parameters

Name Type Default value Description
$cart CartInterface|null null -
$checkoutName string|null null -

Return values

CheckoutCreateStruct

publicnewCheckoutUpdateStruct()

CheckoutServiceDecorator.php : 30
public newCheckoutUpdateStruct([string|null $transition = null ][, mixed $data = null ]) : CheckoutUpdateStruct

Parameters

Name Type Default value Description
$transition string|null null -
$data mixed null -

Return values

CheckoutUpdateStruct

publicupdateCheckout()

CheckoutServiceDecorator.php : 50
public updateCheckout(CheckoutInterface $checkout, CheckoutUpdateStruct $updateStruct) : void

Parameters

Name Type Default value Description
$checkout CheckoutInterface - -
$updateStruct CheckoutUpdateStruct - -