Documentation

UserMapper extends Mapper
in package

Table of Contents

Constants

BILLING_MAP  = ['firstname' => 'firstname', 'lastname' => 'lastname', 'email' => 'email', 'phone' => 'phone', 'phone_code' => 'phone_code', 'company_name' => 'name', 'company_zip' => 'zip', 'company_city' => 'city', 'company_state' => 'company_state', 'company_address_street' => 'company_address_street', 'company_address_house_number' => 'company_address_house_number', 'company_address_line_two' => 'company_address_line_two', 'company_country_id' => 'country', 'warehouse_country_id' => 'warehouse_country']
NOTIFICATION_MAP  = ['new_reports_available' => 'report_begin_mothly', 'threshold_almost_reached' => 'threshold_80_reached', 'threshold_is_reached' => 'threshold_reached', 'too_many_unread_notifications' => 'unread_notifications']

Methods

getBillingData()  : array<string|int, mixed>
getNotificationData()  : array<string|int, mixed>
mapper()  : mixed

Constants

BILLING_MAP

public mixed BILLING_MAP = ['firstname' => 'firstname', 'lastname' => 'lastname', 'email' => 'email', 'phone' => 'phone', 'phone_code' => 'phone_code', 'company_name' => 'name', 'company_zip' => 'zip', 'company_city' => 'city', 'company_state' => 'company_state', 'company_address_street' => 'company_address_street', 'company_address_house_number' => 'company_address_house_number', 'company_address_line_two' => 'company_address_line_two', 'company_country_id' => 'country', 'warehouse_country_id' => 'warehouse_country']

NOTIFICATION_MAP

public mixed NOTIFICATION_MAP = ['new_reports_available' => 'report_begin_mothly', 'threshold_almost_reached' => 'threshold_80_reached', 'threshold_is_reached' => 'threshold_reached', 'too_many_unread_notifications' => 'unread_notifications']

Methods

getBillingData()

public static getBillingData(Client $client) : array<string|int, mixed>
Parameters
$client : Client
Return values
array<string|int, mixed>

getNotificationData()

public static getNotificationData(User $user, NotificationSettings $notificationSettings) : array<string|int, mixed>
Parameters
$user : User
$notificationSettings : NotificationSettings
Return values
array<string|int, mixed>

mapper()

public static mapper(array<string|int, mixed> $map, array<string|int, mixed> $original[, bool $reverse = true ]) : mixed
Parameters
$map : array<string|int, mixed>
$original : array<string|int, mixed>
$reverse : bool = true

        
On this page

Search results