Skip to content
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
49 changes: 36 additions & 13 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,51 +4,74 @@ All notable changes to this project will be documented in this file.

This project follows Keep a Changelog and Semantic Versioning.

## [3.7.1] - 2025-10-30

### Added

-

### Changed

- Bump the SDK version to `3.7.1` in `MercadoPagoConfig::$CURRENT_VERSION`

### Fixed

- Fix `addresses` and `cards` mapping in `Customer` resource

### Deprecated

-

### Security

## [3.6.0] - 2025-09-01

### Added

- Atualizações de documentação para instruções de instalação

### Changed
- Bump da versão do SDK para `3.6.0` em `MercadoPagoConfig::$CURRENT_VERSION`

- Bump the SDK version to `3.6.0` in `MercadoPagoConfig::$CURRENT_VERSION`

### Fixed

-

### Deprecated

-

### Removed

-

### Security

-

## [3.5.1] - 2025-08-28

### Added
- Adicionar e atualizar campos e testes

- Add and update fields and tests

### Changed
- Adiciona/corrige testes em `OrderClientUnitTest`
- Atualiza `.gitignore` para ignorar `.idea`

- Add and fix tests in `OrderClientUnitTest`
- Updates `.gitignore` to ignore `.idea`

### Fixed

-

### Deprecated
-

### Removed
- Remove `.idea` do versionamento
- Remove arquivos solicitados na revisão
- Remove arquivos em branco vazios
-

### Security

-

<!-- When releasing, duplicate the block below replacing X.Y.Z and date -->
<!-- Example: ## [3.6.0] - 2025-08-27 -->




2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ First time using Mercado Pago? Create your [Mercado Pago account](https://www.me
2. Install PHP SDK for MercadoPago running in command line:

```
composer require "mercadopago/dx-php:3.6.0"
composer require "mercadopago/dx-php:3.7.1"
```

> You can also run _composer require "mercadopago/dx-php:2.6.2"_ for PHP7.1 or _composer require "mercadopago/dx-php:1.12.6"_ for PHP5.6.
Expand Down
4 changes: 2 additions & 2 deletions src/MercadoPago/MercadoPagoConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
class MercadoPagoConfig
{
/** @var string Mercado Pago SDK version. */
public static string $CURRENT_VERSION = "3.6.0";
public static string $CURRENT_VERSION = "3.7.1";

/** @var string Mercado Pago Base URL */
public static string $BASE_URL = "https://api.mercadopago.com";

Expand Down
6 changes: 4 additions & 2 deletions src/MercadoPago/Resources/Customer.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,10 @@ class Customer extends MPResource
public ?string $status;

/** List cards of the customer. */
public array $cards;
public array $cards = [];

/** List addresses of the customer. */
public array $addresses;
public array $addresses = [];

/** Phone of the customer. */
public array|object|null $phone;
Expand All @@ -75,6 +75,8 @@ class Customer extends MPResource
"phone" => "MercadoPago\Resources\Common\Phone",
"identification" => "MercadoPago\Resources\Common\Identification",
"address" => "MercadoPago\Resources\Common\Address",
"addresses" => "MercadoPago\Resources\Common\Address",
"cards" => "MercadoPago\Resources\CustomerCard",
];

/**
Expand Down