Skip to content

Commit 082b66d

Browse files
committed
Merge branch 'release/1.10.16'
2 parents 86795db + 6117b79 commit 082b66d

File tree

216 files changed

+48403
-47489
lines changed

Some content is hidden

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

216 files changed

+48403
-47489
lines changed

.idea/.name

Lines changed: 0 additions & 1 deletion
This file was deleted.

.idea/codeStyleSettings.xml

Lines changed: 0 additions & 32 deletions
This file was deleted.

.idea/compiler.xml

Lines changed: 0 additions & 9 deletions
This file was deleted.

.idea/misc.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/modules.xml

Lines changed: 2 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

CHANGELOG.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
# Change Log
22

3-
## [Unreleased](https://github.com/bunq/sdk_java/tree/HEAD)
4-
5-
[Full Changelog](https://github.com/bunq/sdk_java/compare/1.10.0...HEAD)
3+
## [1.10.1](https://github.com/bunq/sdk_java/tree/1.10.1) (2019-05-22)
4+
[Full Changelog](https://github.com/bunq/sdk_java/compare/1.10.0...1.10.1)
65

76
**Closed issues:**
87

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 '1.10.1'
2+
version '1.10.16'
33

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

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public enum BunqHeader {
1818
LANGUAGE("X-Bunq-Language", "en_US"),
1919
REGION("X-Bunq-Region", "nl_NL"),
2020
SERVER_SIGNATURE("X-Bunq-Server-Signature"),
21-
USER_AGENT("User-Agent", "bunq-sdk-java/1.10.1");
21+
USER_AGENT("User-Agent", "bunq-sdk-java/1.10.16");
2222

2323
private static final String PREFIX = "X-Bunq-";
2424

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

Lines changed: 40 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -14,52 +14,54 @@
1414
*/
1515
public class AttachmentConversationContent extends BunqModel {
1616

17-
/**
18-
* Endpoint constants.
19-
*/
20-
protected static final String ENDPOINT_URL_LISTING = "user/%s/chat-conversation/%s/attachment/%s/content";
17+
/**
18+
* Endpoint constants.
19+
*/
20+
protected static final String ENDPOINT_URL_LISTING = "user/%s/chat-conversation/%s/attachment/%s/content";
2121

22-
/**
23-
* Object type.
24-
*/
25-
protected static final String OBJECT_TYPE_GET = "AttachmentConversationContent";
22+
/**
23+
* Object type.
24+
*/
25+
protected static final String OBJECT_TYPE_GET = "AttachmentConversationContent";
2626

27-
/**
28-
* Get the raw content of a specific attachment.
29-
*/
30-
public static BunqResponse<byte[]> list(Integer chatConversationId, Integer attachmentId, Map<String, String> params, Map<String, String> customHeaders) {
31-
ApiClient apiClient = new ApiClient(getApiContext());
32-
BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_LISTING, determineUserId(), chatConversationId, attachmentId), params, customHeaders);
27+
/**
28+
* Get the raw content of a specific attachment.
29+
*/
30+
public static BunqResponse<byte[]> list(Integer chatConversationId, Integer attachmentId, Map<String, String> params, Map<String, String> customHeaders) {
31+
ApiClient apiClient = new ApiClient(getApiContext());
32+
BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_LISTING, determineUserId(), chatConversationId, attachmentId), params, customHeaders);
3333

34-
return new BunqResponse<>(responseRaw.getBodyBytes(), responseRaw.getHeaders());
35-
}
34+
return new BunqResponse<>(responseRaw.getBodyBytes(), responseRaw.getHeaders());
35+
}
3636

37-
public static BunqResponse<byte[]> list() {
38-
return list(null, null, null, null);
39-
}
37+
public static BunqResponse<byte[]> list() {
38+
return list(null, null, null, null);
39+
}
4040

41-
public static BunqResponse<byte[]> list(Integer chatConversationId) {
42-
return list(chatConversationId, null, null, null);
43-
}
41+
public static BunqResponse<byte[]> list(Integer chatConversationId) {
42+
return list(chatConversationId, null, null, null);
43+
}
4444

45-
public static BunqResponse<byte[]> list(Integer chatConversationId, Integer attachmentId) {
46-
return list(chatConversationId, attachmentId, null, null);
47-
}
45+
public static BunqResponse<byte[]> list(Integer chatConversationId, Integer attachmentId) {
46+
return list(chatConversationId, attachmentId, null, null);
47+
}
4848

49-
public static BunqResponse<byte[]> list(Integer chatConversationId, Integer attachmentId, Map<String, String> params) {
50-
return list(chatConversationId, attachmentId, params, null);
51-
}
49+
public static BunqResponse<byte[]> list(Integer chatConversationId, Integer attachmentId, Map<String, String> params) {
50+
return list(chatConversationId, attachmentId, params, null);
51+
}
5252

53-
/**
54-
*/
55-
public static AttachmentConversationContent fromJsonReader(JsonReader reader) {
56-
return fromJsonReader(AttachmentConversationContent.class, reader);
57-
}
53+
/**
54+
*
55+
*/
56+
public static AttachmentConversationContent fromJsonReader(JsonReader reader) {
57+
return fromJsonReader(AttachmentConversationContent.class, reader);
58+
}
5859

59-
/**
60-
*/
61-
public boolean isAllFieldNull() {
62-
return true;
63-
}
60+
/**
61+
*
62+
*/
63+
public boolean isAllFieldNull() {
64+
return true;
65+
}
6466

6567
}

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

Lines changed: 79 additions & 77 deletions
Original file line numberDiff line numberDiff line change
@@ -17,86 +17,88 @@
1717
*/
1818
public class AttachmentMonetaryAccount extends BunqModel {
1919

20-
/**
21-
* Endpoint constants.
22-
*/
23-
protected static final String ENDPOINT_URL_CREATE = "user/%s/monetary-account/%s/attachment";
24-
25-
/**
26-
* The attachment.
27-
*/
28-
@Expose
29-
@SerializedName("attachment")
30-
private Attachment attachment;
31-
32-
/**
33-
* The ID of the attachment created.
34-
*/
35-
@Expose
36-
@SerializedName("id")
37-
private Integer id;
38-
39-
/**
40-
* Create a new monetary account attachment. Create a POST request with a payload that contains
41-
* the binary representation of the file, without any JSON wrapping. Make sure you define the
42-
* MIME type (i.e. image/jpeg) in the Content-Type header. You are required to provide a
43-
* description of the attachment using the X-Bunq-Attachment-Description header.
44-
*/
45-
public static BunqResponse<Integer> create(Integer monetaryAccountId, Map<String, String> customHeaders, byte[] bytes) {
46-
ApiClient apiClient = new ApiClient(getApiContext());
47-
BunqResponseRaw responseRaw = apiClient.post(String.format(ENDPOINT_URL_CREATE, determineUserId(), determineMonetaryAccountId(monetaryAccountId)), bytes, customHeaders);
48-
49-
return processForId(responseRaw);
50-
}
51-
52-
public static BunqResponse<Integer> create(byte[] bytes) {
53-
return create(null, null, bytes);
54-
}
55-
56-
public static BunqResponse<Integer> create(Integer monetaryAccountId, byte[] bytes) {
57-
return create(monetaryAccountId, null, bytes);
58-
}
59-
60-
/**
61-
*/
62-
public static AttachmentMonetaryAccount fromJsonReader(JsonReader reader) {
63-
return fromJsonReader(AttachmentMonetaryAccount.class, reader);
64-
}
65-
66-
/**
67-
* The attachment.
68-
*/
69-
public Attachment getAttachment() {
70-
return this.attachment;
71-
}
72-
73-
public void setAttachment(Attachment attachment) {
74-
this.attachment = attachment;
75-
}
76-
77-
/**
78-
* The ID of the attachment created.
79-
*/
80-
public Integer getId() {
81-
return this.id;
82-
}
83-
84-
public void setId(Integer id) {
85-
this.id = id;
86-
}
87-
88-
/**
89-
*/
90-
public boolean isAllFieldNull() {
91-
if (this.attachment != null) {
92-
return false;
20+
/**
21+
* Endpoint constants.
22+
*/
23+
protected static final String ENDPOINT_URL_CREATE = "user/%s/monetary-account/%s/attachment";
24+
25+
/**
26+
* The attachment.
27+
*/
28+
@Expose
29+
@SerializedName("attachment")
30+
private Attachment attachment;
31+
32+
/**
33+
* The ID of the attachment created.
34+
*/
35+
@Expose
36+
@SerializedName("id")
37+
private Integer id;
38+
39+
/**
40+
* Create a new monetary account attachment. Create a POST request with a payload that contains
41+
* the binary representation of the file, without any JSON wrapping. Make sure you define the
42+
* MIME type (i.e. image/jpeg) in the Content-Type header. You are required to provide a
43+
* description of the attachment using the X-Bunq-Attachment-Description header.
44+
*/
45+
public static BunqResponse<Integer> create(Integer monetaryAccountId, Map<String, String> customHeaders, byte[] bytes) {
46+
ApiClient apiClient = new ApiClient(getApiContext());
47+
BunqResponseRaw responseRaw = apiClient.post(String.format(ENDPOINT_URL_CREATE, determineUserId(), determineMonetaryAccountId(monetaryAccountId)), bytes, customHeaders);
48+
49+
return processForId(responseRaw);
9350
}
9451

95-
if (this.id != null) {
96-
return false;
52+
public static BunqResponse<Integer> create(byte[] bytes) {
53+
return create(null, null, bytes);
9754
}
9855

99-
return true;
100-
}
56+
public static BunqResponse<Integer> create(Integer monetaryAccountId, byte[] bytes) {
57+
return create(monetaryAccountId, null, bytes);
58+
}
59+
60+
/**
61+
*
62+
*/
63+
public static AttachmentMonetaryAccount fromJsonReader(JsonReader reader) {
64+
return fromJsonReader(AttachmentMonetaryAccount.class, reader);
65+
}
66+
67+
/**
68+
* The attachment.
69+
*/
70+
public Attachment getAttachment() {
71+
return this.attachment;
72+
}
73+
74+
public void setAttachment(Attachment attachment) {
75+
this.attachment = attachment;
76+
}
77+
78+
/**
79+
* The ID of the attachment created.
80+
*/
81+
public Integer getId() {
82+
return this.id;
83+
}
84+
85+
public void setId(Integer id) {
86+
this.id = id;
87+
}
88+
89+
/**
90+
*
91+
*/
92+
public boolean isAllFieldNull() {
93+
if (this.attachment != null) {
94+
return false;
95+
}
96+
97+
if (this.id != null) {
98+
return false;
99+
}
100+
101+
return true;
102+
}
101103

102104
}

0 commit comments

Comments
 (0)