PersonalDataService

Implements \PersonalDataServiceInterface

Class PersonalDataService

package

Default

Methods

PersonalDataService constructor.

__construct(\OrderReadServiceInterface $orderReadService, \OrderWriteServiceInterface $orderWriteService, \CustomerReadService $customerReadService, \CustomerService $customerService, \EmailServiceInterface $emailService, \WithdrawalReadServiceInterface $withdrawalReadService, \WithdrawalWriteServiceInterface $withdrawalWriteService, \ReviewReadServiceInterface $reviewReadService, \ReviewWriteServiceInterface $reviewWriteService, \ShoppingCartServiceInterface $shoppingCartService, \SharedShoppingCartServiceInterface $sharedShoppingCartService, \NewsletterSubscriptionServiceInterface $newsletterSubscriptionService, \AddressBookService $addressBookService, \AgreementWriteServiceInterface $agreementWriteService, \AgreementReadServiceInterface $agreementReadService, \PersonalDataInvoiceFileStorageInterface $invoiceFileStorage, \PersonalDataPackingSlipFileStorageInterface $packingSlipFileStorage, \PersonalDataServiceSettingsInterface $serviceSettings, \PersonalDataXmlSerializer $xmlSerializer) 

Arguments

$orderReadService

\OrderReadServiceInterface

$orderWriteService

\OrderWriteServiceInterface

$customerReadService

\CustomerReadService

$customerService

\CustomerService

$emailService

\EmailServiceInterface

$withdrawalReadService

\WithdrawalReadServiceInterface

$withdrawalWriteService

\WithdrawalWriteServiceInterface

$reviewReadService

\ReviewReadServiceInterface

$reviewWriteService

\ReviewWriteServiceInterface

$shoppingCartService

\ShoppingCartServiceInterface

$sharedShoppingCartService

\SharedShoppingCartServiceInterface

$newsletterSubscriptionService

\NewsletterSubscriptionServiceInterface

$addressBookService

\AddressBookService

$agreementWriteService

\AgreementWriteServiceInterface

$agreementReadService

\AgreementReadServiceInterface

Deletes all data for a given customer. The following personal data will be deleted:

deletePersonalDataByCustomerId(\IdType $customerId, \PersonalDataSelection $selection) 
  • base data
  • addresses
  • orders
  • invoices
  • packing slips
  • withdrawals
  • agreements
  • emails
  • shopping carts
  • shared shopping carts
  • reviews
  • newsletter subscriptions

Arguments

$customerId

\IdType

Customer ID

$selection

\PersonalDataSelection

Personal data selection

Exports all personal data of a given customer as XML including the following data:

exportPersonalDataByCustomerId(\IdType $customerId, \PersonalDataSelection $selection) : string
  • base data
  • addresses
  • orders
  • invoices
  • packing slips
  • withdrawals
  • agreements
  • emails
  • shopping carts
  • shared shopping carts
  • reviews
  • newsletter subscriptions

The XML file and all invoices and packing slips of the customer are compressed to a ZIP file. The path to the ZIP file is then returned.

Throws
\InvalidArgumentException

Arguments

$customerId

\IdType

$selection

\PersonalDataSelection

Personal data selection

Response

string

.

setInvoiceArchiveReadService

setInvoiceArchiveReadService(\InvoiceArchiveReadServiceInterface $invoiceArchiveReadService) 

Arguments

$invoiceArchiveReadService

\InvoiceArchiveReadServiceInterface

setInvoiceArchiveWriteService

setInvoiceArchiveWriteService(\InvoiceArchiveWriteServiceInterface $invoiceArchiveWriteService) 

Arguments

$invoiceArchiveWriteService

\InvoiceArchiveWriteServiceInterface

setPackingSlipService

setPackingSlipService(\PackingSlipServiceInterface $packingSlipService) 

Arguments

$packingSlipService

\PackingSlipServiceInterface

Properties