File tree Expand file tree Collapse file tree 2 files changed +13
-6
lines changed
packages/clients/src/api/domain/v2beta1 Expand file tree Collapse file tree 2 files changed +13
-6
lines changed Original file line number Diff line number Diff line change @@ -444,7 +444,11 @@ export const unmarshalContact = (data: unknown) => {
444444 lastname : data . lastname ,
445445 legalForm : data . legal_form ,
446446 phoneNumber : data . phone_number ,
447- questions : unmarshalArrayOfObject ( data . questions , unmarshalContactQuestion ) ,
447+ questions : unmarshalArrayOfObject (
448+ data . questions ,
449+ unmarshalContactQuestion ,
450+ false ,
451+ ) ,
448452 resale : data . resale ,
449453 state : data . state ,
450454 vatIdentificationCode : data . vat_identification_code ,
@@ -1517,9 +1521,9 @@ const marshalNewContact = (
15171521 lastname : request . lastname ,
15181522 legal_form : request . legalForm ,
15191523 phone_number : request . phoneNumber ,
1520- questions : request . questions . map ( elt =>
1521- marshalContactQuestion ( elt , defaults ) ,
1522- ) ,
1524+ questions : request . questions
1525+ ? request . questions . map ( elt => marshalContactQuestion ( elt , defaults ) )
1526+ : undefined ,
15231527 resale : request . resale ,
15241528 state : request . state ,
15251529 vat_identification_code : request . vatIdentificationCode ,
Original file line number Diff line number Diff line change @@ -216,7 +216,8 @@ export interface Contact {
216216 companyIdentificationCode : string
217217 lang : LanguageCode
218218 resale : boolean
219- questions : Array < ContactQuestion >
219+ /** @deprecated */
220+ questions ?: Array < ContactQuestion >
220221 extensionFr ?: ContactExtensionFR
221222 extensionEu ?: ContactExtensionEU
222223 whoisOptIn : boolean
@@ -616,7 +617,8 @@ export interface NewContact {
616617 companyIdentificationCode ?: string
617618 lang : LanguageCode
618619 resale : boolean
619- questions : Array < ContactQuestion >
620+ /** @deprecated */
621+ questions ?: Array < ContactQuestion >
620622 extensionFr ?: ContactExtensionFR
621623 extensionEu ?: ContactExtensionEU
622624 whoisOptIn : boolean
@@ -1099,6 +1101,7 @@ export type RegistrarApiUpdateContactRequest = {
10991101 companyIdentificationCode ?: string
11001102 lang : LanguageCode
11011103 resale ?: boolean
1104+ /** @deprecated */
11021105 questions ?: Array < UpdateContactRequestQuestion >
11031106 extensionFr ?: ContactExtensionFR
11041107 extensionEu ?: ContactExtensionEU
You can’t perform that action at this time.
0 commit comments