WallBee.ProductFee.Admin
0.0.0.8
.NET Core 2.2
This package targets .NET Core 2.2. The package is compatible with this framework or higher.
.NET Standard 2.0
This package targets .NET Standard 2.0. The package is compatible with this framework or higher.
.NET Framework 4.5
This package targets .NET Framework 4.5. The package is compatible with this framework or higher.
dotnet add package WallBee.ProductFee.Admin --version 0.0.0.8
NuGet\Install-Package WallBee.ProductFee.Admin -Version 0.0.0.8
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="WallBee.ProductFee.Admin" Version="0.0.0.8" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add WallBee.ProductFee.Admin --version 0.0.0.8
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: WallBee.ProductFee.Admin, 0.0.0.8"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install WallBee.ProductFee.Admin as a Cake Addin #addin nuget:?package=WallBee.ProductFee.Admin&version=0.0.0.8 // Install WallBee.ProductFee.Admin as a Cake Tool #tool nuget:?package=WallBee.ProductFee.Admin&version=0.0.0.8
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Summary
Hub under active development. Functionality and documentation may change without notice.
Admin Hub provides programmatic access to several Wall Fee Api endpoints. This hub has eight different types of modules/services. Each service consists of one or more functions. All of the methods will return OperationResult
<TResult>
OperationResult<TResult>
- This is a class name which is a return type of all methods in each services.
- Class Structure
public Exception Exception { get; set; }
- Exception will be set if there is any exception occurred during the operation.
public HttpStatusCode Status { get; set; }
- Status will be either 202 (Accepted) or 503 (ServiceUnavailable)
public TResult Result { get; set; }
- Result will be set to required data values if operation is succeeded or set to either null or empty data type value if error occurred.
Admin Hub Modules
Namespace :
Admin.ProductFee.Hub
- Initialize Parameters :
new Carrier (Guid applicationId, string authToken, HttpClient httpClient);
- applicationId → Application Id of the current admin application. Value cannot be null or empty.
- authToken → Authentication token to get access to carrier endpoints. Value cannot be null or empty string.
- httpClient → Object of HttpClient. Admin has control over http client object. Value cannot be null.
- Modules
- Carrier
- Configuration
- Dangerous Goods
- Fee Types
- Price Line
- Product
- Return Services
Example : Return Services
Initialize :
new ReturnService (Guid applicationId, string authToken, HttpClient httpClient)
Available Methods
- public async Task<OperationResult<IList<ReturnServiceVM>>> All ()
- Gets all return services.
- Returns:
OperationResult
<IList<ReturnServiceV<>>
- public async Task<OperationResult<IList<ReturnServiceVM>>> Filter (ReturnServiceVM returnServiceVM)
- Gets filter return services as per the properties value set.
- Params :
ReturnServiceVM
- ReturnService view model has properties which will be used as filter params.
- Filter Properties : Name (string), CarrierId (int) and FeeTypeId (int).
- Returns :
OperationResult
<IList<ReturnServiceVM>>
- public async Task<OperationResult<ReturnServiceVM>> GetById (int id)
- Gets return service by return service id.
- Params :
id (int)
- ReturnService id (Primary key of ReturnService).
- Returns :
OperationResult
<ReturnService>
- public async Task<OperationResult<ReturnServiceVM>> GetForUpdate (int id)
- Gets return service by return service id for update operation.
- Params :
id (int)
- ReturnService id (Primary key of ReturnService).
- Returns :
OperationResult
<ReturnService>
- public async Task<OperationResult<ReturnServiceVM>> GetForDelete (int id)
- Gets return service by return service id for delete opeeartion.
- Params :
id (int)
- ReturnService id (Primary key of ReturnService).
- Returns :
OperationResult
<ReturnService>
- public async Task<OperationResult<ReturnServiceVM>> GetForRestore (int id)
- Gets return service by return service id for restore operation
- Params :
id (int)
- ReturnService id (Primary key of ReturnService).
- Returns :
OperationResult
<ReturnService>
- public async Task<OperationResult<int>> Insert (ReturnServiceVM returnServiceVM)
- Inserts return service using api with provided return service view model.
- Params :
ReturnServiceVM
- Returns :
OperationResult
<int>- OperationResult with result representing integer with either greater than 0 when success or less than 0 or 0 when failure.
- public async Task<OperationResult<int>> Update (ReturnServiceVM returnServiceVM)
- Updates return service using pai with provided return service view model.
- Params :
ReturnServiceVM
- Returns :
OperationResult
<int>- OperationResult with result representing integer with either greater than 0 when success or less than 0 or 0 when failure.
- public async Task<OperationResult<int>> Delete (int returnServiceId)
- Deletes return service using api with provided return service id. Delete operation will update DataStaus to Delete (3).
- Params :
returnServiceId (int)
- Returns :
OperationResult
<int>- OperationResult with result representing integer with either greater than 0 when success or less than 0 or 0 when failure.
- public async Task<OperationResult<int>> Restore (int returnServiceId)
- Restores return service using api with provied return service id. Restore operation will update DataStatus from Delete (3) to Restore (4).
- Params :
returnServiceId (int)
- Returns :
OperationResult
<int>- OperationResult with result representing integer with either greater than 0 when success or less than 0 or 0 when failure.
- public async Task<OperationResult<IList<ReturnServiceVM>>> ReadFromCSV (FileStream content)
- Reads data content from the filestream requested.
- Params :
FileStream
- Filestream has the information of the file posted.
- Returns :
OperationResult
<IList<ReturnServiceVM>>
- public async Task<OperationResult<IList<ReturnServiceVM>>> CheckReturnServices (IList<ReturnServiceVM> returnServices)
- Checks collection of return services and confirms which already exists and new.
- Params :
IList
<ReturnServiceVM>- List of return service view model.
- Returns :
OperationResult
<int>- OperationResult with result representing integer with either greater than 0 when success or less than 0 or 0 when failure.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 is compatible. netcoreapp3.0 was computed. netcoreapp3.1 is compatible. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net45 is compatible. net451 was computed. net452 was computed. net46 is compatible. net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
- Microsoft.CSharp (>= 4.7.0)
- Newtonsoft.Json (>= 12.0.3)
- System.Net.Http (>= 4.3.4)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.