Copied!

ShippingAddressService

ShippingAddressService.php : 16

Methods

publiccreateShippingAddress()

ShippingAddressService.php : 34
public createShippingAddress(Company $company, ShippingAddressCreateStruct $shippingAddressCreateStruct[, array<string|int, string>|null $fieldIdentifiersToValidate = null ]) : ShippingAddress

Parameters

Name Type Default value Description
$company Company - -
$shippingAddressCreateStruct ShippingAddressCreateStruct - -
$fieldIdentifiersToValidate array<string|int, string>|null null -

Return values

ShippingAddress

publiccreateShippingAddressFromCompanyBillingAddress()

ShippingAddressService.php : 51
public createShippingAddressFromCompanyBillingAddress(Company $company) : ShippingAddress

Parameters

Name Type Default value Description
$company Company - -

Return values

ShippingAddress

publicdeleteShippingAddress()

ShippingAddressService.php : 49
public deleteShippingAddress(ShippingAddress $shippingAddress) : void

Parameters

Name Type Default value Description
$shippingAddress ShippingAddress - -

publicgetCompanyDefaultShippingAddress()

ShippingAddressService.php : 20
public getCompanyDefaultShippingAddress(Company $company) : ShippingAddress|null

Parameters

Name Type Default value Description
$company Company - -

Return values

ShippingAddress|null

publicgetCompanyShippingAddresses()

ShippingAddressService.php : 25
public getCompanyShippingAddresses(Company $company[, int $limit = 25 ][, int $offset = 0 ]) : array<string|int, ShippingAddress>

Parameters

Name Type Default value Description
$company Company - -
$limit int 25 -
$offset int 0 -

Return values

array<string|int, ShippingAddress>

publicgetShippingAddress()

ShippingAddressService.php : 18
public getShippingAddress(int $id) : ShippingAddress

Parameters

Name Type Default value Description
$id int - -

Return values

ShippingAddress

publicnewShippingAddressCreateStruct()

ShippingAddressService.php : 53
public newShippingAddressCreateStruct() : ShippingAddressCreateStruct

Return values

ShippingAddressCreateStruct

publicnewShippingAddressUpdateStruct()

ShippingAddressService.php : 55
public newShippingAddressUpdateStruct() : ShippingAddressUpdateStruct

Return values

ShippingAddressUpdateStruct

publicupdateShippingAddress()

ShippingAddressService.php : 43
public updateShippingAddress(ShippingAddress $shippingAddress, ShippingAddressUpdateStruct $shippingAddressUpdateStruct[, array<string|int, string>|null $fieldIdentifiersToValidate = null ]) : ShippingAddress

Parameters

Name Type Default value Description
$shippingAddress ShippingAddress - -
$shippingAddressUpdateStruct ShippingAddressUpdateStruct - -
$fieldIdentifiersToValidate array<string|int, string>|null null -

Return values

ShippingAddress