@@ -29,6 +29,7 @@ public class Company extends BunqModel {
29
29
public static final String FIELD_UBO = "ubo" ;
30
30
public static final String FIELD_CHAMBER_OF_COMMERCE_NUMBER = "chamber_of_commerce_number" ;
31
31
public static final String FIELD_LEGAL_FORM = "legal_form" ;
32
+ public static final String FIELD_SUBSCRIPTION_TYPE = "subscription_type" ;
32
33
public static final String FIELD_AVATAR_UUID = "avatar_uuid" ;
33
34
/**
34
35
* Endpoint constants.
@@ -99,6 +100,13 @@ public class Company extends BunqModel {
99
100
@ SerializedName ("legal_form_field_for_request" )
100
101
private String legalFormFieldForRequest ;
101
102
103
+ /**
104
+ * The subscription type for the company.
105
+ */
106
+ @ Expose
107
+ @ SerializedName ("subscription_type_field_for_request" )
108
+ private String subscriptionTypeFieldForRequest ;
109
+
102
110
/**
103
111
* The public UUID of the company's avatar.
104
112
*/
@@ -107,45 +115,50 @@ public class Company extends BunqModel {
107
115
private String avatarUuidFieldForRequest ;
108
116
109
117
public Company () {
110
- this (null , null , null , null , null , null , null , null );
118
+ this (null , null , null , null , null , null , null , null , null );
111
119
}
112
120
113
121
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 );
115
123
}
116
124
117
125
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 );
119
127
}
120
128
121
129
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 );
123
131
}
124
132
125
133
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 );
127
135
}
128
136
129
137
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 );
131
139
}
132
140
133
141
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 );
135
143
}
136
144
137
145
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 );
139
147
}
140
148
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 ) {
142
154
this .nameFieldForRequest = name ;
143
155
this .addressMainFieldForRequest = addressMain ;
144
156
this .addressPostalFieldForRequest = addressPostal ;
145
157
this .countryFieldForRequest = country ;
146
158
this .uboFieldForRequest = ubo ;
147
159
this .chamberOfCommerceNumberFieldForRequest = chamberOfCommerceNumber ;
148
160
this .legalFormFieldForRequest = legalForm ;
161
+ this .subscriptionTypeFieldForRequest = subscriptionType ;
149
162
this .avatarUuidFieldForRequest = avatarUuid ;
150
163
}
151
164
@@ -158,9 +171,10 @@ public Company(String name, Address addressMain, Address addressPostal, String c
158
171
* @param ubo The names and birth dates of the company's ultimate beneficiary owners. Minimum
159
172
* zero, maximum four.
160
173
* @param chamberOfCommerceNumber The company's chamber of commerce number.
174
+ * @param subscriptionType The subscription type for the company.
161
175
* @param avatarUuid The public UUID of the company's avatar.
162
176
*/
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 ) {
164
178
ApiClient apiClient = new ApiClient (getApiContext ());
165
179
166
180
if (customHeaders == null ) {
@@ -175,6 +189,7 @@ public static BunqResponse<Integer> create(String name, Address addressMain, Add
175
189
requestMap .put (FIELD_UBO , ubo );
176
190
requestMap .put (FIELD_CHAMBER_OF_COMMERCE_NUMBER , chamberOfCommerceNumber );
177
191
requestMap .put (FIELD_LEGAL_FORM , legalForm );
192
+ requestMap .put (FIELD_SUBSCRIPTION_TYPE , subscriptionType );
178
193
requestMap .put (FIELD_AVATAR_UUID , avatarUuid );
179
194
180
195
byte [] requestBytes = determineAllRequestByte (requestMap );
@@ -184,39 +199,43 @@ public static BunqResponse<Integer> create(String name, Address addressMain, Add
184
199
}
185
200
186
201
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 );
188
203
}
189
204
190
205
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 );
192
207
}
193
208
194
209
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 );
196
211
}
197
212
198
213
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 );
200
215
}
201
216
202
217
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 );
204
219
}
205
220
206
221
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 );
208
223
}
209
224
210
225
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 );
212
227
}
213
228
214
229
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 );
216
235
}
217
236
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 );
220
239
}
221
240
222
241
/**
0 commit comments