Skip to content

Commit

Permalink
Inclusão de propriedades nas classes CustomerModel (zip_code, number,…
Browse files Browse the repository at this point in the history
… complement e cpf_cnpj), CustomerRequestMessage (ZipCode, Number e Complement) e em SubscriptionSubitem (_destroy).
  • Loading branch information
lhmartino committed Dec 6, 2017
1 parent acda68f commit 8fdc2e0
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 1 deletion.
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; }
}
}
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 8fdc2e0

Please sign in to comment.