Copied!

CheckoutServiceInterface

CheckoutServiceInterface.php : 19
Interface

Methods

publiccreateCheckout()

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

Parameters

Name Type Default value Description
$createStruct CheckoutCreateStruct - -

Return values

CheckoutInterface

Tags
Throws
BadStateException
Throws
UnauthorizedException

publicdeleteCheckout()

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

Parameters

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

publicgetCheckout()

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

Parameters

Name Type Default value Description
$identifier string - -

Return values

CheckoutInterface

Tags
Throws
NotFoundException
Throws
BadStateException

publicgetCheckoutForCart()

CheckoutServiceInterface.php : 45
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 : 21
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 : 29
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 : 57
public updateCheckout(CheckoutInterface $checkout, CheckoutUpdateStruct $updateStruct) : void

Parameters

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