Skip to content

Commit

Permalink
0.7.2
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrii-fediuk committed Apr 7, 2024
1 parent 4c40452 commit c6cb7fb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mage2pro/portal-stripe"
,"version": "0.7.1"
,"version": "0.7.2"
,"description": "The stripe.mage2.pro website"
,"type": "magento2-module"
,"homepage": "https://stripe.mage2.pro"
Expand All @@ -12,7 +12,7 @@
"role": "Developer"
}]
,"require": {
"mage2pro/core": ">=10.8.2"
"mage2pro/core": ">=10.8.3"
,"mage2pro/flag": ">=1.0.5"
,"mage2pro/oro": ">=1.1.0"
,"mage2pro/portal": ">=0.4.3"
Expand Down
4 changes: 2 additions & 2 deletions lib/main.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ function dfe_portal_stripe_customers():array {return df_cache_get_simple(__FUNCT
$a['id'], dfa_deep($a, 'relationships/country/data/id')
];}, df_oro_get_list('customers')['data']); /** @var array(string => string) $customers */
return array_values(df_map(
df_sort_l(
df_sort(
array_filter(
df_oro_get_list('orders', ['product' => 1], ['website'])['included']
,function(array $a):bool {return
'extenddfwebsites' === $a['type'] && 'magento_2' === dfa_deep($a, 'relationships/platform/data/id')
;}
), '', function(array $a):string {return dfa_deep($a, 'attributes/domain');}
), function(array $a):string {return dfa_deep($a, 'attributes/domain');}, true
), function(array $a) use($customers):array {$at = $a['attributes']; return [
# 2017-07-13 From now on, country can be defined not only for a customer, but for a website too.
'country' => dfa_deep($a, 'relationships/country/data/id',
Expand Down

0 comments on commit c6cb7fb

Please sign in to comment.