/// <summary> /// Allow to get available package types. Represents 'getPackList' method of 'Common' model. /// Documentation: https://devcenter.novaposhta.ua/docs/services/55702570a0fe4f0cf4fc53ed/operations/582b1069a0fe4f0298618f06 /// </summary> /// <param name="height">Searching package type height. In millimeters.</param> /// <param name="length">Searching package type length. In millimeters.</param> /// <param name="width">Searching package type width. In millimeters.</param> /// <returns>Array of available package types</returns> public virtual IResponseEnvelope <GetPackageTypesResponse.PackageType> GetPackList(decimal?length = null, decimal?height = null, decimal?width = null) { var request = new GetPackageTypesRequest() { Length = length, Height = height, Width = width }; return(GetPackList(request)); }
/// <summary> /// Allow to get available package types. Represents 'getPackList' method of 'Common' model. /// Documentation: https://devcenter.novaposhta.ua/docs/services/55702570a0fe4f0cf4fc53ed/operations/582b1069a0fe4f0298618f06 /// </summary> /// <param name="getPackageTypesRequest">Get package types request</param> /// <returns>Array of available package types</returns> public virtual IResponseEnvelope <GetPackageTypesResponse.PackageType> GetPackList(GetPackageTypesRequest getPackageTypesRequest) { var request = new RequestEnvelope <GetPackageTypesRequest>(getPackageTypesRequest) { ApiKey = _novaPoshtaGateway.ApiKey, CalledMethod = "getPackList", ModelName = MODEL }; var response = _novaPoshtaGateway.CreateRequest <GetPackageTypesRequest, GetPackageTypesResponse>(request); return(response); }