Class PersonalDataService

Class PersonalDataService

PersonalDataService implements PersonalDataServiceInterface

Methods summary

public __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 )

PersonalDataService constructor.

public deletePersonalDataByCustomerId( IdType $customerId, PersonalDataSelection $selection )

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

public exportPersonalDataByCustomerId( IdType $customerId, PersonalDataSelection $selection ) : string

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

public setInvoiceArchiveReadService( InvoiceArchiveReadServiceInterface $invoiceArchiveReadService )
public setInvoiceArchiveWriteService( InvoiceArchiveWriteServiceInterface $invoiceArchiveWriteService )
public setPackingSlipService( PackingSlipServiceInterface $packingSlipService )
protected buildZipFile( StringType $customerHash, StringType $xmlString, ExistingFileCollection $invoices, ExistingFileCollection $packingSlips )
protected createCustomerDirectory( StringType $directoryPath )
protected createXmlFile( StringType $directoryPath, StringType $xmlString )
protected copyFilesToExport( StringType $directoryPath, ExistingFileCollection $files )
protected createZipFile( StringType $directoryPath, StringType $customerHash )
protected deleteOrdersByOrderList( OrderListItemCollection $orderList )
protected deleteInvoicesByCustomerId( IdType $customerId )
protected deletePackingSlipsByOrderList( OrderListItemCollection $orderList )
protected deleteEmailsByCustomerEmailAddress( CustomerEmail $customerEmail )
protected deleteWithdrawalsByOrderList( OrderListItemCollection $orderList )
protected deleteReviewsByCustomerId( IdType $customerId )
protected deleteShoppingCartsByCustomerId( IdType $customerId )
protected deleteSharedShoppingCartsByCustomerId( IdType $customerId )
protected deleteAddressesByCustomer( CustomerInterface $customer )
protected deleteCustomerById( IdType $customerId )
protected deleteAgreementsByCustomer( CustomerInterface $customer )
protected getCustomerById( IdType $customerId ) : Customer
protected getOrderListByCustomerId( IdType $customerId ) : OrderListItemCollection
protected getAddressesByCustomer( Customer $customer ) : array
protected getInvoicesByCustomerId( IdType $customerId ) : InvoiceListItemCollection
protected getWithdrawalsByOrderList( OrderListItemCollection $orderList ) : WithdrawalCollection
protected getAgreementsByCustomer( CustomerInterface $customer ) : AgreementCollection
protected getEmailsByCustomerEmailAddress( CustomerEmail $email ) : EmailCollection
protected getShoppingCartsByCustomerId( IdType $customerId ) : ShoppingCartCollection
protected getReviewsByCustomerId( IdType $customerId ) : ReviewCollection
protected getNewsletterSubscriptionByCustomerEmail( CustomerEmail $email ) : boolean|NewsletterSubscription

Properties summary