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 filed barcode and verification_code in transaction_details #499

Merged
merged 2 commits into from
Feb 23, 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
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;
}
}
Loading