Skip to content

Commit

Permalink
2.0.7
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrii-fediuk committed Nov 10, 2017
1 parent ac00fd1 commit a5020ad
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Facade/Customer.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ function cardAdd($c, $token) {/** @var M $m */$m = $this->m(); return (new Card(
* whereas a Magento's billing address can be without a postal code.
*/
'postal_code' => $m->postalCode()
] + Address::singleton()->billing()
] + Address::sg()->billing()
/**
* 2017-10-08
* «A card nonce representing the credit card to link to the customer.
Expand Down
2 changes: 1 addition & 1 deletion P/Address.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,5 +84,5 @@ private function p(A $a = null) {/** @var A|null $a */ return !$a ? [] : [
* @used-by \Dfe\Square\P\Reg::p()
* @return self
*/
static function singleton() {static $r; return $r ? $r : $r = new self(dfpm(__CLASS__));}
static function sg() {static $r; return $r ? $r : $r = new self(dfpm(__CLASS__));}
}
2 changes: 1 addition & 1 deletion P/Charge.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ protected function k_CustomerId() {return 'customer_id';}
* @used-by \Df\StripeClone\P\Charge::request()
* @return array(string => mixed)
*/
protected function p() {$a = Address::singleton(); /** @var Address $a */ return [
protected function p() {$a = Address::sg(); /** @var Address $a */ return [
// 2017-10-09
// «The buyer's billing address.
// This value is optional, but this transaction is ineligible for chargeback protection
Expand Down
2 changes: 1 addition & 1 deletion P/Reg.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ protected function k_Email() {return 'email_address';}
protected function p() {return [
// 2017-10-10 «The customer's physical address». Type: Address.
// https://docs.connect.squareup.com/api/connect/v2#type-address
'address' => Address::singleton()->shipping()
'address' => Address::sg()->shipping()
// 2017-10-10 «The name of the customer's company». Type: string.
,'company_name' => $this->addressBS()->getCompany()
// 2017-10-10 «The customer's family (i.e., last) name». Type: string.
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mage2pro/square"
,"version": "2.0.6"
,"version": "2.0.7"
,"description": "Square Payments integration with Magento 2"
,"type": "magento2-module"
,"homepage": "https://mage2.pro/c/extensions/square"
Expand All @@ -11,7 +11,7 @@
"homepage": "https://mage2.pro/users/dmitry_fedyuk",
"role": "Developer"
}]
,"require": {"mage2pro/core": ">=3.2.7"}
,"require": {"mage2pro/core": ">=3.2.40"}
,"autoload": {"files": ["registration.php"], "psr-4": {"Dfe\\Square\\": ""}}
,"keywords": [
"API"
Expand Down

0 comments on commit a5020ad

Please sign in to comment.