Skip to content

Commit

Permalink
Merge branch 'master' into feature/add-external-3ds-fields
Browse files Browse the repository at this point in the history
  • Loading branch information
meliguilhermefernandes authored Jul 15, 2024
2 parents a01d921 + e0932a0 commit 8267238
Show file tree
Hide file tree
Showing 5 changed files with 123 additions and 2 deletions.
79 changes: 79 additions & 0 deletions src/MercadoPago/Client/Common/SubMerchant.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
namespace MercadoPago.Client.Common
{
/// <summary>
/// Address information.
/// </summary>
public class SubMerchant
{
/// <summary>
/// Sub-commercial establishment establishment code
/// </summary>
public string SubMerchantId { get; set; }

/// <summary>
/// Sub-commerce MCC as determined by Abecs and/or primary CNAE
/// </summary>
public string Mcc { get; set; }

/// <summary>
/// Country in which the sub commerce is located
/// </summary>
public string Country { get; set; }

/// <summary>
/// Street name where the sub-commerce is located
/// </summary>
public string AddressStreet { get; set; }

/// <summary>
/// Street number where the sub-commerce is located
/// </summary>
public int AddressDoorNumber { get; set; }

/// <summary>
/// Sub trade name
/// </summary>
public string LegalName { get; set; }

/// <summary>
/// City where is located
/// </summary>
public string City { get; set; }


/// <summary>
/// State where the sub commerce is located
/// </summary>
public string RegionCodeIso { get; set; }

/// <summary>
/// ISO code of the sub-commerce region (“BR”)
/// </summary>
public string RegionCode { get; set; }

/// <summary>
/// Sub-commerce CPF or CNPJ type
/// </summary>
public string DocumentType { get; set; }

/// <summary>
/// Sub-commerce CPF or CNPJ number
/// </summary>
public string DocumentNumber { get; set; }

/// <summary>
/// Sub-commerce telephone number
/// </summary>
public string Phone { get; set; }

/// <summary>
/// Sub-commerce telephone number
/// </summary>
public string Zip { get; set; }

/// <summary>
/// Payment Facilitator URL
/// </summary>
public string Url { get; set; }
}
}
11 changes: 11 additions & 0 deletions src/MercadoPago/Client/Payment/PaymentCreateRequest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,11 @@ public class PaymentCreateRequest : IdempotentRequest
/// </summary>
public string PaymentMethodOptionId { get; set; }

/// <summary>
/// Marketplace.
/// </summary>
public string Marketplace { get; set; }

/// <summary>
/// Transaction details.
/// </summary>
Expand Down Expand Up @@ -180,5 +185,11 @@ public class PaymentCreateRequest : IdempotentRequest
/// 3DS.
///</summary>
public string ThreeDSecureMode { get; set; }

///<summary>
/// Rules.
///</summary>
public PaymentForwardDataRequest PaymentForwardDataRequest{ get; set; }
}
}

16 changes: 16 additions & 0 deletions src/MercadoPago/Client/Payment/PaymentForwardDataRequest.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
using MercadoPago.Client.Common;

namespace MercadoPago.Client.Payment
{
/// <summary>
/// FowardData information
/// </summary>
public class PaymentForwardDataRequest
{
/// <summary>
/// Payer's personal identification.
/// </summary>
public SubMerchant SubMerchant { get; set; }

}
}
4 changes: 2 additions & 2 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.3.7</Version>
<VersionPrefix>2.3.7</VersionPrefix>
<Version>2.3.9</Version>
<VersionPrefix>2.3.9</VersionPrefix>
</PropertyGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'net5.0'">
Expand Down
15 changes: 15 additions & 0 deletions src/MercadoPago/Resource/OAuth/OAuthCredential.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,21 @@ public class OAuthCredential : IResource
/// </summary>
public string RefreshToken { get; set; }

/// <summary>
/// Identification number (Mercado Pago ID).
/// </summary>
public long UserId { get; set; }

/// <summary>
/// Public key of the application.
/// </summary>
public string PublicKey { get; set; }

/// <summary>
/// Production or test mode.
/// </summary>
public bool LiveMode { get; set; }

/// <summary>
/// Response from API.
/// </summary>
Expand Down

0 comments on commit 8267238

Please sign in to comment.