Skip to content

Commit 700b025

Browse files
author
Deniz Yildirim
committed
Use Long data type in all generated objects
1 parent 72bbc75 commit 700b025

File tree

183 files changed

+3442
-2705
lines changed

Some content is hidden

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

183 files changed

+3442
-2705
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public class AdditionalTransactionInformationCategoryApiObject extends BunqModel
5757
*/
5858
@Expose
5959
@SerializedName("order")
60-
private Integer order;
60+
private Long order;
6161

6262
/**
6363
* The description of the category.
@@ -140,11 +140,11 @@ public void setStatus(String status) {
140140
/**
141141
* The sort order of the category.
142142
*/
143-
public Integer getOrder() {
143+
public Long getOrder() {
144144
return this.order;
145145
}
146146

147-
public void setOrder(Integer order) {
147+
public void setOrder(Long order) {
148148
this.order = order;
149149
}
150150

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public class AttachmentConversationContentApiObject extends BunqModel {
3535
/**
3636
* Get the raw content of a specific attachment.
3737
*/
38-
public static BunqResponse<byte[]> list(Integer chatConversationId, Integer attachmentId, Map<String, String> params, Map<String, String> customHeaders) {
38+
public static BunqResponse<byte[]> list(Long chatConversationId, Long attachmentId, Map<String, String> params, Map<String, String> customHeaders) {
3939
ApiClient apiClient = new ApiClient(getApiContext());
4040
BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_LISTING, determineUserId(), chatConversationId, attachmentId), params, customHeaders);
4141

@@ -45,13 +45,13 @@ public static BunqResponse<byte[]> list(Integer chatConversationId, Integer atta
4545
public static BunqResponse<byte[]> list() {
4646
return list(null, null, null, null);
4747
}
48-
public static BunqResponse<byte[]> list(Integer chatConversationId) {
48+
public static BunqResponse<byte[]> list(Long chatConversationId) {
4949
return list(chatConversationId, null, null, null);
5050
}
51-
public static BunqResponse<byte[]> list(Integer chatConversationId, Integer attachmentId) {
51+
public static BunqResponse<byte[]> list(Long chatConversationId, Long attachmentId) {
5252
return list(chatConversationId, attachmentId, null, null);
5353
}
54-
public static BunqResponse<byte[]> list(Integer chatConversationId, Integer attachmentId, Map<String, String> params) {
54+
public static BunqResponse<byte[]> list(Long chatConversationId, Long attachmentId, Map<String, String> params) {
5555
return list(chatConversationId, attachmentId, params, null);
5656
}
5757

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,15 @@ public class AttachmentMonetaryAccountApiObject extends BunqModel {
4040
*/
4141
@Expose
4242
@SerializedName("id")
43-
private Integer id;
43+
private Long id;
4444

4545
/**
4646
* Create a new monetary account attachment. Create a POST request with a payload that contains
4747
* the binary representation of the file, without any JSON wrapping. Make sure you define the
4848
* MIME type (i.e. image/jpeg) in the Content-Type header. You are required to provide a
4949
* description of the attachment using the X-Bunq-Attachment-Description header.
5050
*/
51-
public static BunqResponse<Long> create(Integer monetaryAccountId, Map<String, String> customHeaders, byte[] bytes) {
51+
public static BunqResponse<Long> create(Long monetaryAccountId, Map<String, String> customHeaders, byte[] bytes) {
5252
ApiClient apiClient = new ApiClient(getApiContext());
5353
BunqResponseRaw responseRaw = apiClient.post(String.format(ENDPOINT_URL_CREATE, determineUserId(), determineMonetaryAccountId(monetaryAccountId)), bytes, customHeaders);
5454

@@ -59,7 +59,7 @@ public static BunqResponse<Long> create( byte[] bytes) {
5959
return create(null, null, bytes);
6060
}
6161

62-
public static BunqResponse<Long> create(Integer monetaryAccountId, byte[] bytes) {
62+
public static BunqResponse<Long> create(Long monetaryAccountId, byte[] bytes) {
6363
return create(monetaryAccountId, null, bytes);
6464
}
6565

@@ -77,11 +77,11 @@ public void setAttachment(AttachmentObject attachment) {
7777
/**
7878
* The ID of the attachment created.
7979
*/
80-
public Integer getId() {
80+
public Long getId() {
8181
return this.id;
8282
}
8383

84-
public void setId(Integer id) {
84+
public void setId(Long id) {
8585
this.id = id;
8686
}
8787

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public class AttachmentMonetaryAccountContentApiObject extends BunqModel {
3535
/**
3636
* Get the raw content of a specific attachment.
3737
*/
38-
public static BunqResponse<byte[]> list(Integer attachmentId, Integer monetaryAccountId, Map<String, String> params, Map<String, String> customHeaders) {
38+
public static BunqResponse<byte[]> list(Long attachmentId, Long monetaryAccountId, Map<String, String> params, Map<String, String> customHeaders) {
3939
ApiClient apiClient = new ApiClient(getApiContext());
4040
BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_LISTING, determineUserId(), determineMonetaryAccountId(monetaryAccountId), attachmentId), params, customHeaders);
4141

@@ -45,13 +45,13 @@ public static BunqResponse<byte[]> list(Integer attachmentId, Integer monetaryAc
4545
public static BunqResponse<byte[]> list() {
4646
return list(null, null, null, null);
4747
}
48-
public static BunqResponse<byte[]> list(Integer attachmentId) {
48+
public static BunqResponse<byte[]> list(Long attachmentId) {
4949
return list(attachmentId, null, null, null);
5050
}
51-
public static BunqResponse<byte[]> list(Integer attachmentId, Integer monetaryAccountId) {
51+
public static BunqResponse<byte[]> list(Long attachmentId, Long monetaryAccountId) {
5252
return list(attachmentId, monetaryAccountId, null, null);
5353
}
54-
public static BunqResponse<byte[]> list(Integer attachmentId, Integer monetaryAccountId, Map<String, String> params) {
54+
public static BunqResponse<byte[]> list(Long attachmentId, Long monetaryAccountId, Map<String, String> params) {
5555
return list(attachmentId, monetaryAccountId, params, null);
5656
}
5757

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public class AttachmentUserApiObject extends BunqModel {
3939
*/
4040
@Expose
4141
@SerializedName("id")
42-
private Integer id;
42+
private Long id;
4343

4444
/**
4545
* The timestamp of the attachment's creation.
@@ -66,7 +66,7 @@ public class AttachmentUserApiObject extends BunqModel {
6666
* Get a specific attachment. The header of the response contains the content-type of the
6767
* attachment.
6868
*/
69-
public static BunqResponse<AttachmentUserApiObject> get(Integer attachmentUserId, Map<String, String> params, Map<String, String> customHeaders) {
69+
public static BunqResponse<AttachmentUserApiObject> get(Long attachmentUserId, Map<String, String> params, Map<String, String> customHeaders) {
7070
ApiClient apiClient = new ApiClient(getApiContext());
7171
BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_READ, determineUserId(), attachmentUserId), params, customHeaders);
7272

@@ -77,22 +77,22 @@ public static BunqResponse<AttachmentUserApiObject> get() {
7777
return get(null, null, null);
7878
}
7979

80-
public static BunqResponse<AttachmentUserApiObject> get(Integer attachmentUserId) {
80+
public static BunqResponse<AttachmentUserApiObject> get(Long attachmentUserId) {
8181
return get(attachmentUserId, null, null);
8282
}
8383

84-
public static BunqResponse<AttachmentUserApiObject> get(Integer attachmentUserId, Map<String, String> params) {
84+
public static BunqResponse<AttachmentUserApiObject> get(Long attachmentUserId, Map<String, String> params) {
8585
return get(attachmentUserId, params, null);
8686
}
8787

8888
/**
8989
* The id of the attachment.
9090
*/
91-
public Integer getId() {
91+
public Long getId() {
9292
return this.id;
9393
}
9494

95-
public void setId(Integer id) {
95+
public void setId(Long id) {
9696
this.id = id;
9797
}
9898

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public class AttachmentUserContentApiObject extends BunqModel {
3535
/**
3636
* Get the raw content of a specific attachment.
3737
*/
38-
public static BunqResponse<byte[]> list(Integer attachmentId, Map<String, String> params, Map<String, String> customHeaders) {
38+
public static BunqResponse<byte[]> list(Long attachmentId, Map<String, String> params, Map<String, String> customHeaders) {
3939
ApiClient apiClient = new ApiClient(getApiContext());
4040
BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_LISTING, determineUserId(), attachmentId), params, customHeaders);
4141

@@ -45,10 +45,10 @@ public static BunqResponse<byte[]> list(Integer attachmentId, Map<String, String
4545
public static BunqResponse<byte[]> list() {
4646
return list(null, null, null);
4747
}
48-
public static BunqResponse<byte[]> list(Integer attachmentId) {
48+
public static BunqResponse<byte[]> list(Long attachmentId) {
4949
return list(attachmentId, null, null);
5050
}
51-
public static BunqResponse<byte[]> list(Integer attachmentId, Map<String, String> params) {
51+
public static BunqResponse<byte[]> list(Long attachmentId, Map<String, String> params) {
5252
return list(attachmentId, params, null);
5353
}
5454

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public class BankSwitchServiceNetherlandsIncomingPaymentApiObject extends BunqMo
4848

4949
/**
5050
*/
51-
public static BunqResponse<BankSwitchServiceNetherlandsIncomingPaymentApiObject> get(Integer bankSwitchServiceNetherlandsIncomingPaymentId, Integer monetaryAccountId, Map<String, String> params, Map<String, String> customHeaders) {
51+
public static BunqResponse<BankSwitchServiceNetherlandsIncomingPaymentApiObject> get(Long bankSwitchServiceNetherlandsIncomingPaymentId, Long monetaryAccountId, Map<String, String> params, Map<String, String> customHeaders) {
5252
ApiClient apiClient = new ApiClient(getApiContext());
5353
BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_READ, determineUserId(), determineMonetaryAccountId(monetaryAccountId), bankSwitchServiceNetherlandsIncomingPaymentId), params, customHeaders);
5454

@@ -59,15 +59,15 @@ public static BunqResponse<BankSwitchServiceNetherlandsIncomingPaymentApiObject>
5959
return get(null, null, null, null);
6060
}
6161

62-
public static BunqResponse<BankSwitchServiceNetherlandsIncomingPaymentApiObject> get(Integer bankSwitchServiceNetherlandsIncomingPaymentId) {
62+
public static BunqResponse<BankSwitchServiceNetherlandsIncomingPaymentApiObject> get(Long bankSwitchServiceNetherlandsIncomingPaymentId) {
6363
return get(bankSwitchServiceNetherlandsIncomingPaymentId, null, null, null);
6464
}
6565

66-
public static BunqResponse<BankSwitchServiceNetherlandsIncomingPaymentApiObject> get(Integer bankSwitchServiceNetherlandsIncomingPaymentId, Integer monetaryAccountId) {
66+
public static BunqResponse<BankSwitchServiceNetherlandsIncomingPaymentApiObject> get(Long bankSwitchServiceNetherlandsIncomingPaymentId, Long monetaryAccountId) {
6767
return get(bankSwitchServiceNetherlandsIncomingPaymentId, monetaryAccountId, null, null);
6868
}
6969

70-
public static BunqResponse<BankSwitchServiceNetherlandsIncomingPaymentApiObject> get(Integer bankSwitchServiceNetherlandsIncomingPaymentId, Integer monetaryAccountId, Map<String, String> params) {
70+
public static BunqResponse<BankSwitchServiceNetherlandsIncomingPaymentApiObject> get(Long bankSwitchServiceNetherlandsIncomingPaymentId, Long monetaryAccountId, Map<String, String> params) {
7171
return get(bankSwitchServiceNetherlandsIncomingPaymentId, monetaryAccountId, params, null);
7272
}
7373

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public class BillingContractSubscriptionApiObject extends BunqModel {
4141
*/
4242
@Expose
4343
@SerializedName("id")
44-
private Integer id;
44+
private Long id;
4545

4646
/**
4747
* The timestamp when the billing contract was made.
@@ -76,7 +76,7 @@ public class BillingContractSubscriptionApiObject extends BunqModel {
7676
*/
7777
@Expose
7878
@SerializedName("contract_version")
79-
private Integer contractVersion;
79+
private Long contractVersion;
8080

8181
/**
8282
* The subscription type of the user. Can be one of PERSON_SUPER_LIGHT_V1, PERSON_LIGHT_V1,
@@ -143,11 +143,11 @@ public static BunqResponse<List<BillingContractSubscriptionApiObject>> list(Map<
143143
/**
144144
* The id of the billing contract.
145145
*/
146-
public Integer getId() {
146+
public Long getId() {
147147
return this.id;
148148
}
149149

150-
public void setId(Integer id) {
150+
public void setId(Long id) {
151151
this.id = id;
152152
}
153153

@@ -198,11 +198,11 @@ public void setContractDateEnd(String contractDateEnd) {
198198
/**
199199
* The version of the billing contract.
200200
*/
201-
public Integer getContractVersion() {
201+
public Long getContractVersion() {
202202
return this.contractVersion;
203203
}
204204

205-
public void setContractVersion(Integer contractVersion) {
205+
public void setContractVersion(Long contractVersion) {
206206
this.contractVersion = contractVersion;
207207
}
208208

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,14 +51,14 @@ public class BirdeeInvestmentPortfolioApiObject extends BunqModel {
5151
*/
5252
@Expose
5353
@SerializedName("number_of_strategy_change_annual_maximum")
54-
private Integer numberOfStrategyChangeAnnualMaximum;
54+
private Long numberOfStrategyChangeAnnualMaximum;
5555

5656
/**
5757
* Maximum number of strategy changes used.
5858
*/
5959
@Expose
6060
@SerializedName("number_of_strategy_change_annual_used")
61-
private Integer numberOfStrategyChangeAnnualUsed;
61+
private Long numberOfStrategyChangeAnnualUsed;
6262

6363
/**
6464
* The name associated with the investment portfolio.
@@ -182,22 +182,22 @@ public void setInvestmentTheme(String investmentTheme) {
182182
/**
183183
* Maximum number of strategy changes in a year.
184184
*/
185-
public Integer getNumberOfStrategyChangeAnnualMaximum() {
185+
public Long getNumberOfStrategyChangeAnnualMaximum() {
186186
return this.numberOfStrategyChangeAnnualMaximum;
187187
}
188188

189-
public void setNumberOfStrategyChangeAnnualMaximum(Integer numberOfStrategyChangeAnnualMaximum) {
189+
public void setNumberOfStrategyChangeAnnualMaximum(Long numberOfStrategyChangeAnnualMaximum) {
190190
this.numberOfStrategyChangeAnnualMaximum = numberOfStrategyChangeAnnualMaximum;
191191
}
192192

193193
/**
194194
* Maximum number of strategy changes used.
195195
*/
196-
public Integer getNumberOfStrategyChangeAnnualUsed() {
196+
public Long getNumberOfStrategyChangeAnnualUsed() {
197197
return this.numberOfStrategyChangeAnnualUsed;
198198
}
199199

200-
public void setNumberOfStrategyChangeAnnualUsed(Integer numberOfStrategyChangeAnnualUsed) {
200+
public void setNumberOfStrategyChangeAnnualUsed(Long numberOfStrategyChangeAnnualUsed) {
201201
this.numberOfStrategyChangeAnnualUsed = numberOfStrategyChangeAnnualUsed;
202202
}
203203

0 commit comments

Comments
 (0)