Skip to content

Commit a47b5ec

Browse files
1.3.3
1 parent 32e7d1a commit a47b5ec

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

Facade/Card.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
namespace Dfe\Moip\Facade;
33
use \Df\Payment\BankCardNetworks as N;
44
// 2017-06-11 https://dev.moip.com.br/page/api-reference#section-credit-card
5-
final class Card implements \Df\StripeClone\Facade\ICard {
5+
final class Card extends \Df\StripeClone\Facade\Card {
66
/**
77
* 2017-06-11
88
* $p is an array like:
@@ -53,7 +53,7 @@ function __construct($p) {$this->_p = $p;}
5353
* https://mage2.pro/t/3776
5454
* https://github.com/mage2pro/moip/blob/0.4.1/Facade/Customer.php#L90
5555
* @override
56-
* @see \Df\StripeClone\Facade\ICard::brand()
56+
* @see \Df\StripeClone\Facade\Card::brand()
5757
* @used-by \Df\StripeClone\CardFormatter::ii()
5858
* @used-by \Dfe\Moip\CardFormatter::label()
5959
* @return string
@@ -72,7 +72,7 @@ function brand() {return dftr($this->brandId(), [
7272
* 2017-06-11
7373
* 2017-10-07 It should be an ISO-2 code or `null`.
7474
* @override
75-
* @see \Df\StripeClone\Facade\ICard::country()
75+
* @see \Df\StripeClone\Facade\Card::country()
7676
* @used-by \Df\StripeClone\CardFormatter::country()
7777
* @return string|null
7878
*/
@@ -86,7 +86,7 @@ function country() {return in_array($this->_p['brand'], ['ELO', 'HIPER', 'HIPERC
8686
* 2017-06-11
8787
* 2017-07-19 Moip does not return the expiration date: https://mage2.pro/t/4048
8888
* @override
89-
* @see \Df\StripeClone\Facade\ICard::expMonth()
89+
* @see \Df\StripeClone\Facade\Card::expMonth()
9090
* @used-by \Df\StripeClone\CardFormatter::exp()
9191
* @used-by \Df\StripeClone\CardFormatter::ii()
9292
* @return null
@@ -97,7 +97,7 @@ function expMonth() {return null;}
9797
* 2017-06-11
9898
* 2017-07-19 Moip does not return the card's expiration date: https://mage2.pro/t/4048
9999
* @override
100-
* @see \Df\StripeClone\Facade\ICard::expYear()
100+
* @see \Df\StripeClone\Facade\Card::expYear()
101101
* @used-by \Df\StripeClone\CardFormatter::exp()
102102
* @used-by \Df\StripeClone\CardFormatter::ii()
103103
* @return null
@@ -120,7 +120,7 @@ function first6() {return $this->_p['first6'];}
120120
* 2017-10-07 «Credit card id»
121121
* Type: string(16).
122122
* @override
123-
* @see \Df\StripeClone\Facade\ICard::id()
123+
* @see \Df\StripeClone\Facade\Card::id()
124124
* @used-by \Df\StripeClone\ConfigProvider::cards()
125125
* @used-by \Df\StripeClone\Facade\Customer::cardIdForJustCreated()
126126
* @return string
@@ -132,7 +132,7 @@ function id() {return $this->_p['id'];}
132132
* 2017-10-07 «Last four digits of the card»
133133
* Type: string.
134134
* @override
135-
* @see \Df\StripeClone\Facade\ICard::last4()
135+
* @see \Df\StripeClone\Facade\Card::last4()
136136
* @used-by \Df\StripeClone\CardFormatter::ii()
137137
* @used-by \Dfe\Moip\CardFormatter::label()
138138
* @return string
@@ -174,7 +174,7 @@ function numberLength() {/** @var string $b */ $b = $this->brandId(); return
174174
* `holder`: «Credit card holder». Type: structured.
175175
* `fullname`: «Fullname». Type: string.
176176
* @override
177-
* @see \Df\StripeClone\Facade\ICard::owner()
177+
* @see \Df\StripeClone\Facade\Card::owner()
178178
* @used-by \Df\StripeClone\CardFormatter::ii()
179179
* @return string
180180
*/

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "mage2pro/moip"
3-
,"version": "1.3.2"
3+
,"version": "1.3.3"
44
,"description": "Moip integration with Magento 2"
55
,"type": "magento2-module"
66
,"homepage": "https://mage2.pro/c/extensions/moip"
@@ -11,7 +11,7 @@
1111
"homepage": "https://mage2.pro/users/dmitry_fedyuk",
1212
"role": "Developer"
1313
}]
14-
,"require": {"mage2pro/core": ">=3.5.0", "mage2pro/geo": ">=1.2.0", "mage2pro/phone": ">=1.0.0"}
14+
,"require": {"mage2pro/core": ">=3.11.0", "mage2pro/geo": ">=1.2.0", "mage2pro/phone": ">=1.0.0"}
1515
,"autoload": {"files": ["registration.php"], "psr-4": {"Dfe\\Moip\\": ""}}
1616
,"keywords": [
1717
"API"

0 commit comments

Comments
 (0)