Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
rscouto committed Dec 8, 2017
2 parents 131d48a + 6a2256d commit 9cc177a
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 2 deletions.
6 changes: 5 additions & 1 deletion iugu.net/Entity/CustomerModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ public class CustomerModel
public string notes { get; set; }
public string created_at { get; set; }
public string updated_at { get; set; }
public List<object> custom_variables { get; set; }
public List<object> custom_variables { get; set; }
public string zip_code { get; set; }
public int number { get; set; }
public string complement { get; set; }
public string cpf_cnpj { get; set; }
}
}
4 changes: 3 additions & 1 deletion iugu.net/Entity/InvoiceModel.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System.Collections.Generic;
using Newtonsoft.Json;

namespace iugu.net.Entity
{
Expand Down Expand Up @@ -61,7 +62,8 @@ public class Item
public string created_at { get; set; }
public string updated_at { get; set; }
public string price { get; set; }
public bool? _destroy { get; set; }
[JsonProperty("_destroy")]
public bool destroy { get; set; }
}

// TODO: Precisa de refatoração, nomes fora do padrão .Net, sem documentação também
Expand Down
1 change: 1 addition & 0 deletions iugu.net/Entity/SubscriptionModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ public class SubscriptionSubitem
public string price { get; set; }
public string total { get; set; }
public bool? recurrent { get; set; }
public bool? _destroy { get; set; }
}

public class SubscriptionLog
Expand Down
18 changes: 18 additions & 0 deletions iugu.net/Request/CustomerRequestMessage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,23 @@ public class CustomerRequestMessage
[JsonProperty("custom_variables")]
public List<CustomVariables> CustomVariables { get; set; }

/// <summary>
/// CEP do cliente
/// </summary>
[JsonProperty("zip_code")]
public string ZipCode { get; set; }

/// <summary>
/// Número do endereço do cliente
/// </summary>
[JsonProperty("number")]
public int Number { get; set; }

/// <summary>
/// Complemento do endereço
/// </summary>
[JsonProperty("complement")]
public string Complement { get; set; }

}
}

0 comments on commit 9cc177a

Please sign in to comment.