Skip to content

Commit

Permalink
update payments
Browse files Browse the repository at this point in the history
  • Loading branch information
danielen-meli committed Sep 19, 2024
1 parent 89554ca commit 7499532
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/MercadoPago/Resources/Payment.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ class Payment extends MPResource
public ?int $order_id;

/** Order. */
public ?array $order;
public array|object|null $order;

/** Brand ID. */
public ?string $brand_id;
Expand Down Expand Up @@ -203,6 +203,9 @@ class Payment extends MPResource
/** Platform ID. */
public ?string $platform_id;

/** Payer email */
public ?string $payer_email;

/** Charges details. */
public ?array $charges_details;

Expand Down Expand Up @@ -242,6 +245,7 @@ class Payment extends MPResource
"metadata" => "MercadoPago\Resources\Payment\Metadata",
"three_ds_info" => "MercadoPago\Resources\Payment\ThreeDSInfo",
"barcode" => "MercadoPago\Resources\Payment\Barcode",
"order" => "MercadoPago\Resources\Payment\Order"
];

/**
Expand Down
18 changes: 18 additions & 0 deletions src/MercadoPago/Resources/Payment/Order.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?php

namespace MercadoPago\Resources\Payment;

use MercadoPago\Serialization\Mapper;

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

public ?string $id;

/** Item name.*/
public ?string $type;

}

0 comments on commit 7499532

Please sign in to comment.