GuiStracini.Mandae 8.0.560

There is a newer version of this package available.
See the version list below for details.
dotnet add package GuiStracini.Mandae --version 8.0.560                
NuGet\Install-Package GuiStracini.Mandae -Version 8.0.560                
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="GuiStracini.Mandae" Version="8.0.560" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add GuiStracini.Mandae --version 8.0.560                
#r "nuget: GuiStracini.Mandae, 8.0.560"                
#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 GuiStracini.Mandae as a Cake Addin
#addin nuget:?package=GuiStracini.Mandae&version=8.0.560

// Install GuiStracini.Mandae as a Cake Tool
#tool nuget:?package=GuiStracini.Mandae&version=8.0.560                

Mandaê SDK .NET

🇧🇷🚚 Mandaê API .NET client wrapper

Para a versão em português, por favor siga me.

GitHub license Time tracker GitHub issues by-label

Mandae logo

This is an unofficial client for the Mandaê API V2


CI/CD

Build status Last commit Tests Coverage Code Smells LoC
Build status GitHub last commit AppVeyor tests (branch) Coverage Code Smells Lines of Code

Code Quality (main branch)

Codacy Badge Codacy Badge

codecov CodeFactor

Maintainability Test Coverage

Quality Gate Status Maintainability Rating

Technical Debt Duplicated Lines (%)

Reliability Rating Security Rating

Bugs Vulnerabilities

DeepSource


Installation

Github Releases

GitHub last release Github All Releases

Download the latest zip file from the Release page.

Nuget package manager

Package Version Downloads
GuiStracini.Mandae GuiStracini.Mandae NuGet Version GuiStracini.Mandae NuGet Downloads

Features

This client supports the following operations/features of the API:

  1. Get rates for a delivery (postal code and package dimensions)
  2. Schedule a collect (register a collect in the customer distribution centre with one or more packages. Each package can have one or more items/SKU)
  3. Get tracking data of a shipment (Get all tracking data available from one package - tracking code is set by the customer or provided by webhook)
  4. WebHooks schema ready (The webhooks models, ready for implementation)
  5. Experimental Querying orders (API V1 - non-public API)
  6. Experimental Querying occurrences (API V1 - non-public API). Issue #1 GitHub labels
  7. Experimental Querying reverses (API V1 - non-public API). Issue #2 GitHub labels
  8. Experimental Request reverse (API V1 - non-public API). Issue #3 GitHub labels

Usage

Setup the MandaeClient

Initializes a new instance of MandaeClient class.

Example:

//Request your API token to ti@mandae.com.br 
//Each environment has its own API token!
var apiToken = "my API token";

//Call the constructor with the API token and the API environment (SANDBOX | PRODUCTION).
//var client = new MandaeClient(apiToken); //<= Environment.SANDBOX is the default environment.
var client = new MandaeClient(apiToken, Environment.PRODUCTION);

Get rates for a package/delivery

Get the rates (Rápido & Econômico) values and delivery time for a specified postal code and package dimensions.

Example:

//The MandaeClient
var client = new MandaeClient("my API token");

//The RatesModel
var delivery = new RatesModel {
    PostalCode = "22041080",
    ...
}
var rates = client.GetRates(delivery);
var fast = rates.ShippingServices.Single(s => s.Name == "Rápido");
var economic = rates.ShippingServices.Single(s => s.Name == "Econômico");
var option = ShippingService.ECONOMICO;
if(fast.Price < economic.Price)
    option = ShippingService.RAPIDO;

//The OrderModel (order collect request model)
var order = new OrderModel { ... };
order.Items = new [] {
    new NewItem 
    {
        ....
        ShippingService = option
    }
};
var order = client.RegisterOrderCollectRequest(order);

Schedule a collect request

Schedule a collect request (pickup in a distribution center/origin location).

Inform which type of Vehicle, when, which rate (Rapido | Economico) and the order items (a.k.a packages or clients orders).

Each package means an order/volume, that can have one or more items (SKUs).

Example:

//The MandaeClient
var client = new MandaeClient("my API token");

//The OrderModel (order collect request model)
var order = new OrderModel { ... };
order.Items = new [] {
    new NewItem 
    {
        ....
        ShippingService = option
    }
};

//Makes the request
var order = client.RegisterOrderCollectRequest(order);
**
//order.Id is the id for further use (maybe cancel the request ?)

Get tracking of a package

Example:

//The MandaeClient
var client = new MandaeClient("my API token");

//The tracking identifier (Generated by the Mandae or sent by the order collection request
var trackingId = "MyCompany-00001";
var tracking = client.GetTracking(tracking);
//tracking.CarrierName;
//tracking.CarrierCode;
//tracking.Events;

Querying orders (API V1 - Search) EXPERIMENTAL/NON-PUBLIC API

For the V1 you'll need to use the e-mail/password combination of the Mandaê panel to log in V1 API.

Example:

//The MandaeClient
var client = new MandaeClient("V2 API token");
client.ConfigureV1Authentication("myEmail@example.com", "password");
var trackingCode = "XYZ000001";//The tracking code of some order
var result = client.Search(SearchMethod.TRACKING_CODE, trackingCode);
if(result.Total == 1)
    Console.WriteLine(result.Orders.Single().SituationDescription);    

Release notes

  • Release v6.0.0 and higher DEPRECATED methods: Get Latest Order
  • Release v5.0.0 and higher DEPRECATED methods: Large Request, Cancel Request, Cancel Item Request
  • Release v3.0.0 and higher changes the V1 authentication method. Now use your e-mail/password of the Mandaê panel to log in to the V1 API.
  • Release v1.4.1 and higher also includes an experimental (non-public) V1 endpoint for search/querying orders (the same interface as available through the Mandaê administration panel).

Warning

The API V1 is not officially public, so there is no warranty that it will still be working


Product 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 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 is compatible. 
.NET Framework 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.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
8.0.640 54 9/10/2024
8.0.629 72 9/3/2024
8.0.623 62 8/29/2024
8.0.616 62 8/29/2024
8.0.613 72 8/29/2024
8.0.606 62 8/28/2024
8.0.599 76 8/27/2024
8.0.594 79 8/26/2024
8.0.591 72 8/26/2024
8.0.586 74 8/26/2024
8.0.581 67 8/26/2024
8.0.566 93 8/19/2024
8.0.563 83 8/12/2024
8.0.560 51 7/29/2024
8.0.557 76 7/22/2024
8.0.549 73 7/16/2024
8.0.546 73 7/16/2024
8.0.541 71 7/16/2024
8.0.532 74 7/16/2024
8.0.529 72 7/16/2024
8.0.501 99 6/19/2024
8.0.500 96 6/18/2024
8.0.498 95 6/18/2024
8.0.492 81 6/3/2024
8.0.489 76 6/3/2024
8.0.484 71 5/28/2024
8.0.481 80 5/28/2024
8.0.476 91 5/28/2024
8.0.469 80 5/28/2024
8.0.460 64 5/20/2024
8.0.457 63 5/15/2024
8.0.442 83 4/29/2024
8.0.439 77 4/29/2024
8.0.434 82 4/29/2024
8.0.427 74 4/29/2024
8.0.418 92 4/22/2024
8.0.415 69 4/22/2024
8.0.410 86 4/22/2024
8.0.403 113 4/15/2024
8.0.400 105 4/15/2024
8.0.395 105 4/15/2024
8.0.388 95 4/15/2024
8.0.379 124 4/8/2024
8.0.376 107 4/8/2024
8.0.371 117 4/8/2024
8.0.364 129 4/1/2024
8.0.361 155 3/25/2024
8.0.358 142 3/25/2024
8.0.353 166 3/18/2024
8.0.350 165 3/18/2024
8.0.345 202 3/11/2024
8.0.342 256 2/26/2024
8.0.339 246 2/26/2024
8.0.334 243 2/26/2024
8.0.327 246 2/26/2024
8.0.318 273 2/19/2024
8.0.310 265 2/19/2024
8.0.303 274 2/19/2024
8.0.294 278 2/14/2024
8.0.288 292 2/12/2024
8.0.285 323 2/5/2024
8.0.282 308 2/5/2024
8.0.277 327 1/30/2024
8.0.272 332 1/29/2024
8.0.269 330 1/29/2024
8.0.264 322 1/29/2024
8.0.254 365 1/22/2024
8.0.251 334 1/22/2024
8.0.246 334 1/22/2024
8.0.239 342 1/22/2024
8.0.230 372 1/16/2024
8.0.227 365 1/16/2024
8.0.222 367 1/15/2024
8.0.215 395 1/8/2024
8.0.212 389 1/8/2024
8.0.207 442 12/25/2023
8.0.204 424 12/25/2023
8.0.199 424 12/25/2023
8.0.192 428 12/25/2023
8.0.183 441 12/18/2023
8.0.178 431 12/18/2023
8.0.166 433 12/14/2023
8.0.157 445 12/12/2023
8.0.154 432 12/12/2023
8.0.149 435 12/12/2023
8.0.142 433 12/11/2023
8.0.137 437 12/11/2023
8.0.134 428 12/11/2023
8.0.114 458 12/8/2023
8.0.111 444 12/8/2023
8.0.108 463 12/8/2023
8.0.105 441 12/8/2023
8.0.96 437 12/8/2023
8.0.85 469 12/8/2023
8.0.59 1,262 11/14/2023
8.0.54 477 11/14/2023
8.0.49 456 11/13/2023
8.0.44 450 11/13/2023
8.0.37 496 11/9/2023
8.0.32 493 11/7/2023
8.0.27 474 11/6/2023
8.0.24 537 10/30/2023
8.0.21 489 10/30/2023
8.0.18 486 10/30/2023
8.0.13 534 10/22/2023
7.1.346 537 10/9/2023
7.1.343 515 10/9/2023
7.1.338 538 10/9/2023
7.1.335 524 10/9/2023
7.1.330 535 10/9/2023
7.1.323 537 10/7/2023
7.1.313 554 9/25/2023
7.1.308 558 9/24/2023
7.1.305 553 9/24/2023
7.1.298 560 9/23/2023
7.1.294 586 9/13/2023
7.1.287 598 9/13/2023
7.1.284 568 9/12/2023
7.1.281 569 9/12/2023
7.1.271 737 8/28/2023
7.1.263 805 8/14/2023
7.1.260 646 8/13/2023
7.1.227 644 8/13/2023
7.1.220 859 7/29/2023
7.1.218 719 7/29/2023
7.1.204 709 7/28/2023
7.1.200 730 7/25/2023
7.1.197 728 7/25/2023
7.1.190 783 7/19/2023
7.1.182 693 7/19/2023
7.1.157 932 6/27/2023
7.1.150 734 6/26/2023
7.1.145 796 6/19/2023
7.1.138 755 6/19/2023
7.1.135 724 6/19/2023
7.1.126 719 6/18/2023
7.1.107 900 6/6/2023
7.1.104 722 6/6/2023
7.1.95 732 6/6/2023
7.1.75 788 6/5/2023
7.1.17 1,149 5/4/2023
7.1.16 719 5/2/2023
7.1.15 798 4/28/2023
7.1.10 764 4/21/2023
7.1.8 775 4/21/2023
7.1.2 937 4/10/2023
7.0.101 764 4/8/2023
7.0.97 803 4/4/2023
7.0.92 898 4/3/2023
7.0.86 822 4/3/2023
7.0.64 876 3/26/2023
7.0.59 812 3/26/2023
7.0.43 827 3/22/2023
7.0.36 924 2/4/2023
7.0.31 987 1/24/2023
7.0.28 881 1/24/2023
7.0.25 889 1/24/2023
7.0.13 879 1/23/2023
7.0.8 852 1/23/2023
6.0.46 1,155 1/16/2023
6.0.43 900 1/16/2023
6.0.31 908 1/9/2023
6.0.30 928 12/25/2022
6.0.29 851 12/25/2022
6.0.17 1,825 4/24/2020
6.0.13 1,131 4/24/2020
6.0.12 1,134 4/18/2020
6.0.11 1,130 4/18/2020
6.0.10 1,149 4/18/2020
6.0.9 1,156 4/18/2020
6.0.8 1,220 9/24/2019
6.0.5 1,230 9/24/2019
5.0.37 1,265 6/18/2019
4.0.33 1,291 2/23/2019
4.0.30 1,233 2/23/2019
4.0.28 1,267 2/23/2019
4.0.27 1,337 2/14/2019
4.0.26 1,304 2/14/2019
4.0.25 1,315 2/14/2019
4.0.24 1,304 2/12/2019
4.0.23 1,305 1/29/2019
3.1.20 1,407 12/5/2018
3.1.17 1,467 9/8/2018
3.1.16 1,525 9/8/2018
3.1.15 1,416 9/8/2018
3.1.14 1,416 9/7/2018
3.1.13 1,421 9/7/2018
3.1.12 1,453 9/7/2018
3.1.11 1,493 8/23/2018
3.1.10 1,485 8/22/2018
3.1.8 1,440 8/16/2018
3.1.6 1,528 8/1/2018
3.1.5 1,438 8/1/2018
3.1.4 1,512 7/27/2018
3.1.3 1,479 7/27/2018
3.1.2 1,490 7/27/2018
3.1.1 1,459 7/26/2018
2.0.5 1,459 7/19/2018
2.0.4 1,656 5/24/2018
2.0.3 1,582 5/24/2018
2.0.1 1,632 5/9/2018
1.4.8 1,587 4/18/2018
1.4.7 1,546 4/18/2018
1.4.5 1,711 1/9/2018
1.4.1 1,673 1/9/2018
1.3.25 1,613 1/9/2018
1.3.19 1,665 12/20/2017
1.3.18 1,529 12/18/2017
1.3.17 1,614 12/15/2017
1.3.16 1,628 12/15/2017
1.3.14 1,636 12/15/2017
1.3.9 1,669 12/15/2017
1.3.8 1,646 12/15/2017
1.3.7 1,668 12/15/2017
1.3.5 1,651 12/15/2017
1.3.4 1,723 12/15/2017
1.3.3 1,678 12/15/2017
1.3.2 1,590 12/15/2017
1.3.1 1,569 11/30/2017
1.2.36 1,494 11/30/2017
1.2.34 1,553 11/29/2017
1.2.33 1,542 11/29/2017
1.2.31 1,528 11/29/2017
1.2.29 1,517 10/5/2017
1.2.28 1,526 10/4/2017
1.2.26 1,568 10/3/2017
1.2.25 1,540 10/3/2017
1.2.24 1,656 10/3/2017

Upgrade to .NET Standard 2.0 and 2.1