Skip to content

Commit

Permalink
Merge pull request #307 from mercadopago/release/1.12.1
Browse files Browse the repository at this point in the history
Release 1.12.1
  • Loading branch information
delias-silva committed Aug 11, 2021
2 parents f282d14 + a0f16f5 commit 7be03bc
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ The SDK supports PHP 5.6 or major
#### Using Composer

1. Download [Composer](https://getcomposer.org/doc/00-intro.md#installation-linux-unix-macos) if not already installed
2. Go to your project directory and run `composer require "mercadopago/dx-php:1.12.0"` on the command line.
2. Go to your project directory and run `composer require "mercadopago/dx-php:1.12.1"` on the command line.
3. This how your directory structure would look like.
4. Thats all, you have Mercado Pago SDK installed.

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"type": "library",
"homepage": "https://github.com/mercadopago/sdk-php",
"license": "MIT",
"version": "1.12.0",
"version": "1.12.1",
"config": {
"platform": {
"php": "5.6"
Expand Down
42 changes: 42 additions & 0 deletions src/MercadoPago/Entities/Shared/Payment.php
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,48 @@ class Payment extends Entity
*/
protected $platform_id;

/**
* charges details
* @var object
* @Attribute()
*/
protected $charges_details;

/**
* taxes
* @Attribute(type = "array")
* @var array
*/
protected $taxes;

/**
* net_amount
* @var float
* @Attribute(type = "float")
*/
protected $net_amount;

/**
* point_of_interaction
* @var object
* @Attribute()
*/
protected $point_of_interaction;

/**
* payment_method_option_id
* @var string
* @Attribute()
*/
protected $payment_method_option_id;

/**
* merchant_services
* @var object
* @Attribute()
*/
protected $merchant_services;

public function refund($amount = 0){
$refund = new Refund(["payment_id" => $this->id]);
if ($amount > 0){
Expand Down
2 changes: 1 addition & 1 deletion src/MercadoPago/Version.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
class Version
{
public static
$_VERSION = '1.12.0';
$_VERSION = '1.12.1';
}

0 comments on commit 7be03bc

Please sign in to comment.