@@ -29,6 +29,7 @@ public class Company extends BunqModel {
2929 public static final String FIELD_UBO = "ubo" ;
3030 public static final String FIELD_CHAMBER_OF_COMMERCE_NUMBER = "chamber_of_commerce_number" ;
3131 public static final String FIELD_LEGAL_FORM = "legal_form" ;
32+ public static final String FIELD_SUBSCRIPTION_TYPE = "subscription_type" ;
3233 public static final String FIELD_AVATAR_UUID = "avatar_uuid" ;
3334 /**
3435 * Endpoint constants.
@@ -99,6 +100,13 @@ public class Company extends BunqModel {
99100 @ SerializedName ("legal_form_field_for_request" )
100101 private String legalFormFieldForRequest ;
101102
103+ /**
104+ * The subscription type for the company.
105+ */
106+ @ Expose
107+ @ SerializedName ("subscription_type_field_for_request" )
108+ private String subscriptionTypeFieldForRequest ;
109+
102110 /**
103111 * The public UUID of the company's avatar.
104112 */
@@ -107,45 +115,50 @@ public class Company extends BunqModel {
107115 private String avatarUuidFieldForRequest ;
108116
109117 public Company () {
110- this (null , null , null , null , null , null , null , null );
118+ this (null , null , null , null , null , null , null , null , null );
111119 }
112120
113121 public Company (String name ) {
114- this (name , null , null , null , null , null , null , null );
122+ this (name , null , null , null , null , null , null , null , null );
115123 }
116124
117125 public Company (String name , Address addressMain ) {
118- this (name , addressMain , null , null , null , null , null , null );
126+ this (name , addressMain , null , null , null , null , null , null , null );
119127 }
120128
121129 public Company (String name , Address addressMain , Address addressPostal ) {
122- this (name , addressMain , addressPostal , null , null , null , null , null );
130+ this (name , addressMain , addressPostal , null , null , null , null , null , null );
123131 }
124132
125133 public Company (String name , Address addressMain , Address addressPostal , String country ) {
126- this (name , addressMain , addressPostal , country , null , null , null , null );
134+ this (name , addressMain , addressPostal , country , null , null , null , null , null );
127135 }
128136
129137 public Company (String name , Address addressMain , Address addressPostal , String country , String legalForm ) {
130- this (name , addressMain , addressPostal , country , legalForm , null , null , null );
138+ this (name , addressMain , addressPostal , country , legalForm , null , null , null , null );
131139 }
132140
133141 public Company (String name , Address addressMain , Address addressPostal , String country , String legalForm , List <Ubo > ubo ) {
134- this (name , addressMain , addressPostal , country , legalForm , ubo , null , null );
142+ this (name , addressMain , addressPostal , country , legalForm , ubo , null , null , null );
135143 }
136144
137145 public Company (String name , Address addressMain , Address addressPostal , String country , String legalForm , List <Ubo > ubo , String chamberOfCommerceNumber ) {
138- this (name , addressMain , addressPostal , country , legalForm , ubo , chamberOfCommerceNumber , null );
146+ this (name , addressMain , addressPostal , country , legalForm , ubo , chamberOfCommerceNumber , null , null );
139147 }
140148
141- public Company (String name , Address addressMain , Address addressPostal , String country , String legalForm , List <Ubo > ubo , String chamberOfCommerceNumber , String avatarUuid ) {
149+ public Company (String name , Address addressMain , Address addressPostal , String country , String legalForm , List <Ubo > ubo , String chamberOfCommerceNumber , String subscriptionType ) {
150+ this (name , addressMain , addressPostal , country , legalForm , ubo , chamberOfCommerceNumber , subscriptionType , null );
151+ }
152+
153+ public Company (String name , Address addressMain , Address addressPostal , String country , String legalForm , List <Ubo > ubo , String chamberOfCommerceNumber , String subscriptionType , String avatarUuid ) {
142154 this .nameFieldForRequest = name ;
143155 this .addressMainFieldForRequest = addressMain ;
144156 this .addressPostalFieldForRequest = addressPostal ;
145157 this .countryFieldForRequest = country ;
146158 this .uboFieldForRequest = ubo ;
147159 this .chamberOfCommerceNumberFieldForRequest = chamberOfCommerceNumber ;
148160 this .legalFormFieldForRequest = legalForm ;
161+ this .subscriptionTypeFieldForRequest = subscriptionType ;
149162 this .avatarUuidFieldForRequest = avatarUuid ;
150163 }
151164
@@ -158,9 +171,10 @@ public Company(String name, Address addressMain, Address addressPostal, String c
158171 * @param ubo The names and birth dates of the company's ultimate beneficiary owners. Minimum
159172 * zero, maximum four.
160173 * @param chamberOfCommerceNumber The company's chamber of commerce number.
174+ * @param subscriptionType The subscription type for the company.
161175 * @param avatarUuid The public UUID of the company's avatar.
162176 */
163- public static BunqResponse <Integer > create (String name , Address addressMain , Address addressPostal , String country , String legalForm , List <Ubo > ubo , String chamberOfCommerceNumber , String avatarUuid , Map <String , String > customHeaders ) {
177+ public static BunqResponse <Integer > create (String name , Address addressMain , Address addressPostal , String country , String legalForm , List <Ubo > ubo , String chamberOfCommerceNumber , String subscriptionType , String avatarUuid , Map <String , String > customHeaders ) {
164178 ApiClient apiClient = new ApiClient (getApiContext ());
165179
166180 if (customHeaders == null ) {
@@ -175,6 +189,7 @@ public static BunqResponse<Integer> create(String name, Address addressMain, Add
175189 requestMap .put (FIELD_UBO , ubo );
176190 requestMap .put (FIELD_CHAMBER_OF_COMMERCE_NUMBER , chamberOfCommerceNumber );
177191 requestMap .put (FIELD_LEGAL_FORM , legalForm );
192+ requestMap .put (FIELD_SUBSCRIPTION_TYPE , subscriptionType );
178193 requestMap .put (FIELD_AVATAR_UUID , avatarUuid );
179194
180195 byte [] requestBytes = determineAllRequestByte (requestMap );
@@ -184,39 +199,43 @@ public static BunqResponse<Integer> create(String name, Address addressMain, Add
184199 }
185200
186201 public static BunqResponse <Integer > create () {
187- return create (null , null , null , null , null , null , null , null , null );
202+ return create (null , null , null , null , null , null , null , null , null , null );
188203 }
189204
190205 public static BunqResponse <Integer > create (String name ) {
191- return create (name , null , null , null , null , null , null , null , null );
206+ return create (name , null , null , null , null , null , null , null , null , null );
192207 }
193208
194209 public static BunqResponse <Integer > create (String name , Address addressMain ) {
195- return create (name , addressMain , null , null , null , null , null , null , null );
210+ return create (name , addressMain , null , null , null , null , null , null , null , null );
196211 }
197212
198213 public static BunqResponse <Integer > create (String name , Address addressMain , Address addressPostal ) {
199- return create (name , addressMain , addressPostal , null , null , null , null , null , null );
214+ return create (name , addressMain , addressPostal , null , null , null , null , null , null , null );
200215 }
201216
202217 public static BunqResponse <Integer > create (String name , Address addressMain , Address addressPostal , String country ) {
203- return create (name , addressMain , addressPostal , country , null , null , null , null , null );
218+ return create (name , addressMain , addressPostal , country , null , null , null , null , null , null );
204219 }
205220
206221 public static BunqResponse <Integer > create (String name , Address addressMain , Address addressPostal , String country , String legalForm ) {
207- return create (name , addressMain , addressPostal , country , legalForm , null , null , null , null );
222+ return create (name , addressMain , addressPostal , country , legalForm , null , null , null , null , null );
208223 }
209224
210225 public static BunqResponse <Integer > create (String name , Address addressMain , Address addressPostal , String country , String legalForm , List <Ubo > ubo ) {
211- return create (name , addressMain , addressPostal , country , legalForm , ubo , null , null , null );
226+ return create (name , addressMain , addressPostal , country , legalForm , ubo , null , null , null , null );
212227 }
213228
214229 public static BunqResponse <Integer > create (String name , Address addressMain , Address addressPostal , String country , String legalForm , List <Ubo > ubo , String chamberOfCommerceNumber ) {
215- return create (name , addressMain , addressPostal , country , legalForm , ubo , chamberOfCommerceNumber , null , null );
230+ return create (name , addressMain , addressPostal , country , legalForm , ubo , chamberOfCommerceNumber , null , null , null );
231+ }
232+
233+ public static BunqResponse <Integer > create (String name , Address addressMain , Address addressPostal , String country , String legalForm , List <Ubo > ubo , String chamberOfCommerceNumber , String subscriptionType ) {
234+ return create (name , addressMain , addressPostal , country , legalForm , ubo , chamberOfCommerceNumber , subscriptionType , null , null );
216235 }
217236
218- public static BunqResponse <Integer > create (String name , Address addressMain , Address addressPostal , String country , String legalForm , List <Ubo > ubo , String chamberOfCommerceNumber , String avatarUuid ) {
219- return create (name , addressMain , addressPostal , country , legalForm , ubo , chamberOfCommerceNumber , avatarUuid , null );
237+ public static BunqResponse <Integer > create (String name , Address addressMain , Address addressPostal , String country , String legalForm , List <Ubo > ubo , String chamberOfCommerceNumber , String subscriptionType , String avatarUuid ) {
238+ return create (name , addressMain , addressPostal , country , legalForm , ubo , chamberOfCommerceNumber , subscriptionType , avatarUuid , null );
220239 }
221240
222241 /**
0 commit comments