Skip to content

Commit

Permalink
Merge pull request #499 from mercadopago/feature/add-field-in-transac…
Browse files Browse the repository at this point in the history
…tion_details

add filed barcode and verification_code in transaction_details
  • Loading branch information
edmarSoaress authored Feb 23, 2024
2 parents b456188 + dd7c79e commit aaaf2f2
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 1 deletion.
10 changes: 10 additions & 0 deletions src/MercadoPago/Resources/Payment/Barcode.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?php

namespace MercadoPago\Resources\Payment;

/** Barcode class. */
class Barcode
{
/** Content info. */
public ?string $content;
}
1 change: 0 additions & 1 deletion src/MercadoPago/Resources/Payment/TransactionData.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ class TransactionData
/** Ticket Url. */
public ?string $ticket_url;


/** E2E ID. */
public ?string $e2e_id;

Expand Down
23 changes: 23 additions & 0 deletions src/MercadoPago/Resources/Payment/TransactionDetails.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,14 @@

namespace MercadoPago\Resources\Payment;

use MercadoPago\Serialization\Mapper;

/** TransactionDetails class. */
class TransactionDetails
{
/** Class mapper. */
use Mapper;

/** External financial institution identifier. */
public ?string $financial_institution;

Expand Down Expand Up @@ -40,4 +45,22 @@ class TransactionDetails

/** Transaction ID. */
public ?string $transaction_id;

/** Barcode info. */
public array|object|null $barcode;

/** Verification code info. */
public ?string $verification_code;

private $map = [
"barcode" => "MercadoPago\Resources\Payment\Barcode",
];

/**
* Method responsible for getting map of entities.
*/
public function getMap(): array
{
return $this->map;
}
}

0 comments on commit aaaf2f2

Please sign in to comment.