Skip to content

Commit

Permalink
add filed barcode and verification_code in transaction_details
Browse files Browse the repository at this point in the history
  • Loading branch information
edmarSoaress committed Feb 23, 2024
1 parent 9439265 commit dd7c79e
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/MercadoPago/Resources/Payment/TransactionData.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,8 @@ class TransactionData
/** E2E ID. */
public ?string $e2e_id;

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

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

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

/**
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 dd7c79e

Please sign in to comment.