-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathIInventoryModuleClient.cs
27 lines (24 loc) · 1.14 KB
/
IInventoryModuleClient.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// MIT-License
// Copyright BridgingIT GmbH - All Rights Reserved
// Use of this source code is governed by an MIT-style license that can be
// found in the LICENSE file at https://github.com/bridgingit/bitdevkit/license
namespace BridgingIT.DevKit.Examples.BookFiesta.Modules.Inventory.Application;
using BridgingIT.DevKit.Common;
// using Refit
/// <summary>
/// Specifies the public API for this module that will be exposed to other modules
/// </summary>
public interface IInventoryModuleClient
{
/// <summary>
/// Retrieves the details of a stock based on the ID.
/// </summary>
/// <param name="tenantId"></param>
/// <param name="id">The unique identifier of the tenant stock.</param>
/// <returns>
/// A task representing the asynchronous operation. The task's result contains a <see cref="Result{T}" /> with the
/// stock details when successful; otherwise, an error result.
/// </returns>
// INFO incase the Inventory module is a seperate webservice use refit -> [Get("api/tenants/{tenantId}/inventory/stocks/{id}")]
public Task<Result<StockModel>> StockFindOne(string tenantId, string id);
}