Skip to content
This repository has been archived by the owner on Jun 30, 2022. It is now read-only.

Commit

Permalink
Changed quote_id's from int to long
Browse files Browse the repository at this point in the history
  • Loading branch information
rogerioms committed Jun 20, 2017
1 parent ebf33b6 commit 7f6088c
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public class ChangeDeliveryMethod
/// ID da cotação.
/// </summary>
[JsonProperty("quote_id")]
public int? QuoteId { get; set; }
public long? QuoteId { get; set; }

/// <summary>
/// ID do método de envio escolhido.
Expand Down
2 changes: 1 addition & 1 deletion Intelipost/Intelipost.API/Model/Quote/Quote.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public class Quote
/// ID da Ordem de Pedido.
/// </summary>
[JsonProperty("id")]
public int Id { get; set; }
public long Id { get; set; }

/// <summary>
/// ID do cliente.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public class ShipmentOrder
/// ID da cotação.
/// </summary>
[JsonProperty("quote_id")]
public int? QuoteId { get; set; }
public long? QuoteId { get; set; }

/// <summary>
/// ID do método de envio escolhido.
Expand Down
4 changes: 2 additions & 2 deletions Intelipost/Intelipost.UnitTest/TestChangeDeliveryMethod.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ public void TestRequest()
{
Content = new ChangeDeliveryMethod()
{
DeliveryMethodId = 1,
OrderNumber = "TESTE0006",
DeliveryMethodId = 2,
OrderNumber = "sdk0003",
QuoteId = null,
ClientId = 2354,
EstimatedDeliveryDate = new DateTime(2016, 04, 20),
Expand Down
4 changes: 3 additions & 1 deletion Intelipost/Intelipost.UnitTest/TestShipmentOrder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,9 @@ public void TestRequest()
Content = new ShipmentOrder()
{
DeliveryMethodId = 1,
OrderNumber = "sdk0001",
OrderNumber = "sdk0003",
SalesOrderNumber = "s-sdk0002",
SalesChannel = "SC Teste",
QuoteId = null,
OriginZipCode = "22710440",
//EstimatedDeliveryDate = new DateTime(2015,08,20),
Expand Down

0 comments on commit 7f6088c

Please sign in to comment.