Skip to content

Commit

Permalink
fixing shipments property typo for preference entity
Browse files Browse the repository at this point in the history
  • Loading branch information
joelibaceta committed Nov 8, 2018
1 parent f54a91c commit 85ba5ce
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
8 changes: 8 additions & 0 deletions MercadoPagoSDK.Test/Resources/PreferenceTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@ public void Init()
public void Preference_CreateShouldBeOk()
{

Shipment shipments = new Shipment()
{
ReceiverAddress = new ReceiverAddress()
{ ZipCode = "28834", StreetName = "Torrente Antonia", StreetNumber = int.Parse("1219"), Floor = "8", Apartment = "C" }
};

List<PaymentType> excludedPaymentTypes = new List<PaymentType>
{
new PaymentType()
Expand Down Expand Up @@ -61,6 +67,8 @@ public void Preference_CreateShouldBeOk()
}
);

preference.Shipments = shipments;

preference.Save();
LastPreference = preference;

Expand Down
2 changes: 1 addition & 1 deletion px-dotnet/MercadoPagoSDK.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<PackageId>mercadopago-sdk</PackageId>
<PackageVersion>1.0.44</PackageVersion>
<PackageVersion>1.0.45</PackageVersion>
<Authors>Williner Rafael, Zachary Gerardo, Joel Ibaceta</Authors>
<Description>MercadoPago SDK para .Net</Description>
<Owners>MercadoPago</Owners>
Expand Down
8 changes: 4 additions & 4 deletions px-dotnet/Resources/Preference.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public Preference Update()
private List<Item> _items;
private Payer? _payer;
private PaymentMethods? _payment_methods;
private Shipment? _shipment;
private Shipment? _shipments;
private BackUrls? _back_urls;
[StringLength(500)]
private string _notification_url;
Expand Down Expand Up @@ -118,16 +118,16 @@ public PaymentMethods? PaymentMethods
/// <summary>
/// Shipments information
/// </summary>
public Shipment? Shipment
public Shipment? Shipments
{
get
{
return _shipment;
return _shipments;
}

set
{
_shipment = value;
_shipments = value;
}
}
/// <summary>
Expand Down

0 comments on commit 85ba5ce

Please sign in to comment.