Codeunit 247 VAT Lookup Quota Mgt.

Base Application, Microsoft.Finance.VAT.Registration

Source AL, 148 lines

src/Layers/W1/BaseApp/Finance/VAT/Registration/VATLookupQuotaMgt.Codeunit.allines 16 to 31 of 148, Copyright (c) Microsoft Corporation. MIT

codeunit 247 "VAT Lookup Quota Mgt."{    Access = Internal;    Permissions = TableData "VAT Reg. No. Lookup Quota" = rimd;    trigger OnRun()    begin        RegisterAndCheckQuota();    end;    var        DailyQuotaExceededErr: Label 'VAT registration number validation against the EU VIES service has reached the daily limit for this environment. Try again tomorrow, and avoid verifying VAT registration numbers in bulk.';        DailyQuotaReachedTxt: Label 'The daily EU VAT reg. no. validation limit was reached for this environment.', Locked = true;        SecurityAuditDailyQuotaExceededTxt: Label 'The EU VAT Registration No. validation service (VIES) daily lookup limit was reached for this environment; further lookups are blocked for the rest of the day.', Locked = true;        EUVATRegNoValidationServiceTok: Label 'EUVATRegNoValidationServiceTelemetryCategoryTok', Locked = true;        QuotaTestOverride: Boolean;

All 148 lines

Procedures 5

ProcedureVersions
internal SetVIESCallQuotaLimitForTest(MaxDailyCallCount: Integer)new in 29
internal InvokeVIESCallQuotaForTest()new in 29
internal SeedVIESCallQuotaForTest(WindowDate: Date; CallCount: Integer)new in 29
internal GetVIESCallCountForTest(): Integernew in 29
internal ClearVIESCallQuotaForTest()new in 29