Codeunit 30339 Shpfy Mtfld Type Integer

Shopify Connector, Microsoft.Integration.Shopify

src/Apps/W1/Shopify/App/src/Metafields/Codeunits/IMetafieldType/ShpfyMtfldTypeInteger.Codeunit.al42 lines, Copyright (c) Microsoft Corporation. MIT

// ------------------------------------------------------------------------------------------------// Copyright (c) Microsoft Corporation. All rights reserved.// Licensed under the MIT License. See License.txt in the project root for license information.// ------------------------------------------------------------------------------------------------namespace Microsoft.Integration.Shopify;codeunit 30339 "Shpfy Mtfld Type Integer" implements "Shpfy IMetafield Type"{    procedure HasAssistEdit(): Boolean    begin        exit(false);    end;    procedure IsValidValue(Value: Text): Boolean    var        DummyInteger: BigInteger;        MinInt: BigInteger;        MaxInt: BigInteger;    begin        if not Evaluate(DummyInteger, Value, 9) then            exit(false);        Evaluate(MinInt, '-9007199254740991', 9);        Evaluate(MaxInt, '9007199254740991', 9);        if (DummyInteger < MinInt) or (DummyInteger > MaxInt) then            exit(false);        exit(true);    end;    procedure AssistEdit(var Value: Text[2048]): Boolean    begin        Value := Value;        exit(false);    end;    procedure GetExampleValue(): Text    begin        exit('123');    end;}