GetUserInfoDescriptionFor
Description
To buy certain products, end user information needs to be passed to the manufacturer. This method can be used to get description of the form to be filled out by user when buying products indicated in input parameters.
Parameters
Name | Type | Description |
langCode | string | Code of language to be used for description |
partNums | array of string | List of part numbers requiring a license form |
Return value
Sample requests and replies for GetUserInfoDescriptionFor
ATTENTION!
Parameter values are only used for demonstration purposes and cannot be used in a work request.
XmlOverHttp request
POST https://sandbox.mont.ru/Version2/Service/B2BServiceV2Xml.svc/GetUserInfoDescriptionFor
<?xml version="1.0" encoding="utf-8" ?>
<GetUserInfoDescriptionFor>
<langCode>RU</langCode>
<partNums>
<string>KL1849RDBFY</string>
<string>AOFPsng</string>
</partNums>
</GetUserInfoDescriptionFor>
XmlOverHttp reply
<?xml version="1.0" encoding="utf-8" ?>
<GetUserInfoDescriptionForResponse xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<GetUserInfoDescriptionForResult>
<Data>
<Descriptions>
<EndUserInfoDescriptionContract>
<FieldName>KasperskyPIN</FieldName>
<FieldTitle>Пин Касперского</FieldTitle>
<FieldDescription>Введите Пин Касперского</FieldDescription>
<RegExprs>^.{8,8}$</RegExprs>
<SmallRegExprs>^.*$</SmallRegExprs>
<AvaliableValues />
<ErrorText>Неправильно указан PIN</ErrorText>
<HasError>false</HasError>
<RelatedPartNums>
<string>KL1849RDBFY</string>
</RelatedPartNums>
<FieldType>1</FieldType>
<UserType>2</UserType>
<Required>true</Required>
<MinLength>8</MinLength>
<MaxLength>8</MaxLength>
</EndUserInfoDescriptionContract>
<EndUserInfoDescriptionContract>
<FieldName>CustomerOrganization</FieldName>
<FieldTitle>Компания</FieldTitle>
<FieldDescription>Введите компанию (если на юр. лицо)</FieldDescription>
<RegExprs>^.{1,255}$</RegExprs>
<SmallRegExprs>^.*$</SmallRegExprs>
<AvaliableValues />
<ErrorText>Длина не соответствует запрошенной</ErrorText>
<HasError>false</HasError>
<RelatedPartNums>
<string>KL1849RDBFY</string>
<string>AOFPsng</string>
</RelatedPartNums>
<FieldType>1</FieldType>
<UserType>1</UserType>
<Required>false</Required>
<MinLength>1</MinLength>
<MaxLength>255</MaxLength>
</EndUserInfoDescriptionContract>
<EndUserInfoDescriptionContract>
<FieldName>IsLegalPerson</FieldName>
<FieldTitle>Юридическое лицо</FieldTitle>
<FieldDescription>Юридическое лицо</FieldDescription>
<RegExprs>^(true)|(false)$</RegExprs>
<SmallRegExprs>^(true)|(false)$</SmallRegExprs>
<AvaliableValues />
<ErrorText />
<HasError>false</HasError>
<RelatedPartNums>
<string>KL1849RDBFY</string>
<string>AOFPsng</string>
</RelatedPartNums>
<FieldType>2</FieldType>
<UserType>1</UserType>
<Required>true</Required>
<MinLength>4</MinLength>
<MaxLength>5</MaxLength>
</EndUserInfoDescriptionContract>
<EndUserInfoDescriptionContract>
<FieldName>Email</FieldName>
<FieldTitle>Email</FieldTitle>
<FieldDescription>Введите email</FieldDescription>
<RegExprs>^([^@]*@[^@]*){1,128}$</RegExprs>
<SmallRegExprs>^([^@]*@[^@]*)$</SmallRegExprs>
<AvaliableValues />
<ErrorText>Укажите корректный Email</ErrorText>
<HasError>false</HasError>
<RelatedPartNums>
<string>KL1849RDBFY</string>
<string>AOFPsng</string>
</RelatedPartNums>
<FieldType>1</FieldType>
<UserType>1</UserType>
<Required>true</Required>
<MinLength>1</MinLength>
<MaxLength>128</MaxLength>
</EndUserInfoDescriptionContract>
<EndUserInfoDescriptionContract>
<FieldName>CustomerName</FieldName>
<FieldTitle>Имя</FieldTitle>
<FieldDescription>Введите имя</FieldDescription>
<RegExprs>^.{1,100}$</RegExprs>
<SmallRegExprs>^.*$</SmallRegExprs>
<AvaliableValues />
<ErrorText>Длина поля не соответствует запрошенной</ErrorText>
<HasError>false</HasError>
<RelatedPartNums>
<string>AOFPsng</string>
</RelatedPartNums>
<FieldType>1</FieldType>
<UserType>1</UserType>
<Required>true</Required>
<MinLength>1</MinLength>
<MaxLength>100</MaxLength>
</EndUserInfoDescriptionContract>
<EndUserInfoDescriptionContract>
<FieldName>CustomerLastName</FieldName>
<FieldTitle>Фамилия</FieldTitle>
<FieldDescription>Введите фамилию</FieldDescription>
<RegExprs>^.{1,30}$</RegExprs>
<SmallRegExprs>^.*$</SmallRegExprs>
<AvaliableValues />
<ErrorText>Длина поля не соответствует запрошенной</ErrorText>
<HasError>false</HasError>
<RelatedPartNums>
<string>AOFPsng</string>
</RelatedPartNums>
<FieldType>1</FieldType>
<UserType>1</UserType>
<Required>false</Required>
<MinLength>1</MinLength>
<MaxLength>30</MaxLength>
</EndUserInfoDescriptionContract>
</Descriptions>
</Data>
<IsError>false</IsError>
<ErrorCode>0</ErrorCode>
<Errors />
</GetUserInfoDescriptionForResult>
</GetUserInfoDescriptionForResponse>
SOAP request
https://sandbox.mont.ru/version2/service/B2BServiceV2.svc
<GetUserInfoDescriptionFor>
<MethodParameters>
<langCode>RU</langCode>
<partNums attr0="StringArray" isNull="false">
<StringArray0>KL1849RDBFY</StringArray0>
<StringArray1>AOFPsng</StringArray1>
</partNums>
</MethodParameters>
</GetUserInfoDescriptionFor>
SOAP reply
<GetUserInfoDescriptionFor>
<MethodParameters>
<WebStoreResponseContractOfEndUserInfoDescriptionListContract5knQ4_S11>
<Data>
<Descriptions attr0="EndUserInfoDescriptionContractArray" isNull="false">
<EndUserInfoDescriptionContractArray0>
<AvaliableValues attr0="StringArray" isNull="false" />
<ErrorText>Неправильно указан PIN</ErrorText>
<FieldDescription>Введите Пин Касперского</FieldDescription>
<FieldName>KasperskyPIN</FieldName>
<FieldTitle>Пин Касперского</FieldTitle>
<FieldType>1</FieldType>
<FieldsValue isNull="true" />
<HasError>False</HasError>
<MaxLength>8</MaxLength>
<MinLength>8</MinLength>
<RegExprs>^.{8,8}$</RegExprs>
<RelatedPartNums attr0="StringArray" isNull="false">
<StringArray0>KL1849RDBFY</StringArray0>
</RelatedPartNums>
<Required>True</Required>
<SmallRegExprs>^.*$</SmallRegExprs>
<UserType>2</UserType>
</EndUserInfoDescriptionContractArray0>
<EndUserInfoDescriptionContractArray1>
<AvaliableValues attr0="StringArray" isNull="false" />
<ErrorText>Поле заполнено неверно</ErrorText>
<FieldDescription>Не должно начинаться с пробела. Максимальная длина 50 символов. Допускаются английские и русские буквы, цифры и знаки: .,!?-</FieldDescription>
<FieldName>CustomerOrganization</FieldName>
<FieldTitle>Компания</FieldTitle>
<FieldType>1</FieldType>
<FieldsValue isNull="true" />
<HasError>False</HasError>
<MaxLength>255</MaxLength>
<MinLength>1</MinLength>
<RegExprs>^.{1,255}$</RegExprs>
<RelatedPartNums attr0="StringArray" isNull="false">
<StringArray0>KL1849RDBFY</StringArray0>
</RelatedPartNums>
<Required>False</Required>
<SmallRegExprs>^.*$</SmallRegExprs>
<UserType>1</UserType>
</EndUserInfoDescriptionContractArray1>
<EndUserInfoDescriptionContractArray2>
<AvaliableValues attr0="StringArray" isNull="false" />
<ErrorText isNull="false" />
<FieldDescription>Юридическое лицо</FieldDescription>
<FieldName>IsLegalPerson</FieldName>
<FieldTitle>Юридическое лицо</FieldTitle>
<FieldType>2</FieldType>
<FieldsValue isNull="true" />
<HasError>False</HasError>
<MaxLength>5</MaxLength>
<MinLength>4</MinLength>
<RegExprs>^(true)|(false)$</RegExprs>
<RelatedPartNums attr0="StringArray" isNull="false">
<StringArray0>KL1849RDBFY</StringArray0>
</RelatedPartNums>
<Required>True</Required>
<SmallRegExprs>^(true)|(false)$</SmallRegExprs>
<UserType>1</UserType>
</EndUserInfoDescriptionContractArray2>
<EndUserInfoDescriptionContractArray3>
<AvaliableValues attr0="StringArray" isNull="false" />
<ErrorText>Укажите корректный Email</ErrorText>
<FieldDescription>Должен присутствовать символ @. Максимальная длина поля 128 символов</FieldDescription>
<FieldName>Email</FieldName>
<FieldTitle>Email</FieldTitle>
<FieldType>1</FieldType>
<FieldsValue isNull="true" />
<HasError>False</HasError>
<MaxLength>128</MaxLength>
<MinLength>1</MinLength>
<RegExprs>^([^@]*@[^@]*){1,128}$</RegExprs>
<RelatedPartNums attr0="StringArray" isNull="false">
<StringArray0>KL1849RDBFY</StringArray0>
</RelatedPartNums>
<Required>True</Required>
<SmallRegExprs>^([^@]*@[^@]*)$</SmallRegExprs>
<UserType>1</UserType>
</EndUserInfoDescriptionContractArray3>
</Descriptions>
</Data>
<ErrorCode>0</ErrorCode>
<ErrorText isNull="true" />
<Errors attr0="ErrorContractArray" isNull="false" />
<IsError>False</IsError>
</WebStoreResponseContractOfEndUserInfoDescriptionListContract5knQ4_S11>
</MethodParameters>
</GetUserInfoDescriptionFor>