Skip to content

Commit

Permalink
Merge pull request #175 from mercadopago/feature/add-transactiondetai…
Browse files Browse the repository at this point in the history
…ls-fields

Add fields to PaymentTransactionDetails
  • Loading branch information
romerosilva-meli authored Feb 19, 2024
2 parents 2a843b8 + f014916 commit db0ab18
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 1 deletion.
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; }

}
}

0 comments on commit db0ab18

Please sign in to comment.