Class PersonalDataService
package |
Default |
---|
__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)
\OrderReadServiceInterface
\OrderWriteServiceInterface
\CustomerReadService
\CustomerService
\EmailServiceInterface
\WithdrawalReadServiceInterface
\WithdrawalWriteServiceInterface
\ReviewReadServiceInterface
\ReviewWriteServiceInterface
\ShoppingCartServiceInterface
\SharedShoppingCartServiceInterface
\NewsletterSubscriptionServiceInterface
\AddressBookService
\AgreementWriteServiceInterface
\AgreementReadServiceInterface
\PersonalDataInvoiceFileStorageInterface
\PersonalDataPackingSlipFileStorageInterface
\PersonalDataServiceSettingsInterface
\PersonalDataXmlSerializer
buildZipFile(\StringType $customerHash, \StringType $xmlString, \ExistingFileCollection $invoices, \ExistingFileCollection $packingSlips)
Throws |
|
---|
\StringType
\StringType
\ExistingFileCollection
\ExistingFileCollection
copyFilesToExport(\StringType $directoryPath, \ExistingFileCollection $files)
createCustomerDirectory(\StringType $directoryPath)
createXmlFile(\StringType $directoryPath, \StringType $xmlString)
createZipFile(\StringType $directoryPath, \StringType $customerHash)
deleteAddressesByCustomer(\CustomerInterface $customer)
deleteAgreementsByCustomer(\CustomerInterface $customer)
deleteEmailsByCustomerEmailAddress(\CustomerEmail $customerEmail)
deleteInvoicesByCustomerId(\IdType $customerId)
deleteNewsletterSubscriptionByCustomerEmail(\CustomerEmailInterface $email)
deleteOrdersByOrderList(\OrderListItemCollection $orderList)
deletePackingSlipsByOrderList(\OrderListItemCollection $orderList)
deletePersonalDataByCustomerId(\IdType $customerId, \PersonalDataSelection $selection)
deleteReviewsByCustomerId(\IdType $customerId)
deleteSharedShoppingCartsByCustomerId(\IdType $customerId)
deleteShoppingCartsByCustomerId(\IdType $customerId)
deleteWithdrawalsByOrderList(\OrderListItemCollection $orderList)
exportPersonalDataByCustomerId(\IdType $customerId, \PersonalDataSelection $selection) : string
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 |
|
---|
\IdType
string
.
getAddressesByCustomer(\Customer $customer) : array
getAgreementsByCustomer(\CustomerInterface $customer) : \AgreementCollection
getCustomerById(\IdType $customerId) : \Customer
getEmailsByCustomerEmailAddress(\CustomerEmail $email) : \EmailCollection
getInvoicesByCustomerId(\IdType $customerId) : \InvoiceListItemCollection
getNewsletterSubscriptionByCustomerEmail(\CustomerEmail $email) : boolean|\NewsletterSubscription
getOrderListByCustomerId(\IdType $customerId) : \OrderListItemCollection
getOrdersByOrderList(\OrderListItemCollection $orderList)
getPackingSlipsByOrderList(\OrderListItemCollection $orders) : \PackingSlipCollection
getReviewsByCustomerId(\IdType $customerId) : \ReviewCollection
getSharedShoppingCartsByCustomerId(\IdType $customerId) : \SharedShoppingCartCollection
getShoppingCartsByCustomerId(\IdType $customerId) : \ShoppingCartCollection
getWithdrawalsByOrderList(\OrderListItemCollection $orderList) : \WithdrawalCollection
setInvoiceArchiveReadService(\InvoiceArchiveReadServiceInterface $invoiceArchiveReadService)
setInvoiceArchiveWriteService(\InvoiceArchiveWriteServiceInterface $invoiceArchiveWriteService)
setPackingSlipService(\PackingSlipServiceInterface $packingSlipService)
orderReadService : \OrderReadServiceInterface
orderWriteService : \OrderWriteServiceInterface
invoiceArchiveReadService : \InvoiceArchiveReadServiceInterface
invoiceArchiveWriteService : \InvoiceArchiveWriteServiceInterface
packingSlipService : \PackingSlipServiceInterface
customerReadService : \CustomerReadServiceInterface
withdrawalReadService : \WithdrawalReadServiceInterface
withdrawalWriteService : \WithdrawalWriteServiceInterface
reviewReadService : \ReviewReadServiceInterface
reviewWriteService : \ReviewWriteServiceInterface
shoppingCartService : \ShoppingCartServiceInterface
sharedShoppingCartService : \SharedShoppingCartServiceInterface
agreementWriteService : \AgreementWriteServiceInterface
agreementReadService : \AgreementReadServiceInterface
invoiceFileStorage : \PersonalDataInvoiceFileStorageInterface
packingSlipFileStorage : \PersonalDataPackingSlipFileStorageInterface
serviceSettings : \PersonalDataServiceSettingsInterface