Package DE_EPAGES::Customer::API::CSV::CustomerImportHandler
This module implements a handler to export customer data to a CVS file. See DE_EPAGES::Customer::API::CSV::CustomerExportImport for usage examples.
Base |
DE_EPAGES::ShopCSVExportImport::API::CSV::ShopObjectImportHandler |
Functions
- addCountryIDToBillingAddress
- baseAttributeClassAlias
- deactivateEmails
- getCountryIDFromCSV
- getCountryIDFromDatabase
- getDefaultShopCountryID
- getUsedAttribute
- importSpecialData
- new
- saveBillingAddress
addCountryIDToBillingAddress
adds the coutry id to the billing address data hash
Syntax |
$self->addCountryIDToBillingAddress($Customer, \%BillingAddressData); |
Input |
|
Return |
|
baseAttributeClassAlias
return Base AttributeClass Alias, here : 'CustomerClass'
Syntax |
$self->baseAttributeClassAlias(); |
Return |
|
deactivateEmails
Setter and getter for the option to deativate emails when creating a customer
Syntax |
$self->deactivateEmails(); |
Input |
|
Return |
|
getCountryIDFromCSV
gets the country id from the csv value
Syntax |
$self->getCountryIDFromCSV($Customer, $CountryCodeFromCSV); |
Input |
|
Return |
|
getCountryIDFromDatabase
gets the country id from the database
Syntax |
$self->getCountryIDFromCSV($Customer); |
Input |
|
Return |
|
getDefaultShopCountryID
gets the default shop country id
Syntax |
$self->getDefaultShopCountryID(ahShopCountries); |
Input |
|
Return |
|
getUsedAttribute
return attribute info, called by analyzeHeaderLine throws Error 'UNKNOWN_ATTR' if $hHeader->{'AliasString'} isn't a key of $self->attributes call function testHeaderColumn before return $hAttribute
Syntax |
$self->getUsedAttribute($HeaderString, $ColumnIndex); |
Input |
|
Return |
|
importSpecialData
possibility to import special object data, called by importObject
Syntax |
$self->importSpecialData($Object, $hAttributeValues); |
Input |
|
new
create a new csv import handler
Syntax |
$Handler = DE_EPAGES::Customer::API::CSV::CustomerImportHandler->new(%options); |
Input |
|
Return |
|
saveBillingAddress
saves the billing address data on the customer
Syntax |
$self->saveBillingAddress($Customer, \%BillingAddressData); |
Input |
|
Return |
|