Commit ceba72d 1 parent fdda86f commit ceba72d Copy full SHA for ceba72d
File tree 1 file changed +6
-4
lines changed
1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -34,10 +34,12 @@ public function generate(AudienceInterface $audience): array
34
34
35
35
$ shopBillingData = $ channel ->getShopBillingData ();
36
36
if (null !== $ shopBillingData ) {
37
- $ data ['address ' ]['address1 ' ] = $ shopBillingData ->getStreet ();
38
- $ data ['address ' ]['city ' ] = $ shopBillingData ->getCity ();
39
- $ data ['address ' ]['postal_code ' ] = $ shopBillingData ->getPostcode ();
40
- $ data ['address ' ]['country_code ' ] = $ shopBillingData ->getCountryCode ();
37
+ $ data ['address ' ] = (object ) [
38
+ 'address1 ' => $ shopBillingData ->getStreet (),
39
+ 'city ' => $ shopBillingData ->getCity (),
40
+ 'postal_code ' => $ shopBillingData ->getPostcode (),
41
+ 'country_code ' => $ shopBillingData ->getCountryCode (),
42
+ ];
41
43
42
44
$ data ['timezone ' ] = self ::getTimeZone ($ shopBillingData ->getCountryCode ());
43
45
}
You can’t perform that action at this time.
0 commit comments