Copied!

CheckoutServiceInterface

CheckoutServiceInterface.php : 16

Methods

publiccreateCheckout()

CheckoutServiceInterface.php : 42
public createCheckout(CheckoutCreateStruct $createStruct) : CheckoutInterface

Parameters

Name Type Default value Description
$createStruct CheckoutCreateStruct - -

Return values

CheckoutInterface

Tags
Throws
BadStateException
Throws
UnauthorizedException

publicdeleteCheckout()

CheckoutServiceInterface.php : 54
public deleteCheckout(CheckoutInterface $checkout) : void

Parameters

Name Type Default value Description
$checkout CheckoutInterface - -
Tags
Throws
BadStateException
Throws
UnauthorizedException

publicgetCheckout()

CheckoutServiceInterface.php : 29
public getCheckout(string $identifier) : CheckoutInterface

Parameters

Name Type Default value Description
$identifier string - -

Return values

CheckoutInterface

Tags
Throws
NotFoundException
Throws
BadStateException

publicgetCheckoutForCart()

CheckoutServiceInterface.php : 36
public getCheckoutForCart(CartInterface $cart) : CheckoutInterface

Parameters

Name Type Default value Description
$cart CartInterface - -

Return values

CheckoutInterface

Tags
Throws
BadStateException
Throws
NotFoundException
Throws
UnauthorizedException

publicnewCheckoutCreateStruct()

CheckoutServiceInterface.php : 18
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()

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

Parameters

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

Return values

CheckoutUpdateStruct

publicupdateCheckout()

CheckoutServiceInterface.php : 48
public updateCheckout(CheckoutInterface $checkout, CheckoutUpdateStruct $updateStruct) : void

Parameters

Name Type Default value Description
$checkout CheckoutInterface - -
$updateStruct CheckoutUpdateStruct - -
Tags
Throws
BadStateException
Throws
UnauthorizedException