Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add fields to PaymentTransactionDetails #175

Merged
merged 2 commits into from
Feb 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions src/MercadoPago/Resource/Payment/PaymentBarcode.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
using MercadoPago.Client.Payment;

namespace MercadoPago.Resource.Payment
{
/// <summary>
/// Barcode information.
/// </summary>
public class PaymentBarcode
{
/// <summary>
/// Barcode content
/// </summary>
public string Content { get; set; }
}
}
35 changes: 34 additions & 1 deletion src/MercadoPago/Resource/Payment/PaymentTransactionDetails.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
namespace MercadoPago.Resource.Payment
using MercadoPago.Client.Payment;

namespace MercadoPago.Resource.Payment
{
/// <summary>
/// Transaction details.
Expand Down Expand Up @@ -45,5 +47,36 @@ public class PaymentTransactionDetails
/// BACEN identifier for Pix
/// </summary>
public string TransactionId { get; set; }

/// <summary>
/// Acquirer reference
/// </summary>
public string AcquirerReference { get; set; }

/// <summary>
/// Barcode information
/// </summary>
public PaymentBarcode Barcode { get; set; }

/// <summary>
/// Boleto digitable line
/// </summary>
public string DigitableLine { get; set; }

/// <summary>
/// Verification Code
/// </summary>
public string VerificationCode { get; set; }

/// <summary>
/// Payable Deferral Period
/// </summary>
public string PayableDeferralPeriod { get; set; }

/// <summary>
/// Bank transfer id
/// </summary>
public string BankTransferId { get; set; }

}
}
Loading