NAME

plenigo::CustomersManager - A utility class to handle customers.

SYNOPSIS

use plenigo::CustomersManager;

# Prepare configuration

my $activate_testing = 0;
my $configuration = plenigo::Configuration->new(company_id => 'YOUR_COMPANY_ID, secret => 'YOUR_SECRET', staging => $activate_testing);

# Instantiate customers manager

my $customers_manager = plenigo::CustomersManager->new(configuration => $configuration);

# Register a new external customer

my %customer_details = $customers_manager->registerCustomer('newuser@example.com', 'DE', '123456789', 'MALE', 'Mike', 'Miller', 0, 0);

# Change email address of an exiting customer

$customers_manager->editCustomer('CUSTOMER_ID', 'newmail@example.com')

DESCRIPTION

plenigo::CustomersManager provides functionality to manage customers.

registerCustomer($email, $language, $external_customer_id, $salutation, $first_name, $surname, $with_password_reset, $fail_by_existing_email)

Register a new customer in the plenigo system.

editCustomer($customer_id, $email)

Edit a customer in the plenigo system.