Skip to content

Commit d058b03

Browse files
author
Kevin Hellemun
committed
Merge branch 'release/0.12.3'
2 parents aa0c54f + 3361723 commit d058b03

File tree

78 files changed

+3900
-608
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

78 files changed

+3900
-608
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
group 'com.bunq.sdk'
2-
version '0.12.2'
2+
version '0.12.3'
33

44
apply plugin: 'java'
55
apply plugin: 'maven'

src/main/java/com/bunq/sdk/http/ApiClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ public class ApiClient {
9393
/**
9494
* Prefix for bunq's own headers.
9595
*/
96-
private static final String USER_AGENT_BUNQ = "bunq-sdk-java/0.12.2";
96+
private static final String USER_AGENT_BUNQ = "bunq-sdk-java/0.12.3";
9797
private static final String LANGUAGE_EN_US = "en_US";
9898
private static final String REGION_NL_NL = "nl_NL";
9999
private static final String GEOLOCATION_ZERO = "0 0 0 0 000";

src/main/java/com/bunq/sdk/model/generated/endpoint/Avatar.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,17 +25,17 @@
2525
*/
2626
public class Avatar extends BunqModel {
2727

28-
/**
29-
* Field constants.
30-
*/
31-
public static final String FIELD_ATTACHMENT_PUBLIC_UUID = "attachment_public_uuid";
32-
3328
/**
3429
* Endpoint constants.
3530
*/
3631
private static final String ENDPOINT_URL_CREATE = "avatar";
3732
private static final String ENDPOINT_URL_READ = "avatar/%s";
3833

34+
/**
35+
* Field constants.
36+
*/
37+
public static final String FIELD_ATTACHMENT_PUBLIC_UUID = "attachment_public_uuid";
38+
3939
/**
4040
* Object type.
4141
*/

src/main/java/com/bunq/sdk/model/generated/endpoint/BillingContractSubscription.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,17 @@
2020
*/
2121
public class BillingContractSubscription extends BunqModel {
2222

23-
/**
24-
* Field constants.
25-
*/
26-
public static final String FIELD_SUBSCRIPTION_TYPE = "subscription_type";
27-
2823
/**
2924
* Endpoint constants.
3025
*/
3126
private static final String ENDPOINT_URL_CREATE = "user/%s/billing-contract-subscription";
3227
private static final String ENDPOINT_URL_LISTING = "user/%s/billing-contract-subscription";
3328

29+
/**
30+
* Field constants.
31+
*/
32+
public static final String FIELD_SUBSCRIPTION_TYPE = "subscription_type";
33+
3434
/**
3535
* Object type.
3636
*/

src/main/java/com/bunq/sdk/model/generated/endpoint/BunqMeTab.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,6 @@
2222
*/
2323
public class BunqMeTab extends BunqModel {
2424

25-
/**
26-
* Field constants.
27-
*/
28-
public static final String FIELD_BUNQME_TAB_ENTRY = "bunqme_tab_entry";
29-
public static final String FIELD_STATUS = "status";
30-
3125
/**
3226
* Endpoint constants.
3327
*/
@@ -36,6 +30,12 @@ public class BunqMeTab extends BunqModel {
3630
private static final String ENDPOINT_URL_LISTING = "user/%s/monetary-account/%s/bunqme-tab";
3731
private static final String ENDPOINT_URL_READ = "user/%s/monetary-account/%s/bunqme-tab/%s";
3832

33+
/**
34+
* Field constants.
35+
*/
36+
public static final String FIELD_BUNQME_TAB_ENTRY = "bunqme_tab_entry";
37+
public static final String FIELD_STATUS = "status";
38+
3939
/**
4040
* Object type.
4141
*/
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
package com.bunq.sdk.model.generated.endpoint;
2+
3+
import com.bunq.sdk.model.core.BunqModel;
4+
import com.bunq.sdk.model.core.MonetaryAccountReference;
5+
import com.google.gson.annotations.Expose;
6+
import com.google.gson.annotations.SerializedName;
7+
import java.math.BigDecimal;
8+
import java.util.ArrayList;
9+
import java.util.HashMap;
10+
import java.util.List;
11+
import java.util.Map;
12+
13+
/**
14+
* Used to view bunq.me TabResultResponse objects belonging to a tab. A TabResultResponse is an
15+
* object that holds details on a tab which has been paid from the provided monetary account.
16+
*/
17+
public class BunqMeTabResultResponse extends BunqModel {
18+
19+
/**
20+
* Object type.
21+
*/
22+
private static final String OBJECT_TYPE = "BunqMeTabResultResponse";
23+
24+
/**
25+
* The payment made for the bunq.me tab.
26+
*/
27+
@Expose
28+
@SerializedName("payment")
29+
private Payment payment;
30+
31+
/**
32+
* The payment made for the bunq.me tab.
33+
*/
34+
public Payment getPayment() {
35+
return this.payment;
36+
}
37+
38+
public void setPayment(Payment payment) {
39+
this.payment = payment;
40+
}
41+
42+
}

src/main/java/com/bunq/sdk/model/generated/endpoint/Card.java

Lines changed: 43 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,13 @@
2626
*/
2727
public class Card extends BunqModel {
2828

29+
/**
30+
* Endpoint constants.
31+
*/
32+
private static final String ENDPOINT_URL_UPDATE = "user/%s/card/%s";
33+
private static final String ENDPOINT_URL_READ = "user/%s/card/%s";
34+
private static final String ENDPOINT_URL_LISTING = "user/%s/card";
35+
2936
/**
3037
* Field constants.
3138
*/
@@ -39,13 +46,6 @@ public class Card extends BunqModel {
3946
public static final String FIELD_PIN_CODE_ASSIGNMENT = "pin_code_assignment";
4047
public static final String FIELD_MONETARY_ACCOUNT_ID_FALLBACK = "monetary_account_id_fallback";
4148

42-
/**
43-
* Endpoint constants.
44-
*/
45-
private static final String ENDPOINT_URL_UPDATE = "user/%s/card/%s";
46-
private static final String ENDPOINT_URL_READ = "user/%s/card/%s";
47-
private static final String ENDPOINT_URL_LISTING = "user/%s/card";
48-
4949
/**
5050
* Object type.
5151
*/
@@ -86,6 +86,13 @@ public class Card extends BunqModel {
8686
@SerializedName("type")
8787
private String type;
8888

89+
/**
90+
* The sub-type of the card.
91+
*/
92+
@Expose
93+
@SerializedName("sub_type")
94+
private String subType;
95+
8996
/**
9097
* The second line of text on the card
9198
*/
@@ -188,6 +195,13 @@ public class Card extends BunqModel {
188195
@SerializedName("monetary_account_id_fallback")
189196
private Integer monetaryAccountIdFallback;
190197

198+
/**
199+
* The country that is domestic to the card. Defaults to country of residence of user.
200+
*/
201+
@Expose
202+
@SerializedName("country")
203+
private String country;
204+
191205
public static BunqResponse<Card> update(ApiContext apiContext, Map<String, Object> requestMap, Integer userId, Integer cardId) {
192206
return update(apiContext, requestMap, userId, cardId, new HashMap<>());
193207
}
@@ -293,6 +307,17 @@ public void setType(String type) {
293307
this.type = type;
294308
}
295309

310+
/**
311+
* The sub-type of the card.
312+
*/
313+
public String getSubType() {
314+
return this.subType;
315+
}
316+
317+
public void setSubType(String subType) {
318+
this.subType = subType;
319+
}
320+
296321
/**
297322
* The second line of text on the card
298323
*/
@@ -451,4 +476,15 @@ public void setMonetaryAccountIdFallback(Integer monetaryAccountIdFallback) {
451476
this.monetaryAccountIdFallback = monetaryAccountIdFallback;
452477
}
453478

479+
/**
480+
* The country that is domestic to the card. Defaults to country of residence of user.
481+
*/
482+
public String getCountry() {
483+
return this.country;
484+
}
485+
486+
public void setCountry(String country) {
487+
this.country = country;
488+
}
489+
454490
}

src/main/java/com/bunq/sdk/model/generated/endpoint/CardDebit.java

Lines changed: 42 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@
2727
*/
2828
public class CardDebit extends BunqModel {
2929

30+
/**
31+
* Endpoint constants.
32+
*/
33+
private static final String ENDPOINT_URL_CREATE = "user/%s/card-debit";
34+
3035
/**
3136
* Field constants.
3237
*/
@@ -37,11 +42,7 @@ public class CardDebit extends BunqModel {
3742
public static final String FIELD_TYPE = "type";
3843
public static final String FIELD_PIN_CODE_ASSIGNMENT = "pin_code_assignment";
3944
public static final String FIELD_MONETARY_ACCOUNT_ID_FALLBACK = "monetary_account_id_fallback";
40-
41-
/**
42-
* Endpoint constants.
43-
*/
44-
private static final String ENDPOINT_URL_CREATE = "user/%s/card-debit";
45+
public static final String FIELD_COUNTRY = "country";
4546

4647
/**
4748
* Object type.
@@ -83,6 +84,13 @@ public class CardDebit extends BunqModel {
8384
@SerializedName("type")
8485
private String type;
8586

87+
/**
88+
* The sub_type of card.
89+
*/
90+
@Expose
91+
@SerializedName("sub_type")
92+
private String subType;
93+
8694
/**
8795
* The second line of text on the card
8896
*/
@@ -175,6 +183,13 @@ public class CardDebit extends BunqModel {
175183
@SerializedName("monetary_account_id_fallback")
176184
private Integer monetaryAccountIdFallback;
177185

186+
/**
187+
* The country that is domestic to the card. Defaults to country of residence of user.
188+
*/
189+
@Expose
190+
@SerializedName("country")
191+
private String country;
192+
178193
public static BunqResponse<CardDebit> create(ApiContext apiContext, Map<String, Object> requestMap, Integer userId) {
179194
return create(apiContext, requestMap, userId, new HashMap<>());
180195
}
@@ -246,6 +261,17 @@ public void setType(String type) {
246261
this.type = type;
247262
}
248263

264+
/**
265+
* The sub_type of card.
266+
*/
267+
public String getSubType() {
268+
return this.subType;
269+
}
270+
271+
public void setSubType(String subType) {
272+
this.subType = subType;
273+
}
274+
249275
/**
250276
* The second line of text on the card
251277
*/
@@ -390,4 +416,15 @@ public void setMonetaryAccountIdFallback(Integer monetaryAccountIdFallback) {
390416
this.monetaryAccountIdFallback = monetaryAccountIdFallback;
391417
}
392418

419+
/**
420+
* The country that is domestic to the card. Defaults to country of residence of user.
421+
*/
422+
public String getCountry() {
423+
return this.country;
424+
}
425+
426+
public void setCountry(String country) {
427+
this.country = country;
428+
}
429+
393430
}

src/main/java/com/bunq/sdk/model/generated/endpoint/CardReplace.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,15 @@
2626
public class CardReplace extends BunqModel {
2727

2828
/**
29-
* Field constants.
29+
* Endpoint constants.
3030
*/
31-
public static final String FIELD_PIN_CODE = "pin_code";
32-
public static final String FIELD_SECOND_LINE = "second_line";
31+
private static final String ENDPOINT_URL_CREATE = "user/%s/card/%s/replace";
3332

3433
/**
35-
* Endpoint constants.
34+
* Field constants.
3635
*/
37-
private static final String ENDPOINT_URL_CREATE = "user/%s/card/%s/replace";
36+
public static final String FIELD_PIN_CODE = "pin_code";
37+
public static final String FIELD_SECOND_LINE = "second_line";
3838

3939
/**
4040
* Object type.

src/main/java/com/bunq/sdk/model/generated/endpoint/CashRegister.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,14 @@
2929
*/
3030
public class CashRegister extends BunqModel {
3131

32+
/**
33+
* Endpoint constants.
34+
*/
35+
private static final String ENDPOINT_URL_CREATE = "user/%s/monetary-account/%s/cash-register";
36+
private static final String ENDPOINT_URL_READ = "user/%s/monetary-account/%s/cash-register/%s";
37+
private static final String ENDPOINT_URL_UPDATE = "user/%s/monetary-account/%s/cash-register/%s";
38+
private static final String ENDPOINT_URL_LISTING = "user/%s/monetary-account/%s/cash-register";
39+
3240
/**
3341
* Field constants.
3442
*/
@@ -39,14 +47,6 @@ public class CashRegister extends BunqModel {
3947
public static final String FIELD_NOTIFICATION_FILTERS = "notification_filters";
4048
public static final String FIELD_TAB_TEXT_WAITING_SCREEN = "tab_text_waiting_screen";
4149

42-
/**
43-
* Endpoint constants.
44-
*/
45-
private static final String ENDPOINT_URL_CREATE = "user/%s/monetary-account/%s/cash-register";
46-
private static final String ENDPOINT_URL_READ = "user/%s/monetary-account/%s/cash-register/%s";
47-
private static final String ENDPOINT_URL_UPDATE = "user/%s/monetary-account/%s/cash-register/%s";
48-
private static final String ENDPOINT_URL_LISTING = "user/%s/monetary-account/%s/cash-register";
49-
5050
/**
5151
* Object type.
5252
*/

0 commit comments

Comments
 (0)