@@ -42,6 +42,16 @@ public function mapCreateResponse(ContactCreateResponse $response): array
4242 * id: string|null,
4343 * roid: string|null,
4444 * statuses: list<string>,
45+ * postalType: string|null,
46+ * postalName: string|null,
47+ * postalOrganization: string|null,
48+ * postalStreet1: string|null,
49+ * postalStreet2: string|null,
50+ * postalStreet3: string|null,
51+ * postalCity: string|null,
52+ * postalCountryCode: string|null,
53+ * postalProvince: string|null,
54+ * postalPostalCode: string|null,
4555 * postalInfo: array{
4656 * type: string,
4757 * name: string,
@@ -75,8 +85,29 @@ public function mapCreateResponse(ContactCreateResponse $response): array
7585 public function mapInfoResponse (ContactInfoResponse $ response ): array
7686 {
7787 $ postalInfo = null ;
88+ $ postalType = null ;
89+ $ postalName = null ;
90+ $ postalOrganization = null ;
91+ $ postalStreet1 = null ;
92+ $ postalStreet2 = null ;
93+ $ postalStreet3 = null ;
94+ $ postalCity = null ;
95+ $ postalCountryCode = null ;
96+ $ postalProvince = null ;
97+ $ postalPostalCode = null ;
7898
7999 if (null !== $ response ->postalInfo ) {
100+ $ postalType = $ response ->postalInfo ->type ;
101+ $ postalName = $ response ->postalInfo ->name ;
102+ $ postalOrganization = $ response ->postalInfo ->organization ;
103+ $ postalStreet1 = $ response ->postalInfo ->address ->streets [0 ] ?? null ;
104+ $ postalStreet2 = $ response ->postalInfo ->address ->streets [1 ] ?? null ;
105+ $ postalStreet3 = $ response ->postalInfo ->address ->streets [2 ] ?? null ;
106+ $ postalCity = $ response ->postalInfo ->address ->city ;
107+ $ postalCountryCode = $ response ->postalInfo ->address ->countryCode ;
108+ $ postalProvince = $ response ->postalInfo ->address ->province ;
109+ $ postalPostalCode = $ response ->postalInfo ->address ->postalCode ;
110+
80111 $ postalInfo = [
81112 'address ' => [
82113 'city ' => $ response ->postalInfo ->address ->city ,
@@ -104,7 +135,17 @@ public function mapInfoResponse(ContactInfoResponse $response): array
104135 'identExpiry ' => $ response ->identExpiry ,
105136 'identKind ' => $ response ->identKind ,
106137 'legalEntity ' => $ response ->legalEntity ,
138+ 'postalCity ' => $ postalCity ,
139+ 'postalCountryCode ' => $ postalCountryCode ,
107140 'postalInfo ' => $ postalInfo ,
141+ 'postalName ' => $ postalName ,
142+ 'postalOrganization ' => $ postalOrganization ,
143+ 'postalPostalCode ' => $ postalPostalCode ,
144+ 'postalProvince ' => $ postalProvince ,
145+ 'postalStreet1 ' => $ postalStreet1 ,
146+ 'postalStreet2 ' => $ postalStreet2 ,
147+ 'postalStreet3 ' => $ postalStreet3 ,
148+ 'postalType ' => $ postalType ,
108149 'roid ' => $ response ->roid ,
109150 'statuses ' => $ response ->statuses ,
110151 'transferDate ' => $ response ->transferDate ,
0 commit comments