Kernel::WebApp::Controller::API::Agent::Customer::Role::HandlesCreateUpdateAction

NAME

Kernel::WebApp::Controller::API::Agent::Customer::Role::HandlesCreateUpdateAction – Provides a role for creating/updating customer companies + customer users.

PUBLIC INTERFACE

around CustomErrorResponses

requires Fields

Holds the fields which are used for building the validation schema.

requires _BuildIsCaseSensitiveSource

Holds the information if the current used data source is read-only.

has IsCaseSensitiveSource

Attribute that holds if the current data source is configured as case sensitive.

BuildValidationJSONBodyFields()

Builds the schema for the validation json body fields schema.

    my %ValidationFields = $Self->BuildValidationJSONBodyFields();

Returns a hash containing all fields which needs to be validated.

DynamicFieldSet()

Sets dynamic fields for customer companies or customer users.

    my $True = $Self->DynamicFieldSet(
        DynamicFields => {
            FieldName1 => 'Value1',
            FieldName2 => 'Value2',
        },
        ObjectType => 'CustomerCompany',
        ObjectName => 'CustomerABCDEF',
    );

GetCaseSensitiveValue()

Returns the given value (must be case-sensitive) in dependency to the current data source configuration.

Scroll to Top