Skip to content
This repository has been archived by the owner on Aug 28, 2023. It is now read-only.

Commit

Permalink
v3.14.2 (#189)
Browse files Browse the repository at this point in the history
* feat(PPWP-377): unified calls

* fix(PPWP-377): unified calls

* fix(PPWP-377): unified calls

* fix(PPWP-377): unified calls

* fix(PPWP-377): unified calls

* added payment places method

* comments removed

* refactored access token validation

* fixed ternary if structure

* fixed instantiation of access token

* 🐛 Fix the PR cover checker when there is no test (#189)

This fixes an issue that is workflow failure when the pull request does not contain tests and Added hotfix branch filter to check tests

* feat(PPWP-421): paycash front-end

* feat(PPWP-422): paycash admin

* fix(helper): 🐛 fixed float to int convertion

* feat(bin): ✨ new command sync with container

* improv: init tests

* improv: changing chmod command

* build: 📦 new patch version of mercardo pago for magento 2 v3.12.3

* getMercadoPagoPaymentMethods testing

* fix(ppwp-337): fixing exception testing

* testing config provider and api

* testing PaymentMethodsTicket

* feat(ppwp-377): testing custom config provider

* refactored constants

* refactored model test classes

* refactored helper test classes

* added annotation for Code Coverage Ignore

* fixed test variables

* fixed html structure of ticket

* feat(ppwp-377): adding metadata payment_option_id

* fixing data tests

* removed exception to access token

* hotfix(PLUG-1533): fixing refund error handling

* fixing pr coverage checker

* testing pr coverage checker

* fixing pr coverage checker

* hotfix: fixed js - undefined variable

* feat(PPWP-569): initial commit

* build: 📦 new minor version of mercardo pago for magento 2 v3.13.0

* build(v3.13.0): 📦 updated readme

* expiration date mask and validations

* PPWP-569: inserted translations for titles

* PPWP-569: added space between fields

* improv(PPWP-611): dinamically validating bank transfer on admin page

* implementing cache

* PPWP-611: payment unit tests

* PPWP-611: fixed abstractElementMock

* fix(wallet button): 🐛 create order even with cho pro disabled

* fixing cache

* separating cache values with constants

* PPWP-611: refactored test directory

* PPWP-570: added translation

* PPWP-569: inserted style in title

* PPWP-569: fixed cache for new installs

* PPWP-569: fixed cache for new installs

* feature(ppwp-630): new front-end definitions

* removing cache from bank_transfer validation

* fixing payment fieldset and removing debit text

* improv(ppwp-531): adding mlu to available lists

* adding payment methods validation using API

* removing old validation

* improving cache and applying rules to other checkouts

* fixing pix rules

* disabling invalid payments

* clearing config activation flag caching

* testing new methods

* fixing cache code coverage

* fixing observer code coverage

* fixing exception syntax

* code enhancement

* fixing prefix issue

* fix(ticket): 🐛 changed str_contains to strpos

* build(v3.14.0): 📦 updated version files and changelog

* build(v3.14.0): 📦 updated changelog

* fix: treating paymentId on disablePayment function

* Upgrade New Logo MP Magento 2

* hotfix: prevent "missing required argument $data" exception (#187)

Co-authored-by: Ivan Augusto <[email protected]>

* build(v3.14.1): 📦 new version v3.14.1

* build(v3.14.1): 📦 updated mercado pago's minilogo image

* build(v3.14.2): 📦 Create a new version

* build(v3.14.2): 📦 Migrate to db_schema

* build(v3.14.2): 📦 link img desktop logo mercado pago

* build(v3.14.2): 📦 add release to skipped branch

* build(v3.14.2): 📦 add parameters :P

Co-authored-by: Gustavo Brito <[email protected]>
Co-authored-by: sleaof <[email protected]>
Co-authored-by: Douglas <[email protected]>
Co-authored-by: hugodamm <[email protected]>
Co-authored-by: Code Slicer <[email protected]>
Co-authored-by: Ivan Augusto <[email protected]>
Co-authored-by: Hugo Damm <[email protected]>
  • Loading branch information
8 people authored Jan 28, 2022
1 parent e3f0933 commit e79af20
Show file tree
Hide file tree
Showing 12 changed files with 95 additions and 197 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [3.14.2] - 2022-01-26

### Fixed
- Updated Custom Checkout default value to credit and debit cards
- Converted install/upgrade schema scripts to db_schema.xml files

## [3.14.1] - 2022-01-11

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
</a>
</p>

# Magento 2 - Mercado Pago Module (v3.14.1)
# Magento 2 - Mercado Pago Module (v3.14.2)

The Mercado Pago plugin for Magento 2 allows you to expand the functionalities of your online store and offer a unique payment experience for your customers.

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
}
],
"type": "magento2-module",
"version": "3.14.1",
"version": "3.14.2",
"license": [
"OSL-3.0",
"AFL-3.0"
Expand Down
60 changes: 0 additions & 60 deletions src/MercadoPago/Core/Setup/InstallSchema.php

This file was deleted.

131 changes: 0 additions & 131 deletions src/MercadoPago/Core/Setup/UpgradeSchema.php

This file was deleted.

2 changes: 1 addition & 1 deletion src/MercadoPago/Core/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "mercadopago/core",
"description": "Mercado Pago Magento 2 Plugin",
"type": "magento2-module",
"version": "3.14.1",
"version": "3.14.2",
"license": [
"OSL-3.0",
"AFL-3.0"
Expand Down
2 changes: 1 addition & 1 deletion src/MercadoPago/Core/etc/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<cctypes>AE,VI,MC,DI,JCB</cctypes>
<ccfields>csc,expdate,acct</ccfields>
<model>MercadoPago\Core\Model\Custom\Payment</model>
<title translate="label">Credit Card - Mercado Pago</title>
<title translate="label">Credit and Debit Card - Mercado Pago</title>
<allowspecific>0</allowspecific>
<banner_checkout></banner_checkout>
<sort_order>-4</sort_order>
Expand Down
33 changes: 33 additions & 0 deletions src/MercadoPago/Core/etc/db_schema.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<?xml version="1.0"?>
<schema xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Setup/Declaration/Schema/etc/schema.xsd">
<table name="sales_order" resource="default">
<column xsi:type="decimal" name="finance_cost_amount" scale="4" precision="12" unsigned="false" nullable="true" comment="Finance Cost Amount"/>
<column xsi:type="decimal" name="base_finance_cost_amount" scale="4" precision="12" unsigned="false" nullable="true" comment="Base Finance Cost Amount"/>
<column xsi:type="decimal" name="discount_coupon_amount" scale="4" precision="12" unsigned="false" nullable="true" comment="Discount coupon Amount"/>
<column xsi:type="decimal" name="base_discount_coupon_amount" scale="4" precision="12" unsigned="false" nullable="true" comment="Base Discount coupon Amount"/>
</table>
<table name="quote" resource="default">
<column xsi:type="decimal" name="finance_cost_amount" scale="4" precision="12" unsigned="false" nullable="true" comment="Finance Cost Amount"/>
<column xsi:type="decimal" name="base_finance_cost_amount" scale="4" precision="12" unsigned="false" nullable="true" comment="Base Finance Cost Amount"/>
<column xsi:type="decimal" name="discount_coupon_amount" scale="4" precision="12" unsigned="false" nullable="true" comment="Discount coupon Amount"/>
<column xsi:type="decimal" name="base_discount_coupon_amount" scale="4" precision="12" unsigned="false" nullable="true" comment="Base Discount coupon Amount"/>
</table>
<table name="sales_invoice" resource="default">
<column xsi:type="decimal" name="finance_cost_amount" scale="4" precision="12" unsigned="false" nullable="true" comment="Finance Cost Amount"/>
<column xsi:type="decimal" name="base_finance_cost_amount" scale="4" precision="12" unsigned="false" nullable="true" comment="Base Finance Cost Amount"/>
<column xsi:type="decimal" name="discount_coupon_amount" scale="4" precision="12" unsigned="false" nullable="true" comment="Discount coupon Amount"/>
<column xsi:type="decimal" name="base_discount_coupon_amount" scale="4" precision="12" unsigned="false" nullable="true" comment="Base Discount coupon Amount"/>
</table>
<table name="sales_creditmemo" resource="default">
<column xsi:type="decimal" name="finance_cost_amount" scale="4" precision="12" unsigned="false" nullable="true" comment="Finance Cost Amount"/>
<column xsi:type="decimal" name="base_finance_cost_amount" scale="4" precision="12" unsigned="false" nullable="true" comment="Base Finance Cost Amount"/>
<column xsi:type="decimal" name="discount_coupon_amount" scale="4" precision="12" unsigned="false" nullable="true" comment="Discount coupon Amount"/>
<column xsi:type="decimal" name="base_discount_coupon_amount" scale="4" precision="12" unsigned="false" nullable="true" comment="Base Discount coupon Amount"/>
</table>
<table name="quote_address" resource="default">
<column xsi:type="decimal" name="discount_coupon_amount" scale="4" precision="12" unsigned="false" nullable="true" comment="Discount coupon Amount"/>
<column xsi:type="decimal" name="base_discount_coupon_amount" scale="4" precision="12" unsigned="false" nullable="true" comment="Base Discount coupon Amount"/>
<column xsi:type="decimal" name="finance_cost_amount" scale="4" precision="12" unsigned="false" nullable="true" comment="Finance Cost Amount"/>
<column xsi:type="decimal" name="base_finance_cost_amount" scale="4" precision="12" unsigned="false" nullable="true" comment="Base Finance Cost Amount"/>
</table>
</schema>
42 changes: 42 additions & 0 deletions src/MercadoPago/Core/etc/db_schema_whitelist.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"sales_order": {
"column": {
"finance_cost_amount": true,
"base_finance_cost_amount": true,
"discount_coupon_amount": true,
"base_discount_coupon_amount": true
}
},
"quote": {
"column": {
"finance_cost_amount": true,
"base_finance_cost_amount": true,
"discount_coupon_amount": true,
"base_discount_coupon_amount": true
}
},
"sales_invoice": {
"column": {
"finance_cost_amount": true,
"base_finance_cost_amount": true,
"discount_coupon_amount": true,
"base_discount_coupon_amount": true
}
},
"sales_creditmemo": {
"column": {
"finance_cost_amount": true,
"base_finance_cost_amount": true,
"discount_coupon_amount": true,
"base_discount_coupon_amount": true
}
},
"quote_address": {
"column": {
"discount_coupon_amount": true,
"base_discount_coupon_amount": true,
"finance_cost_amount": true,
"base_finance_cost_amount": true
}
}
}
2 changes: 1 addition & 1 deletion src/MercadoPago/Core/etc/module.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
<module name="MercadoPago_Core" setup_version="3.14.1">
<module name="MercadoPago_Core" setup_version="3.14.2">
<sequence>
<module name="Magento_Sales"/>
<module name="Magento_Payment"/>
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 9 additions & 1 deletion src/MercadoPago/Test/pull-request-coverage-checker.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,14 @@ function is_hotfix_branch($branchName) {
return strpos($branchName, 'hotfix');
}

function is_release_branch($branchName) {
return strpos($branchName, 'release');
}

function is_skipped_branch($branchName) {
return false === (is_hotfix_branch($branchName) || is_release_branch($branchName));
}

function validate_clover_file($cloverFile) {
if (!file_exists($cloverFile)) {
throw new InvalidArgumentException('Invalid clover file provided');
Expand Down Expand Up @@ -83,7 +91,7 @@ function execute($argv) {
$percentage = min(100, max(0, (int) $argv[2]));
$pullRequestFiles = parse_pull_request_files($argv);

if (false === is_hotfix_branch($branchName)) {
if (false === is_skipped_branch($branchName)) {
validate_clover_file($cloverFile);
validate_percentage_param($percentage);

Expand Down

0 comments on commit e79af20

Please sign in to comment.