internal APIResponse(Invoicing_v2.Response response) { this.Type = (int)ResponseType.Success == response.Type ? ResponseType.Success : ResponseType.Error; this.RequestId = response.RequestId; this.ErrorHumanReadable = response.ErrorHumanReadable; if (response.ErrorValue != null) { this.ErrorValue = new ErrorType() { Name = response.ErrorValue.Name, Value = response.ErrorValue.Value }; } if (response.ValidationErrors != null && response.ValidationErrors.Any()) { this.ValidationErrors = response.ValidationErrors.Select(error => new ValidationError() { Detail = error.Detail, ElementNumber = error.ElementNumber, Field = error.Field, FieldName = error.FieldName, Type = error.Type }) .ToList(); } }
internal APIAddPartnerResponse(Invoicing_v2.Response response) : base(response) { }
internal APIGetPartnerAccessTokensResponse(Invoicing_v2.Response response) : base(response) { this.AccessTokens = new List <APIAccessTokenBase>(); }
internal APIDocumentGetResponse(Invoicing_v2.Response response) : base(response) { }