Skip to content

Commit

Permalink
Merge pull request #151 from mercadopago/feature/add-linkedto-v2
Browse files Browse the repository at this point in the history
Add linked_to parameter to Point of Interaction
  • Loading branch information
rhames07 authored Jul 7, 2022
2 parents a08595a + de08156 commit 524b666
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 3 deletions.
5 changes: 5 additions & 0 deletions src/MercadoPago/Client/Payment/PaymentCreateRequest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,11 @@ public class PaymentCreateRequest : IdempotentRequest
/// </summary>
public PaymentAdditionalInfoRequest AdditionalInfo { get; set; }

/// <summary>
/// Point Of Interaction.
/// </summary>
public PaymentPointOfInteractionRequest PointOfInteraction { get; set; }

/// <summary>
/// Taxes for payments.
/// </summary>
Expand Down
15 changes: 15 additions & 0 deletions src/MercadoPago/Client/Payment/PaymentPointOfInteractionRequest.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
using MercadoPago.Client.Common;

namespace MercadoPago.Client.Payment
{
/// <summary>
/// Point of Interaction information.
/// </summary>
public class PaymentPointOfInteractionRequest
{
/// <summary>
/// Linked To.
/// </summary>
public string LinkedTo { get; set; }
}
}
6 changes: 3 additions & 3 deletions src/MercadoPago/MercadoPago.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
<SignAssembly>True</SignAssembly>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
<TargetFrameworks>net5.0;netstandard2.0;net461</TargetFrameworks>
<Version>2.2.0</Version>
<VersionPrefix>2.2.0</VersionPrefix>
<Version>2.2.1</Version>
<VersionPrefix>2.2.1</VersionPrefix>
</PropertyGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'net5.0'">
Expand All @@ -36,7 +36,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Newtonsoft.Json" Version="12.0.3" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
</ItemGroup>

<ItemGroup>
Expand Down
5 changes: 5 additions & 0 deletions src/MercadoPago/Resource/Payment/PaymentPointOfInteraction.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ public class PaymentPointOfInteraction
/// </summary>
public string SubType { get; set; }

/// <summary>
/// Linked To
/// </summary>
public string LinkedTo { get; set; }

/// <summary>
/// Application data.
/// </summary>
Expand Down

0 comments on commit 524b666

Please sign in to comment.