diff --git a/src/MercadoPago/Resources/Payment.php b/src/MercadoPago/Resources/Payment.php index 2e86f6c1..114a5d49 100644 --- a/src/MercadoPago/Resources/Payment.php +++ b/src/MercadoPago/Resources/Payment.php @@ -26,11 +26,8 @@ class Payment extends MPResource /** Operation type. */ public ?string $operation_type; - /** Order ID. */ - public ?int $order_id; - /** Order. */ - public ?array $order; + public array|object|null $order; /** Brand ID. */ public ?string $brand_id; @@ -235,6 +232,7 @@ class Payment extends MPResource "payment_method" => "MercadoPago\Resources\Payment\PaymentMethod", "metadata" => "MercadoPago\Resources\Payment\Metadata", "three_ds_info" => "MercadoPago\Resources\Payment\ThreeDSInfo", + "order"=> "MercadoPago\Resources\Payment\Order" ]; /** diff --git a/src/MercadoPago/Resources/Payment/Order.php b/src/MercadoPago/Resources/Payment/Order.php new file mode 100644 index 00000000..1252c063 --- /dev/null +++ b/src/MercadoPago/Resources/Payment/Order.php @@ -0,0 +1,15 @@ +