Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[E-Document Connector] SignUp E-Document Connector #27261

Open
wants to merge 51 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
d70b100
EDocument Connector SignUp
Sep 16, 2024
758acd2
Change obsolete field reference
Sep 17, 2024
013d1a7
Use IsSaaSInfrastructure to make fields visible if not in SaaS Sandbo…
Sep 17, 2024
5d3ad67
Push forward object id range by 10 due to Avalara addition
Sep 17, 2024
74c785b
Menu item Open Onboarding only available in SaaS
Sep 17, 2024
1042f9f
Change permission structure. Correct spelling. Adjust broken file ending
Sep 18, 2024
69453b6
Change to using instead of full namespace path
Sep 19, 2024
ebdb725
Refactor (MS) - Prefix Removal, Error Raise on Missing Config, Parame…
Sep 20, 2024
9eb3704
Resolve Build Conflict in GitHub - Rename
Sep 24, 2024
94266e2
Resolve Build Conflict in GitHub - Refactor Codeunit Processing
Sep 24, 2024
f9c4dc2
Merge branch 'microsoft:main' into edocumentconnector
geschwint Sep 25, 2024
def7176
Relocate To Own App - Move Files
Sep 25, 2024
9e817ea
Merge branch 'microsoft:main' into edocumentconnector
geschwint Sep 25, 2024
cd8da89
Merge branch 'edocumentconnector' of https://github.com/geschwint/ALA…
Sep 25, 2024
3811370
Refactor - Rename Files
Sep 25, 2024
17944a2
Refactor - Add app.json
Sep 25, 2024
6cdeaea
Refactor - Restore Original Objects
Sep 25, 2024
4382237
Refactor - Rename Processing
Sep 25, 2024
7bd134c
Refactor - Permission Extensions, Object Rename
Sep 25, 2024
42b9a11
Refactor - References to Processing
Sep 25, 2024
6480969
Refactor - Restore app.json
Sep 25, 2024
d7ecea8
Refactor - Missed a spot in restoring original
Sep 25, 2024
f6bc5f9
Merge branch 'microsoft:main' into edocumentconnector
geschwint Sep 25, 2024
f39fb47
Refactor - Missing Logo
Sep 26, 2024
a8c22c7
Refactor - Exit return value
Sep 27, 2024
e11508a
Refactor - Move UriTemplates to Global
Sep 27, 2024
bfca640
Refactor - Eliminate unneeded calls
Sep 27, 2024
1e24593
Refactor - Error when unsupported EDocument Type
Sep 27, 2024
8027450
Refactor - To use ErrorInfo
Sep 27, 2024
cdc94a6
Merge branch 'microsoft:main' into edocumentconnector
geschwint Sep 27, 2024
8bd90ac
Refactor - Move local labels to global
Sep 27, 2024
896cbe8
Refactor - No need for Retry
Sep 27, 2024
a12493f
Refactor - Make labels Global
Sep 27, 2024
ea3a35e
Refactor - Remove labels, API path inline the Avalara way
Sep 27, 2024
e991757
Refactor - Correct Telemetry Token
Sep 30, 2024
a8c547d
Refactor - Fix bug introduced during refactoring, Rename procedure to…
Oct 1, 2024
594e897
Merge branch 'microsoft:main' into edocumentconnector
geschwint Oct 1, 2024
960da63
Merge branch 'microsoft:main' into edocumentconnector
geschwint Oct 23, 2024
ab0e875
Merge branch 'microsoft:main' into edocumentconnector
geschwint Oct 28, 2024
2ebc70d
Refactor Rename
geschwint Oct 28, 2024
7166b24
Refactor Delete Objects
geschwint Oct 28, 2024
fb7b4c8
Refactor New Objects
geschwint Oct 28, 2024
103aaa8
Refactor General Overhaul
geschwint Oct 28, 2024
b7fa7a9
Merge branch 'microsoft:main' into edocumentconnector
geschwint Oct 28, 2024
e599f8b
Merge branch 'edocumentconnector' of https://github.com/geschwint/ALA…
geschwint Oct 28, 2024
9a526ee
Merge branch 'microsoft:main' into edocumentconnector
geschwint Oct 29, 2024
cde490a
Merge branch 'microsoft:main' into edocumentconnector
geschwint Nov 1, 2024
c802756
Merge branch 'microsoft:main' into edocumentconnector
geschwint Nov 5, 2024
89cc82e
Merge branch 'microsoft:main' into edocumentconnector
geschwint Nov 13, 2024
ad78511
Merge branch 'microsoft:main' into edocumentconnector
geschwint Nov 20, 2024
e26eb31
Merge branch 'microsoft:main' into edocumentconnector
geschwint Nov 20, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
47 changes: 47 additions & 0 deletions Apps/W1/EDocumentConnectors/SignUp/app/app.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{
"id": "b56171bd-9a8e-47ad-a527-99f476d5af83",
"name": "E-Document Connector - SignUp",
"publisher": "Microsoft",
"brief": "E-Document Connector - SignUp",
"description": "E-Document Connector - SignUp",
"version": "26.0.0.0",
"privacyStatement": "https://go.microsoft.com/fwlink/?LinkId=724009",
"EULA": "https://go.microsoft.com/fwlink/?linkid=2009120",
"help": "https://go.microsoft.com/fwlink/?linkid=2204541",
"url": "https://go.microsoft.com/fwlink/?LinkId=724011",
"logo": "ExtensionLogo.png",
"contextSensitiveHelpUrl": "https://go.microsoft.com/fwlink/?linkid=2206603",
"dependencies": [
{
"id": "e1d97edc-c239-46b4-8d84-6368bdf67c8b",
"name": "E-Document Core",
"publisher": "Microsoft",
"version": "26.0.0.0"
},
{
"id": "d852a468-263e-49e5-bfda-f09e33342b89",
"name": "E-Documents Connector with External Endpoints",
"publisher": "Microsoft",
"version": "26.0.0.0"
}
],
"internalsVisibleTo": [],
"screenshots": [],
"platform": "26.0.0.0",
"idRanges": [
{
"from": 6380,
"to": 6389
}
],
"resourceExposurePolicy": {
"allowDebugging": true,
"allowDownloadingSource": true,
"includeSourceInSymbolFile": true
},
"application": "26.0.0.0",
"target": "OnPrem",
"features": [
"TranslationFile"
]
}
110 changes: 110 additions & 0 deletions Apps/W1/EDocumentConnectors/SignUp/app/src/APIRequests.Codeunit.al
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
// ------------------------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// ------------------------------------------------------------------------------------------------
namespace Microsoft.EServices.EDocumentConnector.SignUp;

using Microsoft.EServices.EDocument;
using System.Utilities;


codeunit 6380 APIRequests
{
Access = Internal;

var
APIRequestsImpl: Codeunit APIRequestsImpl;

#region public methods

/// <summary>
/// The method sends a file to the API.
/// https://[BASEURL]/api/Peppol
/// </summary>
/// <param name="TempBlob">TempBlob</param>
/// <param name="EDocument">EDocument table</param>
/// <param name="HttpRequestMessage">Http Request Message</param>
/// <param name="HttpResponseMessage">Http Response Message</param>
/// <returns>True if successfully completed</returns>
procedure SendFilePostRequest(var TempBlob: Codeunit "Temp Blob"; EDocument: Record "E-Document"; var HttpRequestMessage: HttpRequestMessage; var HttpResponseMessage: HttpResponseMessage): Boolean
begin
exit(this.APIRequestsImpl.SendFilePostRequest(TempBlob, EDocument, HttpRequestMessage, HttpResponseMessage));
end;

/// <summary>
/// The method checks the status of the sent document.
/// https://[BASE URL]/api/Peppol/status?peppolInstanceId=
/// </summary>
/// <param name="EDocument">EDocument table</param>
/// <param name="HttpRequestMessage">Http Request Message</param>
/// <param name="HttpResponseMessage">Http Response Message</param>
/// <returns>True if successfully completed</returns>
procedure GetSentDocumentStatus(EDocument: Record "E-Document"; var HttpRequestMessage: HttpRequestMessage; var HttpResponseMessage: HttpResponseMessage): Boolean
begin
exit(this.APIRequestsImpl.GetSentDocumentStatus(EDocument, HttpRequestMessage, HttpResponseMessage));
end;

/// <summary>
/// The method modifies the document.
/// https://[BASE URL]/api/Peppol/outbox?peppolInstanceId=
/// </summary>
/// <param name="EDocument">EDocument table</param>
/// <param name="HttpRequestMessage">Http Request Message</param>
/// <param name="HttpResponseMessage">Http Response Message</param>
/// <returns>True if successfully completed</returns>
procedure PatchDocument(EDocument: Record "E-Document"; var HttpRequestMessage: HttpRequestMessage; var HttpResponseMessage: HttpResponseMessage): Boolean
begin
exit(this.APIRequestsImpl.PatchDocument(EDocument, HttpRequestMessage, HttpResponseMessage));
end;

/// <summary>
/// The method gets the received document request.
/// https://[BASE URL]/api/Peppol/Inbox?peppolId=
/// </summary>
/// <param name="HttpRequestMessage">Http Request Message</param>
/// <param name="HttpResponseMessage">Http Response Message</param>
/// <returns>True if successfully completed</returns>
procedure GetReceivedDocumentsRequest(var HttpRequestMessage: HttpRequestMessage; var HttpResponseMessage: HttpResponseMessage): Boolean
begin
exit(this.APIRequestsImpl.GetReceivedDocumentsRequest(HttpRequestMessage, HttpResponseMessage));
end;

/// <summary>
/// The method gets the target document request.
/// https://[BASE URL]/api/Peppol/inbox-document?peppolId=
/// </summary>
/// <param name="DocumentId">Document ID</param>
/// <param name="HttpRequestMessage">Http Request Message</param>
/// <param name="HttpResponseMessage">Http Response Message</param>
/// <returns>True if successfully completed</returns>
procedure GetTargetDocumentRequest(DocumentId: Text; var HttpRequestMessage: HttpRequestMessage; var HttpResponseMessage: HttpResponseMessage): Boolean
begin
exit(this.APIRequestsImpl.GetTargetDocumentRequest(DocumentId, HttpRequestMessage, HttpResponseMessage));
end;

/// <summary>
/// The method modifies the received document.
/// // https://[BASE URL]/api/Peppol/inbox?peppolInstanceId=
/// </summary>
/// <param name="EDocument">EDocument table</param>
/// <param name="HttpRequestMessage">Http Request Message</param>
/// <param name="HttpResponseMessage">Http Response Message</param>
/// <returns>True if successfully completed</returns>
procedure PatchReceivedDocument(EDocument: Record "E-Document"; var HttpRequestMessage: HttpRequestMessage; var HttpResponseMessage: HttpResponseMessage): Boolean
begin
exit(this.APIRequestsImpl.PatchReceivedDocument(EDocument, HttpRequestMessage, HttpResponseMessage));
end;

/// <summary>
/// The method gets the marketplace credentials.
/// </summary>
/// <param name="HttpRequestMessage">Http Request Message</param>
/// <param name="HttpResponseMessage">Http Response Message</param>
/// <returns>True if successfully completed</returns>
procedure GetMarketPlaceCredentials(var HttpRequestMessage: HttpRequestMessage; var HttpResponseMessage: HttpResponseMessage): Boolean
begin
exit(this.APIRequestsImpl.GetMarketPlaceCredentials(HttpRequestMessage, HttpResponseMessage));
end;

#endregion
}
Loading
Loading