diff --git a/src/main/java/com/bunq/sdk/context/SessionContext.java b/src/main/java/com/bunq/sdk/context/SessionContext.java index 8a287e59..66aeacc4 100644 --- a/src/main/java/com/bunq/sdk/context/SessionContext.java +++ b/src/main/java/com/bunq/sdk/context/SessionContext.java @@ -44,7 +44,7 @@ public class SessionContext implements java.io.Serializable { @Expose @SerializedName("user_id") - private final Integer userId; + private final Long userId; @Expose @SerializedName("user_person") @@ -129,7 +129,7 @@ Date getExpiryTime() { return expiryTime; } - public Integer getUserId() { + public Long getUserId() { return userId; } diff --git a/src/main/java/com/bunq/sdk/context/UserContext.java b/src/main/java/com/bunq/sdk/context/UserContext.java index 2e26b0e8..9653cafa 100644 --- a/src/main/java/com/bunq/sdk/context/UserContext.java +++ b/src/main/java/com/bunq/sdk/context/UserContext.java @@ -52,7 +52,7 @@ public void refreshContext() { this.initMainMonetaryAccount(helper); } - public Integer getUserId() { + public Long getUserId() { return this.apiContext.getSessionContext().getUserId(); } @@ -72,7 +72,7 @@ public boolean areAllUserSet() { return this.userPerson != null && this.userCompany != null && this.userApiKey != null; } - public Integer getMainMonetaryAccountId() { + public Long getMainMonetaryAccountId() { if (this.primaryMonetaryAccountBank == null) { throw new BunqException(ERROR_PRIMARY_MONETARY_ACCOUNT_IS_NOT_SET); } else { diff --git a/src/main/java/com/bunq/sdk/http/Pagination.java b/src/main/java/com/bunq/sdk/http/Pagination.java index aa12937a..3abc3057 100644 --- a/src/main/java/com/bunq/sdk/http/Pagination.java +++ b/src/main/java/com/bunq/sdk/http/Pagination.java @@ -23,10 +23,10 @@ public class Pagination { public static final String PARAM_FUTURE_ID = "future_id"; public static final String PARAM_COUNT = "count"; - private Integer olderId; - private Integer newerId; - private Integer futureId; - private Integer count; + private Long olderId; + private Long newerId; + private Long futureId; + private Long count; /** * Get the URL params required to request the next page of the listing. @@ -35,7 +35,7 @@ public Map getUrlParamsNextPage() { assertHasNextPage(); Map params = new HashMap<>(); - params.put(PARAM_NEWER_ID, Integer.toString(getNextId())); + params.put(PARAM_NEWER_ID, Long.toString(getNextId())); addCountToParamsIfNeeded(params); return params; @@ -47,7 +47,7 @@ private void assertHasNextPage() { } } - private Integer getNextId() { + private Long getNextId() { if (hasNextPageAssured()) { return newerId; } else { @@ -61,7 +61,7 @@ public boolean hasNextPageAssured() { private void addCountToParamsIfNeeded(Map params) { if (count != null) { - params.put(PARAM_COUNT, Integer.toString(count)); + params.put(PARAM_COUNT, Long.toString(count)); } } @@ -72,7 +72,7 @@ public Map getUrlParamsPreviousPage() { assertHasPreviousPage(); Map params = new HashMap<>(); - params.put(PARAM_OLDER_ID, Integer.toString(olderId)); + params.put(PARAM_OLDER_ID, Long.toString(olderId)); addCountToParamsIfNeeded(params); return params; @@ -98,35 +98,35 @@ public Map getUrlParamsCountOnly() { return params; } - public Integer getOlderId() { + public Long getOlderId() { return olderId; } - public void setOlderId(Integer olderId) { + public void setOlderId(Long olderId) { this.olderId = olderId; } - public Integer getNewerId() { + public Long getNewerId() { return newerId; } - public void setNewerId(Integer newerId) { + public void setNewerId(Long newerId) { this.newerId = newerId; } - public Integer getFutureId() { + public Long getFutureId() { return futureId; } - public void setFutureId(Integer futureId) { + public void setFutureId(Long futureId) { this.futureId = futureId; } - public Integer getCount() { + public Long getCount() { return count; } - public void setCount(Integer count) { + public void setCount(Long count) { this.count = count; } } diff --git a/src/main/java/com/bunq/sdk/json/PaginationAdapter.java b/src/main/java/com/bunq/sdk/json/PaginationAdapter.java index 1e854768..a087b0bd 100644 --- a/src/main/java/com/bunq/sdk/json/PaginationAdapter.java +++ b/src/main/java/com/bunq/sdk/json/PaginationAdapter.java @@ -29,7 +29,7 @@ public Pagination deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context) throws JsonParseException { try { JsonObject responseJson = json.getAsJsonObject(); - Map paginationBody = parsePaginationBody(responseJson); + Map paginationBody = parsePaginationBody(responseJson); return createPagination(paginationBody); } catch (URISyntaxException exception) { @@ -37,9 +37,9 @@ public Pagination deserialize(JsonElement json, Type typeOfT, } } - private Map parsePaginationBody(JsonObject responseJson) + private Map parsePaginationBody(JsonObject responseJson) throws URISyntaxException { - Map paginationBody = new HashMap<>(); + Map paginationBody = new HashMap<>(); updatePaginationBodyFromResponseField( paginationBody, Pagination.PARAM_OLDER_ID, @@ -65,7 +65,7 @@ private Map parsePaginationBody(JsonObject responseJson) return paginationBody; } - private Pagination createPagination(Map paginationBody) { + private Pagination createPagination(Map paginationBody) { Pagination pagination = new Pagination(); pagination.setOlderId(paginationBody.get(Pagination.PARAM_OLDER_ID)); pagination.setNewerId(paginationBody.get(Pagination.PARAM_NEWER_ID)); @@ -76,7 +76,7 @@ private Pagination createPagination(Map paginationBody) { } private void updatePaginationBodyFromResponseField( - Map paginationBody, + Map paginationBody, String idField, JsonObject responseJson, String responseField, @@ -89,10 +89,10 @@ private void updatePaginationBodyFromResponseField( for (String parameterName : Objects.requireNonNull(url).queryParameterNames()) { if (responseParam.equals(parameterName)) { - paginationBody.put(idField, Integer.parseInt(Objects.requireNonNull(url.queryParameter(parameterName)))); + paginationBody.put(idField, Long.parseLong(Objects.requireNonNull(url.queryParameter(parameterName)))); } else if (Pagination.PARAM_COUNT.equals(parameterName) && paginationBody.get(Pagination.PARAM_COUNT) == null) { - paginationBody.put(Pagination.PARAM_COUNT, Integer.parseInt(Objects.requireNonNull(url.queryParameter(parameterName)))); + paginationBody.put(Pagination.PARAM_COUNT, Long.parseLong(Objects.requireNonNull(url.queryParameter(parameterName)))); } } } diff --git a/src/main/java/com/bunq/sdk/model/core/BunqModel.java b/src/main/java/com/bunq/sdk/model/core/BunqModel.java index e7b7cd73..c106b604 100644 --- a/src/main/java/com/bunq/sdk/model/core/BunqModel.java +++ b/src/main/java/com/bunq/sdk/model/core/BunqModel.java @@ -75,10 +75,10 @@ static BunqResponse fromJsonArrayNested(Class classOfObject, /** * De-serializes an ID object and returns its integer value. */ - protected static BunqResponse processForId(BunqResponseRaw responseRaw) { + protected static BunqResponse processForId(BunqResponseRaw responseRaw) { JsonObject responseItemObject = getResponseItemObject(responseRaw); JsonObject responseItemObjectUnwrapped = getWrappedContent(responseItemObject, FIELD_ID); - Integer responseValue = gson.fromJson(responseItemObjectUnwrapped, Id.class).getId(); + Long responseValue = gson.fromJson(responseItemObjectUnwrapped, Id.class).getId(); return new BunqResponse<>(responseValue, responseRaw.getHeaders()); } @@ -195,11 +195,11 @@ protected static ApiContext getApiContext() { return BunqContext.getApiContext(); } - protected static Integer determineUserId() { + protected static Long determineUserId() { return BunqContext.getUserContext().getUserId(); } - protected static Integer determineMonetaryAccountId(Integer id) { + protected static Long determineMonetaryAccountId(Long id) { if (id == null) { return BunqContext.getUserContext().getPrimaryMonetaryAccountBank().getId(); } else { diff --git a/src/main/java/com/bunq/sdk/model/core/DeviceServerInternal.java b/src/main/java/com/bunq/sdk/model/core/DeviceServerInternal.java index 4a1efdfd..cb27b872 100644 --- a/src/main/java/com/bunq/sdk/model/core/DeviceServerInternal.java +++ b/src/main/java/com/bunq/sdk/model/core/DeviceServerInternal.java @@ -10,7 +10,7 @@ import java.util.List; public class DeviceServerInternal extends DeviceServerApiObject { - public static BunqResponse create( + public static BunqResponse create( ApiContext apiContext, String description, String secret, diff --git a/src/main/java/com/bunq/sdk/model/core/Id.java b/src/main/java/com/bunq/sdk/model/core/Id.java index 66c0e065..9f2d2e1d 100644 --- a/src/main/java/com/bunq/sdk/model/core/Id.java +++ b/src/main/java/com/bunq/sdk/model/core/Id.java @@ -2,12 +2,12 @@ public class Id { - private Integer id; + private Long id; public Id() { } - public Integer getId() { + public Long getId() { return id; } } diff --git a/src/main/java/com/bunq/sdk/model/core/Installation.java b/src/main/java/com/bunq/sdk/model/core/Installation.java index eecd27b2..bb8ef05b 100644 --- a/src/main/java/com/bunq/sdk/model/core/Installation.java +++ b/src/main/java/com/bunq/sdk/model/core/Installation.java @@ -59,7 +59,7 @@ private static byte[] generateRequestBodyBytes(String publicKeyClientString) { return gson.toJson(installationRequestBody).getBytes(); } - public Integer getId() { + public Long getId() { return id.getId(); } diff --git a/src/main/java/com/bunq/sdk/model/core/NotificationFilterUrlMonetaryAccountInternal.java b/src/main/java/com/bunq/sdk/model/core/NotificationFilterUrlMonetaryAccountInternal.java index a0659343..cdbe67f7 100644 --- a/src/main/java/com/bunq/sdk/model/core/NotificationFilterUrlMonetaryAccountInternal.java +++ b/src/main/java/com/bunq/sdk/model/core/NotificationFilterUrlMonetaryAccountInternal.java @@ -28,7 +28,7 @@ public static BunqResponse> createWithListResp * Create notification filters with list response type. */ public static BunqResponse> createWithListResponse( - Integer monetaryAccountId, + Long monetaryAccountId, List allNotificationFilter ) { return createWithListResponse(monetaryAccountId, allNotificationFilter, null); @@ -38,7 +38,7 @@ public static BunqResponse> createWithListResp * Create notification filters with list response type. */ public static BunqResponse> createWithListResponse( - Integer monetaryAccountId, + Long monetaryAccountId, List allNotificationFilter, Map customHeaders ) { diff --git a/src/main/java/com/bunq/sdk/model/core/UserContextHelper.java b/src/main/java/com/bunq/sdk/model/core/UserContextHelper.java index 82cbc3c6..2509404e 100644 --- a/src/main/java/com/bunq/sdk/model/core/UserContextHelper.java +++ b/src/main/java/com/bunq/sdk/model/core/UserContextHelper.java @@ -56,7 +56,7 @@ public UserApiObject getFirstUser() { return response.getValue().get(INDEX_FIRST); } - public MonetaryAccountBankApiObject getFirstActiveMonetaryAccountBankByUserId(Integer userId) { + public MonetaryAccountBankApiObject getFirstActiveMonetaryAccountBankByUserId(Long userId) { BunqResponseRaw responseRaw = getRawResponse( String.format(ENDPOINT_MONETARY_ACCOUNT_BANK, userId) ); diff --git a/src/main/java/com/bunq/sdk/model/generated/endpoint/AdditionalTransactionInformationCategoryApiObject.java b/src/main/java/com/bunq/sdk/model/generated/endpoint/AdditionalTransactionInformationCategoryApiObject.java index 8afa0308..f10a318b 100644 --- a/src/main/java/com/bunq/sdk/model/generated/endpoint/AdditionalTransactionInformationCategoryApiObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/endpoint/AdditionalTransactionInformationCategoryApiObject.java @@ -57,7 +57,7 @@ public class AdditionalTransactionInformationCategoryApiObject extends BunqModel */ @Expose @SerializedName("order") - private Integer order; + private Long order; /** * The description of the category. @@ -140,11 +140,11 @@ public void setStatus(String status) { /** * The sort order of the category. */ - public Integer getOrder() { + public Long getOrder() { return this.order; } - public void setOrder(Integer order) { + public void setOrder(Long order) { this.order = order; } diff --git a/src/main/java/com/bunq/sdk/model/generated/endpoint/AdditionalTransactionInformationCategoryUserDefinedApiObject.java b/src/main/java/com/bunq/sdk/model/generated/endpoint/AdditionalTransactionInformationCategoryUserDefinedApiObject.java index 1e80a8b8..6afd9b2f 100644 --- a/src/main/java/com/bunq/sdk/model/generated/endpoint/AdditionalTransactionInformationCategoryUserDefinedApiObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/endpoint/AdditionalTransactionInformationCategoryUserDefinedApiObject.java @@ -103,7 +103,7 @@ public AdditionalTransactionInformationCategoryUserDefinedApiObject(String statu * @param color The color of the category. * @param icon The icon of the category. */ - public static BunqResponse create(String status, String category, String description, String color, String icon, Map customHeaders) { + public static BunqResponse create(String status, String category, String description, String color, String icon, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -123,27 +123,27 @@ public static BunqResponse create(String status, String category, Strin return processForId(responseRaw); } - public static BunqResponse create() { + public static BunqResponse create() { return create(null, null, null, null, null, null); } - public static BunqResponse create(String status) { + public static BunqResponse create(String status) { return create(status, null, null, null, null, null); } - public static BunqResponse create(String status, String category) { + public static BunqResponse create(String status, String category) { return create(status, category, null, null, null, null); } - public static BunqResponse create(String status, String category, String description) { + public static BunqResponse create(String status, String category, String description) { return create(status, category, description, null, null, null); } - public static BunqResponse create(String status, String category, String description, String color) { + public static BunqResponse create(String status, String category, String description, String color) { return create(status, category, description, color, null, null); } - public static BunqResponse create(String status, String category, String description, String color, String icon) { + public static BunqResponse create(String status, String category, String description, String color, String icon) { return create(status, category, description, color, icon, null); } diff --git a/src/main/java/com/bunq/sdk/model/generated/endpoint/AttachmentConversationContentApiObject.java b/src/main/java/com/bunq/sdk/model/generated/endpoint/AttachmentConversationContentApiObject.java index 86d17157..fe8aa879 100644 --- a/src/main/java/com/bunq/sdk/model/generated/endpoint/AttachmentConversationContentApiObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/endpoint/AttachmentConversationContentApiObject.java @@ -35,7 +35,7 @@ public class AttachmentConversationContentApiObject extends BunqModel { /** * Get the raw content of a specific attachment. */ - public static BunqResponse list(Integer chatConversationId, Integer attachmentId, Map params, Map customHeaders) { + public static BunqResponse list(Long chatConversationId, Long attachmentId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_LISTING, determineUserId(), chatConversationId, attachmentId), params, customHeaders); @@ -45,13 +45,13 @@ public static BunqResponse list(Integer chatConversationId, Integer atta public static BunqResponse list() { return list(null, null, null, null); } - public static BunqResponse list(Integer chatConversationId) { + public static BunqResponse list(Long chatConversationId) { return list(chatConversationId, null, null, null); } - public static BunqResponse list(Integer chatConversationId, Integer attachmentId) { + public static BunqResponse list(Long chatConversationId, Long attachmentId) { return list(chatConversationId, attachmentId, null, null); } - public static BunqResponse list(Integer chatConversationId, Integer attachmentId, Map params) { + public static BunqResponse list(Long chatConversationId, Long attachmentId, Map params) { return list(chatConversationId, attachmentId, params, null); } diff --git a/src/main/java/com/bunq/sdk/model/generated/endpoint/AttachmentMonetaryAccountApiObject.java b/src/main/java/com/bunq/sdk/model/generated/endpoint/AttachmentMonetaryAccountApiObject.java index 9c1d44c8..f013bc2a 100644 --- a/src/main/java/com/bunq/sdk/model/generated/endpoint/AttachmentMonetaryAccountApiObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/endpoint/AttachmentMonetaryAccountApiObject.java @@ -40,7 +40,7 @@ public class AttachmentMonetaryAccountApiObject extends BunqModel { */ @Expose @SerializedName("id") - private Integer id; + private Long id; /** * Create a new monetary account attachment. Create a POST request with a payload that contains @@ -48,18 +48,18 @@ public class AttachmentMonetaryAccountApiObject extends BunqModel { * MIME type (i.e. image/jpeg) in the Content-Type header. You are required to provide a * description of the attachment using the X-Bunq-Attachment-Description header. */ - public static BunqResponse create(Integer monetaryAccountId, Map customHeaders, byte[] bytes) { + public static BunqResponse create(Long monetaryAccountId, Map customHeaders, byte[] bytes) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.post(String.format(ENDPOINT_URL_CREATE, determineUserId(), determineMonetaryAccountId(monetaryAccountId)), bytes, customHeaders); return processForId(responseRaw); } - public static BunqResponse create( byte[] bytes) { + public static BunqResponse create( byte[] bytes) { return create(null, null, bytes); } - public static BunqResponse create(Integer monetaryAccountId, byte[] bytes) { + public static BunqResponse create(Long monetaryAccountId, byte[] bytes) { return create(monetaryAccountId, null, bytes); } @@ -77,11 +77,11 @@ public void setAttachment(AttachmentObject attachment) { /** * The ID of the attachment created. */ - public Integer getId() { + public Long getId() { return this.id; } - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } diff --git a/src/main/java/com/bunq/sdk/model/generated/endpoint/AttachmentMonetaryAccountContentApiObject.java b/src/main/java/com/bunq/sdk/model/generated/endpoint/AttachmentMonetaryAccountContentApiObject.java index db35b348..a0a023c2 100644 --- a/src/main/java/com/bunq/sdk/model/generated/endpoint/AttachmentMonetaryAccountContentApiObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/endpoint/AttachmentMonetaryAccountContentApiObject.java @@ -35,7 +35,7 @@ public class AttachmentMonetaryAccountContentApiObject extends BunqModel { /** * Get the raw content of a specific attachment. */ - public static BunqResponse list(Integer attachmentId, Integer monetaryAccountId, Map params, Map customHeaders) { + public static BunqResponse list(Long attachmentId, Long monetaryAccountId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_LISTING, determineUserId(), determineMonetaryAccountId(monetaryAccountId), attachmentId), params, customHeaders); @@ -45,13 +45,13 @@ public static BunqResponse list(Integer attachmentId, Integer monetaryAc public static BunqResponse list() { return list(null, null, null, null); } - public static BunqResponse list(Integer attachmentId) { + public static BunqResponse list(Long attachmentId) { return list(attachmentId, null, null, null); } - public static BunqResponse list(Integer attachmentId, Integer monetaryAccountId) { + public static BunqResponse list(Long attachmentId, Long monetaryAccountId) { return list(attachmentId, monetaryAccountId, null, null); } - public static BunqResponse list(Integer attachmentId, Integer monetaryAccountId, Map params) { + public static BunqResponse list(Long attachmentId, Long monetaryAccountId, Map params) { return list(attachmentId, monetaryAccountId, params, null); } diff --git a/src/main/java/com/bunq/sdk/model/generated/endpoint/AttachmentUserApiObject.java b/src/main/java/com/bunq/sdk/model/generated/endpoint/AttachmentUserApiObject.java index 3fd8df0f..8999cba1 100644 --- a/src/main/java/com/bunq/sdk/model/generated/endpoint/AttachmentUserApiObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/endpoint/AttachmentUserApiObject.java @@ -39,7 +39,7 @@ public class AttachmentUserApiObject extends BunqModel { */ @Expose @SerializedName("id") - private Integer id; + private Long id; /** * The timestamp of the attachment's creation. @@ -66,7 +66,7 @@ public class AttachmentUserApiObject extends BunqModel { * Get a specific attachment. The header of the response contains the content-type of the * attachment. */ - public static BunqResponse get(Integer attachmentUserId, Map params, Map customHeaders) { + public static BunqResponse get(Long attachmentUserId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_READ, determineUserId(), attachmentUserId), params, customHeaders); @@ -77,22 +77,22 @@ public static BunqResponse get() { return get(null, null, null); } - public static BunqResponse get(Integer attachmentUserId) { + public static BunqResponse get(Long attachmentUserId) { return get(attachmentUserId, null, null); } - public static BunqResponse get(Integer attachmentUserId, Map params) { + public static BunqResponse get(Long attachmentUserId, Map params) { return get(attachmentUserId, params, null); } /** * The id of the attachment. */ - public Integer getId() { + public Long getId() { return this.id; } - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } diff --git a/src/main/java/com/bunq/sdk/model/generated/endpoint/AttachmentUserContentApiObject.java b/src/main/java/com/bunq/sdk/model/generated/endpoint/AttachmentUserContentApiObject.java index 4baa0873..aed3b2b7 100644 --- a/src/main/java/com/bunq/sdk/model/generated/endpoint/AttachmentUserContentApiObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/endpoint/AttachmentUserContentApiObject.java @@ -35,7 +35,7 @@ public class AttachmentUserContentApiObject extends BunqModel { /** * Get the raw content of a specific attachment. */ - public static BunqResponse list(Integer attachmentId, Map params, Map customHeaders) { + public static BunqResponse list(Long attachmentId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_LISTING, determineUserId(), attachmentId), params, customHeaders); @@ -45,10 +45,10 @@ public static BunqResponse list(Integer attachmentId, Map list() { return list(null, null, null); } - public static BunqResponse list(Integer attachmentId) { + public static BunqResponse list(Long attachmentId) { return list(attachmentId, null, null); } - public static BunqResponse list(Integer attachmentId, Map params) { + public static BunqResponse list(Long attachmentId, Map params) { return list(attachmentId, params, null); } diff --git a/src/main/java/com/bunq/sdk/model/generated/endpoint/BankSwitchServiceNetherlandsIncomingPaymentApiObject.java b/src/main/java/com/bunq/sdk/model/generated/endpoint/BankSwitchServiceNetherlandsIncomingPaymentApiObject.java index 656fe5bf..8997c0c3 100644 --- a/src/main/java/com/bunq/sdk/model/generated/endpoint/BankSwitchServiceNetherlandsIncomingPaymentApiObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/endpoint/BankSwitchServiceNetherlandsIncomingPaymentApiObject.java @@ -48,7 +48,7 @@ public class BankSwitchServiceNetherlandsIncomingPaymentApiObject extends BunqMo /** */ - public static BunqResponse get(Integer bankSwitchServiceNetherlandsIncomingPaymentId, Integer monetaryAccountId, Map params, Map customHeaders) { + public static BunqResponse get(Long bankSwitchServiceNetherlandsIncomingPaymentId, Long monetaryAccountId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_READ, determineUserId(), determineMonetaryAccountId(monetaryAccountId), bankSwitchServiceNetherlandsIncomingPaymentId), params, customHeaders); @@ -59,15 +59,15 @@ public static BunqResponse return get(null, null, null, null); } - public static BunqResponse get(Integer bankSwitchServiceNetherlandsIncomingPaymentId) { + public static BunqResponse get(Long bankSwitchServiceNetherlandsIncomingPaymentId) { return get(bankSwitchServiceNetherlandsIncomingPaymentId, null, null, null); } - public static BunqResponse get(Integer bankSwitchServiceNetherlandsIncomingPaymentId, Integer monetaryAccountId) { + public static BunqResponse get(Long bankSwitchServiceNetherlandsIncomingPaymentId, Long monetaryAccountId) { return get(bankSwitchServiceNetherlandsIncomingPaymentId, monetaryAccountId, null, null); } - public static BunqResponse get(Integer bankSwitchServiceNetherlandsIncomingPaymentId, Integer monetaryAccountId, Map params) { + public static BunqResponse get(Long bankSwitchServiceNetherlandsIncomingPaymentId, Long monetaryAccountId, Map params) { return get(bankSwitchServiceNetherlandsIncomingPaymentId, monetaryAccountId, params, null); } diff --git a/src/main/java/com/bunq/sdk/model/generated/endpoint/BillingContractSubscriptionApiObject.java b/src/main/java/com/bunq/sdk/model/generated/endpoint/BillingContractSubscriptionApiObject.java index 33e2850c..4dece7ea 100644 --- a/src/main/java/com/bunq/sdk/model/generated/endpoint/BillingContractSubscriptionApiObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/endpoint/BillingContractSubscriptionApiObject.java @@ -41,7 +41,7 @@ public class BillingContractSubscriptionApiObject extends BunqModel { */ @Expose @SerializedName("id") - private Integer id; + private Long id; /** * The timestamp when the billing contract was made. @@ -76,7 +76,7 @@ public class BillingContractSubscriptionApiObject extends BunqModel { */ @Expose @SerializedName("contract_version") - private Integer contractVersion; + private Long contractVersion; /** * 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(Map< /** * The id of the billing contract. */ - public Integer getId() { + public Long getId() { return this.id; } - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } @@ -198,11 +198,11 @@ public void setContractDateEnd(String contractDateEnd) { /** * The version of the billing contract. */ - public Integer getContractVersion() { + public Long getContractVersion() { return this.contractVersion; } - public void setContractVersion(Integer contractVersion) { + public void setContractVersion(Long contractVersion) { this.contractVersion = contractVersion; } diff --git a/src/main/java/com/bunq/sdk/model/generated/endpoint/BirdeeInvestmentPortfolioApiObject.java b/src/main/java/com/bunq/sdk/model/generated/endpoint/BirdeeInvestmentPortfolioApiObject.java index bc2849dc..8c9351f1 100644 --- a/src/main/java/com/bunq/sdk/model/generated/endpoint/BirdeeInvestmentPortfolioApiObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/endpoint/BirdeeInvestmentPortfolioApiObject.java @@ -51,14 +51,14 @@ public class BirdeeInvestmentPortfolioApiObject extends BunqModel { */ @Expose @SerializedName("number_of_strategy_change_annual_maximum") - private Integer numberOfStrategyChangeAnnualMaximum; + private Long numberOfStrategyChangeAnnualMaximum; /** * Maximum number of strategy changes used. */ @Expose @SerializedName("number_of_strategy_change_annual_used") - private Integer numberOfStrategyChangeAnnualUsed; + private Long numberOfStrategyChangeAnnualUsed; /** * The name associated with the investment portfolio. @@ -182,22 +182,22 @@ public void setInvestmentTheme(String investmentTheme) { /** * Maximum number of strategy changes in a year. */ - public Integer getNumberOfStrategyChangeAnnualMaximum() { + public Long getNumberOfStrategyChangeAnnualMaximum() { return this.numberOfStrategyChangeAnnualMaximum; } - public void setNumberOfStrategyChangeAnnualMaximum(Integer numberOfStrategyChangeAnnualMaximum) { + public void setNumberOfStrategyChangeAnnualMaximum(Long numberOfStrategyChangeAnnualMaximum) { this.numberOfStrategyChangeAnnualMaximum = numberOfStrategyChangeAnnualMaximum; } /** * Maximum number of strategy changes used. */ - public Integer getNumberOfStrategyChangeAnnualUsed() { + public Long getNumberOfStrategyChangeAnnualUsed() { return this.numberOfStrategyChangeAnnualUsed; } - public void setNumberOfStrategyChangeAnnualUsed(Integer numberOfStrategyChangeAnnualUsed) { + public void setNumberOfStrategyChangeAnnualUsed(Long numberOfStrategyChangeAnnualUsed) { this.numberOfStrategyChangeAnnualUsed = numberOfStrategyChangeAnnualUsed; } diff --git a/src/main/java/com/bunq/sdk/model/generated/endpoint/BunqMeFundraiserProfileUserApiObject.java b/src/main/java/com/bunq/sdk/model/generated/endpoint/BunqMeFundraiserProfileUserApiObject.java index 90086152..a0e805da 100644 --- a/src/main/java/com/bunq/sdk/model/generated/endpoint/BunqMeFundraiserProfileUserApiObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/endpoint/BunqMeFundraiserProfileUserApiObject.java @@ -51,14 +51,14 @@ public class BunqMeFundraiserProfileUserApiObject extends BunqModel { */ @Expose @SerializedName("monetary_account_id") - private Integer monetaryAccountId; + private Long monetaryAccountId; /** * Id of the user owning the profile. */ @Expose @SerializedName("owner_user_id") - private Integer ownerUserId; + private Long ownerUserId; /** * The color chosen for the bunq.me fundraiser profile in hexadecimal format. @@ -122,7 +122,7 @@ public class BunqMeFundraiserProfileUserApiObject extends BunqModel { */ @Expose @SerializedName("monetary_account_id_field_for_request") - private Integer monetaryAccountIdFieldForRequest; + private Long monetaryAccountIdFieldForRequest; /** * The color chosen for the bunq.me fundraiser profile in hexadecimal format. @@ -171,31 +171,31 @@ public BunqMeFundraiserProfileUserApiObject() { this(null, null, null, null, null, null, null); } - public BunqMeFundraiserProfileUserApiObject(Integer monetaryAccountId) { + public BunqMeFundraiserProfileUserApiObject(Long monetaryAccountId) { this(monetaryAccountId, null, null, null, null, null, null); } - public BunqMeFundraiserProfileUserApiObject(Integer monetaryAccountId, String description) { + public BunqMeFundraiserProfileUserApiObject(Long monetaryAccountId, String description) { this(monetaryAccountId, description, null, null, null, null, null); } - public BunqMeFundraiserProfileUserApiObject(Integer monetaryAccountId, String description, PointerObject pointer) { + public BunqMeFundraiserProfileUserApiObject(Long monetaryAccountId, String description, PointerObject pointer) { this(monetaryAccountId, description, pointer, null, null, null, null); } - public BunqMeFundraiserProfileUserApiObject(Integer monetaryAccountId, String description, PointerObject pointer, String color) { + public BunqMeFundraiserProfileUserApiObject(Long monetaryAccountId, String description, PointerObject pointer, String color) { this(monetaryAccountId, description, pointer, color, null, null, null); } - public BunqMeFundraiserProfileUserApiObject(Integer monetaryAccountId, String description, PointerObject pointer, String color, String attachmentPublicUuid) { + public BunqMeFundraiserProfileUserApiObject(Long monetaryAccountId, String description, PointerObject pointer, String color, String attachmentPublicUuid) { this(monetaryAccountId, description, pointer, color, attachmentPublicUuid, null, null); } - public BunqMeFundraiserProfileUserApiObject(Integer monetaryAccountId, String description, PointerObject pointer, String color, String attachmentPublicUuid, String redirectUrl) { + public BunqMeFundraiserProfileUserApiObject(Long monetaryAccountId, String description, PointerObject pointer, String color, String attachmentPublicUuid, String redirectUrl) { this(monetaryAccountId, description, pointer, color, attachmentPublicUuid, redirectUrl, null); } - public BunqMeFundraiserProfileUserApiObject(Integer monetaryAccountId, String description, PointerObject pointer, String color, String attachmentPublicUuid, String redirectUrl, String status) { + public BunqMeFundraiserProfileUserApiObject(Long monetaryAccountId, String description, PointerObject pointer, String color, String attachmentPublicUuid, String redirectUrl, String status) { this.monetaryAccountIdFieldForRequest = monetaryAccountId; this.colorFieldForRequest = color; this.descriptionFieldForRequest = description; @@ -205,7 +205,7 @@ public BunqMeFundraiserProfileUserApiObject(Integer monetaryAccountId, String de this.statusFieldForRequest = status; } /** */ - public static BunqResponse get(Integer bunqMeFundraiserProfileUserId, Map params, Map customHeaders) { + public static BunqResponse get(Long bunqMeFundraiserProfileUserId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_READ, determineUserId(), bunqMeFundraiserProfileUserId), params, customHeaders); @@ -216,11 +216,11 @@ public static BunqResponse get() { return get(null, null, null); } - public static BunqResponse get(Integer bunqMeFundraiserProfileUserId) { + public static BunqResponse get(Long bunqMeFundraiserProfileUserId) { return get(bunqMeFundraiserProfileUserId, null, null); } - public static BunqResponse get(Integer bunqMeFundraiserProfileUserId, Map params) { + public static BunqResponse get(Long bunqMeFundraiserProfileUserId, Map params) { return get(bunqMeFundraiserProfileUserId, params, null); } @@ -244,22 +244,22 @@ public static BunqResponse> list(Map< /** * Id of the monetary account on which you want to receive bunq.me payments. */ - public Integer getMonetaryAccountId() { + public Long getMonetaryAccountId() { return this.monetaryAccountId; } - public void setMonetaryAccountId(Integer monetaryAccountId) { + public void setMonetaryAccountId(Long monetaryAccountId) { this.monetaryAccountId = monetaryAccountId; } /** * Id of the user owning the profile. */ - public Integer getOwnerUserId() { + public Long getOwnerUserId() { return this.ownerUserId; } - public void setOwnerUserId(Integer ownerUserId) { + public void setOwnerUserId(Long ownerUserId) { this.ownerUserId = ownerUserId; } diff --git a/src/main/java/com/bunq/sdk/model/generated/endpoint/BunqMeFundraiserResultApiObject.java b/src/main/java/com/bunq/sdk/model/generated/endpoint/BunqMeFundraiserResultApiObject.java index e8e9a261..b4a74176 100644 --- a/src/main/java/com/bunq/sdk/model/generated/endpoint/BunqMeFundraiserResultApiObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/endpoint/BunqMeFundraiserResultApiObject.java @@ -36,7 +36,7 @@ public class BunqMeFundraiserResultApiObject extends BunqModel { */ @Expose @SerializedName("id") - private Integer id; + private Long id; /** * The timestamp when the bunq.me was created. @@ -68,7 +68,7 @@ public class BunqMeFundraiserResultApiObject extends BunqModel { /** */ - public static BunqResponse get(Integer bunqMeFundraiserResultId, Integer monetaryAccountId, Map params, Map customHeaders) { + public static BunqResponse get(Long bunqMeFundraiserResultId, Long monetaryAccountId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_READ, determineUserId(), determineMonetaryAccountId(monetaryAccountId), bunqMeFundraiserResultId), params, customHeaders); @@ -79,26 +79,26 @@ public static BunqResponse get() { return get(null, null, null, null); } - public static BunqResponse get(Integer bunqMeFundraiserResultId) { + public static BunqResponse get(Long bunqMeFundraiserResultId) { return get(bunqMeFundraiserResultId, null, null, null); } - public static BunqResponse get(Integer bunqMeFundraiserResultId, Integer monetaryAccountId) { + public static BunqResponse get(Long bunqMeFundraiserResultId, Long monetaryAccountId) { return get(bunqMeFundraiserResultId, monetaryAccountId, null, null); } - public static BunqResponse get(Integer bunqMeFundraiserResultId, Integer monetaryAccountId, Map params) { + public static BunqResponse get(Long bunqMeFundraiserResultId, Long monetaryAccountId, Map params) { return get(bunqMeFundraiserResultId, monetaryAccountId, params, null); } /** * The id of the bunq.me. */ - public Integer getId() { + public Long getId() { return this.id; } - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } diff --git a/src/main/java/com/bunq/sdk/model/generated/endpoint/BunqMeTabApiObject.java b/src/main/java/com/bunq/sdk/model/generated/endpoint/BunqMeTabApiObject.java index 9d5a432d..1588f256 100644 --- a/src/main/java/com/bunq/sdk/model/generated/endpoint/BunqMeTabApiObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/endpoint/BunqMeTabApiObject.java @@ -49,7 +49,7 @@ public class BunqMeTabApiObject extends BunqModel { */ @Expose @SerializedName("id") - private Integer id; + private Long id; /** * The timestamp when the bunq.me was created. @@ -77,7 +77,7 @@ public class BunqMeTabApiObject extends BunqModel { */ @Expose @SerializedName("monetary_account_id") - private Integer monetaryAccountId; + private Long monetaryAccountId; /** * The status of the bunq.me. Can be WAITING_FOR_PAYMENT, CANCELLED or EXPIRED. @@ -149,7 +149,7 @@ public class BunqMeTabApiObject extends BunqModel { */ @Expose @SerializedName("event_id_field_for_request") - private Integer eventIdFieldForRequest; + private Long eventIdFieldForRequest; public BunqMeTabApiObject() { this(null, null, null); @@ -163,7 +163,7 @@ public BunqMeTabApiObject(BunqMeTabEntryApiObject bunqmeTabEntry, String status) this(bunqmeTabEntry, status, null); } - public BunqMeTabApiObject(BunqMeTabEntryApiObject bunqmeTabEntry, String status, Integer eventId) { + public BunqMeTabApiObject(BunqMeTabEntryApiObject bunqmeTabEntry, String status, Long eventId) { this.bunqmeTabEntryFieldForRequest = bunqmeTabEntry; this.statusFieldForRequest = status; this.eventIdFieldForRequest = eventId; @@ -173,7 +173,7 @@ public BunqMeTabApiObject(BunqMeTabEntryApiObject bunqmeTabEntry, String status, * cancelling the bunq.me by setting status as CANCELLED with a PUT request. * @param eventId The ID of the related event if the bunqMeTab made by 'split' functionality. */ - public static BunqResponse create(BunqMeTabEntryApiObject bunqmeTabEntry, Integer monetaryAccountId, String status, Integer eventId, Map customHeaders) { + public static BunqResponse create(BunqMeTabEntryApiObject bunqmeTabEntry, Long monetaryAccountId, String status, Long eventId, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -191,23 +191,23 @@ public static BunqResponse create(BunqMeTabEntryApiObject bunqmeTabEntr return processForId(responseRaw); } - public static BunqResponse create() { + public static BunqResponse create() { return create(null, null, null, null, null); } - public static BunqResponse create(BunqMeTabEntryApiObject bunqmeTabEntry) { + public static BunqResponse create(BunqMeTabEntryApiObject bunqmeTabEntry) { return create(bunqmeTabEntry, null, null, null, null); } - public static BunqResponse create(BunqMeTabEntryApiObject bunqmeTabEntry, Integer monetaryAccountId) { + public static BunqResponse create(BunqMeTabEntryApiObject bunqmeTabEntry, Long monetaryAccountId) { return create(bunqmeTabEntry, monetaryAccountId, null, null, null); } - public static BunqResponse create(BunqMeTabEntryApiObject bunqmeTabEntry, Integer monetaryAccountId, String status) { + public static BunqResponse create(BunqMeTabEntryApiObject bunqmeTabEntry, Long monetaryAccountId, String status) { return create(bunqmeTabEntry, monetaryAccountId, status, null, null); } - public static BunqResponse create(BunqMeTabEntryApiObject bunqmeTabEntry, Integer monetaryAccountId, String status, Integer eventId) { + public static BunqResponse create(BunqMeTabEntryApiObject bunqmeTabEntry, Long monetaryAccountId, String status, Long eventId) { return create(bunqmeTabEntry, monetaryAccountId, status, eventId, null); } @@ -215,7 +215,7 @@ public static BunqResponse create(BunqMeTabEntryApiObject bunqmeTabEntr * @param status The status of the bunq.me. Ignored in POST requests but can be used for * cancelling the bunq.me by setting status as CANCELLED with a PUT request. */ - public static BunqResponse update(Integer bunqMeTabId, Integer monetaryAccountId, String status, Map customHeaders) { + public static BunqResponse update(Long bunqMeTabId, Long monetaryAccountId, String status, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -231,21 +231,21 @@ public static BunqResponse update(Integer bunqMeTabId, Integer monetary return processForId(responseRaw); } - public static BunqResponse update(Integer bunqMeTabId) { + public static BunqResponse update(Long bunqMeTabId) { return update(bunqMeTabId, null, null, null); } - public static BunqResponse update(Integer bunqMeTabId, Integer monetaryAccountId) { + public static BunqResponse update(Long bunqMeTabId, Long monetaryAccountId) { return update(bunqMeTabId, monetaryAccountId, null, null); } - public static BunqResponse update(Integer bunqMeTabId, Integer monetaryAccountId, String status) { + public static BunqResponse update(Long bunqMeTabId, Long monetaryAccountId, String status) { return update(bunqMeTabId, monetaryAccountId, status, null); } /** */ - public static BunqResponse> list(Integer monetaryAccountId, Map params, Map customHeaders) { + public static BunqResponse> list(Long monetaryAccountId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_LISTING, determineUserId(), determineMonetaryAccountId(monetaryAccountId)), params, customHeaders); @@ -256,17 +256,17 @@ public static BunqResponse> list() { return list(null, null, null); } - public static BunqResponse> list(Integer monetaryAccountId) { + public static BunqResponse> list(Long monetaryAccountId) { return list(monetaryAccountId, null, null); } - public static BunqResponse> list(Integer monetaryAccountId, Map params) { + public static BunqResponse> list(Long monetaryAccountId, Map params) { return list(monetaryAccountId, params, null); } /** */ - public static BunqResponse get(Integer bunqMeTabId, Integer monetaryAccountId, Map params, Map customHeaders) { + public static BunqResponse get(Long bunqMeTabId, Long monetaryAccountId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_READ, determineUserId(), determineMonetaryAccountId(monetaryAccountId), bunqMeTabId), params, customHeaders); @@ -277,26 +277,26 @@ public static BunqResponse get() { return get(null, null, null, null); } - public static BunqResponse get(Integer bunqMeTabId) { + public static BunqResponse get(Long bunqMeTabId) { return get(bunqMeTabId, null, null, null); } - public static BunqResponse get(Integer bunqMeTabId, Integer monetaryAccountId) { + public static BunqResponse get(Long bunqMeTabId, Long monetaryAccountId) { return get(bunqMeTabId, monetaryAccountId, null, null); } - public static BunqResponse get(Integer bunqMeTabId, Integer monetaryAccountId, Map params) { + public static BunqResponse get(Long bunqMeTabId, Long monetaryAccountId, Map params) { return get(bunqMeTabId, monetaryAccountId, params, null); } /** * The id of the created bunq.me. */ - public Integer getId() { + public Long getId() { return this.id; } - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } @@ -336,11 +336,11 @@ public void setTimeExpiry(String timeExpiry) { /** * The id of the MonetaryAccount the bunq.me was sent from. */ - public Integer getMonetaryAccountId() { + public Long getMonetaryAccountId() { return this.monetaryAccountId; } - public void setMonetaryAccountId(Integer monetaryAccountId) { + public void setMonetaryAccountId(Long monetaryAccountId) { this.monetaryAccountId = monetaryAccountId; } diff --git a/src/main/java/com/bunq/sdk/model/generated/endpoint/BunqMeTabResultInquiryApiObject.java b/src/main/java/com/bunq/sdk/model/generated/endpoint/BunqMeTabResultInquiryApiObject.java index b4a13c48..9120c0f3 100644 --- a/src/main/java/com/bunq/sdk/model/generated/endpoint/BunqMeTabResultInquiryApiObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/endpoint/BunqMeTabResultInquiryApiObject.java @@ -29,7 +29,7 @@ public class BunqMeTabResultInquiryApiObject extends BunqModel { */ @Expose @SerializedName("bunq_me_tab_id") - private Integer bunqMeTabId; + private Long bunqMeTabId; /** * The payment made for the Tab. @@ -45,11 +45,11 @@ public void setPayment(PaymentApiObject payment) { /** * The Id of the bunq.me tab that this BunqMeTabResultInquiry belongs to. */ - public Integer getBunqMeTabId() { + public Long getBunqMeTabId() { return this.bunqMeTabId; } - public void setBunqMeTabId(Integer bunqMeTabId) { + public void setBunqMeTabId(Long bunqMeTabId) { this.bunqMeTabId = bunqMeTabId; } diff --git a/src/main/java/com/bunq/sdk/model/generated/endpoint/BunqMeTabResultResponseApiObject.java b/src/main/java/com/bunq/sdk/model/generated/endpoint/BunqMeTabResultResponseApiObject.java index dbb74823..4692952f 100644 --- a/src/main/java/com/bunq/sdk/model/generated/endpoint/BunqMeTabResultResponseApiObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/endpoint/BunqMeTabResultResponseApiObject.java @@ -41,7 +41,7 @@ public class BunqMeTabResultResponseApiObject extends BunqModel { /** */ - public static BunqResponse get(Integer bunqMeTabResultResponseId, Integer monetaryAccountId, Map params, Map customHeaders) { + public static BunqResponse get(Long bunqMeTabResultResponseId, Long monetaryAccountId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_READ, determineUserId(), determineMonetaryAccountId(monetaryAccountId), bunqMeTabResultResponseId), params, customHeaders); @@ -52,15 +52,15 @@ public static BunqResponse get() { return get(null, null, null, null); } - public static BunqResponse get(Integer bunqMeTabResultResponseId) { + public static BunqResponse get(Long bunqMeTabResultResponseId) { return get(bunqMeTabResultResponseId, null, null, null); } - public static BunqResponse get(Integer bunqMeTabResultResponseId, Integer monetaryAccountId) { + public static BunqResponse get(Long bunqMeTabResultResponseId, Long monetaryAccountId) { return get(bunqMeTabResultResponseId, monetaryAccountId, null, null); } - public static BunqResponse get(Integer bunqMeTabResultResponseId, Integer monetaryAccountId, Map params) { + public static BunqResponse get(Long bunqMeTabResultResponseId, Long monetaryAccountId, Map params) { return get(bunqMeTabResultResponseId, monetaryAccountId, params, null); } diff --git a/src/main/java/com/bunq/sdk/model/generated/endpoint/CardApiObject.java b/src/main/java/com/bunq/sdk/model/generated/endpoint/CardApiObject.java index 3e9b48dc..db943bf3 100644 --- a/src/main/java/com/bunq/sdk/model/generated/endpoint/CardApiObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/endpoint/CardApiObject.java @@ -61,7 +61,7 @@ public class CardApiObject extends BunqModel { */ @Expose @SerializedName("id") - private Integer id; + private Long id; /** * The timestamp of the card's creation. @@ -89,21 +89,21 @@ public class CardApiObject extends BunqModel { */ @Expose @SerializedName("user_id") - private Integer userId; + private Long userId; /** * ID of the user who is owner of the card. */ @Expose @SerializedName("user_owner_id") - private Integer userOwnerId; + private Long userOwnerId; /** * ID of the user who is holder of the card. */ @Expose @SerializedName("user_holder_id") - private Integer userHolderId; + private Long userHolderId; /** * The type of the card. Can be MAESTRO, MASTERCARD. @@ -262,7 +262,7 @@ public class CardApiObject extends BunqModel { */ @Expose @SerializedName("monetary_account_id_fallback") - private Integer monetaryAccountIdFallback; + private Long monetaryAccountIdFallback; /** * The country that is domestic to the card. Defaults to country of residence of user. @@ -397,7 +397,7 @@ public class CardApiObject extends BunqModel { */ @Expose @SerializedName("monetary_account_id_fallback_field_for_request") - private Integer monetaryAccountIdFallbackFieldForRequest; + private Long monetaryAccountIdFallbackFieldForRequest; /** * The user's preferred name as it will be on the card. @@ -460,19 +460,19 @@ public CardApiObject(String pinCode, String activationCode, String status, Strin this(pinCode, activationCode, status, orderStatus, cardLimit, cardLimitAtm, countryPermission, pinCodeAssignment, primaryAccountNumbers, null, null, null, null); } - public CardApiObject(String pinCode, String activationCode, String status, String orderStatus, AmountObject cardLimit, AmountObject cardLimitAtm, List countryPermission, List pinCodeAssignment, List primaryAccountNumbers, Integer monetaryAccountIdFallback) { + public CardApiObject(String pinCode, String activationCode, String status, String orderStatus, AmountObject cardLimit, AmountObject cardLimitAtm, List countryPermission, List pinCodeAssignment, List primaryAccountNumbers, Long monetaryAccountIdFallback) { this(pinCode, activationCode, status, orderStatus, cardLimit, cardLimitAtm, countryPermission, pinCodeAssignment, primaryAccountNumbers, monetaryAccountIdFallback, null, null, null); } - public CardApiObject(String pinCode, String activationCode, String status, String orderStatus, AmountObject cardLimit, AmountObject cardLimitAtm, List countryPermission, List pinCodeAssignment, List primaryAccountNumbers, Integer monetaryAccountIdFallback, String preferredNameOnCard) { + public CardApiObject(String pinCode, String activationCode, String status, String orderStatus, AmountObject cardLimit, AmountObject cardLimitAtm, List countryPermission, List pinCodeAssignment, List primaryAccountNumbers, Long monetaryAccountIdFallback, String preferredNameOnCard) { this(pinCode, activationCode, status, orderStatus, cardLimit, cardLimitAtm, countryPermission, pinCodeAssignment, primaryAccountNumbers, monetaryAccountIdFallback, preferredNameOnCard, null, null); } - public CardApiObject(String pinCode, String activationCode, String status, String orderStatus, AmountObject cardLimit, AmountObject cardLimitAtm, List countryPermission, List pinCodeAssignment, List primaryAccountNumbers, Integer monetaryAccountIdFallback, String preferredNameOnCard, String secondLine) { + public CardApiObject(String pinCode, String activationCode, String status, String orderStatus, AmountObject cardLimit, AmountObject cardLimitAtm, List countryPermission, List pinCodeAssignment, List primaryAccountNumbers, Long monetaryAccountIdFallback, String preferredNameOnCard, String secondLine) { this(pinCode, activationCode, status, orderStatus, cardLimit, cardLimitAtm, countryPermission, pinCodeAssignment, primaryAccountNumbers, monetaryAccountIdFallback, preferredNameOnCard, secondLine, null); } - public CardApiObject(String pinCode, String activationCode, String status, String orderStatus, AmountObject cardLimit, AmountObject cardLimitAtm, List countryPermission, List pinCodeAssignment, List primaryAccountNumbers, Integer monetaryAccountIdFallback, String preferredNameOnCard, String secondLine, String cancellationReason) { + public CardApiObject(String pinCode, String activationCode, String status, String orderStatus, AmountObject cardLimit, AmountObject cardLimitAtm, List countryPermission, List pinCodeAssignment, List primaryAccountNumbers, Long monetaryAccountIdFallback, String preferredNameOnCard, String secondLine, String cancellationReason) { this.pinCodeFieldForRequest = pinCode; this.activationCodeFieldForRequest = activationCode; this.statusFieldForRequest = status; @@ -514,7 +514,7 @@ public CardApiObject(String pinCode, String activationCode, String status, Strin * @param secondLine The second line of text on the card * @param cancellationReason The reason for card cancellation. */ - public static BunqResponse update(Integer cardId, String pinCode, String activationCode, String status, String orderStatus, AmountObject cardLimit, AmountObject cardLimitAtm, List countryPermission, List pinCodeAssignment, List primaryAccountNumbers, Integer monetaryAccountIdFallback, String preferredNameOnCard, String secondLine, String cancellationReason, Map customHeaders) { + public static BunqResponse update(Long cardId, String pinCode, String activationCode, String status, String orderStatus, AmountObject cardLimit, AmountObject cardLimitAtm, List countryPermission, List pinCodeAssignment, List primaryAccountNumbers, Long monetaryAccountIdFallback, String preferredNameOnCard, String secondLine, String cancellationReason, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -542,66 +542,66 @@ public static BunqResponse update(Integer cardId, String pinCode, return fromJson(CardApiObject.class, responseRaw, OBJECT_TYPE_PUT); } - public static BunqResponse update(Integer cardId) { + public static BunqResponse update(Long cardId) { return update(cardId, null, null, null, null, null, null, null, null, null, null, null, null, null, null); } - public static BunqResponse update(Integer cardId, String pinCode) { + public static BunqResponse update(Long cardId, String pinCode) { return update(cardId, pinCode, null, null, null, null, null, null, null, null, null, null, null, null, null); } - public static BunqResponse update(Integer cardId, String pinCode, String activationCode) { + public static BunqResponse update(Long cardId, String pinCode, String activationCode) { return update(cardId, pinCode, activationCode, null, null, null, null, null, null, null, null, null, null, null, null); } - public static BunqResponse update(Integer cardId, String pinCode, String activationCode, String status) { + public static BunqResponse update(Long cardId, String pinCode, String activationCode, String status) { return update(cardId, pinCode, activationCode, status, null, null, null, null, null, null, null, null, null, null, null); } - public static BunqResponse update(Integer cardId, String pinCode, String activationCode, String status, String orderStatus) { + public static BunqResponse update(Long cardId, String pinCode, String activationCode, String status, String orderStatus) { return update(cardId, pinCode, activationCode, status, orderStatus, null, null, null, null, null, null, null, null, null, null); } - public static BunqResponse update(Integer cardId, String pinCode, String activationCode, String status, String orderStatus, AmountObject cardLimit) { + public static BunqResponse update(Long cardId, String pinCode, String activationCode, String status, String orderStatus, AmountObject cardLimit) { return update(cardId, pinCode, activationCode, status, orderStatus, cardLimit, null, null, null, null, null, null, null, null, null); } - public static BunqResponse update(Integer cardId, String pinCode, String activationCode, String status, String orderStatus, AmountObject cardLimit, AmountObject cardLimitAtm) { + public static BunqResponse update(Long cardId, String pinCode, String activationCode, String status, String orderStatus, AmountObject cardLimit, AmountObject cardLimitAtm) { return update(cardId, pinCode, activationCode, status, orderStatus, cardLimit, cardLimitAtm, null, null, null, null, null, null, null, null); } - public static BunqResponse update(Integer cardId, String pinCode, String activationCode, String status, String orderStatus, AmountObject cardLimit, AmountObject cardLimitAtm, List countryPermission) { + public static BunqResponse update(Long cardId, String pinCode, String activationCode, String status, String orderStatus, AmountObject cardLimit, AmountObject cardLimitAtm, List countryPermission) { return update(cardId, pinCode, activationCode, status, orderStatus, cardLimit, cardLimitAtm, countryPermission, null, null, null, null, null, null, null); } - public static BunqResponse update(Integer cardId, String pinCode, String activationCode, String status, String orderStatus, AmountObject cardLimit, AmountObject cardLimitAtm, List countryPermission, List pinCodeAssignment) { + public static BunqResponse update(Long cardId, String pinCode, String activationCode, String status, String orderStatus, AmountObject cardLimit, AmountObject cardLimitAtm, List countryPermission, List pinCodeAssignment) { return update(cardId, pinCode, activationCode, status, orderStatus, cardLimit, cardLimitAtm, countryPermission, pinCodeAssignment, null, null, null, null, null, null); } - public static BunqResponse update(Integer cardId, String pinCode, String activationCode, String status, String orderStatus, AmountObject cardLimit, AmountObject cardLimitAtm, List countryPermission, List pinCodeAssignment, List primaryAccountNumbers) { + public static BunqResponse update(Long cardId, String pinCode, String activationCode, String status, String orderStatus, AmountObject cardLimit, AmountObject cardLimitAtm, List countryPermission, List pinCodeAssignment, List primaryAccountNumbers) { return update(cardId, pinCode, activationCode, status, orderStatus, cardLimit, cardLimitAtm, countryPermission, pinCodeAssignment, primaryAccountNumbers, null, null, null, null, null); } - public static BunqResponse update(Integer cardId, String pinCode, String activationCode, String status, String orderStatus, AmountObject cardLimit, AmountObject cardLimitAtm, List countryPermission, List pinCodeAssignment, List primaryAccountNumbers, Integer monetaryAccountIdFallback) { + public static BunqResponse update(Long cardId, String pinCode, String activationCode, String status, String orderStatus, AmountObject cardLimit, AmountObject cardLimitAtm, List countryPermission, List pinCodeAssignment, List primaryAccountNumbers, Long monetaryAccountIdFallback) { return update(cardId, pinCode, activationCode, status, orderStatus, cardLimit, cardLimitAtm, countryPermission, pinCodeAssignment, primaryAccountNumbers, monetaryAccountIdFallback, null, null, null, null); } - public static BunqResponse update(Integer cardId, String pinCode, String activationCode, String status, String orderStatus, AmountObject cardLimit, AmountObject cardLimitAtm, List countryPermission, List pinCodeAssignment, List primaryAccountNumbers, Integer monetaryAccountIdFallback, String preferredNameOnCard) { + public static BunqResponse update(Long cardId, String pinCode, String activationCode, String status, String orderStatus, AmountObject cardLimit, AmountObject cardLimitAtm, List countryPermission, List pinCodeAssignment, List primaryAccountNumbers, Long monetaryAccountIdFallback, String preferredNameOnCard) { return update(cardId, pinCode, activationCode, status, orderStatus, cardLimit, cardLimitAtm, countryPermission, pinCodeAssignment, primaryAccountNumbers, monetaryAccountIdFallback, preferredNameOnCard, null, null, null); } - public static BunqResponse update(Integer cardId, String pinCode, String activationCode, String status, String orderStatus, AmountObject cardLimit, AmountObject cardLimitAtm, List countryPermission, List pinCodeAssignment, List primaryAccountNumbers, Integer monetaryAccountIdFallback, String preferredNameOnCard, String secondLine) { + public static BunqResponse update(Long cardId, String pinCode, String activationCode, String status, String orderStatus, AmountObject cardLimit, AmountObject cardLimitAtm, List countryPermission, List pinCodeAssignment, List primaryAccountNumbers, Long monetaryAccountIdFallback, String preferredNameOnCard, String secondLine) { return update(cardId, pinCode, activationCode, status, orderStatus, cardLimit, cardLimitAtm, countryPermission, pinCodeAssignment, primaryAccountNumbers, monetaryAccountIdFallback, preferredNameOnCard, secondLine, null, null); } - public static BunqResponse update(Integer cardId, String pinCode, String activationCode, String status, String orderStatus, AmountObject cardLimit, AmountObject cardLimitAtm, List countryPermission, List pinCodeAssignment, List primaryAccountNumbers, Integer monetaryAccountIdFallback, String preferredNameOnCard, String secondLine, String cancellationReason) { + public static BunqResponse update(Long cardId, String pinCode, String activationCode, String status, String orderStatus, AmountObject cardLimit, AmountObject cardLimitAtm, List countryPermission, List pinCodeAssignment, List primaryAccountNumbers, Long monetaryAccountIdFallback, String preferredNameOnCard, String secondLine, String cancellationReason) { return update(cardId, pinCode, activationCode, status, orderStatus, cardLimit, cardLimitAtm, countryPermission, pinCodeAssignment, primaryAccountNumbers, monetaryAccountIdFallback, preferredNameOnCard, secondLine, cancellationReason, null); } /** * Return the details of a specific card. */ - public static BunqResponse get(Integer cardId, Map params, Map customHeaders) { + public static BunqResponse get(Long cardId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_READ, determineUserId(), cardId), params, customHeaders); @@ -612,11 +612,11 @@ public static BunqResponse get() { return get(null, null, null); } - public static BunqResponse get(Integer cardId) { + public static BunqResponse get(Long cardId) { return get(cardId, null, null); } - public static BunqResponse get(Integer cardId, Map params) { + public static BunqResponse get(Long cardId, Map params) { return get(cardId, params, null); } @@ -641,11 +641,11 @@ public static BunqResponse> list(Map params) /** * The id of the card. */ - public Integer getId() { + public Long getId() { return this.id; } - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } @@ -685,33 +685,33 @@ public void setPublicUuid(String publicUuid) { /** * DEPRECATED. ID of the user who is owner of the card. */ - public Integer getUserId() { + public Long getUserId() { return this.userId; } - public void setUserId(Integer userId) { + public void setUserId(Long userId) { this.userId = userId; } /** * ID of the user who is owner of the card. */ - public Integer getUserOwnerId() { + public Long getUserOwnerId() { return this.userOwnerId; } - public void setUserOwnerId(Integer userOwnerId) { + public void setUserOwnerId(Long userOwnerId) { this.userOwnerId = userOwnerId; } /** * ID of the user who is holder of the card. */ - public Integer getUserHolderId() { + public Long getUserHolderId() { return this.userHolderId; } - public void setUserHolderId(Integer userHolderId) { + public void setUserHolderId(Long userHolderId) { this.userHolderId = userHolderId; } @@ -954,11 +954,11 @@ public void setPinCodeAssignment(List pinCodeAssignment * ID of the MA to be used as fallback for this card if insufficient balance. Fallback account * is removed if not supplied. */ - public Integer getMonetaryAccountIdFallback() { + public Long getMonetaryAccountIdFallback() { return this.monetaryAccountIdFallback; } - public void setMonetaryAccountIdFallback(Integer monetaryAccountIdFallback) { + public void setMonetaryAccountIdFallback(Long monetaryAccountIdFallback) { this.monetaryAccountIdFallback = monetaryAccountIdFallback; } diff --git a/src/main/java/com/bunq/sdk/model/generated/endpoint/CardCreditApiObject.java b/src/main/java/com/bunq/sdk/model/generated/endpoint/CardCreditApiObject.java index ee604241..978cdb24 100644 --- a/src/main/java/com/bunq/sdk/model/generated/endpoint/CardCreditApiObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/endpoint/CardCreditApiObject.java @@ -57,7 +57,7 @@ public class CardCreditApiObject extends BunqModel { */ @Expose @SerializedName("id") - private Integer id; + private Long id; /** * The timestamp of the card's creation. @@ -85,21 +85,21 @@ public class CardCreditApiObject extends BunqModel { */ @Expose @SerializedName("user_id") - private Integer userId; + private Long userId; /** * ID of the user who is owner of the card. */ @Expose @SerializedName("user_owner_id") - private Integer userOwnerId; + private Long userOwnerId; /** * ID of the user who is holder of the card. */ @Expose @SerializedName("user_holder_id") - private Integer userHolderId; + private Long userHolderId; /** * The type of the card. Can be MAESTRO, MASTERCARD. @@ -258,7 +258,7 @@ public class CardCreditApiObject extends BunqModel { */ @Expose @SerializedName("monetary_account_id_fallback") - private Integer monetaryAccountIdFallback; + private Long monetaryAccountIdFallback; /** * The country that is domestic to the card. Defaults to country of residence of user. @@ -383,7 +383,7 @@ public class CardCreditApiObject extends BunqModel { */ @Expose @SerializedName("monetary_account_id_fallback_field_for_request") - private Integer monetaryAccountIdFallbackFieldForRequest; + private Long monetaryAccountIdFallbackFieldForRequest; /** * The order status of this card. Can be CARD_REQUEST_PENDING or VIRTUAL_DELIVERY. @@ -428,11 +428,11 @@ public CardCreditApiObject(String secondLine, String nameOnCard, String type, St this(secondLine, nameOnCard, type, productType, firstLine, preferredNameOnCard, alias, pinCodeAssignment, null, null); } - public CardCreditApiObject(String secondLine, String nameOnCard, String type, String productType, String firstLine, String preferredNameOnCard, PointerObject alias, List pinCodeAssignment, Integer monetaryAccountIdFallback) { + public CardCreditApiObject(String secondLine, String nameOnCard, String type, String productType, String firstLine, String preferredNameOnCard, PointerObject alias, List pinCodeAssignment, Long monetaryAccountIdFallback) { this(secondLine, nameOnCard, type, productType, firstLine, preferredNameOnCard, alias, pinCodeAssignment, monetaryAccountIdFallback, null); } - public CardCreditApiObject(String secondLine, String nameOnCard, String type, String productType, String firstLine, String preferredNameOnCard, PointerObject alias, List pinCodeAssignment, Integer monetaryAccountIdFallback, String orderStatus) { + public CardCreditApiObject(String secondLine, String nameOnCard, String type, String productType, String firstLine, String preferredNameOnCard, PointerObject alias, List pinCodeAssignment, Long monetaryAccountIdFallback, String orderStatus) { this.firstLineFieldForRequest = firstLine; this.secondLineFieldForRequest = secondLine; this.nameOnCardFieldForRequest = nameOnCard; @@ -463,7 +463,7 @@ public CardCreditApiObject(String secondLine, String nameOnCard, String type, St * @param orderStatus The order status of this card. Can be CARD_REQUEST_PENDING or * VIRTUAL_DELIVERY. */ - public static BunqResponse create(String secondLine, String nameOnCard, String type, String productType, String firstLine, String preferredNameOnCard, PointerObject alias, List pinCodeAssignment, Integer monetaryAccountIdFallback, String orderStatus, Map customHeaders) { + public static BunqResponse create(String secondLine, String nameOnCard, String type, String productType, String firstLine, String preferredNameOnCard, PointerObject alias, List pinCodeAssignment, Long monetaryAccountIdFallback, String orderStatus, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -524,22 +524,22 @@ public static BunqResponse create(String secondLine, String return create(secondLine, nameOnCard, type, productType, firstLine, preferredNameOnCard, alias, pinCodeAssignment, null, null, null); } - public static BunqResponse create(String secondLine, String nameOnCard, String type, String productType, String firstLine, String preferredNameOnCard, PointerObject alias, List pinCodeAssignment, Integer monetaryAccountIdFallback) { + public static BunqResponse create(String secondLine, String nameOnCard, String type, String productType, String firstLine, String preferredNameOnCard, PointerObject alias, List pinCodeAssignment, Long monetaryAccountIdFallback) { return create(secondLine, nameOnCard, type, productType, firstLine, preferredNameOnCard, alias, pinCodeAssignment, monetaryAccountIdFallback, null, null); } - public static BunqResponse create(String secondLine, String nameOnCard, String type, String productType, String firstLine, String preferredNameOnCard, PointerObject alias, List pinCodeAssignment, Integer monetaryAccountIdFallback, String orderStatus) { + public static BunqResponse create(String secondLine, String nameOnCard, String type, String productType, String firstLine, String preferredNameOnCard, PointerObject alias, List pinCodeAssignment, Long monetaryAccountIdFallback, String orderStatus) { return create(secondLine, nameOnCard, type, productType, firstLine, preferredNameOnCard, alias, pinCodeAssignment, monetaryAccountIdFallback, orderStatus, null); } /** * The id of the card. */ - public Integer getId() { + public Long getId() { return this.id; } - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } @@ -579,33 +579,33 @@ public void setPublicUuid(String publicUuid) { /** * DEPRECATED. ID of the user who is owner of the card. */ - public Integer getUserId() { + public Long getUserId() { return this.userId; } - public void setUserId(Integer userId) { + public void setUserId(Long userId) { this.userId = userId; } /** * ID of the user who is owner of the card. */ - public Integer getUserOwnerId() { + public Long getUserOwnerId() { return this.userOwnerId; } - public void setUserOwnerId(Integer userOwnerId) { + public void setUserOwnerId(Long userOwnerId) { this.userOwnerId = userOwnerId; } /** * ID of the user who is holder of the card. */ - public Integer getUserHolderId() { + public Long getUserHolderId() { return this.userHolderId; } - public void setUserHolderId(Integer userHolderId) { + public void setUserHolderId(Long userHolderId) { this.userHolderId = userHolderId; } @@ -848,11 +848,11 @@ public void setPinCodeAssignment(List pinCodeAssignment * ID of the MA to be used as fallback for this card if insufficient balance. Fallback account * is removed if not supplied. */ - public Integer getMonetaryAccountIdFallback() { + public Long getMonetaryAccountIdFallback() { return this.monetaryAccountIdFallback; } - public void setMonetaryAccountIdFallback(Integer monetaryAccountIdFallback) { + public void setMonetaryAccountIdFallback(Long monetaryAccountIdFallback) { this.monetaryAccountIdFallback = monetaryAccountIdFallback; } diff --git a/src/main/java/com/bunq/sdk/model/generated/endpoint/CardDebitApiObject.java b/src/main/java/com/bunq/sdk/model/generated/endpoint/CardDebitApiObject.java index 59a27dc3..b68dff47 100644 --- a/src/main/java/com/bunq/sdk/model/generated/endpoint/CardDebitApiObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/endpoint/CardDebitApiObject.java @@ -56,7 +56,7 @@ public class CardDebitApiObject extends BunqModel { */ @Expose @SerializedName("id") - private Integer id; + private Long id; /** * The timestamp of the card's creation. @@ -84,21 +84,21 @@ public class CardDebitApiObject extends BunqModel { */ @Expose @SerializedName("user_id") - private Integer userId; + private Long userId; /** * ID of the user who is owner of the card. */ @Expose @SerializedName("user_owner_id") - private Integer userOwnerId; + private Long userOwnerId; /** * ID of the user who is holder of the card. */ @Expose @SerializedName("user_holder_id") - private Integer userHolderId; + private Long userHolderId; /** * The type of the card. Can be MAESTRO, MASTERCARD. @@ -257,7 +257,7 @@ public class CardDebitApiObject extends BunqModel { */ @Expose @SerializedName("monetary_account_id_fallback") - private Integer monetaryAccountIdFallback; + private Long monetaryAccountIdFallback; /** * The country that is domestic to the card. Defaults to country of residence of user. @@ -374,7 +374,7 @@ public class CardDebitApiObject extends BunqModel { */ @Expose @SerializedName("monetary_account_id_fallback_field_for_request") - private Integer monetaryAccountIdFallbackFieldForRequest; + private Long monetaryAccountIdFallbackFieldForRequest; /** * The order status of this card. Can be CARD_REQUEST_PENDING or VIRTUAL_DELIVERY. @@ -415,11 +415,11 @@ public CardDebitApiObject(String secondLine, String nameOnCard, String type, Str this(secondLine, nameOnCard, type, productType, preferredNameOnCard, alias, pinCodeAssignment, null, null); } - public CardDebitApiObject(String secondLine, String nameOnCard, String type, String productType, String preferredNameOnCard, PointerObject alias, List pinCodeAssignment, Integer monetaryAccountIdFallback) { + public CardDebitApiObject(String secondLine, String nameOnCard, String type, String productType, String preferredNameOnCard, PointerObject alias, List pinCodeAssignment, Long monetaryAccountIdFallback) { this(secondLine, nameOnCard, type, productType, preferredNameOnCard, alias, pinCodeAssignment, monetaryAccountIdFallback, null); } - public CardDebitApiObject(String secondLine, String nameOnCard, String type, String productType, String preferredNameOnCard, PointerObject alias, List pinCodeAssignment, Integer monetaryAccountIdFallback, String orderStatus) { + public CardDebitApiObject(String secondLine, String nameOnCard, String type, String productType, String preferredNameOnCard, PointerObject alias, List pinCodeAssignment, Long monetaryAccountIdFallback, String orderStatus) { this.secondLineFieldForRequest = secondLine; this.nameOnCardFieldForRequest = nameOnCard; this.preferredNameOnCardFieldForRequest = preferredNameOnCard; @@ -447,7 +447,7 @@ public CardDebitApiObject(String secondLine, String nameOnCard, String type, Str * @param orderStatus The order status of this card. Can be CARD_REQUEST_PENDING or * VIRTUAL_DELIVERY. */ - public static BunqResponse create(String secondLine, String nameOnCard, String type, String productType, String preferredNameOnCard, PointerObject alias, List pinCodeAssignment, Integer monetaryAccountIdFallback, String orderStatus, Map customHeaders) { + public static BunqResponse create(String secondLine, String nameOnCard, String type, String productType, String preferredNameOnCard, PointerObject alias, List pinCodeAssignment, Long monetaryAccountIdFallback, String orderStatus, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -503,22 +503,22 @@ public static BunqResponse create(String secondLine, String return create(secondLine, nameOnCard, type, productType, preferredNameOnCard, alias, pinCodeAssignment, null, null, null); } - public static BunqResponse create(String secondLine, String nameOnCard, String type, String productType, String preferredNameOnCard, PointerObject alias, List pinCodeAssignment, Integer monetaryAccountIdFallback) { + public static BunqResponse create(String secondLine, String nameOnCard, String type, String productType, String preferredNameOnCard, PointerObject alias, List pinCodeAssignment, Long monetaryAccountIdFallback) { return create(secondLine, nameOnCard, type, productType, preferredNameOnCard, alias, pinCodeAssignment, monetaryAccountIdFallback, null, null); } - public static BunqResponse create(String secondLine, String nameOnCard, String type, String productType, String preferredNameOnCard, PointerObject alias, List pinCodeAssignment, Integer monetaryAccountIdFallback, String orderStatus) { + public static BunqResponse create(String secondLine, String nameOnCard, String type, String productType, String preferredNameOnCard, PointerObject alias, List pinCodeAssignment, Long monetaryAccountIdFallback, String orderStatus) { return create(secondLine, nameOnCard, type, productType, preferredNameOnCard, alias, pinCodeAssignment, monetaryAccountIdFallback, orderStatus, null); } /** * The id of the card. */ - public Integer getId() { + public Long getId() { return this.id; } - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } @@ -558,33 +558,33 @@ public void setPublicUuid(String publicUuid) { /** * DEPRECATED. ID of the user who is owner of the card. */ - public Integer getUserId() { + public Long getUserId() { return this.userId; } - public void setUserId(Integer userId) { + public void setUserId(Long userId) { this.userId = userId; } /** * ID of the user who is owner of the card. */ - public Integer getUserOwnerId() { + public Long getUserOwnerId() { return this.userOwnerId; } - public void setUserOwnerId(Integer userOwnerId) { + public void setUserOwnerId(Long userOwnerId) { this.userOwnerId = userOwnerId; } /** * ID of the user who is holder of the card. */ - public Integer getUserHolderId() { + public Long getUserHolderId() { return this.userHolderId; } - public void setUserHolderId(Integer userHolderId) { + public void setUserHolderId(Long userHolderId) { this.userHolderId = userHolderId; } @@ -827,11 +827,11 @@ public void setPinCodeAssignment(List pinCodeAssignment * ID of the MA to be used as fallback for this card if insufficient balance. Fallback account * is removed if not supplied. */ - public Integer getMonetaryAccountIdFallback() { + public Long getMonetaryAccountIdFallback() { return this.monetaryAccountIdFallback; } - public void setMonetaryAccountIdFallback(Integer monetaryAccountIdFallback) { + public void setMonetaryAccountIdFallback(Long monetaryAccountIdFallback) { this.monetaryAccountIdFallback = monetaryAccountIdFallback; } diff --git a/src/main/java/com/bunq/sdk/model/generated/endpoint/CardGeneratedCvc2ApiObject.java b/src/main/java/com/bunq/sdk/model/generated/endpoint/CardGeneratedCvc2ApiObject.java index 4b6cfdcf..0a92c3dc 100644 --- a/src/main/java/com/bunq/sdk/model/generated/endpoint/CardGeneratedCvc2ApiObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/endpoint/CardGeneratedCvc2ApiObject.java @@ -44,7 +44,7 @@ public class CardGeneratedCvc2ApiObject extends BunqModel { */ @Expose @SerializedName("id") - private Integer id; + private Long id; /** * The timestamp of the cvc code's creation. @@ -105,7 +105,7 @@ public CardGeneratedCvc2ApiObject(String type) { * Generate a new CVC2 code for a card. * @param type The type of generated cvc2. Can be STATIC or GENERATED. */ - public static BunqResponse create(Integer cardId, String type, Map customHeaders) { + public static BunqResponse create(Long cardId, String type, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -121,22 +121,22 @@ public static BunqResponse create(Integer cardId, String type, Map create() { + public static BunqResponse create() { return create(null, null, null); } - public static BunqResponse create(Integer cardId) { + public static BunqResponse create(Long cardId) { return create(cardId, null, null); } - public static BunqResponse create(Integer cardId, String type) { + public static BunqResponse create(Long cardId, String type) { return create(cardId, type, null); } /** * Get the details for a specific generated CVC2 code. */ - public static BunqResponse get(Integer cardId, Integer cardGeneratedCvc2Id, Map params, Map customHeaders) { + public static BunqResponse get(Long cardId, Long cardGeneratedCvc2Id, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_READ, determineUserId(), cardId, cardGeneratedCvc2Id), params, customHeaders); @@ -147,22 +147,22 @@ public static BunqResponse get() { return get(null, null, null, null); } - public static BunqResponse get(Integer cardId) { + public static BunqResponse get(Long cardId) { return get(cardId, null, null, null); } - public static BunqResponse get(Integer cardId, Integer cardGeneratedCvc2Id) { + public static BunqResponse get(Long cardId, Long cardGeneratedCvc2Id) { return get(cardId, cardGeneratedCvc2Id, null, null); } - public static BunqResponse get(Integer cardId, Integer cardGeneratedCvc2Id, Map params) { + public static BunqResponse get(Long cardId, Long cardGeneratedCvc2Id, Map params) { return get(cardId, cardGeneratedCvc2Id, params, null); } /** * @param type The type of generated cvc2. Can be STATIC or GENERATED. */ - public static BunqResponse update(Integer cardId, Integer cardGeneratedCvc2Id, String type, Map customHeaders) { + public static BunqResponse update(Long cardId, Long cardGeneratedCvc2Id, String type, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -178,22 +178,22 @@ public static BunqResponse update(Integer cardId, Integer cardGenerated return processForId(responseRaw); } - public static BunqResponse update(Integer cardId) { + public static BunqResponse update(Long cardId) { return update(cardId, null, null, null); } - public static BunqResponse update(Integer cardId, Integer cardGeneratedCvc2Id) { + public static BunqResponse update(Long cardId, Long cardGeneratedCvc2Id) { return update(cardId, cardGeneratedCvc2Id, null, null); } - public static BunqResponse update(Integer cardId, Integer cardGeneratedCvc2Id, String type) { + public static BunqResponse update(Long cardId, Long cardGeneratedCvc2Id, String type) { return update(cardId, cardGeneratedCvc2Id, type, null); } /** * Get all generated CVC2 codes for a card. */ - public static BunqResponse> list(Integer cardId, Map params, Map customHeaders) { + public static BunqResponse> list(Long cardId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_LISTING, determineUserId(), cardId), params, customHeaders); @@ -204,22 +204,22 @@ public static BunqResponse> list() { return list(null, null, null); } - public static BunqResponse> list(Integer cardId) { + public static BunqResponse> list(Long cardId) { return list(cardId, null, null); } - public static BunqResponse> list(Integer cardId, Map params) { + public static BunqResponse> list(Long cardId, Map params) { return list(cardId, params, null); } /** * The id of the cvc code. */ - public Integer getId() { + public Long getId() { return this.id; } - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } diff --git a/src/main/java/com/bunq/sdk/model/generated/endpoint/CardReplaceApiObject.java b/src/main/java/com/bunq/sdk/model/generated/endpoint/CardReplaceApiObject.java index 7361d62c..1781791a 100644 --- a/src/main/java/com/bunq/sdk/model/generated/endpoint/CardReplaceApiObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/endpoint/CardReplaceApiObject.java @@ -44,7 +44,7 @@ public class CardReplaceApiObject extends BunqModel { */ @Expose @SerializedName("id") - private Integer id; + private Long id; /** * The user's name as it will be on the card. Check 'card-name' for the available card names for @@ -104,7 +104,7 @@ public CardReplaceApiObject(String nameOnCard, String preferredNameOnCard, List< * @param pinCodeAssignment Array of Types, PINs, account IDs assigned to the card. * @param secondLine The second line on the card. */ - public static BunqResponse create(Integer cardId, String nameOnCard, String preferredNameOnCard, List pinCodeAssignment, String secondLine, Map customHeaders) { + public static BunqResponse create(Long cardId, String nameOnCard, String preferredNameOnCard, List pinCodeAssignment, String secondLine, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -123,38 +123,38 @@ public static BunqResponse create(Integer cardId, String nameOnCard, St return processForId(responseRaw); } - public static BunqResponse create() { + public static BunqResponse create() { return create(null, null, null, null, null, null); } - public static BunqResponse create(Integer cardId) { + public static BunqResponse create(Long cardId) { return create(cardId, null, null, null, null, null); } - public static BunqResponse create(Integer cardId, String nameOnCard) { + public static BunqResponse create(Long cardId, String nameOnCard) { return create(cardId, nameOnCard, null, null, null, null); } - public static BunqResponse create(Integer cardId, String nameOnCard, String preferredNameOnCard) { + public static BunqResponse create(Long cardId, String nameOnCard, String preferredNameOnCard) { return create(cardId, nameOnCard, preferredNameOnCard, null, null, null); } - public static BunqResponse create(Integer cardId, String nameOnCard, String preferredNameOnCard, List pinCodeAssignment) { + public static BunqResponse create(Long cardId, String nameOnCard, String preferredNameOnCard, List pinCodeAssignment) { return create(cardId, nameOnCard, preferredNameOnCard, pinCodeAssignment, null, null); } - public static BunqResponse create(Integer cardId, String nameOnCard, String preferredNameOnCard, List pinCodeAssignment, String secondLine) { + public static BunqResponse create(Long cardId, String nameOnCard, String preferredNameOnCard, List pinCodeAssignment, String secondLine) { return create(cardId, nameOnCard, preferredNameOnCard, pinCodeAssignment, secondLine, null); } /** * The id of the new card. */ - public Integer getId() { + public Long getId() { return this.id; } - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } diff --git a/src/main/java/com/bunq/sdk/model/generated/endpoint/CardReplacementApiObject.java b/src/main/java/com/bunq/sdk/model/generated/endpoint/CardReplacementApiObject.java index f1ee8be0..04c01d62 100644 --- a/src/main/java/com/bunq/sdk/model/generated/endpoint/CardReplacementApiObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/endpoint/CardReplacementApiObject.java @@ -36,14 +36,14 @@ public class CardReplacementApiObject extends BunqModel { */ @Expose @SerializedName("card_id") - private Integer cardId; + private Long cardId; /** * The new card that replaces the original card in the CardReplacement. */ @Expose @SerializedName("card_new_id") - private Integer cardNewId; + private Long cardNewId; /** * The status of the CardReplacement. @@ -98,22 +98,22 @@ public void setStatus(String status) { /** * The original card that belongs to the CardReplacement. */ - public Integer getCardId() { + public Long getCardId() { return this.cardId; } - public void setCardId(Integer cardId) { + public void setCardId(Long cardId) { this.cardId = cardId; } /** * The new card that replaces the original card in the CardReplacement. */ - public Integer getCardNewId() { + public Long getCardNewId() { return this.cardNewId; } - public void setCardNewId(Integer cardNewId) { + public void setCardNewId(Long cardNewId) { this.cardNewId = cardNewId; } diff --git a/src/main/java/com/bunq/sdk/model/generated/endpoint/CertificatePinnedApiObject.java b/src/main/java/com/bunq/sdk/model/generated/endpoint/CertificatePinnedApiObject.java index f75b4b2b..6c673740 100644 --- a/src/main/java/com/bunq/sdk/model/generated/endpoint/CertificatePinnedApiObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/endpoint/CertificatePinnedApiObject.java @@ -54,7 +54,7 @@ public class CertificatePinnedApiObject extends BunqModel { */ @Expose @SerializedName("id") - private Integer id; + private Long id; /** * The certificate chain in .PEM format. @@ -73,7 +73,7 @@ public CertificatePinnedApiObject(List certificateChain) { * Pin the certificate chain. * @param certificateChain The certificate chain in .PEM format. */ - public static BunqResponse create(List certificateChain, Map customHeaders) { + public static BunqResponse create(List certificateChain, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -89,25 +89,25 @@ public static BunqResponse create(List certificateCh return processForId(responseRaw); } - public static BunqResponse create() { + public static BunqResponse create() { return create(null, null); } - public static BunqResponse create(List certificateChain) { + public static BunqResponse create(List certificateChain) { return create(certificateChain, null); } /** * Remove the pinned certificate chain with the specific ID. */ - public static BunqResponse delete(Integer certificatePinnedId, Map customHeaders) { + public static BunqResponse delete(Long certificatePinnedId, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.delete(String.format(ENDPOINT_URL_DELETE, determineUserId(), certificatePinnedId), customHeaders); return new BunqResponse<>(null, responseRaw.getHeaders()); } - public static BunqResponse delete(Integer certificatePinnedId) { + public static BunqResponse delete(Long certificatePinnedId) { return delete(certificatePinnedId, null); } @@ -132,7 +132,7 @@ public static BunqResponse> list(Map get(Integer certificatePinnedId, Map params, Map customHeaders) { + public static BunqResponse get(Long certificatePinnedId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_READ, determineUserId(), certificatePinnedId), params, customHeaders); @@ -143,11 +143,11 @@ public static BunqResponse get() { return get(null, null, null); } - public static BunqResponse get(Integer certificatePinnedId) { + public static BunqResponse get(Long certificatePinnedId) { return get(certificatePinnedId, null, null); } - public static BunqResponse get(Integer certificatePinnedId, Map params) { + public static BunqResponse get(Long certificatePinnedId, Map params) { return get(certificatePinnedId, params, null); } @@ -165,11 +165,11 @@ public void setCertificateChain(String certificateChain) { /** * The id generated for the pinned certificate chain. */ - public Integer getId() { + public Long getId() { return this.id; } - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } diff --git a/src/main/java/com/bunq/sdk/model/generated/endpoint/CoOwnerInviteResponseApiObject.java b/src/main/java/com/bunq/sdk/model/generated/endpoint/CoOwnerInviteResponseApiObject.java index 9117d71d..0386dbd4 100644 --- a/src/main/java/com/bunq/sdk/model/generated/endpoint/CoOwnerInviteResponseApiObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/endpoint/CoOwnerInviteResponseApiObject.java @@ -43,7 +43,7 @@ public class CoOwnerInviteResponseApiObject extends BunqModel { */ @Expose @SerializedName("monetary_account_id") - private Integer monetaryAccountId; + private Long monetaryAccountId; /** * The extension type of the monetaryAccount @@ -121,11 +121,11 @@ public void setCounterAlias(LabelMonetaryAccountObject counterAlias) { /** * The ID of the monetaryAccount */ - public Integer getMonetaryAccountId() { + public Long getMonetaryAccountId() { return this.monetaryAccountId; } - public void setMonetaryAccountId(Integer monetaryAccountId) { + public void setMonetaryAccountId(Long monetaryAccountId) { this.monetaryAccountId = monetaryAccountId; } diff --git a/src/main/java/com/bunq/sdk/model/generated/endpoint/CompanyApiObject.java b/src/main/java/com/bunq/sdk/model/generated/endpoint/CompanyApiObject.java index 0970937b..932a512b 100644 --- a/src/main/java/com/bunq/sdk/model/generated/endpoint/CompanyApiObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/endpoint/CompanyApiObject.java @@ -220,7 +220,7 @@ public CompanyApiObject(String name, AddressObject addressMain, AddressObject ad * @param vatNumbers All the vat numbers of the company * @param signupTrackType The type of signup track the user is following. */ - public static BunqResponse create(String name, AddressObject addressMain, AddressObject addressPostal, String country, String legalForm, String subscriptionType, List ubo, String chamberOfCommerceNumber, String avatarUuid, CompanyVatNumberObject vatNumber, List vatNumbers, String signupTrackType, Map customHeaders) { + public static BunqResponse create(String name, AddressObject addressMain, AddressObject addressPostal, String country, String legalForm, String subscriptionType, List ubo, String chamberOfCommerceNumber, String avatarUuid, CompanyVatNumberObject vatNumber, List vatNumbers, String signupTrackType, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -247,61 +247,61 @@ public static BunqResponse create(String name, AddressObject addressMai return processForId(responseRaw); } - public static BunqResponse create() { + public static BunqResponse create() { return create(null, null, null, null, null, null, null, null, null, null, null, null, null); } - public static BunqResponse create(String name) { + public static BunqResponse create(String name) { return create(name, null, null, null, null, null, null, null, null, null, null, null, null); } - public static BunqResponse create(String name, AddressObject addressMain) { + public static BunqResponse create(String name, AddressObject addressMain) { return create(name, addressMain, null, null, null, null, null, null, null, null, null, null, null); } - public static BunqResponse create(String name, AddressObject addressMain, AddressObject addressPostal) { + public static BunqResponse create(String name, AddressObject addressMain, AddressObject addressPostal) { return create(name, addressMain, addressPostal, null, null, null, null, null, null, null, null, null, null); } - public static BunqResponse create(String name, AddressObject addressMain, AddressObject addressPostal, String country) { + public static BunqResponse create(String name, AddressObject addressMain, AddressObject addressPostal, String country) { return create(name, addressMain, addressPostal, country, null, null, null, null, null, null, null, null, null); } - public static BunqResponse create(String name, AddressObject addressMain, AddressObject addressPostal, String country, String legalForm) { + public static BunqResponse create(String name, AddressObject addressMain, AddressObject addressPostal, String country, String legalForm) { return create(name, addressMain, addressPostal, country, legalForm, null, null, null, null, null, null, null, null); } - public static BunqResponse create(String name, AddressObject addressMain, AddressObject addressPostal, String country, String legalForm, String subscriptionType) { + public static BunqResponse create(String name, AddressObject addressMain, AddressObject addressPostal, String country, String legalForm, String subscriptionType) { return create(name, addressMain, addressPostal, country, legalForm, subscriptionType, null, null, null, null, null, null, null); } - public static BunqResponse create(String name, AddressObject addressMain, AddressObject addressPostal, String country, String legalForm, String subscriptionType, List ubo) { + public static BunqResponse create(String name, AddressObject addressMain, AddressObject addressPostal, String country, String legalForm, String subscriptionType, List ubo) { return create(name, addressMain, addressPostal, country, legalForm, subscriptionType, ubo, null, null, null, null, null, null); } - public static BunqResponse create(String name, AddressObject addressMain, AddressObject addressPostal, String country, String legalForm, String subscriptionType, List ubo, String chamberOfCommerceNumber) { + public static BunqResponse create(String name, AddressObject addressMain, AddressObject addressPostal, String country, String legalForm, String subscriptionType, List ubo, String chamberOfCommerceNumber) { return create(name, addressMain, addressPostal, country, legalForm, subscriptionType, ubo, chamberOfCommerceNumber, null, null, null, null, null); } - public static BunqResponse create(String name, AddressObject addressMain, AddressObject addressPostal, String country, String legalForm, String subscriptionType, List ubo, String chamberOfCommerceNumber, String avatarUuid) { + public static BunqResponse create(String name, AddressObject addressMain, AddressObject addressPostal, String country, String legalForm, String subscriptionType, List ubo, String chamberOfCommerceNumber, String avatarUuid) { return create(name, addressMain, addressPostal, country, legalForm, subscriptionType, ubo, chamberOfCommerceNumber, avatarUuid, null, null, null, null); } - public static BunqResponse create(String name, AddressObject addressMain, AddressObject addressPostal, String country, String legalForm, String subscriptionType, List ubo, String chamberOfCommerceNumber, String avatarUuid, CompanyVatNumberObject vatNumber) { + public static BunqResponse create(String name, AddressObject addressMain, AddressObject addressPostal, String country, String legalForm, String subscriptionType, List ubo, String chamberOfCommerceNumber, String avatarUuid, CompanyVatNumberObject vatNumber) { return create(name, addressMain, addressPostal, country, legalForm, subscriptionType, ubo, chamberOfCommerceNumber, avatarUuid, vatNumber, null, null, null); } - public static BunqResponse create(String name, AddressObject addressMain, AddressObject addressPostal, String country, String legalForm, String subscriptionType, List ubo, String chamberOfCommerceNumber, String avatarUuid, CompanyVatNumberObject vatNumber, List vatNumbers) { + public static BunqResponse create(String name, AddressObject addressMain, AddressObject addressPostal, String country, String legalForm, String subscriptionType, List ubo, String chamberOfCommerceNumber, String avatarUuid, CompanyVatNumberObject vatNumber, List vatNumbers) { return create(name, addressMain, addressPostal, country, legalForm, subscriptionType, ubo, chamberOfCommerceNumber, avatarUuid, vatNumber, vatNumbers, null, null); } - public static BunqResponse create(String name, AddressObject addressMain, AddressObject addressPostal, String country, String legalForm, String subscriptionType, List ubo, String chamberOfCommerceNumber, String avatarUuid, CompanyVatNumberObject vatNumber, List vatNumbers, String signupTrackType) { + public static BunqResponse create(String name, AddressObject addressMain, AddressObject addressPostal, String country, String legalForm, String subscriptionType, List ubo, String chamberOfCommerceNumber, String avatarUuid, CompanyVatNumberObject vatNumber, List vatNumbers, String signupTrackType) { return create(name, addressMain, addressPostal, country, legalForm, subscriptionType, ubo, chamberOfCommerceNumber, avatarUuid, vatNumber, vatNumbers, signupTrackType, null); } /** */ - public static BunqResponse get(Integer companyId, Map params, Map customHeaders) { + public static BunqResponse get(Long companyId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_READ, determineUserId(), companyId), params, customHeaders); @@ -312,11 +312,11 @@ public static BunqResponse get() { return get(null, null, null); } - public static BunqResponse get(Integer companyId) { + public static BunqResponse get(Long companyId) { return get(companyId, null, null); } - public static BunqResponse get(Integer companyId, Map params) { + public static BunqResponse get(Long companyId, Map params) { return get(companyId, params, null); } @@ -340,7 +340,7 @@ public static BunqResponse> list(Map para /** * @param avatarUuid The public UUID of the company's avatar. */ - public static BunqResponse update(Integer companyId, String avatarUuid, Map customHeaders) { + public static BunqResponse update(Long companyId, String avatarUuid, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -356,11 +356,11 @@ public static BunqResponse update(Integer companyId, String avatarUuid, return processForId(responseRaw); } - public static BunqResponse update(Integer companyId) { + public static BunqResponse update(Long companyId) { return update(companyId, null, null); } - public static BunqResponse update(Integer companyId, String avatarUuid) { + public static BunqResponse update(Long companyId, String avatarUuid) { return update(companyId, avatarUuid, null); } diff --git a/src/main/java/com/bunq/sdk/model/generated/endpoint/CompanyEmployeeCardApiObject.java b/src/main/java/com/bunq/sdk/model/generated/endpoint/CompanyEmployeeCardApiObject.java index 92913e0c..95bc7fd3 100644 --- a/src/main/java/com/bunq/sdk/model/generated/endpoint/CompanyEmployeeCardApiObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/endpoint/CompanyEmployeeCardApiObject.java @@ -71,7 +71,7 @@ public class CompanyEmployeeCardApiObject extends BunqModel { */ @Expose @SerializedName("number_of_company_employee_card_receipt_pending") - private Integer numberOfCompanyEmployeeCardReceiptPending; + private Long numberOfCompanyEmployeeCardReceiptPending; /** * The company employee's monthly cumulative card limit. @@ -249,11 +249,11 @@ public void setAmountSpentMonthly(AmountObject amountSpentMonthly) { /** * The number of transactions that still need a receipt. */ - public Integer getNumberOfCompanyEmployeeCardReceiptPending() { + public Long getNumberOfCompanyEmployeeCardReceiptPending() { return this.numberOfCompanyEmployeeCardReceiptPending; } - public void setNumberOfCompanyEmployeeCardReceiptPending(Integer numberOfCompanyEmployeeCardReceiptPending) { + public void setNumberOfCompanyEmployeeCardReceiptPending(Long numberOfCompanyEmployeeCardReceiptPending) { this.numberOfCompanyEmployeeCardReceiptPending = numberOfCompanyEmployeeCardReceiptPending; } diff --git a/src/main/java/com/bunq/sdk/model/generated/endpoint/CompanyEmployeeCardLimitApiObject.java b/src/main/java/com/bunq/sdk/model/generated/endpoint/CompanyEmployeeCardLimitApiObject.java index 195920f6..79fb6d17 100644 --- a/src/main/java/com/bunq/sdk/model/generated/endpoint/CompanyEmployeeCardLimitApiObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/endpoint/CompanyEmployeeCardLimitApiObject.java @@ -27,14 +27,14 @@ public class CompanyEmployeeCardLimitApiObject extends BunqModel { */ @Expose @SerializedName("user_company_id") - private Integer userCompanyId; + private Long userCompanyId; /** * Company employee item id. */ @Expose @SerializedName("user_employee_id") - private Integer userEmployeeId; + private Long userEmployeeId; /** * The monthly spending limit for this employee on the card. @@ -68,22 +68,22 @@ public CompanyEmployeeCardLimitApiObject(AmountObject amountLimitMonthly) { /** * Company item id. */ - public Integer getUserCompanyId() { + public Long getUserCompanyId() { return this.userCompanyId; } - public void setUserCompanyId(Integer userCompanyId) { + public void setUserCompanyId(Long userCompanyId) { this.userCompanyId = userCompanyId; } /** * Company employee item id. */ - public Integer getUserEmployeeId() { + public Long getUserEmployeeId() { return this.userEmployeeId; } - public void setUserEmployeeId(Integer userEmployeeId) { + public void setUserEmployeeId(Long userEmployeeId) { this.userEmployeeId = userEmployeeId; } diff --git a/src/main/java/com/bunq/sdk/model/generated/endpoint/CompanyEmployeeSettingAdyenCardTransactionApiObject.java b/src/main/java/com/bunq/sdk/model/generated/endpoint/CompanyEmployeeSettingAdyenCardTransactionApiObject.java index ffba67ba..449dc31a 100644 --- a/src/main/java/com/bunq/sdk/model/generated/endpoint/CompanyEmployeeSettingAdyenCardTransactionApiObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/endpoint/CompanyEmployeeSettingAdyenCardTransactionApiObject.java @@ -51,7 +51,7 @@ public class CompanyEmployeeSettingAdyenCardTransactionApiObject extends BunqMod */ @Expose @SerializedName("monetary_account_payout_id") - private Integer monetaryAccountPayoutId; + private Long monetaryAccountPayoutId; /** * The pointer to the employee for which you want to create a card. @@ -72,7 +72,7 @@ public class CompanyEmployeeSettingAdyenCardTransactionApiObject extends BunqMod */ @Expose @SerializedName("monetary_account_payout_id_field_for_request") - private Integer monetaryAccountPayoutIdFieldForRequest; + private Long monetaryAccountPayoutIdFieldForRequest; public CompanyEmployeeSettingAdyenCardTransactionApiObject() { this(null, null, null); @@ -86,13 +86,13 @@ public CompanyEmployeeSettingAdyenCardTransactionApiObject(PointerObject pointer this(pointerCounterUser, status, null); } - public CompanyEmployeeSettingAdyenCardTransactionApiObject(PointerObject pointerCounterUser, String status, Integer monetaryAccountPayoutId) { + public CompanyEmployeeSettingAdyenCardTransactionApiObject(PointerObject pointerCounterUser, String status, Long monetaryAccountPayoutId) { this.pointerCounterUserFieldForRequest = pointerCounterUser; this.statusFieldForRequest = status; this.monetaryAccountPayoutIdFieldForRequest = monetaryAccountPayoutId; } /** */ - public static BunqResponse get(Integer companyEmployeeSettingAdyenCardTransactionId, Map params, Map customHeaders) { + public static BunqResponse get(Long companyEmployeeSettingAdyenCardTransactionId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_READ, determineUserId(), companyEmployeeSettingAdyenCardTransactionId), params, customHeaders); @@ -103,11 +103,11 @@ public static BunqResponse return get(null, null, null); } - public static BunqResponse get(Integer companyEmployeeSettingAdyenCardTransactionId) { + public static BunqResponse get(Long companyEmployeeSettingAdyenCardTransactionId) { return get(companyEmployeeSettingAdyenCardTransactionId, null, null); } - public static BunqResponse get(Integer companyEmployeeSettingAdyenCardTransactionId, Map params) { + public static BunqResponse get(Long companyEmployeeSettingAdyenCardTransactionId, Map params) { return get(companyEmployeeSettingAdyenCardTransactionId, params, null); } @@ -125,11 +125,11 @@ public void setStatus(String status) { /** * The ID of the monetary account where Tap to Pay transactions should be paid out to. */ - public Integer getMonetaryAccountPayoutId() { + public Long getMonetaryAccountPayoutId() { return this.monetaryAccountPayoutId; } - public void setMonetaryAccountPayoutId(Integer monetaryAccountPayoutId) { + public void setMonetaryAccountPayoutId(Long monetaryAccountPayoutId) { this.monetaryAccountPayoutId = monetaryAccountPayoutId; } diff --git a/src/main/java/com/bunq/sdk/model/generated/endpoint/CurrencyCloudBeneficiaryApiObject.java b/src/main/java/com/bunq/sdk/model/generated/endpoint/CurrencyCloudBeneficiaryApiObject.java index 6eac135b..f99de1c0 100644 --- a/src/main/java/com/bunq/sdk/model/generated/endpoint/CurrencyCloudBeneficiaryApiObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/endpoint/CurrencyCloudBeneficiaryApiObject.java @@ -48,7 +48,7 @@ public class CurrencyCloudBeneficiaryApiObject extends BunqModel { */ @Expose @SerializedName("id") - private Integer id; + private Long id; /** * The timestamp of the beneficiaries creation. @@ -175,7 +175,7 @@ public CurrencyCloudBeneficiaryApiObject(String name, String country, String cur * @param allField All fields that were required by CurrencyCloud. Obtained through the * CurrencyCloudBeneficiaryRequirement listing. */ - public static BunqResponse create(String name, String country, String currency, String paymentType, String legalEntityType, List allField, Map customHeaders) { + public static BunqResponse create(String name, String country, String currency, String paymentType, String legalEntityType, List allField, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -196,37 +196,37 @@ public static BunqResponse create(String name, String country, String c return processForId(responseRaw); } - public static BunqResponse create() { + public static BunqResponse create() { return create(null, null, null, null, null, null, null); } - public static BunqResponse create(String name) { + public static BunqResponse create(String name) { return create(name, null, null, null, null, null, null); } - public static BunqResponse create(String name, String country) { + public static BunqResponse create(String name, String country) { return create(name, country, null, null, null, null, null); } - public static BunqResponse create(String name, String country, String currency) { + public static BunqResponse create(String name, String country, String currency) { return create(name, country, currency, null, null, null, null); } - public static BunqResponse create(String name, String country, String currency, String paymentType) { + public static BunqResponse create(String name, String country, String currency, String paymentType) { return create(name, country, currency, paymentType, null, null, null); } - public static BunqResponse create(String name, String country, String currency, String paymentType, String legalEntityType) { + public static BunqResponse create(String name, String country, String currency, String paymentType, String legalEntityType) { return create(name, country, currency, paymentType, legalEntityType, null, null); } - public static BunqResponse create(String name, String country, String currency, String paymentType, String legalEntityType, List allField) { + public static BunqResponse create(String name, String country, String currency, String paymentType, String legalEntityType, List allField) { return create(name, country, currency, paymentType, legalEntityType, allField, null); } /** */ - public static BunqResponse get(Integer currencyCloudBeneficiaryId, Map params, Map customHeaders) { + public static BunqResponse get(Long currencyCloudBeneficiaryId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_READ, determineUserId(), currencyCloudBeneficiaryId), params, customHeaders); @@ -237,11 +237,11 @@ public static BunqResponse get() { return get(null, null, null); } - public static BunqResponse get(Integer currencyCloudBeneficiaryId) { + public static BunqResponse get(Long currencyCloudBeneficiaryId) { return get(currencyCloudBeneficiaryId, null, null); } - public static BunqResponse get(Integer currencyCloudBeneficiaryId, Map params) { + public static BunqResponse get(Long currencyCloudBeneficiaryId, Map params) { return get(currencyCloudBeneficiaryId, params, null); } @@ -265,11 +265,11 @@ public static BunqResponse> list(Map pointers) { } /** * @param pointers The points we want to know the fees for. */ - public static BunqResponse create(List pointers, Integer monetaryAccountId, Map customHeaders) { + public static BunqResponse create(List pointers, Long monetaryAccountId, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -72,15 +72,15 @@ public static BunqResponse create(List pointers, Integer return processForId(responseRaw); } - public static BunqResponse create() { + public static BunqResponse create() { return create(null, null, null); } - public static BunqResponse create(List pointers) { + public static BunqResponse create(List pointers) { return create(pointers, null, null); } - public static BunqResponse create(List pointers, Integer monetaryAccountId) { + public static BunqResponse create(List pointers, Long monetaryAccountId) { return create(pointers, monetaryAccountId, null); } diff --git a/src/main/java/com/bunq/sdk/model/generated/endpoint/CurrencyConversionApiObject.java b/src/main/java/com/bunq/sdk/model/generated/endpoint/CurrencyConversionApiObject.java index e93b16c0..dbc0c7a7 100644 --- a/src/main/java/com/bunq/sdk/model/generated/endpoint/CurrencyConversionApiObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/endpoint/CurrencyConversionApiObject.java @@ -39,7 +39,7 @@ public class CurrencyConversionApiObject extends BunqModel { */ @Expose @SerializedName("id") - private Integer id; + private Long id; /** * The timestamp of the conversion's creation. @@ -134,7 +134,7 @@ public class CurrencyConversionApiObject extends BunqModel { /** */ - public static BunqResponse> list(Integer monetaryAccountId, Map params, Map customHeaders) { + public static BunqResponse> list(Long monetaryAccountId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_LISTING, determineUserId(), determineMonetaryAccountId(monetaryAccountId)), params, customHeaders); @@ -145,17 +145,17 @@ public static BunqResponse> list() { return list(null, null, null); } - public static BunqResponse> list(Integer monetaryAccountId) { + public static BunqResponse> list(Long monetaryAccountId) { return list(monetaryAccountId, null, null); } - public static BunqResponse> list(Integer monetaryAccountId, Map params) { + public static BunqResponse> list(Long monetaryAccountId, Map params) { return list(monetaryAccountId, params, null); } /** */ - public static BunqResponse get(Integer currencyConversionId, Integer monetaryAccountId, Map params, Map customHeaders) { + public static BunqResponse get(Long currencyConversionId, Long monetaryAccountId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_READ, determineUserId(), determineMonetaryAccountId(monetaryAccountId), currencyConversionId), params, customHeaders); @@ -166,26 +166,26 @@ public static BunqResponse get() { return get(null, null, null, null); } - public static BunqResponse get(Integer currencyConversionId) { + public static BunqResponse get(Long currencyConversionId) { return get(currencyConversionId, null, null, null); } - public static BunqResponse get(Integer currencyConversionId, Integer monetaryAccountId) { + public static BunqResponse get(Long currencyConversionId, Long monetaryAccountId) { return get(currencyConversionId, monetaryAccountId, null, null); } - public static BunqResponse get(Integer currencyConversionId, Integer monetaryAccountId, Map params) { + public static BunqResponse get(Long currencyConversionId, Long monetaryAccountId, Map params) { return get(currencyConversionId, monetaryAccountId, params, null); } /** * The id of the conversion. */ - public Integer getId() { + public Long getId() { return this.id; } - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } diff --git a/src/main/java/com/bunq/sdk/model/generated/endpoint/CurrencyConversionQuoteApiObject.java b/src/main/java/com/bunq/sdk/model/generated/endpoint/CurrencyConversionQuoteApiObject.java index c5fff012..ab5b1162 100644 --- a/src/main/java/com/bunq/sdk/model/generated/endpoint/CurrencyConversionQuoteApiObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/endpoint/CurrencyConversionQuoteApiObject.java @@ -51,7 +51,7 @@ public class CurrencyConversionQuoteApiObject extends BunqModel { */ @Expose @SerializedName("id") - private Integer id; + private Long id; /** * The timestamp of the quote's creation. @@ -183,7 +183,7 @@ public CurrencyConversionQuoteApiObject(AmountObject amount, String currencySour * @param counterpartyAlias The Alias of the party we are transferring the money to. * @param status The status of the quote. */ - public static BunqResponse create(AmountObject amount, String currencySource, String currencyTarget, String orderType, PointerObject counterpartyAlias, Integer monetaryAccountId, String status, Map customHeaders) { + public static BunqResponse create(AmountObject amount, String currencySource, String currencyTarget, String orderType, PointerObject counterpartyAlias, Long monetaryAccountId, String status, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -204,41 +204,41 @@ public static BunqResponse create(AmountObject amount, String currencyS return processForId(responseRaw); } - public static BunqResponse create() { + public static BunqResponse create() { return create(null, null, null, null, null, null, null, null); } - public static BunqResponse create(AmountObject amount) { + public static BunqResponse create(AmountObject amount) { return create(amount, null, null, null, null, null, null, null); } - public static BunqResponse create(AmountObject amount, String currencySource) { + public static BunqResponse create(AmountObject amount, String currencySource) { return create(amount, currencySource, null, null, null, null, null, null); } - public static BunqResponse create(AmountObject amount, String currencySource, String currencyTarget) { + public static BunqResponse create(AmountObject amount, String currencySource, String currencyTarget) { return create(amount, currencySource, currencyTarget, null, null, null, null, null); } - public static BunqResponse create(AmountObject amount, String currencySource, String currencyTarget, String orderType) { + public static BunqResponse create(AmountObject amount, String currencySource, String currencyTarget, String orderType) { return create(amount, currencySource, currencyTarget, orderType, null, null, null, null); } - public static BunqResponse create(AmountObject amount, String currencySource, String currencyTarget, String orderType, PointerObject counterpartyAlias) { + public static BunqResponse create(AmountObject amount, String currencySource, String currencyTarget, String orderType, PointerObject counterpartyAlias) { return create(amount, currencySource, currencyTarget, orderType, counterpartyAlias, null, null, null); } - public static BunqResponse create(AmountObject amount, String currencySource, String currencyTarget, String orderType, PointerObject counterpartyAlias, Integer monetaryAccountId) { + public static BunqResponse create(AmountObject amount, String currencySource, String currencyTarget, String orderType, PointerObject counterpartyAlias, Long monetaryAccountId) { return create(amount, currencySource, currencyTarget, orderType, counterpartyAlias, monetaryAccountId, null, null); } - public static BunqResponse create(AmountObject amount, String currencySource, String currencyTarget, String orderType, PointerObject counterpartyAlias, Integer monetaryAccountId, String status) { + public static BunqResponse create(AmountObject amount, String currencySource, String currencyTarget, String orderType, PointerObject counterpartyAlias, Long monetaryAccountId, String status) { return create(amount, currencySource, currencyTarget, orderType, counterpartyAlias, monetaryAccountId, status, null); } /** */ - public static BunqResponse get(Integer currencyConversionQuoteId, Integer monetaryAccountId, Map params, Map customHeaders) { + public static BunqResponse get(Long currencyConversionQuoteId, Long monetaryAccountId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_READ, determineUserId(), determineMonetaryAccountId(monetaryAccountId), currencyConversionQuoteId), params, customHeaders); @@ -249,22 +249,22 @@ public static BunqResponse get() { return get(null, null, null, null); } - public static BunqResponse get(Integer currencyConversionQuoteId) { + public static BunqResponse get(Long currencyConversionQuoteId) { return get(currencyConversionQuoteId, null, null, null); } - public static BunqResponse get(Integer currencyConversionQuoteId, Integer monetaryAccountId) { + public static BunqResponse get(Long currencyConversionQuoteId, Long monetaryAccountId) { return get(currencyConversionQuoteId, monetaryAccountId, null, null); } - public static BunqResponse get(Integer currencyConversionQuoteId, Integer monetaryAccountId, Map params) { + public static BunqResponse get(Long currencyConversionQuoteId, Long monetaryAccountId, Map params) { return get(currencyConversionQuoteId, monetaryAccountId, params, null); } /** * @param status The status of the quote. */ - public static BunqResponse update(Integer currencyConversionQuoteId, Integer monetaryAccountId, String status, Map customHeaders) { + public static BunqResponse update(Long currencyConversionQuoteId, Long monetaryAccountId, String status, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -280,26 +280,26 @@ public static BunqResponse update(Integer curr return fromJson(CurrencyConversionQuoteApiObject.class, responseRaw, OBJECT_TYPE_PUT); } - public static BunqResponse update(Integer currencyConversionQuoteId) { + public static BunqResponse update(Long currencyConversionQuoteId) { return update(currencyConversionQuoteId, null, null, null); } - public static BunqResponse update(Integer currencyConversionQuoteId, Integer monetaryAccountId) { + public static BunqResponse update(Long currencyConversionQuoteId, Long monetaryAccountId) { return update(currencyConversionQuoteId, monetaryAccountId, null, null); } - public static BunqResponse update(Integer currencyConversionQuoteId, Integer monetaryAccountId, String status) { + public static BunqResponse update(Long currencyConversionQuoteId, Long monetaryAccountId, String status) { return update(currencyConversionQuoteId, monetaryAccountId, status, null); } /** * The id of the quote. */ - public Integer getId() { + public Long getId() { return this.id; } - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } diff --git a/src/main/java/com/bunq/sdk/model/generated/endpoint/CustomerApiObject.java b/src/main/java/com/bunq/sdk/model/generated/endpoint/CustomerApiObject.java index d8818fe0..e0f7879a 100644 --- a/src/main/java/com/bunq/sdk/model/generated/endpoint/CustomerApiObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/endpoint/CustomerApiObject.java @@ -27,7 +27,7 @@ public class CustomerApiObject extends BunqModel { */ @Expose @SerializedName("id") - private Integer id; + private Long id; /** * The timestamp of the customer object's creation. @@ -87,11 +87,11 @@ public CustomerApiObject(String billingAccountId, String invoiceNotificationPref /** * The id of the customer. */ - public Integer getId() { + public Long getId() { return this.id; } - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } diff --git a/src/main/java/com/bunq/sdk/model/generated/endpoint/CustomerLimitApiObject.java b/src/main/java/com/bunq/sdk/model/generated/endpoint/CustomerLimitApiObject.java index 0b0630d5..77601d3f 100644 --- a/src/main/java/com/bunq/sdk/model/generated/endpoint/CustomerLimitApiObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/endpoint/CustomerLimitApiObject.java @@ -37,49 +37,49 @@ public class CustomerLimitApiObject extends BunqModel { */ @Expose @SerializedName("limit_monetary_account") - private Integer limitMonetaryAccount; + private Long limitMonetaryAccount; /** * The amount of additional monetary accounts you can create. */ @Expose @SerializedName("limit_monetary_account_remaining") - private Integer limitMonetaryAccountRemaining; + private Long limitMonetaryAccountRemaining; /** * The limit of Maestro cards. */ @Expose @SerializedName("limit_card_debit_maestro") - private Integer limitCardDebitMaestro; + private Long limitCardDebitMaestro; /** * The limit of MasterCard cards. */ @Expose @SerializedName("limit_card_debit_mastercard") - private Integer limitCardDebitMastercard; + private Long limitCardDebitMastercard; /** * DEPRECTATED: The limit of wildcards, e.g. Maestro or MasterCard cards. */ @Expose @SerializedName("limit_card_debit_wildcard") - private Integer limitCardDebitWildcard; + private Long limitCardDebitWildcard; /** * The limit of wildcards, e.g. Maestro or MasterCard cards. */ @Expose @SerializedName("limit_card_wildcard") - private Integer limitCardWildcard; + private Long limitCardWildcard; /** * The limit of free replacement cards. */ @Expose @SerializedName("limit_card_replacement") - private Integer limitCardReplacement; + private Long limitCardReplacement; /** * The maximum amount a user is allowed to spend in a month. @@ -116,77 +116,77 @@ public static BunqResponse> list(Map get(Integer deviceId, Map params, Map customHeaders) { + public static BunqResponse get(Long deviceId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_READ, deviceId), params, customHeaders); @@ -60,11 +60,11 @@ public static BunqResponse get() { return get(null, null, null); } - public static BunqResponse get(Integer deviceId) { + public static BunqResponse get(Long deviceId) { return get(deviceId, null, null); } - public static BunqResponse get(Integer deviceId, Map params) { + public static BunqResponse get(Long deviceId, Map params) { return get(deviceId, params, null); } diff --git a/src/main/java/com/bunq/sdk/model/generated/endpoint/DeviceServerApiObject.java b/src/main/java/com/bunq/sdk/model/generated/endpoint/DeviceServerApiObject.java index bb866738..7c637d7f 100644 --- a/src/main/java/com/bunq/sdk/model/generated/endpoint/DeviceServerApiObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/endpoint/DeviceServerApiObject.java @@ -46,7 +46,7 @@ public class DeviceServerApiObject extends BunqModel { */ @Expose @SerializedName("id") - private Integer id; + private Long id; /** * The timestamp of the DeviceServer's creation. @@ -136,7 +136,7 @@ public DeviceServerApiObject(String description, String secret, List per * @param permittedIps An array of IPs (v4 or v6) this DeviceServer will be able to do calls * from. These will be linked to the API key. */ - public static BunqResponse create(String description, String secret, List permittedIps, Map customHeaders) { + public static BunqResponse create(String description, String secret, List permittedIps, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -154,26 +154,26 @@ public static BunqResponse create(String description, String secret, Li return processForId(responseRaw); } - public static BunqResponse create() { + public static BunqResponse create() { return create(null, null, null, null); } - public static BunqResponse create(String description) { + public static BunqResponse create(String description) { return create(description, null, null, null); } - public static BunqResponse create(String description, String secret) { + public static BunqResponse create(String description, String secret) { return create(description, secret, null, null); } - public static BunqResponse create(String description, String secret, List permittedIps) { + public static BunqResponse create(String description, String secret, List permittedIps) { return create(description, secret, permittedIps, null); } /** * Get one of your DeviceServers. */ - public static BunqResponse get(Integer deviceServerId, Map params, Map customHeaders) { + public static BunqResponse get(Long deviceServerId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_READ, deviceServerId), params, customHeaders); @@ -184,11 +184,11 @@ public static BunqResponse get() { return get(null, null, null); } - public static BunqResponse get(Integer deviceServerId) { + public static BunqResponse get(Long deviceServerId) { return get(deviceServerId, null, null); } - public static BunqResponse get(Integer deviceServerId, Map params) { + public static BunqResponse get(Long deviceServerId, Map params) { return get(deviceServerId, params, null); } @@ -213,11 +213,11 @@ public static BunqResponse> list(Map /** * The id of the DeviceServer as created on the server. */ - public Integer getId() { + public Long getId() { return this.id; } - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } diff --git a/src/main/java/com/bunq/sdk/model/generated/endpoint/DraftPaymentApiObject.java b/src/main/java/com/bunq/sdk/model/generated/endpoint/DraftPaymentApiObject.java index f4bfc450..b6bb6d77 100644 --- a/src/main/java/com/bunq/sdk/model/generated/endpoint/DraftPaymentApiObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/endpoint/DraftPaymentApiObject.java @@ -43,6 +43,7 @@ public class DraftPaymentApiObject extends BunqModel { public static final String FIELD_PREVIOUS_UPDATED_TIMESTAMP = "previous_updated_timestamp"; public static final String FIELD_NUMBER_OF_REQUIRED_ACCEPTS = "number_of_required_accepts"; public static final String FIELD_SCHEDULE = "schedule"; + public static final String FIELD_PAYMENT_BATCH_EXECUTION_TYPE = "payment_batch_execution_type"; /** * Object type. @@ -54,14 +55,14 @@ public class DraftPaymentApiObject extends BunqModel { */ @Expose @SerializedName("id") - private Integer id; + private Long id; /** * The id of the MonetaryAccount the DraftPayment applies to. */ @Expose @SerializedName("monetary_account_id") - private Integer monetaryAccountId; + private Long monetaryAccountId; /** * The label of the User who created the DraftPayment. @@ -121,6 +122,13 @@ public class DraftPaymentApiObject extends BunqModel { @SerializedName("schedule") private ScheduleApiObject schedule; + /** + * The execution type that will be used when converting this draft payment to a payment batch. + */ + @Expose + @SerializedName("payment_batch_execution_type") + private String paymentBatchExecutionType; + /** * The status of the DraftPayment. */ @@ -150,7 +158,7 @@ public class DraftPaymentApiObject extends BunqModel { */ @Expose @SerializedName("number_of_required_accepts_field_for_request") - private Integer numberOfRequiredAcceptsFieldForRequest; + private Long numberOfRequiredAcceptsFieldForRequest; /** * The schedule details when creating or updating a scheduled payment. @@ -159,32 +167,44 @@ public class DraftPaymentApiObject extends BunqModel { @SerializedName("schedule_field_for_request") private ScheduleApiObject scheduleFieldForRequest; + /** + * The execution type that will be used when converting this draft payment to a payment batch. + */ + @Expose + @SerializedName("payment_batch_execution_type_field_for_request") + private String paymentBatchExecutionTypeFieldForRequest; + public DraftPaymentApiObject() { - this(null, null, null, null, null); + this(null, null, null, null, null, null); } public DraftPaymentApiObject(List entries) { - this(entries, null, null, null, null); + this(entries, null, null, null, null, null); + } + + public DraftPaymentApiObject(List entries, Long numberOfRequiredAccepts) { + this(entries, numberOfRequiredAccepts, null, null, null, null); } - public DraftPaymentApiObject(List entries, Integer numberOfRequiredAccepts) { - this(entries, numberOfRequiredAccepts, null, null, null); + public DraftPaymentApiObject(List entries, Long numberOfRequiredAccepts, String status) { + this(entries, numberOfRequiredAccepts, status, null, null, null); } - public DraftPaymentApiObject(List entries, Integer numberOfRequiredAccepts, String status) { - this(entries, numberOfRequiredAccepts, status, null, null); + public DraftPaymentApiObject(List entries, Long numberOfRequiredAccepts, String status, String previousUpdatedTimestamp) { + this(entries, numberOfRequiredAccepts, status, previousUpdatedTimestamp, null, null); } - public DraftPaymentApiObject(List entries, Integer numberOfRequiredAccepts, String status, String previousUpdatedTimestamp) { - this(entries, numberOfRequiredAccepts, status, previousUpdatedTimestamp, null); + public DraftPaymentApiObject(List entries, Long numberOfRequiredAccepts, String status, String previousUpdatedTimestamp, ScheduleApiObject schedule) { + this(entries, numberOfRequiredAccepts, status, previousUpdatedTimestamp, schedule, null); } - public DraftPaymentApiObject(List entries, Integer numberOfRequiredAccepts, String status, String previousUpdatedTimestamp, ScheduleApiObject schedule) { + public DraftPaymentApiObject(List entries, Long numberOfRequiredAccepts, String status, String previousUpdatedTimestamp, ScheduleApiObject schedule, String paymentBatchExecutionType) { this.statusFieldForRequest = status; this.entriesFieldForRequest = entries; this.previousUpdatedTimestampFieldForRequest = previousUpdatedTimestamp; this.numberOfRequiredAcceptsFieldForRequest = numberOfRequiredAccepts; this.scheduleFieldForRequest = schedule; + this.paymentBatchExecutionTypeFieldForRequest = paymentBatchExecutionType; } /** * Create a new DraftPayment. * @param entries The list of entries in the DraftPayment. Each entry will result in a payment @@ -195,8 +215,10 @@ public DraftPaymentApiObject(List entries, Integer numb * @param previousUpdatedTimestamp The last updated_timestamp that you received for this * DraftPayment. This needs to be provided to prevent race conditions. * @param schedule The schedule details when creating or updating a scheduled payment. + * @param paymentBatchExecutionType The execution type that will be used when converting this + * draft payment to a payment batch. */ - public static BunqResponse create(List entries, Integer numberOfRequiredAccepts, Integer monetaryAccountId, String status, String previousUpdatedTimestamp, ScheduleApiObject schedule, Map customHeaders) { + public static BunqResponse create(List entries, Long numberOfRequiredAccepts, Long monetaryAccountId, String status, String previousUpdatedTimestamp, ScheduleApiObject schedule, String paymentBatchExecutionType, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -209,6 +231,7 @@ public static BunqResponse create(List entries requestMap.put(FIELD_PREVIOUS_UPDATED_TIMESTAMP, previousUpdatedTimestamp); requestMap.put(FIELD_NUMBER_OF_REQUIRED_ACCEPTS, numberOfRequiredAccepts); requestMap.put(FIELD_SCHEDULE, schedule); +requestMap.put(FIELD_PAYMENT_BATCH_EXECUTION_TYPE, paymentBatchExecutionType); byte[] requestBytes = determineAllRequestByte(requestMap); BunqResponseRaw responseRaw = apiClient.post(String.format(ENDPOINT_URL_CREATE, determineUserId(), determineMonetaryAccountId(monetaryAccountId)), requestBytes, customHeaders); @@ -216,32 +239,36 @@ public static BunqResponse create(List entries return processForId(responseRaw); } - public static BunqResponse create() { - return create(null, null, null, null, null, null, null); + public static BunqResponse create() { + return create(null, null, null, null, null, null, null, null); + } + + public static BunqResponse create(List entries) { + return create(entries, null, null, null, null, null, null, null); } - public static BunqResponse create(List entries) { - return create(entries, null, null, null, null, null, null); + public static BunqResponse create(List entries, Long numberOfRequiredAccepts) { + return create(entries, numberOfRequiredAccepts, null, null, null, null, null, null); } - public static BunqResponse create(List entries, Integer numberOfRequiredAccepts) { - return create(entries, numberOfRequiredAccepts, null, null, null, null, null); + public static BunqResponse create(List entries, Long numberOfRequiredAccepts, Long monetaryAccountId) { + return create(entries, numberOfRequiredAccepts, monetaryAccountId, null, null, null, null, null); } - public static BunqResponse create(List entries, Integer numberOfRequiredAccepts, Integer monetaryAccountId) { - return create(entries, numberOfRequiredAccepts, monetaryAccountId, null, null, null, null); + public static BunqResponse create(List entries, Long numberOfRequiredAccepts, Long monetaryAccountId, String status) { + return create(entries, numberOfRequiredAccepts, monetaryAccountId, status, null, null, null, null); } - public static BunqResponse create(List entries, Integer numberOfRequiredAccepts, Integer monetaryAccountId, String status) { - return create(entries, numberOfRequiredAccepts, monetaryAccountId, status, null, null, null); + public static BunqResponse create(List entries, Long numberOfRequiredAccepts, Long monetaryAccountId, String status, String previousUpdatedTimestamp) { + return create(entries, numberOfRequiredAccepts, monetaryAccountId, status, previousUpdatedTimestamp, null, null, null); } - public static BunqResponse create(List entries, Integer numberOfRequiredAccepts, Integer monetaryAccountId, String status, String previousUpdatedTimestamp) { - return create(entries, numberOfRequiredAccepts, monetaryAccountId, status, previousUpdatedTimestamp, null, null); + public static BunqResponse create(List entries, Long numberOfRequiredAccepts, Long monetaryAccountId, String status, String previousUpdatedTimestamp, ScheduleApiObject schedule) { + return create(entries, numberOfRequiredAccepts, monetaryAccountId, status, previousUpdatedTimestamp, schedule, null, null); } - public static BunqResponse create(List entries, Integer numberOfRequiredAccepts, Integer monetaryAccountId, String status, String previousUpdatedTimestamp, ScheduleApiObject schedule) { - return create(entries, numberOfRequiredAccepts, monetaryAccountId, status, previousUpdatedTimestamp, schedule, null); + public static BunqResponse create(List entries, Long numberOfRequiredAccepts, Long monetaryAccountId, String status, String previousUpdatedTimestamp, ScheduleApiObject schedule, String paymentBatchExecutionType) { + return create(entries, numberOfRequiredAccepts, monetaryAccountId, status, previousUpdatedTimestamp, schedule, paymentBatchExecutionType, null); } /** @@ -250,8 +277,10 @@ public static BunqResponse create(List entries * @param previousUpdatedTimestamp The last updated_timestamp that you received for this * DraftPayment. This needs to be provided to prevent race conditions. * @param schedule The schedule details when creating or updating a scheduled payment. + * @param paymentBatchExecutionType The execution type that will be used when converting this + * draft payment to a payment batch. */ - public static BunqResponse update(Integer draftPaymentId, Integer monetaryAccountId, String status, String previousUpdatedTimestamp, ScheduleApiObject schedule, Map customHeaders) { + public static BunqResponse update(Long draftPaymentId, Long monetaryAccountId, String status, String previousUpdatedTimestamp, ScheduleApiObject schedule, String paymentBatchExecutionType, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -262,6 +291,7 @@ public static BunqResponse update(Integer draftPaymentId, Integer monet requestMap.put(FIELD_STATUS, status); requestMap.put(FIELD_PREVIOUS_UPDATED_TIMESTAMP, previousUpdatedTimestamp); requestMap.put(FIELD_SCHEDULE, schedule); +requestMap.put(FIELD_PAYMENT_BATCH_EXECUTION_TYPE, paymentBatchExecutionType); byte[] requestBytes = determineAllRequestByte(requestMap); BunqResponseRaw responseRaw = apiClient.put(String.format(ENDPOINT_URL_UPDATE, determineUserId(), determineMonetaryAccountId(monetaryAccountId), draftPaymentId), requestBytes, customHeaders); @@ -269,30 +299,34 @@ public static BunqResponse update(Integer draftPaymentId, Integer monet return processForId(responseRaw); } - public static BunqResponse update(Integer draftPaymentId) { - return update(draftPaymentId, null, null, null, null, null); + public static BunqResponse update(Long draftPaymentId) { + return update(draftPaymentId, null, null, null, null, null, null); } - public static BunqResponse update(Integer draftPaymentId, Integer monetaryAccountId) { - return update(draftPaymentId, monetaryAccountId, null, null, null, null); + public static BunqResponse update(Long draftPaymentId, Long monetaryAccountId) { + return update(draftPaymentId, monetaryAccountId, null, null, null, null, null); } - public static BunqResponse update(Integer draftPaymentId, Integer monetaryAccountId, String status) { - return update(draftPaymentId, monetaryAccountId, status, null, null, null); + public static BunqResponse update(Long draftPaymentId, Long monetaryAccountId, String status) { + return update(draftPaymentId, monetaryAccountId, status, null, null, null, null); } - public static BunqResponse update(Integer draftPaymentId, Integer monetaryAccountId, String status, String previousUpdatedTimestamp) { - return update(draftPaymentId, monetaryAccountId, status, previousUpdatedTimestamp, null, null); + public static BunqResponse update(Long draftPaymentId, Long monetaryAccountId, String status, String previousUpdatedTimestamp) { + return update(draftPaymentId, monetaryAccountId, status, previousUpdatedTimestamp, null, null, null); } - public static BunqResponse update(Integer draftPaymentId, Integer monetaryAccountId, String status, String previousUpdatedTimestamp, ScheduleApiObject schedule) { - return update(draftPaymentId, monetaryAccountId, status, previousUpdatedTimestamp, schedule, null); + public static BunqResponse update(Long draftPaymentId, Long monetaryAccountId, String status, String previousUpdatedTimestamp, ScheduleApiObject schedule) { + return update(draftPaymentId, monetaryAccountId, status, previousUpdatedTimestamp, schedule, null, null); + } + + public static BunqResponse update(Long draftPaymentId, Long monetaryAccountId, String status, String previousUpdatedTimestamp, ScheduleApiObject schedule, String paymentBatchExecutionType) { + return update(draftPaymentId, monetaryAccountId, status, previousUpdatedTimestamp, schedule, paymentBatchExecutionType, null); } /** * Get a listing of all DraftPayments from a given MonetaryAccount. */ - public static BunqResponse> list(Integer monetaryAccountId, Map params, Map customHeaders) { + public static BunqResponse> list(Long monetaryAccountId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_LISTING, determineUserId(), determineMonetaryAccountId(monetaryAccountId)), params, customHeaders); @@ -303,18 +337,18 @@ public static BunqResponse> list() { return list(null, null, null); } - public static BunqResponse> list(Integer monetaryAccountId) { + public static BunqResponse> list(Long monetaryAccountId) { return list(monetaryAccountId, null, null); } - public static BunqResponse> list(Integer monetaryAccountId, Map params) { + public static BunqResponse> list(Long monetaryAccountId, Map params) { return list(monetaryAccountId, params, null); } /** * Get a specific DraftPayment. */ - public static BunqResponse get(Integer draftPaymentId, Integer monetaryAccountId, Map params, Map customHeaders) { + public static BunqResponse get(Long draftPaymentId, Long monetaryAccountId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_READ, determineUserId(), determineMonetaryAccountId(monetaryAccountId), draftPaymentId), params, customHeaders); @@ -325,37 +359,37 @@ public static BunqResponse get() { return get(null, null, null, null); } - public static BunqResponse get(Integer draftPaymentId) { + public static BunqResponse get(Long draftPaymentId) { return get(draftPaymentId, null, null, null); } - public static BunqResponse get(Integer draftPaymentId, Integer monetaryAccountId) { + public static BunqResponse get(Long draftPaymentId, Long monetaryAccountId) { return get(draftPaymentId, monetaryAccountId, null, null); } - public static BunqResponse get(Integer draftPaymentId, Integer monetaryAccountId, Map params) { + public static BunqResponse get(Long draftPaymentId, Long monetaryAccountId, Map params) { return get(draftPaymentId, monetaryAccountId, params, null); } /** * The id of the created DrafPayment. */ - public Integer getId() { + public Long getId() { return this.id; } - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } /** * The id of the MonetaryAccount the DraftPayment applies to. */ - public Integer getMonetaryAccountId() { + public Long getMonetaryAccountId() { return this.monetaryAccountId; } - public void setMonetaryAccountId(Integer monetaryAccountId) { + public void setMonetaryAccountId(Long monetaryAccountId) { this.monetaryAccountId = monetaryAccountId; } @@ -449,6 +483,17 @@ public void setSchedule(ScheduleApiObject schedule) { this.schedule = schedule; } + /** + * The execution type that will be used when converting this draft payment to a payment batch. + */ + public String getPaymentBatchExecutionType() { + return this.paymentBatchExecutionType; + } + + public void setPaymentBatchExecutionType(String paymentBatchExecutionType) { + this.paymentBatchExecutionType = paymentBatchExecutionType; + } + /** */ public boolean isAllFieldNull() { @@ -492,6 +537,10 @@ public boolean isAllFieldNull() { return false; } + if (this.paymentBatchExecutionType != null) { + return false; + } + return true; } diff --git a/src/main/java/com/bunq/sdk/model/generated/endpoint/EventApiObject.java b/src/main/java/com/bunq/sdk/model/generated/endpoint/EventApiObject.java index d4d26024..17a037e3 100644 --- a/src/main/java/com/bunq/sdk/model/generated/endpoint/EventApiObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/endpoint/EventApiObject.java @@ -41,7 +41,7 @@ public class EventApiObject extends BunqModel { */ @Expose @SerializedName("id") - private Integer id; + private Long id; /** * The timestamp of the event's creation. @@ -118,7 +118,7 @@ public class EventApiObject extends BunqModel { /** * Get a specific event for a given user. */ - public static BunqResponse get(Integer eventId, Map params, Map customHeaders) { + public static BunqResponse get(Long eventId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_READ, determineUserId(), eventId), params, customHeaders); @@ -129,11 +129,11 @@ public static BunqResponse get() { return get(null, null, null); } - public static BunqResponse get(Integer eventId) { + public static BunqResponse get(Long eventId) { return get(eventId, null, null); } - public static BunqResponse get(Integer eventId, Map params) { + public static BunqResponse get(Long eventId, Map params) { return get(eventId, params, null); } @@ -165,11 +165,11 @@ public static BunqResponse> list(Map params /** * The id of the event. */ - public Integer getId() { + public Long getId() { return this.id; } - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } diff --git a/src/main/java/com/bunq/sdk/model/generated/endpoint/ExportAnnualOverviewApiObject.java b/src/main/java/com/bunq/sdk/model/generated/endpoint/ExportAnnualOverviewApiObject.java index e2b54e15..bd093f9e 100644 --- a/src/main/java/com/bunq/sdk/model/generated/endpoint/ExportAnnualOverviewApiObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/endpoint/ExportAnnualOverviewApiObject.java @@ -47,7 +47,7 @@ public class ExportAnnualOverviewApiObject extends BunqModel { */ @Expose @SerializedName("id") - private Integer id; + private Long id; /** * The timestamp of the annual overview 's creation. @@ -68,7 +68,7 @@ public class ExportAnnualOverviewApiObject extends BunqModel { */ @Expose @SerializedName("year") - private Integer year; + private Long year; /** * The status of the annual overview export. @@ -89,20 +89,20 @@ public class ExportAnnualOverviewApiObject extends BunqModel { */ @Expose @SerializedName("year_field_for_request") - private Integer yearFieldForRequest; + private Long yearFieldForRequest; public ExportAnnualOverviewApiObject() { this(null); } - public ExportAnnualOverviewApiObject(Integer year) { + public ExportAnnualOverviewApiObject(Long year) { this.yearFieldForRequest = year; } /** * Create a new annual overview for a specific year. An overview can be generated only for a * past year. * @param year The year for which the overview is. */ - public static BunqResponse create(Integer year, Map customHeaders) { + public static BunqResponse create(Long year, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -118,18 +118,18 @@ public static BunqResponse create(Integer year, Map cus return processForId(responseRaw); } - public static BunqResponse create() { + public static BunqResponse create() { return create(null, null); } - public static BunqResponse create(Integer year) { + public static BunqResponse create(Long year) { return create(year, null); } /** * Get an annual overview for a user by its id. */ - public static BunqResponse get(Integer exportAnnualOverviewId, Map params, Map customHeaders) { + public static BunqResponse get(Long exportAnnualOverviewId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_READ, determineUserId(), exportAnnualOverviewId), params, customHeaders); @@ -140,24 +140,24 @@ public static BunqResponse get() { return get(null, null, null); } - public static BunqResponse get(Integer exportAnnualOverviewId) { + public static BunqResponse get(Long exportAnnualOverviewId) { return get(exportAnnualOverviewId, null, null); } - public static BunqResponse get(Integer exportAnnualOverviewId, Map params) { + public static BunqResponse get(Long exportAnnualOverviewId, Map params) { return get(exportAnnualOverviewId, params, null); } /** */ - public static BunqResponse delete(Integer exportAnnualOverviewId, Map customHeaders) { + public static BunqResponse delete(Long exportAnnualOverviewId, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.delete(String.format(ENDPOINT_URL_DELETE, determineUserId(), exportAnnualOverviewId), customHeaders); return new BunqResponse<>(null, responseRaw.getHeaders()); } - public static BunqResponse delete(Integer exportAnnualOverviewId) { + public static BunqResponse delete(Long exportAnnualOverviewId) { return delete(exportAnnualOverviewId, null); } @@ -182,11 +182,11 @@ public static BunqResponse> list(Map list(Integer exportAnnualOverviewId, Map params, Map customHeaders) { + public static BunqResponse list(Long exportAnnualOverviewId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_LISTING, determineUserId(), exportAnnualOverviewId), params, customHeaders); @@ -45,10 +45,10 @@ public static BunqResponse list(Integer exportAnnualOverviewId, Map list() { return list(null, null, null); } - public static BunqResponse list(Integer exportAnnualOverviewId) { + public static BunqResponse list(Long exportAnnualOverviewId) { return list(exportAnnualOverviewId, null, null); } - public static BunqResponse list(Integer exportAnnualOverviewId, Map params) { + public static BunqResponse list(Long exportAnnualOverviewId, Map params) { return list(exportAnnualOverviewId, params, null); } diff --git a/src/main/java/com/bunq/sdk/model/generated/endpoint/ExportRibApiObject.java b/src/main/java/com/bunq/sdk/model/generated/endpoint/ExportRibApiObject.java index 7609f85b..d9da37a5 100644 --- a/src/main/java/com/bunq/sdk/model/generated/endpoint/ExportRibApiObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/endpoint/ExportRibApiObject.java @@ -39,7 +39,7 @@ public class ExportRibApiObject extends BunqModel { */ @Expose @SerializedName("id") - private Integer id; + private Long id; /** * The timestamp of the RIB's creation. @@ -58,7 +58,7 @@ public class ExportRibApiObject extends BunqModel { /** * Create a new RIB. */ - public static BunqResponse create(Integer monetaryAccountId, Map customHeaders) { + public static BunqResponse create(Long monetaryAccountId, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -73,18 +73,18 @@ public static BunqResponse create(Integer monetaryAccountId, Map create() { + public static BunqResponse create() { return create(null, null); } - public static BunqResponse create(Integer monetaryAccountId) { + public static BunqResponse create(Long monetaryAccountId) { return create(monetaryAccountId, null); } /** * Get a RIB for a monetary account by its id. */ - public static BunqResponse get(Integer exportRibId, Integer monetaryAccountId, Map params, Map customHeaders) { + public static BunqResponse get(Long exportRibId, Long monetaryAccountId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_READ, determineUserId(), determineMonetaryAccountId(monetaryAccountId), exportRibId), params, customHeaders); @@ -95,39 +95,39 @@ public static BunqResponse get() { return get(null, null, null, null); } - public static BunqResponse get(Integer exportRibId) { + public static BunqResponse get(Long exportRibId) { return get(exportRibId, null, null, null); } - public static BunqResponse get(Integer exportRibId, Integer monetaryAccountId) { + public static BunqResponse get(Long exportRibId, Long monetaryAccountId) { return get(exportRibId, monetaryAccountId, null, null); } - public static BunqResponse get(Integer exportRibId, Integer monetaryAccountId, Map params) { + public static BunqResponse get(Long exportRibId, Long monetaryAccountId, Map params) { return get(exportRibId, monetaryAccountId, params, null); } /** */ - public static BunqResponse delete(Integer exportRibId, Integer monetaryAccountId, Map customHeaders) { + public static BunqResponse delete(Long exportRibId, Long monetaryAccountId, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.delete(String.format(ENDPOINT_URL_DELETE, determineUserId(), determineMonetaryAccountId(monetaryAccountId), exportRibId), customHeaders); return new BunqResponse<>(null, responseRaw.getHeaders()); } - public static BunqResponse delete(Integer exportRibId) { + public static BunqResponse delete(Long exportRibId) { return delete(exportRibId, null, null); } - public static BunqResponse delete(Integer exportRibId, Integer monetaryAccountId) { + public static BunqResponse delete(Long exportRibId, Long monetaryAccountId) { return delete(exportRibId, monetaryAccountId, null); } /** * List all the RIBs for a monetary account. */ - public static BunqResponse> list(Integer monetaryAccountId, Map params, Map customHeaders) { + public static BunqResponse> list(Long monetaryAccountId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_LISTING, determineUserId(), determineMonetaryAccountId(monetaryAccountId)), params, customHeaders); @@ -138,22 +138,22 @@ public static BunqResponse> list() { return list(null, null, null); } - public static BunqResponse> list(Integer monetaryAccountId) { + public static BunqResponse> list(Long monetaryAccountId) { return list(monetaryAccountId, null, null); } - public static BunqResponse> list(Integer monetaryAccountId, Map params) { + public static BunqResponse> list(Long monetaryAccountId, Map params) { return list(monetaryAccountId, params, null); } /** * The id of the rib as created on the server. */ - public Integer getId() { + public Long getId() { return this.id; } - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } diff --git a/src/main/java/com/bunq/sdk/model/generated/endpoint/ExportRibContentApiObject.java b/src/main/java/com/bunq/sdk/model/generated/endpoint/ExportRibContentApiObject.java index 0b317292..ec6e1b4f 100644 --- a/src/main/java/com/bunq/sdk/model/generated/endpoint/ExportRibContentApiObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/endpoint/ExportRibContentApiObject.java @@ -34,7 +34,7 @@ public class ExportRibContentApiObject extends BunqModel { /** * Used to retrieve the raw content of an RIB. */ - public static BunqResponse list(Integer exportRibId, Integer monetaryAccountId, Map params, Map customHeaders) { + public static BunqResponse list(Long exportRibId, Long monetaryAccountId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_LISTING, determineUserId(), determineMonetaryAccountId(monetaryAccountId), exportRibId), params, customHeaders); @@ -44,13 +44,13 @@ public static BunqResponse list(Integer exportRibId, Integer monetaryAcc public static BunqResponse list() { return list(null, null, null, null); } - public static BunqResponse list(Integer exportRibId) { + public static BunqResponse list(Long exportRibId) { return list(exportRibId, null, null, null); } - public static BunqResponse list(Integer exportRibId, Integer monetaryAccountId) { + public static BunqResponse list(Long exportRibId, Long monetaryAccountId) { return list(exportRibId, monetaryAccountId, null, null); } - public static BunqResponse list(Integer exportRibId, Integer monetaryAccountId, Map params) { + public static BunqResponse list(Long exportRibId, Long monetaryAccountId, Map params) { return list(exportRibId, monetaryAccountId, params, null); } diff --git a/src/main/java/com/bunq/sdk/model/generated/endpoint/ExportStatementApiObject.java b/src/main/java/com/bunq/sdk/model/generated/endpoint/ExportStatementApiObject.java index 684e2680..e5bb24e7 100644 --- a/src/main/java/com/bunq/sdk/model/generated/endpoint/ExportStatementApiObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/endpoint/ExportStatementApiObject.java @@ -50,7 +50,7 @@ public class ExportStatementApiObject extends BunqModel { */ @Expose @SerializedName("id") - private Integer id; + private Long id; /** * The timestamp of the statement model's creation. @@ -92,7 +92,7 @@ public class ExportStatementApiObject extends BunqModel { */ @Expose @SerializedName("statement_number") - private Integer statementNumber; + private Long statementNumber; /** * The format of statement. @@ -187,7 +187,7 @@ public ExportStatementApiObject(String statementFormat, String dateStart, String * @param includeAttachment Only for PDF exports. Includes attachments to mutations in the * export, such as scanned receipts. */ - public static BunqResponse create(String statementFormat, String dateStart, String dateEnd, Integer monetaryAccountId, String regionalFormat, Boolean includeAttachment, Map customHeaders) { + public static BunqResponse create(String statementFormat, String dateStart, String dateEnd, Long monetaryAccountId, String regionalFormat, Boolean includeAttachment, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -207,37 +207,37 @@ public static BunqResponse create(String statementFormat, String dateSt return processForId(responseRaw); } - public static BunqResponse create() { + public static BunqResponse create() { return create(null, null, null, null, null, null, null); } - public static BunqResponse create(String statementFormat) { + public static BunqResponse create(String statementFormat) { return create(statementFormat, null, null, null, null, null, null); } - public static BunqResponse create(String statementFormat, String dateStart) { + public static BunqResponse create(String statementFormat, String dateStart) { return create(statementFormat, dateStart, null, null, null, null, null); } - public static BunqResponse create(String statementFormat, String dateStart, String dateEnd) { + public static BunqResponse create(String statementFormat, String dateStart, String dateEnd) { return create(statementFormat, dateStart, dateEnd, null, null, null, null); } - public static BunqResponse create(String statementFormat, String dateStart, String dateEnd, Integer monetaryAccountId) { + public static BunqResponse create(String statementFormat, String dateStart, String dateEnd, Long monetaryAccountId) { return create(statementFormat, dateStart, dateEnd, monetaryAccountId, null, null, null); } - public static BunqResponse create(String statementFormat, String dateStart, String dateEnd, Integer monetaryAccountId, String regionalFormat) { + public static BunqResponse create(String statementFormat, String dateStart, String dateEnd, Long monetaryAccountId, String regionalFormat) { return create(statementFormat, dateStart, dateEnd, monetaryAccountId, regionalFormat, null, null); } - public static BunqResponse create(String statementFormat, String dateStart, String dateEnd, Integer monetaryAccountId, String regionalFormat, Boolean includeAttachment) { + public static BunqResponse create(String statementFormat, String dateStart, String dateEnd, Long monetaryAccountId, String regionalFormat, Boolean includeAttachment) { return create(statementFormat, dateStart, dateEnd, monetaryAccountId, regionalFormat, includeAttachment, null); } /** */ - public static BunqResponse get(Integer exportStatementId, Integer monetaryAccountId, Map params, Map customHeaders) { + public static BunqResponse get(Long exportStatementId, Long monetaryAccountId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_READ, determineUserId(), determineMonetaryAccountId(monetaryAccountId), exportStatementId), params, customHeaders); @@ -248,21 +248,21 @@ public static BunqResponse get() { return get(null, null, null, null); } - public static BunqResponse get(Integer exportStatementId) { + public static BunqResponse get(Long exportStatementId) { return get(exportStatementId, null, null, null); } - public static BunqResponse get(Integer exportStatementId, Integer monetaryAccountId) { + public static BunqResponse get(Long exportStatementId, Long monetaryAccountId) { return get(exportStatementId, monetaryAccountId, null, null); } - public static BunqResponse get(Integer exportStatementId, Integer monetaryAccountId, Map params) { + public static BunqResponse get(Long exportStatementId, Long monetaryAccountId, Map params) { return get(exportStatementId, monetaryAccountId, params, null); } /** */ - public static BunqResponse> list(Integer monetaryAccountId, Map params, Map customHeaders) { + public static BunqResponse> list(Long monetaryAccountId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_LISTING, determineUserId(), determineMonetaryAccountId(monetaryAccountId)), params, customHeaders); @@ -273,39 +273,39 @@ public static BunqResponse> list() { return list(null, null, null); } - public static BunqResponse> list(Integer monetaryAccountId) { + public static BunqResponse> list(Long monetaryAccountId) { return list(monetaryAccountId, null, null); } - public static BunqResponse> list(Integer monetaryAccountId, Map params) { + public static BunqResponse> list(Long monetaryAccountId, Map params) { return list(monetaryAccountId, params, null); } /** */ - public static BunqResponse delete(Integer exportStatementId, Integer monetaryAccountId, Map customHeaders) { + public static BunqResponse delete(Long exportStatementId, Long monetaryAccountId, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.delete(String.format(ENDPOINT_URL_DELETE, determineUserId(), determineMonetaryAccountId(monetaryAccountId), exportStatementId), customHeaders); return new BunqResponse<>(null, responseRaw.getHeaders()); } - public static BunqResponse delete(Integer exportStatementId) { + public static BunqResponse delete(Long exportStatementId) { return delete(exportStatementId, null, null); } - public static BunqResponse delete(Integer exportStatementId, Integer monetaryAccountId) { + public static BunqResponse delete(Long exportStatementId, Long monetaryAccountId) { return delete(exportStatementId, monetaryAccountId, null); } /** * The id of the customer statement model. */ - public Integer getId() { + public Long getId() { return this.id; } - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } @@ -367,11 +367,11 @@ public void setStatus(String status) { /** * MT940 Statement number. Unique per monetary account. */ - public Integer getStatementNumber() { + public Long getStatementNumber() { return this.statementNumber; } - public void setStatementNumber(Integer statementNumber) { + public void setStatementNumber(Long statementNumber) { this.statementNumber = statementNumber; } diff --git a/src/main/java/com/bunq/sdk/model/generated/endpoint/ExportStatementCardApiObject.java b/src/main/java/com/bunq/sdk/model/generated/endpoint/ExportStatementCardApiObject.java index a9030805..a4ba400e 100644 --- a/src/main/java/com/bunq/sdk/model/generated/endpoint/ExportStatementCardApiObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/endpoint/ExportStatementCardApiObject.java @@ -38,7 +38,7 @@ public class ExportStatementCardApiObject extends BunqModel { */ @Expose @SerializedName("id") - private Integer id; + private Long id; /** * The timestamp of the statement model's creation. @@ -87,11 +87,11 @@ public class ExportStatementCardApiObject extends BunqModel { */ @Expose @SerializedName("card_id") - private Integer cardId; + private Long cardId; /** */ - public static BunqResponse get(Integer cardId, Integer exportStatementCardId, Map params, Map customHeaders) { + public static BunqResponse get(Long cardId, Long exportStatementCardId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_READ, determineUserId(), cardId, exportStatementCardId), params, customHeaders); @@ -102,21 +102,21 @@ public static BunqResponse get() { return get(null, null, null, null); } - public static BunqResponse get(Integer cardId) { + public static BunqResponse get(Long cardId) { return get(cardId, null, null, null); } - public static BunqResponse get(Integer cardId, Integer exportStatementCardId) { + public static BunqResponse get(Long cardId, Long exportStatementCardId) { return get(cardId, exportStatementCardId, null, null); } - public static BunqResponse get(Integer cardId, Integer exportStatementCardId, Map params) { + public static BunqResponse get(Long cardId, Long exportStatementCardId, Map params) { return get(cardId, exportStatementCardId, params, null); } /** */ - public static BunqResponse> list(Integer cardId, Map params, Map customHeaders) { + public static BunqResponse> list(Long cardId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_LISTING, determineUserId(), cardId), params, customHeaders); @@ -127,22 +127,22 @@ public static BunqResponse> list() { return list(null, null, null); } - public static BunqResponse> list(Integer cardId) { + public static BunqResponse> list(Long cardId) { return list(cardId, null, null); } - public static BunqResponse> list(Integer cardId, Map params) { + public static BunqResponse> list(Long cardId, Map params) { return list(cardId, params, null); } /** * The id of the customer statement model. */ - public Integer getId() { + public Long getId() { return this.id; } - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } @@ -215,11 +215,11 @@ public void setRegionalFormat(String regionalFormat) { /** * The card for which this statement was created. */ - public Integer getCardId() { + public Long getCardId() { return this.cardId; } - public void setCardId(Integer cardId) { + public void setCardId(Long cardId) { this.cardId = cardId; } diff --git a/src/main/java/com/bunq/sdk/model/generated/endpoint/ExportStatementCardContentApiObject.java b/src/main/java/com/bunq/sdk/model/generated/endpoint/ExportStatementCardContentApiObject.java index 78d9c1fe..6886b2d2 100644 --- a/src/main/java/com/bunq/sdk/model/generated/endpoint/ExportStatementCardContentApiObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/endpoint/ExportStatementCardContentApiObject.java @@ -35,7 +35,7 @@ public class ExportStatementCardContentApiObject extends BunqModel { /** */ - public static BunqResponse list(Integer cardId, Integer exportStatementCardId, Map params, Map customHeaders) { + public static BunqResponse list(Long cardId, Long exportStatementCardId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_LISTING, determineUserId(), cardId, exportStatementCardId), params, customHeaders); @@ -45,13 +45,13 @@ public static BunqResponse list(Integer cardId, Integer exportStatementC public static BunqResponse list() { return list(null, null, null, null); } - public static BunqResponse list(Integer cardId) { + public static BunqResponse list(Long cardId) { return list(cardId, null, null, null); } - public static BunqResponse list(Integer cardId, Integer exportStatementCardId) { + public static BunqResponse list(Long cardId, Long exportStatementCardId) { return list(cardId, exportStatementCardId, null, null); } - public static BunqResponse list(Integer cardId, Integer exportStatementCardId, Map params) { + public static BunqResponse list(Long cardId, Long exportStatementCardId, Map params) { return list(cardId, exportStatementCardId, params, null); } diff --git a/src/main/java/com/bunq/sdk/model/generated/endpoint/ExportStatementCardCsvApiObject.java b/src/main/java/com/bunq/sdk/model/generated/endpoint/ExportStatementCardCsvApiObject.java index ff3de1e5..3185bb1c 100644 --- a/src/main/java/com/bunq/sdk/model/generated/endpoint/ExportStatementCardCsvApiObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/endpoint/ExportStatementCardCsvApiObject.java @@ -46,7 +46,7 @@ public class ExportStatementCardCsvApiObject extends BunqModel { */ @Expose @SerializedName("id") - private Integer id; + private Long id; /** * The timestamp of the statement model's creation. @@ -95,7 +95,7 @@ public class ExportStatementCardCsvApiObject extends BunqModel { */ @Expose @SerializedName("card_id") - private Integer cardId; + private Long cardId; /** * The start date for making statements. @@ -141,7 +141,7 @@ public ExportStatementCardCsvApiObject(String dateStart, String dateEnd, String * @param regionalFormat Required for CSV exports. The regional format of the statement, can be * UK_US (comma-separated) or EUROPEAN (semicolon-separated). */ - public static BunqResponse create(Integer cardId, String dateStart, String dateEnd, String regionalFormat, Map customHeaders) { + public static BunqResponse create(Long cardId, String dateStart, String dateEnd, String regionalFormat, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -159,29 +159,29 @@ public static BunqResponse create(Integer cardId, String dateStart, Str return processForId(responseRaw); } - public static BunqResponse create() { + public static BunqResponse create() { return create(null, null, null, null, null); } - public static BunqResponse create(Integer cardId) { + public static BunqResponse create(Long cardId) { return create(cardId, null, null, null, null); } - public static BunqResponse create(Integer cardId, String dateStart) { + public static BunqResponse create(Long cardId, String dateStart) { return create(cardId, dateStart, null, null, null); } - public static BunqResponse create(Integer cardId, String dateStart, String dateEnd) { + public static BunqResponse create(Long cardId, String dateStart, String dateEnd) { return create(cardId, dateStart, dateEnd, null, null); } - public static BunqResponse create(Integer cardId, String dateStart, String dateEnd, String regionalFormat) { + public static BunqResponse create(Long cardId, String dateStart, String dateEnd, String regionalFormat) { return create(cardId, dateStart, dateEnd, regionalFormat, null); } /** */ - public static BunqResponse get(Integer cardId, Integer exportStatementCardCsvId, Map params, Map customHeaders) { + public static BunqResponse get(Long cardId, Long exportStatementCardCsvId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_READ, determineUserId(), cardId, exportStatementCardCsvId), params, customHeaders); @@ -192,21 +192,21 @@ public static BunqResponse get() { return get(null, null, null, null); } - public static BunqResponse get(Integer cardId) { + public static BunqResponse get(Long cardId) { return get(cardId, null, null, null); } - public static BunqResponse get(Integer cardId, Integer exportStatementCardCsvId) { + public static BunqResponse get(Long cardId, Long exportStatementCardCsvId) { return get(cardId, exportStatementCardCsvId, null, null); } - public static BunqResponse get(Integer cardId, Integer exportStatementCardCsvId, Map params) { + public static BunqResponse get(Long cardId, Long exportStatementCardCsvId, Map params) { return get(cardId, exportStatementCardCsvId, params, null); } /** */ - public static BunqResponse> list(Integer cardId, Map params, Map customHeaders) { + public static BunqResponse> list(Long cardId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_LISTING, determineUserId(), cardId), params, customHeaders); @@ -217,39 +217,39 @@ public static BunqResponse> list() { return list(null, null, null); } - public static BunqResponse> list(Integer cardId) { + public static BunqResponse> list(Long cardId) { return list(cardId, null, null); } - public static BunqResponse> list(Integer cardId, Map params) { + public static BunqResponse> list(Long cardId, Map params) { return list(cardId, params, null); } /** */ - public static BunqResponse delete(Integer cardId, Integer exportStatementCardCsvId, Map customHeaders) { + public static BunqResponse delete(Long cardId, Long exportStatementCardCsvId, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.delete(String.format(ENDPOINT_URL_DELETE, determineUserId(), cardId, exportStatementCardCsvId), customHeaders); return new BunqResponse<>(null, responseRaw.getHeaders()); } - public static BunqResponse delete(Integer cardId) { + public static BunqResponse delete(Long cardId) { return delete(cardId, null, null); } - public static BunqResponse delete(Integer cardId, Integer exportStatementCardCsvId) { + public static BunqResponse delete(Long cardId, Long exportStatementCardCsvId) { return delete(cardId, exportStatementCardCsvId, null); } /** * The id of the customer statement model. */ - public Integer getId() { + public Long getId() { return this.id; } - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } @@ -322,11 +322,11 @@ public void setRegionalFormat(String regionalFormat) { /** * The card for which this statement was created. */ - public Integer getCardId() { + public Long getCardId() { return this.cardId; } - public void setCardId(Integer cardId) { + public void setCardId(Long cardId) { this.cardId = cardId; } diff --git a/src/main/java/com/bunq/sdk/model/generated/endpoint/ExportStatementCardPdfApiObject.java b/src/main/java/com/bunq/sdk/model/generated/endpoint/ExportStatementCardPdfApiObject.java index a101d48c..5b8d96da 100644 --- a/src/main/java/com/bunq/sdk/model/generated/endpoint/ExportStatementCardPdfApiObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/endpoint/ExportStatementCardPdfApiObject.java @@ -45,7 +45,7 @@ public class ExportStatementCardPdfApiObject extends BunqModel { */ @Expose @SerializedName("id") - private Integer id; + private Long id; /** * The timestamp of the statement model's creation. @@ -87,7 +87,7 @@ public class ExportStatementCardPdfApiObject extends BunqModel { */ @Expose @SerializedName("card_id") - private Integer cardId; + private Long cardId; /** * The start date for making statements. @@ -118,7 +118,7 @@ public ExportStatementCardPdfApiObject(String dateStart, String dateEnd) { * @param dateStart The start date for making statements. * @param dateEnd The end date for making statements. */ - public static BunqResponse create(Integer cardId, String dateStart, String dateEnd, Map customHeaders) { + public static BunqResponse create(Long cardId, String dateStart, String dateEnd, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -135,25 +135,25 @@ public static BunqResponse create(Integer cardId, String dateStart, Str return processForId(responseRaw); } - public static BunqResponse create() { + public static BunqResponse create() { return create(null, null, null, null); } - public static BunqResponse create(Integer cardId) { + public static BunqResponse create(Long cardId) { return create(cardId, null, null, null); } - public static BunqResponse create(Integer cardId, String dateStart) { + public static BunqResponse create(Long cardId, String dateStart) { return create(cardId, dateStart, null, null); } - public static BunqResponse create(Integer cardId, String dateStart, String dateEnd) { + public static BunqResponse create(Long cardId, String dateStart, String dateEnd) { return create(cardId, dateStart, dateEnd, null); } /** */ - public static BunqResponse get(Integer cardId, Integer exportStatementCardPdfId, Map params, Map customHeaders) { + public static BunqResponse get(Long cardId, Long exportStatementCardPdfId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_READ, determineUserId(), cardId, exportStatementCardPdfId), params, customHeaders); @@ -164,21 +164,21 @@ public static BunqResponse get() { return get(null, null, null, null); } - public static BunqResponse get(Integer cardId) { + public static BunqResponse get(Long cardId) { return get(cardId, null, null, null); } - public static BunqResponse get(Integer cardId, Integer exportStatementCardPdfId) { + public static BunqResponse get(Long cardId, Long exportStatementCardPdfId) { return get(cardId, exportStatementCardPdfId, null, null); } - public static BunqResponse get(Integer cardId, Integer exportStatementCardPdfId, Map params) { + public static BunqResponse get(Long cardId, Long exportStatementCardPdfId, Map params) { return get(cardId, exportStatementCardPdfId, params, null); } /** */ - public static BunqResponse> list(Integer cardId, Map params, Map customHeaders) { + public static BunqResponse> list(Long cardId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_LISTING, determineUserId(), cardId), params, customHeaders); @@ -189,39 +189,39 @@ public static BunqResponse> list() { return list(null, null, null); } - public static BunqResponse> list(Integer cardId) { + public static BunqResponse> list(Long cardId) { return list(cardId, null, null); } - public static BunqResponse> list(Integer cardId, Map params) { + public static BunqResponse> list(Long cardId, Map params) { return list(cardId, params, null); } /** */ - public static BunqResponse delete(Integer cardId, Integer exportStatementCardPdfId, Map customHeaders) { + public static BunqResponse delete(Long cardId, Long exportStatementCardPdfId, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.delete(String.format(ENDPOINT_URL_DELETE, determineUserId(), cardId, exportStatementCardPdfId), customHeaders); return new BunqResponse<>(null, responseRaw.getHeaders()); } - public static BunqResponse delete(Integer cardId) { + public static BunqResponse delete(Long cardId) { return delete(cardId, null, null); } - public static BunqResponse delete(Integer cardId, Integer exportStatementCardPdfId) { + public static BunqResponse delete(Long cardId, Long exportStatementCardPdfId) { return delete(cardId, exportStatementCardPdfId, null); } /** * The id of the customer statement model. */ - public Integer getId() { + public Long getId() { return this.id; } - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } @@ -283,11 +283,11 @@ public void setStatus(String status) { /** * The card for which this statement was created. */ - public Integer getCardId() { + public Long getCardId() { return this.cardId; } - public void setCardId(Integer cardId) { + public void setCardId(Long cardId) { this.cardId = cardId; } diff --git a/src/main/java/com/bunq/sdk/model/generated/endpoint/ExportStatementContentApiObject.java b/src/main/java/com/bunq/sdk/model/generated/endpoint/ExportStatementContentApiObject.java index 57d9c59c..c3c8a66e 100644 --- a/src/main/java/com/bunq/sdk/model/generated/endpoint/ExportStatementContentApiObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/endpoint/ExportStatementContentApiObject.java @@ -35,7 +35,7 @@ public class ExportStatementContentApiObject extends BunqModel { /** */ - public static BunqResponse list(Integer customerStatementId, Integer monetaryAccountId, Map params, Map customHeaders) { + public static BunqResponse list(Long customerStatementId, Long monetaryAccountId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_LISTING, determineUserId(), determineMonetaryAccountId(monetaryAccountId), customerStatementId), params, customHeaders); @@ -45,13 +45,13 @@ public static BunqResponse list(Integer customerStatementId, Integer mon public static BunqResponse list() { return list(null, null, null, null); } - public static BunqResponse list(Integer customerStatementId) { + public static BunqResponse list(Long customerStatementId) { return list(customerStatementId, null, null, null); } - public static BunqResponse list(Integer customerStatementId, Integer monetaryAccountId) { + public static BunqResponse list(Long customerStatementId, Long monetaryAccountId) { return list(customerStatementId, monetaryAccountId, null, null); } - public static BunqResponse list(Integer customerStatementId, Integer monetaryAccountId, Map params) { + public static BunqResponse list(Long customerStatementId, Long monetaryAccountId, Map params) { return list(customerStatementId, monetaryAccountId, params, null); } diff --git a/src/main/java/com/bunq/sdk/model/generated/endpoint/ExportStatementPaymentApiObject.java b/src/main/java/com/bunq/sdk/model/generated/endpoint/ExportStatementPaymentApiObject.java index 86460090..2554c59c 100644 --- a/src/main/java/com/bunq/sdk/model/generated/endpoint/ExportStatementPaymentApiObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/endpoint/ExportStatementPaymentApiObject.java @@ -37,7 +37,7 @@ public class ExportStatementPaymentApiObject extends BunqModel { */ @Expose @SerializedName("id") - private Integer id; + private Long id; /** * The timestamp of the statement model's creation. @@ -62,7 +62,7 @@ public class ExportStatementPaymentApiObject extends BunqModel { /** */ - public static BunqResponse create(Integer eventId, Integer monetaryAccountId, Map customHeaders) { + public static BunqResponse create(Long eventId, Long monetaryAccountId, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -77,21 +77,21 @@ public static BunqResponse create(Integer eventId, Integer monetaryAcco return processForId(responseRaw); } - public static BunqResponse create() { + public static BunqResponse create() { return create(null, null, null); } - public static BunqResponse create(Integer eventId) { + public static BunqResponse create(Long eventId) { return create(eventId, null, null); } - public static BunqResponse create(Integer eventId, Integer monetaryAccountId) { + public static BunqResponse create(Long eventId, Long monetaryAccountId) { return create(eventId, monetaryAccountId, null); } /** */ - public static BunqResponse get(Integer eventId, Integer exportStatementPaymentId, Integer monetaryAccountId, Map params, Map customHeaders) { + public static BunqResponse get(Long eventId, Long exportStatementPaymentId, Long monetaryAccountId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_READ, determineUserId(), determineMonetaryAccountId(monetaryAccountId), eventId, exportStatementPaymentId), params, customHeaders); @@ -102,30 +102,30 @@ public static BunqResponse get() { return get(null, null, null, null, null); } - public static BunqResponse get(Integer eventId) { + public static BunqResponse get(Long eventId) { return get(eventId, null, null, null, null); } - public static BunqResponse get(Integer eventId, Integer exportStatementPaymentId) { + public static BunqResponse get(Long eventId, Long exportStatementPaymentId) { return get(eventId, exportStatementPaymentId, null, null, null); } - public static BunqResponse get(Integer eventId, Integer exportStatementPaymentId, Integer monetaryAccountId) { + public static BunqResponse get(Long eventId, Long exportStatementPaymentId, Long monetaryAccountId) { return get(eventId, exportStatementPaymentId, monetaryAccountId, null, null); } - public static BunqResponse get(Integer eventId, Integer exportStatementPaymentId, Integer monetaryAccountId, Map params) { + public static BunqResponse get(Long eventId, Long exportStatementPaymentId, Long monetaryAccountId, Map params) { return get(eventId, exportStatementPaymentId, monetaryAccountId, params, null); } /** * The id of the single payment statement model. */ - public Integer getId() { + public Long getId() { return this.id; } - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } diff --git a/src/main/java/com/bunq/sdk/model/generated/endpoint/ExportStatementPaymentContentApiObject.java b/src/main/java/com/bunq/sdk/model/generated/endpoint/ExportStatementPaymentContentApiObject.java index 29a3f62b..5f37599c 100644 --- a/src/main/java/com/bunq/sdk/model/generated/endpoint/ExportStatementPaymentContentApiObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/endpoint/ExportStatementPaymentContentApiObject.java @@ -33,7 +33,7 @@ public class ExportStatementPaymentContentApiObject extends BunqModel { /** */ - public static BunqResponse list(Integer eventId, Integer statementId, Integer monetaryAccountId, Map params, Map customHeaders) { + public static BunqResponse list(Long eventId, Long statementId, Long monetaryAccountId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_LISTING, determineUserId(), determineMonetaryAccountId(monetaryAccountId), eventId, statementId), params, customHeaders); @@ -43,16 +43,16 @@ public static BunqResponse list(Integer eventId, Integer statementId, In public static BunqResponse list() { return list(null, null, null, null, null); } - public static BunqResponse list(Integer eventId) { + public static BunqResponse list(Long eventId) { return list(eventId, null, null, null, null); } - public static BunqResponse list(Integer eventId, Integer statementId) { + public static BunqResponse list(Long eventId, Long statementId) { return list(eventId, statementId, null, null, null); } - public static BunqResponse list(Integer eventId, Integer statementId, Integer monetaryAccountId) { + public static BunqResponse list(Long eventId, Long statementId, Long monetaryAccountId) { return list(eventId, statementId, monetaryAccountId, null, null); } - public static BunqResponse list(Integer eventId, Integer statementId, Integer monetaryAccountId, Map params) { + public static BunqResponse list(Long eventId, Long statementId, Long monetaryAccountId, Map params) { return list(eventId, statementId, monetaryAccountId, params, null); } diff --git a/src/main/java/com/bunq/sdk/model/generated/endpoint/FeatureAnnouncementApiObject.java b/src/main/java/com/bunq/sdk/model/generated/endpoint/FeatureAnnouncementApiObject.java index acade4cc..2a12802b 100644 --- a/src/main/java/com/bunq/sdk/model/generated/endpoint/FeatureAnnouncementApiObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/endpoint/FeatureAnnouncementApiObject.java @@ -1,9 +1,5 @@ package com.bunq.sdk.model.generated.endpoint; -import com.bunq.sdk.context.ApiContext; -import com.bunq.sdk.http.ApiClient; -import com.bunq.sdk.http.BunqResponse; -import com.bunq.sdk.http.BunqResponseRaw; import com.bunq.sdk.model.core.BunqModel; import com.bunq.sdk.model.core.MonetaryAccountReference; import com.bunq.sdk.model.generated.object.AvatarObject; @@ -15,22 +11,21 @@ import java.util.HashMap; import java.util.List; import java.util.Map; -import javax.lang.model.type.NullType; /** - * view for updating the feature display. + * view for creating the feature announcement. */ public class FeatureAnnouncementApiObject extends BunqModel { /** - * Endpoint constants. + * Field constants. */ - protected static final String ENDPOINT_URL_READ = "user/%s/feature-announcement/%s"; - - /** - * Object type. - */ - protected static final String OBJECT_TYPE_GET = "FeatureAnnouncement"; + public static final String FIELD_AVATAR_UUID = "avatar_uuid"; + public static final String FIELD_TITLE = "title"; + public static final String FIELD_SUB_TITLE = "sub_title"; + public static final String FIELD_STATUS = "status"; + public static final String FIELD_FEATURE_ACCESS_ID = "feature_access_id"; + public static final String FIELD_CONTENT_TYPE = "content_type"; /** * The Avatar of the event overview. @@ -40,45 +35,113 @@ public class FeatureAnnouncementApiObject extends BunqModel { private AvatarObject avatar; /** - * The event overview title of the feature display + * The event title of the feature announcement. */ @Expose @SerializedName("title") - private String title; + private List title; /** - * The event overview subtitle of the feature display + * The event sub title of the feature announcement. */ @Expose @SerializedName("sub_title") - private String subTitle; + private List subTitle; /** - * The type of the feature announcement so apps can override with their own stuff if desired + * The type of the feature announcement. */ @Expose @SerializedName("type") private String type; /** + * The status of the feature announcement. + */ + @Expose + @SerializedName("status") + private String status; + + /** + * The event sub title of the feature announcement. + */ + @Expose + @SerializedName("all_feature_announcement_content") + private List allFeatureAnnouncementContent; + + /** + * The avatar uuid. + */ + @Expose + @SerializedName("avatar_uuid_field_for_request") + private String avatarUuidFieldForRequest; + + /** + * The event title of the feature announcement. + */ + @Expose + @SerializedName("title_field_for_request") + private List titleFieldForRequest; + + /** + * The event sub title of the feature announcement. + */ + @Expose + @SerializedName("sub_title_field_for_request") + private List subTitleFieldForRequest; + + /** + * The status of the feature announcement. + */ + @Expose + @SerializedName("status_field_for_request") + private String statusFieldForRequest; + + /** + * The feature access id that controls the feature announcement. + */ + @Expose + @SerializedName("feature_access_id_field_for_request") + private String featureAccessIdFieldForRequest; + + /** + * The content type of the feature announcement. */ - public static BunqResponse get(Integer featureAnnouncementId, Map params, Map customHeaders) { - ApiClient apiClient = new ApiClient(getApiContext()); - BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_READ, determineUserId(), featureAnnouncementId), params, customHeaders); + @Expose + @SerializedName("content_type_field_for_request") + private String contentTypeFieldForRequest; + + public FeatureAnnouncementApiObject() { + this(null, null, null, null, null, null); + } + + public FeatureAnnouncementApiObject(List title) { + this(title, null, null, null, null, null); + } + + public FeatureAnnouncementApiObject(List title, List subTitle) { + this(title, subTitle, null, null, null, null); + } - return fromJson(FeatureAnnouncementApiObject.class, responseRaw, OBJECT_TYPE_GET); + public FeatureAnnouncementApiObject(List title, List subTitle, String contentType) { + this(title, subTitle, contentType, null, null, null); } - public static BunqResponse get() { - return get(null, null, null); + public FeatureAnnouncementApiObject(List title, List subTitle, String contentType, String avatarUuid) { + this(title, subTitle, contentType, avatarUuid, null, null); } - public static BunqResponse get(Integer featureAnnouncementId) { - return get(featureAnnouncementId, null, null); + public FeatureAnnouncementApiObject(List title, List subTitle, String contentType, String avatarUuid, String status) { + this(title, subTitle, contentType, avatarUuid, status, null); } - public static BunqResponse get(Integer featureAnnouncementId, Map params) { - return get(featureAnnouncementId, params, null); + public FeatureAnnouncementApiObject(List title, List subTitle, String contentType, String avatarUuid, String status, String featureAccessId) { + this.avatarUuidFieldForRequest = avatarUuid; + this.titleFieldForRequest = title; + this.subTitleFieldForRequest = subTitle; + this.statusFieldForRequest = status; + this.featureAccessIdFieldForRequest = featureAccessId; + this.contentTypeFieldForRequest = contentType; } /** @@ -93,29 +156,29 @@ public void setAvatar(AvatarObject avatar) { } /** - * The event overview title of the feature display + * The event title of the feature announcement. */ - public String getTitle() { + public List getTitle() { return this.title; } - public void setTitle(String title) { + public void setTitle(List title) { this.title = title; } /** - * The event overview subtitle of the feature display + * The event sub title of the feature announcement. */ - public String getSubTitle() { + public List getSubTitle() { return this.subTitle; } - public void setSubTitle(String subTitle) { + public void setSubTitle(List subTitle) { this.subTitle = subTitle; } /** - * The type of the feature announcement so apps can override with their own stuff if desired + * The type of the feature announcement. */ public String getType() { return this.type; @@ -125,6 +188,28 @@ public void setType(String type) { this.type = type; } + /** + * The status of the feature announcement. + */ + public String getStatus() { + return this.status; + } + + public void setStatus(String status) { + this.status = status; + } + + /** + * The event sub title of the feature announcement. + */ + public List getAllFeatureAnnouncementContent() { + return this.allFeatureAnnouncementContent; + } + + public void setAllFeatureAnnouncementContent(List allFeatureAnnouncementContent) { + this.allFeatureAnnouncementContent = allFeatureAnnouncementContent; + } + /** */ public boolean isAllFieldNull() { @@ -144,6 +229,14 @@ public boolean isAllFieldNull() { return false; } + if (this.status != null) { + return false; + } + + if (this.allFeatureAnnouncementContent != null) { + return false; + } + return true; } diff --git a/src/main/java/com/bunq/sdk/model/generated/endpoint/FulfillmentApiObject.java b/src/main/java/com/bunq/sdk/model/generated/endpoint/FulfillmentApiObject.java index c8441184..6fef288b 100644 --- a/src/main/java/com/bunq/sdk/model/generated/endpoint/FulfillmentApiObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/endpoint/FulfillmentApiObject.java @@ -56,7 +56,7 @@ public class FulfillmentApiObject extends BunqModel { */ @Expose @SerializedName("user_id") - private Integer userId; + private Long userId; /** * The allowed statusses for this fulfillment. @@ -123,11 +123,11 @@ public void setTimeMandatory(String timeMandatory) { /** * The user id this fulfillment is required for. */ - public Integer getUserId() { + public Long getUserId() { return this.userId; } - public void setUserId(Integer userId) { + public void setUserId(Long userId) { this.userId = userId; } diff --git a/src/main/java/com/bunq/sdk/model/generated/endpoint/GinmonTransactionApiObject.java b/src/main/java/com/bunq/sdk/model/generated/endpoint/GinmonTransactionApiObject.java index cbbf09df..94e63dd2 100644 --- a/src/main/java/com/bunq/sdk/model/generated/endpoint/GinmonTransactionApiObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/endpoint/GinmonTransactionApiObject.java @@ -94,7 +94,7 @@ public class GinmonTransactionApiObject extends BunqModel { */ @Expose @SerializedName("event_id") - private Integer eventId; + private Long eventId; /** * The status of the transaction. @@ -209,11 +209,11 @@ public void setCounterLabelMonetaryAccount(LabelMonetaryAccountObject counterLab /** * The id of the event of transaction. */ - public Integer getEventId() { + public Long getEventId() { return this.eventId; } - public void setEventId(Integer eventId) { + public void setEventId(Long eventId) { this.eventId = eventId; } diff --git a/src/main/java/com/bunq/sdk/model/generated/endpoint/IdealMerchantTransactionApiObject.java b/src/main/java/com/bunq/sdk/model/generated/endpoint/IdealMerchantTransactionApiObject.java index c3066a6e..45f7bdcd 100644 --- a/src/main/java/com/bunq/sdk/model/generated/endpoint/IdealMerchantTransactionApiObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/endpoint/IdealMerchantTransactionApiObject.java @@ -46,7 +46,7 @@ public class IdealMerchantTransactionApiObject extends BunqModel { */ @Expose @SerializedName("monetary_account_id") - private Integer monetaryAccountId; + private Long monetaryAccountId; /** * The alias of the monetary account to add money to. @@ -161,7 +161,7 @@ public IdealMerchantTransactionApiObject(AmountObject amountRequested, String is * @param amountRequested The requested amount of money to add. * @param issuer The BIC of the issuing bank to ask for money. */ - public static BunqResponse create(AmountObject amountRequested, String issuer, Integer monetaryAccountId, Map customHeaders) { + public static BunqResponse create(AmountObject amountRequested, String issuer, Long monetaryAccountId, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -178,25 +178,25 @@ public static BunqResponse create(AmountObject amountRequested, String return processForId(responseRaw); } - public static BunqResponse create() { + public static BunqResponse create() { return create(null, null, null, null); } - public static BunqResponse create(AmountObject amountRequested) { + public static BunqResponse create(AmountObject amountRequested) { return create(amountRequested, null, null, null); } - public static BunqResponse create(AmountObject amountRequested, String issuer) { + public static BunqResponse create(AmountObject amountRequested, String issuer) { return create(amountRequested, issuer, null, null); } - public static BunqResponse create(AmountObject amountRequested, String issuer, Integer monetaryAccountId) { + public static BunqResponse create(AmountObject amountRequested, String issuer, Long monetaryAccountId) { return create(amountRequested, issuer, monetaryAccountId, null); } /** */ - public static BunqResponse get(Integer idealMerchantTransactionId, Integer monetaryAccountId, Map params, Map customHeaders) { + public static BunqResponse get(Long idealMerchantTransactionId, Long monetaryAccountId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_READ, determineUserId(), determineMonetaryAccountId(monetaryAccountId), idealMerchantTransactionId), params, customHeaders); @@ -207,21 +207,21 @@ public static BunqResponse get() { return get(null, null, null, null); } - public static BunqResponse get(Integer idealMerchantTransactionId) { + public static BunqResponse get(Long idealMerchantTransactionId) { return get(idealMerchantTransactionId, null, null, null); } - public static BunqResponse get(Integer idealMerchantTransactionId, Integer monetaryAccountId) { + public static BunqResponse get(Long idealMerchantTransactionId, Long monetaryAccountId) { return get(idealMerchantTransactionId, monetaryAccountId, null, null); } - public static BunqResponse get(Integer idealMerchantTransactionId, Integer monetaryAccountId, Map params) { + public static BunqResponse get(Long idealMerchantTransactionId, Long monetaryAccountId, Map params) { return get(idealMerchantTransactionId, monetaryAccountId, params, null); } /** */ - public static BunqResponse> list(Integer monetaryAccountId, Map params, Map customHeaders) { + public static BunqResponse> list(Long monetaryAccountId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_LISTING, determineUserId(), determineMonetaryAccountId(monetaryAccountId)), params, customHeaders); @@ -232,22 +232,22 @@ public static BunqResponse> list() { return list(null, null, null); } - public static BunqResponse> list(Integer monetaryAccountId) { + public static BunqResponse> list(Long monetaryAccountId) { return list(monetaryAccountId, null, null); } - public static BunqResponse> list(Integer monetaryAccountId, Map params) { + public static BunqResponse> list(Long monetaryAccountId, Map params) { return list(monetaryAccountId, params, null); } /** * The id of the monetary account this ideal merchant transaction links to. */ - public Integer getMonetaryAccountId() { + public Long getMonetaryAccountId() { return this.monetaryAccountId; } - public void setMonetaryAccountId(Integer monetaryAccountId) { + public void setMonetaryAccountId(Long monetaryAccountId) { this.monetaryAccountId = monetaryAccountId; } diff --git a/src/main/java/com/bunq/sdk/model/generated/endpoint/InsightApiObject.java b/src/main/java/com/bunq/sdk/model/generated/endpoint/InsightApiObject.java index 9792969b..e0ea6280 100644 --- a/src/main/java/com/bunq/sdk/model/generated/endpoint/InsightApiObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/endpoint/InsightApiObject.java @@ -72,7 +72,7 @@ public class InsightApiObject extends BunqModel { */ @Expose @SerializedName("number_of_transactions") - private Integer numberOfTransactions; + private Long numberOfTransactions; /** */ @@ -149,11 +149,11 @@ public void setAmountTotal(AmountObject amountTotal) { /** * The number of the transactions in the category. */ - public Integer getNumberOfTransactions() { + public Long getNumberOfTransactions() { return this.numberOfTransactions; } - public void setNumberOfTransactions(Integer numberOfTransactions) { + public void setNumberOfTransactions(Long numberOfTransactions) { this.numberOfTransactions = numberOfTransactions; } diff --git a/src/main/java/com/bunq/sdk/model/generated/endpoint/InsightEventApiObject.java b/src/main/java/com/bunq/sdk/model/generated/endpoint/InsightEventApiObject.java index 9d26c8e5..89d44cf0 100644 --- a/src/main/java/com/bunq/sdk/model/generated/endpoint/InsightEventApiObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/endpoint/InsightEventApiObject.java @@ -37,7 +37,7 @@ public class InsightEventApiObject extends BunqModel { */ @Expose @SerializedName("id") - private Integer id; + private Long id; /** * The timestamp of the event's creation. @@ -109,11 +109,11 @@ public static BunqResponse> list(Map /** * The id of the event. */ - public Integer getId() { + public Long getId() { return this.id; } - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } diff --git a/src/main/java/com/bunq/sdk/model/generated/endpoint/InsightPreferenceDateApiObject.java b/src/main/java/com/bunq/sdk/model/generated/endpoint/InsightPreferenceDateApiObject.java index f6f42898..b6ec42eb 100644 --- a/src/main/java/com/bunq/sdk/model/generated/endpoint/InsightPreferenceDateApiObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/endpoint/InsightPreferenceDateApiObject.java @@ -41,20 +41,20 @@ public class InsightPreferenceDateApiObject extends BunqModel { */ @Expose @SerializedName("day_of_month") - private Integer dayOfMonth; + private Long dayOfMonth; /** * The day of month at which budgeting/insights should start. */ @Expose @SerializedName("day_of_month_field_for_request") - private Integer dayOfMonthFieldForRequest; + private Long dayOfMonthFieldForRequest; public InsightPreferenceDateApiObject() { this(null); } - public InsightPreferenceDateApiObject(Integer dayOfMonth) { + public InsightPreferenceDateApiObject(Long dayOfMonth) { this.dayOfMonthFieldForRequest = dayOfMonth; } /** */ @@ -76,11 +76,11 @@ public static BunqResponse> list(Map> list(Integer installationId, Map params, Map customHeaders) { + public static BunqResponse> list(Long installationId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_LISTING, installationId), params, customHeaders); @@ -53,11 +53,11 @@ public static BunqResponse> list() { return list(null, null, null); } - public static BunqResponse> list(Integer installationId) { + public static BunqResponse> list(Long installationId) { return list(installationId, null, null); } - public static BunqResponse> list(Integer installationId, Map params) { + public static BunqResponse> list(Long installationId, Map params) { return list(installationId, params, null); } diff --git a/src/main/java/com/bunq/sdk/model/generated/endpoint/InvoiceApiObject.java b/src/main/java/com/bunq/sdk/model/generated/endpoint/InvoiceApiObject.java index 6ee7db9f..ab03331b 100644 --- a/src/main/java/com/bunq/sdk/model/generated/endpoint/InvoiceApiObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/endpoint/InvoiceApiObject.java @@ -29,8 +29,8 @@ public class InvoiceApiObject extends BunqModel { /** * Endpoint constants. */ - protected static final String ENDPOINT_URL_LISTING = "user/%s/monetary-account/%s/invoice"; protected static final String ENDPOINT_URL_READ = "user/%s/monetary-account/%s/invoice/%s"; + protected static final String ENDPOINT_URL_LISTING = "user/%s/monetary-account/%s/invoice"; /** * Field constants. @@ -49,7 +49,7 @@ public class InvoiceApiObject extends BunqModel { */ @Expose @SerializedName("id") - private Integer id; + private Long id; /** * The timestamp of the invoice object's creation. @@ -210,58 +210,58 @@ public InvoiceApiObject(String status, String description, String externalUrl) { this.externalUrlFieldForRequest = externalUrl; } /** */ - public static BunqResponse> list(Integer monetaryAccountId, Map params, Map customHeaders) { + public static BunqResponse get(Long invoiceId, Long monetaryAccountId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); - BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_LISTING, determineUserId(), determineMonetaryAccountId(monetaryAccountId)), params, customHeaders); + BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_READ, determineUserId(), determineMonetaryAccountId(monetaryAccountId), invoiceId), params, customHeaders); - return fromJsonList(InvoiceApiObject.class, responseRaw, OBJECT_TYPE_GET); + return fromJson(InvoiceApiObject.class, responseRaw, OBJECT_TYPE_GET); } - public static BunqResponse> list() { - return list(null, null, null); + public static BunqResponse get() { + return get(null, null, null, null); } - public static BunqResponse> list(Integer monetaryAccountId) { - return list(monetaryAccountId, null, null); + public static BunqResponse get(Long invoiceId) { + return get(invoiceId, null, null, null); } - public static BunqResponse> list(Integer monetaryAccountId, Map params) { - return list(monetaryAccountId, params, null); + public static BunqResponse get(Long invoiceId, Long monetaryAccountId) { + return get(invoiceId, monetaryAccountId, null, null); + } + + public static BunqResponse get(Long invoiceId, Long monetaryAccountId, Map params) { + return get(invoiceId, monetaryAccountId, params, null); } /** */ - public static BunqResponse get(Integer invoiceId, Integer monetaryAccountId, Map params, Map customHeaders) { + public static BunqResponse> list(Long monetaryAccountId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); - BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_READ, determineUserId(), determineMonetaryAccountId(monetaryAccountId), invoiceId), params, customHeaders); - - return fromJson(InvoiceApiObject.class, responseRaw, OBJECT_TYPE_GET); - } + BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_LISTING, determineUserId(), determineMonetaryAccountId(monetaryAccountId)), params, customHeaders); - public static BunqResponse get() { - return get(null, null, null, null); + return fromJsonList(InvoiceApiObject.class, responseRaw, OBJECT_TYPE_GET); } - public static BunqResponse get(Integer invoiceId) { - return get(invoiceId, null, null, null); + public static BunqResponse> list() { + return list(null, null, null); } - public static BunqResponse get(Integer invoiceId, Integer monetaryAccountId) { - return get(invoiceId, monetaryAccountId, null, null); + public static BunqResponse> list(Long monetaryAccountId) { + return list(monetaryAccountId, null, null); } - public static BunqResponse get(Integer invoiceId, Integer monetaryAccountId, Map params) { - return get(invoiceId, monetaryAccountId, params, null); + public static BunqResponse> list(Long monetaryAccountId, Map params) { + return list(monetaryAccountId, params, null); } /** * The id of the invoice object. */ - public Integer getId() { + public Long getId() { return this.id; } - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } diff --git a/src/main/java/com/bunq/sdk/model/generated/endpoint/InvoiceByUserApiObject.java b/src/main/java/com/bunq/sdk/model/generated/endpoint/InvoiceByUserApiObject.java index 7fe05dcf..69212135 100644 --- a/src/main/java/com/bunq/sdk/model/generated/endpoint/InvoiceByUserApiObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/endpoint/InvoiceByUserApiObject.java @@ -41,7 +41,7 @@ public class InvoiceByUserApiObject extends BunqModel { */ @Expose @SerializedName("id") - private Integer id; + private Long id; /** * The timestamp of the invoice object's creation. @@ -167,7 +167,7 @@ public static BunqResponse> list(Map get(Integer invoiceByUserId, Map params, Map customHeaders) { + public static BunqResponse get(Long invoiceByUserId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_READ, determineUserId(), invoiceByUserId), params, customHeaders); @@ -178,22 +178,22 @@ public static BunqResponse get() { return get(null, null, null); } - public static BunqResponse get(Integer invoiceByUserId) { + public static BunqResponse get(Long invoiceByUserId) { return get(invoiceByUserId, null, null); } - public static BunqResponse get(Integer invoiceByUserId, Map params) { + public static BunqResponse get(Long invoiceByUserId, Map params) { return get(invoiceByUserId, params, null); } /** * The id of the invoice object. */ - public Integer getId() { + public Long getId() { return this.id; } - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } diff --git a/src/main/java/com/bunq/sdk/model/generated/endpoint/InvoiceExportPdfApiObject.java b/src/main/java/com/bunq/sdk/model/generated/endpoint/InvoiceExportPdfApiObject.java index f81ad5c6..95b34e5a 100644 --- a/src/main/java/com/bunq/sdk/model/generated/endpoint/InvoiceExportPdfApiObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/endpoint/InvoiceExportPdfApiObject.java @@ -39,7 +39,7 @@ public class InvoiceExportPdfApiObject extends BunqModel { */ @Expose @SerializedName("id") - private Integer id; + private Long id; /** * The timestamp of the invoice export's creation. @@ -64,7 +64,7 @@ public class InvoiceExportPdfApiObject extends BunqModel { /** */ - public static BunqResponse get(Integer invoiceId, Integer invoiceExportPdfId, Map params, Map customHeaders) { + public static BunqResponse get(Long invoiceId, Long invoiceExportPdfId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_READ, determineUserId(), invoiceId, invoiceExportPdfId), params, customHeaders); @@ -75,21 +75,21 @@ public static BunqResponse get() { return get(null, null, null, null); } - public static BunqResponse get(Integer invoiceId) { + public static BunqResponse get(Long invoiceId) { return get(invoiceId, null, null, null); } - public static BunqResponse get(Integer invoiceId, Integer invoiceExportPdfId) { + public static BunqResponse get(Long invoiceId, Long invoiceExportPdfId) { return get(invoiceId, invoiceExportPdfId, null, null); } - public static BunqResponse get(Integer invoiceId, Integer invoiceExportPdfId, Map params) { + public static BunqResponse get(Long invoiceId, Long invoiceExportPdfId, Map params) { return get(invoiceId, invoiceExportPdfId, params, null); } /** */ - public static BunqResponse create(Integer invoiceId, Map customHeaders) { + public static BunqResponse create(Long invoiceId, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -104,17 +104,17 @@ public static BunqResponse create(Integer invoiceId, Map create() { + public static BunqResponse create() { return create(null, null); } - public static BunqResponse create(Integer invoiceId) { + public static BunqResponse create(Long invoiceId) { return create(invoiceId, null); } /** */ - public static BunqResponse update(Integer invoiceId, Integer invoiceExportPdfId, Map customHeaders) { + public static BunqResponse update(Long invoiceId, Long invoiceExportPdfId, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -129,39 +129,39 @@ public static BunqResponse update(Integer invoiceId, Integer invoiceExp return processForId(responseRaw); } - public static BunqResponse update(Integer invoiceId) { + public static BunqResponse update(Long invoiceId) { return update(invoiceId, null, null); } - public static BunqResponse update(Integer invoiceId, Integer invoiceExportPdfId) { + public static BunqResponse update(Long invoiceId, Long invoiceExportPdfId) { return update(invoiceId, invoiceExportPdfId, null); } /** */ - public static BunqResponse delete(Integer invoiceId, Integer invoiceExportPdfId, Map customHeaders) { + public static BunqResponse delete(Long invoiceId, Long invoiceExportPdfId, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.delete(String.format(ENDPOINT_URL_DELETE, determineUserId(), invoiceId, invoiceExportPdfId), customHeaders); return new BunqResponse<>(null, responseRaw.getHeaders()); } - public static BunqResponse delete(Integer invoiceId) { + public static BunqResponse delete(Long invoiceId) { return delete(invoiceId, null, null); } - public static BunqResponse delete(Integer invoiceId, Integer invoiceExportPdfId) { + public static BunqResponse delete(Long invoiceId, Long invoiceExportPdfId) { return delete(invoiceId, invoiceExportPdfId, null); } /** * The id of the invoice export model. */ - public Integer getId() { + public Long getId() { return this.id; } - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } diff --git a/src/main/java/com/bunq/sdk/model/generated/endpoint/InvoiceExportPdfContentApiObject.java b/src/main/java/com/bunq/sdk/model/generated/endpoint/InvoiceExportPdfContentApiObject.java index eb6b8dc7..655ee04a 100644 --- a/src/main/java/com/bunq/sdk/model/generated/endpoint/InvoiceExportPdfContentApiObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/endpoint/InvoiceExportPdfContentApiObject.java @@ -33,7 +33,7 @@ public class InvoiceExportPdfContentApiObject extends BunqModel { /** */ - public static BunqResponse list(Integer invoiceId, Map params, Map customHeaders) { + public static BunqResponse list(Long invoiceId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_LISTING, determineUserId(), invoiceId), params, customHeaders); @@ -43,10 +43,10 @@ public static BunqResponse list(Integer invoiceId, Map p public static BunqResponse list() { return list(null, null, null); } - public static BunqResponse list(Integer invoiceId) { + public static BunqResponse list(Long invoiceId) { return list(invoiceId, null, null); } - public static BunqResponse list(Integer invoiceId, Map params) { + public static BunqResponse list(Long invoiceId, Map params) { return list(invoiceId, params, null); } diff --git a/src/main/java/com/bunq/sdk/model/generated/endpoint/MasterCardActionApiObject.java b/src/main/java/com/bunq/sdk/model/generated/endpoint/MasterCardActionApiObject.java index 5c2b3181..b2b4d84b 100644 --- a/src/main/java/com/bunq/sdk/model/generated/endpoint/MasterCardActionApiObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/endpoint/MasterCardActionApiObject.java @@ -41,21 +41,21 @@ public class MasterCardActionApiObject extends BunqModel { */ @Expose @SerializedName("id") - private Integer id; + private Long id; /** * The id of the monetary account this action links to. */ @Expose @SerializedName("monetary_account_id") - private Integer monetaryAccountId; + private Long monetaryAccountId; /** * The id of the card this action links to. */ @Expose @SerializedName("card_id") - private Integer cardId; + private Long cardId; /** * The amount of the transaction in local currency. @@ -262,7 +262,7 @@ public class MasterCardActionApiObject extends BunqModel { */ @Expose @SerializedName("secure_code_id") - private Integer secureCodeId; + private Long secureCodeId; /** * The ID of the wallet provider as defined by MasterCard. 420 = bunq Android app with Tap&Pay; @@ -313,7 +313,7 @@ public class MasterCardActionApiObject extends BunqModel { */ @Expose @SerializedName("eligible_whitelist_id") - private Integer eligibleWhitelistId; + private Long eligibleWhitelistId; /** * The cashback payout item for this action or null @@ -380,7 +380,7 @@ public class MasterCardActionApiObject extends BunqModel { /** */ - public static BunqResponse get(Integer masterCardActionId, Integer monetaryAccountId, Map params, Map customHeaders) { + public static BunqResponse get(Long masterCardActionId, Long monetaryAccountId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_READ, determineUserId(), determineMonetaryAccountId(monetaryAccountId), masterCardActionId), params, customHeaders); @@ -391,21 +391,21 @@ public static BunqResponse get() { return get(null, null, null, null); } - public static BunqResponse get(Integer masterCardActionId) { + public static BunqResponse get(Long masterCardActionId) { return get(masterCardActionId, null, null, null); } - public static BunqResponse get(Integer masterCardActionId, Integer monetaryAccountId) { + public static BunqResponse get(Long masterCardActionId, Long monetaryAccountId) { return get(masterCardActionId, monetaryAccountId, null, null); } - public static BunqResponse get(Integer masterCardActionId, Integer monetaryAccountId, Map params) { + public static BunqResponse get(Long masterCardActionId, Long monetaryAccountId, Map params) { return get(masterCardActionId, monetaryAccountId, params, null); } /** */ - public static BunqResponse> list(Integer monetaryAccountId, Map params, Map customHeaders) { + public static BunqResponse> list(Long monetaryAccountId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_LISTING, determineUserId(), determineMonetaryAccountId(monetaryAccountId)), params, customHeaders); @@ -416,44 +416,44 @@ public static BunqResponse> list() { return list(null, null, null); } - public static BunqResponse> list(Integer monetaryAccountId) { + public static BunqResponse> list(Long monetaryAccountId) { return list(monetaryAccountId, null, null); } - public static BunqResponse> list(Integer monetaryAccountId, Map params) { + public static BunqResponse> list(Long monetaryAccountId, Map params) { return list(monetaryAccountId, params, null); } /** * The id of the MastercardAction. */ - public Integer getId() { + public Long getId() { return this.id; } - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } /** * The id of the monetary account this action links to. */ - public Integer getMonetaryAccountId() { + public Long getMonetaryAccountId() { return this.monetaryAccountId; } - public void setMonetaryAccountId(Integer monetaryAccountId) { + public void setMonetaryAccountId(Long monetaryAccountId) { this.monetaryAccountId = monetaryAccountId; } /** * The id of the card this action links to. */ - public Integer getCardId() { + public Long getCardId() { return this.cardId; } - public void setCardId(Integer cardId) { + public void setCardId(Long cardId) { this.cardId = cardId; } @@ -772,11 +772,11 @@ public void setAppliedLimit(String appliedLimit) { /** * The secure code id for this mastercard action or null. */ - public Integer getSecureCodeId() { + public Long getSecureCodeId() { return this.secureCodeId; } - public void setSecureCodeId(Integer secureCodeId) { + public void setSecureCodeId(Long secureCodeId) { this.secureCodeId = secureCodeId; } @@ -851,11 +851,11 @@ public void setPosCardHolderPresence(String posCardHolderPresence) { /** * The whitelist id for this action or null. */ - public Integer getEligibleWhitelistId() { + public Long getEligibleWhitelistId() { return this.eligibleWhitelistId; } - public void setEligibleWhitelistId(Integer eligibleWhitelistId) { + public void setEligibleWhitelistId(Long eligibleWhitelistId) { this.eligibleWhitelistId = eligibleWhitelistId; } diff --git a/src/main/java/com/bunq/sdk/model/generated/endpoint/MasterCardActionRefundApiObject.java b/src/main/java/com/bunq/sdk/model/generated/endpoint/MasterCardActionRefundApiObject.java index 21acd138..e941e095 100644 --- a/src/main/java/com/bunq/sdk/model/generated/endpoint/MasterCardActionRefundApiObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/endpoint/MasterCardActionRefundApiObject.java @@ -40,7 +40,7 @@ public class MasterCardActionRefundApiObject extends BunqModel { */ @Expose @SerializedName("id") - private Integer id; + private Long id; /** * The timestamp of the refund's creation. @@ -83,7 +83,7 @@ public class MasterCardActionRefundApiObject extends BunqModel { */ @Expose @SerializedName("mastercard_action_id") - private Integer mastercardActionId; + private Long mastercardActionId; /** * Type of this refund. Can de REFUND or CHARGEBACK @@ -280,11 +280,11 @@ public MasterCardActionRefundApiObject(String subType, AmountObject amount, Stri /** * The id of the refund. */ - public Integer getId() { + public Long getId() { return this.id; } - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } @@ -347,11 +347,11 @@ public void setReferenceMastercardActionEvent(List get(Integer masterCardIdentityCheckChallengeRequestUserId, Map params, Map customHeaders) { + public static BunqResponse get(Long masterCardIdentityCheckChallengeRequestUserId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_READ, determineUserId(), masterCardIdentityCheckChallengeRequestUserId), params, customHeaders); @@ -135,11 +135,11 @@ public static BunqResponse return get(null, null, null); } - public static BunqResponse get(Integer masterCardIdentityCheckChallengeRequestUserId) { + public static BunqResponse get(Long masterCardIdentityCheckChallengeRequestUserId) { return get(masterCardIdentityCheckChallengeRequestUserId, null, null); } - public static BunqResponse get(Integer masterCardIdentityCheckChallengeRequestUserId, Map params) { + public static BunqResponse get(Long masterCardIdentityCheckChallengeRequestUserId, Map params) { return get(masterCardIdentityCheckChallengeRequestUserId, params, null); } @@ -147,7 +147,7 @@ public static BunqResponse * @param status The status of the identity check. Can be ACCEPTED_PENDING_RESPONSE or * REJECTED_PENDING_RESPONSE. */ - public static BunqResponse update(Integer masterCardIdentityCheckChallengeRequestUserId, String status, Map customHeaders) { + public static BunqResponse update(Long masterCardIdentityCheckChallengeRequestUserId, String status, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -163,11 +163,11 @@ public static BunqResponse update(Integer masterCardIdentityCheckChalle return processForId(responseRaw); } - public static BunqResponse update(Integer masterCardIdentityCheckChallengeRequestUserId) { + public static BunqResponse update(Long masterCardIdentityCheckChallengeRequestUserId) { return update(masterCardIdentityCheckChallengeRequestUserId, null, null); } - public static BunqResponse update(Integer masterCardIdentityCheckChallengeRequestUserId, String status) { + public static BunqResponse update(Long masterCardIdentityCheckChallengeRequestUserId, String status) { return update(masterCardIdentityCheckChallengeRequestUserId, status, null); } @@ -262,22 +262,22 @@ public void setCounterpartyAlias(LabelMonetaryAccountObject counterpartyAlias) { /** * The ID of the latest event for the identity check. */ - public Integer getEventId() { + public Long getEventId() { return this.eventId; } - public void setEventId(Integer eventId) { + public void setEventId(Long eventId) { this.eventId = eventId; } /** * The ID of the card used for the authentication request of the identity check. */ - public Integer getCardId() { + public Long getCardId() { return this.cardId; } - public void setCardId(Integer cardId) { + public void setCardId(Long cardId) { this.cardId = cardId; } diff --git a/src/main/java/com/bunq/sdk/model/generated/endpoint/MasterCardPaymentApiObject.java b/src/main/java/com/bunq/sdk/model/generated/endpoint/MasterCardPaymentApiObject.java index 79497ebf..806dfad5 100644 --- a/src/main/java/com/bunq/sdk/model/generated/endpoint/MasterCardPaymentApiObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/endpoint/MasterCardPaymentApiObject.java @@ -44,7 +44,7 @@ public class MasterCardPaymentApiObject extends BunqModel { */ @Expose @SerializedName("id") - private Integer id; + private Long id; /** * The timestamp when the Payment was done. @@ -67,7 +67,7 @@ public class MasterCardPaymentApiObject extends BunqModel { */ @Expose @SerializedName("monetary_account_id") - private Integer monetaryAccountId; + private Long monetaryAccountId; /** * The Amount transferred by the Payment. Will be negative for outgoing Payments and positive @@ -177,14 +177,14 @@ public class MasterCardPaymentApiObject extends BunqModel { */ @Expose @SerializedName("batch_id") - private Integer batchId; + private Long batchId; /** * The id of the JobScheduled if the Payment was scheduled. */ @Expose @SerializedName("scheduled_id") - private Integer scheduledId; + private Long scheduledId; /** * A shipping Address provided with the Payment, currently unused. @@ -245,7 +245,7 @@ public class MasterCardPaymentApiObject extends BunqModel { /** */ - public static BunqResponse> list(Integer mastercardActionId, Integer monetaryAccountId, Map params, Map customHeaders) { + public static BunqResponse> list(Long mastercardActionId, Long monetaryAccountId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_LISTING, determineUserId(), determineMonetaryAccountId(monetaryAccountId), mastercardActionId), params, customHeaders); @@ -256,26 +256,26 @@ public static BunqResponse> list() { return list(null, null, null, null); } - public static BunqResponse> list(Integer mastercardActionId) { + public static BunqResponse> list(Long mastercardActionId) { return list(mastercardActionId, null, null, null); } - public static BunqResponse> list(Integer mastercardActionId, Integer monetaryAccountId) { + public static BunqResponse> list(Long mastercardActionId, Long monetaryAccountId) { return list(mastercardActionId, monetaryAccountId, null, null); } - public static BunqResponse> list(Integer mastercardActionId, Integer monetaryAccountId, Map params) { + public static BunqResponse> list(Long mastercardActionId, Long monetaryAccountId, Map params) { return list(mastercardActionId, monetaryAccountId, params, null); } /** * The id of the Payment. */ - public Integer getId() { + public Long getId() { return this.id; } - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } @@ -306,11 +306,11 @@ public void setUpdated(String updated) { * The id of the MonetaryAccount the Payment was made to or from (depending on whether this is * an incoming or outgoing Payment). */ - public Integer getMonetaryAccountId() { + public Long getMonetaryAccountId() { return this.monetaryAccountId; } - public void setMonetaryAccountId(Integer monetaryAccountId) { + public void setMonetaryAccountId(Long monetaryAccountId) { this.monetaryAccountId = monetaryAccountId; } @@ -476,22 +476,22 @@ public void setMerchantReference(String merchantReference) { /** * The id of the PaymentBatch if this Payment was part of one. */ - public Integer getBatchId() { + public Long getBatchId() { return this.batchId; } - public void setBatchId(Integer batchId) { + public void setBatchId(Long batchId) { this.batchId = batchId; } /** * The id of the JobScheduled if the Payment was scheduled. */ - public Integer getScheduledId() { + public Long getScheduledId() { return this.scheduledId; } - public void setScheduledId(Integer scheduledId) { + public void setScheduledId(Long scheduledId) { this.scheduledId = scheduledId; } diff --git a/src/main/java/com/bunq/sdk/model/generated/endpoint/MonetaryAccountApiObject.java b/src/main/java/com/bunq/sdk/model/generated/endpoint/MonetaryAccountApiObject.java index d2267d38..bc2db886 100644 --- a/src/main/java/com/bunq/sdk/model/generated/endpoint/MonetaryAccountApiObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/endpoint/MonetaryAccountApiObject.java @@ -54,12 +54,20 @@ public class MonetaryAccountApiObject extends BunqModel { @SerializedName("balance") private AmountObject balance; + /** + * The current available balance amount of the MonetaryAccount, converted to the user's default + * currency. + */ + @Expose + @SerializedName("balance_converted") + private AmountObject balanceConverted; + /** * The profiles of the account. */ @Expose @SerializedName("monetary_account_profile") - private MonetaryAccountProfileApiObject monetaryAccountProfile; + private List monetaryAccountProfile; /** * The settings of the MonetaryAccount. @@ -211,7 +219,7 @@ public class MonetaryAccountApiObject extends BunqModel { /** * Get a specific MonetaryAccount. */ - public static BunqResponse get(Integer monetaryAccountId, Map params, Map customHeaders) { + public static BunqResponse get(Long monetaryAccountId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_READ, determineUserId(), determineMonetaryAccountId(monetaryAccountId)), params, customHeaders); @@ -222,11 +230,11 @@ public static BunqResponse get() { return get(null, null, null); } - public static BunqResponse get(Integer monetaryAccountId) { + public static BunqResponse get(Long monetaryAccountId) { return get(monetaryAccountId, null, null); } - public static BunqResponse get(Integer monetaryAccountId, Map params) { + public static BunqResponse get(Long monetaryAccountId, Map params) { return get(monetaryAccountId, params, null); } @@ -270,14 +278,26 @@ public void setBalance(AmountObject balance) { this.balance = balance; } + /** + * The current available balance amount of the MonetaryAccount, converted to the user's default + * currency. + */ + public AmountObject getBalanceConverted() { + return this.balanceConverted; + } + + public void setBalanceConverted(AmountObject balanceConverted) { + this.balanceConverted = balanceConverted; + } + /** * The profiles of the account. */ - public MonetaryAccountProfileApiObject getMonetaryAccountProfile() { + public List getMonetaryAccountProfile() { return this.monetaryAccountProfile; } - public void setMonetaryAccountProfile(MonetaryAccountProfileApiObject monetaryAccountProfile) { + public void setMonetaryAccountProfile(List monetaryAccountProfile) { this.monetaryAccountProfile = monetaryAccountProfile; } @@ -527,6 +547,10 @@ public boolean isAllFieldNull() { return false; } + if (this.balanceConverted != null) { + return false; + } + if (this.monetaryAccountProfile != null) { return false; } diff --git a/src/main/java/com/bunq/sdk/model/generated/endpoint/MonetaryAccountBankApiObject.java b/src/main/java/com/bunq/sdk/model/generated/endpoint/MonetaryAccountBankApiObject.java index f81fc757..d01333a5 100644 --- a/src/main/java/com/bunq/sdk/model/generated/endpoint/MonetaryAccountBankApiObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/endpoint/MonetaryAccountBankApiObject.java @@ -65,7 +65,7 @@ public class MonetaryAccountBankApiObject extends BunqModel { */ @Expose @SerializedName("id") - private Integer id; + private Long id; /** * The timestamp of the MonetaryAccountBank's creation. @@ -189,14 +189,14 @@ public class MonetaryAccountBankApiObject extends BunqModel { */ @Expose @SerializedName("user_id") - private Integer userId; + private Long userId; /** * The profiles of the account. */ @Expose @SerializedName("monetary_account_profile") - private MonetaryAccountProfileApiObject monetaryAccountProfile; + private List monetaryAccountProfile; /** * The legal name of the user / company using this monetary account. @@ -226,6 +226,14 @@ public class MonetaryAccountBankApiObject extends BunqModel { @SerializedName("fulfillments") private List fulfillments; + /** + * The current available balance amount of the MonetaryAccount, converted to the user's default + * currency. + */ + @Expose + @SerializedName("balance_converted") + private AmountObject balanceConverted; + /** * The budgets of the MonetaryAccount. */ @@ -438,7 +446,7 @@ public MonetaryAccountBankApiObject(String currency, String description, AmountO * @param setting The settings of the MonetaryAccountBank. * @param countryIban The country of the monetary account IBAN. */ - public static BunqResponse create(String currency, String description, AmountObject dailyLimit, String avatarUuid, String status, String subStatus, String reason, String reasonDescription, String displayName, MonetaryAccountSettingObject setting, String countryIban, Map customHeaders) { + public static BunqResponse create(String currency, String description, AmountObject dailyLimit, String avatarUuid, String status, String subStatus, String reason, String reasonDescription, String displayName, MonetaryAccountSettingObject setting, String countryIban, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -464,58 +472,58 @@ public static BunqResponse create(String currency, String description, return processForId(responseRaw); } - public static BunqResponse create() { + public static BunqResponse create() { return create(null, null, null, null, null, null, null, null, null, null, null, null); } - public static BunqResponse create(String currency) { + public static BunqResponse create(String currency) { return create(currency, null, null, null, null, null, null, null, null, null, null, null); } - public static BunqResponse create(String currency, String description) { + public static BunqResponse create(String currency, String description) { return create(currency, description, null, null, null, null, null, null, null, null, null, null); } - public static BunqResponse create(String currency, String description, AmountObject dailyLimit) { + public static BunqResponse create(String currency, String description, AmountObject dailyLimit) { return create(currency, description, dailyLimit, null, null, null, null, null, null, null, null, null); } - public static BunqResponse create(String currency, String description, AmountObject dailyLimit, String avatarUuid) { + public static BunqResponse create(String currency, String description, AmountObject dailyLimit, String avatarUuid) { return create(currency, description, dailyLimit, avatarUuid, null, null, null, null, null, null, null, null); } - public static BunqResponse create(String currency, String description, AmountObject dailyLimit, String avatarUuid, String status) { + public static BunqResponse create(String currency, String description, AmountObject dailyLimit, String avatarUuid, String status) { return create(currency, description, dailyLimit, avatarUuid, status, null, null, null, null, null, null, null); } - public static BunqResponse create(String currency, String description, AmountObject dailyLimit, String avatarUuid, String status, String subStatus) { + public static BunqResponse create(String currency, String description, AmountObject dailyLimit, String avatarUuid, String status, String subStatus) { return create(currency, description, dailyLimit, avatarUuid, status, subStatus, null, null, null, null, null, null); } - public static BunqResponse create(String currency, String description, AmountObject dailyLimit, String avatarUuid, String status, String subStatus, String reason) { + public static BunqResponse create(String currency, String description, AmountObject dailyLimit, String avatarUuid, String status, String subStatus, String reason) { return create(currency, description, dailyLimit, avatarUuid, status, subStatus, reason, null, null, null, null, null); } - public static BunqResponse create(String currency, String description, AmountObject dailyLimit, String avatarUuid, String status, String subStatus, String reason, String reasonDescription) { + public static BunqResponse create(String currency, String description, AmountObject dailyLimit, String avatarUuid, String status, String subStatus, String reason, String reasonDescription) { return create(currency, description, dailyLimit, avatarUuid, status, subStatus, reason, reasonDescription, null, null, null, null); } - public static BunqResponse create(String currency, String description, AmountObject dailyLimit, String avatarUuid, String status, String subStatus, String reason, String reasonDescription, String displayName) { + public static BunqResponse create(String currency, String description, AmountObject dailyLimit, String avatarUuid, String status, String subStatus, String reason, String reasonDescription, String displayName) { return create(currency, description, dailyLimit, avatarUuid, status, subStatus, reason, reasonDescription, displayName, null, null, null); } - public static BunqResponse create(String currency, String description, AmountObject dailyLimit, String avatarUuid, String status, String subStatus, String reason, String reasonDescription, String displayName, MonetaryAccountSettingObject setting) { + public static BunqResponse create(String currency, String description, AmountObject dailyLimit, String avatarUuid, String status, String subStatus, String reason, String reasonDescription, String displayName, MonetaryAccountSettingObject setting) { return create(currency, description, dailyLimit, avatarUuid, status, subStatus, reason, reasonDescription, displayName, setting, null, null); } - public static BunqResponse create(String currency, String description, AmountObject dailyLimit, String avatarUuid, String status, String subStatus, String reason, String reasonDescription, String displayName, MonetaryAccountSettingObject setting, String countryIban) { + public static BunqResponse create(String currency, String description, AmountObject dailyLimit, String avatarUuid, String status, String subStatus, String reason, String reasonDescription, String displayName, MonetaryAccountSettingObject setting, String countryIban) { return create(currency, description, dailyLimit, avatarUuid, status, subStatus, reason, reasonDescription, displayName, setting, countryIban, null); } /** * Get a specific MonetaryAccountBank. */ - public static BunqResponse get(Integer monetaryAccountBankId, Map params, Map customHeaders) { + public static BunqResponse get(Long monetaryAccountBankId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_READ, determineUserId(), monetaryAccountBankId), params, customHeaders); @@ -526,11 +534,11 @@ public static BunqResponse get() { return get(null, null, null); } - public static BunqResponse get(Integer monetaryAccountBankId) { + public static BunqResponse get(Long monetaryAccountBankId) { return get(monetaryAccountBankId, null, null); } - public static BunqResponse get(Integer monetaryAccountBankId, Map params) { + public static BunqResponse get(Long monetaryAccountBankId, Map params) { return get(monetaryAccountBankId, params, null); } @@ -557,7 +565,7 @@ public static BunqResponse get(Integer monetaryAcc * @param displayName The legal name of the user / company using this monetary account. * @param setting The settings of the MonetaryAccountBank. */ - public static BunqResponse update(Integer monetaryAccountBankId, String description, AmountObject dailyLimit, String avatarUuid, String status, String subStatus, String reason, String reasonDescription, String displayName, MonetaryAccountSettingObject setting, Map customHeaders) { + public static BunqResponse update(Long monetaryAccountBankId, String description, AmountObject dailyLimit, String avatarUuid, String status, String subStatus, String reason, String reasonDescription, String displayName, MonetaryAccountSettingObject setting, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -581,43 +589,43 @@ public static BunqResponse update(Integer monetaryAccountBankId, String return processForId(responseRaw); } - public static BunqResponse update(Integer monetaryAccountBankId) { + public static BunqResponse update(Long monetaryAccountBankId) { return update(monetaryAccountBankId, null, null, null, null, null, null, null, null, null, null); } - public static BunqResponse update(Integer monetaryAccountBankId, String description) { + public static BunqResponse update(Long monetaryAccountBankId, String description) { return update(monetaryAccountBankId, description, null, null, null, null, null, null, null, null, null); } - public static BunqResponse update(Integer monetaryAccountBankId, String description, AmountObject dailyLimit) { + public static BunqResponse update(Long monetaryAccountBankId, String description, AmountObject dailyLimit) { return update(monetaryAccountBankId, description, dailyLimit, null, null, null, null, null, null, null, null); } - public static BunqResponse update(Integer monetaryAccountBankId, String description, AmountObject dailyLimit, String avatarUuid) { + public static BunqResponse update(Long monetaryAccountBankId, String description, AmountObject dailyLimit, String avatarUuid) { return update(monetaryAccountBankId, description, dailyLimit, avatarUuid, null, null, null, null, null, null, null); } - public static BunqResponse update(Integer monetaryAccountBankId, String description, AmountObject dailyLimit, String avatarUuid, String status) { + public static BunqResponse update(Long monetaryAccountBankId, String description, AmountObject dailyLimit, String avatarUuid, String status) { return update(monetaryAccountBankId, description, dailyLimit, avatarUuid, status, null, null, null, null, null, null); } - public static BunqResponse update(Integer monetaryAccountBankId, String description, AmountObject dailyLimit, String avatarUuid, String status, String subStatus) { + public static BunqResponse update(Long monetaryAccountBankId, String description, AmountObject dailyLimit, String avatarUuid, String status, String subStatus) { return update(monetaryAccountBankId, description, dailyLimit, avatarUuid, status, subStatus, null, null, null, null, null); } - public static BunqResponse update(Integer monetaryAccountBankId, String description, AmountObject dailyLimit, String avatarUuid, String status, String subStatus, String reason) { + public static BunqResponse update(Long monetaryAccountBankId, String description, AmountObject dailyLimit, String avatarUuid, String status, String subStatus, String reason) { return update(monetaryAccountBankId, description, dailyLimit, avatarUuid, status, subStatus, reason, null, null, null, null); } - public static BunqResponse update(Integer monetaryAccountBankId, String description, AmountObject dailyLimit, String avatarUuid, String status, String subStatus, String reason, String reasonDescription) { + public static BunqResponse update(Long monetaryAccountBankId, String description, AmountObject dailyLimit, String avatarUuid, String status, String subStatus, String reason, String reasonDescription) { return update(monetaryAccountBankId, description, dailyLimit, avatarUuid, status, subStatus, reason, reasonDescription, null, null, null); } - public static BunqResponse update(Integer monetaryAccountBankId, String description, AmountObject dailyLimit, String avatarUuid, String status, String subStatus, String reason, String reasonDescription, String displayName) { + public static BunqResponse update(Long monetaryAccountBankId, String description, AmountObject dailyLimit, String avatarUuid, String status, String subStatus, String reason, String reasonDescription, String displayName) { return update(monetaryAccountBankId, description, dailyLimit, avatarUuid, status, subStatus, reason, reasonDescription, displayName, null, null); } - public static BunqResponse update(Integer monetaryAccountBankId, String description, AmountObject dailyLimit, String avatarUuid, String status, String subStatus, String reason, String reasonDescription, String displayName, MonetaryAccountSettingObject setting) { + public static BunqResponse update(Long monetaryAccountBankId, String description, AmountObject dailyLimit, String avatarUuid, String status, String subStatus, String reason, String reasonDescription, String displayName, MonetaryAccountSettingObject setting) { return update(monetaryAccountBankId, description, dailyLimit, avatarUuid, status, subStatus, reason, reasonDescription, displayName, setting, null); } @@ -642,11 +650,11 @@ public static BunqResponse> list(Map getMonetaryAccountProfile() { return this.monetaryAccountProfile; } - public void setMonetaryAccountProfile(MonetaryAccountProfileApiObject monetaryAccountProfile) { + public void setMonetaryAccountProfile(List monetaryAccountProfile) { this.monetaryAccountProfile = monetaryAccountProfile; } @@ -897,6 +905,18 @@ public void setFulfillments(List fulfillments) { this.fulfillments = fulfillments; } + /** + * The current available balance amount of the MonetaryAccount, converted to the user's default + * currency. + */ + public AmountObject getBalanceConverted() { + return this.balanceConverted; + } + + public void setBalanceConverted(AmountObject balanceConverted) { + this.balanceConverted = balanceConverted; + } + /** * The budgets of the MonetaryAccount. */ @@ -1058,6 +1078,10 @@ public boolean isAllFieldNull() { return false; } + if (this.balanceConverted != null) { + return false; + } + if (this.budget != null) { return false; } diff --git a/src/main/java/com/bunq/sdk/model/generated/endpoint/MonetaryAccountBudgetApiObject.java b/src/main/java/com/bunq/sdk/model/generated/endpoint/MonetaryAccountBudgetApiObject.java index e324b5d4..4237f3cf 100644 --- a/src/main/java/com/bunq/sdk/model/generated/endpoint/MonetaryAccountBudgetApiObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/endpoint/MonetaryAccountBudgetApiObject.java @@ -53,14 +53,14 @@ public class MonetaryAccountBudgetApiObject extends BunqModel { */ @Expose @SerializedName("monetary_account_source_funding_id_field_for_request") - private Integer monetaryAccountSourceFundingIdFieldForRequest; + private Long monetaryAccountSourceFundingIdFieldForRequest; /** * DEPRECATED. The day of the month for the automatic top-up. */ @Expose @SerializedName("payment_day_of_month_field_for_request") - private Integer paymentDayOfMonthFieldForRequest; + private Long paymentDayOfMonthFieldForRequest; public MonetaryAccountBudgetApiObject() { this(null, null, null, null, null); @@ -78,11 +78,11 @@ public MonetaryAccountBudgetApiObject(List allCategory, AmountObject amo this(allCategory, amount, recurrenceType, null, null); } - public MonetaryAccountBudgetApiObject(List allCategory, AmountObject amount, String recurrenceType, Integer monetaryAccountSourceFundingId) { + public MonetaryAccountBudgetApiObject(List allCategory, AmountObject amount, String recurrenceType, Long monetaryAccountSourceFundingId) { this(allCategory, amount, recurrenceType, monetaryAccountSourceFundingId, null); } - public MonetaryAccountBudgetApiObject(List allCategory, AmountObject amount, String recurrenceType, Integer monetaryAccountSourceFundingId, Integer paymentDayOfMonth) { + public MonetaryAccountBudgetApiObject(List allCategory, AmountObject amount, String recurrenceType, Long monetaryAccountSourceFundingId, Long paymentDayOfMonth) { this.allCategoryFieldForRequest = allCategory; this.amountFieldForRequest = amount; this.recurrenceTypeFieldForRequest = recurrenceType; diff --git a/src/main/java/com/bunq/sdk/model/generated/endpoint/MonetaryAccountCardApiObject.java b/src/main/java/com/bunq/sdk/model/generated/endpoint/MonetaryAccountCardApiObject.java index 030b06c4..6c01a33c 100644 --- a/src/main/java/com/bunq/sdk/model/generated/endpoint/MonetaryAccountCardApiObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/endpoint/MonetaryAccountCardApiObject.java @@ -42,7 +42,7 @@ public class MonetaryAccountCardApiObject extends BunqModel { */ @Expose @SerializedName("id") - private Integer id; + private Long id; /** * The timestamp of the MonetaryAccountCard's creation. @@ -93,13 +93,6 @@ public class MonetaryAccountCardApiObject extends BunqModel { @SerializedName("balance") private AmountObject balance; - /** - * The current real balance Amount of the MonetaryAccountCard. - */ - @Expose - @SerializedName("balance_real") - private AmountObject balanceReal; - /** * The aliases for the MonetaryAccount. */ @@ -133,7 +126,7 @@ public class MonetaryAccountCardApiObject extends BunqModel { */ @Expose @SerializedName("user_id") - private Integer userId; + private Long userId; /** * The RelationUser when the MonetaryAccount is accessed by the User via a share/connect. @@ -142,12 +135,20 @@ public class MonetaryAccountCardApiObject extends BunqModel { @SerializedName("relation_user") private RelationUserApiObject relationUser; + /** + * The current available balance amount of the MonetaryAccount, converted to the user's default + * currency. + */ + @Expose + @SerializedName("balance_converted") + private AmountObject balanceConverted; + /** * The profiles of the account. */ @Expose @SerializedName("monetary_account_profile") - private MonetaryAccountProfileApiObject monetaryAccountProfile; + private List monetaryAccountProfile; /** * The settings of the MonetaryAccount. @@ -238,7 +239,7 @@ public class MonetaryAccountCardApiObject extends BunqModel { /** * Get a specific MonetaryAccountCard. */ - public static BunqResponse get(Integer monetaryAccountCardId, Map params, Map customHeaders) { + public static BunqResponse get(Long monetaryAccountCardId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_READ, determineUserId(), monetaryAccountCardId), params, customHeaders); @@ -249,18 +250,18 @@ public static BunqResponse get() { return get(null, null, null); } - public static BunqResponse get(Integer monetaryAccountCardId) { + public static BunqResponse get(Long monetaryAccountCardId) { return get(monetaryAccountCardId, null, null); } - public static BunqResponse get(Integer monetaryAccountCardId, Map params) { + public static BunqResponse get(Long monetaryAccountCardId, Map params) { return get(monetaryAccountCardId, params, null); } /** * Update a specific existing MonetaryAccountCard. */ - public static BunqResponse update(Integer monetaryAccountCardId, Map customHeaders) { + public static BunqResponse update(Long monetaryAccountCardId, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -275,7 +276,7 @@ public static BunqResponse update(Integer monetaryAccountCardId, Map update(Integer monetaryAccountCardId) { + public static BunqResponse update(Long monetaryAccountCardId) { return update(monetaryAccountCardId, null); } @@ -300,11 +301,11 @@ public static BunqResponse> list(Map getMonetaryAccountProfile() { return this.monetaryAccountProfile; } - public void setMonetaryAccountProfile(MonetaryAccountProfileApiObject monetaryAccountProfile) { + public void setMonetaryAccountProfile(List monetaryAccountProfile) { this.monetaryAccountProfile = monetaryAccountProfile; } @@ -642,10 +644,6 @@ public boolean isAllFieldNull() { return false; } - if (this.balanceReal != null) { - return false; - } - if (this.alias != null) { return false; } @@ -670,6 +668,10 @@ public boolean isAllFieldNull() { return false; } + if (this.balanceConverted != null) { + return false; + } + if (this.monetaryAccountProfile != null) { return false; } diff --git a/src/main/java/com/bunq/sdk/model/generated/endpoint/MonetaryAccountExternalApiObject.java b/src/main/java/com/bunq/sdk/model/generated/endpoint/MonetaryAccountExternalApiObject.java index 869fe6f3..4bcd2722 100644 --- a/src/main/java/com/bunq/sdk/model/generated/endpoint/MonetaryAccountExternalApiObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/endpoint/MonetaryAccountExternalApiObject.java @@ -60,7 +60,7 @@ public class MonetaryAccountExternalApiObject extends BunqModel { */ @Expose @SerializedName("id") - private Integer id; + private Long id; /** * The timestamp of the MonetaryAccountExternal's creation. @@ -185,14 +185,14 @@ public class MonetaryAccountExternalApiObject extends BunqModel { */ @Expose @SerializedName("user_id") - private Integer userId; + private Long userId; /** * The profiles of the account. */ @Expose @SerializedName("monetary_account_profile") - private MonetaryAccountProfileApiObject monetaryAccountProfile; + private List monetaryAccountProfile; /** * The legal name of the user / company using this monetary account. @@ -236,6 +236,14 @@ public class MonetaryAccountExternalApiObject extends BunqModel { @SerializedName("open_banking_account") private OpenBankingAccountApiObject openBankingAccount; + /** + * The current available balance amount of the MonetaryAccount, converted to the user's default + * currency. + */ + @Expose + @SerializedName("balance_converted") + private AmountObject balanceConverted; + /** * The budgets of the MonetaryAccount. */ @@ -441,7 +449,7 @@ public MonetaryAccountExternalApiObject(String currency, String service, String * @param displayName The legal name of the user / company using this monetary account. * @param setting The settings of the MonetaryAccountExternal. */ - public static BunqResponse create(String currency, String service, String description, AmountObject dailyLimit, String avatarUuid, String status, String subStatus, String reason, String reasonDescription, String displayName, MonetaryAccountSettingObject setting, Map customHeaders) { + public static BunqResponse create(String currency, String service, String description, AmountObject dailyLimit, String avatarUuid, String status, String subStatus, String reason, String reasonDescription, String displayName, MonetaryAccountSettingObject setting, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -467,57 +475,57 @@ public static BunqResponse create(String currency, String service, Stri return processForId(responseRaw); } - public static BunqResponse create() { + public static BunqResponse create() { return create(null, null, null, null, null, null, null, null, null, null, null, null); } - public static BunqResponse create(String currency) { + public static BunqResponse create(String currency) { return create(currency, null, null, null, null, null, null, null, null, null, null, null); } - public static BunqResponse create(String currency, String service) { + public static BunqResponse create(String currency, String service) { return create(currency, service, null, null, null, null, null, null, null, null, null, null); } - public static BunqResponse create(String currency, String service, String description) { + public static BunqResponse create(String currency, String service, String description) { return create(currency, service, description, null, null, null, null, null, null, null, null, null); } - public static BunqResponse create(String currency, String service, String description, AmountObject dailyLimit) { + public static BunqResponse create(String currency, String service, String description, AmountObject dailyLimit) { return create(currency, service, description, dailyLimit, null, null, null, null, null, null, null, null); } - public static BunqResponse create(String currency, String service, String description, AmountObject dailyLimit, String avatarUuid) { + public static BunqResponse create(String currency, String service, String description, AmountObject dailyLimit, String avatarUuid) { return create(currency, service, description, dailyLimit, avatarUuid, null, null, null, null, null, null, null); } - public static BunqResponse create(String currency, String service, String description, AmountObject dailyLimit, String avatarUuid, String status) { + public static BunqResponse create(String currency, String service, String description, AmountObject dailyLimit, String avatarUuid, String status) { return create(currency, service, description, dailyLimit, avatarUuid, status, null, null, null, null, null, null); } - public static BunqResponse create(String currency, String service, String description, AmountObject dailyLimit, String avatarUuid, String status, String subStatus) { + public static BunqResponse create(String currency, String service, String description, AmountObject dailyLimit, String avatarUuid, String status, String subStatus) { return create(currency, service, description, dailyLimit, avatarUuid, status, subStatus, null, null, null, null, null); } - public static BunqResponse create(String currency, String service, String description, AmountObject dailyLimit, String avatarUuid, String status, String subStatus, String reason) { + public static BunqResponse create(String currency, String service, String description, AmountObject dailyLimit, String avatarUuid, String status, String subStatus, String reason) { return create(currency, service, description, dailyLimit, avatarUuid, status, subStatus, reason, null, null, null, null); } - public static BunqResponse create(String currency, String service, String description, AmountObject dailyLimit, String avatarUuid, String status, String subStatus, String reason, String reasonDescription) { + public static BunqResponse create(String currency, String service, String description, AmountObject dailyLimit, String avatarUuid, String status, String subStatus, String reason, String reasonDescription) { return create(currency, service, description, dailyLimit, avatarUuid, status, subStatus, reason, reasonDescription, null, null, null); } - public static BunqResponse create(String currency, String service, String description, AmountObject dailyLimit, String avatarUuid, String status, String subStatus, String reason, String reasonDescription, String displayName) { + public static BunqResponse create(String currency, String service, String description, AmountObject dailyLimit, String avatarUuid, String status, String subStatus, String reason, String reasonDescription, String displayName) { return create(currency, service, description, dailyLimit, avatarUuid, status, subStatus, reason, reasonDescription, displayName, null, null); } - public static BunqResponse create(String currency, String service, String description, AmountObject dailyLimit, String avatarUuid, String status, String subStatus, String reason, String reasonDescription, String displayName, MonetaryAccountSettingObject setting) { + public static BunqResponse create(String currency, String service, String description, AmountObject dailyLimit, String avatarUuid, String status, String subStatus, String reason, String reasonDescription, String displayName, MonetaryAccountSettingObject setting) { return create(currency, service, description, dailyLimit, avatarUuid, status, subStatus, reason, reasonDescription, displayName, setting, null); } /** */ - public static BunqResponse get(Integer monetaryAccountExternalId, Map params, Map customHeaders) { + public static BunqResponse get(Long monetaryAccountExternalId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_READ, determineUserId(), monetaryAccountExternalId), params, customHeaders); @@ -528,11 +536,11 @@ public static BunqResponse get() { return get(null, null, null); } - public static BunqResponse get(Integer monetaryAccountExternalId) { + public static BunqResponse get(Long monetaryAccountExternalId) { return get(monetaryAccountExternalId, null, null); } - public static BunqResponse get(Integer monetaryAccountExternalId, Map params) { + public static BunqResponse get(Long monetaryAccountExternalId, Map params) { return get(monetaryAccountExternalId, params, null); } @@ -559,7 +567,7 @@ public static BunqResponse get(Integer monetar * @param displayName The legal name of the user / company using this monetary account. * @param setting The settings of the MonetaryAccountExternal. */ - public static BunqResponse update(Integer monetaryAccountExternalId, String description, AmountObject dailyLimit, String avatarUuid, String status, String subStatus, String reason, String reasonDescription, String displayName, MonetaryAccountSettingObject setting, Map customHeaders) { + public static BunqResponse update(Long monetaryAccountExternalId, String description, AmountObject dailyLimit, String avatarUuid, String status, String subStatus, String reason, String reasonDescription, String displayName, MonetaryAccountSettingObject setting, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -583,43 +591,43 @@ public static BunqResponse update(Integer monetaryAccountExternalId, St return processForId(responseRaw); } - public static BunqResponse update(Integer monetaryAccountExternalId) { + public static BunqResponse update(Long monetaryAccountExternalId) { return update(monetaryAccountExternalId, null, null, null, null, null, null, null, null, null, null); } - public static BunqResponse update(Integer monetaryAccountExternalId, String description) { + public static BunqResponse update(Long monetaryAccountExternalId, String description) { return update(monetaryAccountExternalId, description, null, null, null, null, null, null, null, null, null); } - public static BunqResponse update(Integer monetaryAccountExternalId, String description, AmountObject dailyLimit) { + public static BunqResponse update(Long monetaryAccountExternalId, String description, AmountObject dailyLimit) { return update(monetaryAccountExternalId, description, dailyLimit, null, null, null, null, null, null, null, null); } - public static BunqResponse update(Integer monetaryAccountExternalId, String description, AmountObject dailyLimit, String avatarUuid) { + public static BunqResponse update(Long monetaryAccountExternalId, String description, AmountObject dailyLimit, String avatarUuid) { return update(monetaryAccountExternalId, description, dailyLimit, avatarUuid, null, null, null, null, null, null, null); } - public static BunqResponse update(Integer monetaryAccountExternalId, String description, AmountObject dailyLimit, String avatarUuid, String status) { + public static BunqResponse update(Long monetaryAccountExternalId, String description, AmountObject dailyLimit, String avatarUuid, String status) { return update(monetaryAccountExternalId, description, dailyLimit, avatarUuid, status, null, null, null, null, null, null); } - public static BunqResponse update(Integer monetaryAccountExternalId, String description, AmountObject dailyLimit, String avatarUuid, String status, String subStatus) { + public static BunqResponse update(Long monetaryAccountExternalId, String description, AmountObject dailyLimit, String avatarUuid, String status, String subStatus) { return update(monetaryAccountExternalId, description, dailyLimit, avatarUuid, status, subStatus, null, null, null, null, null); } - public static BunqResponse update(Integer monetaryAccountExternalId, String description, AmountObject dailyLimit, String avatarUuid, String status, String subStatus, String reason) { + public static BunqResponse update(Long monetaryAccountExternalId, String description, AmountObject dailyLimit, String avatarUuid, String status, String subStatus, String reason) { return update(monetaryAccountExternalId, description, dailyLimit, avatarUuid, status, subStatus, reason, null, null, null, null); } - public static BunqResponse update(Integer monetaryAccountExternalId, String description, AmountObject dailyLimit, String avatarUuid, String status, String subStatus, String reason, String reasonDescription) { + public static BunqResponse update(Long monetaryAccountExternalId, String description, AmountObject dailyLimit, String avatarUuid, String status, String subStatus, String reason, String reasonDescription) { return update(monetaryAccountExternalId, description, dailyLimit, avatarUuid, status, subStatus, reason, reasonDescription, null, null, null); } - public static BunqResponse update(Integer monetaryAccountExternalId, String description, AmountObject dailyLimit, String avatarUuid, String status, String subStatus, String reason, String reasonDescription, String displayName) { + public static BunqResponse update(Long monetaryAccountExternalId, String description, AmountObject dailyLimit, String avatarUuid, String status, String subStatus, String reason, String reasonDescription, String displayName) { return update(monetaryAccountExternalId, description, dailyLimit, avatarUuid, status, subStatus, reason, reasonDescription, displayName, null, null); } - public static BunqResponse update(Integer monetaryAccountExternalId, String description, AmountObject dailyLimit, String avatarUuid, String status, String subStatus, String reason, String reasonDescription, String displayName, MonetaryAccountSettingObject setting) { + public static BunqResponse update(Long monetaryAccountExternalId, String description, AmountObject dailyLimit, String avatarUuid, String status, String subStatus, String reason, String reasonDescription, String displayName, MonetaryAccountSettingObject setting) { return update(monetaryAccountExternalId, description, dailyLimit, avatarUuid, status, subStatus, reason, reasonDescription, displayName, setting, null); } @@ -643,11 +651,11 @@ public static BunqResponse> list(Map getMonetaryAccountProfile() { return this.monetaryAccountProfile; } - public void setMonetaryAccountProfile(MonetaryAccountProfileApiObject monetaryAccountProfile) { + public void setMonetaryAccountProfile(List monetaryAccountProfile) { this.monetaryAccountProfile = monetaryAccountProfile; } @@ -921,6 +929,18 @@ public void setOpenBankingAccount(OpenBankingAccountApiObject openBankingAccount this.openBankingAccount = openBankingAccount; } + /** + * The current available balance amount of the MonetaryAccount, converted to the user's default + * currency. + */ + public AmountObject getBalanceConverted() { + return this.balanceConverted; + } + + public void setBalanceConverted(AmountObject balanceConverted) { + this.balanceConverted = balanceConverted; + } + /** * The budgets of the MonetaryAccount. */ @@ -1079,6 +1099,10 @@ public boolean isAllFieldNull() { return false; } + if (this.balanceConverted != null) { + return false; + } + if (this.budget != null) { return false; } diff --git a/src/main/java/com/bunq/sdk/model/generated/endpoint/MonetaryAccountExternalSavingsApiObject.java b/src/main/java/com/bunq/sdk/model/generated/endpoint/MonetaryAccountExternalSavingsApiObject.java index 0e0c1ab4..405c83f5 100644 --- a/src/main/java/com/bunq/sdk/model/generated/endpoint/MonetaryAccountExternalSavingsApiObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/endpoint/MonetaryAccountExternalSavingsApiObject.java @@ -61,7 +61,7 @@ public class MonetaryAccountExternalSavingsApiObject extends BunqModel { */ @Expose @SerializedName("id") - private Integer id; + private Long id; /** * The timestamp of the MonetaryAccountExternalSavings's creation. @@ -179,14 +179,14 @@ public class MonetaryAccountExternalSavingsApiObject extends BunqModel { */ @Expose @SerializedName("user_id") - private Integer userId; + private Long userId; /** * The profiles of the account. */ @Expose @SerializedName("monetary_account_profile") - private MonetaryAccountProfileApiObject monetaryAccountProfile; + private List monetaryAccountProfile; /** * The legal name of the user / company using this monetary account. @@ -237,6 +237,14 @@ public class MonetaryAccountExternalSavingsApiObject extends BunqModel { @SerializedName("number_of_payment_remaining") private String numberOfPaymentRemaining; + /** + * The current available balance amount of the MonetaryAccount, converted to the user's default + * currency. + */ + @Expose + @SerializedName("balance_converted") + private AmountObject balanceConverted; + /** * The budgets of the MonetaryAccount. */ @@ -464,7 +472,7 @@ public MonetaryAccountExternalSavingsApiObject(String currency, String service, * @param setting The settings of the MonetaryAccountExternalSavings. * @param savingsGoal The Savings Goal set for this MonetaryAccountSavings. */ - public static BunqResponse create(String currency, String service, String description, AmountObject dailyLimit, String avatarUuid, String status, String subStatus, String reason, String reasonDescription, String displayName, MonetaryAccountSettingObject setting, AmountObject savingsGoal, Map customHeaders) { + public static BunqResponse create(String currency, String service, String description, AmountObject dailyLimit, String avatarUuid, String status, String subStatus, String reason, String reasonDescription, String displayName, MonetaryAccountSettingObject setting, AmountObject savingsGoal, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -491,61 +499,61 @@ public static BunqResponse create(String currency, String service, Stri return processForId(responseRaw); } - public static BunqResponse create() { + public static BunqResponse create() { return create(null, null, null, null, null, null, null, null, null, null, null, null, null); } - public static BunqResponse create(String currency) { + public static BunqResponse create(String currency) { return create(currency, null, null, null, null, null, null, null, null, null, null, null, null); } - public static BunqResponse create(String currency, String service) { + public static BunqResponse create(String currency, String service) { return create(currency, service, null, null, null, null, null, null, null, null, null, null, null); } - public static BunqResponse create(String currency, String service, String description) { + public static BunqResponse create(String currency, String service, String description) { return create(currency, service, description, null, null, null, null, null, null, null, null, null, null); } - public static BunqResponse create(String currency, String service, String description, AmountObject dailyLimit) { + public static BunqResponse create(String currency, String service, String description, AmountObject dailyLimit) { return create(currency, service, description, dailyLimit, null, null, null, null, null, null, null, null, null); } - public static BunqResponse create(String currency, String service, String description, AmountObject dailyLimit, String avatarUuid) { + public static BunqResponse create(String currency, String service, String description, AmountObject dailyLimit, String avatarUuid) { return create(currency, service, description, dailyLimit, avatarUuid, null, null, null, null, null, null, null, null); } - public static BunqResponse create(String currency, String service, String description, AmountObject dailyLimit, String avatarUuid, String status) { + public static BunqResponse create(String currency, String service, String description, AmountObject dailyLimit, String avatarUuid, String status) { return create(currency, service, description, dailyLimit, avatarUuid, status, null, null, null, null, null, null, null); } - public static BunqResponse create(String currency, String service, String description, AmountObject dailyLimit, String avatarUuid, String status, String subStatus) { + public static BunqResponse create(String currency, String service, String description, AmountObject dailyLimit, String avatarUuid, String status, String subStatus) { return create(currency, service, description, dailyLimit, avatarUuid, status, subStatus, null, null, null, null, null, null); } - public static BunqResponse create(String currency, String service, String description, AmountObject dailyLimit, String avatarUuid, String status, String subStatus, String reason) { + public static BunqResponse create(String currency, String service, String description, AmountObject dailyLimit, String avatarUuid, String status, String subStatus, String reason) { return create(currency, service, description, dailyLimit, avatarUuid, status, subStatus, reason, null, null, null, null, null); } - public static BunqResponse create(String currency, String service, String description, AmountObject dailyLimit, String avatarUuid, String status, String subStatus, String reason, String reasonDescription) { + public static BunqResponse create(String currency, String service, String description, AmountObject dailyLimit, String avatarUuid, String status, String subStatus, String reason, String reasonDescription) { return create(currency, service, description, dailyLimit, avatarUuid, status, subStatus, reason, reasonDescription, null, null, null, null); } - public static BunqResponse create(String currency, String service, String description, AmountObject dailyLimit, String avatarUuid, String status, String subStatus, String reason, String reasonDescription, String displayName) { + public static BunqResponse create(String currency, String service, String description, AmountObject dailyLimit, String avatarUuid, String status, String subStatus, String reason, String reasonDescription, String displayName) { return create(currency, service, description, dailyLimit, avatarUuid, status, subStatus, reason, reasonDescription, displayName, null, null, null); } - public static BunqResponse create(String currency, String service, String description, AmountObject dailyLimit, String avatarUuid, String status, String subStatus, String reason, String reasonDescription, String displayName, MonetaryAccountSettingObject setting) { + public static BunqResponse create(String currency, String service, String description, AmountObject dailyLimit, String avatarUuid, String status, String subStatus, String reason, String reasonDescription, String displayName, MonetaryAccountSettingObject setting) { return create(currency, service, description, dailyLimit, avatarUuid, status, subStatus, reason, reasonDescription, displayName, setting, null, null); } - public static BunqResponse create(String currency, String service, String description, AmountObject dailyLimit, String avatarUuid, String status, String subStatus, String reason, String reasonDescription, String displayName, MonetaryAccountSettingObject setting, AmountObject savingsGoal) { + public static BunqResponse create(String currency, String service, String description, AmountObject dailyLimit, String avatarUuid, String status, String subStatus, String reason, String reasonDescription, String displayName, MonetaryAccountSettingObject setting, AmountObject savingsGoal) { return create(currency, service, description, dailyLimit, avatarUuid, status, subStatus, reason, reasonDescription, displayName, setting, savingsGoal, null); } /** */ - public static BunqResponse get(Integer monetaryAccountExternalSavingsId, Map params, Map customHeaders) { + public static BunqResponse get(Long monetaryAccountExternalSavingsId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_READ, determineUserId(), monetaryAccountExternalSavingsId), params, customHeaders); @@ -556,11 +564,11 @@ public static BunqResponse get() { return get(null, null, null); } - public static BunqResponse get(Integer monetaryAccountExternalSavingsId) { + public static BunqResponse get(Long monetaryAccountExternalSavingsId) { return get(monetaryAccountExternalSavingsId, null, null); } - public static BunqResponse get(Integer monetaryAccountExternalSavingsId, Map params) { + public static BunqResponse get(Long monetaryAccountExternalSavingsId, Map params) { return get(monetaryAccountExternalSavingsId, params, null); } @@ -590,7 +598,7 @@ public static BunqResponse get(Integer * @param setting The settings of the MonetaryAccountExternalSavings. * @param savingsGoal The Savings Goal set for this MonetaryAccountSavings. */ - public static BunqResponse update(Integer monetaryAccountExternalSavingsId, String description, AmountObject dailyLimit, String avatarUuid, String status, String subStatus, String reason, String reasonDescription, String displayName, MonetaryAccountSettingObject setting, AmountObject savingsGoal, Map customHeaders) { + public static BunqResponse update(Long monetaryAccountExternalSavingsId, String description, AmountObject dailyLimit, String avatarUuid, String status, String subStatus, String reason, String reasonDescription, String displayName, MonetaryAccountSettingObject setting, AmountObject savingsGoal, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -615,47 +623,47 @@ public static BunqResponse update(Integer monetaryAccountExternalSaving return processForId(responseRaw); } - public static BunqResponse update(Integer monetaryAccountExternalSavingsId) { + public static BunqResponse update(Long monetaryAccountExternalSavingsId) { return update(monetaryAccountExternalSavingsId, null, null, null, null, null, null, null, null, null, null, null); } - public static BunqResponse update(Integer monetaryAccountExternalSavingsId, String description) { + public static BunqResponse update(Long monetaryAccountExternalSavingsId, String description) { return update(monetaryAccountExternalSavingsId, description, null, null, null, null, null, null, null, null, null, null); } - public static BunqResponse update(Integer monetaryAccountExternalSavingsId, String description, AmountObject dailyLimit) { + public static BunqResponse update(Long monetaryAccountExternalSavingsId, String description, AmountObject dailyLimit) { return update(monetaryAccountExternalSavingsId, description, dailyLimit, null, null, null, null, null, null, null, null, null); } - public static BunqResponse update(Integer monetaryAccountExternalSavingsId, String description, AmountObject dailyLimit, String avatarUuid) { + public static BunqResponse update(Long monetaryAccountExternalSavingsId, String description, AmountObject dailyLimit, String avatarUuid) { return update(monetaryAccountExternalSavingsId, description, dailyLimit, avatarUuid, null, null, null, null, null, null, null, null); } - public static BunqResponse update(Integer monetaryAccountExternalSavingsId, String description, AmountObject dailyLimit, String avatarUuid, String status) { + public static BunqResponse update(Long monetaryAccountExternalSavingsId, String description, AmountObject dailyLimit, String avatarUuid, String status) { return update(monetaryAccountExternalSavingsId, description, dailyLimit, avatarUuid, status, null, null, null, null, null, null, null); } - public static BunqResponse update(Integer monetaryAccountExternalSavingsId, String description, AmountObject dailyLimit, String avatarUuid, String status, String subStatus) { + public static BunqResponse update(Long monetaryAccountExternalSavingsId, String description, AmountObject dailyLimit, String avatarUuid, String status, String subStatus) { return update(monetaryAccountExternalSavingsId, description, dailyLimit, avatarUuid, status, subStatus, null, null, null, null, null, null); } - public static BunqResponse update(Integer monetaryAccountExternalSavingsId, String description, AmountObject dailyLimit, String avatarUuid, String status, String subStatus, String reason) { + public static BunqResponse update(Long monetaryAccountExternalSavingsId, String description, AmountObject dailyLimit, String avatarUuid, String status, String subStatus, String reason) { return update(monetaryAccountExternalSavingsId, description, dailyLimit, avatarUuid, status, subStatus, reason, null, null, null, null, null); } - public static BunqResponse update(Integer monetaryAccountExternalSavingsId, String description, AmountObject dailyLimit, String avatarUuid, String status, String subStatus, String reason, String reasonDescription) { + public static BunqResponse update(Long monetaryAccountExternalSavingsId, String description, AmountObject dailyLimit, String avatarUuid, String status, String subStatus, String reason, String reasonDescription) { return update(monetaryAccountExternalSavingsId, description, dailyLimit, avatarUuid, status, subStatus, reason, reasonDescription, null, null, null, null); } - public static BunqResponse update(Integer monetaryAccountExternalSavingsId, String description, AmountObject dailyLimit, String avatarUuid, String status, String subStatus, String reason, String reasonDescription, String displayName) { + public static BunqResponse update(Long monetaryAccountExternalSavingsId, String description, AmountObject dailyLimit, String avatarUuid, String status, String subStatus, String reason, String reasonDescription, String displayName) { return update(monetaryAccountExternalSavingsId, description, dailyLimit, avatarUuid, status, subStatus, reason, reasonDescription, displayName, null, null, null); } - public static BunqResponse update(Integer monetaryAccountExternalSavingsId, String description, AmountObject dailyLimit, String avatarUuid, String status, String subStatus, String reason, String reasonDescription, String displayName, MonetaryAccountSettingObject setting) { + public static BunqResponse update(Long monetaryAccountExternalSavingsId, String description, AmountObject dailyLimit, String avatarUuid, String status, String subStatus, String reason, String reasonDescription, String displayName, MonetaryAccountSettingObject setting) { return update(monetaryAccountExternalSavingsId, description, dailyLimit, avatarUuid, status, subStatus, reason, reasonDescription, displayName, setting, null, null); } - public static BunqResponse update(Integer monetaryAccountExternalSavingsId, String description, AmountObject dailyLimit, String avatarUuid, String status, String subStatus, String reason, String reasonDescription, String displayName, MonetaryAccountSettingObject setting, AmountObject savingsGoal) { + public static BunqResponse update(Long monetaryAccountExternalSavingsId, String description, AmountObject dailyLimit, String avatarUuid, String status, String subStatus, String reason, String reasonDescription, String displayName, MonetaryAccountSettingObject setting, AmountObject savingsGoal) { return update(monetaryAccountExternalSavingsId, description, dailyLimit, avatarUuid, status, subStatus, reason, reasonDescription, displayName, setting, savingsGoal, null); } @@ -679,11 +687,11 @@ public static BunqResponse> list(M /** * The id of the MonetaryAccountExternalSavings. */ - public Integer getId() { + public Long getId() { return this.id; } - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } @@ -861,22 +869,22 @@ public void setRelationUser(RelationUserApiObject relationUser) { /** * The id of the User who owns the MonetaryAccountExternalSavings. */ - public Integer getUserId() { + public Long getUserId() { return this.userId; } - public void setUserId(Integer userId) { + public void setUserId(Long userId) { this.userId = userId; } /** * The profiles of the account. */ - public MonetaryAccountProfileApiObject getMonetaryAccountProfile() { + public List getMonetaryAccountProfile() { return this.monetaryAccountProfile; } - public void setMonetaryAccountProfile(MonetaryAccountProfileApiObject monetaryAccountProfile) { + public void setMonetaryAccountProfile(List monetaryAccountProfile) { this.monetaryAccountProfile = monetaryAccountProfile; } @@ -957,6 +965,18 @@ public void setNumberOfPaymentRemaining(String numberOfPaymentRemaining) { this.numberOfPaymentRemaining = numberOfPaymentRemaining; } + /** + * The current available balance amount of the MonetaryAccount, converted to the user's default + * currency. + */ + public AmountObject getBalanceConverted() { + return this.balanceConverted; + } + + public void setBalanceConverted(AmountObject balanceConverted) { + this.balanceConverted = balanceConverted; + } + /** * The budgets of the MonetaryAccount. */ @@ -1126,6 +1146,10 @@ public boolean isAllFieldNull() { return false; } + if (this.balanceConverted != null) { + return false; + } + if (this.budget != null) { return false; } diff --git a/src/main/java/com/bunq/sdk/model/generated/endpoint/MonetaryAccountInvestmentApiObject.java b/src/main/java/com/bunq/sdk/model/generated/endpoint/MonetaryAccountInvestmentApiObject.java index 99a5e10b..128bd97a 100644 --- a/src/main/java/com/bunq/sdk/model/generated/endpoint/MonetaryAccountInvestmentApiObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/endpoint/MonetaryAccountInvestmentApiObject.java @@ -45,7 +45,7 @@ public class MonetaryAccountInvestmentApiObject extends BunqModel { */ @Expose @SerializedName("id") - private Integer id; + private Long id; /** * The timestamp of the MonetaryAccountInvestment's creation. @@ -163,14 +163,14 @@ public class MonetaryAccountInvestmentApiObject extends BunqModel { */ @Expose @SerializedName("user_id") - private Integer userId; + private Long userId; /** * The profiles of the account. */ @Expose @SerializedName("monetary_account_profile") - private MonetaryAccountProfileApiObject monetaryAccountProfile; + private List monetaryAccountProfile; /** * The legal name of the user / company using this monetary account. @@ -207,6 +207,14 @@ public class MonetaryAccountInvestmentApiObject extends BunqModel { @SerializedName("birdee_investment_portfolio") private BirdeeInvestmentPortfolioApiObject birdeeInvestmentPortfolio; + /** + * The current available balance amount of the MonetaryAccount, converted to the user's default + * currency. + */ + @Expose + @SerializedName("balance_converted") + private AmountObject balanceConverted; + /** * The budgets of the MonetaryAccount. */ @@ -342,7 +350,7 @@ public class MonetaryAccountInvestmentApiObject extends BunqModel { */ @Expose @SerializedName("monetary_account_deposit_initial_id_field_for_request") - private Integer monetaryAccountDepositInitialIdFieldForRequest; + private Long monetaryAccountDepositInitialIdFieldForRequest; /** * The amount to be transferred to the investment account as the initial deposit. @@ -403,11 +411,11 @@ public MonetaryAccountInvestmentApiObject(String currency, String provider, Stri this(currency, provider, description, dailyLimit, avatarUuid, status, subStatus, reason, reasonDescription, displayName, setting, birdeeInvestmentPortfolio, null, null); } - public MonetaryAccountInvestmentApiObject(String currency, String provider, String description, AmountObject dailyLimit, String avatarUuid, String status, String subStatus, String reason, String reasonDescription, String displayName, MonetaryAccountSettingObject setting, BirdeeInvestmentPortfolioApiObject birdeeInvestmentPortfolio, Integer monetaryAccountDepositInitialId) { + public MonetaryAccountInvestmentApiObject(String currency, String provider, String description, AmountObject dailyLimit, String avatarUuid, String status, String subStatus, String reason, String reasonDescription, String displayName, MonetaryAccountSettingObject setting, BirdeeInvestmentPortfolioApiObject birdeeInvestmentPortfolio, Long monetaryAccountDepositInitialId) { this(currency, provider, description, dailyLimit, avatarUuid, status, subStatus, reason, reasonDescription, displayName, setting, birdeeInvestmentPortfolio, monetaryAccountDepositInitialId, null); } - public MonetaryAccountInvestmentApiObject(String currency, String provider, String description, AmountObject dailyLimit, String avatarUuid, String status, String subStatus, String reason, String reasonDescription, String displayName, MonetaryAccountSettingObject setting, BirdeeInvestmentPortfolioApiObject birdeeInvestmentPortfolio, Integer monetaryAccountDepositInitialId, AmountObject amountDepositInitial) { + public MonetaryAccountInvestmentApiObject(String currency, String provider, String description, AmountObject dailyLimit, String avatarUuid, String status, String subStatus, String reason, String reasonDescription, String displayName, MonetaryAccountSettingObject setting, BirdeeInvestmentPortfolioApiObject birdeeInvestmentPortfolio, Long monetaryAccountDepositInitialId, AmountObject amountDepositInitial) { this.currencyFieldForRequest = currency; this.providerFieldForRequest = provider; this.descriptionFieldForRequest = description; @@ -427,11 +435,11 @@ public MonetaryAccountInvestmentApiObject(String currency, String provider, Stri /** * The id of the MonetaryAccountInvestment. */ - public Integer getId() { + public Long getId() { return this.id; } - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } @@ -609,22 +617,22 @@ public void setRelationUser(RelationUserApiObject relationUser) { /** * The id of the User who owns the MonetaryAccountInvestment. */ - public Integer getUserId() { + public Long getUserId() { return this.userId; } - public void setUserId(Integer userId) { + public void setUserId(Long userId) { this.userId = userId; } /** * The profiles of the account. */ - public MonetaryAccountProfileApiObject getMonetaryAccountProfile() { + public List getMonetaryAccountProfile() { return this.monetaryAccountProfile; } - public void setMonetaryAccountProfile(MonetaryAccountProfileApiObject monetaryAccountProfile) { + public void setMonetaryAccountProfile(List monetaryAccountProfile) { this.monetaryAccountProfile = monetaryAccountProfile; } @@ -683,6 +691,18 @@ public void setBirdeeInvestmentPortfolio(BirdeeInvestmentPortfolioApiObject bird this.birdeeInvestmentPortfolio = birdeeInvestmentPortfolio; } + /** + * The current available balance amount of the MonetaryAccount, converted to the user's default + * currency. + */ + public AmountObject getBalanceConverted() { + return this.balanceConverted; + } + + public void setBalanceConverted(AmountObject balanceConverted) { + this.balanceConverted = balanceConverted; + } + /** * The budgets of the MonetaryAccount. */ @@ -833,6 +853,10 @@ public boolean isAllFieldNull() { return false; } + if (this.balanceConverted != null) { + return false; + } + if (this.budget != null) { return false; } diff --git a/src/main/java/com/bunq/sdk/model/generated/endpoint/MonetaryAccountJointApiObject.java b/src/main/java/com/bunq/sdk/model/generated/endpoint/MonetaryAccountJointApiObject.java index f7d49d18..208bf313 100644 --- a/src/main/java/com/bunq/sdk/model/generated/endpoint/MonetaryAccountJointApiObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/endpoint/MonetaryAccountJointApiObject.java @@ -61,7 +61,7 @@ public class MonetaryAccountJointApiObject extends BunqModel { */ @Expose @SerializedName("id") - private Integer id; + private Long id; /** * The timestamp of the MonetaryAccountJoint's creation. @@ -192,14 +192,14 @@ public class MonetaryAccountJointApiObject extends BunqModel { */ @Expose @SerializedName("user_id") - private Integer userId; + private Long userId; /** * The profiles of the account. */ @Expose @SerializedName("monetary_account_profile") - private MonetaryAccountProfileApiObject monetaryAccountProfile; + private List monetaryAccountProfile; /** * The settings of the MonetaryAccount. @@ -229,6 +229,14 @@ public class MonetaryAccountJointApiObject extends BunqModel { @SerializedName("co_owner_invite") private CoOwnerInviteResponseApiObject coOwnerInvite; + /** + * The current available balance amount of the MonetaryAccount, converted to the user's default + * currency. + */ + @Expose + @SerializedName("balance_converted") + private AmountObject balanceConverted; + /** * The budgets of the MonetaryAccount. */ @@ -442,7 +450,7 @@ public MonetaryAccountJointApiObject(String currency, List allCoO * updating the status to CANCELLED. * @param setting The settings of the MonetaryAccountJoint. */ - public static BunqResponse create(String currency, List allCoOwner, String description, AmountObject dailyLimit, AmountObject overdraftLimit, List alias, String avatarUuid, String status, String subStatus, String reason, String reasonDescription, MonetaryAccountSettingObject setting, Map customHeaders) { + public static BunqResponse create(String currency, List allCoOwner, String description, AmountObject dailyLimit, AmountObject overdraftLimit, List alias, String avatarUuid, String status, String subStatus, String reason, String reasonDescription, MonetaryAccountSettingObject setting, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -469,61 +477,61 @@ public static BunqResponse create(String currency, List return processForId(responseRaw); } - public static BunqResponse create() { + public static BunqResponse create() { return create(null, null, null, null, null, null, null, null, null, null, null, null, null); } - public static BunqResponse create(String currency) { + public static BunqResponse create(String currency) { return create(currency, null, null, null, null, null, null, null, null, null, null, null, null); } - public static BunqResponse create(String currency, List allCoOwner) { + public static BunqResponse create(String currency, List allCoOwner) { return create(currency, allCoOwner, null, null, null, null, null, null, null, null, null, null, null); } - public static BunqResponse create(String currency, List allCoOwner, String description) { + public static BunqResponse create(String currency, List allCoOwner, String description) { return create(currency, allCoOwner, description, null, null, null, null, null, null, null, null, null, null); } - public static BunqResponse create(String currency, List allCoOwner, String description, AmountObject dailyLimit) { + public static BunqResponse create(String currency, List allCoOwner, String description, AmountObject dailyLimit) { return create(currency, allCoOwner, description, dailyLimit, null, null, null, null, null, null, null, null, null); } - public static BunqResponse create(String currency, List allCoOwner, String description, AmountObject dailyLimit, AmountObject overdraftLimit) { + public static BunqResponse create(String currency, List allCoOwner, String description, AmountObject dailyLimit, AmountObject overdraftLimit) { return create(currency, allCoOwner, description, dailyLimit, overdraftLimit, null, null, null, null, null, null, null, null); } - public static BunqResponse create(String currency, List allCoOwner, String description, AmountObject dailyLimit, AmountObject overdraftLimit, List alias) { + public static BunqResponse create(String currency, List allCoOwner, String description, AmountObject dailyLimit, AmountObject overdraftLimit, List alias) { return create(currency, allCoOwner, description, dailyLimit, overdraftLimit, alias, null, null, null, null, null, null, null); } - public static BunqResponse create(String currency, List allCoOwner, String description, AmountObject dailyLimit, AmountObject overdraftLimit, List alias, String avatarUuid) { + public static BunqResponse create(String currency, List allCoOwner, String description, AmountObject dailyLimit, AmountObject overdraftLimit, List alias, String avatarUuid) { return create(currency, allCoOwner, description, dailyLimit, overdraftLimit, alias, avatarUuid, null, null, null, null, null, null); } - public static BunqResponse create(String currency, List allCoOwner, String description, AmountObject dailyLimit, AmountObject overdraftLimit, List alias, String avatarUuid, String status) { + public static BunqResponse create(String currency, List allCoOwner, String description, AmountObject dailyLimit, AmountObject overdraftLimit, List alias, String avatarUuid, String status) { return create(currency, allCoOwner, description, dailyLimit, overdraftLimit, alias, avatarUuid, status, null, null, null, null, null); } - public static BunqResponse create(String currency, List allCoOwner, String description, AmountObject dailyLimit, AmountObject overdraftLimit, List alias, String avatarUuid, String status, String subStatus) { + public static BunqResponse create(String currency, List allCoOwner, String description, AmountObject dailyLimit, AmountObject overdraftLimit, List alias, String avatarUuid, String status, String subStatus) { return create(currency, allCoOwner, description, dailyLimit, overdraftLimit, alias, avatarUuid, status, subStatus, null, null, null, null); } - public static BunqResponse create(String currency, List allCoOwner, String description, AmountObject dailyLimit, AmountObject overdraftLimit, List alias, String avatarUuid, String status, String subStatus, String reason) { + public static BunqResponse create(String currency, List allCoOwner, String description, AmountObject dailyLimit, AmountObject overdraftLimit, List alias, String avatarUuid, String status, String subStatus, String reason) { return create(currency, allCoOwner, description, dailyLimit, overdraftLimit, alias, avatarUuid, status, subStatus, reason, null, null, null); } - public static BunqResponse create(String currency, List allCoOwner, String description, AmountObject dailyLimit, AmountObject overdraftLimit, List alias, String avatarUuid, String status, String subStatus, String reason, String reasonDescription) { + public static BunqResponse create(String currency, List allCoOwner, String description, AmountObject dailyLimit, AmountObject overdraftLimit, List alias, String avatarUuid, String status, String subStatus, String reason, String reasonDescription) { return create(currency, allCoOwner, description, dailyLimit, overdraftLimit, alias, avatarUuid, status, subStatus, reason, reasonDescription, null, null); } - public static BunqResponse create(String currency, List allCoOwner, String description, AmountObject dailyLimit, AmountObject overdraftLimit, List alias, String avatarUuid, String status, String subStatus, String reason, String reasonDescription, MonetaryAccountSettingObject setting) { + public static BunqResponse create(String currency, List allCoOwner, String description, AmountObject dailyLimit, AmountObject overdraftLimit, List alias, String avatarUuid, String status, String subStatus, String reason, String reasonDescription, MonetaryAccountSettingObject setting) { return create(currency, allCoOwner, description, dailyLimit, overdraftLimit, alias, avatarUuid, status, subStatus, reason, reasonDescription, setting, null); } /** */ - public static BunqResponse get(Integer monetaryAccountJointId, Map params, Map customHeaders) { + public static BunqResponse get(Long monetaryAccountJointId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_READ, determineUserId(), monetaryAccountJointId), params, customHeaders); @@ -534,11 +542,11 @@ public static BunqResponse get() { return get(null, null, null); } - public static BunqResponse get(Integer monetaryAccountJointId) { + public static BunqResponse get(Long monetaryAccountJointId) { return get(monetaryAccountJointId, null, null); } - public static BunqResponse get(Integer monetaryAccountJointId, Map params) { + public static BunqResponse get(Long monetaryAccountJointId, Map params) { return get(monetaryAccountJointId, params, null); } @@ -563,7 +571,7 @@ public static BunqResponse get(Integer monetaryAc * updating the status to CANCELLED. * @param setting The settings of the MonetaryAccountJoint. */ - public static BunqResponse update(Integer monetaryAccountJointId, String description, AmountObject dailyLimit, String avatarUuid, String status, String subStatus, String reason, String reasonDescription, MonetaryAccountSettingObject setting, Map customHeaders) { + public static BunqResponse update(Long monetaryAccountJointId, String description, AmountObject dailyLimit, String avatarUuid, String status, String subStatus, String reason, String reasonDescription, MonetaryAccountSettingObject setting, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -586,39 +594,39 @@ public static BunqResponse update(Integer monetaryAccountJointId, Strin return processForId(responseRaw); } - public static BunqResponse update(Integer monetaryAccountJointId) { + public static BunqResponse update(Long monetaryAccountJointId) { return update(monetaryAccountJointId, null, null, null, null, null, null, null, null, null); } - public static BunqResponse update(Integer monetaryAccountJointId, String description) { + public static BunqResponse update(Long monetaryAccountJointId, String description) { return update(monetaryAccountJointId, description, null, null, null, null, null, null, null, null); } - public static BunqResponse update(Integer monetaryAccountJointId, String description, AmountObject dailyLimit) { + public static BunqResponse update(Long monetaryAccountJointId, String description, AmountObject dailyLimit) { return update(monetaryAccountJointId, description, dailyLimit, null, null, null, null, null, null, null); } - public static BunqResponse update(Integer monetaryAccountJointId, String description, AmountObject dailyLimit, String avatarUuid) { + public static BunqResponse update(Long monetaryAccountJointId, String description, AmountObject dailyLimit, String avatarUuid) { return update(monetaryAccountJointId, description, dailyLimit, avatarUuid, null, null, null, null, null, null); } - public static BunqResponse update(Integer monetaryAccountJointId, String description, AmountObject dailyLimit, String avatarUuid, String status) { + public static BunqResponse update(Long monetaryAccountJointId, String description, AmountObject dailyLimit, String avatarUuid, String status) { return update(monetaryAccountJointId, description, dailyLimit, avatarUuid, status, null, null, null, null, null); } - public static BunqResponse update(Integer monetaryAccountJointId, String description, AmountObject dailyLimit, String avatarUuid, String status, String subStatus) { + public static BunqResponse update(Long monetaryAccountJointId, String description, AmountObject dailyLimit, String avatarUuid, String status, String subStatus) { return update(monetaryAccountJointId, description, dailyLimit, avatarUuid, status, subStatus, null, null, null, null); } - public static BunqResponse update(Integer monetaryAccountJointId, String description, AmountObject dailyLimit, String avatarUuid, String status, String subStatus, String reason) { + public static BunqResponse update(Long monetaryAccountJointId, String description, AmountObject dailyLimit, String avatarUuid, String status, String subStatus, String reason) { return update(monetaryAccountJointId, description, dailyLimit, avatarUuid, status, subStatus, reason, null, null, null); } - public static BunqResponse update(Integer monetaryAccountJointId, String description, AmountObject dailyLimit, String avatarUuid, String status, String subStatus, String reason, String reasonDescription) { + public static BunqResponse update(Long monetaryAccountJointId, String description, AmountObject dailyLimit, String avatarUuid, String status, String subStatus, String reason, String reasonDescription) { return update(monetaryAccountJointId, description, dailyLimit, avatarUuid, status, subStatus, reason, reasonDescription, null, null); } - public static BunqResponse update(Integer monetaryAccountJointId, String description, AmountObject dailyLimit, String avatarUuid, String status, String subStatus, String reason, String reasonDescription, MonetaryAccountSettingObject setting) { + public static BunqResponse update(Long monetaryAccountJointId, String description, AmountObject dailyLimit, String avatarUuid, String status, String subStatus, String reason, String reasonDescription, MonetaryAccountSettingObject setting) { return update(monetaryAccountJointId, description, dailyLimit, avatarUuid, status, subStatus, reason, reasonDescription, setting, null); } @@ -642,11 +650,11 @@ public static BunqResponse> list(Map allCoOwner) { /** * The id of the User who owns the MonetaryAccountJoint. */ - public Integer getUserId() { + public Long getUserId() { return this.userId; } - public void setUserId(Integer userId) { + public void setUserId(Long userId) { this.userId = userId; } /** * The profiles of the account. */ - public MonetaryAccountProfileApiObject getMonetaryAccountProfile() { + public List getMonetaryAccountProfile() { return this.monetaryAccountProfile; } - public void setMonetaryAccountProfile(MonetaryAccountProfileApiObject monetaryAccountProfile) { + public void setMonetaryAccountProfile(List monetaryAccountProfile) { this.monetaryAccountProfile = monetaryAccountProfile; } @@ -908,6 +916,18 @@ public void setCoOwnerInvite(CoOwnerInviteResponseApiObject coOwnerInvite) { this.coOwnerInvite = coOwnerInvite; } + /** + * The current available balance amount of the MonetaryAccount, converted to the user's default + * currency. + */ + public AmountObject getBalanceConverted() { + return this.balanceConverted; + } + + public void setBalanceConverted(AmountObject balanceConverted) { + this.balanceConverted = balanceConverted; + } + /** * The budgets of the MonetaryAccount. */ @@ -1051,6 +1071,10 @@ public boolean isAllFieldNull() { return false; } + if (this.balanceConverted != null) { + return false; + } + if (this.budget != null) { return false; } diff --git a/src/main/java/com/bunq/sdk/model/generated/endpoint/MonetaryAccountLightApiObject.java b/src/main/java/com/bunq/sdk/model/generated/endpoint/MonetaryAccountLightApiObject.java index df7c05c2..a385f4ec 100644 --- a/src/main/java/com/bunq/sdk/model/generated/endpoint/MonetaryAccountLightApiObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/endpoint/MonetaryAccountLightApiObject.java @@ -43,7 +43,7 @@ public class MonetaryAccountLightApiObject extends BunqModel { */ @Expose @SerializedName("id") - private Integer id; + private Long id; /** * The timestamp of the MonetaryAccountLight's creation. @@ -145,7 +145,7 @@ public class MonetaryAccountLightApiObject extends BunqModel { */ @Expose @SerializedName("user_id") - private Integer userId; + private Long userId; /** * The ShareInviteBankResponse when the MonetaryAccount is accessed by the User via a @@ -225,12 +225,20 @@ public class MonetaryAccountLightApiObject extends BunqModel { @SerializedName("fulfillments") private List fulfillments; + /** + * The current available balance amount of the MonetaryAccount, converted to the user's default + * currency. + */ + @Expose + @SerializedName("balance_converted") + private AmountObject balanceConverted; + /** * The profiles of the account. */ @Expose @SerializedName("monetary_account_profile") - private MonetaryAccountProfileApiObject monetaryAccountProfile; + private List monetaryAccountProfile; /** * The budgets of the MonetaryAccount. @@ -405,11 +413,11 @@ public MonetaryAccountLightApiObject(String currency, String description, Amount /** * The id of the MonetaryAccountLight. */ - public Integer getId() { + public Long getId() { return this.id; } - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } @@ -563,11 +571,11 @@ public void setReasonDescription(String reasonDescription) { /** * The id of the User who owns the MonetaryAccountLight. */ - public Integer getUserId() { + public Long getUserId() { return this.userId; } - public void setUserId(Integer userId) { + public void setUserId(Long userId) { this.userId = userId; } @@ -693,14 +701,26 @@ public void setFulfillments(List fulfillments) { this.fulfillments = fulfillments; } + /** + * The current available balance amount of the MonetaryAccount, converted to the user's default + * currency. + */ + public AmountObject getBalanceConverted() { + return this.balanceConverted; + } + + public void setBalanceConverted(AmountObject balanceConverted) { + this.balanceConverted = balanceConverted; + } + /** * The profiles of the account. */ - public MonetaryAccountProfileApiObject getMonetaryAccountProfile() { + public List getMonetaryAccountProfile() { return this.monetaryAccountProfile; } - public void setMonetaryAccountProfile(MonetaryAccountProfileApiObject monetaryAccountProfile) { + public void setMonetaryAccountProfile(List monetaryAccountProfile) { this.monetaryAccountProfile = monetaryAccountProfile; } @@ -888,6 +908,10 @@ public boolean isAllFieldNull() { return false; } + if (this.balanceConverted != null) { + return false; + } + if (this.monetaryAccountProfile != null) { return false; } diff --git a/src/main/java/com/bunq/sdk/model/generated/endpoint/MonetaryAccountSavingsApiObject.java b/src/main/java/com/bunq/sdk/model/generated/endpoint/MonetaryAccountSavingsApiObject.java index 29bdc14b..12be818a 100644 --- a/src/main/java/com/bunq/sdk/model/generated/endpoint/MonetaryAccountSavingsApiObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/endpoint/MonetaryAccountSavingsApiObject.java @@ -60,7 +60,7 @@ public class MonetaryAccountSavingsApiObject extends BunqModel { */ @Expose @SerializedName("id") - private Integer id; + private Long id; /** * The timestamp of the MonetaryAccountSavings's creation. @@ -185,14 +185,14 @@ public class MonetaryAccountSavingsApiObject extends BunqModel { */ @Expose @SerializedName("user_id") - private Integer userId; + private Long userId; /** * The profiles of the account. */ @Expose @SerializedName("monetary_account_profile") - private MonetaryAccountProfileApiObject monetaryAccountProfile; + private List monetaryAccountProfile; /** * The settings of the MonetaryAccount. @@ -243,6 +243,14 @@ public class MonetaryAccountSavingsApiObject extends BunqModel { @SerializedName("co_owner_invite") private CoOwnerInviteResponseApiObject coOwnerInvite; + /** + * The current available balance amount of the MonetaryAccount, converted to the user's default + * currency. + */ + @Expose + @SerializedName("balance_converted") + private AmountObject balanceConverted; + /** * The budgets of the MonetaryAccount. */ @@ -441,7 +449,7 @@ public MonetaryAccountSavingsApiObject(String currency, String description, Amou * @param setting The settings of the MonetaryAccountSavings. * @param savingsGoal The Savings Goal set for this MonetaryAccountSavings. */ - public static BunqResponse create(String currency, String description, AmountObject dailyLimit, String avatarUuid, String status, String subStatus, String reason, String reasonDescription, List allCoOwner, MonetaryAccountSettingObject setting, AmountObject savingsGoal, Map customHeaders) { + public static BunqResponse create(String currency, String description, AmountObject dailyLimit, String avatarUuid, String status, String subStatus, String reason, String reasonDescription, List allCoOwner, MonetaryAccountSettingObject setting, AmountObject savingsGoal, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -467,58 +475,58 @@ public static BunqResponse create(String currency, String description, return processForId(responseRaw); } - public static BunqResponse create() { + public static BunqResponse create() { return create(null, null, null, null, null, null, null, null, null, null, null, null); } - public static BunqResponse create(String currency) { + public static BunqResponse create(String currency) { return create(currency, null, null, null, null, null, null, null, null, null, null, null); } - public static BunqResponse create(String currency, String description) { + public static BunqResponse create(String currency, String description) { return create(currency, description, null, null, null, null, null, null, null, null, null, null); } - public static BunqResponse create(String currency, String description, AmountObject dailyLimit) { + public static BunqResponse create(String currency, String description, AmountObject dailyLimit) { return create(currency, description, dailyLimit, null, null, null, null, null, null, null, null, null); } - public static BunqResponse create(String currency, String description, AmountObject dailyLimit, String avatarUuid) { + public static BunqResponse create(String currency, String description, AmountObject dailyLimit, String avatarUuid) { return create(currency, description, dailyLimit, avatarUuid, null, null, null, null, null, null, null, null); } - public static BunqResponse create(String currency, String description, AmountObject dailyLimit, String avatarUuid, String status) { + public static BunqResponse create(String currency, String description, AmountObject dailyLimit, String avatarUuid, String status) { return create(currency, description, dailyLimit, avatarUuid, status, null, null, null, null, null, null, null); } - public static BunqResponse create(String currency, String description, AmountObject dailyLimit, String avatarUuid, String status, String subStatus) { + public static BunqResponse create(String currency, String description, AmountObject dailyLimit, String avatarUuid, String status, String subStatus) { return create(currency, description, dailyLimit, avatarUuid, status, subStatus, null, null, null, null, null, null); } - public static BunqResponse create(String currency, String description, AmountObject dailyLimit, String avatarUuid, String status, String subStatus, String reason) { + public static BunqResponse create(String currency, String description, AmountObject dailyLimit, String avatarUuid, String status, String subStatus, String reason) { return create(currency, description, dailyLimit, avatarUuid, status, subStatus, reason, null, null, null, null, null); } - public static BunqResponse create(String currency, String description, AmountObject dailyLimit, String avatarUuid, String status, String subStatus, String reason, String reasonDescription) { + public static BunqResponse create(String currency, String description, AmountObject dailyLimit, String avatarUuid, String status, String subStatus, String reason, String reasonDescription) { return create(currency, description, dailyLimit, avatarUuid, status, subStatus, reason, reasonDescription, null, null, null, null); } - public static BunqResponse create(String currency, String description, AmountObject dailyLimit, String avatarUuid, String status, String subStatus, String reason, String reasonDescription, List allCoOwner) { + public static BunqResponse create(String currency, String description, AmountObject dailyLimit, String avatarUuid, String status, String subStatus, String reason, String reasonDescription, List allCoOwner) { return create(currency, description, dailyLimit, avatarUuid, status, subStatus, reason, reasonDescription, allCoOwner, null, null, null); } - public static BunqResponse create(String currency, String description, AmountObject dailyLimit, String avatarUuid, String status, String subStatus, String reason, String reasonDescription, List allCoOwner, MonetaryAccountSettingObject setting) { + public static BunqResponse create(String currency, String description, AmountObject dailyLimit, String avatarUuid, String status, String subStatus, String reason, String reasonDescription, List allCoOwner, MonetaryAccountSettingObject setting) { return create(currency, description, dailyLimit, avatarUuid, status, subStatus, reason, reasonDescription, allCoOwner, setting, null, null); } - public static BunqResponse create(String currency, String description, AmountObject dailyLimit, String avatarUuid, String status, String subStatus, String reason, String reasonDescription, List allCoOwner, MonetaryAccountSettingObject setting, AmountObject savingsGoal) { + public static BunqResponse create(String currency, String description, AmountObject dailyLimit, String avatarUuid, String status, String subStatus, String reason, String reasonDescription, List allCoOwner, MonetaryAccountSettingObject setting, AmountObject savingsGoal) { return create(currency, description, dailyLimit, avatarUuid, status, subStatus, reason, reasonDescription, allCoOwner, setting, savingsGoal, null); } /** * Get a specific MonetaryAccountSavings. */ - public static BunqResponse get(Integer monetaryAccountSavingsId, Map params, Map customHeaders) { + public static BunqResponse get(Long monetaryAccountSavingsId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_READ, determineUserId(), monetaryAccountSavingsId), params, customHeaders); @@ -529,11 +537,11 @@ public static BunqResponse get() { return get(null, null, null); } - public static BunqResponse get(Integer monetaryAccountSavingsId) { + public static BunqResponse get(Long monetaryAccountSavingsId) { return get(monetaryAccountSavingsId, null, null); } - public static BunqResponse get(Integer monetaryAccountSavingsId, Map params) { + public static BunqResponse get(Long monetaryAccountSavingsId, Map params) { return get(monetaryAccountSavingsId, params, null); } @@ -560,7 +568,7 @@ public static BunqResponse get(Integer monetary * @param setting The settings of the MonetaryAccountSavings. * @param savingsGoal The Savings Goal set for this MonetaryAccountSavings. */ - public static BunqResponse update(Integer monetaryAccountSavingsId, String description, AmountObject dailyLimit, String avatarUuid, String status, String subStatus, String reason, String reasonDescription, MonetaryAccountSettingObject setting, AmountObject savingsGoal, Map customHeaders) { + public static BunqResponse update(Long monetaryAccountSavingsId, String description, AmountObject dailyLimit, String avatarUuid, String status, String subStatus, String reason, String reasonDescription, MonetaryAccountSettingObject setting, AmountObject savingsGoal, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -584,43 +592,43 @@ public static BunqResponse update(Integer monetaryAccountSavingsId, Str return processForId(responseRaw); } - public static BunqResponse update(Integer monetaryAccountSavingsId) { + public static BunqResponse update(Long monetaryAccountSavingsId) { return update(monetaryAccountSavingsId, null, null, null, null, null, null, null, null, null, null); } - public static BunqResponse update(Integer monetaryAccountSavingsId, String description) { + public static BunqResponse update(Long monetaryAccountSavingsId, String description) { return update(monetaryAccountSavingsId, description, null, null, null, null, null, null, null, null, null); } - public static BunqResponse update(Integer monetaryAccountSavingsId, String description, AmountObject dailyLimit) { + public static BunqResponse update(Long monetaryAccountSavingsId, String description, AmountObject dailyLimit) { return update(monetaryAccountSavingsId, description, dailyLimit, null, null, null, null, null, null, null, null); } - public static BunqResponse update(Integer monetaryAccountSavingsId, String description, AmountObject dailyLimit, String avatarUuid) { + public static BunqResponse update(Long monetaryAccountSavingsId, String description, AmountObject dailyLimit, String avatarUuid) { return update(monetaryAccountSavingsId, description, dailyLimit, avatarUuid, null, null, null, null, null, null, null); } - public static BunqResponse update(Integer monetaryAccountSavingsId, String description, AmountObject dailyLimit, String avatarUuid, String status) { + public static BunqResponse update(Long monetaryAccountSavingsId, String description, AmountObject dailyLimit, String avatarUuid, String status) { return update(monetaryAccountSavingsId, description, dailyLimit, avatarUuid, status, null, null, null, null, null, null); } - public static BunqResponse update(Integer monetaryAccountSavingsId, String description, AmountObject dailyLimit, String avatarUuid, String status, String subStatus) { + public static BunqResponse update(Long monetaryAccountSavingsId, String description, AmountObject dailyLimit, String avatarUuid, String status, String subStatus) { return update(monetaryAccountSavingsId, description, dailyLimit, avatarUuid, status, subStatus, null, null, null, null, null); } - public static BunqResponse update(Integer monetaryAccountSavingsId, String description, AmountObject dailyLimit, String avatarUuid, String status, String subStatus, String reason) { + public static BunqResponse update(Long monetaryAccountSavingsId, String description, AmountObject dailyLimit, String avatarUuid, String status, String subStatus, String reason) { return update(monetaryAccountSavingsId, description, dailyLimit, avatarUuid, status, subStatus, reason, null, null, null, null); } - public static BunqResponse update(Integer monetaryAccountSavingsId, String description, AmountObject dailyLimit, String avatarUuid, String status, String subStatus, String reason, String reasonDescription) { + public static BunqResponse update(Long monetaryAccountSavingsId, String description, AmountObject dailyLimit, String avatarUuid, String status, String subStatus, String reason, String reasonDescription) { return update(monetaryAccountSavingsId, description, dailyLimit, avatarUuid, status, subStatus, reason, reasonDescription, null, null, null); } - public static BunqResponse update(Integer monetaryAccountSavingsId, String description, AmountObject dailyLimit, String avatarUuid, String status, String subStatus, String reason, String reasonDescription, MonetaryAccountSettingObject setting) { + public static BunqResponse update(Long monetaryAccountSavingsId, String description, AmountObject dailyLimit, String avatarUuid, String status, String subStatus, String reason, String reasonDescription, MonetaryAccountSettingObject setting) { return update(monetaryAccountSavingsId, description, dailyLimit, avatarUuid, status, subStatus, reason, reasonDescription, setting, null, null); } - public static BunqResponse update(Integer monetaryAccountSavingsId, String description, AmountObject dailyLimit, String avatarUuid, String status, String subStatus, String reason, String reasonDescription, MonetaryAccountSettingObject setting, AmountObject savingsGoal) { + public static BunqResponse update(Long monetaryAccountSavingsId, String description, AmountObject dailyLimit, String avatarUuid, String status, String subStatus, String reason, String reasonDescription, MonetaryAccountSettingObject setting, AmountObject savingsGoal) { return update(monetaryAccountSavingsId, description, dailyLimit, avatarUuid, status, subStatus, reason, reasonDescription, setting, savingsGoal, null); } @@ -645,11 +653,11 @@ public static BunqResponse> list(Map allCoOwner) { /** * The id of the User who owns the MonetaryAccountSavings. */ - public Integer getUserId() { + public Long getUserId() { return this.userId; } - public void setUserId(Integer userId) { + public void setUserId(Long userId) { this.userId = userId; } /** * The profiles of the account. */ - public MonetaryAccountProfileApiObject getMonetaryAccountProfile() { + public List getMonetaryAccountProfile() { return this.monetaryAccountProfile; } - public void setMonetaryAccountProfile(MonetaryAccountProfileApiObject monetaryAccountProfile) { + public void setMonetaryAccountProfile(List monetaryAccountProfile) { this.monetaryAccountProfile = monetaryAccountProfile; } @@ -934,6 +942,18 @@ public void setCoOwnerInvite(CoOwnerInviteResponseApiObject coOwnerInvite) { this.coOwnerInvite = coOwnerInvite; } + /** + * The current available balance amount of the MonetaryAccount, converted to the user's default + * currency. + */ + public AmountObject getBalanceConverted() { + return this.balanceConverted; + } + + public void setBalanceConverted(AmountObject balanceConverted) { + this.balanceConverted = balanceConverted; + } + /** * The budgets of the MonetaryAccount. */ @@ -1085,6 +1105,10 @@ public boolean isAllFieldNull() { return false; } + if (this.balanceConverted != null) { + return false; + } + if (this.budget != null) { return false; } diff --git a/src/main/java/com/bunq/sdk/model/generated/endpoint/MonetaryAccountSwitchServiceApiObject.java b/src/main/java/com/bunq/sdk/model/generated/endpoint/MonetaryAccountSwitchServiceApiObject.java index 7dd7a487..fbe0e298 100644 --- a/src/main/java/com/bunq/sdk/model/generated/endpoint/MonetaryAccountSwitchServiceApiObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/endpoint/MonetaryAccountSwitchServiceApiObject.java @@ -26,7 +26,7 @@ public class MonetaryAccountSwitchServiceApiObject extends BunqModel { */ @Expose @SerializedName("id") - private Integer id; + private Long id; /** * The timestamp of the monetary account's creation. @@ -70,12 +70,20 @@ public class MonetaryAccountSwitchServiceApiObject extends BunqModel { @SerializedName("balance") private AmountObject balance; + /** + * The current available balance amount of the MonetaryAccount, converted to the user's default + * currency. + */ + @Expose + @SerializedName("balance_converted") + private AmountObject balanceConverted; + /** * The profiles of the account. */ @Expose @SerializedName("monetary_account_profile") - private MonetaryAccountProfileApiObject monetaryAccountProfile; + private List monetaryAccountProfile; /** * The settings of the MonetaryAccount. @@ -173,11 +181,11 @@ public class MonetaryAccountSwitchServiceApiObject extends BunqModel { /** * The id of the monetary account. */ - public Integer getId() { + public Long getId() { return this.id; } - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } @@ -247,14 +255,26 @@ public void setBalance(AmountObject balance) { this.balance = balance; } + /** + * The current available balance amount of the MonetaryAccount, converted to the user's default + * currency. + */ + public AmountObject getBalanceConverted() { + return this.balanceConverted; + } + + public void setBalanceConverted(AmountObject balanceConverted) { + this.balanceConverted = balanceConverted; + } + /** * The profiles of the account. */ - public MonetaryAccountProfileApiObject getMonetaryAccountProfile() { + public List getMonetaryAccountProfile() { return this.monetaryAccountProfile; } - public void setMonetaryAccountProfile(MonetaryAccountProfileApiObject monetaryAccountProfile) { + public void setMonetaryAccountProfile(List monetaryAccountProfile) { this.monetaryAccountProfile = monetaryAccountProfile; } @@ -434,6 +454,10 @@ public boolean isAllFieldNull() { return false; } + if (this.balanceConverted != null) { + return false; + } + if (this.monetaryAccountProfile != null) { return false; } diff --git a/src/main/java/com/bunq/sdk/model/generated/endpoint/NoteAttachmentAdyenCardTransactionApiObject.java b/src/main/java/com/bunq/sdk/model/generated/endpoint/NoteAttachmentAdyenCardTransactionApiObject.java index ea82bd3d..f955942c 100644 --- a/src/main/java/com/bunq/sdk/model/generated/endpoint/NoteAttachmentAdyenCardTransactionApiObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/endpoint/NoteAttachmentAdyenCardTransactionApiObject.java @@ -48,7 +48,7 @@ public class NoteAttachmentAdyenCardTransactionApiObject extends BunqModel { */ @Expose @SerializedName("id") - private Integer id; + private Long id; /** * The timestamp of the note's creation. @@ -97,24 +97,24 @@ public class NoteAttachmentAdyenCardTransactionApiObject extends BunqModel { */ @Expose @SerializedName("attachment_id_field_for_request") - private Integer attachmentIdFieldForRequest; + private Long attachmentIdFieldForRequest; public NoteAttachmentAdyenCardTransactionApiObject() { this(null, null); } - public NoteAttachmentAdyenCardTransactionApiObject(Integer attachmentId) { + public NoteAttachmentAdyenCardTransactionApiObject(Long attachmentId) { this(attachmentId, null); } - public NoteAttachmentAdyenCardTransactionApiObject(Integer attachmentId, String description) { + public NoteAttachmentAdyenCardTransactionApiObject(Long attachmentId, String description) { this.descriptionFieldForRequest = description; this.attachmentIdFieldForRequest = attachmentId; } /** * @param attachmentId The reference to the uploaded file to attach to this note. * @param description Optional description of the attachment. */ - public static BunqResponse create(Integer adyenCardTransactionId, Integer attachmentId, Integer monetaryAccountId, String description, Map customHeaders) { + public static BunqResponse create(Long adyenCardTransactionId, Long attachmentId, Long monetaryAccountId, String description, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -131,30 +131,30 @@ public static BunqResponse create(Integer adyenCardTransactionId, Integ return processForId(responseRaw); } - public static BunqResponse create() { + public static BunqResponse create() { return create(null, null, null, null, null); } - public static BunqResponse create(Integer adyenCardTransactionId) { + public static BunqResponse create(Long adyenCardTransactionId) { return create(adyenCardTransactionId, null, null, null, null); } - public static BunqResponse create(Integer adyenCardTransactionId, Integer attachmentId) { + public static BunqResponse create(Long adyenCardTransactionId, Long attachmentId) { return create(adyenCardTransactionId, attachmentId, null, null, null); } - public static BunqResponse create(Integer adyenCardTransactionId, Integer attachmentId, Integer monetaryAccountId) { + public static BunqResponse create(Long adyenCardTransactionId, Long attachmentId, Long monetaryAccountId) { return create(adyenCardTransactionId, attachmentId, monetaryAccountId, null, null); } - public static BunqResponse create(Integer adyenCardTransactionId, Integer attachmentId, Integer monetaryAccountId, String description) { + public static BunqResponse create(Long adyenCardTransactionId, Long attachmentId, Long monetaryAccountId, String description) { return create(adyenCardTransactionId, attachmentId, monetaryAccountId, description, null); } /** * @param description Optional description of the attachment. */ - public static BunqResponse update(Integer adyenCardTransactionId, Integer noteAttachmentAdyenCardTransactionId, Integer monetaryAccountId, String description, Map customHeaders) { + public static BunqResponse update(Long adyenCardTransactionId, Long noteAttachmentAdyenCardTransactionId, Long monetaryAccountId, String description, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -170,46 +170,46 @@ public static BunqResponse update(Integer adyenCardTransactionId, Integ return processForId(responseRaw); } - public static BunqResponse update(Integer adyenCardTransactionId) { + public static BunqResponse update(Long adyenCardTransactionId) { return update(adyenCardTransactionId, null, null, null, null); } - public static BunqResponse update(Integer adyenCardTransactionId, Integer noteAttachmentAdyenCardTransactionId) { + public static BunqResponse update(Long adyenCardTransactionId, Long noteAttachmentAdyenCardTransactionId) { return update(adyenCardTransactionId, noteAttachmentAdyenCardTransactionId, null, null, null); } - public static BunqResponse update(Integer adyenCardTransactionId, Integer noteAttachmentAdyenCardTransactionId, Integer monetaryAccountId) { + public static BunqResponse update(Long adyenCardTransactionId, Long noteAttachmentAdyenCardTransactionId, Long monetaryAccountId) { return update(adyenCardTransactionId, noteAttachmentAdyenCardTransactionId, monetaryAccountId, null, null); } - public static BunqResponse update(Integer adyenCardTransactionId, Integer noteAttachmentAdyenCardTransactionId, Integer monetaryAccountId, String description) { + public static BunqResponse update(Long adyenCardTransactionId, Long noteAttachmentAdyenCardTransactionId, Long monetaryAccountId, String description) { return update(adyenCardTransactionId, noteAttachmentAdyenCardTransactionId, monetaryAccountId, description, null); } /** */ - public static BunqResponse delete(Integer adyenCardTransactionId, Integer noteAttachmentAdyenCardTransactionId, Integer monetaryAccountId, Map customHeaders) { + public static BunqResponse delete(Long adyenCardTransactionId, Long noteAttachmentAdyenCardTransactionId, Long monetaryAccountId, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.delete(String.format(ENDPOINT_URL_DELETE, determineUserId(), determineMonetaryAccountId(monetaryAccountId), adyenCardTransactionId, noteAttachmentAdyenCardTransactionId), customHeaders); return new BunqResponse<>(null, responseRaw.getHeaders()); } - public static BunqResponse delete(Integer adyenCardTransactionId) { + public static BunqResponse delete(Long adyenCardTransactionId) { return delete(adyenCardTransactionId, null, null, null); } - public static BunqResponse delete(Integer adyenCardTransactionId, Integer noteAttachmentAdyenCardTransactionId) { + public static BunqResponse delete(Long adyenCardTransactionId, Long noteAttachmentAdyenCardTransactionId) { return delete(adyenCardTransactionId, noteAttachmentAdyenCardTransactionId, null, null); } - public static BunqResponse delete(Integer adyenCardTransactionId, Integer noteAttachmentAdyenCardTransactionId, Integer monetaryAccountId) { + public static BunqResponse delete(Long adyenCardTransactionId, Long noteAttachmentAdyenCardTransactionId, Long monetaryAccountId) { return delete(adyenCardTransactionId, noteAttachmentAdyenCardTransactionId, monetaryAccountId, null); } /** */ - public static BunqResponse> list(Integer adyenCardTransactionId, Integer monetaryAccountId, Map params, Map customHeaders) { + public static BunqResponse> list(Long adyenCardTransactionId, Long monetaryAccountId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_LISTING, determineUserId(), determineMonetaryAccountId(monetaryAccountId), adyenCardTransactionId), params, customHeaders); @@ -220,21 +220,21 @@ public static BunqResponse> li return list(null, null, null, null); } - public static BunqResponse> list(Integer adyenCardTransactionId) { + public static BunqResponse> list(Long adyenCardTransactionId) { return list(adyenCardTransactionId, null, null, null); } - public static BunqResponse> list(Integer adyenCardTransactionId, Integer monetaryAccountId) { + public static BunqResponse> list(Long adyenCardTransactionId, Long monetaryAccountId) { return list(adyenCardTransactionId, monetaryAccountId, null, null); } - public static BunqResponse> list(Integer adyenCardTransactionId, Integer monetaryAccountId, Map params) { + public static BunqResponse> list(Long adyenCardTransactionId, Long monetaryAccountId, Map params) { return list(adyenCardTransactionId, monetaryAccountId, params, null); } /** */ - public static BunqResponse get(Integer adyenCardTransactionId, Integer noteAttachmentAdyenCardTransactionId, Integer monetaryAccountId, Map params, Map customHeaders) { + public static BunqResponse get(Long adyenCardTransactionId, Long noteAttachmentAdyenCardTransactionId, Long monetaryAccountId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_READ, determineUserId(), determineMonetaryAccountId(monetaryAccountId), adyenCardTransactionId, noteAttachmentAdyenCardTransactionId), params, customHeaders); @@ -245,30 +245,30 @@ public static BunqResponse get() { return get(null, null, null, null, null); } - public static BunqResponse get(Integer adyenCardTransactionId) { + public static BunqResponse get(Long adyenCardTransactionId) { return get(adyenCardTransactionId, null, null, null, null); } - public static BunqResponse get(Integer adyenCardTransactionId, Integer noteAttachmentAdyenCardTransactionId) { + public static BunqResponse get(Long adyenCardTransactionId, Long noteAttachmentAdyenCardTransactionId) { return get(adyenCardTransactionId, noteAttachmentAdyenCardTransactionId, null, null, null); } - public static BunqResponse get(Integer adyenCardTransactionId, Integer noteAttachmentAdyenCardTransactionId, Integer monetaryAccountId) { + public static BunqResponse get(Long adyenCardTransactionId, Long noteAttachmentAdyenCardTransactionId, Long monetaryAccountId) { return get(adyenCardTransactionId, noteAttachmentAdyenCardTransactionId, monetaryAccountId, null, null); } - public static BunqResponse get(Integer adyenCardTransactionId, Integer noteAttachmentAdyenCardTransactionId, Integer monetaryAccountId, Map params) { + public static BunqResponse get(Long adyenCardTransactionId, Long noteAttachmentAdyenCardTransactionId, Long monetaryAccountId, Map params) { return get(adyenCardTransactionId, noteAttachmentAdyenCardTransactionId, monetaryAccountId, params, null); } /** * The id of the note. */ - public Integer getId() { + public Long getId() { return this.id; } - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } diff --git a/src/main/java/com/bunq/sdk/model/generated/endpoint/NoteAttachmentBankSwitchServiceNetherlandsIncomingPaymentApiObject.java b/src/main/java/com/bunq/sdk/model/generated/endpoint/NoteAttachmentBankSwitchServiceNetherlandsIncomingPaymentApiObject.java index d75039c8..5c3723e8 100644 --- a/src/main/java/com/bunq/sdk/model/generated/endpoint/NoteAttachmentBankSwitchServiceNetherlandsIncomingPaymentApiObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/endpoint/NoteAttachmentBankSwitchServiceNetherlandsIncomingPaymentApiObject.java @@ -48,7 +48,7 @@ public class NoteAttachmentBankSwitchServiceNetherlandsIncomingPaymentApiObject */ @Expose @SerializedName("id") - private Integer id; + private Long id; /** * The timestamp of the note's creation. @@ -97,24 +97,24 @@ public class NoteAttachmentBankSwitchServiceNetherlandsIncomingPaymentApiObject */ @Expose @SerializedName("attachment_id_field_for_request") - private Integer attachmentIdFieldForRequest; + private Long attachmentIdFieldForRequest; public NoteAttachmentBankSwitchServiceNetherlandsIncomingPaymentApiObject() { this(null, null); } - public NoteAttachmentBankSwitchServiceNetherlandsIncomingPaymentApiObject(Integer attachmentId) { + public NoteAttachmentBankSwitchServiceNetherlandsIncomingPaymentApiObject(Long attachmentId) { this(attachmentId, null); } - public NoteAttachmentBankSwitchServiceNetherlandsIncomingPaymentApiObject(Integer attachmentId, String description) { + public NoteAttachmentBankSwitchServiceNetherlandsIncomingPaymentApiObject(Long attachmentId, String description) { this.descriptionFieldForRequest = description; this.attachmentIdFieldForRequest = attachmentId; } /** * @param attachmentId The reference to the uploaded file to attach to this note. * @param description Optional description of the attachment. */ - public static BunqResponse create(Integer switchServicePaymentId, Integer attachmentId, Integer monetaryAccountId, String description, Map customHeaders) { + public static BunqResponse create(Long switchServicePaymentId, Long attachmentId, Long monetaryAccountId, String description, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -131,30 +131,30 @@ public static BunqResponse create(Integer switchServicePaymentId, Integ return processForId(responseRaw); } - public static BunqResponse create() { + public static BunqResponse create() { return create(null, null, null, null, null); } - public static BunqResponse create(Integer switchServicePaymentId) { + public static BunqResponse create(Long switchServicePaymentId) { return create(switchServicePaymentId, null, null, null, null); } - public static BunqResponse create(Integer switchServicePaymentId, Integer attachmentId) { + public static BunqResponse create(Long switchServicePaymentId, Long attachmentId) { return create(switchServicePaymentId, attachmentId, null, null, null); } - public static BunqResponse create(Integer switchServicePaymentId, Integer attachmentId, Integer monetaryAccountId) { + public static BunqResponse create(Long switchServicePaymentId, Long attachmentId, Long monetaryAccountId) { return create(switchServicePaymentId, attachmentId, monetaryAccountId, null, null); } - public static BunqResponse create(Integer switchServicePaymentId, Integer attachmentId, Integer monetaryAccountId, String description) { + public static BunqResponse create(Long switchServicePaymentId, Long attachmentId, Long monetaryAccountId, String description) { return create(switchServicePaymentId, attachmentId, monetaryAccountId, description, null); } /** * @param description Optional description of the attachment. */ - public static BunqResponse update(Integer switchServicePaymentId, Integer noteAttachmentBankSwitchServiceNetherlandsIncomingPaymentId, Integer monetaryAccountId, String description, Map customHeaders) { + public static BunqResponse update(Long switchServicePaymentId, Long noteAttachmentBankSwitchServiceNetherlandsIncomingPaymentId, Long monetaryAccountId, String description, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -170,47 +170,47 @@ public static BunqResponse update(Integer switchServicePaymentId, Integ return processForId(responseRaw); } - public static BunqResponse update(Integer switchServicePaymentId) { + public static BunqResponse update(Long switchServicePaymentId) { return update(switchServicePaymentId, null, null, null, null); } - public static BunqResponse update(Integer switchServicePaymentId, Integer noteAttachmentBankSwitchServiceNetherlandsIncomingPaymentId) { + public static BunqResponse update(Long switchServicePaymentId, Long noteAttachmentBankSwitchServiceNetherlandsIncomingPaymentId) { return update(switchServicePaymentId, noteAttachmentBankSwitchServiceNetherlandsIncomingPaymentId, null, null, null); } - public static BunqResponse update(Integer switchServicePaymentId, Integer noteAttachmentBankSwitchServiceNetherlandsIncomingPaymentId, Integer monetaryAccountId) { + public static BunqResponse update(Long switchServicePaymentId, Long noteAttachmentBankSwitchServiceNetherlandsIncomingPaymentId, Long monetaryAccountId) { return update(switchServicePaymentId, noteAttachmentBankSwitchServiceNetherlandsIncomingPaymentId, monetaryAccountId, null, null); } - public static BunqResponse update(Integer switchServicePaymentId, Integer noteAttachmentBankSwitchServiceNetherlandsIncomingPaymentId, Integer monetaryAccountId, String description) { + public static BunqResponse update(Long switchServicePaymentId, Long noteAttachmentBankSwitchServiceNetherlandsIncomingPaymentId, Long monetaryAccountId, String description) { return update(switchServicePaymentId, noteAttachmentBankSwitchServiceNetherlandsIncomingPaymentId, monetaryAccountId, description, null); } /** */ - public static BunqResponse delete(Integer switchServicePaymentId, Integer noteAttachmentBankSwitchServiceNetherlandsIncomingPaymentId, Integer monetaryAccountId, Map customHeaders) { + public static BunqResponse delete(Long switchServicePaymentId, Long noteAttachmentBankSwitchServiceNetherlandsIncomingPaymentId, Long monetaryAccountId, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.delete(String.format(ENDPOINT_URL_DELETE, determineUserId(), determineMonetaryAccountId(monetaryAccountId), switchServicePaymentId, noteAttachmentBankSwitchServiceNetherlandsIncomingPaymentId), customHeaders); return new BunqResponse<>(null, responseRaw.getHeaders()); } - public static BunqResponse delete(Integer switchServicePaymentId) { + public static BunqResponse delete(Long switchServicePaymentId) { return delete(switchServicePaymentId, null, null, null); } - public static BunqResponse delete(Integer switchServicePaymentId, Integer noteAttachmentBankSwitchServiceNetherlandsIncomingPaymentId) { + public static BunqResponse delete(Long switchServicePaymentId, Long noteAttachmentBankSwitchServiceNetherlandsIncomingPaymentId) { return delete(switchServicePaymentId, noteAttachmentBankSwitchServiceNetherlandsIncomingPaymentId, null, null); } - public static BunqResponse delete(Integer switchServicePaymentId, Integer noteAttachmentBankSwitchServiceNetherlandsIncomingPaymentId, Integer monetaryAccountId) { + public static BunqResponse delete(Long switchServicePaymentId, Long noteAttachmentBankSwitchServiceNetherlandsIncomingPaymentId, Long monetaryAccountId) { return delete(switchServicePaymentId, noteAttachmentBankSwitchServiceNetherlandsIncomingPaymentId, monetaryAccountId, null); } /** * Manage the notes for a given user. */ - public static BunqResponse> list(Integer switchServicePaymentId, Integer monetaryAccountId, Map params, Map customHeaders) { + public static BunqResponse> list(Long switchServicePaymentId, Long monetaryAccountId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_LISTING, determineUserId(), determineMonetaryAccountId(monetaryAccountId), switchServicePaymentId), params, customHeaders); @@ -221,21 +221,21 @@ public static BunqResponse> list(Integer switchServicePaymentId) { + public static BunqResponse> list(Long switchServicePaymentId) { return list(switchServicePaymentId, null, null, null); } - public static BunqResponse> list(Integer switchServicePaymentId, Integer monetaryAccountId) { + public static BunqResponse> list(Long switchServicePaymentId, Long monetaryAccountId) { return list(switchServicePaymentId, monetaryAccountId, null, null); } - public static BunqResponse> list(Integer switchServicePaymentId, Integer monetaryAccountId, Map params) { + public static BunqResponse> list(Long switchServicePaymentId, Long monetaryAccountId, Map params) { return list(switchServicePaymentId, monetaryAccountId, params, null); } /** */ - public static BunqResponse get(Integer switchServicePaymentId, Integer noteAttachmentBankSwitchServiceNetherlandsIncomingPaymentId, Integer monetaryAccountId, Map params, Map customHeaders) { + public static BunqResponse get(Long switchServicePaymentId, Long noteAttachmentBankSwitchServiceNetherlandsIncomingPaymentId, Long monetaryAccountId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_READ, determineUserId(), determineMonetaryAccountId(monetaryAccountId), switchServicePaymentId, noteAttachmentBankSwitchServiceNetherlandsIncomingPaymentId), params, customHeaders); @@ -246,30 +246,30 @@ public static BunqResponse get(Integer switchServicePaymentId) { + public static BunqResponse get(Long switchServicePaymentId) { return get(switchServicePaymentId, null, null, null, null); } - public static BunqResponse get(Integer switchServicePaymentId, Integer noteAttachmentBankSwitchServiceNetherlandsIncomingPaymentId) { + public static BunqResponse get(Long switchServicePaymentId, Long noteAttachmentBankSwitchServiceNetherlandsIncomingPaymentId) { return get(switchServicePaymentId, noteAttachmentBankSwitchServiceNetherlandsIncomingPaymentId, null, null, null); } - public static BunqResponse get(Integer switchServicePaymentId, Integer noteAttachmentBankSwitchServiceNetherlandsIncomingPaymentId, Integer monetaryAccountId) { + public static BunqResponse get(Long switchServicePaymentId, Long noteAttachmentBankSwitchServiceNetherlandsIncomingPaymentId, Long monetaryAccountId) { return get(switchServicePaymentId, noteAttachmentBankSwitchServiceNetherlandsIncomingPaymentId, monetaryAccountId, null, null); } - public static BunqResponse get(Integer switchServicePaymentId, Integer noteAttachmentBankSwitchServiceNetherlandsIncomingPaymentId, Integer monetaryAccountId, Map params) { + public static BunqResponse get(Long switchServicePaymentId, Long noteAttachmentBankSwitchServiceNetherlandsIncomingPaymentId, Long monetaryAccountId, Map params) { return get(switchServicePaymentId, noteAttachmentBankSwitchServiceNetherlandsIncomingPaymentId, monetaryAccountId, params, null); } /** * The id of the note. */ - public Integer getId() { + public Long getId() { return this.id; } - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } diff --git a/src/main/java/com/bunq/sdk/model/generated/endpoint/NoteAttachmentBunqMeFundraiserResultApiObject.java b/src/main/java/com/bunq/sdk/model/generated/endpoint/NoteAttachmentBunqMeFundraiserResultApiObject.java index 89df08ad..c45f213e 100644 --- a/src/main/java/com/bunq/sdk/model/generated/endpoint/NoteAttachmentBunqMeFundraiserResultApiObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/endpoint/NoteAttachmentBunqMeFundraiserResultApiObject.java @@ -48,7 +48,7 @@ public class NoteAttachmentBunqMeFundraiserResultApiObject extends BunqModel { */ @Expose @SerializedName("id") - private Integer id; + private Long id; /** * The timestamp of the note's creation. @@ -97,24 +97,24 @@ public class NoteAttachmentBunqMeFundraiserResultApiObject extends BunqModel { */ @Expose @SerializedName("attachment_id_field_for_request") - private Integer attachmentIdFieldForRequest; + private Long attachmentIdFieldForRequest; public NoteAttachmentBunqMeFundraiserResultApiObject() { this(null, null); } - public NoteAttachmentBunqMeFundraiserResultApiObject(Integer attachmentId) { + public NoteAttachmentBunqMeFundraiserResultApiObject(Long attachmentId) { this(attachmentId, null); } - public NoteAttachmentBunqMeFundraiserResultApiObject(Integer attachmentId, String description) { + public NoteAttachmentBunqMeFundraiserResultApiObject(Long attachmentId, String description) { this.descriptionFieldForRequest = description; this.attachmentIdFieldForRequest = attachmentId; } /** * @param attachmentId The reference to the uploaded file to attach to this note. * @param description Optional description of the attachment. */ - public static BunqResponse create(Integer bunqmeFundraiserResultId, Integer attachmentId, Integer monetaryAccountId, String description, Map customHeaders) { + public static BunqResponse create(Long bunqmeFundraiserResultId, Long attachmentId, Long monetaryAccountId, String description, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -131,30 +131,30 @@ public static BunqResponse create(Integer bunqmeFundraiserResultId, Int return processForId(responseRaw); } - public static BunqResponse create() { + public static BunqResponse create() { return create(null, null, null, null, null); } - public static BunqResponse create(Integer bunqmeFundraiserResultId) { + public static BunqResponse create(Long bunqmeFundraiserResultId) { return create(bunqmeFundraiserResultId, null, null, null, null); } - public static BunqResponse create(Integer bunqmeFundraiserResultId, Integer attachmentId) { + public static BunqResponse create(Long bunqmeFundraiserResultId, Long attachmentId) { return create(bunqmeFundraiserResultId, attachmentId, null, null, null); } - public static BunqResponse create(Integer bunqmeFundraiserResultId, Integer attachmentId, Integer monetaryAccountId) { + public static BunqResponse create(Long bunqmeFundraiserResultId, Long attachmentId, Long monetaryAccountId) { return create(bunqmeFundraiserResultId, attachmentId, monetaryAccountId, null, null); } - public static BunqResponse create(Integer bunqmeFundraiserResultId, Integer attachmentId, Integer monetaryAccountId, String description) { + public static BunqResponse create(Long bunqmeFundraiserResultId, Long attachmentId, Long monetaryAccountId, String description) { return create(bunqmeFundraiserResultId, attachmentId, monetaryAccountId, description, null); } /** * @param description Optional description of the attachment. */ - public static BunqResponse update(Integer bunqmeFundraiserResultId, Integer noteAttachmentBunqMeFundraiserResultId, Integer monetaryAccountId, String description, Map customHeaders) { + public static BunqResponse update(Long bunqmeFundraiserResultId, Long noteAttachmentBunqMeFundraiserResultId, Long monetaryAccountId, String description, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -170,47 +170,47 @@ public static BunqResponse update(Integer bunqmeFundraiserResultId, Int return processForId(responseRaw); } - public static BunqResponse update(Integer bunqmeFundraiserResultId) { + public static BunqResponse update(Long bunqmeFundraiserResultId) { return update(bunqmeFundraiserResultId, null, null, null, null); } - public static BunqResponse update(Integer bunqmeFundraiserResultId, Integer noteAttachmentBunqMeFundraiserResultId) { + public static BunqResponse update(Long bunqmeFundraiserResultId, Long noteAttachmentBunqMeFundraiserResultId) { return update(bunqmeFundraiserResultId, noteAttachmentBunqMeFundraiserResultId, null, null, null); } - public static BunqResponse update(Integer bunqmeFundraiserResultId, Integer noteAttachmentBunqMeFundraiserResultId, Integer monetaryAccountId) { + public static BunqResponse update(Long bunqmeFundraiserResultId, Long noteAttachmentBunqMeFundraiserResultId, Long monetaryAccountId) { return update(bunqmeFundraiserResultId, noteAttachmentBunqMeFundraiserResultId, monetaryAccountId, null, null); } - public static BunqResponse update(Integer bunqmeFundraiserResultId, Integer noteAttachmentBunqMeFundraiserResultId, Integer monetaryAccountId, String description) { + public static BunqResponse update(Long bunqmeFundraiserResultId, Long noteAttachmentBunqMeFundraiserResultId, Long monetaryAccountId, String description) { return update(bunqmeFundraiserResultId, noteAttachmentBunqMeFundraiserResultId, monetaryAccountId, description, null); } /** */ - public static BunqResponse delete(Integer bunqmeFundraiserResultId, Integer noteAttachmentBunqMeFundraiserResultId, Integer monetaryAccountId, Map customHeaders) { + public static BunqResponse delete(Long bunqmeFundraiserResultId, Long noteAttachmentBunqMeFundraiserResultId, Long monetaryAccountId, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.delete(String.format(ENDPOINT_URL_DELETE, determineUserId(), determineMonetaryAccountId(monetaryAccountId), bunqmeFundraiserResultId, noteAttachmentBunqMeFundraiserResultId), customHeaders); return new BunqResponse<>(null, responseRaw.getHeaders()); } - public static BunqResponse delete(Integer bunqmeFundraiserResultId) { + public static BunqResponse delete(Long bunqmeFundraiserResultId) { return delete(bunqmeFundraiserResultId, null, null, null); } - public static BunqResponse delete(Integer bunqmeFundraiserResultId, Integer noteAttachmentBunqMeFundraiserResultId) { + public static BunqResponse delete(Long bunqmeFundraiserResultId, Long noteAttachmentBunqMeFundraiserResultId) { return delete(bunqmeFundraiserResultId, noteAttachmentBunqMeFundraiserResultId, null, null); } - public static BunqResponse delete(Integer bunqmeFundraiserResultId, Integer noteAttachmentBunqMeFundraiserResultId, Integer monetaryAccountId) { + public static BunqResponse delete(Long bunqmeFundraiserResultId, Long noteAttachmentBunqMeFundraiserResultId, Long monetaryAccountId) { return delete(bunqmeFundraiserResultId, noteAttachmentBunqMeFundraiserResultId, monetaryAccountId, null); } /** * Manage the notes for a given user. */ - public static BunqResponse> list(Integer bunqmeFundraiserResultId, Integer monetaryAccountId, Map params, Map customHeaders) { + public static BunqResponse> list(Long bunqmeFundraiserResultId, Long monetaryAccountId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_LISTING, determineUserId(), determineMonetaryAccountId(monetaryAccountId), bunqmeFundraiserResultId), params, customHeaders); @@ -221,21 +221,21 @@ public static BunqResponse> return list(null, null, null, null); } - public static BunqResponse> list(Integer bunqmeFundraiserResultId) { + public static BunqResponse> list(Long bunqmeFundraiserResultId) { return list(bunqmeFundraiserResultId, null, null, null); } - public static BunqResponse> list(Integer bunqmeFundraiserResultId, Integer monetaryAccountId) { + public static BunqResponse> list(Long bunqmeFundraiserResultId, Long monetaryAccountId) { return list(bunqmeFundraiserResultId, monetaryAccountId, null, null); } - public static BunqResponse> list(Integer bunqmeFundraiserResultId, Integer monetaryAccountId, Map params) { + public static BunqResponse> list(Long bunqmeFundraiserResultId, Long monetaryAccountId, Map params) { return list(bunqmeFundraiserResultId, monetaryAccountId, params, null); } /** */ - public static BunqResponse get(Integer bunqmeFundraiserResultId, Integer noteAttachmentBunqMeFundraiserResultId, Integer monetaryAccountId, Map params, Map customHeaders) { + public static BunqResponse get(Long bunqmeFundraiserResultId, Long noteAttachmentBunqMeFundraiserResultId, Long monetaryAccountId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_READ, determineUserId(), determineMonetaryAccountId(monetaryAccountId), bunqmeFundraiserResultId, noteAttachmentBunqMeFundraiserResultId), params, customHeaders); @@ -246,30 +246,30 @@ public static BunqResponse get() return get(null, null, null, null, null); } - public static BunqResponse get(Integer bunqmeFundraiserResultId) { + public static BunqResponse get(Long bunqmeFundraiserResultId) { return get(bunqmeFundraiserResultId, null, null, null, null); } - public static BunqResponse get(Integer bunqmeFundraiserResultId, Integer noteAttachmentBunqMeFundraiserResultId) { + public static BunqResponse get(Long bunqmeFundraiserResultId, Long noteAttachmentBunqMeFundraiserResultId) { return get(bunqmeFundraiserResultId, noteAttachmentBunqMeFundraiserResultId, null, null, null); } - public static BunqResponse get(Integer bunqmeFundraiserResultId, Integer noteAttachmentBunqMeFundraiserResultId, Integer monetaryAccountId) { + public static BunqResponse get(Long bunqmeFundraiserResultId, Long noteAttachmentBunqMeFundraiserResultId, Long monetaryAccountId) { return get(bunqmeFundraiserResultId, noteAttachmentBunqMeFundraiserResultId, monetaryAccountId, null, null); } - public static BunqResponse get(Integer bunqmeFundraiserResultId, Integer noteAttachmentBunqMeFundraiserResultId, Integer monetaryAccountId, Map params) { + public static BunqResponse get(Long bunqmeFundraiserResultId, Long noteAttachmentBunqMeFundraiserResultId, Long monetaryAccountId, Map params) { return get(bunqmeFundraiserResultId, noteAttachmentBunqMeFundraiserResultId, monetaryAccountId, params, null); } /** * The id of the note. */ - public Integer getId() { + public Long getId() { return this.id; } - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } diff --git a/src/main/java/com/bunq/sdk/model/generated/endpoint/NoteAttachmentDraftPaymentApiObject.java b/src/main/java/com/bunq/sdk/model/generated/endpoint/NoteAttachmentDraftPaymentApiObject.java index 7b388376..5ce6bcc2 100644 --- a/src/main/java/com/bunq/sdk/model/generated/endpoint/NoteAttachmentDraftPaymentApiObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/endpoint/NoteAttachmentDraftPaymentApiObject.java @@ -48,7 +48,7 @@ public class NoteAttachmentDraftPaymentApiObject extends BunqModel { */ @Expose @SerializedName("id") - private Integer id; + private Long id; /** * The timestamp of the note's creation. @@ -97,24 +97,24 @@ public class NoteAttachmentDraftPaymentApiObject extends BunqModel { */ @Expose @SerializedName("attachment_id_field_for_request") - private Integer attachmentIdFieldForRequest; + private Long attachmentIdFieldForRequest; public NoteAttachmentDraftPaymentApiObject() { this(null, null); } - public NoteAttachmentDraftPaymentApiObject(Integer attachmentId) { + public NoteAttachmentDraftPaymentApiObject(Long attachmentId) { this(attachmentId, null); } - public NoteAttachmentDraftPaymentApiObject(Integer attachmentId, String description) { + public NoteAttachmentDraftPaymentApiObject(Long attachmentId, String description) { this.descriptionFieldForRequest = description; this.attachmentIdFieldForRequest = attachmentId; } /** * @param attachmentId The reference to the uploaded file to attach to this note. * @param description Optional description of the attachment. */ - public static BunqResponse create(Integer draftPaymentId, Integer attachmentId, Integer monetaryAccountId, String description, Map customHeaders) { + public static BunqResponse create(Long draftPaymentId, Long attachmentId, Long monetaryAccountId, String description, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -131,30 +131,30 @@ public static BunqResponse create(Integer draftPaymentId, Integer attac return processForId(responseRaw); } - public static BunqResponse create() { + public static BunqResponse create() { return create(null, null, null, null, null); } - public static BunqResponse create(Integer draftPaymentId) { + public static BunqResponse create(Long draftPaymentId) { return create(draftPaymentId, null, null, null, null); } - public static BunqResponse create(Integer draftPaymentId, Integer attachmentId) { + public static BunqResponse create(Long draftPaymentId, Long attachmentId) { return create(draftPaymentId, attachmentId, null, null, null); } - public static BunqResponse create(Integer draftPaymentId, Integer attachmentId, Integer monetaryAccountId) { + public static BunqResponse create(Long draftPaymentId, Long attachmentId, Long monetaryAccountId) { return create(draftPaymentId, attachmentId, monetaryAccountId, null, null); } - public static BunqResponse create(Integer draftPaymentId, Integer attachmentId, Integer monetaryAccountId, String description) { + public static BunqResponse create(Long draftPaymentId, Long attachmentId, Long monetaryAccountId, String description) { return create(draftPaymentId, attachmentId, monetaryAccountId, description, null); } /** * @param description Optional description of the attachment. */ - public static BunqResponse update(Integer draftPaymentId, Integer noteAttachmentDraftPaymentId, Integer monetaryAccountId, String description, Map customHeaders) { + public static BunqResponse update(Long draftPaymentId, Long noteAttachmentDraftPaymentId, Long monetaryAccountId, String description, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -170,47 +170,47 @@ public static BunqResponse update(Integer draftPaymentId, Integer noteA return processForId(responseRaw); } - public static BunqResponse update(Integer draftPaymentId) { + public static BunqResponse update(Long draftPaymentId) { return update(draftPaymentId, null, null, null, null); } - public static BunqResponse update(Integer draftPaymentId, Integer noteAttachmentDraftPaymentId) { + public static BunqResponse update(Long draftPaymentId, Long noteAttachmentDraftPaymentId) { return update(draftPaymentId, noteAttachmentDraftPaymentId, null, null, null); } - public static BunqResponse update(Integer draftPaymentId, Integer noteAttachmentDraftPaymentId, Integer monetaryAccountId) { + public static BunqResponse update(Long draftPaymentId, Long noteAttachmentDraftPaymentId, Long monetaryAccountId) { return update(draftPaymentId, noteAttachmentDraftPaymentId, monetaryAccountId, null, null); } - public static BunqResponse update(Integer draftPaymentId, Integer noteAttachmentDraftPaymentId, Integer monetaryAccountId, String description) { + public static BunqResponse update(Long draftPaymentId, Long noteAttachmentDraftPaymentId, Long monetaryAccountId, String description) { return update(draftPaymentId, noteAttachmentDraftPaymentId, monetaryAccountId, description, null); } /** */ - public static BunqResponse delete(Integer draftPaymentId, Integer noteAttachmentDraftPaymentId, Integer monetaryAccountId, Map customHeaders) { + public static BunqResponse delete(Long draftPaymentId, Long noteAttachmentDraftPaymentId, Long monetaryAccountId, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.delete(String.format(ENDPOINT_URL_DELETE, determineUserId(), determineMonetaryAccountId(monetaryAccountId), draftPaymentId, noteAttachmentDraftPaymentId), customHeaders); return new BunqResponse<>(null, responseRaw.getHeaders()); } - public static BunqResponse delete(Integer draftPaymentId) { + public static BunqResponse delete(Long draftPaymentId) { return delete(draftPaymentId, null, null, null); } - public static BunqResponse delete(Integer draftPaymentId, Integer noteAttachmentDraftPaymentId) { + public static BunqResponse delete(Long draftPaymentId, Long noteAttachmentDraftPaymentId) { return delete(draftPaymentId, noteAttachmentDraftPaymentId, null, null); } - public static BunqResponse delete(Integer draftPaymentId, Integer noteAttachmentDraftPaymentId, Integer monetaryAccountId) { + public static BunqResponse delete(Long draftPaymentId, Long noteAttachmentDraftPaymentId, Long monetaryAccountId) { return delete(draftPaymentId, noteAttachmentDraftPaymentId, monetaryAccountId, null); } /** * Manage the notes for a given user. */ - public static BunqResponse> list(Integer draftPaymentId, Integer monetaryAccountId, Map params, Map customHeaders) { + public static BunqResponse> list(Long draftPaymentId, Long monetaryAccountId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_LISTING, determineUserId(), determineMonetaryAccountId(monetaryAccountId), draftPaymentId), params, customHeaders); @@ -221,21 +221,21 @@ public static BunqResponse> list() { return list(null, null, null, null); } - public static BunqResponse> list(Integer draftPaymentId) { + public static BunqResponse> list(Long draftPaymentId) { return list(draftPaymentId, null, null, null); } - public static BunqResponse> list(Integer draftPaymentId, Integer monetaryAccountId) { + public static BunqResponse> list(Long draftPaymentId, Long monetaryAccountId) { return list(draftPaymentId, monetaryAccountId, null, null); } - public static BunqResponse> list(Integer draftPaymentId, Integer monetaryAccountId, Map params) { + public static BunqResponse> list(Long draftPaymentId, Long monetaryAccountId, Map params) { return list(draftPaymentId, monetaryAccountId, params, null); } /** */ - public static BunqResponse get(Integer draftPaymentId, Integer noteAttachmentDraftPaymentId, Integer monetaryAccountId, Map params, Map customHeaders) { + public static BunqResponse get(Long draftPaymentId, Long noteAttachmentDraftPaymentId, Long monetaryAccountId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_READ, determineUserId(), determineMonetaryAccountId(monetaryAccountId), draftPaymentId, noteAttachmentDraftPaymentId), params, customHeaders); @@ -246,30 +246,30 @@ public static BunqResponse get() { return get(null, null, null, null, null); } - public static BunqResponse get(Integer draftPaymentId) { + public static BunqResponse get(Long draftPaymentId) { return get(draftPaymentId, null, null, null, null); } - public static BunqResponse get(Integer draftPaymentId, Integer noteAttachmentDraftPaymentId) { + public static BunqResponse get(Long draftPaymentId, Long noteAttachmentDraftPaymentId) { return get(draftPaymentId, noteAttachmentDraftPaymentId, null, null, null); } - public static BunqResponse get(Integer draftPaymentId, Integer noteAttachmentDraftPaymentId, Integer monetaryAccountId) { + public static BunqResponse get(Long draftPaymentId, Long noteAttachmentDraftPaymentId, Long monetaryAccountId) { return get(draftPaymentId, noteAttachmentDraftPaymentId, monetaryAccountId, null, null); } - public static BunqResponse get(Integer draftPaymentId, Integer noteAttachmentDraftPaymentId, Integer monetaryAccountId, Map params) { + public static BunqResponse get(Long draftPaymentId, Long noteAttachmentDraftPaymentId, Long monetaryAccountId, Map params) { return get(draftPaymentId, noteAttachmentDraftPaymentId, monetaryAccountId, params, null); } /** * The id of the note. */ - public Integer getId() { + public Long getId() { return this.id; } - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } diff --git a/src/main/java/com/bunq/sdk/model/generated/endpoint/NoteAttachmentIdealMerchantTransactionApiObject.java b/src/main/java/com/bunq/sdk/model/generated/endpoint/NoteAttachmentIdealMerchantTransactionApiObject.java index 2e08886b..0d4efbbd 100644 --- a/src/main/java/com/bunq/sdk/model/generated/endpoint/NoteAttachmentIdealMerchantTransactionApiObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/endpoint/NoteAttachmentIdealMerchantTransactionApiObject.java @@ -48,7 +48,7 @@ public class NoteAttachmentIdealMerchantTransactionApiObject extends BunqModel { */ @Expose @SerializedName("id") - private Integer id; + private Long id; /** * The timestamp of the note's creation. @@ -97,24 +97,24 @@ public class NoteAttachmentIdealMerchantTransactionApiObject extends BunqModel { */ @Expose @SerializedName("attachment_id_field_for_request") - private Integer attachmentIdFieldForRequest; + private Long attachmentIdFieldForRequest; public NoteAttachmentIdealMerchantTransactionApiObject() { this(null, null); } - public NoteAttachmentIdealMerchantTransactionApiObject(Integer attachmentId) { + public NoteAttachmentIdealMerchantTransactionApiObject(Long attachmentId) { this(attachmentId, null); } - public NoteAttachmentIdealMerchantTransactionApiObject(Integer attachmentId, String description) { + public NoteAttachmentIdealMerchantTransactionApiObject(Long attachmentId, String description) { this.descriptionFieldForRequest = description; this.attachmentIdFieldForRequest = attachmentId; } /** * @param attachmentId The reference to the uploaded file to attach to this note. * @param description Optional description of the attachment. */ - public static BunqResponse create(Integer idealMerchantTransactionId, Integer attachmentId, Integer monetaryAccountId, String description, Map customHeaders) { + public static BunqResponse create(Long idealMerchantTransactionId, Long attachmentId, Long monetaryAccountId, String description, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -131,30 +131,30 @@ public static BunqResponse create(Integer idealMerchantTransactionId, I return processForId(responseRaw); } - public static BunqResponse create() { + public static BunqResponse create() { return create(null, null, null, null, null); } - public static BunqResponse create(Integer idealMerchantTransactionId) { + public static BunqResponse create(Long idealMerchantTransactionId) { return create(idealMerchantTransactionId, null, null, null, null); } - public static BunqResponse create(Integer idealMerchantTransactionId, Integer attachmentId) { + public static BunqResponse create(Long idealMerchantTransactionId, Long attachmentId) { return create(idealMerchantTransactionId, attachmentId, null, null, null); } - public static BunqResponse create(Integer idealMerchantTransactionId, Integer attachmentId, Integer monetaryAccountId) { + public static BunqResponse create(Long idealMerchantTransactionId, Long attachmentId, Long monetaryAccountId) { return create(idealMerchantTransactionId, attachmentId, monetaryAccountId, null, null); } - public static BunqResponse create(Integer idealMerchantTransactionId, Integer attachmentId, Integer monetaryAccountId, String description) { + public static BunqResponse create(Long idealMerchantTransactionId, Long attachmentId, Long monetaryAccountId, String description) { return create(idealMerchantTransactionId, attachmentId, monetaryAccountId, description, null); } /** * @param description Optional description of the attachment. */ - public static BunqResponse update(Integer idealMerchantTransactionId, Integer noteAttachmentIdealMerchantTransactionId, Integer monetaryAccountId, String description, Map customHeaders) { + public static BunqResponse update(Long idealMerchantTransactionId, Long noteAttachmentIdealMerchantTransactionId, Long monetaryAccountId, String description, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -170,47 +170,47 @@ public static BunqResponse update(Integer idealMerchantTransactionId, I return processForId(responseRaw); } - public static BunqResponse update(Integer idealMerchantTransactionId) { + public static BunqResponse update(Long idealMerchantTransactionId) { return update(idealMerchantTransactionId, null, null, null, null); } - public static BunqResponse update(Integer idealMerchantTransactionId, Integer noteAttachmentIdealMerchantTransactionId) { + public static BunqResponse update(Long idealMerchantTransactionId, Long noteAttachmentIdealMerchantTransactionId) { return update(idealMerchantTransactionId, noteAttachmentIdealMerchantTransactionId, null, null, null); } - public static BunqResponse update(Integer idealMerchantTransactionId, Integer noteAttachmentIdealMerchantTransactionId, Integer monetaryAccountId) { + public static BunqResponse update(Long idealMerchantTransactionId, Long noteAttachmentIdealMerchantTransactionId, Long monetaryAccountId) { return update(idealMerchantTransactionId, noteAttachmentIdealMerchantTransactionId, monetaryAccountId, null, null); } - public static BunqResponse update(Integer idealMerchantTransactionId, Integer noteAttachmentIdealMerchantTransactionId, Integer monetaryAccountId, String description) { + public static BunqResponse update(Long idealMerchantTransactionId, Long noteAttachmentIdealMerchantTransactionId, Long monetaryAccountId, String description) { return update(idealMerchantTransactionId, noteAttachmentIdealMerchantTransactionId, monetaryAccountId, description, null); } /** */ - public static BunqResponse delete(Integer idealMerchantTransactionId, Integer noteAttachmentIdealMerchantTransactionId, Integer monetaryAccountId, Map customHeaders) { + public static BunqResponse delete(Long idealMerchantTransactionId, Long noteAttachmentIdealMerchantTransactionId, Long monetaryAccountId, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.delete(String.format(ENDPOINT_URL_DELETE, determineUserId(), determineMonetaryAccountId(monetaryAccountId), idealMerchantTransactionId, noteAttachmentIdealMerchantTransactionId), customHeaders); return new BunqResponse<>(null, responseRaw.getHeaders()); } - public static BunqResponse delete(Integer idealMerchantTransactionId) { + public static BunqResponse delete(Long idealMerchantTransactionId) { return delete(idealMerchantTransactionId, null, null, null); } - public static BunqResponse delete(Integer idealMerchantTransactionId, Integer noteAttachmentIdealMerchantTransactionId) { + public static BunqResponse delete(Long idealMerchantTransactionId, Long noteAttachmentIdealMerchantTransactionId) { return delete(idealMerchantTransactionId, noteAttachmentIdealMerchantTransactionId, null, null); } - public static BunqResponse delete(Integer idealMerchantTransactionId, Integer noteAttachmentIdealMerchantTransactionId, Integer monetaryAccountId) { + public static BunqResponse delete(Long idealMerchantTransactionId, Long noteAttachmentIdealMerchantTransactionId, Long monetaryAccountId) { return delete(idealMerchantTransactionId, noteAttachmentIdealMerchantTransactionId, monetaryAccountId, null); } /** * Manage the notes for a given user. */ - public static BunqResponse> list(Integer idealMerchantTransactionId, Integer monetaryAccountId, Map params, Map customHeaders) { + public static BunqResponse> list(Long idealMerchantTransactionId, Long monetaryAccountId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_LISTING, determineUserId(), determineMonetaryAccountId(monetaryAccountId), idealMerchantTransactionId), params, customHeaders); @@ -221,21 +221,21 @@ public static BunqResponse return list(null, null, null, null); } - public static BunqResponse> list(Integer idealMerchantTransactionId) { + public static BunqResponse> list(Long idealMerchantTransactionId) { return list(idealMerchantTransactionId, null, null, null); } - public static BunqResponse> list(Integer idealMerchantTransactionId, Integer monetaryAccountId) { + public static BunqResponse> list(Long idealMerchantTransactionId, Long monetaryAccountId) { return list(idealMerchantTransactionId, monetaryAccountId, null, null); } - public static BunqResponse> list(Integer idealMerchantTransactionId, Integer monetaryAccountId, Map params) { + public static BunqResponse> list(Long idealMerchantTransactionId, Long monetaryAccountId, Map params) { return list(idealMerchantTransactionId, monetaryAccountId, params, null); } /** */ - public static BunqResponse get(Integer idealMerchantTransactionId, Integer noteAttachmentIdealMerchantTransactionId, Integer monetaryAccountId, Map params, Map customHeaders) { + public static BunqResponse get(Long idealMerchantTransactionId, Long noteAttachmentIdealMerchantTransactionId, Long monetaryAccountId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_READ, determineUserId(), determineMonetaryAccountId(monetaryAccountId), idealMerchantTransactionId, noteAttachmentIdealMerchantTransactionId), params, customHeaders); @@ -246,30 +246,30 @@ public static BunqResponse get( return get(null, null, null, null, null); } - public static BunqResponse get(Integer idealMerchantTransactionId) { + public static BunqResponse get(Long idealMerchantTransactionId) { return get(idealMerchantTransactionId, null, null, null, null); } - public static BunqResponse get(Integer idealMerchantTransactionId, Integer noteAttachmentIdealMerchantTransactionId) { + public static BunqResponse get(Long idealMerchantTransactionId, Long noteAttachmentIdealMerchantTransactionId) { return get(idealMerchantTransactionId, noteAttachmentIdealMerchantTransactionId, null, null, null); } - public static BunqResponse get(Integer idealMerchantTransactionId, Integer noteAttachmentIdealMerchantTransactionId, Integer monetaryAccountId) { + public static BunqResponse get(Long idealMerchantTransactionId, Long noteAttachmentIdealMerchantTransactionId, Long monetaryAccountId) { return get(idealMerchantTransactionId, noteAttachmentIdealMerchantTransactionId, monetaryAccountId, null, null); } - public static BunqResponse get(Integer idealMerchantTransactionId, Integer noteAttachmentIdealMerchantTransactionId, Integer monetaryAccountId, Map params) { + public static BunqResponse get(Long idealMerchantTransactionId, Long noteAttachmentIdealMerchantTransactionId, Long monetaryAccountId, Map params) { return get(idealMerchantTransactionId, noteAttachmentIdealMerchantTransactionId, monetaryAccountId, params, null); } /** * The id of the note. */ - public Integer getId() { + public Long getId() { return this.id; } - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } diff --git a/src/main/java/com/bunq/sdk/model/generated/endpoint/NoteAttachmentMasterCardActionApiObject.java b/src/main/java/com/bunq/sdk/model/generated/endpoint/NoteAttachmentMasterCardActionApiObject.java index 57a73a01..384dd67a 100644 --- a/src/main/java/com/bunq/sdk/model/generated/endpoint/NoteAttachmentMasterCardActionApiObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/endpoint/NoteAttachmentMasterCardActionApiObject.java @@ -48,7 +48,7 @@ public class NoteAttachmentMasterCardActionApiObject extends BunqModel { */ @Expose @SerializedName("id") - private Integer id; + private Long id; /** * The timestamp of the note's creation. @@ -97,7 +97,7 @@ public class NoteAttachmentMasterCardActionApiObject extends BunqModel { */ @Expose @SerializedName("attachment_id_field_for_request") - private Integer attachmentIdFieldForRequest; + private Long attachmentIdFieldForRequest; public NoteAttachmentMasterCardActionApiObject() { this(null, null); @@ -107,14 +107,14 @@ public NoteAttachmentMasterCardActionApiObject(String description) { this(description, null); } - public NoteAttachmentMasterCardActionApiObject(String description, Integer attachmentId) { + public NoteAttachmentMasterCardActionApiObject(String description, Long attachmentId) { this.descriptionFieldForRequest = description; this.attachmentIdFieldForRequest = attachmentId; } /** * @param description Optional description of the attachment. * @param attachmentId The reference to the uploaded file to attach to this note. */ - public static BunqResponse create(Integer mastercardActionId, String description, Integer attachmentId, Integer monetaryAccountId, Map customHeaders) { + public static BunqResponse create(Long mastercardActionId, String description, Long attachmentId, Long monetaryAccountId, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -131,30 +131,30 @@ public static BunqResponse create(Integer mastercardActionId, String de return processForId(responseRaw); } - public static BunqResponse create() { + public static BunqResponse create() { return create(null, null, null, null, null); } - public static BunqResponse create(Integer mastercardActionId) { + public static BunqResponse create(Long mastercardActionId) { return create(mastercardActionId, null, null, null, null); } - public static BunqResponse create(Integer mastercardActionId, String description) { + public static BunqResponse create(Long mastercardActionId, String description) { return create(mastercardActionId, description, null, null, null); } - public static BunqResponse create(Integer mastercardActionId, String description, Integer attachmentId) { + public static BunqResponse create(Long mastercardActionId, String description, Long attachmentId) { return create(mastercardActionId, description, attachmentId, null, null); } - public static BunqResponse create(Integer mastercardActionId, String description, Integer attachmentId, Integer monetaryAccountId) { + public static BunqResponse create(Long mastercardActionId, String description, Long attachmentId, Long monetaryAccountId) { return create(mastercardActionId, description, attachmentId, monetaryAccountId, null); } /** * @param description Optional description of the attachment. */ - public static BunqResponse update(Integer mastercardActionId, Integer noteAttachmentMasterCardActionId, Integer monetaryAccountId, String description, Map customHeaders) { + public static BunqResponse update(Long mastercardActionId, Long noteAttachmentMasterCardActionId, Long monetaryAccountId, String description, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -170,47 +170,47 @@ public static BunqResponse update(Integer mastercardActionId, Integer n return processForId(responseRaw); } - public static BunqResponse update(Integer mastercardActionId) { + public static BunqResponse update(Long mastercardActionId) { return update(mastercardActionId, null, null, null, null); } - public static BunqResponse update(Integer mastercardActionId, Integer noteAttachmentMasterCardActionId) { + public static BunqResponse update(Long mastercardActionId, Long noteAttachmentMasterCardActionId) { return update(mastercardActionId, noteAttachmentMasterCardActionId, null, null, null); } - public static BunqResponse update(Integer mastercardActionId, Integer noteAttachmentMasterCardActionId, Integer monetaryAccountId) { + public static BunqResponse update(Long mastercardActionId, Long noteAttachmentMasterCardActionId, Long monetaryAccountId) { return update(mastercardActionId, noteAttachmentMasterCardActionId, monetaryAccountId, null, null); } - public static BunqResponse update(Integer mastercardActionId, Integer noteAttachmentMasterCardActionId, Integer monetaryAccountId, String description) { + public static BunqResponse update(Long mastercardActionId, Long noteAttachmentMasterCardActionId, Long monetaryAccountId, String description) { return update(mastercardActionId, noteAttachmentMasterCardActionId, monetaryAccountId, description, null); } /** */ - public static BunqResponse delete(Integer mastercardActionId, Integer noteAttachmentMasterCardActionId, Integer monetaryAccountId, Map customHeaders) { + public static BunqResponse delete(Long mastercardActionId, Long noteAttachmentMasterCardActionId, Long monetaryAccountId, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.delete(String.format(ENDPOINT_URL_DELETE, determineUserId(), determineMonetaryAccountId(monetaryAccountId), mastercardActionId, noteAttachmentMasterCardActionId), customHeaders); return new BunqResponse<>(null, responseRaw.getHeaders()); } - public static BunqResponse delete(Integer mastercardActionId) { + public static BunqResponse delete(Long mastercardActionId) { return delete(mastercardActionId, null, null, null); } - public static BunqResponse delete(Integer mastercardActionId, Integer noteAttachmentMasterCardActionId) { + public static BunqResponse delete(Long mastercardActionId, Long noteAttachmentMasterCardActionId) { return delete(mastercardActionId, noteAttachmentMasterCardActionId, null, null); } - public static BunqResponse delete(Integer mastercardActionId, Integer noteAttachmentMasterCardActionId, Integer monetaryAccountId) { + public static BunqResponse delete(Long mastercardActionId, Long noteAttachmentMasterCardActionId, Long monetaryAccountId) { return delete(mastercardActionId, noteAttachmentMasterCardActionId, monetaryAccountId, null); } /** * Manage the notes for a given user. */ - public static BunqResponse> list(Integer mastercardActionId, Integer monetaryAccountId, Map params, Map customHeaders) { + public static BunqResponse> list(Long mastercardActionId, Long monetaryAccountId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_LISTING, determineUserId(), determineMonetaryAccountId(monetaryAccountId), mastercardActionId), params, customHeaders); @@ -221,21 +221,21 @@ public static BunqResponse> list() return list(null, null, null, null); } - public static BunqResponse> list(Integer mastercardActionId) { + public static BunqResponse> list(Long mastercardActionId) { return list(mastercardActionId, null, null, null); } - public static BunqResponse> list(Integer mastercardActionId, Integer monetaryAccountId) { + public static BunqResponse> list(Long mastercardActionId, Long monetaryAccountId) { return list(mastercardActionId, monetaryAccountId, null, null); } - public static BunqResponse> list(Integer mastercardActionId, Integer monetaryAccountId, Map params) { + public static BunqResponse> list(Long mastercardActionId, Long monetaryAccountId, Map params) { return list(mastercardActionId, monetaryAccountId, params, null); } /** */ - public static BunqResponse get(Integer mastercardActionId, Integer noteAttachmentMasterCardActionId, Integer monetaryAccountId, Map params, Map customHeaders) { + public static BunqResponse get(Long mastercardActionId, Long noteAttachmentMasterCardActionId, Long monetaryAccountId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_READ, determineUserId(), determineMonetaryAccountId(monetaryAccountId), mastercardActionId, noteAttachmentMasterCardActionId), params, customHeaders); @@ -246,30 +246,30 @@ public static BunqResponse get() { return get(null, null, null, null, null); } - public static BunqResponse get(Integer mastercardActionId) { + public static BunqResponse get(Long mastercardActionId) { return get(mastercardActionId, null, null, null, null); } - public static BunqResponse get(Integer mastercardActionId, Integer noteAttachmentMasterCardActionId) { + public static BunqResponse get(Long mastercardActionId, Long noteAttachmentMasterCardActionId) { return get(mastercardActionId, noteAttachmentMasterCardActionId, null, null, null); } - public static BunqResponse get(Integer mastercardActionId, Integer noteAttachmentMasterCardActionId, Integer monetaryAccountId) { + public static BunqResponse get(Long mastercardActionId, Long noteAttachmentMasterCardActionId, Long monetaryAccountId) { return get(mastercardActionId, noteAttachmentMasterCardActionId, monetaryAccountId, null, null); } - public static BunqResponse get(Integer mastercardActionId, Integer noteAttachmentMasterCardActionId, Integer monetaryAccountId, Map params) { + public static BunqResponse get(Long mastercardActionId, Long noteAttachmentMasterCardActionId, Long monetaryAccountId, Map params) { return get(mastercardActionId, noteAttachmentMasterCardActionId, monetaryAccountId, params, null); } /** * The id of the note. */ - public Integer getId() { + public Long getId() { return this.id; } - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } diff --git a/src/main/java/com/bunq/sdk/model/generated/endpoint/NoteAttachmentOpenBankingMerchantTransactionApiObject.java b/src/main/java/com/bunq/sdk/model/generated/endpoint/NoteAttachmentOpenBankingMerchantTransactionApiObject.java index bf87c560..6e374f0b 100644 --- a/src/main/java/com/bunq/sdk/model/generated/endpoint/NoteAttachmentOpenBankingMerchantTransactionApiObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/endpoint/NoteAttachmentOpenBankingMerchantTransactionApiObject.java @@ -48,7 +48,7 @@ public class NoteAttachmentOpenBankingMerchantTransactionApiObject extends BunqM */ @Expose @SerializedName("id") - private Integer id; + private Long id; /** * The timestamp of the note's creation. @@ -97,24 +97,24 @@ public class NoteAttachmentOpenBankingMerchantTransactionApiObject extends BunqM */ @Expose @SerializedName("attachment_id_field_for_request") - private Integer attachmentIdFieldForRequest; + private Long attachmentIdFieldForRequest; public NoteAttachmentOpenBankingMerchantTransactionApiObject() { this(null, null); } - public NoteAttachmentOpenBankingMerchantTransactionApiObject(Integer attachmentId) { + public NoteAttachmentOpenBankingMerchantTransactionApiObject(Long attachmentId) { this(attachmentId, null); } - public NoteAttachmentOpenBankingMerchantTransactionApiObject(Integer attachmentId, String description) { + public NoteAttachmentOpenBankingMerchantTransactionApiObject(Long attachmentId, String description) { this.descriptionFieldForRequest = description; this.attachmentIdFieldForRequest = attachmentId; } /** * @param attachmentId The reference to the uploaded file to attach to this note. * @param description Optional description of the attachment. */ - public static BunqResponse create(Integer openBankingMerchantTransactionId, Integer attachmentId, Integer monetaryAccountId, String description, Map customHeaders) { + public static BunqResponse create(Long openBankingMerchantTransactionId, Long attachmentId, Long monetaryAccountId, String description, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -131,30 +131,30 @@ public static BunqResponse create(Integer openBankingMerchantTransactio return processForId(responseRaw); } - public static BunqResponse create() { + public static BunqResponse create() { return create(null, null, null, null, null); } - public static BunqResponse create(Integer openBankingMerchantTransactionId) { + public static BunqResponse create(Long openBankingMerchantTransactionId) { return create(openBankingMerchantTransactionId, null, null, null, null); } - public static BunqResponse create(Integer openBankingMerchantTransactionId, Integer attachmentId) { + public static BunqResponse create(Long openBankingMerchantTransactionId, Long attachmentId) { return create(openBankingMerchantTransactionId, attachmentId, null, null, null); } - public static BunqResponse create(Integer openBankingMerchantTransactionId, Integer attachmentId, Integer monetaryAccountId) { + public static BunqResponse create(Long openBankingMerchantTransactionId, Long attachmentId, Long monetaryAccountId) { return create(openBankingMerchantTransactionId, attachmentId, monetaryAccountId, null, null); } - public static BunqResponse create(Integer openBankingMerchantTransactionId, Integer attachmentId, Integer monetaryAccountId, String description) { + public static BunqResponse create(Long openBankingMerchantTransactionId, Long attachmentId, Long monetaryAccountId, String description) { return create(openBankingMerchantTransactionId, attachmentId, monetaryAccountId, description, null); } /** * @param description Optional description of the attachment. */ - public static BunqResponse update(Integer openBankingMerchantTransactionId, Integer noteAttachmentOpenBankingMerchantTransactionId, Integer monetaryAccountId, String description, Map customHeaders) { + public static BunqResponse update(Long openBankingMerchantTransactionId, Long noteAttachmentOpenBankingMerchantTransactionId, Long monetaryAccountId, String description, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -170,46 +170,46 @@ public static BunqResponse update(Integer openBankingMerchantTransactio return processForId(responseRaw); } - public static BunqResponse update(Integer openBankingMerchantTransactionId) { + public static BunqResponse update(Long openBankingMerchantTransactionId) { return update(openBankingMerchantTransactionId, null, null, null, null); } - public static BunqResponse update(Integer openBankingMerchantTransactionId, Integer noteAttachmentOpenBankingMerchantTransactionId) { + public static BunqResponse update(Long openBankingMerchantTransactionId, Long noteAttachmentOpenBankingMerchantTransactionId) { return update(openBankingMerchantTransactionId, noteAttachmentOpenBankingMerchantTransactionId, null, null, null); } - public static BunqResponse update(Integer openBankingMerchantTransactionId, Integer noteAttachmentOpenBankingMerchantTransactionId, Integer monetaryAccountId) { + public static BunqResponse update(Long openBankingMerchantTransactionId, Long noteAttachmentOpenBankingMerchantTransactionId, Long monetaryAccountId) { return update(openBankingMerchantTransactionId, noteAttachmentOpenBankingMerchantTransactionId, monetaryAccountId, null, null); } - public static BunqResponse update(Integer openBankingMerchantTransactionId, Integer noteAttachmentOpenBankingMerchantTransactionId, Integer monetaryAccountId, String description) { + public static BunqResponse update(Long openBankingMerchantTransactionId, Long noteAttachmentOpenBankingMerchantTransactionId, Long monetaryAccountId, String description) { return update(openBankingMerchantTransactionId, noteAttachmentOpenBankingMerchantTransactionId, monetaryAccountId, description, null); } /** */ - public static BunqResponse delete(Integer openBankingMerchantTransactionId, Integer noteAttachmentOpenBankingMerchantTransactionId, Integer monetaryAccountId, Map customHeaders) { + public static BunqResponse delete(Long openBankingMerchantTransactionId, Long noteAttachmentOpenBankingMerchantTransactionId, Long monetaryAccountId, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.delete(String.format(ENDPOINT_URL_DELETE, determineUserId(), determineMonetaryAccountId(monetaryAccountId), openBankingMerchantTransactionId, noteAttachmentOpenBankingMerchantTransactionId), customHeaders); return new BunqResponse<>(null, responseRaw.getHeaders()); } - public static BunqResponse delete(Integer openBankingMerchantTransactionId) { + public static BunqResponse delete(Long openBankingMerchantTransactionId) { return delete(openBankingMerchantTransactionId, null, null, null); } - public static BunqResponse delete(Integer openBankingMerchantTransactionId, Integer noteAttachmentOpenBankingMerchantTransactionId) { + public static BunqResponse delete(Long openBankingMerchantTransactionId, Long noteAttachmentOpenBankingMerchantTransactionId) { return delete(openBankingMerchantTransactionId, noteAttachmentOpenBankingMerchantTransactionId, null, null); } - public static BunqResponse delete(Integer openBankingMerchantTransactionId, Integer noteAttachmentOpenBankingMerchantTransactionId, Integer monetaryAccountId) { + public static BunqResponse delete(Long openBankingMerchantTransactionId, Long noteAttachmentOpenBankingMerchantTransactionId, Long monetaryAccountId) { return delete(openBankingMerchantTransactionId, noteAttachmentOpenBankingMerchantTransactionId, monetaryAccountId, null); } /** */ - public static BunqResponse> list(Integer openBankingMerchantTransactionId, Integer monetaryAccountId, Map params, Map customHeaders) { + public static BunqResponse> list(Long openBankingMerchantTransactionId, Long monetaryAccountId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_LISTING, determineUserId(), determineMonetaryAccountId(monetaryAccountId), openBankingMerchantTransactionId), params, customHeaders); @@ -220,21 +220,21 @@ public static BunqResponse> list(Integer openBankingMerchantTransactionId) { + public static BunqResponse> list(Long openBankingMerchantTransactionId) { return list(openBankingMerchantTransactionId, null, null, null); } - public static BunqResponse> list(Integer openBankingMerchantTransactionId, Integer monetaryAccountId) { + public static BunqResponse> list(Long openBankingMerchantTransactionId, Long monetaryAccountId) { return list(openBankingMerchantTransactionId, monetaryAccountId, null, null); } - public static BunqResponse> list(Integer openBankingMerchantTransactionId, Integer monetaryAccountId, Map params) { + public static BunqResponse> list(Long openBankingMerchantTransactionId, Long monetaryAccountId, Map params) { return list(openBankingMerchantTransactionId, monetaryAccountId, params, null); } /** */ - public static BunqResponse get(Integer openBankingMerchantTransactionId, Integer noteAttachmentOpenBankingMerchantTransactionId, Integer monetaryAccountId, Map params, Map customHeaders) { + public static BunqResponse get(Long openBankingMerchantTransactionId, Long noteAttachmentOpenBankingMerchantTransactionId, Long monetaryAccountId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_READ, determineUserId(), determineMonetaryAccountId(monetaryAccountId), openBankingMerchantTransactionId, noteAttachmentOpenBankingMerchantTransactionId), params, customHeaders); @@ -245,30 +245,30 @@ public static BunqResponse get(Integer openBankingMerchantTransactionId) { + public static BunqResponse get(Long openBankingMerchantTransactionId) { return get(openBankingMerchantTransactionId, null, null, null, null); } - public static BunqResponse get(Integer openBankingMerchantTransactionId, Integer noteAttachmentOpenBankingMerchantTransactionId) { + public static BunqResponse get(Long openBankingMerchantTransactionId, Long noteAttachmentOpenBankingMerchantTransactionId) { return get(openBankingMerchantTransactionId, noteAttachmentOpenBankingMerchantTransactionId, null, null, null); } - public static BunqResponse get(Integer openBankingMerchantTransactionId, Integer noteAttachmentOpenBankingMerchantTransactionId, Integer monetaryAccountId) { + public static BunqResponse get(Long openBankingMerchantTransactionId, Long noteAttachmentOpenBankingMerchantTransactionId, Long monetaryAccountId) { return get(openBankingMerchantTransactionId, noteAttachmentOpenBankingMerchantTransactionId, monetaryAccountId, null, null); } - public static BunqResponse get(Integer openBankingMerchantTransactionId, Integer noteAttachmentOpenBankingMerchantTransactionId, Integer monetaryAccountId, Map params) { + public static BunqResponse get(Long openBankingMerchantTransactionId, Long noteAttachmentOpenBankingMerchantTransactionId, Long monetaryAccountId, Map params) { return get(openBankingMerchantTransactionId, noteAttachmentOpenBankingMerchantTransactionId, monetaryAccountId, params, null); } /** * The id of the note. */ - public Integer getId() { + public Long getId() { return this.id; } - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } diff --git a/src/main/java/com/bunq/sdk/model/generated/endpoint/NoteAttachmentPaymentApiObject.java b/src/main/java/com/bunq/sdk/model/generated/endpoint/NoteAttachmentPaymentApiObject.java index e14d49af..2504ba53 100644 --- a/src/main/java/com/bunq/sdk/model/generated/endpoint/NoteAttachmentPaymentApiObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/endpoint/NoteAttachmentPaymentApiObject.java @@ -48,7 +48,7 @@ public class NoteAttachmentPaymentApiObject extends BunqModel { */ @Expose @SerializedName("id") - private Integer id; + private Long id; /** * The timestamp of the note's creation. @@ -97,24 +97,24 @@ public class NoteAttachmentPaymentApiObject extends BunqModel { */ @Expose @SerializedName("attachment_id_field_for_request") - private Integer attachmentIdFieldForRequest; + private Long attachmentIdFieldForRequest; public NoteAttachmentPaymentApiObject() { this(null, null); } - public NoteAttachmentPaymentApiObject(Integer attachmentId) { + public NoteAttachmentPaymentApiObject(Long attachmentId) { this(attachmentId, null); } - public NoteAttachmentPaymentApiObject(Integer attachmentId, String description) { + public NoteAttachmentPaymentApiObject(Long attachmentId, String description) { this.descriptionFieldForRequest = description; this.attachmentIdFieldForRequest = attachmentId; } /** * @param attachmentId The reference to the uploaded file to attach to this note. * @param description Optional description of the attachment. */ - public static BunqResponse create(Integer paymentId, Integer attachmentId, Integer monetaryAccountId, String description, Map customHeaders) { + public static BunqResponse create(Long paymentId, Long attachmentId, Long monetaryAccountId, String description, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -131,30 +131,30 @@ public static BunqResponse create(Integer paymentId, Integer attachment return processForId(responseRaw); } - public static BunqResponse create() { + public static BunqResponse create() { return create(null, null, null, null, null); } - public static BunqResponse create(Integer paymentId) { + public static BunqResponse create(Long paymentId) { return create(paymentId, null, null, null, null); } - public static BunqResponse create(Integer paymentId, Integer attachmentId) { + public static BunqResponse create(Long paymentId, Long attachmentId) { return create(paymentId, attachmentId, null, null, null); } - public static BunqResponse create(Integer paymentId, Integer attachmentId, Integer monetaryAccountId) { + public static BunqResponse create(Long paymentId, Long attachmentId, Long monetaryAccountId) { return create(paymentId, attachmentId, monetaryAccountId, null, null); } - public static BunqResponse create(Integer paymentId, Integer attachmentId, Integer monetaryAccountId, String description) { + public static BunqResponse create(Long paymentId, Long attachmentId, Long monetaryAccountId, String description) { return create(paymentId, attachmentId, monetaryAccountId, description, null); } /** * @param description Optional description of the attachment. */ - public static BunqResponse update(Integer paymentId, Integer noteAttachmentPaymentId, Integer monetaryAccountId, String description, Map customHeaders) { + public static BunqResponse update(Long paymentId, Long noteAttachmentPaymentId, Long monetaryAccountId, String description, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -170,47 +170,47 @@ public static BunqResponse update(Integer paymentId, Integer noteAttach return processForId(responseRaw); } - public static BunqResponse update(Integer paymentId) { + public static BunqResponse update(Long paymentId) { return update(paymentId, null, null, null, null); } - public static BunqResponse update(Integer paymentId, Integer noteAttachmentPaymentId) { + public static BunqResponse update(Long paymentId, Long noteAttachmentPaymentId) { return update(paymentId, noteAttachmentPaymentId, null, null, null); } - public static BunqResponse update(Integer paymentId, Integer noteAttachmentPaymentId, Integer monetaryAccountId) { + public static BunqResponse update(Long paymentId, Long noteAttachmentPaymentId, Long monetaryAccountId) { return update(paymentId, noteAttachmentPaymentId, monetaryAccountId, null, null); } - public static BunqResponse update(Integer paymentId, Integer noteAttachmentPaymentId, Integer monetaryAccountId, String description) { + public static BunqResponse update(Long paymentId, Long noteAttachmentPaymentId, Long monetaryAccountId, String description) { return update(paymentId, noteAttachmentPaymentId, monetaryAccountId, description, null); } /** */ - public static BunqResponse delete(Integer paymentId, Integer noteAttachmentPaymentId, Integer monetaryAccountId, Map customHeaders) { + public static BunqResponse delete(Long paymentId, Long noteAttachmentPaymentId, Long monetaryAccountId, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.delete(String.format(ENDPOINT_URL_DELETE, determineUserId(), determineMonetaryAccountId(monetaryAccountId), paymentId, noteAttachmentPaymentId), customHeaders); return new BunqResponse<>(null, responseRaw.getHeaders()); } - public static BunqResponse delete(Integer paymentId) { + public static BunqResponse delete(Long paymentId) { return delete(paymentId, null, null, null); } - public static BunqResponse delete(Integer paymentId, Integer noteAttachmentPaymentId) { + public static BunqResponse delete(Long paymentId, Long noteAttachmentPaymentId) { return delete(paymentId, noteAttachmentPaymentId, null, null); } - public static BunqResponse delete(Integer paymentId, Integer noteAttachmentPaymentId, Integer monetaryAccountId) { + public static BunqResponse delete(Long paymentId, Long noteAttachmentPaymentId, Long monetaryAccountId) { return delete(paymentId, noteAttachmentPaymentId, monetaryAccountId, null); } /** * Manage the notes for a given user. */ - public static BunqResponse> list(Integer paymentId, Integer monetaryAccountId, Map params, Map customHeaders) { + public static BunqResponse> list(Long paymentId, Long monetaryAccountId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_LISTING, determineUserId(), determineMonetaryAccountId(monetaryAccountId), paymentId), params, customHeaders); @@ -221,21 +221,21 @@ public static BunqResponse> list() { return list(null, null, null, null); } - public static BunqResponse> list(Integer paymentId) { + public static BunqResponse> list(Long paymentId) { return list(paymentId, null, null, null); } - public static BunqResponse> list(Integer paymentId, Integer monetaryAccountId) { + public static BunqResponse> list(Long paymentId, Long monetaryAccountId) { return list(paymentId, monetaryAccountId, null, null); } - public static BunqResponse> list(Integer paymentId, Integer monetaryAccountId, Map params) { + public static BunqResponse> list(Long paymentId, Long monetaryAccountId, Map params) { return list(paymentId, monetaryAccountId, params, null); } /** */ - public static BunqResponse get(Integer paymentId, Integer noteAttachmentPaymentId, Integer monetaryAccountId, Map params, Map customHeaders) { + public static BunqResponse get(Long paymentId, Long noteAttachmentPaymentId, Long monetaryAccountId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_READ, determineUserId(), determineMonetaryAccountId(monetaryAccountId), paymentId, noteAttachmentPaymentId), params, customHeaders); @@ -246,30 +246,30 @@ public static BunqResponse get() { return get(null, null, null, null, null); } - public static BunqResponse get(Integer paymentId) { + public static BunqResponse get(Long paymentId) { return get(paymentId, null, null, null, null); } - public static BunqResponse get(Integer paymentId, Integer noteAttachmentPaymentId) { + public static BunqResponse get(Long paymentId, Long noteAttachmentPaymentId) { return get(paymentId, noteAttachmentPaymentId, null, null, null); } - public static BunqResponse get(Integer paymentId, Integer noteAttachmentPaymentId, Integer monetaryAccountId) { + public static BunqResponse get(Long paymentId, Long noteAttachmentPaymentId, Long monetaryAccountId) { return get(paymentId, noteAttachmentPaymentId, monetaryAccountId, null, null); } - public static BunqResponse get(Integer paymentId, Integer noteAttachmentPaymentId, Integer monetaryAccountId, Map params) { + public static BunqResponse get(Long paymentId, Long noteAttachmentPaymentId, Long monetaryAccountId, Map params) { return get(paymentId, noteAttachmentPaymentId, monetaryAccountId, params, null); } /** * The id of the note. */ - public Integer getId() { + public Long getId() { return this.id; } - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } diff --git a/src/main/java/com/bunq/sdk/model/generated/endpoint/NoteAttachmentPaymentBatchApiObject.java b/src/main/java/com/bunq/sdk/model/generated/endpoint/NoteAttachmentPaymentBatchApiObject.java index 31223507..52667797 100644 --- a/src/main/java/com/bunq/sdk/model/generated/endpoint/NoteAttachmentPaymentBatchApiObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/endpoint/NoteAttachmentPaymentBatchApiObject.java @@ -48,7 +48,7 @@ public class NoteAttachmentPaymentBatchApiObject extends BunqModel { */ @Expose @SerializedName("id") - private Integer id; + private Long id; /** * The timestamp of the note's creation. @@ -97,24 +97,24 @@ public class NoteAttachmentPaymentBatchApiObject extends BunqModel { */ @Expose @SerializedName("attachment_id_field_for_request") - private Integer attachmentIdFieldForRequest; + private Long attachmentIdFieldForRequest; public NoteAttachmentPaymentBatchApiObject() { this(null, null); } - public NoteAttachmentPaymentBatchApiObject(Integer attachmentId) { + public NoteAttachmentPaymentBatchApiObject(Long attachmentId) { this(attachmentId, null); } - public NoteAttachmentPaymentBatchApiObject(Integer attachmentId, String description) { + public NoteAttachmentPaymentBatchApiObject(Long attachmentId, String description) { this.descriptionFieldForRequest = description; this.attachmentIdFieldForRequest = attachmentId; } /** * @param attachmentId The reference to the uploaded file to attach to this note. * @param description Optional description of the attachment. */ - public static BunqResponse create(Integer paymentBatchId, Integer attachmentId, Integer monetaryAccountId, String description, Map customHeaders) { + public static BunqResponse create(Long paymentBatchId, Long attachmentId, Long monetaryAccountId, String description, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -131,30 +131,30 @@ public static BunqResponse create(Integer paymentBatchId, Integer attac return processForId(responseRaw); } - public static BunqResponse create() { + public static BunqResponse create() { return create(null, null, null, null, null); } - public static BunqResponse create(Integer paymentBatchId) { + public static BunqResponse create(Long paymentBatchId) { return create(paymentBatchId, null, null, null, null); } - public static BunqResponse create(Integer paymentBatchId, Integer attachmentId) { + public static BunqResponse create(Long paymentBatchId, Long attachmentId) { return create(paymentBatchId, attachmentId, null, null, null); } - public static BunqResponse create(Integer paymentBatchId, Integer attachmentId, Integer monetaryAccountId) { + public static BunqResponse create(Long paymentBatchId, Long attachmentId, Long monetaryAccountId) { return create(paymentBatchId, attachmentId, monetaryAccountId, null, null); } - public static BunqResponse create(Integer paymentBatchId, Integer attachmentId, Integer monetaryAccountId, String description) { + public static BunqResponse create(Long paymentBatchId, Long attachmentId, Long monetaryAccountId, String description) { return create(paymentBatchId, attachmentId, monetaryAccountId, description, null); } /** * @param description Optional description of the attachment. */ - public static BunqResponse update(Integer paymentBatchId, Integer noteAttachmentPaymentBatchId, Integer monetaryAccountId, String description, Map customHeaders) { + public static BunqResponse update(Long paymentBatchId, Long noteAttachmentPaymentBatchId, Long monetaryAccountId, String description, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -170,47 +170,47 @@ public static BunqResponse update(Integer paymentBatchId, Integer noteA return processForId(responseRaw); } - public static BunqResponse update(Integer paymentBatchId) { + public static BunqResponse update(Long paymentBatchId) { return update(paymentBatchId, null, null, null, null); } - public static BunqResponse update(Integer paymentBatchId, Integer noteAttachmentPaymentBatchId) { + public static BunqResponse update(Long paymentBatchId, Long noteAttachmentPaymentBatchId) { return update(paymentBatchId, noteAttachmentPaymentBatchId, null, null, null); } - public static BunqResponse update(Integer paymentBatchId, Integer noteAttachmentPaymentBatchId, Integer monetaryAccountId) { + public static BunqResponse update(Long paymentBatchId, Long noteAttachmentPaymentBatchId, Long monetaryAccountId) { return update(paymentBatchId, noteAttachmentPaymentBatchId, monetaryAccountId, null, null); } - public static BunqResponse update(Integer paymentBatchId, Integer noteAttachmentPaymentBatchId, Integer monetaryAccountId, String description) { + public static BunqResponse update(Long paymentBatchId, Long noteAttachmentPaymentBatchId, Long monetaryAccountId, String description) { return update(paymentBatchId, noteAttachmentPaymentBatchId, monetaryAccountId, description, null); } /** */ - public static BunqResponse delete(Integer paymentBatchId, Integer noteAttachmentPaymentBatchId, Integer monetaryAccountId, Map customHeaders) { + public static BunqResponse delete(Long paymentBatchId, Long noteAttachmentPaymentBatchId, Long monetaryAccountId, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.delete(String.format(ENDPOINT_URL_DELETE, determineUserId(), determineMonetaryAccountId(monetaryAccountId), paymentBatchId, noteAttachmentPaymentBatchId), customHeaders); return new BunqResponse<>(null, responseRaw.getHeaders()); } - public static BunqResponse delete(Integer paymentBatchId) { + public static BunqResponse delete(Long paymentBatchId) { return delete(paymentBatchId, null, null, null); } - public static BunqResponse delete(Integer paymentBatchId, Integer noteAttachmentPaymentBatchId) { + public static BunqResponse delete(Long paymentBatchId, Long noteAttachmentPaymentBatchId) { return delete(paymentBatchId, noteAttachmentPaymentBatchId, null, null); } - public static BunqResponse delete(Integer paymentBatchId, Integer noteAttachmentPaymentBatchId, Integer monetaryAccountId) { + public static BunqResponse delete(Long paymentBatchId, Long noteAttachmentPaymentBatchId, Long monetaryAccountId) { return delete(paymentBatchId, noteAttachmentPaymentBatchId, monetaryAccountId, null); } /** * Manage the notes for a given user. */ - public static BunqResponse> list(Integer paymentBatchId, Integer monetaryAccountId, Map params, Map customHeaders) { + public static BunqResponse> list(Long paymentBatchId, Long monetaryAccountId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_LISTING, determineUserId(), determineMonetaryAccountId(monetaryAccountId), paymentBatchId), params, customHeaders); @@ -221,21 +221,21 @@ public static BunqResponse> list() { return list(null, null, null, null); } - public static BunqResponse> list(Integer paymentBatchId) { + public static BunqResponse> list(Long paymentBatchId) { return list(paymentBatchId, null, null, null); } - public static BunqResponse> list(Integer paymentBatchId, Integer monetaryAccountId) { + public static BunqResponse> list(Long paymentBatchId, Long monetaryAccountId) { return list(paymentBatchId, monetaryAccountId, null, null); } - public static BunqResponse> list(Integer paymentBatchId, Integer monetaryAccountId, Map params) { + public static BunqResponse> list(Long paymentBatchId, Long monetaryAccountId, Map params) { return list(paymentBatchId, monetaryAccountId, params, null); } /** */ - public static BunqResponse get(Integer paymentBatchId, Integer noteAttachmentPaymentBatchId, Integer monetaryAccountId, Map params, Map customHeaders) { + public static BunqResponse get(Long paymentBatchId, Long noteAttachmentPaymentBatchId, Long monetaryAccountId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_READ, determineUserId(), determineMonetaryAccountId(monetaryAccountId), paymentBatchId, noteAttachmentPaymentBatchId), params, customHeaders); @@ -246,30 +246,30 @@ public static BunqResponse get() { return get(null, null, null, null, null); } - public static BunqResponse get(Integer paymentBatchId) { + public static BunqResponse get(Long paymentBatchId) { return get(paymentBatchId, null, null, null, null); } - public static BunqResponse get(Integer paymentBatchId, Integer noteAttachmentPaymentBatchId) { + public static BunqResponse get(Long paymentBatchId, Long noteAttachmentPaymentBatchId) { return get(paymentBatchId, noteAttachmentPaymentBatchId, null, null, null); } - public static BunqResponse get(Integer paymentBatchId, Integer noteAttachmentPaymentBatchId, Integer monetaryAccountId) { + public static BunqResponse get(Long paymentBatchId, Long noteAttachmentPaymentBatchId, Long monetaryAccountId) { return get(paymentBatchId, noteAttachmentPaymentBatchId, monetaryAccountId, null, null); } - public static BunqResponse get(Integer paymentBatchId, Integer noteAttachmentPaymentBatchId, Integer monetaryAccountId, Map params) { + public static BunqResponse get(Long paymentBatchId, Long noteAttachmentPaymentBatchId, Long monetaryAccountId, Map params) { return get(paymentBatchId, noteAttachmentPaymentBatchId, monetaryAccountId, params, null); } /** * The id of the note. */ - public Integer getId() { + public Long getId() { return this.id; } - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } diff --git a/src/main/java/com/bunq/sdk/model/generated/endpoint/NoteAttachmentPaymentDelayedApiObject.java b/src/main/java/com/bunq/sdk/model/generated/endpoint/NoteAttachmentPaymentDelayedApiObject.java index eb20d8f2..4ecef237 100644 --- a/src/main/java/com/bunq/sdk/model/generated/endpoint/NoteAttachmentPaymentDelayedApiObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/endpoint/NoteAttachmentPaymentDelayedApiObject.java @@ -48,7 +48,7 @@ public class NoteAttachmentPaymentDelayedApiObject extends BunqModel { */ @Expose @SerializedName("id") - private Integer id; + private Long id; /** * The timestamp of the note's creation. @@ -97,24 +97,24 @@ public class NoteAttachmentPaymentDelayedApiObject extends BunqModel { */ @Expose @SerializedName("attachment_id_field_for_request") - private Integer attachmentIdFieldForRequest; + private Long attachmentIdFieldForRequest; public NoteAttachmentPaymentDelayedApiObject() { this(null, null); } - public NoteAttachmentPaymentDelayedApiObject(Integer attachmentId) { + public NoteAttachmentPaymentDelayedApiObject(Long attachmentId) { this(attachmentId, null); } - public NoteAttachmentPaymentDelayedApiObject(Integer attachmentId, String description) { + public NoteAttachmentPaymentDelayedApiObject(Long attachmentId, String description) { this.descriptionFieldForRequest = description; this.attachmentIdFieldForRequest = attachmentId; } /** * @param attachmentId The reference to the uploaded file to attach to this note. * @param description Optional description of the attachment. */ - public static BunqResponse create(Integer paymentDelayedId, Integer attachmentId, Integer monetaryAccountId, String description, Map customHeaders) { + public static BunqResponse create(Long paymentDelayedId, Long attachmentId, Long monetaryAccountId, String description, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -131,30 +131,30 @@ public static BunqResponse create(Integer paymentDelayedId, Integer att return processForId(responseRaw); } - public static BunqResponse create() { + public static BunqResponse create() { return create(null, null, null, null, null); } - public static BunqResponse create(Integer paymentDelayedId) { + public static BunqResponse create(Long paymentDelayedId) { return create(paymentDelayedId, null, null, null, null); } - public static BunqResponse create(Integer paymentDelayedId, Integer attachmentId) { + public static BunqResponse create(Long paymentDelayedId, Long attachmentId) { return create(paymentDelayedId, attachmentId, null, null, null); } - public static BunqResponse create(Integer paymentDelayedId, Integer attachmentId, Integer monetaryAccountId) { + public static BunqResponse create(Long paymentDelayedId, Long attachmentId, Long monetaryAccountId) { return create(paymentDelayedId, attachmentId, monetaryAccountId, null, null); } - public static BunqResponse create(Integer paymentDelayedId, Integer attachmentId, Integer monetaryAccountId, String description) { + public static BunqResponse create(Long paymentDelayedId, Long attachmentId, Long monetaryAccountId, String description) { return create(paymentDelayedId, attachmentId, monetaryAccountId, description, null); } /** * @param description Optional description of the attachment. */ - public static BunqResponse update(Integer paymentDelayedId, Integer noteAttachmentPaymentDelayedId, Integer monetaryAccountId, String description, Map customHeaders) { + public static BunqResponse update(Long paymentDelayedId, Long noteAttachmentPaymentDelayedId, Long monetaryAccountId, String description, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -170,46 +170,46 @@ public static BunqResponse update(Integer paymentDelayedId, Integer not return processForId(responseRaw); } - public static BunqResponse update(Integer paymentDelayedId) { + public static BunqResponse update(Long paymentDelayedId) { return update(paymentDelayedId, null, null, null, null); } - public static BunqResponse update(Integer paymentDelayedId, Integer noteAttachmentPaymentDelayedId) { + public static BunqResponse update(Long paymentDelayedId, Long noteAttachmentPaymentDelayedId) { return update(paymentDelayedId, noteAttachmentPaymentDelayedId, null, null, null); } - public static BunqResponse update(Integer paymentDelayedId, Integer noteAttachmentPaymentDelayedId, Integer monetaryAccountId) { + public static BunqResponse update(Long paymentDelayedId, Long noteAttachmentPaymentDelayedId, Long monetaryAccountId) { return update(paymentDelayedId, noteAttachmentPaymentDelayedId, monetaryAccountId, null, null); } - public static BunqResponse update(Integer paymentDelayedId, Integer noteAttachmentPaymentDelayedId, Integer monetaryAccountId, String description) { + public static BunqResponse update(Long paymentDelayedId, Long noteAttachmentPaymentDelayedId, Long monetaryAccountId, String description) { return update(paymentDelayedId, noteAttachmentPaymentDelayedId, monetaryAccountId, description, null); } /** */ - public static BunqResponse delete(Integer paymentDelayedId, Integer noteAttachmentPaymentDelayedId, Integer monetaryAccountId, Map customHeaders) { + public static BunqResponse delete(Long paymentDelayedId, Long noteAttachmentPaymentDelayedId, Long monetaryAccountId, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.delete(String.format(ENDPOINT_URL_DELETE, determineUserId(), determineMonetaryAccountId(monetaryAccountId), paymentDelayedId, noteAttachmentPaymentDelayedId), customHeaders); return new BunqResponse<>(null, responseRaw.getHeaders()); } - public static BunqResponse delete(Integer paymentDelayedId) { + public static BunqResponse delete(Long paymentDelayedId) { return delete(paymentDelayedId, null, null, null); } - public static BunqResponse delete(Integer paymentDelayedId, Integer noteAttachmentPaymentDelayedId) { + public static BunqResponse delete(Long paymentDelayedId, Long noteAttachmentPaymentDelayedId) { return delete(paymentDelayedId, noteAttachmentPaymentDelayedId, null, null); } - public static BunqResponse delete(Integer paymentDelayedId, Integer noteAttachmentPaymentDelayedId, Integer monetaryAccountId) { + public static BunqResponse delete(Long paymentDelayedId, Long noteAttachmentPaymentDelayedId, Long monetaryAccountId) { return delete(paymentDelayedId, noteAttachmentPaymentDelayedId, monetaryAccountId, null); } /** */ - public static BunqResponse> list(Integer paymentDelayedId, Integer monetaryAccountId, Map params, Map customHeaders) { + public static BunqResponse> list(Long paymentDelayedId, Long monetaryAccountId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_LISTING, determineUserId(), determineMonetaryAccountId(monetaryAccountId), paymentDelayedId), params, customHeaders); @@ -220,21 +220,21 @@ public static BunqResponse> list() { return list(null, null, null, null); } - public static BunqResponse> list(Integer paymentDelayedId) { + public static BunqResponse> list(Long paymentDelayedId) { return list(paymentDelayedId, null, null, null); } - public static BunqResponse> list(Integer paymentDelayedId, Integer monetaryAccountId) { + public static BunqResponse> list(Long paymentDelayedId, Long monetaryAccountId) { return list(paymentDelayedId, monetaryAccountId, null, null); } - public static BunqResponse> list(Integer paymentDelayedId, Integer monetaryAccountId, Map params) { + public static BunqResponse> list(Long paymentDelayedId, Long monetaryAccountId, Map params) { return list(paymentDelayedId, monetaryAccountId, params, null); } /** */ - public static BunqResponse get(Integer paymentDelayedId, Integer noteAttachmentPaymentDelayedId, Integer monetaryAccountId, Map params, Map customHeaders) { + public static BunqResponse get(Long paymentDelayedId, Long noteAttachmentPaymentDelayedId, Long monetaryAccountId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_READ, determineUserId(), determineMonetaryAccountId(monetaryAccountId), paymentDelayedId, noteAttachmentPaymentDelayedId), params, customHeaders); @@ -245,30 +245,30 @@ public static BunqResponse get() { return get(null, null, null, null, null); } - public static BunqResponse get(Integer paymentDelayedId) { + public static BunqResponse get(Long paymentDelayedId) { return get(paymentDelayedId, null, null, null, null); } - public static BunqResponse get(Integer paymentDelayedId, Integer noteAttachmentPaymentDelayedId) { + public static BunqResponse get(Long paymentDelayedId, Long noteAttachmentPaymentDelayedId) { return get(paymentDelayedId, noteAttachmentPaymentDelayedId, null, null, null); } - public static BunqResponse get(Integer paymentDelayedId, Integer noteAttachmentPaymentDelayedId, Integer monetaryAccountId) { + public static BunqResponse get(Long paymentDelayedId, Long noteAttachmentPaymentDelayedId, Long monetaryAccountId) { return get(paymentDelayedId, noteAttachmentPaymentDelayedId, monetaryAccountId, null, null); } - public static BunqResponse get(Integer paymentDelayedId, Integer noteAttachmentPaymentDelayedId, Integer monetaryAccountId, Map params) { + public static BunqResponse get(Long paymentDelayedId, Long noteAttachmentPaymentDelayedId, Long monetaryAccountId, Map params) { return get(paymentDelayedId, noteAttachmentPaymentDelayedId, monetaryAccountId, params, null); } /** * The id of the note. */ - public Integer getId() { + public Long getId() { return this.id; } - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } diff --git a/src/main/java/com/bunq/sdk/model/generated/endpoint/NoteAttachmentRequestInquiryApiObject.java b/src/main/java/com/bunq/sdk/model/generated/endpoint/NoteAttachmentRequestInquiryApiObject.java index df69e859..60886403 100644 --- a/src/main/java/com/bunq/sdk/model/generated/endpoint/NoteAttachmentRequestInquiryApiObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/endpoint/NoteAttachmentRequestInquiryApiObject.java @@ -48,7 +48,7 @@ public class NoteAttachmentRequestInquiryApiObject extends BunqModel { */ @Expose @SerializedName("id") - private Integer id; + private Long id; /** * The timestamp of the note's creation. @@ -97,24 +97,24 @@ public class NoteAttachmentRequestInquiryApiObject extends BunqModel { */ @Expose @SerializedName("attachment_id_field_for_request") - private Integer attachmentIdFieldForRequest; + private Long attachmentIdFieldForRequest; public NoteAttachmentRequestInquiryApiObject() { this(null, null); } - public NoteAttachmentRequestInquiryApiObject(Integer attachmentId) { + public NoteAttachmentRequestInquiryApiObject(Long attachmentId) { this(attachmentId, null); } - public NoteAttachmentRequestInquiryApiObject(Integer attachmentId, String description) { + public NoteAttachmentRequestInquiryApiObject(Long attachmentId, String description) { this.descriptionFieldForRequest = description; this.attachmentIdFieldForRequest = attachmentId; } /** * @param attachmentId The reference to the uploaded file to attach to this note. * @param description Optional description of the attachment. */ - public static BunqResponse create(Integer requestInquiryId, Integer attachmentId, Integer monetaryAccountId, String description, Map customHeaders) { + public static BunqResponse create(Long requestInquiryId, Long attachmentId, Long monetaryAccountId, String description, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -131,30 +131,30 @@ public static BunqResponse create(Integer requestInquiryId, Integer att return processForId(responseRaw); } - public static BunqResponse create() { + public static BunqResponse create() { return create(null, null, null, null, null); } - public static BunqResponse create(Integer requestInquiryId) { + public static BunqResponse create(Long requestInquiryId) { return create(requestInquiryId, null, null, null, null); } - public static BunqResponse create(Integer requestInquiryId, Integer attachmentId) { + public static BunqResponse create(Long requestInquiryId, Long attachmentId) { return create(requestInquiryId, attachmentId, null, null, null); } - public static BunqResponse create(Integer requestInquiryId, Integer attachmentId, Integer monetaryAccountId) { + public static BunqResponse create(Long requestInquiryId, Long attachmentId, Long monetaryAccountId) { return create(requestInquiryId, attachmentId, monetaryAccountId, null, null); } - public static BunqResponse create(Integer requestInquiryId, Integer attachmentId, Integer monetaryAccountId, String description) { + public static BunqResponse create(Long requestInquiryId, Long attachmentId, Long monetaryAccountId, String description) { return create(requestInquiryId, attachmentId, monetaryAccountId, description, null); } /** * @param description Optional description of the attachment. */ - public static BunqResponse update(Integer requestInquiryId, Integer noteAttachmentRequestInquiryId, Integer monetaryAccountId, String description, Map customHeaders) { + public static BunqResponse update(Long requestInquiryId, Long noteAttachmentRequestInquiryId, Long monetaryAccountId, String description, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -170,47 +170,47 @@ public static BunqResponse update(Integer requestInquiryId, Integer not return processForId(responseRaw); } - public static BunqResponse update(Integer requestInquiryId) { + public static BunqResponse update(Long requestInquiryId) { return update(requestInquiryId, null, null, null, null); } - public static BunqResponse update(Integer requestInquiryId, Integer noteAttachmentRequestInquiryId) { + public static BunqResponse update(Long requestInquiryId, Long noteAttachmentRequestInquiryId) { return update(requestInquiryId, noteAttachmentRequestInquiryId, null, null, null); } - public static BunqResponse update(Integer requestInquiryId, Integer noteAttachmentRequestInquiryId, Integer monetaryAccountId) { + public static BunqResponse update(Long requestInquiryId, Long noteAttachmentRequestInquiryId, Long monetaryAccountId) { return update(requestInquiryId, noteAttachmentRequestInquiryId, monetaryAccountId, null, null); } - public static BunqResponse update(Integer requestInquiryId, Integer noteAttachmentRequestInquiryId, Integer monetaryAccountId, String description) { + public static BunqResponse update(Long requestInquiryId, Long noteAttachmentRequestInquiryId, Long monetaryAccountId, String description) { return update(requestInquiryId, noteAttachmentRequestInquiryId, monetaryAccountId, description, null); } /** */ - public static BunqResponse delete(Integer requestInquiryId, Integer noteAttachmentRequestInquiryId, Integer monetaryAccountId, Map customHeaders) { + public static BunqResponse delete(Long requestInquiryId, Long noteAttachmentRequestInquiryId, Long monetaryAccountId, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.delete(String.format(ENDPOINT_URL_DELETE, determineUserId(), determineMonetaryAccountId(monetaryAccountId), requestInquiryId, noteAttachmentRequestInquiryId), customHeaders); return new BunqResponse<>(null, responseRaw.getHeaders()); } - public static BunqResponse delete(Integer requestInquiryId) { + public static BunqResponse delete(Long requestInquiryId) { return delete(requestInquiryId, null, null, null); } - public static BunqResponse delete(Integer requestInquiryId, Integer noteAttachmentRequestInquiryId) { + public static BunqResponse delete(Long requestInquiryId, Long noteAttachmentRequestInquiryId) { return delete(requestInquiryId, noteAttachmentRequestInquiryId, null, null); } - public static BunqResponse delete(Integer requestInquiryId, Integer noteAttachmentRequestInquiryId, Integer monetaryAccountId) { + public static BunqResponse delete(Long requestInquiryId, Long noteAttachmentRequestInquiryId, Long monetaryAccountId) { return delete(requestInquiryId, noteAttachmentRequestInquiryId, monetaryAccountId, null); } /** * Manage the notes for a given user. */ - public static BunqResponse> list(Integer requestInquiryId, Integer monetaryAccountId, Map params, Map customHeaders) { + public static BunqResponse> list(Long requestInquiryId, Long monetaryAccountId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_LISTING, determineUserId(), determineMonetaryAccountId(monetaryAccountId), requestInquiryId), params, customHeaders); @@ -221,21 +221,21 @@ public static BunqResponse> list() { return list(null, null, null, null); } - public static BunqResponse> list(Integer requestInquiryId) { + public static BunqResponse> list(Long requestInquiryId) { return list(requestInquiryId, null, null, null); } - public static BunqResponse> list(Integer requestInquiryId, Integer monetaryAccountId) { + public static BunqResponse> list(Long requestInquiryId, Long monetaryAccountId) { return list(requestInquiryId, monetaryAccountId, null, null); } - public static BunqResponse> list(Integer requestInquiryId, Integer monetaryAccountId, Map params) { + public static BunqResponse> list(Long requestInquiryId, Long monetaryAccountId, Map params) { return list(requestInquiryId, monetaryAccountId, params, null); } /** */ - public static BunqResponse get(Integer requestInquiryId, Integer noteAttachmentRequestInquiryId, Integer monetaryAccountId, Map params, Map customHeaders) { + public static BunqResponse get(Long requestInquiryId, Long noteAttachmentRequestInquiryId, Long monetaryAccountId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_READ, determineUserId(), determineMonetaryAccountId(monetaryAccountId), requestInquiryId, noteAttachmentRequestInquiryId), params, customHeaders); @@ -246,30 +246,30 @@ public static BunqResponse get() { return get(null, null, null, null, null); } - public static BunqResponse get(Integer requestInquiryId) { + public static BunqResponse get(Long requestInquiryId) { return get(requestInquiryId, null, null, null, null); } - public static BunqResponse get(Integer requestInquiryId, Integer noteAttachmentRequestInquiryId) { + public static BunqResponse get(Long requestInquiryId, Long noteAttachmentRequestInquiryId) { return get(requestInquiryId, noteAttachmentRequestInquiryId, null, null, null); } - public static BunqResponse get(Integer requestInquiryId, Integer noteAttachmentRequestInquiryId, Integer monetaryAccountId) { + public static BunqResponse get(Long requestInquiryId, Long noteAttachmentRequestInquiryId, Long monetaryAccountId) { return get(requestInquiryId, noteAttachmentRequestInquiryId, monetaryAccountId, null, null); } - public static BunqResponse get(Integer requestInquiryId, Integer noteAttachmentRequestInquiryId, Integer monetaryAccountId, Map params) { + public static BunqResponse get(Long requestInquiryId, Long noteAttachmentRequestInquiryId, Long monetaryAccountId, Map params) { return get(requestInquiryId, noteAttachmentRequestInquiryId, monetaryAccountId, params, null); } /** * The id of the note. */ - public Integer getId() { + public Long getId() { return this.id; } - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } diff --git a/src/main/java/com/bunq/sdk/model/generated/endpoint/NoteAttachmentRequestInquiryBatchApiObject.java b/src/main/java/com/bunq/sdk/model/generated/endpoint/NoteAttachmentRequestInquiryBatchApiObject.java index 2f080707..78eb9042 100644 --- a/src/main/java/com/bunq/sdk/model/generated/endpoint/NoteAttachmentRequestInquiryBatchApiObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/endpoint/NoteAttachmentRequestInquiryBatchApiObject.java @@ -48,7 +48,7 @@ public class NoteAttachmentRequestInquiryBatchApiObject extends BunqModel { */ @Expose @SerializedName("id") - private Integer id; + private Long id; /** * The timestamp of the note's creation. @@ -97,24 +97,24 @@ public class NoteAttachmentRequestInquiryBatchApiObject extends BunqModel { */ @Expose @SerializedName("attachment_id_field_for_request") - private Integer attachmentIdFieldForRequest; + private Long attachmentIdFieldForRequest; public NoteAttachmentRequestInquiryBatchApiObject() { this(null, null); } - public NoteAttachmentRequestInquiryBatchApiObject(Integer attachmentId) { + public NoteAttachmentRequestInquiryBatchApiObject(Long attachmentId) { this(attachmentId, null); } - public NoteAttachmentRequestInquiryBatchApiObject(Integer attachmentId, String description) { + public NoteAttachmentRequestInquiryBatchApiObject(Long attachmentId, String description) { this.descriptionFieldForRequest = description; this.attachmentIdFieldForRequest = attachmentId; } /** * @param attachmentId The reference to the uploaded file to attach to this note. * @param description Optional description of the attachment. */ - public static BunqResponse create(Integer requestInquiryBatchId, Integer attachmentId, Integer monetaryAccountId, String description, Map customHeaders) { + public static BunqResponse create(Long requestInquiryBatchId, Long attachmentId, Long monetaryAccountId, String description, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -131,30 +131,30 @@ public static BunqResponse create(Integer requestInquiryBatchId, Intege return processForId(responseRaw); } - public static BunqResponse create() { + public static BunqResponse create() { return create(null, null, null, null, null); } - public static BunqResponse create(Integer requestInquiryBatchId) { + public static BunqResponse create(Long requestInquiryBatchId) { return create(requestInquiryBatchId, null, null, null, null); } - public static BunqResponse create(Integer requestInquiryBatchId, Integer attachmentId) { + public static BunqResponse create(Long requestInquiryBatchId, Long attachmentId) { return create(requestInquiryBatchId, attachmentId, null, null, null); } - public static BunqResponse create(Integer requestInquiryBatchId, Integer attachmentId, Integer monetaryAccountId) { + public static BunqResponse create(Long requestInquiryBatchId, Long attachmentId, Long monetaryAccountId) { return create(requestInquiryBatchId, attachmentId, monetaryAccountId, null, null); } - public static BunqResponse create(Integer requestInquiryBatchId, Integer attachmentId, Integer monetaryAccountId, String description) { + public static BunqResponse create(Long requestInquiryBatchId, Long attachmentId, Long monetaryAccountId, String description) { return create(requestInquiryBatchId, attachmentId, monetaryAccountId, description, null); } /** * @param description Optional description of the attachment. */ - public static BunqResponse update(Integer requestInquiryBatchId, Integer noteAttachmentRequestInquiryBatchId, Integer monetaryAccountId, String description, Map customHeaders) { + public static BunqResponse update(Long requestInquiryBatchId, Long noteAttachmentRequestInquiryBatchId, Long monetaryAccountId, String description, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -170,47 +170,47 @@ public static BunqResponse update(Integer requestInquiryBatchId, Intege return processForId(responseRaw); } - public static BunqResponse update(Integer requestInquiryBatchId) { + public static BunqResponse update(Long requestInquiryBatchId) { return update(requestInquiryBatchId, null, null, null, null); } - public static BunqResponse update(Integer requestInquiryBatchId, Integer noteAttachmentRequestInquiryBatchId) { + public static BunqResponse update(Long requestInquiryBatchId, Long noteAttachmentRequestInquiryBatchId) { return update(requestInquiryBatchId, noteAttachmentRequestInquiryBatchId, null, null, null); } - public static BunqResponse update(Integer requestInquiryBatchId, Integer noteAttachmentRequestInquiryBatchId, Integer monetaryAccountId) { + public static BunqResponse update(Long requestInquiryBatchId, Long noteAttachmentRequestInquiryBatchId, Long monetaryAccountId) { return update(requestInquiryBatchId, noteAttachmentRequestInquiryBatchId, monetaryAccountId, null, null); } - public static BunqResponse update(Integer requestInquiryBatchId, Integer noteAttachmentRequestInquiryBatchId, Integer monetaryAccountId, String description) { + public static BunqResponse update(Long requestInquiryBatchId, Long noteAttachmentRequestInquiryBatchId, Long monetaryAccountId, String description) { return update(requestInquiryBatchId, noteAttachmentRequestInquiryBatchId, monetaryAccountId, description, null); } /** */ - public static BunqResponse delete(Integer requestInquiryBatchId, Integer noteAttachmentRequestInquiryBatchId, Integer monetaryAccountId, Map customHeaders) { + public static BunqResponse delete(Long requestInquiryBatchId, Long noteAttachmentRequestInquiryBatchId, Long monetaryAccountId, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.delete(String.format(ENDPOINT_URL_DELETE, determineUserId(), determineMonetaryAccountId(monetaryAccountId), requestInquiryBatchId, noteAttachmentRequestInquiryBatchId), customHeaders); return new BunqResponse<>(null, responseRaw.getHeaders()); } - public static BunqResponse delete(Integer requestInquiryBatchId) { + public static BunqResponse delete(Long requestInquiryBatchId) { return delete(requestInquiryBatchId, null, null, null); } - public static BunqResponse delete(Integer requestInquiryBatchId, Integer noteAttachmentRequestInquiryBatchId) { + public static BunqResponse delete(Long requestInquiryBatchId, Long noteAttachmentRequestInquiryBatchId) { return delete(requestInquiryBatchId, noteAttachmentRequestInquiryBatchId, null, null); } - public static BunqResponse delete(Integer requestInquiryBatchId, Integer noteAttachmentRequestInquiryBatchId, Integer monetaryAccountId) { + public static BunqResponse delete(Long requestInquiryBatchId, Long noteAttachmentRequestInquiryBatchId, Long monetaryAccountId) { return delete(requestInquiryBatchId, noteAttachmentRequestInquiryBatchId, monetaryAccountId, null); } /** * Manage the notes for a given user. */ - public static BunqResponse> list(Integer requestInquiryBatchId, Integer monetaryAccountId, Map params, Map customHeaders) { + public static BunqResponse> list(Long requestInquiryBatchId, Long monetaryAccountId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_LISTING, determineUserId(), determineMonetaryAccountId(monetaryAccountId), requestInquiryBatchId), params, customHeaders); @@ -221,21 +221,21 @@ public static BunqResponse> lis return list(null, null, null, null); } - public static BunqResponse> list(Integer requestInquiryBatchId) { + public static BunqResponse> list(Long requestInquiryBatchId) { return list(requestInquiryBatchId, null, null, null); } - public static BunqResponse> list(Integer requestInquiryBatchId, Integer monetaryAccountId) { + public static BunqResponse> list(Long requestInquiryBatchId, Long monetaryAccountId) { return list(requestInquiryBatchId, monetaryAccountId, null, null); } - public static BunqResponse> list(Integer requestInquiryBatchId, Integer monetaryAccountId, Map params) { + public static BunqResponse> list(Long requestInquiryBatchId, Long monetaryAccountId, Map params) { return list(requestInquiryBatchId, monetaryAccountId, params, null); } /** */ - public static BunqResponse get(Integer requestInquiryBatchId, Integer noteAttachmentRequestInquiryBatchId, Integer monetaryAccountId, Map params, Map customHeaders) { + public static BunqResponse get(Long requestInquiryBatchId, Long noteAttachmentRequestInquiryBatchId, Long monetaryAccountId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_READ, determineUserId(), determineMonetaryAccountId(monetaryAccountId), requestInquiryBatchId, noteAttachmentRequestInquiryBatchId), params, customHeaders); @@ -246,30 +246,30 @@ public static BunqResponse get() { return get(null, null, null, null, null); } - public static BunqResponse get(Integer requestInquiryBatchId) { + public static BunqResponse get(Long requestInquiryBatchId) { return get(requestInquiryBatchId, null, null, null, null); } - public static BunqResponse get(Integer requestInquiryBatchId, Integer noteAttachmentRequestInquiryBatchId) { + public static BunqResponse get(Long requestInquiryBatchId, Long noteAttachmentRequestInquiryBatchId) { return get(requestInquiryBatchId, noteAttachmentRequestInquiryBatchId, null, null, null); } - public static BunqResponse get(Integer requestInquiryBatchId, Integer noteAttachmentRequestInquiryBatchId, Integer monetaryAccountId) { + public static BunqResponse get(Long requestInquiryBatchId, Long noteAttachmentRequestInquiryBatchId, Long monetaryAccountId) { return get(requestInquiryBatchId, noteAttachmentRequestInquiryBatchId, monetaryAccountId, null, null); } - public static BunqResponse get(Integer requestInquiryBatchId, Integer noteAttachmentRequestInquiryBatchId, Integer monetaryAccountId, Map params) { + public static BunqResponse get(Long requestInquiryBatchId, Long noteAttachmentRequestInquiryBatchId, Long monetaryAccountId, Map params) { return get(requestInquiryBatchId, noteAttachmentRequestInquiryBatchId, monetaryAccountId, params, null); } /** * The id of the note. */ - public Integer getId() { + public Long getId() { return this.id; } - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } diff --git a/src/main/java/com/bunq/sdk/model/generated/endpoint/NoteAttachmentRequestResponseApiObject.java b/src/main/java/com/bunq/sdk/model/generated/endpoint/NoteAttachmentRequestResponseApiObject.java index bd16f1b5..79b05f06 100644 --- a/src/main/java/com/bunq/sdk/model/generated/endpoint/NoteAttachmentRequestResponseApiObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/endpoint/NoteAttachmentRequestResponseApiObject.java @@ -48,7 +48,7 @@ public class NoteAttachmentRequestResponseApiObject extends BunqModel { */ @Expose @SerializedName("id") - private Integer id; + private Long id; /** * The timestamp of the note's creation. @@ -97,24 +97,24 @@ public class NoteAttachmentRequestResponseApiObject extends BunqModel { */ @Expose @SerializedName("attachment_id_field_for_request") - private Integer attachmentIdFieldForRequest; + private Long attachmentIdFieldForRequest; public NoteAttachmentRequestResponseApiObject() { this(null, null); } - public NoteAttachmentRequestResponseApiObject(Integer attachmentId) { + public NoteAttachmentRequestResponseApiObject(Long attachmentId) { this(attachmentId, null); } - public NoteAttachmentRequestResponseApiObject(Integer attachmentId, String description) { + public NoteAttachmentRequestResponseApiObject(Long attachmentId, String description) { this.descriptionFieldForRequest = description; this.attachmentIdFieldForRequest = attachmentId; } /** * @param attachmentId The reference to the uploaded file to attach to this note. * @param description Optional description of the attachment. */ - public static BunqResponse create(Integer requestResponseId, Integer attachmentId, Integer monetaryAccountId, String description, Map customHeaders) { + public static BunqResponse create(Long requestResponseId, Long attachmentId, Long monetaryAccountId, String description, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -131,30 +131,30 @@ public static BunqResponse create(Integer requestResponseId, Integer at return processForId(responseRaw); } - public static BunqResponse create() { + public static BunqResponse create() { return create(null, null, null, null, null); } - public static BunqResponse create(Integer requestResponseId) { + public static BunqResponse create(Long requestResponseId) { return create(requestResponseId, null, null, null, null); } - public static BunqResponse create(Integer requestResponseId, Integer attachmentId) { + public static BunqResponse create(Long requestResponseId, Long attachmentId) { return create(requestResponseId, attachmentId, null, null, null); } - public static BunqResponse create(Integer requestResponseId, Integer attachmentId, Integer monetaryAccountId) { + public static BunqResponse create(Long requestResponseId, Long attachmentId, Long monetaryAccountId) { return create(requestResponseId, attachmentId, monetaryAccountId, null, null); } - public static BunqResponse create(Integer requestResponseId, Integer attachmentId, Integer monetaryAccountId, String description) { + public static BunqResponse create(Long requestResponseId, Long attachmentId, Long monetaryAccountId, String description) { return create(requestResponseId, attachmentId, monetaryAccountId, description, null); } /** * @param description Optional description of the attachment. */ - public static BunqResponse update(Integer requestResponseId, Integer noteAttachmentRequestResponseId, Integer monetaryAccountId, String description, Map customHeaders) { + public static BunqResponse update(Long requestResponseId, Long noteAttachmentRequestResponseId, Long monetaryAccountId, String description, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -170,47 +170,47 @@ public static BunqResponse update(Integer requestResponseId, Integer no return processForId(responseRaw); } - public static BunqResponse update(Integer requestResponseId) { + public static BunqResponse update(Long requestResponseId) { return update(requestResponseId, null, null, null, null); } - public static BunqResponse update(Integer requestResponseId, Integer noteAttachmentRequestResponseId) { + public static BunqResponse update(Long requestResponseId, Long noteAttachmentRequestResponseId) { return update(requestResponseId, noteAttachmentRequestResponseId, null, null, null); } - public static BunqResponse update(Integer requestResponseId, Integer noteAttachmentRequestResponseId, Integer monetaryAccountId) { + public static BunqResponse update(Long requestResponseId, Long noteAttachmentRequestResponseId, Long monetaryAccountId) { return update(requestResponseId, noteAttachmentRequestResponseId, monetaryAccountId, null, null); } - public static BunqResponse update(Integer requestResponseId, Integer noteAttachmentRequestResponseId, Integer monetaryAccountId, String description) { + public static BunqResponse update(Long requestResponseId, Long noteAttachmentRequestResponseId, Long monetaryAccountId, String description) { return update(requestResponseId, noteAttachmentRequestResponseId, monetaryAccountId, description, null); } /** */ - public static BunqResponse delete(Integer requestResponseId, Integer noteAttachmentRequestResponseId, Integer monetaryAccountId, Map customHeaders) { + public static BunqResponse delete(Long requestResponseId, Long noteAttachmentRequestResponseId, Long monetaryAccountId, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.delete(String.format(ENDPOINT_URL_DELETE, determineUserId(), determineMonetaryAccountId(monetaryAccountId), requestResponseId, noteAttachmentRequestResponseId), customHeaders); return new BunqResponse<>(null, responseRaw.getHeaders()); } - public static BunqResponse delete(Integer requestResponseId) { + public static BunqResponse delete(Long requestResponseId) { return delete(requestResponseId, null, null, null); } - public static BunqResponse delete(Integer requestResponseId, Integer noteAttachmentRequestResponseId) { + public static BunqResponse delete(Long requestResponseId, Long noteAttachmentRequestResponseId) { return delete(requestResponseId, noteAttachmentRequestResponseId, null, null); } - public static BunqResponse delete(Integer requestResponseId, Integer noteAttachmentRequestResponseId, Integer monetaryAccountId) { + public static BunqResponse delete(Long requestResponseId, Long noteAttachmentRequestResponseId, Long monetaryAccountId) { return delete(requestResponseId, noteAttachmentRequestResponseId, monetaryAccountId, null); } /** * Manage the notes for a given user. */ - public static BunqResponse> list(Integer requestResponseId, Integer monetaryAccountId, Map params, Map customHeaders) { + public static BunqResponse> list(Long requestResponseId, Long monetaryAccountId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_LISTING, determineUserId(), determineMonetaryAccountId(monetaryAccountId), requestResponseId), params, customHeaders); @@ -221,21 +221,21 @@ public static BunqResponse> list() return list(null, null, null, null); } - public static BunqResponse> list(Integer requestResponseId) { + public static BunqResponse> list(Long requestResponseId) { return list(requestResponseId, null, null, null); } - public static BunqResponse> list(Integer requestResponseId, Integer monetaryAccountId) { + public static BunqResponse> list(Long requestResponseId, Long monetaryAccountId) { return list(requestResponseId, monetaryAccountId, null, null); } - public static BunqResponse> list(Integer requestResponseId, Integer monetaryAccountId, Map params) { + public static BunqResponse> list(Long requestResponseId, Long monetaryAccountId, Map params) { return list(requestResponseId, monetaryAccountId, params, null); } /** */ - public static BunqResponse get(Integer requestResponseId, Integer noteAttachmentRequestResponseId, Integer monetaryAccountId, Map params, Map customHeaders) { + public static BunqResponse get(Long requestResponseId, Long noteAttachmentRequestResponseId, Long monetaryAccountId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_READ, determineUserId(), determineMonetaryAccountId(monetaryAccountId), requestResponseId, noteAttachmentRequestResponseId), params, customHeaders); @@ -246,30 +246,30 @@ public static BunqResponse get() { return get(null, null, null, null, null); } - public static BunqResponse get(Integer requestResponseId) { + public static BunqResponse get(Long requestResponseId) { return get(requestResponseId, null, null, null, null); } - public static BunqResponse get(Integer requestResponseId, Integer noteAttachmentRequestResponseId) { + public static BunqResponse get(Long requestResponseId, Long noteAttachmentRequestResponseId) { return get(requestResponseId, noteAttachmentRequestResponseId, null, null, null); } - public static BunqResponse get(Integer requestResponseId, Integer noteAttachmentRequestResponseId, Integer monetaryAccountId) { + public static BunqResponse get(Long requestResponseId, Long noteAttachmentRequestResponseId, Long monetaryAccountId) { return get(requestResponseId, noteAttachmentRequestResponseId, monetaryAccountId, null, null); } - public static BunqResponse get(Integer requestResponseId, Integer noteAttachmentRequestResponseId, Integer monetaryAccountId, Map params) { + public static BunqResponse get(Long requestResponseId, Long noteAttachmentRequestResponseId, Long monetaryAccountId, Map params) { return get(requestResponseId, noteAttachmentRequestResponseId, monetaryAccountId, params, null); } /** * The id of the note. */ - public Integer getId() { + public Long getId() { return this.id; } - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } diff --git a/src/main/java/com/bunq/sdk/model/generated/endpoint/NoteAttachmentScheduleInstanceApiObject.java b/src/main/java/com/bunq/sdk/model/generated/endpoint/NoteAttachmentScheduleInstanceApiObject.java index f7412295..093f78b2 100644 --- a/src/main/java/com/bunq/sdk/model/generated/endpoint/NoteAttachmentScheduleInstanceApiObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/endpoint/NoteAttachmentScheduleInstanceApiObject.java @@ -48,7 +48,7 @@ public class NoteAttachmentScheduleInstanceApiObject extends BunqModel { */ @Expose @SerializedName("id") - private Integer id; + private Long id; /** * The timestamp of the note's creation. @@ -97,24 +97,24 @@ public class NoteAttachmentScheduleInstanceApiObject extends BunqModel { */ @Expose @SerializedName("attachment_id_field_for_request") - private Integer attachmentIdFieldForRequest; + private Long attachmentIdFieldForRequest; public NoteAttachmentScheduleInstanceApiObject() { this(null, null); } - public NoteAttachmentScheduleInstanceApiObject(Integer attachmentId) { + public NoteAttachmentScheduleInstanceApiObject(Long attachmentId) { this(attachmentId, null); } - public NoteAttachmentScheduleInstanceApiObject(Integer attachmentId, String description) { + public NoteAttachmentScheduleInstanceApiObject(Long attachmentId, String description) { this.descriptionFieldForRequest = description; this.attachmentIdFieldForRequest = attachmentId; } /** * @param attachmentId The reference to the uploaded file to attach to this note. * @param description Optional description of the attachment. */ - public static BunqResponse create(Integer scheduleId, Integer scheduleInstanceId, Integer attachmentId, Integer monetaryAccountId, String description, Map customHeaders) { + public static BunqResponse create(Long scheduleId, Long scheduleInstanceId, Long attachmentId, Long monetaryAccountId, String description, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -131,34 +131,34 @@ public static BunqResponse create(Integer scheduleId, Integer scheduleI return processForId(responseRaw); } - public static BunqResponse create() { + public static BunqResponse create() { return create(null, null, null, null, null, null); } - public static BunqResponse create(Integer scheduleId) { + public static BunqResponse create(Long scheduleId) { return create(scheduleId, null, null, null, null, null); } - public static BunqResponse create(Integer scheduleId, Integer scheduleInstanceId) { + public static BunqResponse create(Long scheduleId, Long scheduleInstanceId) { return create(scheduleId, scheduleInstanceId, null, null, null, null); } - public static BunqResponse create(Integer scheduleId, Integer scheduleInstanceId, Integer attachmentId) { + public static BunqResponse create(Long scheduleId, Long scheduleInstanceId, Long attachmentId) { return create(scheduleId, scheduleInstanceId, attachmentId, null, null, null); } - public static BunqResponse create(Integer scheduleId, Integer scheduleInstanceId, Integer attachmentId, Integer monetaryAccountId) { + public static BunqResponse create(Long scheduleId, Long scheduleInstanceId, Long attachmentId, Long monetaryAccountId) { return create(scheduleId, scheduleInstanceId, attachmentId, monetaryAccountId, null, null); } - public static BunqResponse create(Integer scheduleId, Integer scheduleInstanceId, Integer attachmentId, Integer monetaryAccountId, String description) { + public static BunqResponse create(Long scheduleId, Long scheduleInstanceId, Long attachmentId, Long monetaryAccountId, String description) { return create(scheduleId, scheduleInstanceId, attachmentId, monetaryAccountId, description, null); } /** * @param description Optional description of the attachment. */ - public static BunqResponse update(Integer scheduleId, Integer scheduleInstanceId, Integer noteAttachmentScheduleInstanceId, Integer monetaryAccountId, String description, Map customHeaders) { + public static BunqResponse update(Long scheduleId, Long scheduleInstanceId, Long noteAttachmentScheduleInstanceId, Long monetaryAccountId, String description, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -174,55 +174,55 @@ public static BunqResponse update(Integer scheduleId, Integer scheduleI return processForId(responseRaw); } - public static BunqResponse update(Integer scheduleId) { + public static BunqResponse update(Long scheduleId) { return update(scheduleId, null, null, null, null, null); } - public static BunqResponse update(Integer scheduleId, Integer scheduleInstanceId) { + public static BunqResponse update(Long scheduleId, Long scheduleInstanceId) { return update(scheduleId, scheduleInstanceId, null, null, null, null); } - public static BunqResponse update(Integer scheduleId, Integer scheduleInstanceId, Integer noteAttachmentScheduleInstanceId) { + public static BunqResponse update(Long scheduleId, Long scheduleInstanceId, Long noteAttachmentScheduleInstanceId) { return update(scheduleId, scheduleInstanceId, noteAttachmentScheduleInstanceId, null, null, null); } - public static BunqResponse update(Integer scheduleId, Integer scheduleInstanceId, Integer noteAttachmentScheduleInstanceId, Integer monetaryAccountId) { + public static BunqResponse update(Long scheduleId, Long scheduleInstanceId, Long noteAttachmentScheduleInstanceId, Long monetaryAccountId) { return update(scheduleId, scheduleInstanceId, noteAttachmentScheduleInstanceId, monetaryAccountId, null, null); } - public static BunqResponse update(Integer scheduleId, Integer scheduleInstanceId, Integer noteAttachmentScheduleInstanceId, Integer monetaryAccountId, String description) { + public static BunqResponse update(Long scheduleId, Long scheduleInstanceId, Long noteAttachmentScheduleInstanceId, Long monetaryAccountId, String description) { return update(scheduleId, scheduleInstanceId, noteAttachmentScheduleInstanceId, monetaryAccountId, description, null); } /** */ - public static BunqResponse delete(Integer scheduleId, Integer scheduleInstanceId, Integer noteAttachmentScheduleInstanceId, Integer monetaryAccountId, Map customHeaders) { + public static BunqResponse delete(Long scheduleId, Long scheduleInstanceId, Long noteAttachmentScheduleInstanceId, Long monetaryAccountId, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.delete(String.format(ENDPOINT_URL_DELETE, determineUserId(), determineMonetaryAccountId(monetaryAccountId), scheduleId, scheduleInstanceId, noteAttachmentScheduleInstanceId), customHeaders); return new BunqResponse<>(null, responseRaw.getHeaders()); } - public static BunqResponse delete(Integer scheduleId) { + public static BunqResponse delete(Long scheduleId) { return delete(scheduleId, null, null, null, null); } - public static BunqResponse delete(Integer scheduleId, Integer scheduleInstanceId) { + public static BunqResponse delete(Long scheduleId, Long scheduleInstanceId) { return delete(scheduleId, scheduleInstanceId, null, null, null); } - public static BunqResponse delete(Integer scheduleId, Integer scheduleInstanceId, Integer noteAttachmentScheduleInstanceId) { + public static BunqResponse delete(Long scheduleId, Long scheduleInstanceId, Long noteAttachmentScheduleInstanceId) { return delete(scheduleId, scheduleInstanceId, noteAttachmentScheduleInstanceId, null, null); } - public static BunqResponse delete(Integer scheduleId, Integer scheduleInstanceId, Integer noteAttachmentScheduleInstanceId, Integer monetaryAccountId) { + public static BunqResponse delete(Long scheduleId, Long scheduleInstanceId, Long noteAttachmentScheduleInstanceId, Long monetaryAccountId) { return delete(scheduleId, scheduleInstanceId, noteAttachmentScheduleInstanceId, monetaryAccountId, null); } /** * Manage the notes for a given user. */ - public static BunqResponse> list(Integer scheduleId, Integer scheduleInstanceId, Integer monetaryAccountId, Map params, Map customHeaders) { + public static BunqResponse> list(Long scheduleId, Long scheduleInstanceId, Long monetaryAccountId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_LISTING, determineUserId(), determineMonetaryAccountId(monetaryAccountId), scheduleId, scheduleInstanceId), params, customHeaders); @@ -233,25 +233,25 @@ public static BunqResponse> list() return list(null, null, null, null, null); } - public static BunqResponse> list(Integer scheduleId) { + public static BunqResponse> list(Long scheduleId) { return list(scheduleId, null, null, null, null); } - public static BunqResponse> list(Integer scheduleId, Integer scheduleInstanceId) { + public static BunqResponse> list(Long scheduleId, Long scheduleInstanceId) { return list(scheduleId, scheduleInstanceId, null, null, null); } - public static BunqResponse> list(Integer scheduleId, Integer scheduleInstanceId, Integer monetaryAccountId) { + public static BunqResponse> list(Long scheduleId, Long scheduleInstanceId, Long monetaryAccountId) { return list(scheduleId, scheduleInstanceId, monetaryAccountId, null, null); } - public static BunqResponse> list(Integer scheduleId, Integer scheduleInstanceId, Integer monetaryAccountId, Map params) { + public static BunqResponse> list(Long scheduleId, Long scheduleInstanceId, Long monetaryAccountId, Map params) { return list(scheduleId, scheduleInstanceId, monetaryAccountId, params, null); } /** */ - public static BunqResponse get(Integer scheduleId, Integer scheduleInstanceId, Integer noteAttachmentScheduleInstanceId, Integer monetaryAccountId, Map params, Map customHeaders) { + public static BunqResponse get(Long scheduleId, Long scheduleInstanceId, Long noteAttachmentScheduleInstanceId, Long monetaryAccountId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_READ, determineUserId(), determineMonetaryAccountId(monetaryAccountId), scheduleId, scheduleInstanceId, noteAttachmentScheduleInstanceId), params, customHeaders); @@ -262,34 +262,34 @@ public static BunqResponse get() { return get(null, null, null, null, null, null); } - public static BunqResponse get(Integer scheduleId) { + public static BunqResponse get(Long scheduleId) { return get(scheduleId, null, null, null, null, null); } - public static BunqResponse get(Integer scheduleId, Integer scheduleInstanceId) { + public static BunqResponse get(Long scheduleId, Long scheduleInstanceId) { return get(scheduleId, scheduleInstanceId, null, null, null, null); } - public static BunqResponse get(Integer scheduleId, Integer scheduleInstanceId, Integer noteAttachmentScheduleInstanceId) { + public static BunqResponse get(Long scheduleId, Long scheduleInstanceId, Long noteAttachmentScheduleInstanceId) { return get(scheduleId, scheduleInstanceId, noteAttachmentScheduleInstanceId, null, null, null); } - public static BunqResponse get(Integer scheduleId, Integer scheduleInstanceId, Integer noteAttachmentScheduleInstanceId, Integer monetaryAccountId) { + public static BunqResponse get(Long scheduleId, Long scheduleInstanceId, Long noteAttachmentScheduleInstanceId, Long monetaryAccountId) { return get(scheduleId, scheduleInstanceId, noteAttachmentScheduleInstanceId, monetaryAccountId, null, null); } - public static BunqResponse get(Integer scheduleId, Integer scheduleInstanceId, Integer noteAttachmentScheduleInstanceId, Integer monetaryAccountId, Map params) { + public static BunqResponse get(Long scheduleId, Long scheduleInstanceId, Long noteAttachmentScheduleInstanceId, Long monetaryAccountId, Map params) { return get(scheduleId, scheduleInstanceId, noteAttachmentScheduleInstanceId, monetaryAccountId, params, null); } /** * The id of the note. */ - public Integer getId() { + public Long getId() { return this.id; } - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } diff --git a/src/main/java/com/bunq/sdk/model/generated/endpoint/NoteAttachmentSchedulePaymentApiObject.java b/src/main/java/com/bunq/sdk/model/generated/endpoint/NoteAttachmentSchedulePaymentApiObject.java index 7a922c27..aac8c9ed 100644 --- a/src/main/java/com/bunq/sdk/model/generated/endpoint/NoteAttachmentSchedulePaymentApiObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/endpoint/NoteAttachmentSchedulePaymentApiObject.java @@ -48,7 +48,7 @@ public class NoteAttachmentSchedulePaymentApiObject extends BunqModel { */ @Expose @SerializedName("id") - private Integer id; + private Long id; /** * The timestamp of the note's creation. @@ -97,24 +97,24 @@ public class NoteAttachmentSchedulePaymentApiObject extends BunqModel { */ @Expose @SerializedName("attachment_id_field_for_request") - private Integer attachmentIdFieldForRequest; + private Long attachmentIdFieldForRequest; public NoteAttachmentSchedulePaymentApiObject() { this(null, null); } - public NoteAttachmentSchedulePaymentApiObject(Integer attachmentId) { + public NoteAttachmentSchedulePaymentApiObject(Long attachmentId) { this(attachmentId, null); } - public NoteAttachmentSchedulePaymentApiObject(Integer attachmentId, String description) { + public NoteAttachmentSchedulePaymentApiObject(Long attachmentId, String description) { this.descriptionFieldForRequest = description; this.attachmentIdFieldForRequest = attachmentId; } /** * @param attachmentId The reference to the uploaded file to attach to this note. * @param description Optional description of the attachment. */ - public static BunqResponse create(Integer schedulePaymentId, Integer attachmentId, Integer monetaryAccountId, String description, Map customHeaders) { + public static BunqResponse create(Long schedulePaymentId, Long attachmentId, Long monetaryAccountId, String description, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -131,30 +131,30 @@ public static BunqResponse create(Integer schedulePaymentId, Integer at return processForId(responseRaw); } - public static BunqResponse create() { + public static BunqResponse create() { return create(null, null, null, null, null); } - public static BunqResponse create(Integer schedulePaymentId) { + public static BunqResponse create(Long schedulePaymentId) { return create(schedulePaymentId, null, null, null, null); } - public static BunqResponse create(Integer schedulePaymentId, Integer attachmentId) { + public static BunqResponse create(Long schedulePaymentId, Long attachmentId) { return create(schedulePaymentId, attachmentId, null, null, null); } - public static BunqResponse create(Integer schedulePaymentId, Integer attachmentId, Integer monetaryAccountId) { + public static BunqResponse create(Long schedulePaymentId, Long attachmentId, Long monetaryAccountId) { return create(schedulePaymentId, attachmentId, monetaryAccountId, null, null); } - public static BunqResponse create(Integer schedulePaymentId, Integer attachmentId, Integer monetaryAccountId, String description) { + public static BunqResponse create(Long schedulePaymentId, Long attachmentId, Long monetaryAccountId, String description) { return create(schedulePaymentId, attachmentId, monetaryAccountId, description, null); } /** * @param description Optional description of the attachment. */ - public static BunqResponse update(Integer schedulePaymentId, Integer noteAttachmentSchedulePaymentId, Integer monetaryAccountId, String description, Map customHeaders) { + public static BunqResponse update(Long schedulePaymentId, Long noteAttachmentSchedulePaymentId, Long monetaryAccountId, String description, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -170,47 +170,47 @@ public static BunqResponse update(Integer schedulePaymentId, Integer no return processForId(responseRaw); } - public static BunqResponse update(Integer schedulePaymentId) { + public static BunqResponse update(Long schedulePaymentId) { return update(schedulePaymentId, null, null, null, null); } - public static BunqResponse update(Integer schedulePaymentId, Integer noteAttachmentSchedulePaymentId) { + public static BunqResponse update(Long schedulePaymentId, Long noteAttachmentSchedulePaymentId) { return update(schedulePaymentId, noteAttachmentSchedulePaymentId, null, null, null); } - public static BunqResponse update(Integer schedulePaymentId, Integer noteAttachmentSchedulePaymentId, Integer monetaryAccountId) { + public static BunqResponse update(Long schedulePaymentId, Long noteAttachmentSchedulePaymentId, Long monetaryAccountId) { return update(schedulePaymentId, noteAttachmentSchedulePaymentId, monetaryAccountId, null, null); } - public static BunqResponse update(Integer schedulePaymentId, Integer noteAttachmentSchedulePaymentId, Integer monetaryAccountId, String description) { + public static BunqResponse update(Long schedulePaymentId, Long noteAttachmentSchedulePaymentId, Long monetaryAccountId, String description) { return update(schedulePaymentId, noteAttachmentSchedulePaymentId, monetaryAccountId, description, null); } /** */ - public static BunqResponse delete(Integer schedulePaymentId, Integer noteAttachmentSchedulePaymentId, Integer monetaryAccountId, Map customHeaders) { + public static BunqResponse delete(Long schedulePaymentId, Long noteAttachmentSchedulePaymentId, Long monetaryAccountId, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.delete(String.format(ENDPOINT_URL_DELETE, determineUserId(), determineMonetaryAccountId(monetaryAccountId), schedulePaymentId, noteAttachmentSchedulePaymentId), customHeaders); return new BunqResponse<>(null, responseRaw.getHeaders()); } - public static BunqResponse delete(Integer schedulePaymentId) { + public static BunqResponse delete(Long schedulePaymentId) { return delete(schedulePaymentId, null, null, null); } - public static BunqResponse delete(Integer schedulePaymentId, Integer noteAttachmentSchedulePaymentId) { + public static BunqResponse delete(Long schedulePaymentId, Long noteAttachmentSchedulePaymentId) { return delete(schedulePaymentId, noteAttachmentSchedulePaymentId, null, null); } - public static BunqResponse delete(Integer schedulePaymentId, Integer noteAttachmentSchedulePaymentId, Integer monetaryAccountId) { + public static BunqResponse delete(Long schedulePaymentId, Long noteAttachmentSchedulePaymentId, Long monetaryAccountId) { return delete(schedulePaymentId, noteAttachmentSchedulePaymentId, monetaryAccountId, null); } /** * Manage the notes for a given user. */ - public static BunqResponse> list(Integer schedulePaymentId, Integer monetaryAccountId, Map params, Map customHeaders) { + public static BunqResponse> list(Long schedulePaymentId, Long monetaryAccountId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_LISTING, determineUserId(), determineMonetaryAccountId(monetaryAccountId), schedulePaymentId), params, customHeaders); @@ -221,21 +221,21 @@ public static BunqResponse> list() return list(null, null, null, null); } - public static BunqResponse> list(Integer schedulePaymentId) { + public static BunqResponse> list(Long schedulePaymentId) { return list(schedulePaymentId, null, null, null); } - public static BunqResponse> list(Integer schedulePaymentId, Integer monetaryAccountId) { + public static BunqResponse> list(Long schedulePaymentId, Long monetaryAccountId) { return list(schedulePaymentId, monetaryAccountId, null, null); } - public static BunqResponse> list(Integer schedulePaymentId, Integer monetaryAccountId, Map params) { + public static BunqResponse> list(Long schedulePaymentId, Long monetaryAccountId, Map params) { return list(schedulePaymentId, monetaryAccountId, params, null); } /** */ - public static BunqResponse get(Integer schedulePaymentId, Integer noteAttachmentSchedulePaymentId, Integer monetaryAccountId, Map params, Map customHeaders) { + public static BunqResponse get(Long schedulePaymentId, Long noteAttachmentSchedulePaymentId, Long monetaryAccountId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_READ, determineUserId(), determineMonetaryAccountId(monetaryAccountId), schedulePaymentId, noteAttachmentSchedulePaymentId), params, customHeaders); @@ -246,30 +246,30 @@ public static BunqResponse get() { return get(null, null, null, null, null); } - public static BunqResponse get(Integer schedulePaymentId) { + public static BunqResponse get(Long schedulePaymentId) { return get(schedulePaymentId, null, null, null, null); } - public static BunqResponse get(Integer schedulePaymentId, Integer noteAttachmentSchedulePaymentId) { + public static BunqResponse get(Long schedulePaymentId, Long noteAttachmentSchedulePaymentId) { return get(schedulePaymentId, noteAttachmentSchedulePaymentId, null, null, null); } - public static BunqResponse get(Integer schedulePaymentId, Integer noteAttachmentSchedulePaymentId, Integer monetaryAccountId) { + public static BunqResponse get(Long schedulePaymentId, Long noteAttachmentSchedulePaymentId, Long monetaryAccountId) { return get(schedulePaymentId, noteAttachmentSchedulePaymentId, monetaryAccountId, null, null); } - public static BunqResponse get(Integer schedulePaymentId, Integer noteAttachmentSchedulePaymentId, Integer monetaryAccountId, Map params) { + public static BunqResponse get(Long schedulePaymentId, Long noteAttachmentSchedulePaymentId, Long monetaryAccountId, Map params) { return get(schedulePaymentId, noteAttachmentSchedulePaymentId, monetaryAccountId, params, null); } /** * The id of the note. */ - public Integer getId() { + public Long getId() { return this.id; } - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } diff --git a/src/main/java/com/bunq/sdk/model/generated/endpoint/NoteAttachmentSchedulePaymentBatchApiObject.java b/src/main/java/com/bunq/sdk/model/generated/endpoint/NoteAttachmentSchedulePaymentBatchApiObject.java index 2806079b..dc6bcb72 100644 --- a/src/main/java/com/bunq/sdk/model/generated/endpoint/NoteAttachmentSchedulePaymentBatchApiObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/endpoint/NoteAttachmentSchedulePaymentBatchApiObject.java @@ -48,7 +48,7 @@ public class NoteAttachmentSchedulePaymentBatchApiObject extends BunqModel { */ @Expose @SerializedName("id") - private Integer id; + private Long id; /** * The timestamp of the note's creation. @@ -97,24 +97,24 @@ public class NoteAttachmentSchedulePaymentBatchApiObject extends BunqModel { */ @Expose @SerializedName("attachment_id_field_for_request") - private Integer attachmentIdFieldForRequest; + private Long attachmentIdFieldForRequest; public NoteAttachmentSchedulePaymentBatchApiObject() { this(null, null); } - public NoteAttachmentSchedulePaymentBatchApiObject(Integer attachmentId) { + public NoteAttachmentSchedulePaymentBatchApiObject(Long attachmentId) { this(attachmentId, null); } - public NoteAttachmentSchedulePaymentBatchApiObject(Integer attachmentId, String description) { + public NoteAttachmentSchedulePaymentBatchApiObject(Long attachmentId, String description) { this.descriptionFieldForRequest = description; this.attachmentIdFieldForRequest = attachmentId; } /** * @param attachmentId The reference to the uploaded file to attach to this note. * @param description Optional description of the attachment. */ - public static BunqResponse create(Integer schedulePaymentBatchId, Integer attachmentId, Integer monetaryAccountId, String description, Map customHeaders) { + public static BunqResponse create(Long schedulePaymentBatchId, Long attachmentId, Long monetaryAccountId, String description, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -131,30 +131,30 @@ public static BunqResponse create(Integer schedulePaymentBatchId, Integ return processForId(responseRaw); } - public static BunqResponse create() { + public static BunqResponse create() { return create(null, null, null, null, null); } - public static BunqResponse create(Integer schedulePaymentBatchId) { + public static BunqResponse create(Long schedulePaymentBatchId) { return create(schedulePaymentBatchId, null, null, null, null); } - public static BunqResponse create(Integer schedulePaymentBatchId, Integer attachmentId) { + public static BunqResponse create(Long schedulePaymentBatchId, Long attachmentId) { return create(schedulePaymentBatchId, attachmentId, null, null, null); } - public static BunqResponse create(Integer schedulePaymentBatchId, Integer attachmentId, Integer monetaryAccountId) { + public static BunqResponse create(Long schedulePaymentBatchId, Long attachmentId, Long monetaryAccountId) { return create(schedulePaymentBatchId, attachmentId, monetaryAccountId, null, null); } - public static BunqResponse create(Integer schedulePaymentBatchId, Integer attachmentId, Integer monetaryAccountId, String description) { + public static BunqResponse create(Long schedulePaymentBatchId, Long attachmentId, Long monetaryAccountId, String description) { return create(schedulePaymentBatchId, attachmentId, monetaryAccountId, description, null); } /** * @param description Optional description of the attachment. */ - public static BunqResponse update(Integer schedulePaymentBatchId, Integer noteAttachmentSchedulePaymentBatchId, Integer monetaryAccountId, String description, Map customHeaders) { + public static BunqResponse update(Long schedulePaymentBatchId, Long noteAttachmentSchedulePaymentBatchId, Long monetaryAccountId, String description, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -170,47 +170,47 @@ public static BunqResponse update(Integer schedulePaymentBatchId, Integ return processForId(responseRaw); } - public static BunqResponse update(Integer schedulePaymentBatchId) { + public static BunqResponse update(Long schedulePaymentBatchId) { return update(schedulePaymentBatchId, null, null, null, null); } - public static BunqResponse update(Integer schedulePaymentBatchId, Integer noteAttachmentSchedulePaymentBatchId) { + public static BunqResponse update(Long schedulePaymentBatchId, Long noteAttachmentSchedulePaymentBatchId) { return update(schedulePaymentBatchId, noteAttachmentSchedulePaymentBatchId, null, null, null); } - public static BunqResponse update(Integer schedulePaymentBatchId, Integer noteAttachmentSchedulePaymentBatchId, Integer monetaryAccountId) { + public static BunqResponse update(Long schedulePaymentBatchId, Long noteAttachmentSchedulePaymentBatchId, Long monetaryAccountId) { return update(schedulePaymentBatchId, noteAttachmentSchedulePaymentBatchId, monetaryAccountId, null, null); } - public static BunqResponse update(Integer schedulePaymentBatchId, Integer noteAttachmentSchedulePaymentBatchId, Integer monetaryAccountId, String description) { + public static BunqResponse update(Long schedulePaymentBatchId, Long noteAttachmentSchedulePaymentBatchId, Long monetaryAccountId, String description) { return update(schedulePaymentBatchId, noteAttachmentSchedulePaymentBatchId, monetaryAccountId, description, null); } /** */ - public static BunqResponse delete(Integer schedulePaymentBatchId, Integer noteAttachmentSchedulePaymentBatchId, Integer monetaryAccountId, Map customHeaders) { + public static BunqResponse delete(Long schedulePaymentBatchId, Long noteAttachmentSchedulePaymentBatchId, Long monetaryAccountId, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.delete(String.format(ENDPOINT_URL_DELETE, determineUserId(), determineMonetaryAccountId(monetaryAccountId), schedulePaymentBatchId, noteAttachmentSchedulePaymentBatchId), customHeaders); return new BunqResponse<>(null, responseRaw.getHeaders()); } - public static BunqResponse delete(Integer schedulePaymentBatchId) { + public static BunqResponse delete(Long schedulePaymentBatchId) { return delete(schedulePaymentBatchId, null, null, null); } - public static BunqResponse delete(Integer schedulePaymentBatchId, Integer noteAttachmentSchedulePaymentBatchId) { + public static BunqResponse delete(Long schedulePaymentBatchId, Long noteAttachmentSchedulePaymentBatchId) { return delete(schedulePaymentBatchId, noteAttachmentSchedulePaymentBatchId, null, null); } - public static BunqResponse delete(Integer schedulePaymentBatchId, Integer noteAttachmentSchedulePaymentBatchId, Integer monetaryAccountId) { + public static BunqResponse delete(Long schedulePaymentBatchId, Long noteAttachmentSchedulePaymentBatchId, Long monetaryAccountId) { return delete(schedulePaymentBatchId, noteAttachmentSchedulePaymentBatchId, monetaryAccountId, null); } /** * Manage the notes for a given user. */ - public static BunqResponse> list(Integer schedulePaymentBatchId, Integer monetaryAccountId, Map params, Map customHeaders) { + public static BunqResponse> list(Long schedulePaymentBatchId, Long monetaryAccountId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_LISTING, determineUserId(), determineMonetaryAccountId(monetaryAccountId), schedulePaymentBatchId), params, customHeaders); @@ -221,21 +221,21 @@ public static BunqResponse> li return list(null, null, null, null); } - public static BunqResponse> list(Integer schedulePaymentBatchId) { + public static BunqResponse> list(Long schedulePaymentBatchId) { return list(schedulePaymentBatchId, null, null, null); } - public static BunqResponse> list(Integer schedulePaymentBatchId, Integer monetaryAccountId) { + public static BunqResponse> list(Long schedulePaymentBatchId, Long monetaryAccountId) { return list(schedulePaymentBatchId, monetaryAccountId, null, null); } - public static BunqResponse> list(Integer schedulePaymentBatchId, Integer monetaryAccountId, Map params) { + public static BunqResponse> list(Long schedulePaymentBatchId, Long monetaryAccountId, Map params) { return list(schedulePaymentBatchId, monetaryAccountId, params, null); } /** */ - public static BunqResponse get(Integer schedulePaymentBatchId, Integer noteAttachmentSchedulePaymentBatchId, Integer monetaryAccountId, Map params, Map customHeaders) { + public static BunqResponse get(Long schedulePaymentBatchId, Long noteAttachmentSchedulePaymentBatchId, Long monetaryAccountId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_READ, determineUserId(), determineMonetaryAccountId(monetaryAccountId), schedulePaymentBatchId, noteAttachmentSchedulePaymentBatchId), params, customHeaders); @@ -246,30 +246,30 @@ public static BunqResponse get() { return get(null, null, null, null, null); } - public static BunqResponse get(Integer schedulePaymentBatchId) { + public static BunqResponse get(Long schedulePaymentBatchId) { return get(schedulePaymentBatchId, null, null, null, null); } - public static BunqResponse get(Integer schedulePaymentBatchId, Integer noteAttachmentSchedulePaymentBatchId) { + public static BunqResponse get(Long schedulePaymentBatchId, Long noteAttachmentSchedulePaymentBatchId) { return get(schedulePaymentBatchId, noteAttachmentSchedulePaymentBatchId, null, null, null); } - public static BunqResponse get(Integer schedulePaymentBatchId, Integer noteAttachmentSchedulePaymentBatchId, Integer monetaryAccountId) { + public static BunqResponse get(Long schedulePaymentBatchId, Long noteAttachmentSchedulePaymentBatchId, Long monetaryAccountId) { return get(schedulePaymentBatchId, noteAttachmentSchedulePaymentBatchId, monetaryAccountId, null, null); } - public static BunqResponse get(Integer schedulePaymentBatchId, Integer noteAttachmentSchedulePaymentBatchId, Integer monetaryAccountId, Map params) { + public static BunqResponse get(Long schedulePaymentBatchId, Long noteAttachmentSchedulePaymentBatchId, Long monetaryAccountId, Map params) { return get(schedulePaymentBatchId, noteAttachmentSchedulePaymentBatchId, monetaryAccountId, params, null); } /** * The id of the note. */ - public Integer getId() { + public Long getId() { return this.id; } - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } diff --git a/src/main/java/com/bunq/sdk/model/generated/endpoint/NoteAttachmentScheduleRequestApiObject.java b/src/main/java/com/bunq/sdk/model/generated/endpoint/NoteAttachmentScheduleRequestApiObject.java index 5cae3e99..6179286e 100644 --- a/src/main/java/com/bunq/sdk/model/generated/endpoint/NoteAttachmentScheduleRequestApiObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/endpoint/NoteAttachmentScheduleRequestApiObject.java @@ -48,7 +48,7 @@ public class NoteAttachmentScheduleRequestApiObject extends BunqModel { */ @Expose @SerializedName("id") - private Integer id; + private Long id; /** * The timestamp of the note's creation. @@ -97,24 +97,24 @@ public class NoteAttachmentScheduleRequestApiObject extends BunqModel { */ @Expose @SerializedName("attachment_id_field_for_request") - private Integer attachmentIdFieldForRequest; + private Long attachmentIdFieldForRequest; public NoteAttachmentScheduleRequestApiObject() { this(null, null); } - public NoteAttachmentScheduleRequestApiObject(Integer attachmentId) { + public NoteAttachmentScheduleRequestApiObject(Long attachmentId) { this(attachmentId, null); } - public NoteAttachmentScheduleRequestApiObject(Integer attachmentId, String description) { + public NoteAttachmentScheduleRequestApiObject(Long attachmentId, String description) { this.descriptionFieldForRequest = description; this.attachmentIdFieldForRequest = attachmentId; } /** * @param attachmentId The reference to the uploaded file to attach to this note. * @param description Optional description of the attachment. */ - public static BunqResponse create(Integer scheduleRequestInquiryId, Integer attachmentId, Integer monetaryAccountId, String description, Map customHeaders) { + public static BunqResponse create(Long scheduleRequestInquiryId, Long attachmentId, Long monetaryAccountId, String description, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -131,30 +131,30 @@ public static BunqResponse create(Integer scheduleRequestInquiryId, Int return processForId(responseRaw); } - public static BunqResponse create() { + public static BunqResponse create() { return create(null, null, null, null, null); } - public static BunqResponse create(Integer scheduleRequestInquiryId) { + public static BunqResponse create(Long scheduleRequestInquiryId) { return create(scheduleRequestInquiryId, null, null, null, null); } - public static BunqResponse create(Integer scheduleRequestInquiryId, Integer attachmentId) { + public static BunqResponse create(Long scheduleRequestInquiryId, Long attachmentId) { return create(scheduleRequestInquiryId, attachmentId, null, null, null); } - public static BunqResponse create(Integer scheduleRequestInquiryId, Integer attachmentId, Integer monetaryAccountId) { + public static BunqResponse create(Long scheduleRequestInquiryId, Long attachmentId, Long monetaryAccountId) { return create(scheduleRequestInquiryId, attachmentId, monetaryAccountId, null, null); } - public static BunqResponse create(Integer scheduleRequestInquiryId, Integer attachmentId, Integer monetaryAccountId, String description) { + public static BunqResponse create(Long scheduleRequestInquiryId, Long attachmentId, Long monetaryAccountId, String description) { return create(scheduleRequestInquiryId, attachmentId, monetaryAccountId, description, null); } /** * @param description Optional description of the attachment. */ - public static BunqResponse update(Integer scheduleRequestInquiryId, Integer noteAttachmentScheduleRequestId, Integer monetaryAccountId, String description, Map customHeaders) { + public static BunqResponse update(Long scheduleRequestInquiryId, Long noteAttachmentScheduleRequestId, Long monetaryAccountId, String description, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -170,47 +170,47 @@ public static BunqResponse update(Integer scheduleRequestInquiryId, Int return processForId(responseRaw); } - public static BunqResponse update(Integer scheduleRequestInquiryId) { + public static BunqResponse update(Long scheduleRequestInquiryId) { return update(scheduleRequestInquiryId, null, null, null, null); } - public static BunqResponse update(Integer scheduleRequestInquiryId, Integer noteAttachmentScheduleRequestId) { + public static BunqResponse update(Long scheduleRequestInquiryId, Long noteAttachmentScheduleRequestId) { return update(scheduleRequestInquiryId, noteAttachmentScheduleRequestId, null, null, null); } - public static BunqResponse update(Integer scheduleRequestInquiryId, Integer noteAttachmentScheduleRequestId, Integer monetaryAccountId) { + public static BunqResponse update(Long scheduleRequestInquiryId, Long noteAttachmentScheduleRequestId, Long monetaryAccountId) { return update(scheduleRequestInquiryId, noteAttachmentScheduleRequestId, monetaryAccountId, null, null); } - public static BunqResponse update(Integer scheduleRequestInquiryId, Integer noteAttachmentScheduleRequestId, Integer monetaryAccountId, String description) { + public static BunqResponse update(Long scheduleRequestInquiryId, Long noteAttachmentScheduleRequestId, Long monetaryAccountId, String description) { return update(scheduleRequestInquiryId, noteAttachmentScheduleRequestId, monetaryAccountId, description, null); } /** */ - public static BunqResponse delete(Integer scheduleRequestInquiryId, Integer noteAttachmentScheduleRequestId, Integer monetaryAccountId, Map customHeaders) { + public static BunqResponse delete(Long scheduleRequestInquiryId, Long noteAttachmentScheduleRequestId, Long monetaryAccountId, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.delete(String.format(ENDPOINT_URL_DELETE, determineUserId(), determineMonetaryAccountId(monetaryAccountId), scheduleRequestInquiryId, noteAttachmentScheduleRequestId), customHeaders); return new BunqResponse<>(null, responseRaw.getHeaders()); } - public static BunqResponse delete(Integer scheduleRequestInquiryId) { + public static BunqResponse delete(Long scheduleRequestInquiryId) { return delete(scheduleRequestInquiryId, null, null, null); } - public static BunqResponse delete(Integer scheduleRequestInquiryId, Integer noteAttachmentScheduleRequestId) { + public static BunqResponse delete(Long scheduleRequestInquiryId, Long noteAttachmentScheduleRequestId) { return delete(scheduleRequestInquiryId, noteAttachmentScheduleRequestId, null, null); } - public static BunqResponse delete(Integer scheduleRequestInquiryId, Integer noteAttachmentScheduleRequestId, Integer monetaryAccountId) { + public static BunqResponse delete(Long scheduleRequestInquiryId, Long noteAttachmentScheduleRequestId, Long monetaryAccountId) { return delete(scheduleRequestInquiryId, noteAttachmentScheduleRequestId, monetaryAccountId, null); } /** * Manage the notes for a scheduled request. */ - public static BunqResponse> list(Integer scheduleRequestInquiryId, Integer monetaryAccountId, Map params, Map customHeaders) { + public static BunqResponse> list(Long scheduleRequestInquiryId, Long monetaryAccountId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_LISTING, determineUserId(), determineMonetaryAccountId(monetaryAccountId), scheduleRequestInquiryId), params, customHeaders); @@ -221,21 +221,21 @@ public static BunqResponse> list() return list(null, null, null, null); } - public static BunqResponse> list(Integer scheduleRequestInquiryId) { + public static BunqResponse> list(Long scheduleRequestInquiryId) { return list(scheduleRequestInquiryId, null, null, null); } - public static BunqResponse> list(Integer scheduleRequestInquiryId, Integer monetaryAccountId) { + public static BunqResponse> list(Long scheduleRequestInquiryId, Long monetaryAccountId) { return list(scheduleRequestInquiryId, monetaryAccountId, null, null); } - public static BunqResponse> list(Integer scheduleRequestInquiryId, Integer monetaryAccountId, Map params) { + public static BunqResponse> list(Long scheduleRequestInquiryId, Long monetaryAccountId, Map params) { return list(scheduleRequestInquiryId, monetaryAccountId, params, null); } /** */ - public static BunqResponse get(Integer scheduleRequestInquiryId, Integer noteAttachmentScheduleRequestId, Integer monetaryAccountId, Map params, Map customHeaders) { + public static BunqResponse get(Long scheduleRequestInquiryId, Long noteAttachmentScheduleRequestId, Long monetaryAccountId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_READ, determineUserId(), determineMonetaryAccountId(monetaryAccountId), scheduleRequestInquiryId, noteAttachmentScheduleRequestId), params, customHeaders); @@ -246,30 +246,30 @@ public static BunqResponse get() { return get(null, null, null, null, null); } - public static BunqResponse get(Integer scheduleRequestInquiryId) { + public static BunqResponse get(Long scheduleRequestInquiryId) { return get(scheduleRequestInquiryId, null, null, null, null); } - public static BunqResponse get(Integer scheduleRequestInquiryId, Integer noteAttachmentScheduleRequestId) { + public static BunqResponse get(Long scheduleRequestInquiryId, Long noteAttachmentScheduleRequestId) { return get(scheduleRequestInquiryId, noteAttachmentScheduleRequestId, null, null, null); } - public static BunqResponse get(Integer scheduleRequestInquiryId, Integer noteAttachmentScheduleRequestId, Integer monetaryAccountId) { + public static BunqResponse get(Long scheduleRequestInquiryId, Long noteAttachmentScheduleRequestId, Long monetaryAccountId) { return get(scheduleRequestInquiryId, noteAttachmentScheduleRequestId, monetaryAccountId, null, null); } - public static BunqResponse get(Integer scheduleRequestInquiryId, Integer noteAttachmentScheduleRequestId, Integer monetaryAccountId, Map params) { + public static BunqResponse get(Long scheduleRequestInquiryId, Long noteAttachmentScheduleRequestId, Long monetaryAccountId, Map params) { return get(scheduleRequestInquiryId, noteAttachmentScheduleRequestId, monetaryAccountId, params, null); } /** * The id of the note. */ - public Integer getId() { + public Long getId() { return this.id; } - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } diff --git a/src/main/java/com/bunq/sdk/model/generated/endpoint/NoteAttachmentScheduleRequestBatchApiObject.java b/src/main/java/com/bunq/sdk/model/generated/endpoint/NoteAttachmentScheduleRequestBatchApiObject.java index 55096c62..5ab1e779 100644 --- a/src/main/java/com/bunq/sdk/model/generated/endpoint/NoteAttachmentScheduleRequestBatchApiObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/endpoint/NoteAttachmentScheduleRequestBatchApiObject.java @@ -48,7 +48,7 @@ public class NoteAttachmentScheduleRequestBatchApiObject extends BunqModel { */ @Expose @SerializedName("id") - private Integer id; + private Long id; /** * The timestamp of the note's creation. @@ -97,24 +97,24 @@ public class NoteAttachmentScheduleRequestBatchApiObject extends BunqModel { */ @Expose @SerializedName("attachment_id_field_for_request") - private Integer attachmentIdFieldForRequest; + private Long attachmentIdFieldForRequest; public NoteAttachmentScheduleRequestBatchApiObject() { this(null, null); } - public NoteAttachmentScheduleRequestBatchApiObject(Integer attachmentId) { + public NoteAttachmentScheduleRequestBatchApiObject(Long attachmentId) { this(attachmentId, null); } - public NoteAttachmentScheduleRequestBatchApiObject(Integer attachmentId, String description) { + public NoteAttachmentScheduleRequestBatchApiObject(Long attachmentId, String description) { this.descriptionFieldForRequest = description; this.attachmentIdFieldForRequest = attachmentId; } /** * @param attachmentId The reference to the uploaded file to attach to this note. * @param description Optional description of the attachment. */ - public static BunqResponse create(Integer scheduleRequestInquiryBatchId, Integer attachmentId, Integer monetaryAccountId, String description, Map customHeaders) { + public static BunqResponse create(Long scheduleRequestInquiryBatchId, Long attachmentId, Long monetaryAccountId, String description, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -131,30 +131,30 @@ public static BunqResponse create(Integer scheduleRequestInquiryBatchId return processForId(responseRaw); } - public static BunqResponse create() { + public static BunqResponse create() { return create(null, null, null, null, null); } - public static BunqResponse create(Integer scheduleRequestInquiryBatchId) { + public static BunqResponse create(Long scheduleRequestInquiryBatchId) { return create(scheduleRequestInquiryBatchId, null, null, null, null); } - public static BunqResponse create(Integer scheduleRequestInquiryBatchId, Integer attachmentId) { + public static BunqResponse create(Long scheduleRequestInquiryBatchId, Long attachmentId) { return create(scheduleRequestInquiryBatchId, attachmentId, null, null, null); } - public static BunqResponse create(Integer scheduleRequestInquiryBatchId, Integer attachmentId, Integer monetaryAccountId) { + public static BunqResponse create(Long scheduleRequestInquiryBatchId, Long attachmentId, Long monetaryAccountId) { return create(scheduleRequestInquiryBatchId, attachmentId, monetaryAccountId, null, null); } - public static BunqResponse create(Integer scheduleRequestInquiryBatchId, Integer attachmentId, Integer monetaryAccountId, String description) { + public static BunqResponse create(Long scheduleRequestInquiryBatchId, Long attachmentId, Long monetaryAccountId, String description) { return create(scheduleRequestInquiryBatchId, attachmentId, monetaryAccountId, description, null); } /** * @param description Optional description of the attachment. */ - public static BunqResponse update(Integer scheduleRequestInquiryBatchId, Integer noteAttachmentScheduleRequestBatchId, Integer monetaryAccountId, String description, Map customHeaders) { + public static BunqResponse update(Long scheduleRequestInquiryBatchId, Long noteAttachmentScheduleRequestBatchId, Long monetaryAccountId, String description, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -170,47 +170,47 @@ public static BunqResponse update(Integer scheduleRequestInquiryBatchId return processForId(responseRaw); } - public static BunqResponse update(Integer scheduleRequestInquiryBatchId) { + public static BunqResponse update(Long scheduleRequestInquiryBatchId) { return update(scheduleRequestInquiryBatchId, null, null, null, null); } - public static BunqResponse update(Integer scheduleRequestInquiryBatchId, Integer noteAttachmentScheduleRequestBatchId) { + public static BunqResponse update(Long scheduleRequestInquiryBatchId, Long noteAttachmentScheduleRequestBatchId) { return update(scheduleRequestInquiryBatchId, noteAttachmentScheduleRequestBatchId, null, null, null); } - public static BunqResponse update(Integer scheduleRequestInquiryBatchId, Integer noteAttachmentScheduleRequestBatchId, Integer monetaryAccountId) { + public static BunqResponse update(Long scheduleRequestInquiryBatchId, Long noteAttachmentScheduleRequestBatchId, Long monetaryAccountId) { return update(scheduleRequestInquiryBatchId, noteAttachmentScheduleRequestBatchId, monetaryAccountId, null, null); } - public static BunqResponse update(Integer scheduleRequestInquiryBatchId, Integer noteAttachmentScheduleRequestBatchId, Integer monetaryAccountId, String description) { + public static BunqResponse update(Long scheduleRequestInquiryBatchId, Long noteAttachmentScheduleRequestBatchId, Long monetaryAccountId, String description) { return update(scheduleRequestInquiryBatchId, noteAttachmentScheduleRequestBatchId, monetaryAccountId, description, null); } /** */ - public static BunqResponse delete(Integer scheduleRequestInquiryBatchId, Integer noteAttachmentScheduleRequestBatchId, Integer monetaryAccountId, Map customHeaders) { + public static BunqResponse delete(Long scheduleRequestInquiryBatchId, Long noteAttachmentScheduleRequestBatchId, Long monetaryAccountId, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.delete(String.format(ENDPOINT_URL_DELETE, determineUserId(), determineMonetaryAccountId(monetaryAccountId), scheduleRequestInquiryBatchId, noteAttachmentScheduleRequestBatchId), customHeaders); return new BunqResponse<>(null, responseRaw.getHeaders()); } - public static BunqResponse delete(Integer scheduleRequestInquiryBatchId) { + public static BunqResponse delete(Long scheduleRequestInquiryBatchId) { return delete(scheduleRequestInquiryBatchId, null, null, null); } - public static BunqResponse delete(Integer scheduleRequestInquiryBatchId, Integer noteAttachmentScheduleRequestBatchId) { + public static BunqResponse delete(Long scheduleRequestInquiryBatchId, Long noteAttachmentScheduleRequestBatchId) { return delete(scheduleRequestInquiryBatchId, noteAttachmentScheduleRequestBatchId, null, null); } - public static BunqResponse delete(Integer scheduleRequestInquiryBatchId, Integer noteAttachmentScheduleRequestBatchId, Integer monetaryAccountId) { + public static BunqResponse delete(Long scheduleRequestInquiryBatchId, Long noteAttachmentScheduleRequestBatchId, Long monetaryAccountId) { return delete(scheduleRequestInquiryBatchId, noteAttachmentScheduleRequestBatchId, monetaryAccountId, null); } /** * Manage the notes for a scheduled request. */ - public static BunqResponse> list(Integer scheduleRequestInquiryBatchId, Integer monetaryAccountId, Map params, Map customHeaders) { + public static BunqResponse> list(Long scheduleRequestInquiryBatchId, Long monetaryAccountId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_LISTING, determineUserId(), determineMonetaryAccountId(monetaryAccountId), scheduleRequestInquiryBatchId), params, customHeaders); @@ -221,21 +221,21 @@ public static BunqResponse> li return list(null, null, null, null); } - public static BunqResponse> list(Integer scheduleRequestInquiryBatchId) { + public static BunqResponse> list(Long scheduleRequestInquiryBatchId) { return list(scheduleRequestInquiryBatchId, null, null, null); } - public static BunqResponse> list(Integer scheduleRequestInquiryBatchId, Integer monetaryAccountId) { + public static BunqResponse> list(Long scheduleRequestInquiryBatchId, Long monetaryAccountId) { return list(scheduleRequestInquiryBatchId, monetaryAccountId, null, null); } - public static BunqResponse> list(Integer scheduleRequestInquiryBatchId, Integer monetaryAccountId, Map params) { + public static BunqResponse> list(Long scheduleRequestInquiryBatchId, Long monetaryAccountId, Map params) { return list(scheduleRequestInquiryBatchId, monetaryAccountId, params, null); } /** */ - public static BunqResponse get(Integer scheduleRequestInquiryBatchId, Integer noteAttachmentScheduleRequestBatchId, Integer monetaryAccountId, Map params, Map customHeaders) { + public static BunqResponse get(Long scheduleRequestInquiryBatchId, Long noteAttachmentScheduleRequestBatchId, Long monetaryAccountId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_READ, determineUserId(), determineMonetaryAccountId(monetaryAccountId), scheduleRequestInquiryBatchId, noteAttachmentScheduleRequestBatchId), params, customHeaders); @@ -246,30 +246,30 @@ public static BunqResponse get() { return get(null, null, null, null, null); } - public static BunqResponse get(Integer scheduleRequestInquiryBatchId) { + public static BunqResponse get(Long scheduleRequestInquiryBatchId) { return get(scheduleRequestInquiryBatchId, null, null, null, null); } - public static BunqResponse get(Integer scheduleRequestInquiryBatchId, Integer noteAttachmentScheduleRequestBatchId) { + public static BunqResponse get(Long scheduleRequestInquiryBatchId, Long noteAttachmentScheduleRequestBatchId) { return get(scheduleRequestInquiryBatchId, noteAttachmentScheduleRequestBatchId, null, null, null); } - public static BunqResponse get(Integer scheduleRequestInquiryBatchId, Integer noteAttachmentScheduleRequestBatchId, Integer monetaryAccountId) { + public static BunqResponse get(Long scheduleRequestInquiryBatchId, Long noteAttachmentScheduleRequestBatchId, Long monetaryAccountId) { return get(scheduleRequestInquiryBatchId, noteAttachmentScheduleRequestBatchId, monetaryAccountId, null, null); } - public static BunqResponse get(Integer scheduleRequestInquiryBatchId, Integer noteAttachmentScheduleRequestBatchId, Integer monetaryAccountId, Map params) { + public static BunqResponse get(Long scheduleRequestInquiryBatchId, Long noteAttachmentScheduleRequestBatchId, Long monetaryAccountId, Map params) { return get(scheduleRequestInquiryBatchId, noteAttachmentScheduleRequestBatchId, monetaryAccountId, params, null); } /** * The id of the note. */ - public Integer getId() { + public Long getId() { return this.id; } - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } diff --git a/src/main/java/com/bunq/sdk/model/generated/endpoint/NoteAttachmentSofortMerchantTransactionApiObject.java b/src/main/java/com/bunq/sdk/model/generated/endpoint/NoteAttachmentSofortMerchantTransactionApiObject.java index e20db302..14f967fc 100644 --- a/src/main/java/com/bunq/sdk/model/generated/endpoint/NoteAttachmentSofortMerchantTransactionApiObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/endpoint/NoteAttachmentSofortMerchantTransactionApiObject.java @@ -48,7 +48,7 @@ public class NoteAttachmentSofortMerchantTransactionApiObject extends BunqModel */ @Expose @SerializedName("id") - private Integer id; + private Long id; /** * The timestamp of the note's creation. @@ -97,24 +97,24 @@ public class NoteAttachmentSofortMerchantTransactionApiObject extends BunqModel */ @Expose @SerializedName("attachment_id_field_for_request") - private Integer attachmentIdFieldForRequest; + private Long attachmentIdFieldForRequest; public NoteAttachmentSofortMerchantTransactionApiObject() { this(null, null); } - public NoteAttachmentSofortMerchantTransactionApiObject(Integer attachmentId) { + public NoteAttachmentSofortMerchantTransactionApiObject(Long attachmentId) { this(attachmentId, null); } - public NoteAttachmentSofortMerchantTransactionApiObject(Integer attachmentId, String description) { + public NoteAttachmentSofortMerchantTransactionApiObject(Long attachmentId, String description) { this.descriptionFieldForRequest = description; this.attachmentIdFieldForRequest = attachmentId; } /** * @param attachmentId The reference to the uploaded file to attach to this note. * @param description Optional description of the attachment. */ - public static BunqResponse create(Integer sofortMerchantTransactionId, Integer attachmentId, Integer monetaryAccountId, String description, Map customHeaders) { + public static BunqResponse create(Long sofortMerchantTransactionId, Long attachmentId, Long monetaryAccountId, String description, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -131,30 +131,30 @@ public static BunqResponse create(Integer sofortMerchantTransactionId, return processForId(responseRaw); } - public static BunqResponse create() { + public static BunqResponse create() { return create(null, null, null, null, null); } - public static BunqResponse create(Integer sofortMerchantTransactionId) { + public static BunqResponse create(Long sofortMerchantTransactionId) { return create(sofortMerchantTransactionId, null, null, null, null); } - public static BunqResponse create(Integer sofortMerchantTransactionId, Integer attachmentId) { + public static BunqResponse create(Long sofortMerchantTransactionId, Long attachmentId) { return create(sofortMerchantTransactionId, attachmentId, null, null, null); } - public static BunqResponse create(Integer sofortMerchantTransactionId, Integer attachmentId, Integer monetaryAccountId) { + public static BunqResponse create(Long sofortMerchantTransactionId, Long attachmentId, Long monetaryAccountId) { return create(sofortMerchantTransactionId, attachmentId, monetaryAccountId, null, null); } - public static BunqResponse create(Integer sofortMerchantTransactionId, Integer attachmentId, Integer monetaryAccountId, String description) { + public static BunqResponse create(Long sofortMerchantTransactionId, Long attachmentId, Long monetaryAccountId, String description) { return create(sofortMerchantTransactionId, attachmentId, monetaryAccountId, description, null); } /** * @param description Optional description of the attachment. */ - public static BunqResponse update(Integer sofortMerchantTransactionId, Integer noteAttachmentSofortMerchantTransactionId, Integer monetaryAccountId, String description, Map customHeaders) { + public static BunqResponse update(Long sofortMerchantTransactionId, Long noteAttachmentSofortMerchantTransactionId, Long monetaryAccountId, String description, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -170,47 +170,47 @@ public static BunqResponse update(Integer sofortMerchantTransactionId, return processForId(responseRaw); } - public static BunqResponse update(Integer sofortMerchantTransactionId) { + public static BunqResponse update(Long sofortMerchantTransactionId) { return update(sofortMerchantTransactionId, null, null, null, null); } - public static BunqResponse update(Integer sofortMerchantTransactionId, Integer noteAttachmentSofortMerchantTransactionId) { + public static BunqResponse update(Long sofortMerchantTransactionId, Long noteAttachmentSofortMerchantTransactionId) { return update(sofortMerchantTransactionId, noteAttachmentSofortMerchantTransactionId, null, null, null); } - public static BunqResponse update(Integer sofortMerchantTransactionId, Integer noteAttachmentSofortMerchantTransactionId, Integer monetaryAccountId) { + public static BunqResponse update(Long sofortMerchantTransactionId, Long noteAttachmentSofortMerchantTransactionId, Long monetaryAccountId) { return update(sofortMerchantTransactionId, noteAttachmentSofortMerchantTransactionId, monetaryAccountId, null, null); } - public static BunqResponse update(Integer sofortMerchantTransactionId, Integer noteAttachmentSofortMerchantTransactionId, Integer monetaryAccountId, String description) { + public static BunqResponse update(Long sofortMerchantTransactionId, Long noteAttachmentSofortMerchantTransactionId, Long monetaryAccountId, String description) { return update(sofortMerchantTransactionId, noteAttachmentSofortMerchantTransactionId, monetaryAccountId, description, null); } /** */ - public static BunqResponse delete(Integer sofortMerchantTransactionId, Integer noteAttachmentSofortMerchantTransactionId, Integer monetaryAccountId, Map customHeaders) { + public static BunqResponse delete(Long sofortMerchantTransactionId, Long noteAttachmentSofortMerchantTransactionId, Long monetaryAccountId, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.delete(String.format(ENDPOINT_URL_DELETE, determineUserId(), determineMonetaryAccountId(monetaryAccountId), sofortMerchantTransactionId, noteAttachmentSofortMerchantTransactionId), customHeaders); return new BunqResponse<>(null, responseRaw.getHeaders()); } - public static BunqResponse delete(Integer sofortMerchantTransactionId) { + public static BunqResponse delete(Long sofortMerchantTransactionId) { return delete(sofortMerchantTransactionId, null, null, null); } - public static BunqResponse delete(Integer sofortMerchantTransactionId, Integer noteAttachmentSofortMerchantTransactionId) { + public static BunqResponse delete(Long sofortMerchantTransactionId, Long noteAttachmentSofortMerchantTransactionId) { return delete(sofortMerchantTransactionId, noteAttachmentSofortMerchantTransactionId, null, null); } - public static BunqResponse delete(Integer sofortMerchantTransactionId, Integer noteAttachmentSofortMerchantTransactionId, Integer monetaryAccountId) { + public static BunqResponse delete(Long sofortMerchantTransactionId, Long noteAttachmentSofortMerchantTransactionId, Long monetaryAccountId) { return delete(sofortMerchantTransactionId, noteAttachmentSofortMerchantTransactionId, monetaryAccountId, null); } /** * Manage the notes for a given user. */ - public static BunqResponse> list(Integer sofortMerchantTransactionId, Integer monetaryAccountId, Map params, Map customHeaders) { + public static BunqResponse> list(Long sofortMerchantTransactionId, Long monetaryAccountId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_LISTING, determineUserId(), determineMonetaryAccountId(monetaryAccountId), sofortMerchantTransactionId), params, customHeaders); @@ -221,21 +221,21 @@ public static BunqResponse> list(Integer sofortMerchantTransactionId) { + public static BunqResponse> list(Long sofortMerchantTransactionId) { return list(sofortMerchantTransactionId, null, null, null); } - public static BunqResponse> list(Integer sofortMerchantTransactionId, Integer monetaryAccountId) { + public static BunqResponse> list(Long sofortMerchantTransactionId, Long monetaryAccountId) { return list(sofortMerchantTransactionId, monetaryAccountId, null, null); } - public static BunqResponse> list(Integer sofortMerchantTransactionId, Integer monetaryAccountId, Map params) { + public static BunqResponse> list(Long sofortMerchantTransactionId, Long monetaryAccountId, Map params) { return list(sofortMerchantTransactionId, monetaryAccountId, params, null); } /** */ - public static BunqResponse get(Integer sofortMerchantTransactionId, Integer noteAttachmentSofortMerchantTransactionId, Integer monetaryAccountId, Map params, Map customHeaders) { + public static BunqResponse get(Long sofortMerchantTransactionId, Long noteAttachmentSofortMerchantTransactionId, Long monetaryAccountId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_READ, determineUserId(), determineMonetaryAccountId(monetaryAccountId), sofortMerchantTransactionId, noteAttachmentSofortMerchantTransactionId), params, customHeaders); @@ -246,30 +246,30 @@ public static BunqResponse get return get(null, null, null, null, null); } - public static BunqResponse get(Integer sofortMerchantTransactionId) { + public static BunqResponse get(Long sofortMerchantTransactionId) { return get(sofortMerchantTransactionId, null, null, null, null); } - public static BunqResponse get(Integer sofortMerchantTransactionId, Integer noteAttachmentSofortMerchantTransactionId) { + public static BunqResponse get(Long sofortMerchantTransactionId, Long noteAttachmentSofortMerchantTransactionId) { return get(sofortMerchantTransactionId, noteAttachmentSofortMerchantTransactionId, null, null, null); } - public static BunqResponse get(Integer sofortMerchantTransactionId, Integer noteAttachmentSofortMerchantTransactionId, Integer monetaryAccountId) { + public static BunqResponse get(Long sofortMerchantTransactionId, Long noteAttachmentSofortMerchantTransactionId, Long monetaryAccountId) { return get(sofortMerchantTransactionId, noteAttachmentSofortMerchantTransactionId, monetaryAccountId, null, null); } - public static BunqResponse get(Integer sofortMerchantTransactionId, Integer noteAttachmentSofortMerchantTransactionId, Integer monetaryAccountId, Map params) { + public static BunqResponse get(Long sofortMerchantTransactionId, Long noteAttachmentSofortMerchantTransactionId, Long monetaryAccountId, Map params) { return get(sofortMerchantTransactionId, noteAttachmentSofortMerchantTransactionId, monetaryAccountId, params, null); } /** * The id of the note. */ - public Integer getId() { + public Long getId() { return this.id; } - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } diff --git a/src/main/java/com/bunq/sdk/model/generated/endpoint/NoteAttachmentWhitelistResultApiObject.java b/src/main/java/com/bunq/sdk/model/generated/endpoint/NoteAttachmentWhitelistResultApiObject.java index 0e13320a..4b27bdec 100644 --- a/src/main/java/com/bunq/sdk/model/generated/endpoint/NoteAttachmentWhitelistResultApiObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/endpoint/NoteAttachmentWhitelistResultApiObject.java @@ -48,7 +48,7 @@ public class NoteAttachmentWhitelistResultApiObject extends BunqModel { */ @Expose @SerializedName("id") - private Integer id; + private Long id; /** * The timestamp of the note's creation. @@ -97,24 +97,24 @@ public class NoteAttachmentWhitelistResultApiObject extends BunqModel { */ @Expose @SerializedName("attachment_id_field_for_request") - private Integer attachmentIdFieldForRequest; + private Long attachmentIdFieldForRequest; public NoteAttachmentWhitelistResultApiObject() { this(null, null); } - public NoteAttachmentWhitelistResultApiObject(Integer attachmentId) { + public NoteAttachmentWhitelistResultApiObject(Long attachmentId) { this(attachmentId, null); } - public NoteAttachmentWhitelistResultApiObject(Integer attachmentId, String description) { + public NoteAttachmentWhitelistResultApiObject(Long attachmentId, String description) { this.descriptionFieldForRequest = description; this.attachmentIdFieldForRequest = attachmentId; } /** * @param attachmentId The reference to the uploaded file to attach to this note. * @param description Optional description of the attachment. */ - public static BunqResponse create(Integer whitelistId, Integer whitelistResultId, Integer attachmentId, Integer monetaryAccountId, String description, Map customHeaders) { + public static BunqResponse create(Long whitelistId, Long whitelistResultId, Long attachmentId, Long monetaryAccountId, String description, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -131,34 +131,34 @@ public static BunqResponse create(Integer whitelistId, Integer whitelis return processForId(responseRaw); } - public static BunqResponse create() { + public static BunqResponse create() { return create(null, null, null, null, null, null); } - public static BunqResponse create(Integer whitelistId) { + public static BunqResponse create(Long whitelistId) { return create(whitelistId, null, null, null, null, null); } - public static BunqResponse create(Integer whitelistId, Integer whitelistResultId) { + public static BunqResponse create(Long whitelistId, Long whitelistResultId) { return create(whitelistId, whitelistResultId, null, null, null, null); } - public static BunqResponse create(Integer whitelistId, Integer whitelistResultId, Integer attachmentId) { + public static BunqResponse create(Long whitelistId, Long whitelistResultId, Long attachmentId) { return create(whitelistId, whitelistResultId, attachmentId, null, null, null); } - public static BunqResponse create(Integer whitelistId, Integer whitelistResultId, Integer attachmentId, Integer monetaryAccountId) { + public static BunqResponse create(Long whitelistId, Long whitelistResultId, Long attachmentId, Long monetaryAccountId) { return create(whitelistId, whitelistResultId, attachmentId, monetaryAccountId, null, null); } - public static BunqResponse create(Integer whitelistId, Integer whitelistResultId, Integer attachmentId, Integer monetaryAccountId, String description) { + public static BunqResponse create(Long whitelistId, Long whitelistResultId, Long attachmentId, Long monetaryAccountId, String description) { return create(whitelistId, whitelistResultId, attachmentId, monetaryAccountId, description, null); } /** * @param description Optional description of the attachment. */ - public static BunqResponse update(Integer whitelistId, Integer whitelistResultId, Integer noteAttachmentWhitelistResultId, Integer monetaryAccountId, String description, Map customHeaders) { + public static BunqResponse update(Long whitelistId, Long whitelistResultId, Long noteAttachmentWhitelistResultId, Long monetaryAccountId, String description, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -174,55 +174,55 @@ public static BunqResponse update(Integer whitelistId, Integer whitelis return processForId(responseRaw); } - public static BunqResponse update(Integer whitelistId) { + public static BunqResponse update(Long whitelistId) { return update(whitelistId, null, null, null, null, null); } - public static BunqResponse update(Integer whitelistId, Integer whitelistResultId) { + public static BunqResponse update(Long whitelistId, Long whitelistResultId) { return update(whitelistId, whitelistResultId, null, null, null, null); } - public static BunqResponse update(Integer whitelistId, Integer whitelistResultId, Integer noteAttachmentWhitelistResultId) { + public static BunqResponse update(Long whitelistId, Long whitelistResultId, Long noteAttachmentWhitelistResultId) { return update(whitelistId, whitelistResultId, noteAttachmentWhitelistResultId, null, null, null); } - public static BunqResponse update(Integer whitelistId, Integer whitelistResultId, Integer noteAttachmentWhitelistResultId, Integer monetaryAccountId) { + public static BunqResponse update(Long whitelistId, Long whitelistResultId, Long noteAttachmentWhitelistResultId, Long monetaryAccountId) { return update(whitelistId, whitelistResultId, noteAttachmentWhitelistResultId, monetaryAccountId, null, null); } - public static BunqResponse update(Integer whitelistId, Integer whitelistResultId, Integer noteAttachmentWhitelistResultId, Integer monetaryAccountId, String description) { + public static BunqResponse update(Long whitelistId, Long whitelistResultId, Long noteAttachmentWhitelistResultId, Long monetaryAccountId, String description) { return update(whitelistId, whitelistResultId, noteAttachmentWhitelistResultId, monetaryAccountId, description, null); } /** */ - public static BunqResponse delete(Integer whitelistId, Integer whitelistResultId, Integer noteAttachmentWhitelistResultId, Integer monetaryAccountId, Map customHeaders) { + public static BunqResponse delete(Long whitelistId, Long whitelistResultId, Long noteAttachmentWhitelistResultId, Long monetaryAccountId, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.delete(String.format(ENDPOINT_URL_DELETE, determineUserId(), determineMonetaryAccountId(monetaryAccountId), whitelistId, whitelistResultId, noteAttachmentWhitelistResultId), customHeaders); return new BunqResponse<>(null, responseRaw.getHeaders()); } - public static BunqResponse delete(Integer whitelistId) { + public static BunqResponse delete(Long whitelistId) { return delete(whitelistId, null, null, null, null); } - public static BunqResponse delete(Integer whitelistId, Integer whitelistResultId) { + public static BunqResponse delete(Long whitelistId, Long whitelistResultId) { return delete(whitelistId, whitelistResultId, null, null, null); } - public static BunqResponse delete(Integer whitelistId, Integer whitelistResultId, Integer noteAttachmentWhitelistResultId) { + public static BunqResponse delete(Long whitelistId, Long whitelistResultId, Long noteAttachmentWhitelistResultId) { return delete(whitelistId, whitelistResultId, noteAttachmentWhitelistResultId, null, null); } - public static BunqResponse delete(Integer whitelistId, Integer whitelistResultId, Integer noteAttachmentWhitelistResultId, Integer monetaryAccountId) { + public static BunqResponse delete(Long whitelistId, Long whitelistResultId, Long noteAttachmentWhitelistResultId, Long monetaryAccountId) { return delete(whitelistId, whitelistResultId, noteAttachmentWhitelistResultId, monetaryAccountId, null); } /** * Manage the notes for a given user. */ - public static BunqResponse> list(Integer whitelistId, Integer whitelistResultId, Integer monetaryAccountId, Map params, Map customHeaders) { + public static BunqResponse> list(Long whitelistId, Long whitelistResultId, Long monetaryAccountId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_LISTING, determineUserId(), determineMonetaryAccountId(monetaryAccountId), whitelistId, whitelistResultId), params, customHeaders); @@ -233,25 +233,25 @@ public static BunqResponse> list() return list(null, null, null, null, null); } - public static BunqResponse> list(Integer whitelistId) { + public static BunqResponse> list(Long whitelistId) { return list(whitelistId, null, null, null, null); } - public static BunqResponse> list(Integer whitelistId, Integer whitelistResultId) { + public static BunqResponse> list(Long whitelistId, Long whitelistResultId) { return list(whitelistId, whitelistResultId, null, null, null); } - public static BunqResponse> list(Integer whitelistId, Integer whitelistResultId, Integer monetaryAccountId) { + public static BunqResponse> list(Long whitelistId, Long whitelistResultId, Long monetaryAccountId) { return list(whitelistId, whitelistResultId, monetaryAccountId, null, null); } - public static BunqResponse> list(Integer whitelistId, Integer whitelistResultId, Integer monetaryAccountId, Map params) { + public static BunqResponse> list(Long whitelistId, Long whitelistResultId, Long monetaryAccountId, Map params) { return list(whitelistId, whitelistResultId, monetaryAccountId, params, null); } /** */ - public static BunqResponse get(Integer whitelistId, Integer whitelistResultId, Integer noteAttachmentWhitelistResultId, Integer monetaryAccountId, Map params, Map customHeaders) { + public static BunqResponse get(Long whitelistId, Long whitelistResultId, Long noteAttachmentWhitelistResultId, Long monetaryAccountId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_READ, determineUserId(), determineMonetaryAccountId(monetaryAccountId), whitelistId, whitelistResultId, noteAttachmentWhitelistResultId), params, customHeaders); @@ -262,34 +262,34 @@ public static BunqResponse get() { return get(null, null, null, null, null, null); } - public static BunqResponse get(Integer whitelistId) { + public static BunqResponse get(Long whitelistId) { return get(whitelistId, null, null, null, null, null); } - public static BunqResponse get(Integer whitelistId, Integer whitelistResultId) { + public static BunqResponse get(Long whitelistId, Long whitelistResultId) { return get(whitelistId, whitelistResultId, null, null, null, null); } - public static BunqResponse get(Integer whitelistId, Integer whitelistResultId, Integer noteAttachmentWhitelistResultId) { + public static BunqResponse get(Long whitelistId, Long whitelistResultId, Long noteAttachmentWhitelistResultId) { return get(whitelistId, whitelistResultId, noteAttachmentWhitelistResultId, null, null, null); } - public static BunqResponse get(Integer whitelistId, Integer whitelistResultId, Integer noteAttachmentWhitelistResultId, Integer monetaryAccountId) { + public static BunqResponse get(Long whitelistId, Long whitelistResultId, Long noteAttachmentWhitelistResultId, Long monetaryAccountId) { return get(whitelistId, whitelistResultId, noteAttachmentWhitelistResultId, monetaryAccountId, null, null); } - public static BunqResponse get(Integer whitelistId, Integer whitelistResultId, Integer noteAttachmentWhitelistResultId, Integer monetaryAccountId, Map params) { + public static BunqResponse get(Long whitelistId, Long whitelistResultId, Long noteAttachmentWhitelistResultId, Long monetaryAccountId, Map params) { return get(whitelistId, whitelistResultId, noteAttachmentWhitelistResultId, monetaryAccountId, params, null); } /** * The id of the note. */ - public Integer getId() { + public Long getId() { return this.id; } - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } diff --git a/src/main/java/com/bunq/sdk/model/generated/endpoint/NoteTextAdyenCardTransactionApiObject.java b/src/main/java/com/bunq/sdk/model/generated/endpoint/NoteTextAdyenCardTransactionApiObject.java index 3995d1f8..2bb46e4a 100644 --- a/src/main/java/com/bunq/sdk/model/generated/endpoint/NoteTextAdyenCardTransactionApiObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/endpoint/NoteTextAdyenCardTransactionApiObject.java @@ -46,7 +46,7 @@ public class NoteTextAdyenCardTransactionApiObject extends BunqModel { */ @Expose @SerializedName("id") - private Integer id; + private Long id; /** * The timestamp of the note's creation. @@ -92,7 +92,7 @@ public NoteTextAdyenCardTransactionApiObject(String content) { } /** * @param content The content of the note. */ - public static BunqResponse create(Integer adyenCardTransactionId, Integer monetaryAccountId, String content, Map customHeaders) { + public static BunqResponse create(Long adyenCardTransactionId, Long monetaryAccountId, String content, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -108,26 +108,26 @@ public static BunqResponse create(Integer adyenCardTransactionId, Integ return processForId(responseRaw); } - public static BunqResponse create() { + public static BunqResponse create() { return create(null, null, null, null); } - public static BunqResponse create(Integer adyenCardTransactionId) { + public static BunqResponse create(Long adyenCardTransactionId) { return create(adyenCardTransactionId, null, null, null); } - public static BunqResponse create(Integer adyenCardTransactionId, Integer monetaryAccountId) { + public static BunqResponse create(Long adyenCardTransactionId, Long monetaryAccountId) { return create(adyenCardTransactionId, monetaryAccountId, null, null); } - public static BunqResponse create(Integer adyenCardTransactionId, Integer monetaryAccountId, String content) { + public static BunqResponse create(Long adyenCardTransactionId, Long monetaryAccountId, String content) { return create(adyenCardTransactionId, monetaryAccountId, content, null); } /** * @param content The content of the note. */ - public static BunqResponse update(Integer adyenCardTransactionId, Integer noteTextAdyenCardTransactionId, Integer monetaryAccountId, String content, Map customHeaders) { + public static BunqResponse update(Long adyenCardTransactionId, Long noteTextAdyenCardTransactionId, Long monetaryAccountId, String content, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -143,46 +143,46 @@ public static BunqResponse update(Integer adyenCardTransactionId, Integ return processForId(responseRaw); } - public static BunqResponse update(Integer adyenCardTransactionId) { + public static BunqResponse update(Long adyenCardTransactionId) { return update(adyenCardTransactionId, null, null, null, null); } - public static BunqResponse update(Integer adyenCardTransactionId, Integer noteTextAdyenCardTransactionId) { + public static BunqResponse update(Long adyenCardTransactionId, Long noteTextAdyenCardTransactionId) { return update(adyenCardTransactionId, noteTextAdyenCardTransactionId, null, null, null); } - public static BunqResponse update(Integer adyenCardTransactionId, Integer noteTextAdyenCardTransactionId, Integer monetaryAccountId) { + public static BunqResponse update(Long adyenCardTransactionId, Long noteTextAdyenCardTransactionId, Long monetaryAccountId) { return update(adyenCardTransactionId, noteTextAdyenCardTransactionId, monetaryAccountId, null, null); } - public static BunqResponse update(Integer adyenCardTransactionId, Integer noteTextAdyenCardTransactionId, Integer monetaryAccountId, String content) { + public static BunqResponse update(Long adyenCardTransactionId, Long noteTextAdyenCardTransactionId, Long monetaryAccountId, String content) { return update(adyenCardTransactionId, noteTextAdyenCardTransactionId, monetaryAccountId, content, null); } /** */ - public static BunqResponse delete(Integer adyenCardTransactionId, Integer noteTextAdyenCardTransactionId, Integer monetaryAccountId, Map customHeaders) { + public static BunqResponse delete(Long adyenCardTransactionId, Long noteTextAdyenCardTransactionId, Long monetaryAccountId, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.delete(String.format(ENDPOINT_URL_DELETE, determineUserId(), determineMonetaryAccountId(monetaryAccountId), adyenCardTransactionId, noteTextAdyenCardTransactionId), customHeaders); return new BunqResponse<>(null, responseRaw.getHeaders()); } - public static BunqResponse delete(Integer adyenCardTransactionId) { + public static BunqResponse delete(Long adyenCardTransactionId) { return delete(adyenCardTransactionId, null, null, null); } - public static BunqResponse delete(Integer adyenCardTransactionId, Integer noteTextAdyenCardTransactionId) { + public static BunqResponse delete(Long adyenCardTransactionId, Long noteTextAdyenCardTransactionId) { return delete(adyenCardTransactionId, noteTextAdyenCardTransactionId, null, null); } - public static BunqResponse delete(Integer adyenCardTransactionId, Integer noteTextAdyenCardTransactionId, Integer monetaryAccountId) { + public static BunqResponse delete(Long adyenCardTransactionId, Long noteTextAdyenCardTransactionId, Long monetaryAccountId) { return delete(adyenCardTransactionId, noteTextAdyenCardTransactionId, monetaryAccountId, null); } /** */ - public static BunqResponse> list(Integer adyenCardTransactionId, Integer monetaryAccountId, Map params, Map customHeaders) { + public static BunqResponse> list(Long adyenCardTransactionId, Long monetaryAccountId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_LISTING, determineUserId(), determineMonetaryAccountId(monetaryAccountId), adyenCardTransactionId), params, customHeaders); @@ -193,21 +193,21 @@ public static BunqResponse> list() { return list(null, null, null, null); } - public static BunqResponse> list(Integer adyenCardTransactionId) { + public static BunqResponse> list(Long adyenCardTransactionId) { return list(adyenCardTransactionId, null, null, null); } - public static BunqResponse> list(Integer adyenCardTransactionId, Integer monetaryAccountId) { + public static BunqResponse> list(Long adyenCardTransactionId, Long monetaryAccountId) { return list(adyenCardTransactionId, monetaryAccountId, null, null); } - public static BunqResponse> list(Integer adyenCardTransactionId, Integer monetaryAccountId, Map params) { + public static BunqResponse> list(Long adyenCardTransactionId, Long monetaryAccountId, Map params) { return list(adyenCardTransactionId, monetaryAccountId, params, null); } /** */ - public static BunqResponse get(Integer adyenCardTransactionId, Integer noteTextAdyenCardTransactionId, Integer monetaryAccountId, Map params, Map customHeaders) { + public static BunqResponse get(Long adyenCardTransactionId, Long noteTextAdyenCardTransactionId, Long monetaryAccountId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_READ, determineUserId(), determineMonetaryAccountId(monetaryAccountId), adyenCardTransactionId, noteTextAdyenCardTransactionId), params, customHeaders); @@ -218,30 +218,30 @@ public static BunqResponse get() { return get(null, null, null, null, null); } - public static BunqResponse get(Integer adyenCardTransactionId) { + public static BunqResponse get(Long adyenCardTransactionId) { return get(adyenCardTransactionId, null, null, null, null); } - public static BunqResponse get(Integer adyenCardTransactionId, Integer noteTextAdyenCardTransactionId) { + public static BunqResponse get(Long adyenCardTransactionId, Long noteTextAdyenCardTransactionId) { return get(adyenCardTransactionId, noteTextAdyenCardTransactionId, null, null, null); } - public static BunqResponse get(Integer adyenCardTransactionId, Integer noteTextAdyenCardTransactionId, Integer monetaryAccountId) { + public static BunqResponse get(Long adyenCardTransactionId, Long noteTextAdyenCardTransactionId, Long monetaryAccountId) { return get(adyenCardTransactionId, noteTextAdyenCardTransactionId, monetaryAccountId, null, null); } - public static BunqResponse get(Integer adyenCardTransactionId, Integer noteTextAdyenCardTransactionId, Integer monetaryAccountId, Map params) { + public static BunqResponse get(Long adyenCardTransactionId, Long noteTextAdyenCardTransactionId, Long monetaryAccountId, Map params) { return get(adyenCardTransactionId, noteTextAdyenCardTransactionId, monetaryAccountId, params, null); } /** * The id of the note. */ - public Integer getId() { + public Long getId() { return this.id; } - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } diff --git a/src/main/java/com/bunq/sdk/model/generated/endpoint/NoteTextBankSwitchServiceNetherlandsIncomingPaymentApiObject.java b/src/main/java/com/bunq/sdk/model/generated/endpoint/NoteTextBankSwitchServiceNetherlandsIncomingPaymentApiObject.java index 366345c1..fbd8e740 100644 --- a/src/main/java/com/bunq/sdk/model/generated/endpoint/NoteTextBankSwitchServiceNetherlandsIncomingPaymentApiObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/endpoint/NoteTextBankSwitchServiceNetherlandsIncomingPaymentApiObject.java @@ -46,7 +46,7 @@ public class NoteTextBankSwitchServiceNetherlandsIncomingPaymentApiObject extend */ @Expose @SerializedName("id") - private Integer id; + private Long id; /** * The timestamp of the note's creation. @@ -92,7 +92,7 @@ public NoteTextBankSwitchServiceNetherlandsIncomingPaymentApiObject(String conte } /** * @param content The content of the note. */ - public static BunqResponse create(Integer switchServicePaymentId, Integer monetaryAccountId, String content, Map customHeaders) { + public static BunqResponse create(Long switchServicePaymentId, Long monetaryAccountId, String content, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -108,26 +108,26 @@ public static BunqResponse create(Integer switchServicePaymentId, Integ return processForId(responseRaw); } - public static BunqResponse create() { + public static BunqResponse create() { return create(null, null, null, null); } - public static BunqResponse create(Integer switchServicePaymentId) { + public static BunqResponse create(Long switchServicePaymentId) { return create(switchServicePaymentId, null, null, null); } - public static BunqResponse create(Integer switchServicePaymentId, Integer monetaryAccountId) { + public static BunqResponse create(Long switchServicePaymentId, Long monetaryAccountId) { return create(switchServicePaymentId, monetaryAccountId, null, null); } - public static BunqResponse create(Integer switchServicePaymentId, Integer monetaryAccountId, String content) { + public static BunqResponse create(Long switchServicePaymentId, Long monetaryAccountId, String content) { return create(switchServicePaymentId, monetaryAccountId, content, null); } /** * @param content The content of the note. */ - public static BunqResponse update(Integer switchServicePaymentId, Integer noteTextBankSwitchServiceNetherlandsIncomingPaymentId, Integer monetaryAccountId, String content, Map customHeaders) { + public static BunqResponse update(Long switchServicePaymentId, Long noteTextBankSwitchServiceNetherlandsIncomingPaymentId, Long monetaryAccountId, String content, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -143,47 +143,47 @@ public static BunqResponse update(Integer switchServicePaymentId, Integ return processForId(responseRaw); } - public static BunqResponse update(Integer switchServicePaymentId) { + public static BunqResponse update(Long switchServicePaymentId) { return update(switchServicePaymentId, null, null, null, null); } - public static BunqResponse update(Integer switchServicePaymentId, Integer noteTextBankSwitchServiceNetherlandsIncomingPaymentId) { + public static BunqResponse update(Long switchServicePaymentId, Long noteTextBankSwitchServiceNetherlandsIncomingPaymentId) { return update(switchServicePaymentId, noteTextBankSwitchServiceNetherlandsIncomingPaymentId, null, null, null); } - public static BunqResponse update(Integer switchServicePaymentId, Integer noteTextBankSwitchServiceNetherlandsIncomingPaymentId, Integer monetaryAccountId) { + public static BunqResponse update(Long switchServicePaymentId, Long noteTextBankSwitchServiceNetherlandsIncomingPaymentId, Long monetaryAccountId) { return update(switchServicePaymentId, noteTextBankSwitchServiceNetherlandsIncomingPaymentId, monetaryAccountId, null, null); } - public static BunqResponse update(Integer switchServicePaymentId, Integer noteTextBankSwitchServiceNetherlandsIncomingPaymentId, Integer monetaryAccountId, String content) { + public static BunqResponse update(Long switchServicePaymentId, Long noteTextBankSwitchServiceNetherlandsIncomingPaymentId, Long monetaryAccountId, String content) { return update(switchServicePaymentId, noteTextBankSwitchServiceNetherlandsIncomingPaymentId, monetaryAccountId, content, null); } /** */ - public static BunqResponse delete(Integer switchServicePaymentId, Integer noteTextBankSwitchServiceNetherlandsIncomingPaymentId, Integer monetaryAccountId, Map customHeaders) { + public static BunqResponse delete(Long switchServicePaymentId, Long noteTextBankSwitchServiceNetherlandsIncomingPaymentId, Long monetaryAccountId, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.delete(String.format(ENDPOINT_URL_DELETE, determineUserId(), determineMonetaryAccountId(monetaryAccountId), switchServicePaymentId, noteTextBankSwitchServiceNetherlandsIncomingPaymentId), customHeaders); return new BunqResponse<>(null, responseRaw.getHeaders()); } - public static BunqResponse delete(Integer switchServicePaymentId) { + public static BunqResponse delete(Long switchServicePaymentId) { return delete(switchServicePaymentId, null, null, null); } - public static BunqResponse delete(Integer switchServicePaymentId, Integer noteTextBankSwitchServiceNetherlandsIncomingPaymentId) { + public static BunqResponse delete(Long switchServicePaymentId, Long noteTextBankSwitchServiceNetherlandsIncomingPaymentId) { return delete(switchServicePaymentId, noteTextBankSwitchServiceNetherlandsIncomingPaymentId, null, null); } - public static BunqResponse delete(Integer switchServicePaymentId, Integer noteTextBankSwitchServiceNetherlandsIncomingPaymentId, Integer monetaryAccountId) { + public static BunqResponse delete(Long switchServicePaymentId, Long noteTextBankSwitchServiceNetherlandsIncomingPaymentId, Long monetaryAccountId) { return delete(switchServicePaymentId, noteTextBankSwitchServiceNetherlandsIncomingPaymentId, monetaryAccountId, null); } /** * Manage the notes for a given user. */ - public static BunqResponse> list(Integer switchServicePaymentId, Integer monetaryAccountId, Map params, Map customHeaders) { + public static BunqResponse> list(Long switchServicePaymentId, Long monetaryAccountId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_LISTING, determineUserId(), determineMonetaryAccountId(monetaryAccountId), switchServicePaymentId), params, customHeaders); @@ -194,21 +194,21 @@ public static BunqResponse> list(Integer switchServicePaymentId) { + public static BunqResponse> list(Long switchServicePaymentId) { return list(switchServicePaymentId, null, null, null); } - public static BunqResponse> list(Integer switchServicePaymentId, Integer monetaryAccountId) { + public static BunqResponse> list(Long switchServicePaymentId, Long monetaryAccountId) { return list(switchServicePaymentId, monetaryAccountId, null, null); } - public static BunqResponse> list(Integer switchServicePaymentId, Integer monetaryAccountId, Map params) { + public static BunqResponse> list(Long switchServicePaymentId, Long monetaryAccountId, Map params) { return list(switchServicePaymentId, monetaryAccountId, params, null); } /** */ - public static BunqResponse get(Integer switchServicePaymentId, Integer noteTextBankSwitchServiceNetherlandsIncomingPaymentId, Integer monetaryAccountId, Map params, Map customHeaders) { + public static BunqResponse get(Long switchServicePaymentId, Long noteTextBankSwitchServiceNetherlandsIncomingPaymentId, Long monetaryAccountId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_READ, determineUserId(), determineMonetaryAccountId(monetaryAccountId), switchServicePaymentId, noteTextBankSwitchServiceNetherlandsIncomingPaymentId), params, customHeaders); @@ -219,30 +219,30 @@ public static BunqResponse get(Integer switchServicePaymentId) { + public static BunqResponse get(Long switchServicePaymentId) { return get(switchServicePaymentId, null, null, null, null); } - public static BunqResponse get(Integer switchServicePaymentId, Integer noteTextBankSwitchServiceNetherlandsIncomingPaymentId) { + public static BunqResponse get(Long switchServicePaymentId, Long noteTextBankSwitchServiceNetherlandsIncomingPaymentId) { return get(switchServicePaymentId, noteTextBankSwitchServiceNetherlandsIncomingPaymentId, null, null, null); } - public static BunqResponse get(Integer switchServicePaymentId, Integer noteTextBankSwitchServiceNetherlandsIncomingPaymentId, Integer monetaryAccountId) { + public static BunqResponse get(Long switchServicePaymentId, Long noteTextBankSwitchServiceNetherlandsIncomingPaymentId, Long monetaryAccountId) { return get(switchServicePaymentId, noteTextBankSwitchServiceNetherlandsIncomingPaymentId, monetaryAccountId, null, null); } - public static BunqResponse get(Integer switchServicePaymentId, Integer noteTextBankSwitchServiceNetherlandsIncomingPaymentId, Integer monetaryAccountId, Map params) { + public static BunqResponse get(Long switchServicePaymentId, Long noteTextBankSwitchServiceNetherlandsIncomingPaymentId, Long monetaryAccountId, Map params) { return get(switchServicePaymentId, noteTextBankSwitchServiceNetherlandsIncomingPaymentId, monetaryAccountId, params, null); } /** * The id of the note. */ - public Integer getId() { + public Long getId() { return this.id; } - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } diff --git a/src/main/java/com/bunq/sdk/model/generated/endpoint/NoteTextBunqMeFundraiserResultApiObject.java b/src/main/java/com/bunq/sdk/model/generated/endpoint/NoteTextBunqMeFundraiserResultApiObject.java index 7173c2fe..89694e47 100644 --- a/src/main/java/com/bunq/sdk/model/generated/endpoint/NoteTextBunqMeFundraiserResultApiObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/endpoint/NoteTextBunqMeFundraiserResultApiObject.java @@ -46,7 +46,7 @@ public class NoteTextBunqMeFundraiserResultApiObject extends BunqModel { */ @Expose @SerializedName("id") - private Integer id; + private Long id; /** * The timestamp of the note's creation. @@ -92,7 +92,7 @@ public NoteTextBunqMeFundraiserResultApiObject(String content) { } /** * @param content The content of the note. */ - public static BunqResponse create(Integer bunqmeFundraiserResultId, Integer monetaryAccountId, String content, Map customHeaders) { + public static BunqResponse create(Long bunqmeFundraiserResultId, Long monetaryAccountId, String content, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -108,26 +108,26 @@ public static BunqResponse create(Integer bunqmeFundraiserResultId, Int return processForId(responseRaw); } - public static BunqResponse create() { + public static BunqResponse create() { return create(null, null, null, null); } - public static BunqResponse create(Integer bunqmeFundraiserResultId) { + public static BunqResponse create(Long bunqmeFundraiserResultId) { return create(bunqmeFundraiserResultId, null, null, null); } - public static BunqResponse create(Integer bunqmeFundraiserResultId, Integer monetaryAccountId) { + public static BunqResponse create(Long bunqmeFundraiserResultId, Long monetaryAccountId) { return create(bunqmeFundraiserResultId, monetaryAccountId, null, null); } - public static BunqResponse create(Integer bunqmeFundraiserResultId, Integer monetaryAccountId, String content) { + public static BunqResponse create(Long bunqmeFundraiserResultId, Long monetaryAccountId, String content) { return create(bunqmeFundraiserResultId, monetaryAccountId, content, null); } /** * @param content The content of the note. */ - public static BunqResponse update(Integer bunqmeFundraiserResultId, Integer noteTextBunqMeFundraiserResultId, Integer monetaryAccountId, String content, Map customHeaders) { + public static BunqResponse update(Long bunqmeFundraiserResultId, Long noteTextBunqMeFundraiserResultId, Long monetaryAccountId, String content, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -143,47 +143,47 @@ public static BunqResponse update(Integer bunqmeFundraiserResultId, Int return processForId(responseRaw); } - public static BunqResponse update(Integer bunqmeFundraiserResultId) { + public static BunqResponse update(Long bunqmeFundraiserResultId) { return update(bunqmeFundraiserResultId, null, null, null, null); } - public static BunqResponse update(Integer bunqmeFundraiserResultId, Integer noteTextBunqMeFundraiserResultId) { + public static BunqResponse update(Long bunqmeFundraiserResultId, Long noteTextBunqMeFundraiserResultId) { return update(bunqmeFundraiserResultId, noteTextBunqMeFundraiserResultId, null, null, null); } - public static BunqResponse update(Integer bunqmeFundraiserResultId, Integer noteTextBunqMeFundraiserResultId, Integer monetaryAccountId) { + public static BunqResponse update(Long bunqmeFundraiserResultId, Long noteTextBunqMeFundraiserResultId, Long monetaryAccountId) { return update(bunqmeFundraiserResultId, noteTextBunqMeFundraiserResultId, monetaryAccountId, null, null); } - public static BunqResponse update(Integer bunqmeFundraiserResultId, Integer noteTextBunqMeFundraiserResultId, Integer monetaryAccountId, String content) { + public static BunqResponse update(Long bunqmeFundraiserResultId, Long noteTextBunqMeFundraiserResultId, Long monetaryAccountId, String content) { return update(bunqmeFundraiserResultId, noteTextBunqMeFundraiserResultId, monetaryAccountId, content, null); } /** */ - public static BunqResponse delete(Integer bunqmeFundraiserResultId, Integer noteTextBunqMeFundraiserResultId, Integer monetaryAccountId, Map customHeaders) { + public static BunqResponse delete(Long bunqmeFundraiserResultId, Long noteTextBunqMeFundraiserResultId, Long monetaryAccountId, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.delete(String.format(ENDPOINT_URL_DELETE, determineUserId(), determineMonetaryAccountId(monetaryAccountId), bunqmeFundraiserResultId, noteTextBunqMeFundraiserResultId), customHeaders); return new BunqResponse<>(null, responseRaw.getHeaders()); } - public static BunqResponse delete(Integer bunqmeFundraiserResultId) { + public static BunqResponse delete(Long bunqmeFundraiserResultId) { return delete(bunqmeFundraiserResultId, null, null, null); } - public static BunqResponse delete(Integer bunqmeFundraiserResultId, Integer noteTextBunqMeFundraiserResultId) { + public static BunqResponse delete(Long bunqmeFundraiserResultId, Long noteTextBunqMeFundraiserResultId) { return delete(bunqmeFundraiserResultId, noteTextBunqMeFundraiserResultId, null, null); } - public static BunqResponse delete(Integer bunqmeFundraiserResultId, Integer noteTextBunqMeFundraiserResultId, Integer monetaryAccountId) { + public static BunqResponse delete(Long bunqmeFundraiserResultId, Long noteTextBunqMeFundraiserResultId, Long monetaryAccountId) { return delete(bunqmeFundraiserResultId, noteTextBunqMeFundraiserResultId, monetaryAccountId, null); } /** * Manage the notes for a given user. */ - public static BunqResponse> list(Integer bunqmeFundraiserResultId, Integer monetaryAccountId, Map params, Map customHeaders) { + public static BunqResponse> list(Long bunqmeFundraiserResultId, Long monetaryAccountId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_LISTING, determineUserId(), determineMonetaryAccountId(monetaryAccountId), bunqmeFundraiserResultId), params, customHeaders); @@ -194,21 +194,21 @@ public static BunqResponse> list() return list(null, null, null, null); } - public static BunqResponse> list(Integer bunqmeFundraiserResultId) { + public static BunqResponse> list(Long bunqmeFundraiserResultId) { return list(bunqmeFundraiserResultId, null, null, null); } - public static BunqResponse> list(Integer bunqmeFundraiserResultId, Integer monetaryAccountId) { + public static BunqResponse> list(Long bunqmeFundraiserResultId, Long monetaryAccountId) { return list(bunqmeFundraiserResultId, monetaryAccountId, null, null); } - public static BunqResponse> list(Integer bunqmeFundraiserResultId, Integer monetaryAccountId, Map params) { + public static BunqResponse> list(Long bunqmeFundraiserResultId, Long monetaryAccountId, Map params) { return list(bunqmeFundraiserResultId, monetaryAccountId, params, null); } /** */ - public static BunqResponse get(Integer bunqmeFundraiserResultId, Integer noteTextBunqMeFundraiserResultId, Integer monetaryAccountId, Map params, Map customHeaders) { + public static BunqResponse get(Long bunqmeFundraiserResultId, Long noteTextBunqMeFundraiserResultId, Long monetaryAccountId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_READ, determineUserId(), determineMonetaryAccountId(monetaryAccountId), bunqmeFundraiserResultId, noteTextBunqMeFundraiserResultId), params, customHeaders); @@ -219,30 +219,30 @@ public static BunqResponse get() { return get(null, null, null, null, null); } - public static BunqResponse get(Integer bunqmeFundraiserResultId) { + public static BunqResponse get(Long bunqmeFundraiserResultId) { return get(bunqmeFundraiserResultId, null, null, null, null); } - public static BunqResponse get(Integer bunqmeFundraiserResultId, Integer noteTextBunqMeFundraiserResultId) { + public static BunqResponse get(Long bunqmeFundraiserResultId, Long noteTextBunqMeFundraiserResultId) { return get(bunqmeFundraiserResultId, noteTextBunqMeFundraiserResultId, null, null, null); } - public static BunqResponse get(Integer bunqmeFundraiserResultId, Integer noteTextBunqMeFundraiserResultId, Integer monetaryAccountId) { + public static BunqResponse get(Long bunqmeFundraiserResultId, Long noteTextBunqMeFundraiserResultId, Long monetaryAccountId) { return get(bunqmeFundraiserResultId, noteTextBunqMeFundraiserResultId, monetaryAccountId, null, null); } - public static BunqResponse get(Integer bunqmeFundraiserResultId, Integer noteTextBunqMeFundraiserResultId, Integer monetaryAccountId, Map params) { + public static BunqResponse get(Long bunqmeFundraiserResultId, Long noteTextBunqMeFundraiserResultId, Long monetaryAccountId, Map params) { return get(bunqmeFundraiserResultId, noteTextBunqMeFundraiserResultId, monetaryAccountId, params, null); } /** * The id of the note. */ - public Integer getId() { + public Long getId() { return this.id; } - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } diff --git a/src/main/java/com/bunq/sdk/model/generated/endpoint/NoteTextDraftPaymentApiObject.java b/src/main/java/com/bunq/sdk/model/generated/endpoint/NoteTextDraftPaymentApiObject.java index 10109e63..a1934f71 100644 --- a/src/main/java/com/bunq/sdk/model/generated/endpoint/NoteTextDraftPaymentApiObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/endpoint/NoteTextDraftPaymentApiObject.java @@ -46,7 +46,7 @@ public class NoteTextDraftPaymentApiObject extends BunqModel { */ @Expose @SerializedName("id") - private Integer id; + private Long id; /** * The timestamp of the note's creation. @@ -92,7 +92,7 @@ public NoteTextDraftPaymentApiObject(String content) { } /** * @param content The content of the note. */ - public static BunqResponse create(Integer draftPaymentId, Integer monetaryAccountId, String content, Map customHeaders) { + public static BunqResponse create(Long draftPaymentId, Long monetaryAccountId, String content, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -108,26 +108,26 @@ public static BunqResponse create(Integer draftPaymentId, Integer monet return processForId(responseRaw); } - public static BunqResponse create() { + public static BunqResponse create() { return create(null, null, null, null); } - public static BunqResponse create(Integer draftPaymentId) { + public static BunqResponse create(Long draftPaymentId) { return create(draftPaymentId, null, null, null); } - public static BunqResponse create(Integer draftPaymentId, Integer monetaryAccountId) { + public static BunqResponse create(Long draftPaymentId, Long monetaryAccountId) { return create(draftPaymentId, monetaryAccountId, null, null); } - public static BunqResponse create(Integer draftPaymentId, Integer monetaryAccountId, String content) { + public static BunqResponse create(Long draftPaymentId, Long monetaryAccountId, String content) { return create(draftPaymentId, monetaryAccountId, content, null); } /** * @param content The content of the note. */ - public static BunqResponse update(Integer draftPaymentId, Integer noteTextDraftPaymentId, Integer monetaryAccountId, String content, Map customHeaders) { + public static BunqResponse update(Long draftPaymentId, Long noteTextDraftPaymentId, Long monetaryAccountId, String content, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -143,47 +143,47 @@ public static BunqResponse update(Integer draftPaymentId, Integer noteT return processForId(responseRaw); } - public static BunqResponse update(Integer draftPaymentId) { + public static BunqResponse update(Long draftPaymentId) { return update(draftPaymentId, null, null, null, null); } - public static BunqResponse update(Integer draftPaymentId, Integer noteTextDraftPaymentId) { + public static BunqResponse update(Long draftPaymentId, Long noteTextDraftPaymentId) { return update(draftPaymentId, noteTextDraftPaymentId, null, null, null); } - public static BunqResponse update(Integer draftPaymentId, Integer noteTextDraftPaymentId, Integer monetaryAccountId) { + public static BunqResponse update(Long draftPaymentId, Long noteTextDraftPaymentId, Long monetaryAccountId) { return update(draftPaymentId, noteTextDraftPaymentId, monetaryAccountId, null, null); } - public static BunqResponse update(Integer draftPaymentId, Integer noteTextDraftPaymentId, Integer monetaryAccountId, String content) { + public static BunqResponse update(Long draftPaymentId, Long noteTextDraftPaymentId, Long monetaryAccountId, String content) { return update(draftPaymentId, noteTextDraftPaymentId, monetaryAccountId, content, null); } /** */ - public static BunqResponse delete(Integer draftPaymentId, Integer noteTextDraftPaymentId, Integer monetaryAccountId, Map customHeaders) { + public static BunqResponse delete(Long draftPaymentId, Long noteTextDraftPaymentId, Long monetaryAccountId, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.delete(String.format(ENDPOINT_URL_DELETE, determineUserId(), determineMonetaryAccountId(monetaryAccountId), draftPaymentId, noteTextDraftPaymentId), customHeaders); return new BunqResponse<>(null, responseRaw.getHeaders()); } - public static BunqResponse delete(Integer draftPaymentId) { + public static BunqResponse delete(Long draftPaymentId) { return delete(draftPaymentId, null, null, null); } - public static BunqResponse delete(Integer draftPaymentId, Integer noteTextDraftPaymentId) { + public static BunqResponse delete(Long draftPaymentId, Long noteTextDraftPaymentId) { return delete(draftPaymentId, noteTextDraftPaymentId, null, null); } - public static BunqResponse delete(Integer draftPaymentId, Integer noteTextDraftPaymentId, Integer monetaryAccountId) { + public static BunqResponse delete(Long draftPaymentId, Long noteTextDraftPaymentId, Long monetaryAccountId) { return delete(draftPaymentId, noteTextDraftPaymentId, monetaryAccountId, null); } /** * Manage the notes for a given user. */ - public static BunqResponse> list(Integer draftPaymentId, Integer monetaryAccountId, Map params, Map customHeaders) { + public static BunqResponse> list(Long draftPaymentId, Long monetaryAccountId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_LISTING, determineUserId(), determineMonetaryAccountId(monetaryAccountId), draftPaymentId), params, customHeaders); @@ -194,21 +194,21 @@ public static BunqResponse> list() { return list(null, null, null, null); } - public static BunqResponse> list(Integer draftPaymentId) { + public static BunqResponse> list(Long draftPaymentId) { return list(draftPaymentId, null, null, null); } - public static BunqResponse> list(Integer draftPaymentId, Integer monetaryAccountId) { + public static BunqResponse> list(Long draftPaymentId, Long monetaryAccountId) { return list(draftPaymentId, monetaryAccountId, null, null); } - public static BunqResponse> list(Integer draftPaymentId, Integer monetaryAccountId, Map params) { + public static BunqResponse> list(Long draftPaymentId, Long monetaryAccountId, Map params) { return list(draftPaymentId, monetaryAccountId, params, null); } /** */ - public static BunqResponse get(Integer draftPaymentId, Integer noteTextDraftPaymentId, Integer monetaryAccountId, Map params, Map customHeaders) { + public static BunqResponse get(Long draftPaymentId, Long noteTextDraftPaymentId, Long monetaryAccountId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_READ, determineUserId(), determineMonetaryAccountId(monetaryAccountId), draftPaymentId, noteTextDraftPaymentId), params, customHeaders); @@ -219,30 +219,30 @@ public static BunqResponse get() { return get(null, null, null, null, null); } - public static BunqResponse get(Integer draftPaymentId) { + public static BunqResponse get(Long draftPaymentId) { return get(draftPaymentId, null, null, null, null); } - public static BunqResponse get(Integer draftPaymentId, Integer noteTextDraftPaymentId) { + public static BunqResponse get(Long draftPaymentId, Long noteTextDraftPaymentId) { return get(draftPaymentId, noteTextDraftPaymentId, null, null, null); } - public static BunqResponse get(Integer draftPaymentId, Integer noteTextDraftPaymentId, Integer monetaryAccountId) { + public static BunqResponse get(Long draftPaymentId, Long noteTextDraftPaymentId, Long monetaryAccountId) { return get(draftPaymentId, noteTextDraftPaymentId, monetaryAccountId, null, null); } - public static BunqResponse get(Integer draftPaymentId, Integer noteTextDraftPaymentId, Integer monetaryAccountId, Map params) { + public static BunqResponse get(Long draftPaymentId, Long noteTextDraftPaymentId, Long monetaryAccountId, Map params) { return get(draftPaymentId, noteTextDraftPaymentId, monetaryAccountId, params, null); } /** * The id of the note. */ - public Integer getId() { + public Long getId() { return this.id; } - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } diff --git a/src/main/java/com/bunq/sdk/model/generated/endpoint/NoteTextIdealMerchantTransactionApiObject.java b/src/main/java/com/bunq/sdk/model/generated/endpoint/NoteTextIdealMerchantTransactionApiObject.java index e156cbe4..5233d113 100644 --- a/src/main/java/com/bunq/sdk/model/generated/endpoint/NoteTextIdealMerchantTransactionApiObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/endpoint/NoteTextIdealMerchantTransactionApiObject.java @@ -46,7 +46,7 @@ public class NoteTextIdealMerchantTransactionApiObject extends BunqModel { */ @Expose @SerializedName("id") - private Integer id; + private Long id; /** * The timestamp of the note's creation. @@ -92,7 +92,7 @@ public NoteTextIdealMerchantTransactionApiObject(String content) { } /** * @param content The content of the note. */ - public static BunqResponse create(Integer idealMerchantTransactionId, Integer monetaryAccountId, String content, Map customHeaders) { + public static BunqResponse create(Long idealMerchantTransactionId, Long monetaryAccountId, String content, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -108,26 +108,26 @@ public static BunqResponse create(Integer idealMerchantTransactionId, I return processForId(responseRaw); } - public static BunqResponse create() { + public static BunqResponse create() { return create(null, null, null, null); } - public static BunqResponse create(Integer idealMerchantTransactionId) { + public static BunqResponse create(Long idealMerchantTransactionId) { return create(idealMerchantTransactionId, null, null, null); } - public static BunqResponse create(Integer idealMerchantTransactionId, Integer monetaryAccountId) { + public static BunqResponse create(Long idealMerchantTransactionId, Long monetaryAccountId) { return create(idealMerchantTransactionId, monetaryAccountId, null, null); } - public static BunqResponse create(Integer idealMerchantTransactionId, Integer monetaryAccountId, String content) { + public static BunqResponse create(Long idealMerchantTransactionId, Long monetaryAccountId, String content) { return create(idealMerchantTransactionId, monetaryAccountId, content, null); } /** * @param content The content of the note. */ - public static BunqResponse update(Integer idealMerchantTransactionId, Integer noteTextIdealMerchantTransactionId, Integer monetaryAccountId, String content, Map customHeaders) { + public static BunqResponse update(Long idealMerchantTransactionId, Long noteTextIdealMerchantTransactionId, Long monetaryAccountId, String content, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -143,47 +143,47 @@ public static BunqResponse update(Integer idealMerchantTransactionId, I return processForId(responseRaw); } - public static BunqResponse update(Integer idealMerchantTransactionId) { + public static BunqResponse update(Long idealMerchantTransactionId) { return update(idealMerchantTransactionId, null, null, null, null); } - public static BunqResponse update(Integer idealMerchantTransactionId, Integer noteTextIdealMerchantTransactionId) { + public static BunqResponse update(Long idealMerchantTransactionId, Long noteTextIdealMerchantTransactionId) { return update(idealMerchantTransactionId, noteTextIdealMerchantTransactionId, null, null, null); } - public static BunqResponse update(Integer idealMerchantTransactionId, Integer noteTextIdealMerchantTransactionId, Integer monetaryAccountId) { + public static BunqResponse update(Long idealMerchantTransactionId, Long noteTextIdealMerchantTransactionId, Long monetaryAccountId) { return update(idealMerchantTransactionId, noteTextIdealMerchantTransactionId, monetaryAccountId, null, null); } - public static BunqResponse update(Integer idealMerchantTransactionId, Integer noteTextIdealMerchantTransactionId, Integer monetaryAccountId, String content) { + public static BunqResponse update(Long idealMerchantTransactionId, Long noteTextIdealMerchantTransactionId, Long monetaryAccountId, String content) { return update(idealMerchantTransactionId, noteTextIdealMerchantTransactionId, monetaryAccountId, content, null); } /** */ - public static BunqResponse delete(Integer idealMerchantTransactionId, Integer noteTextIdealMerchantTransactionId, Integer monetaryAccountId, Map customHeaders) { + public static BunqResponse delete(Long idealMerchantTransactionId, Long noteTextIdealMerchantTransactionId, Long monetaryAccountId, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.delete(String.format(ENDPOINT_URL_DELETE, determineUserId(), determineMonetaryAccountId(monetaryAccountId), idealMerchantTransactionId, noteTextIdealMerchantTransactionId), customHeaders); return new BunqResponse<>(null, responseRaw.getHeaders()); } - public static BunqResponse delete(Integer idealMerchantTransactionId) { + public static BunqResponse delete(Long idealMerchantTransactionId) { return delete(idealMerchantTransactionId, null, null, null); } - public static BunqResponse delete(Integer idealMerchantTransactionId, Integer noteTextIdealMerchantTransactionId) { + public static BunqResponse delete(Long idealMerchantTransactionId, Long noteTextIdealMerchantTransactionId) { return delete(idealMerchantTransactionId, noteTextIdealMerchantTransactionId, null, null); } - public static BunqResponse delete(Integer idealMerchantTransactionId, Integer noteTextIdealMerchantTransactionId, Integer monetaryAccountId) { + public static BunqResponse delete(Long idealMerchantTransactionId, Long noteTextIdealMerchantTransactionId, Long monetaryAccountId) { return delete(idealMerchantTransactionId, noteTextIdealMerchantTransactionId, monetaryAccountId, null); } /** * Manage the notes for a given user. */ - public static BunqResponse> list(Integer idealMerchantTransactionId, Integer monetaryAccountId, Map params, Map customHeaders) { + public static BunqResponse> list(Long idealMerchantTransactionId, Long monetaryAccountId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_LISTING, determineUserId(), determineMonetaryAccountId(monetaryAccountId), idealMerchantTransactionId), params, customHeaders); @@ -194,21 +194,21 @@ public static BunqResponse> list return list(null, null, null, null); } - public static BunqResponse> list(Integer idealMerchantTransactionId) { + public static BunqResponse> list(Long idealMerchantTransactionId) { return list(idealMerchantTransactionId, null, null, null); } - public static BunqResponse> list(Integer idealMerchantTransactionId, Integer monetaryAccountId) { + public static BunqResponse> list(Long idealMerchantTransactionId, Long monetaryAccountId) { return list(idealMerchantTransactionId, monetaryAccountId, null, null); } - public static BunqResponse> list(Integer idealMerchantTransactionId, Integer monetaryAccountId, Map params) { + public static BunqResponse> list(Long idealMerchantTransactionId, Long monetaryAccountId, Map params) { return list(idealMerchantTransactionId, monetaryAccountId, params, null); } /** */ - public static BunqResponse get(Integer idealMerchantTransactionId, Integer noteTextIdealMerchantTransactionId, Integer monetaryAccountId, Map params, Map customHeaders) { + public static BunqResponse get(Long idealMerchantTransactionId, Long noteTextIdealMerchantTransactionId, Long monetaryAccountId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_READ, determineUserId(), determineMonetaryAccountId(monetaryAccountId), idealMerchantTransactionId, noteTextIdealMerchantTransactionId), params, customHeaders); @@ -219,30 +219,30 @@ public static BunqResponse get() { return get(null, null, null, null, null); } - public static BunqResponse get(Integer idealMerchantTransactionId) { + public static BunqResponse get(Long idealMerchantTransactionId) { return get(idealMerchantTransactionId, null, null, null, null); } - public static BunqResponse get(Integer idealMerchantTransactionId, Integer noteTextIdealMerchantTransactionId) { + public static BunqResponse get(Long idealMerchantTransactionId, Long noteTextIdealMerchantTransactionId) { return get(idealMerchantTransactionId, noteTextIdealMerchantTransactionId, null, null, null); } - public static BunqResponse get(Integer idealMerchantTransactionId, Integer noteTextIdealMerchantTransactionId, Integer monetaryAccountId) { + public static BunqResponse get(Long idealMerchantTransactionId, Long noteTextIdealMerchantTransactionId, Long monetaryAccountId) { return get(idealMerchantTransactionId, noteTextIdealMerchantTransactionId, monetaryAccountId, null, null); } - public static BunqResponse get(Integer idealMerchantTransactionId, Integer noteTextIdealMerchantTransactionId, Integer monetaryAccountId, Map params) { + public static BunqResponse get(Long idealMerchantTransactionId, Long noteTextIdealMerchantTransactionId, Long monetaryAccountId, Map params) { return get(idealMerchantTransactionId, noteTextIdealMerchantTransactionId, monetaryAccountId, params, null); } /** * The id of the note. */ - public Integer getId() { + public Long getId() { return this.id; } - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } diff --git a/src/main/java/com/bunq/sdk/model/generated/endpoint/NoteTextMasterCardActionApiObject.java b/src/main/java/com/bunq/sdk/model/generated/endpoint/NoteTextMasterCardActionApiObject.java index 3ea1768e..d2256148 100644 --- a/src/main/java/com/bunq/sdk/model/generated/endpoint/NoteTextMasterCardActionApiObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/endpoint/NoteTextMasterCardActionApiObject.java @@ -46,7 +46,7 @@ public class NoteTextMasterCardActionApiObject extends BunqModel { */ @Expose @SerializedName("id") - private Integer id; + private Long id; /** * The timestamp of the note's creation. @@ -92,7 +92,7 @@ public NoteTextMasterCardActionApiObject(String content) { } /** * @param content The content of the note. */ - public static BunqResponse create(Integer mastercardActionId, Integer monetaryAccountId, String content, Map customHeaders) { + public static BunqResponse create(Long mastercardActionId, Long monetaryAccountId, String content, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -108,26 +108,26 @@ public static BunqResponse create(Integer mastercardActionId, Integer m return processForId(responseRaw); } - public static BunqResponse create() { + public static BunqResponse create() { return create(null, null, null, null); } - public static BunqResponse create(Integer mastercardActionId) { + public static BunqResponse create(Long mastercardActionId) { return create(mastercardActionId, null, null, null); } - public static BunqResponse create(Integer mastercardActionId, Integer monetaryAccountId) { + public static BunqResponse create(Long mastercardActionId, Long monetaryAccountId) { return create(mastercardActionId, monetaryAccountId, null, null); } - public static BunqResponse create(Integer mastercardActionId, Integer monetaryAccountId, String content) { + public static BunqResponse create(Long mastercardActionId, Long monetaryAccountId, String content) { return create(mastercardActionId, monetaryAccountId, content, null); } /** * @param content The content of the note. */ - public static BunqResponse update(Integer mastercardActionId, Integer noteTextMasterCardActionId, Integer monetaryAccountId, String content, Map customHeaders) { + public static BunqResponse update(Long mastercardActionId, Long noteTextMasterCardActionId, Long monetaryAccountId, String content, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -143,47 +143,47 @@ public static BunqResponse update(Integer mastercardActionId, Integer n return processForId(responseRaw); } - public static BunqResponse update(Integer mastercardActionId) { + public static BunqResponse update(Long mastercardActionId) { return update(mastercardActionId, null, null, null, null); } - public static BunqResponse update(Integer mastercardActionId, Integer noteTextMasterCardActionId) { + public static BunqResponse update(Long mastercardActionId, Long noteTextMasterCardActionId) { return update(mastercardActionId, noteTextMasterCardActionId, null, null, null); } - public static BunqResponse update(Integer mastercardActionId, Integer noteTextMasterCardActionId, Integer monetaryAccountId) { + public static BunqResponse update(Long mastercardActionId, Long noteTextMasterCardActionId, Long monetaryAccountId) { return update(mastercardActionId, noteTextMasterCardActionId, monetaryAccountId, null, null); } - public static BunqResponse update(Integer mastercardActionId, Integer noteTextMasterCardActionId, Integer monetaryAccountId, String content) { + public static BunqResponse update(Long mastercardActionId, Long noteTextMasterCardActionId, Long monetaryAccountId, String content) { return update(mastercardActionId, noteTextMasterCardActionId, monetaryAccountId, content, null); } /** */ - public static BunqResponse delete(Integer mastercardActionId, Integer noteTextMasterCardActionId, Integer monetaryAccountId, Map customHeaders) { + public static BunqResponse delete(Long mastercardActionId, Long noteTextMasterCardActionId, Long monetaryAccountId, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.delete(String.format(ENDPOINT_URL_DELETE, determineUserId(), determineMonetaryAccountId(monetaryAccountId), mastercardActionId, noteTextMasterCardActionId), customHeaders); return new BunqResponse<>(null, responseRaw.getHeaders()); } - public static BunqResponse delete(Integer mastercardActionId) { + public static BunqResponse delete(Long mastercardActionId) { return delete(mastercardActionId, null, null, null); } - public static BunqResponse delete(Integer mastercardActionId, Integer noteTextMasterCardActionId) { + public static BunqResponse delete(Long mastercardActionId, Long noteTextMasterCardActionId) { return delete(mastercardActionId, noteTextMasterCardActionId, null, null); } - public static BunqResponse delete(Integer mastercardActionId, Integer noteTextMasterCardActionId, Integer monetaryAccountId) { + public static BunqResponse delete(Long mastercardActionId, Long noteTextMasterCardActionId, Long monetaryAccountId) { return delete(mastercardActionId, noteTextMasterCardActionId, monetaryAccountId, null); } /** * Manage the notes for a given user. */ - public static BunqResponse> list(Integer mastercardActionId, Integer monetaryAccountId, Map params, Map customHeaders) { + public static BunqResponse> list(Long mastercardActionId, Long monetaryAccountId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_LISTING, determineUserId(), determineMonetaryAccountId(monetaryAccountId), mastercardActionId), params, customHeaders); @@ -194,21 +194,21 @@ public static BunqResponse> list() { return list(null, null, null, null); } - public static BunqResponse> list(Integer mastercardActionId) { + public static BunqResponse> list(Long mastercardActionId) { return list(mastercardActionId, null, null, null); } - public static BunqResponse> list(Integer mastercardActionId, Integer monetaryAccountId) { + public static BunqResponse> list(Long mastercardActionId, Long monetaryAccountId) { return list(mastercardActionId, monetaryAccountId, null, null); } - public static BunqResponse> list(Integer mastercardActionId, Integer monetaryAccountId, Map params) { + public static BunqResponse> list(Long mastercardActionId, Long monetaryAccountId, Map params) { return list(mastercardActionId, monetaryAccountId, params, null); } /** */ - public static BunqResponse get(Integer mastercardActionId, Integer noteTextMasterCardActionId, Integer monetaryAccountId, Map params, Map customHeaders) { + public static BunqResponse get(Long mastercardActionId, Long noteTextMasterCardActionId, Long monetaryAccountId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_READ, determineUserId(), determineMonetaryAccountId(monetaryAccountId), mastercardActionId, noteTextMasterCardActionId), params, customHeaders); @@ -219,30 +219,30 @@ public static BunqResponse get() { return get(null, null, null, null, null); } - public static BunqResponse get(Integer mastercardActionId) { + public static BunqResponse get(Long mastercardActionId) { return get(mastercardActionId, null, null, null, null); } - public static BunqResponse get(Integer mastercardActionId, Integer noteTextMasterCardActionId) { + public static BunqResponse get(Long mastercardActionId, Long noteTextMasterCardActionId) { return get(mastercardActionId, noteTextMasterCardActionId, null, null, null); } - public static BunqResponse get(Integer mastercardActionId, Integer noteTextMasterCardActionId, Integer monetaryAccountId) { + public static BunqResponse get(Long mastercardActionId, Long noteTextMasterCardActionId, Long monetaryAccountId) { return get(mastercardActionId, noteTextMasterCardActionId, monetaryAccountId, null, null); } - public static BunqResponse get(Integer mastercardActionId, Integer noteTextMasterCardActionId, Integer monetaryAccountId, Map params) { + public static BunqResponse get(Long mastercardActionId, Long noteTextMasterCardActionId, Long monetaryAccountId, Map params) { return get(mastercardActionId, noteTextMasterCardActionId, monetaryAccountId, params, null); } /** * The id of the note. */ - public Integer getId() { + public Long getId() { return this.id; } - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } diff --git a/src/main/java/com/bunq/sdk/model/generated/endpoint/NoteTextOpenBankingMerchantTransactionApiObject.java b/src/main/java/com/bunq/sdk/model/generated/endpoint/NoteTextOpenBankingMerchantTransactionApiObject.java index acddc087..c446252b 100644 --- a/src/main/java/com/bunq/sdk/model/generated/endpoint/NoteTextOpenBankingMerchantTransactionApiObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/endpoint/NoteTextOpenBankingMerchantTransactionApiObject.java @@ -46,7 +46,7 @@ public class NoteTextOpenBankingMerchantTransactionApiObject extends BunqModel { */ @Expose @SerializedName("id") - private Integer id; + private Long id; /** * The timestamp of the note's creation. @@ -92,7 +92,7 @@ public NoteTextOpenBankingMerchantTransactionApiObject(String content) { } /** * @param content The content of the note. */ - public static BunqResponse create(Integer openBankingMerchantTransactionId, Integer monetaryAccountId, String content, Map customHeaders) { + public static BunqResponse create(Long openBankingMerchantTransactionId, Long monetaryAccountId, String content, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -108,26 +108,26 @@ public static BunqResponse create(Integer openBankingMerchantTransactio return processForId(responseRaw); } - public static BunqResponse create() { + public static BunqResponse create() { return create(null, null, null, null); } - public static BunqResponse create(Integer openBankingMerchantTransactionId) { + public static BunqResponse create(Long openBankingMerchantTransactionId) { return create(openBankingMerchantTransactionId, null, null, null); } - public static BunqResponse create(Integer openBankingMerchantTransactionId, Integer monetaryAccountId) { + public static BunqResponse create(Long openBankingMerchantTransactionId, Long monetaryAccountId) { return create(openBankingMerchantTransactionId, monetaryAccountId, null, null); } - public static BunqResponse create(Integer openBankingMerchantTransactionId, Integer monetaryAccountId, String content) { + public static BunqResponse create(Long openBankingMerchantTransactionId, Long monetaryAccountId, String content) { return create(openBankingMerchantTransactionId, monetaryAccountId, content, null); } /** * @param content The content of the note. */ - public static BunqResponse update(Integer openBankingMerchantTransactionId, Integer noteTextOpenBankingMerchantTransactionId, Integer monetaryAccountId, String content, Map customHeaders) { + public static BunqResponse update(Long openBankingMerchantTransactionId, Long noteTextOpenBankingMerchantTransactionId, Long monetaryAccountId, String content, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -143,46 +143,46 @@ public static BunqResponse update(Integer openBankingMerchantTransactio return processForId(responseRaw); } - public static BunqResponse update(Integer openBankingMerchantTransactionId) { + public static BunqResponse update(Long openBankingMerchantTransactionId) { return update(openBankingMerchantTransactionId, null, null, null, null); } - public static BunqResponse update(Integer openBankingMerchantTransactionId, Integer noteTextOpenBankingMerchantTransactionId) { + public static BunqResponse update(Long openBankingMerchantTransactionId, Long noteTextOpenBankingMerchantTransactionId) { return update(openBankingMerchantTransactionId, noteTextOpenBankingMerchantTransactionId, null, null, null); } - public static BunqResponse update(Integer openBankingMerchantTransactionId, Integer noteTextOpenBankingMerchantTransactionId, Integer monetaryAccountId) { + public static BunqResponse update(Long openBankingMerchantTransactionId, Long noteTextOpenBankingMerchantTransactionId, Long monetaryAccountId) { return update(openBankingMerchantTransactionId, noteTextOpenBankingMerchantTransactionId, monetaryAccountId, null, null); } - public static BunqResponse update(Integer openBankingMerchantTransactionId, Integer noteTextOpenBankingMerchantTransactionId, Integer monetaryAccountId, String content) { + public static BunqResponse update(Long openBankingMerchantTransactionId, Long noteTextOpenBankingMerchantTransactionId, Long monetaryAccountId, String content) { return update(openBankingMerchantTransactionId, noteTextOpenBankingMerchantTransactionId, monetaryAccountId, content, null); } /** */ - public static BunqResponse delete(Integer openBankingMerchantTransactionId, Integer noteTextOpenBankingMerchantTransactionId, Integer monetaryAccountId, Map customHeaders) { + public static BunqResponse delete(Long openBankingMerchantTransactionId, Long noteTextOpenBankingMerchantTransactionId, Long monetaryAccountId, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.delete(String.format(ENDPOINT_URL_DELETE, determineUserId(), determineMonetaryAccountId(monetaryAccountId), openBankingMerchantTransactionId, noteTextOpenBankingMerchantTransactionId), customHeaders); return new BunqResponse<>(null, responseRaw.getHeaders()); } - public static BunqResponse delete(Integer openBankingMerchantTransactionId) { + public static BunqResponse delete(Long openBankingMerchantTransactionId) { return delete(openBankingMerchantTransactionId, null, null, null); } - public static BunqResponse delete(Integer openBankingMerchantTransactionId, Integer noteTextOpenBankingMerchantTransactionId) { + public static BunqResponse delete(Long openBankingMerchantTransactionId, Long noteTextOpenBankingMerchantTransactionId) { return delete(openBankingMerchantTransactionId, noteTextOpenBankingMerchantTransactionId, null, null); } - public static BunqResponse delete(Integer openBankingMerchantTransactionId, Integer noteTextOpenBankingMerchantTransactionId, Integer monetaryAccountId) { + public static BunqResponse delete(Long openBankingMerchantTransactionId, Long noteTextOpenBankingMerchantTransactionId, Long monetaryAccountId) { return delete(openBankingMerchantTransactionId, noteTextOpenBankingMerchantTransactionId, monetaryAccountId, null); } /** */ - public static BunqResponse> list(Integer openBankingMerchantTransactionId, Integer monetaryAccountId, Map params, Map customHeaders) { + public static BunqResponse> list(Long openBankingMerchantTransactionId, Long monetaryAccountId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_LISTING, determineUserId(), determineMonetaryAccountId(monetaryAccountId), openBankingMerchantTransactionId), params, customHeaders); @@ -193,21 +193,21 @@ public static BunqResponse return list(null, null, null, null); } - public static BunqResponse> list(Integer openBankingMerchantTransactionId) { + public static BunqResponse> list(Long openBankingMerchantTransactionId) { return list(openBankingMerchantTransactionId, null, null, null); } - public static BunqResponse> list(Integer openBankingMerchantTransactionId, Integer monetaryAccountId) { + public static BunqResponse> list(Long openBankingMerchantTransactionId, Long monetaryAccountId) { return list(openBankingMerchantTransactionId, monetaryAccountId, null, null); } - public static BunqResponse> list(Integer openBankingMerchantTransactionId, Integer monetaryAccountId, Map params) { + public static BunqResponse> list(Long openBankingMerchantTransactionId, Long monetaryAccountId, Map params) { return list(openBankingMerchantTransactionId, monetaryAccountId, params, null); } /** */ - public static BunqResponse get(Integer openBankingMerchantTransactionId, Integer noteTextOpenBankingMerchantTransactionId, Integer monetaryAccountId, Map params, Map customHeaders) { + public static BunqResponse get(Long openBankingMerchantTransactionId, Long noteTextOpenBankingMerchantTransactionId, Long monetaryAccountId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_READ, determineUserId(), determineMonetaryAccountId(monetaryAccountId), openBankingMerchantTransactionId, noteTextOpenBankingMerchantTransactionId), params, customHeaders); @@ -218,30 +218,30 @@ public static BunqResponse get( return get(null, null, null, null, null); } - public static BunqResponse get(Integer openBankingMerchantTransactionId) { + public static BunqResponse get(Long openBankingMerchantTransactionId) { return get(openBankingMerchantTransactionId, null, null, null, null); } - public static BunqResponse get(Integer openBankingMerchantTransactionId, Integer noteTextOpenBankingMerchantTransactionId) { + public static BunqResponse get(Long openBankingMerchantTransactionId, Long noteTextOpenBankingMerchantTransactionId) { return get(openBankingMerchantTransactionId, noteTextOpenBankingMerchantTransactionId, null, null, null); } - public static BunqResponse get(Integer openBankingMerchantTransactionId, Integer noteTextOpenBankingMerchantTransactionId, Integer monetaryAccountId) { + public static BunqResponse get(Long openBankingMerchantTransactionId, Long noteTextOpenBankingMerchantTransactionId, Long monetaryAccountId) { return get(openBankingMerchantTransactionId, noteTextOpenBankingMerchantTransactionId, monetaryAccountId, null, null); } - public static BunqResponse get(Integer openBankingMerchantTransactionId, Integer noteTextOpenBankingMerchantTransactionId, Integer monetaryAccountId, Map params) { + public static BunqResponse get(Long openBankingMerchantTransactionId, Long noteTextOpenBankingMerchantTransactionId, Long monetaryAccountId, Map params) { return get(openBankingMerchantTransactionId, noteTextOpenBankingMerchantTransactionId, monetaryAccountId, params, null); } /** * The id of the note. */ - public Integer getId() { + public Long getId() { return this.id; } - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } diff --git a/src/main/java/com/bunq/sdk/model/generated/endpoint/NoteTextPaymentApiObject.java b/src/main/java/com/bunq/sdk/model/generated/endpoint/NoteTextPaymentApiObject.java index d146fcbf..6494c51f 100644 --- a/src/main/java/com/bunq/sdk/model/generated/endpoint/NoteTextPaymentApiObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/endpoint/NoteTextPaymentApiObject.java @@ -46,7 +46,7 @@ public class NoteTextPaymentApiObject extends BunqModel { */ @Expose @SerializedName("id") - private Integer id; + private Long id; /** * The timestamp of the note's creation. @@ -92,7 +92,7 @@ public NoteTextPaymentApiObject(String content) { } /** * @param content The content of the note. */ - public static BunqResponse create(Integer paymentId, Integer monetaryAccountId, String content, Map customHeaders) { + public static BunqResponse create(Long paymentId, Long monetaryAccountId, String content, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -108,26 +108,26 @@ public static BunqResponse create(Integer paymentId, Integer monetaryAc return processForId(responseRaw); } - public static BunqResponse create() { + public static BunqResponse create() { return create(null, null, null, null); } - public static BunqResponse create(Integer paymentId) { + public static BunqResponse create(Long paymentId) { return create(paymentId, null, null, null); } - public static BunqResponse create(Integer paymentId, Integer monetaryAccountId) { + public static BunqResponse create(Long paymentId, Long monetaryAccountId) { return create(paymentId, monetaryAccountId, null, null); } - public static BunqResponse create(Integer paymentId, Integer monetaryAccountId, String content) { + public static BunqResponse create(Long paymentId, Long monetaryAccountId, String content) { return create(paymentId, monetaryAccountId, content, null); } /** * @param content The content of the note. */ - public static BunqResponse update(Integer paymentId, Integer noteTextPaymentId, Integer monetaryAccountId, String content, Map customHeaders) { + public static BunqResponse update(Long paymentId, Long noteTextPaymentId, Long monetaryAccountId, String content, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -143,47 +143,47 @@ public static BunqResponse update(Integer paymentId, Integer noteTextPa return processForId(responseRaw); } - public static BunqResponse update(Integer paymentId) { + public static BunqResponse update(Long paymentId) { return update(paymentId, null, null, null, null); } - public static BunqResponse update(Integer paymentId, Integer noteTextPaymentId) { + public static BunqResponse update(Long paymentId, Long noteTextPaymentId) { return update(paymentId, noteTextPaymentId, null, null, null); } - public static BunqResponse update(Integer paymentId, Integer noteTextPaymentId, Integer monetaryAccountId) { + public static BunqResponse update(Long paymentId, Long noteTextPaymentId, Long monetaryAccountId) { return update(paymentId, noteTextPaymentId, monetaryAccountId, null, null); } - public static BunqResponse update(Integer paymentId, Integer noteTextPaymentId, Integer monetaryAccountId, String content) { + public static BunqResponse update(Long paymentId, Long noteTextPaymentId, Long monetaryAccountId, String content) { return update(paymentId, noteTextPaymentId, monetaryAccountId, content, null); } /** */ - public static BunqResponse delete(Integer paymentId, Integer noteTextPaymentId, Integer monetaryAccountId, Map customHeaders) { + public static BunqResponse delete(Long paymentId, Long noteTextPaymentId, Long monetaryAccountId, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.delete(String.format(ENDPOINT_URL_DELETE, determineUserId(), determineMonetaryAccountId(monetaryAccountId), paymentId, noteTextPaymentId), customHeaders); return new BunqResponse<>(null, responseRaw.getHeaders()); } - public static BunqResponse delete(Integer paymentId) { + public static BunqResponse delete(Long paymentId) { return delete(paymentId, null, null, null); } - public static BunqResponse delete(Integer paymentId, Integer noteTextPaymentId) { + public static BunqResponse delete(Long paymentId, Long noteTextPaymentId) { return delete(paymentId, noteTextPaymentId, null, null); } - public static BunqResponse delete(Integer paymentId, Integer noteTextPaymentId, Integer monetaryAccountId) { + public static BunqResponse delete(Long paymentId, Long noteTextPaymentId, Long monetaryAccountId) { return delete(paymentId, noteTextPaymentId, monetaryAccountId, null); } /** * Manage the notes for a given user. */ - public static BunqResponse> list(Integer paymentId, Integer monetaryAccountId, Map params, Map customHeaders) { + public static BunqResponse> list(Long paymentId, Long monetaryAccountId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_LISTING, determineUserId(), determineMonetaryAccountId(monetaryAccountId), paymentId), params, customHeaders); @@ -194,21 +194,21 @@ public static BunqResponse> list() { return list(null, null, null, null); } - public static BunqResponse> list(Integer paymentId) { + public static BunqResponse> list(Long paymentId) { return list(paymentId, null, null, null); } - public static BunqResponse> list(Integer paymentId, Integer monetaryAccountId) { + public static BunqResponse> list(Long paymentId, Long monetaryAccountId) { return list(paymentId, monetaryAccountId, null, null); } - public static BunqResponse> list(Integer paymentId, Integer monetaryAccountId, Map params) { + public static BunqResponse> list(Long paymentId, Long monetaryAccountId, Map params) { return list(paymentId, monetaryAccountId, params, null); } /** */ - public static BunqResponse get(Integer paymentId, Integer noteTextPaymentId, Integer monetaryAccountId, Map params, Map customHeaders) { + public static BunqResponse get(Long paymentId, Long noteTextPaymentId, Long monetaryAccountId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_READ, determineUserId(), determineMonetaryAccountId(monetaryAccountId), paymentId, noteTextPaymentId), params, customHeaders); @@ -219,30 +219,30 @@ public static BunqResponse get() { return get(null, null, null, null, null); } - public static BunqResponse get(Integer paymentId) { + public static BunqResponse get(Long paymentId) { return get(paymentId, null, null, null, null); } - public static BunqResponse get(Integer paymentId, Integer noteTextPaymentId) { + public static BunqResponse get(Long paymentId, Long noteTextPaymentId) { return get(paymentId, noteTextPaymentId, null, null, null); } - public static BunqResponse get(Integer paymentId, Integer noteTextPaymentId, Integer monetaryAccountId) { + public static BunqResponse get(Long paymentId, Long noteTextPaymentId, Long monetaryAccountId) { return get(paymentId, noteTextPaymentId, monetaryAccountId, null, null); } - public static BunqResponse get(Integer paymentId, Integer noteTextPaymentId, Integer monetaryAccountId, Map params) { + public static BunqResponse get(Long paymentId, Long noteTextPaymentId, Long monetaryAccountId, Map params) { return get(paymentId, noteTextPaymentId, monetaryAccountId, params, null); } /** * The id of the note. */ - public Integer getId() { + public Long getId() { return this.id; } - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } diff --git a/src/main/java/com/bunq/sdk/model/generated/endpoint/NoteTextPaymentBatchApiObject.java b/src/main/java/com/bunq/sdk/model/generated/endpoint/NoteTextPaymentBatchApiObject.java index e18f9659..3d9603de 100644 --- a/src/main/java/com/bunq/sdk/model/generated/endpoint/NoteTextPaymentBatchApiObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/endpoint/NoteTextPaymentBatchApiObject.java @@ -46,7 +46,7 @@ public class NoteTextPaymentBatchApiObject extends BunqModel { */ @Expose @SerializedName("id") - private Integer id; + private Long id; /** * The timestamp of the note's creation. @@ -92,7 +92,7 @@ public NoteTextPaymentBatchApiObject(String content) { } /** * @param content The content of the note. */ - public static BunqResponse create(Integer paymentBatchId, Integer monetaryAccountId, String content, Map customHeaders) { + public static BunqResponse create(Long paymentBatchId, Long monetaryAccountId, String content, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -108,26 +108,26 @@ public static BunqResponse create(Integer paymentBatchId, Integer monet return processForId(responseRaw); } - public static BunqResponse create() { + public static BunqResponse create() { return create(null, null, null, null); } - public static BunqResponse create(Integer paymentBatchId) { + public static BunqResponse create(Long paymentBatchId) { return create(paymentBatchId, null, null, null); } - public static BunqResponse create(Integer paymentBatchId, Integer monetaryAccountId) { + public static BunqResponse create(Long paymentBatchId, Long monetaryAccountId) { return create(paymentBatchId, monetaryAccountId, null, null); } - public static BunqResponse create(Integer paymentBatchId, Integer monetaryAccountId, String content) { + public static BunqResponse create(Long paymentBatchId, Long monetaryAccountId, String content) { return create(paymentBatchId, monetaryAccountId, content, null); } /** * @param content The content of the note. */ - public static BunqResponse update(Integer paymentBatchId, Integer noteTextPaymentBatchId, Integer monetaryAccountId, String content, Map customHeaders) { + public static BunqResponse update(Long paymentBatchId, Long noteTextPaymentBatchId, Long monetaryAccountId, String content, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -143,47 +143,47 @@ public static BunqResponse update(Integer paymentBatchId, Integer noteT return processForId(responseRaw); } - public static BunqResponse update(Integer paymentBatchId) { + public static BunqResponse update(Long paymentBatchId) { return update(paymentBatchId, null, null, null, null); } - public static BunqResponse update(Integer paymentBatchId, Integer noteTextPaymentBatchId) { + public static BunqResponse update(Long paymentBatchId, Long noteTextPaymentBatchId) { return update(paymentBatchId, noteTextPaymentBatchId, null, null, null); } - public static BunqResponse update(Integer paymentBatchId, Integer noteTextPaymentBatchId, Integer monetaryAccountId) { + public static BunqResponse update(Long paymentBatchId, Long noteTextPaymentBatchId, Long monetaryAccountId) { return update(paymentBatchId, noteTextPaymentBatchId, monetaryAccountId, null, null); } - public static BunqResponse update(Integer paymentBatchId, Integer noteTextPaymentBatchId, Integer monetaryAccountId, String content) { + public static BunqResponse update(Long paymentBatchId, Long noteTextPaymentBatchId, Long monetaryAccountId, String content) { return update(paymentBatchId, noteTextPaymentBatchId, monetaryAccountId, content, null); } /** */ - public static BunqResponse delete(Integer paymentBatchId, Integer noteTextPaymentBatchId, Integer monetaryAccountId, Map customHeaders) { + public static BunqResponse delete(Long paymentBatchId, Long noteTextPaymentBatchId, Long monetaryAccountId, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.delete(String.format(ENDPOINT_URL_DELETE, determineUserId(), determineMonetaryAccountId(monetaryAccountId), paymentBatchId, noteTextPaymentBatchId), customHeaders); return new BunqResponse<>(null, responseRaw.getHeaders()); } - public static BunqResponse delete(Integer paymentBatchId) { + public static BunqResponse delete(Long paymentBatchId) { return delete(paymentBatchId, null, null, null); } - public static BunqResponse delete(Integer paymentBatchId, Integer noteTextPaymentBatchId) { + public static BunqResponse delete(Long paymentBatchId, Long noteTextPaymentBatchId) { return delete(paymentBatchId, noteTextPaymentBatchId, null, null); } - public static BunqResponse delete(Integer paymentBatchId, Integer noteTextPaymentBatchId, Integer monetaryAccountId) { + public static BunqResponse delete(Long paymentBatchId, Long noteTextPaymentBatchId, Long monetaryAccountId) { return delete(paymentBatchId, noteTextPaymentBatchId, monetaryAccountId, null); } /** * Manage the notes for a given user. */ - public static BunqResponse> list(Integer paymentBatchId, Integer monetaryAccountId, Map params, Map customHeaders) { + public static BunqResponse> list(Long paymentBatchId, Long monetaryAccountId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_LISTING, determineUserId(), determineMonetaryAccountId(monetaryAccountId), paymentBatchId), params, customHeaders); @@ -194,21 +194,21 @@ public static BunqResponse> list() { return list(null, null, null, null); } - public static BunqResponse> list(Integer paymentBatchId) { + public static BunqResponse> list(Long paymentBatchId) { return list(paymentBatchId, null, null, null); } - public static BunqResponse> list(Integer paymentBatchId, Integer monetaryAccountId) { + public static BunqResponse> list(Long paymentBatchId, Long monetaryAccountId) { return list(paymentBatchId, monetaryAccountId, null, null); } - public static BunqResponse> list(Integer paymentBatchId, Integer monetaryAccountId, Map params) { + public static BunqResponse> list(Long paymentBatchId, Long monetaryAccountId, Map params) { return list(paymentBatchId, monetaryAccountId, params, null); } /** */ - public static BunqResponse get(Integer paymentBatchId, Integer noteTextPaymentBatchId, Integer monetaryAccountId, Map params, Map customHeaders) { + public static BunqResponse get(Long paymentBatchId, Long noteTextPaymentBatchId, Long monetaryAccountId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_READ, determineUserId(), determineMonetaryAccountId(monetaryAccountId), paymentBatchId, noteTextPaymentBatchId), params, customHeaders); @@ -219,30 +219,30 @@ public static BunqResponse get() { return get(null, null, null, null, null); } - public static BunqResponse get(Integer paymentBatchId) { + public static BunqResponse get(Long paymentBatchId) { return get(paymentBatchId, null, null, null, null); } - public static BunqResponse get(Integer paymentBatchId, Integer noteTextPaymentBatchId) { + public static BunqResponse get(Long paymentBatchId, Long noteTextPaymentBatchId) { return get(paymentBatchId, noteTextPaymentBatchId, null, null, null); } - public static BunqResponse get(Integer paymentBatchId, Integer noteTextPaymentBatchId, Integer monetaryAccountId) { + public static BunqResponse get(Long paymentBatchId, Long noteTextPaymentBatchId, Long monetaryAccountId) { return get(paymentBatchId, noteTextPaymentBatchId, monetaryAccountId, null, null); } - public static BunqResponse get(Integer paymentBatchId, Integer noteTextPaymentBatchId, Integer monetaryAccountId, Map params) { + public static BunqResponse get(Long paymentBatchId, Long noteTextPaymentBatchId, Long monetaryAccountId, Map params) { return get(paymentBatchId, noteTextPaymentBatchId, monetaryAccountId, params, null); } /** * The id of the note. */ - public Integer getId() { + public Long getId() { return this.id; } - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } diff --git a/src/main/java/com/bunq/sdk/model/generated/endpoint/NoteTextPaymentDelayedApiObject.java b/src/main/java/com/bunq/sdk/model/generated/endpoint/NoteTextPaymentDelayedApiObject.java index 22f3314b..a1073aae 100644 --- a/src/main/java/com/bunq/sdk/model/generated/endpoint/NoteTextPaymentDelayedApiObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/endpoint/NoteTextPaymentDelayedApiObject.java @@ -46,7 +46,7 @@ public class NoteTextPaymentDelayedApiObject extends BunqModel { */ @Expose @SerializedName("id") - private Integer id; + private Long id; /** * The timestamp of the note's creation. @@ -92,7 +92,7 @@ public NoteTextPaymentDelayedApiObject(String content) { } /** * @param content The content of the note. */ - public static BunqResponse create(Integer paymentDelayedId, Integer monetaryAccountId, String content, Map customHeaders) { + public static BunqResponse create(Long paymentDelayedId, Long monetaryAccountId, String content, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -108,26 +108,26 @@ public static BunqResponse create(Integer paymentDelayedId, Integer mon return processForId(responseRaw); } - public static BunqResponse create() { + public static BunqResponse create() { return create(null, null, null, null); } - public static BunqResponse create(Integer paymentDelayedId) { + public static BunqResponse create(Long paymentDelayedId) { return create(paymentDelayedId, null, null, null); } - public static BunqResponse create(Integer paymentDelayedId, Integer monetaryAccountId) { + public static BunqResponse create(Long paymentDelayedId, Long monetaryAccountId) { return create(paymentDelayedId, monetaryAccountId, null, null); } - public static BunqResponse create(Integer paymentDelayedId, Integer monetaryAccountId, String content) { + public static BunqResponse create(Long paymentDelayedId, Long monetaryAccountId, String content) { return create(paymentDelayedId, monetaryAccountId, content, null); } /** * @param content The content of the note. */ - public static BunqResponse update(Integer paymentDelayedId, Integer noteTextPaymentDelayedId, Integer monetaryAccountId, String content, Map customHeaders) { + public static BunqResponse update(Long paymentDelayedId, Long noteTextPaymentDelayedId, Long monetaryAccountId, String content, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -143,46 +143,46 @@ public static BunqResponse update(Integer paymentDelayedId, Integer not return processForId(responseRaw); } - public static BunqResponse update(Integer paymentDelayedId) { + public static BunqResponse update(Long paymentDelayedId) { return update(paymentDelayedId, null, null, null, null); } - public static BunqResponse update(Integer paymentDelayedId, Integer noteTextPaymentDelayedId) { + public static BunqResponse update(Long paymentDelayedId, Long noteTextPaymentDelayedId) { return update(paymentDelayedId, noteTextPaymentDelayedId, null, null, null); } - public static BunqResponse update(Integer paymentDelayedId, Integer noteTextPaymentDelayedId, Integer monetaryAccountId) { + public static BunqResponse update(Long paymentDelayedId, Long noteTextPaymentDelayedId, Long monetaryAccountId) { return update(paymentDelayedId, noteTextPaymentDelayedId, monetaryAccountId, null, null); } - public static BunqResponse update(Integer paymentDelayedId, Integer noteTextPaymentDelayedId, Integer monetaryAccountId, String content) { + public static BunqResponse update(Long paymentDelayedId, Long noteTextPaymentDelayedId, Long monetaryAccountId, String content) { return update(paymentDelayedId, noteTextPaymentDelayedId, monetaryAccountId, content, null); } /** */ - public static BunqResponse delete(Integer paymentDelayedId, Integer noteTextPaymentDelayedId, Integer monetaryAccountId, Map customHeaders) { + public static BunqResponse delete(Long paymentDelayedId, Long noteTextPaymentDelayedId, Long monetaryAccountId, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.delete(String.format(ENDPOINT_URL_DELETE, determineUserId(), determineMonetaryAccountId(monetaryAccountId), paymentDelayedId, noteTextPaymentDelayedId), customHeaders); return new BunqResponse<>(null, responseRaw.getHeaders()); } - public static BunqResponse delete(Integer paymentDelayedId) { + public static BunqResponse delete(Long paymentDelayedId) { return delete(paymentDelayedId, null, null, null); } - public static BunqResponse delete(Integer paymentDelayedId, Integer noteTextPaymentDelayedId) { + public static BunqResponse delete(Long paymentDelayedId, Long noteTextPaymentDelayedId) { return delete(paymentDelayedId, noteTextPaymentDelayedId, null, null); } - public static BunqResponse delete(Integer paymentDelayedId, Integer noteTextPaymentDelayedId, Integer monetaryAccountId) { + public static BunqResponse delete(Long paymentDelayedId, Long noteTextPaymentDelayedId, Long monetaryAccountId) { return delete(paymentDelayedId, noteTextPaymentDelayedId, monetaryAccountId, null); } /** */ - public static BunqResponse> list(Integer paymentDelayedId, Integer monetaryAccountId, Map params, Map customHeaders) { + public static BunqResponse> list(Long paymentDelayedId, Long monetaryAccountId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_LISTING, determineUserId(), determineMonetaryAccountId(monetaryAccountId), paymentDelayedId), params, customHeaders); @@ -193,21 +193,21 @@ public static BunqResponse> list() { return list(null, null, null, null); } - public static BunqResponse> list(Integer paymentDelayedId) { + public static BunqResponse> list(Long paymentDelayedId) { return list(paymentDelayedId, null, null, null); } - public static BunqResponse> list(Integer paymentDelayedId, Integer monetaryAccountId) { + public static BunqResponse> list(Long paymentDelayedId, Long monetaryAccountId) { return list(paymentDelayedId, monetaryAccountId, null, null); } - public static BunqResponse> list(Integer paymentDelayedId, Integer monetaryAccountId, Map params) { + public static BunqResponse> list(Long paymentDelayedId, Long monetaryAccountId, Map params) { return list(paymentDelayedId, monetaryAccountId, params, null); } /** */ - public static BunqResponse get(Integer paymentDelayedId, Integer noteTextPaymentDelayedId, Integer monetaryAccountId, Map params, Map customHeaders) { + public static BunqResponse get(Long paymentDelayedId, Long noteTextPaymentDelayedId, Long monetaryAccountId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_READ, determineUserId(), determineMonetaryAccountId(monetaryAccountId), paymentDelayedId, noteTextPaymentDelayedId), params, customHeaders); @@ -218,30 +218,30 @@ public static BunqResponse get() { return get(null, null, null, null, null); } - public static BunqResponse get(Integer paymentDelayedId) { + public static BunqResponse get(Long paymentDelayedId) { return get(paymentDelayedId, null, null, null, null); } - public static BunqResponse get(Integer paymentDelayedId, Integer noteTextPaymentDelayedId) { + public static BunqResponse get(Long paymentDelayedId, Long noteTextPaymentDelayedId) { return get(paymentDelayedId, noteTextPaymentDelayedId, null, null, null); } - public static BunqResponse get(Integer paymentDelayedId, Integer noteTextPaymentDelayedId, Integer monetaryAccountId) { + public static BunqResponse get(Long paymentDelayedId, Long noteTextPaymentDelayedId, Long monetaryAccountId) { return get(paymentDelayedId, noteTextPaymentDelayedId, monetaryAccountId, null, null); } - public static BunqResponse get(Integer paymentDelayedId, Integer noteTextPaymentDelayedId, Integer monetaryAccountId, Map params) { + public static BunqResponse get(Long paymentDelayedId, Long noteTextPaymentDelayedId, Long monetaryAccountId, Map params) { return get(paymentDelayedId, noteTextPaymentDelayedId, monetaryAccountId, params, null); } /** * The id of the note. */ - public Integer getId() { + public Long getId() { return this.id; } - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } diff --git a/src/main/java/com/bunq/sdk/model/generated/endpoint/NoteTextRequestInquiryApiObject.java b/src/main/java/com/bunq/sdk/model/generated/endpoint/NoteTextRequestInquiryApiObject.java index e0e779d6..aab41611 100644 --- a/src/main/java/com/bunq/sdk/model/generated/endpoint/NoteTextRequestInquiryApiObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/endpoint/NoteTextRequestInquiryApiObject.java @@ -46,7 +46,7 @@ public class NoteTextRequestInquiryApiObject extends BunqModel { */ @Expose @SerializedName("id") - private Integer id; + private Long id; /** * The timestamp of the note's creation. @@ -92,7 +92,7 @@ public NoteTextRequestInquiryApiObject(String content) { } /** * @param content The content of the note. */ - public static BunqResponse create(Integer requestInquiryId, Integer monetaryAccountId, String content, Map customHeaders) { + public static BunqResponse create(Long requestInquiryId, Long monetaryAccountId, String content, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -108,26 +108,26 @@ public static BunqResponse create(Integer requestInquiryId, Integer mon return processForId(responseRaw); } - public static BunqResponse create() { + public static BunqResponse create() { return create(null, null, null, null); } - public static BunqResponse create(Integer requestInquiryId) { + public static BunqResponse create(Long requestInquiryId) { return create(requestInquiryId, null, null, null); } - public static BunqResponse create(Integer requestInquiryId, Integer monetaryAccountId) { + public static BunqResponse create(Long requestInquiryId, Long monetaryAccountId) { return create(requestInquiryId, monetaryAccountId, null, null); } - public static BunqResponse create(Integer requestInquiryId, Integer monetaryAccountId, String content) { + public static BunqResponse create(Long requestInquiryId, Long monetaryAccountId, String content) { return create(requestInquiryId, monetaryAccountId, content, null); } /** * @param content The content of the note. */ - public static BunqResponse update(Integer requestInquiryId, Integer noteTextRequestInquiryId, Integer monetaryAccountId, String content, Map customHeaders) { + public static BunqResponse update(Long requestInquiryId, Long noteTextRequestInquiryId, Long monetaryAccountId, String content, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -143,47 +143,47 @@ public static BunqResponse update(Integer requestInquiryId, Integer not return processForId(responseRaw); } - public static BunqResponse update(Integer requestInquiryId) { + public static BunqResponse update(Long requestInquiryId) { return update(requestInquiryId, null, null, null, null); } - public static BunqResponse update(Integer requestInquiryId, Integer noteTextRequestInquiryId) { + public static BunqResponse update(Long requestInquiryId, Long noteTextRequestInquiryId) { return update(requestInquiryId, noteTextRequestInquiryId, null, null, null); } - public static BunqResponse update(Integer requestInquiryId, Integer noteTextRequestInquiryId, Integer monetaryAccountId) { + public static BunqResponse update(Long requestInquiryId, Long noteTextRequestInquiryId, Long monetaryAccountId) { return update(requestInquiryId, noteTextRequestInquiryId, monetaryAccountId, null, null); } - public static BunqResponse update(Integer requestInquiryId, Integer noteTextRequestInquiryId, Integer monetaryAccountId, String content) { + public static BunqResponse update(Long requestInquiryId, Long noteTextRequestInquiryId, Long monetaryAccountId, String content) { return update(requestInquiryId, noteTextRequestInquiryId, monetaryAccountId, content, null); } /** */ - public static BunqResponse delete(Integer requestInquiryId, Integer noteTextRequestInquiryId, Integer monetaryAccountId, Map customHeaders) { + public static BunqResponse delete(Long requestInquiryId, Long noteTextRequestInquiryId, Long monetaryAccountId, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.delete(String.format(ENDPOINT_URL_DELETE, determineUserId(), determineMonetaryAccountId(monetaryAccountId), requestInquiryId, noteTextRequestInquiryId), customHeaders); return new BunqResponse<>(null, responseRaw.getHeaders()); } - public static BunqResponse delete(Integer requestInquiryId) { + public static BunqResponse delete(Long requestInquiryId) { return delete(requestInquiryId, null, null, null); } - public static BunqResponse delete(Integer requestInquiryId, Integer noteTextRequestInquiryId) { + public static BunqResponse delete(Long requestInquiryId, Long noteTextRequestInquiryId) { return delete(requestInquiryId, noteTextRequestInquiryId, null, null); } - public static BunqResponse delete(Integer requestInquiryId, Integer noteTextRequestInquiryId, Integer monetaryAccountId) { + public static BunqResponse delete(Long requestInquiryId, Long noteTextRequestInquiryId, Long monetaryAccountId) { return delete(requestInquiryId, noteTextRequestInquiryId, monetaryAccountId, null); } /** * Manage the notes for a given user. */ - public static BunqResponse> list(Integer requestInquiryId, Integer monetaryAccountId, Map params, Map customHeaders) { + public static BunqResponse> list(Long requestInquiryId, Long monetaryAccountId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_LISTING, determineUserId(), determineMonetaryAccountId(monetaryAccountId), requestInquiryId), params, customHeaders); @@ -194,21 +194,21 @@ public static BunqResponse> list() { return list(null, null, null, null); } - public static BunqResponse> list(Integer requestInquiryId) { + public static BunqResponse> list(Long requestInquiryId) { return list(requestInquiryId, null, null, null); } - public static BunqResponse> list(Integer requestInquiryId, Integer monetaryAccountId) { + public static BunqResponse> list(Long requestInquiryId, Long monetaryAccountId) { return list(requestInquiryId, monetaryAccountId, null, null); } - public static BunqResponse> list(Integer requestInquiryId, Integer monetaryAccountId, Map params) { + public static BunqResponse> list(Long requestInquiryId, Long monetaryAccountId, Map params) { return list(requestInquiryId, monetaryAccountId, params, null); } /** */ - public static BunqResponse get(Integer requestInquiryId, Integer noteTextRequestInquiryId, Integer monetaryAccountId, Map params, Map customHeaders) { + public static BunqResponse get(Long requestInquiryId, Long noteTextRequestInquiryId, Long monetaryAccountId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_READ, determineUserId(), determineMonetaryAccountId(monetaryAccountId), requestInquiryId, noteTextRequestInquiryId), params, customHeaders); @@ -219,30 +219,30 @@ public static BunqResponse get() { return get(null, null, null, null, null); } - public static BunqResponse get(Integer requestInquiryId) { + public static BunqResponse get(Long requestInquiryId) { return get(requestInquiryId, null, null, null, null); } - public static BunqResponse get(Integer requestInquiryId, Integer noteTextRequestInquiryId) { + public static BunqResponse get(Long requestInquiryId, Long noteTextRequestInquiryId) { return get(requestInquiryId, noteTextRequestInquiryId, null, null, null); } - public static BunqResponse get(Integer requestInquiryId, Integer noteTextRequestInquiryId, Integer monetaryAccountId) { + public static BunqResponse get(Long requestInquiryId, Long noteTextRequestInquiryId, Long monetaryAccountId) { return get(requestInquiryId, noteTextRequestInquiryId, monetaryAccountId, null, null); } - public static BunqResponse get(Integer requestInquiryId, Integer noteTextRequestInquiryId, Integer monetaryAccountId, Map params) { + public static BunqResponse get(Long requestInquiryId, Long noteTextRequestInquiryId, Long monetaryAccountId, Map params) { return get(requestInquiryId, noteTextRequestInquiryId, monetaryAccountId, params, null); } /** * The id of the note. */ - public Integer getId() { + public Long getId() { return this.id; } - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } diff --git a/src/main/java/com/bunq/sdk/model/generated/endpoint/NoteTextRequestInquiryBatchApiObject.java b/src/main/java/com/bunq/sdk/model/generated/endpoint/NoteTextRequestInquiryBatchApiObject.java index 1d049677..e0f9bef4 100644 --- a/src/main/java/com/bunq/sdk/model/generated/endpoint/NoteTextRequestInquiryBatchApiObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/endpoint/NoteTextRequestInquiryBatchApiObject.java @@ -46,7 +46,7 @@ public class NoteTextRequestInquiryBatchApiObject extends BunqModel { */ @Expose @SerializedName("id") - private Integer id; + private Long id; /** * The timestamp of the note's creation. @@ -92,7 +92,7 @@ public NoteTextRequestInquiryBatchApiObject(String content) { } /** * @param content The content of the note. */ - public static BunqResponse create(Integer requestInquiryBatchId, Integer monetaryAccountId, String content, Map customHeaders) { + public static BunqResponse create(Long requestInquiryBatchId, Long monetaryAccountId, String content, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -108,26 +108,26 @@ public static BunqResponse create(Integer requestInquiryBatchId, Intege return processForId(responseRaw); } - public static BunqResponse create() { + public static BunqResponse create() { return create(null, null, null, null); } - public static BunqResponse create(Integer requestInquiryBatchId) { + public static BunqResponse create(Long requestInquiryBatchId) { return create(requestInquiryBatchId, null, null, null); } - public static BunqResponse create(Integer requestInquiryBatchId, Integer monetaryAccountId) { + public static BunqResponse create(Long requestInquiryBatchId, Long monetaryAccountId) { return create(requestInquiryBatchId, monetaryAccountId, null, null); } - public static BunqResponse create(Integer requestInquiryBatchId, Integer monetaryAccountId, String content) { + public static BunqResponse create(Long requestInquiryBatchId, Long monetaryAccountId, String content) { return create(requestInquiryBatchId, monetaryAccountId, content, null); } /** * @param content The content of the note. */ - public static BunqResponse update(Integer requestInquiryBatchId, Integer noteTextRequestInquiryBatchId, Integer monetaryAccountId, String content, Map customHeaders) { + public static BunqResponse update(Long requestInquiryBatchId, Long noteTextRequestInquiryBatchId, Long monetaryAccountId, String content, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -143,47 +143,47 @@ public static BunqResponse update(Integer requestInquiryBatchId, Intege return processForId(responseRaw); } - public static BunqResponse update(Integer requestInquiryBatchId) { + public static BunqResponse update(Long requestInquiryBatchId) { return update(requestInquiryBatchId, null, null, null, null); } - public static BunqResponse update(Integer requestInquiryBatchId, Integer noteTextRequestInquiryBatchId) { + public static BunqResponse update(Long requestInquiryBatchId, Long noteTextRequestInquiryBatchId) { return update(requestInquiryBatchId, noteTextRequestInquiryBatchId, null, null, null); } - public static BunqResponse update(Integer requestInquiryBatchId, Integer noteTextRequestInquiryBatchId, Integer monetaryAccountId) { + public static BunqResponse update(Long requestInquiryBatchId, Long noteTextRequestInquiryBatchId, Long monetaryAccountId) { return update(requestInquiryBatchId, noteTextRequestInquiryBatchId, monetaryAccountId, null, null); } - public static BunqResponse update(Integer requestInquiryBatchId, Integer noteTextRequestInquiryBatchId, Integer monetaryAccountId, String content) { + public static BunqResponse update(Long requestInquiryBatchId, Long noteTextRequestInquiryBatchId, Long monetaryAccountId, String content) { return update(requestInquiryBatchId, noteTextRequestInquiryBatchId, monetaryAccountId, content, null); } /** */ - public static BunqResponse delete(Integer requestInquiryBatchId, Integer noteTextRequestInquiryBatchId, Integer monetaryAccountId, Map customHeaders) { + public static BunqResponse delete(Long requestInquiryBatchId, Long noteTextRequestInquiryBatchId, Long monetaryAccountId, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.delete(String.format(ENDPOINT_URL_DELETE, determineUserId(), determineMonetaryAccountId(monetaryAccountId), requestInquiryBatchId, noteTextRequestInquiryBatchId), customHeaders); return new BunqResponse<>(null, responseRaw.getHeaders()); } - public static BunqResponse delete(Integer requestInquiryBatchId) { + public static BunqResponse delete(Long requestInquiryBatchId) { return delete(requestInquiryBatchId, null, null, null); } - public static BunqResponse delete(Integer requestInquiryBatchId, Integer noteTextRequestInquiryBatchId) { + public static BunqResponse delete(Long requestInquiryBatchId, Long noteTextRequestInquiryBatchId) { return delete(requestInquiryBatchId, noteTextRequestInquiryBatchId, null, null); } - public static BunqResponse delete(Integer requestInquiryBatchId, Integer noteTextRequestInquiryBatchId, Integer monetaryAccountId) { + public static BunqResponse delete(Long requestInquiryBatchId, Long noteTextRequestInquiryBatchId, Long monetaryAccountId) { return delete(requestInquiryBatchId, noteTextRequestInquiryBatchId, monetaryAccountId, null); } /** * Manage the notes for a given user. */ - public static BunqResponse> list(Integer requestInquiryBatchId, Integer monetaryAccountId, Map params, Map customHeaders) { + public static BunqResponse> list(Long requestInquiryBatchId, Long monetaryAccountId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_LISTING, determineUserId(), determineMonetaryAccountId(monetaryAccountId), requestInquiryBatchId), params, customHeaders); @@ -194,21 +194,21 @@ public static BunqResponse> list() { return list(null, null, null, null); } - public static BunqResponse> list(Integer requestInquiryBatchId) { + public static BunqResponse> list(Long requestInquiryBatchId) { return list(requestInquiryBatchId, null, null, null); } - public static BunqResponse> list(Integer requestInquiryBatchId, Integer monetaryAccountId) { + public static BunqResponse> list(Long requestInquiryBatchId, Long monetaryAccountId) { return list(requestInquiryBatchId, monetaryAccountId, null, null); } - public static BunqResponse> list(Integer requestInquiryBatchId, Integer monetaryAccountId, Map params) { + public static BunqResponse> list(Long requestInquiryBatchId, Long monetaryAccountId, Map params) { return list(requestInquiryBatchId, monetaryAccountId, params, null); } /** */ - public static BunqResponse get(Integer requestInquiryBatchId, Integer noteTextRequestInquiryBatchId, Integer monetaryAccountId, Map params, Map customHeaders) { + public static BunqResponse get(Long requestInquiryBatchId, Long noteTextRequestInquiryBatchId, Long monetaryAccountId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_READ, determineUserId(), determineMonetaryAccountId(monetaryAccountId), requestInquiryBatchId, noteTextRequestInquiryBatchId), params, customHeaders); @@ -219,30 +219,30 @@ public static BunqResponse get() { return get(null, null, null, null, null); } - public static BunqResponse get(Integer requestInquiryBatchId) { + public static BunqResponse get(Long requestInquiryBatchId) { return get(requestInquiryBatchId, null, null, null, null); } - public static BunqResponse get(Integer requestInquiryBatchId, Integer noteTextRequestInquiryBatchId) { + public static BunqResponse get(Long requestInquiryBatchId, Long noteTextRequestInquiryBatchId) { return get(requestInquiryBatchId, noteTextRequestInquiryBatchId, null, null, null); } - public static BunqResponse get(Integer requestInquiryBatchId, Integer noteTextRequestInquiryBatchId, Integer monetaryAccountId) { + public static BunqResponse get(Long requestInquiryBatchId, Long noteTextRequestInquiryBatchId, Long monetaryAccountId) { return get(requestInquiryBatchId, noteTextRequestInquiryBatchId, monetaryAccountId, null, null); } - public static BunqResponse get(Integer requestInquiryBatchId, Integer noteTextRequestInquiryBatchId, Integer monetaryAccountId, Map params) { + public static BunqResponse get(Long requestInquiryBatchId, Long noteTextRequestInquiryBatchId, Long monetaryAccountId, Map params) { return get(requestInquiryBatchId, noteTextRequestInquiryBatchId, monetaryAccountId, params, null); } /** * The id of the note. */ - public Integer getId() { + public Long getId() { return this.id; } - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } diff --git a/src/main/java/com/bunq/sdk/model/generated/endpoint/NoteTextRequestResponseApiObject.java b/src/main/java/com/bunq/sdk/model/generated/endpoint/NoteTextRequestResponseApiObject.java index dd0f5b76..55738365 100644 --- a/src/main/java/com/bunq/sdk/model/generated/endpoint/NoteTextRequestResponseApiObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/endpoint/NoteTextRequestResponseApiObject.java @@ -46,7 +46,7 @@ public class NoteTextRequestResponseApiObject extends BunqModel { */ @Expose @SerializedName("id") - private Integer id; + private Long id; /** * The timestamp of the note's creation. @@ -92,7 +92,7 @@ public NoteTextRequestResponseApiObject(String content) { } /** * @param content The content of the note. */ - public static BunqResponse create(Integer requestResponseId, Integer monetaryAccountId, String content, Map customHeaders) { + public static BunqResponse create(Long requestResponseId, Long monetaryAccountId, String content, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -108,26 +108,26 @@ public static BunqResponse create(Integer requestResponseId, Integer mo return processForId(responseRaw); } - public static BunqResponse create() { + public static BunqResponse create() { return create(null, null, null, null); } - public static BunqResponse create(Integer requestResponseId) { + public static BunqResponse create(Long requestResponseId) { return create(requestResponseId, null, null, null); } - public static BunqResponse create(Integer requestResponseId, Integer monetaryAccountId) { + public static BunqResponse create(Long requestResponseId, Long monetaryAccountId) { return create(requestResponseId, monetaryAccountId, null, null); } - public static BunqResponse create(Integer requestResponseId, Integer monetaryAccountId, String content) { + public static BunqResponse create(Long requestResponseId, Long monetaryAccountId, String content) { return create(requestResponseId, monetaryAccountId, content, null); } /** * @param content The content of the note. */ - public static BunqResponse update(Integer requestResponseId, Integer noteTextRequestResponseId, Integer monetaryAccountId, String content, Map customHeaders) { + public static BunqResponse update(Long requestResponseId, Long noteTextRequestResponseId, Long monetaryAccountId, String content, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -143,47 +143,47 @@ public static BunqResponse update(Integer requestResponseId, Integer no return processForId(responseRaw); } - public static BunqResponse update(Integer requestResponseId) { + public static BunqResponse update(Long requestResponseId) { return update(requestResponseId, null, null, null, null); } - public static BunqResponse update(Integer requestResponseId, Integer noteTextRequestResponseId) { + public static BunqResponse update(Long requestResponseId, Long noteTextRequestResponseId) { return update(requestResponseId, noteTextRequestResponseId, null, null, null); } - public static BunqResponse update(Integer requestResponseId, Integer noteTextRequestResponseId, Integer monetaryAccountId) { + public static BunqResponse update(Long requestResponseId, Long noteTextRequestResponseId, Long monetaryAccountId) { return update(requestResponseId, noteTextRequestResponseId, monetaryAccountId, null, null); } - public static BunqResponse update(Integer requestResponseId, Integer noteTextRequestResponseId, Integer monetaryAccountId, String content) { + public static BunqResponse update(Long requestResponseId, Long noteTextRequestResponseId, Long monetaryAccountId, String content) { return update(requestResponseId, noteTextRequestResponseId, monetaryAccountId, content, null); } /** */ - public static BunqResponse delete(Integer requestResponseId, Integer noteTextRequestResponseId, Integer monetaryAccountId, Map customHeaders) { + public static BunqResponse delete(Long requestResponseId, Long noteTextRequestResponseId, Long monetaryAccountId, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.delete(String.format(ENDPOINT_URL_DELETE, determineUserId(), determineMonetaryAccountId(monetaryAccountId), requestResponseId, noteTextRequestResponseId), customHeaders); return new BunqResponse<>(null, responseRaw.getHeaders()); } - public static BunqResponse delete(Integer requestResponseId) { + public static BunqResponse delete(Long requestResponseId) { return delete(requestResponseId, null, null, null); } - public static BunqResponse delete(Integer requestResponseId, Integer noteTextRequestResponseId) { + public static BunqResponse delete(Long requestResponseId, Long noteTextRequestResponseId) { return delete(requestResponseId, noteTextRequestResponseId, null, null); } - public static BunqResponse delete(Integer requestResponseId, Integer noteTextRequestResponseId, Integer monetaryAccountId) { + public static BunqResponse delete(Long requestResponseId, Long noteTextRequestResponseId, Long monetaryAccountId) { return delete(requestResponseId, noteTextRequestResponseId, monetaryAccountId, null); } /** * Manage the notes for a given user. */ - public static BunqResponse> list(Integer requestResponseId, Integer monetaryAccountId, Map params, Map customHeaders) { + public static BunqResponse> list(Long requestResponseId, Long monetaryAccountId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_LISTING, determineUserId(), determineMonetaryAccountId(monetaryAccountId), requestResponseId), params, customHeaders); @@ -194,21 +194,21 @@ public static BunqResponse> list() { return list(null, null, null, null); } - public static BunqResponse> list(Integer requestResponseId) { + public static BunqResponse> list(Long requestResponseId) { return list(requestResponseId, null, null, null); } - public static BunqResponse> list(Integer requestResponseId, Integer monetaryAccountId) { + public static BunqResponse> list(Long requestResponseId, Long monetaryAccountId) { return list(requestResponseId, monetaryAccountId, null, null); } - public static BunqResponse> list(Integer requestResponseId, Integer monetaryAccountId, Map params) { + public static BunqResponse> list(Long requestResponseId, Long monetaryAccountId, Map params) { return list(requestResponseId, monetaryAccountId, params, null); } /** */ - public static BunqResponse get(Integer requestResponseId, Integer noteTextRequestResponseId, Integer monetaryAccountId, Map params, Map customHeaders) { + public static BunqResponse get(Long requestResponseId, Long noteTextRequestResponseId, Long monetaryAccountId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_READ, determineUserId(), determineMonetaryAccountId(monetaryAccountId), requestResponseId, noteTextRequestResponseId), params, customHeaders); @@ -219,30 +219,30 @@ public static BunqResponse get() { return get(null, null, null, null, null); } - public static BunqResponse get(Integer requestResponseId) { + public static BunqResponse get(Long requestResponseId) { return get(requestResponseId, null, null, null, null); } - public static BunqResponse get(Integer requestResponseId, Integer noteTextRequestResponseId) { + public static BunqResponse get(Long requestResponseId, Long noteTextRequestResponseId) { return get(requestResponseId, noteTextRequestResponseId, null, null, null); } - public static BunqResponse get(Integer requestResponseId, Integer noteTextRequestResponseId, Integer monetaryAccountId) { + public static BunqResponse get(Long requestResponseId, Long noteTextRequestResponseId, Long monetaryAccountId) { return get(requestResponseId, noteTextRequestResponseId, monetaryAccountId, null, null); } - public static BunqResponse get(Integer requestResponseId, Integer noteTextRequestResponseId, Integer monetaryAccountId, Map params) { + public static BunqResponse get(Long requestResponseId, Long noteTextRequestResponseId, Long monetaryAccountId, Map params) { return get(requestResponseId, noteTextRequestResponseId, monetaryAccountId, params, null); } /** * The id of the note. */ - public Integer getId() { + public Long getId() { return this.id; } - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } diff --git a/src/main/java/com/bunq/sdk/model/generated/endpoint/NoteTextScheduleInstanceApiObject.java b/src/main/java/com/bunq/sdk/model/generated/endpoint/NoteTextScheduleInstanceApiObject.java index 97eb9425..64c64d30 100644 --- a/src/main/java/com/bunq/sdk/model/generated/endpoint/NoteTextScheduleInstanceApiObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/endpoint/NoteTextScheduleInstanceApiObject.java @@ -46,7 +46,7 @@ public class NoteTextScheduleInstanceApiObject extends BunqModel { */ @Expose @SerializedName("id") - private Integer id; + private Long id; /** * The timestamp of the note's creation. @@ -92,7 +92,7 @@ public NoteTextScheduleInstanceApiObject(String content) { } /** * @param content The content of the note. */ - public static BunqResponse create(Integer scheduleId, Integer scheduleInstanceId, Integer monetaryAccountId, String content, Map customHeaders) { + public static BunqResponse create(Long scheduleId, Long scheduleInstanceId, Long monetaryAccountId, String content, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -108,30 +108,30 @@ public static BunqResponse create(Integer scheduleId, Integer scheduleI return processForId(responseRaw); } - public static BunqResponse create() { + public static BunqResponse create() { return create(null, null, null, null, null); } - public static BunqResponse create(Integer scheduleId) { + public static BunqResponse create(Long scheduleId) { return create(scheduleId, null, null, null, null); } - public static BunqResponse create(Integer scheduleId, Integer scheduleInstanceId) { + public static BunqResponse create(Long scheduleId, Long scheduleInstanceId) { return create(scheduleId, scheduleInstanceId, null, null, null); } - public static BunqResponse create(Integer scheduleId, Integer scheduleInstanceId, Integer monetaryAccountId) { + public static BunqResponse create(Long scheduleId, Long scheduleInstanceId, Long monetaryAccountId) { return create(scheduleId, scheduleInstanceId, monetaryAccountId, null, null); } - public static BunqResponse create(Integer scheduleId, Integer scheduleInstanceId, Integer monetaryAccountId, String content) { + public static BunqResponse create(Long scheduleId, Long scheduleInstanceId, Long monetaryAccountId, String content) { return create(scheduleId, scheduleInstanceId, monetaryAccountId, content, null); } /** * @param content The content of the note. */ - public static BunqResponse update(Integer scheduleId, Integer scheduleInstanceId, Integer noteTextScheduleInstanceId, Integer monetaryAccountId, String content, Map customHeaders) { + public static BunqResponse update(Long scheduleId, Long scheduleInstanceId, Long noteTextScheduleInstanceId, Long monetaryAccountId, String content, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -147,55 +147,55 @@ public static BunqResponse update(Integer scheduleId, Integer scheduleI return processForId(responseRaw); } - public static BunqResponse update(Integer scheduleId) { + public static BunqResponse update(Long scheduleId) { return update(scheduleId, null, null, null, null, null); } - public static BunqResponse update(Integer scheduleId, Integer scheduleInstanceId) { + public static BunqResponse update(Long scheduleId, Long scheduleInstanceId) { return update(scheduleId, scheduleInstanceId, null, null, null, null); } - public static BunqResponse update(Integer scheduleId, Integer scheduleInstanceId, Integer noteTextScheduleInstanceId) { + public static BunqResponse update(Long scheduleId, Long scheduleInstanceId, Long noteTextScheduleInstanceId) { return update(scheduleId, scheduleInstanceId, noteTextScheduleInstanceId, null, null, null); } - public static BunqResponse update(Integer scheduleId, Integer scheduleInstanceId, Integer noteTextScheduleInstanceId, Integer monetaryAccountId) { + public static BunqResponse update(Long scheduleId, Long scheduleInstanceId, Long noteTextScheduleInstanceId, Long monetaryAccountId) { return update(scheduleId, scheduleInstanceId, noteTextScheduleInstanceId, monetaryAccountId, null, null); } - public static BunqResponse update(Integer scheduleId, Integer scheduleInstanceId, Integer noteTextScheduleInstanceId, Integer monetaryAccountId, String content) { + public static BunqResponse update(Long scheduleId, Long scheduleInstanceId, Long noteTextScheduleInstanceId, Long monetaryAccountId, String content) { return update(scheduleId, scheduleInstanceId, noteTextScheduleInstanceId, monetaryAccountId, content, null); } /** */ - public static BunqResponse delete(Integer scheduleId, Integer scheduleInstanceId, Integer noteTextScheduleInstanceId, Integer monetaryAccountId, Map customHeaders) { + public static BunqResponse delete(Long scheduleId, Long scheduleInstanceId, Long noteTextScheduleInstanceId, Long monetaryAccountId, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.delete(String.format(ENDPOINT_URL_DELETE, determineUserId(), determineMonetaryAccountId(monetaryAccountId), scheduleId, scheduleInstanceId, noteTextScheduleInstanceId), customHeaders); return new BunqResponse<>(null, responseRaw.getHeaders()); } - public static BunqResponse delete(Integer scheduleId) { + public static BunqResponse delete(Long scheduleId) { return delete(scheduleId, null, null, null, null); } - public static BunqResponse delete(Integer scheduleId, Integer scheduleInstanceId) { + public static BunqResponse delete(Long scheduleId, Long scheduleInstanceId) { return delete(scheduleId, scheduleInstanceId, null, null, null); } - public static BunqResponse delete(Integer scheduleId, Integer scheduleInstanceId, Integer noteTextScheduleInstanceId) { + public static BunqResponse delete(Long scheduleId, Long scheduleInstanceId, Long noteTextScheduleInstanceId) { return delete(scheduleId, scheduleInstanceId, noteTextScheduleInstanceId, null, null); } - public static BunqResponse delete(Integer scheduleId, Integer scheduleInstanceId, Integer noteTextScheduleInstanceId, Integer monetaryAccountId) { + public static BunqResponse delete(Long scheduleId, Long scheduleInstanceId, Long noteTextScheduleInstanceId, Long monetaryAccountId) { return delete(scheduleId, scheduleInstanceId, noteTextScheduleInstanceId, monetaryAccountId, null); } /** * Manage the notes for a given user. */ - public static BunqResponse> list(Integer scheduleId, Integer scheduleInstanceId, Integer monetaryAccountId, Map params, Map customHeaders) { + public static BunqResponse> list(Long scheduleId, Long scheduleInstanceId, Long monetaryAccountId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_LISTING, determineUserId(), determineMonetaryAccountId(monetaryAccountId), scheduleId, scheduleInstanceId), params, customHeaders); @@ -206,25 +206,25 @@ public static BunqResponse> list() { return list(null, null, null, null, null); } - public static BunqResponse> list(Integer scheduleId) { + public static BunqResponse> list(Long scheduleId) { return list(scheduleId, null, null, null, null); } - public static BunqResponse> list(Integer scheduleId, Integer scheduleInstanceId) { + public static BunqResponse> list(Long scheduleId, Long scheduleInstanceId) { return list(scheduleId, scheduleInstanceId, null, null, null); } - public static BunqResponse> list(Integer scheduleId, Integer scheduleInstanceId, Integer monetaryAccountId) { + public static BunqResponse> list(Long scheduleId, Long scheduleInstanceId, Long monetaryAccountId) { return list(scheduleId, scheduleInstanceId, monetaryAccountId, null, null); } - public static BunqResponse> list(Integer scheduleId, Integer scheduleInstanceId, Integer monetaryAccountId, Map params) { + public static BunqResponse> list(Long scheduleId, Long scheduleInstanceId, Long monetaryAccountId, Map params) { return list(scheduleId, scheduleInstanceId, monetaryAccountId, params, null); } /** */ - public static BunqResponse get(Integer scheduleId, Integer scheduleInstanceId, Integer noteTextScheduleInstanceId, Integer monetaryAccountId, Map params, Map customHeaders) { + public static BunqResponse get(Long scheduleId, Long scheduleInstanceId, Long noteTextScheduleInstanceId, Long monetaryAccountId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_READ, determineUserId(), determineMonetaryAccountId(monetaryAccountId), scheduleId, scheduleInstanceId, noteTextScheduleInstanceId), params, customHeaders); @@ -235,34 +235,34 @@ public static BunqResponse get() { return get(null, null, null, null, null, null); } - public static BunqResponse get(Integer scheduleId) { + public static BunqResponse get(Long scheduleId) { return get(scheduleId, null, null, null, null, null); } - public static BunqResponse get(Integer scheduleId, Integer scheduleInstanceId) { + public static BunqResponse get(Long scheduleId, Long scheduleInstanceId) { return get(scheduleId, scheduleInstanceId, null, null, null, null); } - public static BunqResponse get(Integer scheduleId, Integer scheduleInstanceId, Integer noteTextScheduleInstanceId) { + public static BunqResponse get(Long scheduleId, Long scheduleInstanceId, Long noteTextScheduleInstanceId) { return get(scheduleId, scheduleInstanceId, noteTextScheduleInstanceId, null, null, null); } - public static BunqResponse get(Integer scheduleId, Integer scheduleInstanceId, Integer noteTextScheduleInstanceId, Integer monetaryAccountId) { + public static BunqResponse get(Long scheduleId, Long scheduleInstanceId, Long noteTextScheduleInstanceId, Long monetaryAccountId) { return get(scheduleId, scheduleInstanceId, noteTextScheduleInstanceId, monetaryAccountId, null, null); } - public static BunqResponse get(Integer scheduleId, Integer scheduleInstanceId, Integer noteTextScheduleInstanceId, Integer monetaryAccountId, Map params) { + public static BunqResponse get(Long scheduleId, Long scheduleInstanceId, Long noteTextScheduleInstanceId, Long monetaryAccountId, Map params) { return get(scheduleId, scheduleInstanceId, noteTextScheduleInstanceId, monetaryAccountId, params, null); } /** * The id of the note. */ - public Integer getId() { + public Long getId() { return this.id; } - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } diff --git a/src/main/java/com/bunq/sdk/model/generated/endpoint/NoteTextSchedulePaymentApiObject.java b/src/main/java/com/bunq/sdk/model/generated/endpoint/NoteTextSchedulePaymentApiObject.java index c3d36c03..4b6a9c20 100644 --- a/src/main/java/com/bunq/sdk/model/generated/endpoint/NoteTextSchedulePaymentApiObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/endpoint/NoteTextSchedulePaymentApiObject.java @@ -46,7 +46,7 @@ public class NoteTextSchedulePaymentApiObject extends BunqModel { */ @Expose @SerializedName("id") - private Integer id; + private Long id; /** * The timestamp of the note's creation. @@ -92,7 +92,7 @@ public NoteTextSchedulePaymentApiObject(String content) { } /** * @param content The content of the note. */ - public static BunqResponse create(Integer schedulePaymentId, Integer monetaryAccountId, String content, Map customHeaders) { + public static BunqResponse create(Long schedulePaymentId, Long monetaryAccountId, String content, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -108,26 +108,26 @@ public static BunqResponse create(Integer schedulePaymentId, Integer mo return processForId(responseRaw); } - public static BunqResponse create() { + public static BunqResponse create() { return create(null, null, null, null); } - public static BunqResponse create(Integer schedulePaymentId) { + public static BunqResponse create(Long schedulePaymentId) { return create(schedulePaymentId, null, null, null); } - public static BunqResponse create(Integer schedulePaymentId, Integer monetaryAccountId) { + public static BunqResponse create(Long schedulePaymentId, Long monetaryAccountId) { return create(schedulePaymentId, monetaryAccountId, null, null); } - public static BunqResponse create(Integer schedulePaymentId, Integer monetaryAccountId, String content) { + public static BunqResponse create(Long schedulePaymentId, Long monetaryAccountId, String content) { return create(schedulePaymentId, monetaryAccountId, content, null); } /** * @param content The content of the note. */ - public static BunqResponse update(Integer schedulePaymentId, Integer noteTextSchedulePaymentId, Integer monetaryAccountId, String content, Map customHeaders) { + public static BunqResponse update(Long schedulePaymentId, Long noteTextSchedulePaymentId, Long monetaryAccountId, String content, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -143,47 +143,47 @@ public static BunqResponse update(Integer schedulePaymentId, Integer no return processForId(responseRaw); } - public static BunqResponse update(Integer schedulePaymentId) { + public static BunqResponse update(Long schedulePaymentId) { return update(schedulePaymentId, null, null, null, null); } - public static BunqResponse update(Integer schedulePaymentId, Integer noteTextSchedulePaymentId) { + public static BunqResponse update(Long schedulePaymentId, Long noteTextSchedulePaymentId) { return update(schedulePaymentId, noteTextSchedulePaymentId, null, null, null); } - public static BunqResponse update(Integer schedulePaymentId, Integer noteTextSchedulePaymentId, Integer monetaryAccountId) { + public static BunqResponse update(Long schedulePaymentId, Long noteTextSchedulePaymentId, Long monetaryAccountId) { return update(schedulePaymentId, noteTextSchedulePaymentId, monetaryAccountId, null, null); } - public static BunqResponse update(Integer schedulePaymentId, Integer noteTextSchedulePaymentId, Integer monetaryAccountId, String content) { + public static BunqResponse update(Long schedulePaymentId, Long noteTextSchedulePaymentId, Long monetaryAccountId, String content) { return update(schedulePaymentId, noteTextSchedulePaymentId, monetaryAccountId, content, null); } /** */ - public static BunqResponse delete(Integer schedulePaymentId, Integer noteTextSchedulePaymentId, Integer monetaryAccountId, Map customHeaders) { + public static BunqResponse delete(Long schedulePaymentId, Long noteTextSchedulePaymentId, Long monetaryAccountId, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.delete(String.format(ENDPOINT_URL_DELETE, determineUserId(), determineMonetaryAccountId(monetaryAccountId), schedulePaymentId, noteTextSchedulePaymentId), customHeaders); return new BunqResponse<>(null, responseRaw.getHeaders()); } - public static BunqResponse delete(Integer schedulePaymentId) { + public static BunqResponse delete(Long schedulePaymentId) { return delete(schedulePaymentId, null, null, null); } - public static BunqResponse delete(Integer schedulePaymentId, Integer noteTextSchedulePaymentId) { + public static BunqResponse delete(Long schedulePaymentId, Long noteTextSchedulePaymentId) { return delete(schedulePaymentId, noteTextSchedulePaymentId, null, null); } - public static BunqResponse delete(Integer schedulePaymentId, Integer noteTextSchedulePaymentId, Integer monetaryAccountId) { + public static BunqResponse delete(Long schedulePaymentId, Long noteTextSchedulePaymentId, Long monetaryAccountId) { return delete(schedulePaymentId, noteTextSchedulePaymentId, monetaryAccountId, null); } /** * Manage the notes for a given user. */ - public static BunqResponse> list(Integer schedulePaymentId, Integer monetaryAccountId, Map params, Map customHeaders) { + public static BunqResponse> list(Long schedulePaymentId, Long monetaryAccountId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_LISTING, determineUserId(), determineMonetaryAccountId(monetaryAccountId), schedulePaymentId), params, customHeaders); @@ -194,21 +194,21 @@ public static BunqResponse> list() { return list(null, null, null, null); } - public static BunqResponse> list(Integer schedulePaymentId) { + public static BunqResponse> list(Long schedulePaymentId) { return list(schedulePaymentId, null, null, null); } - public static BunqResponse> list(Integer schedulePaymentId, Integer monetaryAccountId) { + public static BunqResponse> list(Long schedulePaymentId, Long monetaryAccountId) { return list(schedulePaymentId, monetaryAccountId, null, null); } - public static BunqResponse> list(Integer schedulePaymentId, Integer monetaryAccountId, Map params) { + public static BunqResponse> list(Long schedulePaymentId, Long monetaryAccountId, Map params) { return list(schedulePaymentId, monetaryAccountId, params, null); } /** */ - public static BunqResponse get(Integer schedulePaymentId, Integer noteTextSchedulePaymentId, Integer monetaryAccountId, Map params, Map customHeaders) { + public static BunqResponse get(Long schedulePaymentId, Long noteTextSchedulePaymentId, Long monetaryAccountId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_READ, determineUserId(), determineMonetaryAccountId(monetaryAccountId), schedulePaymentId, noteTextSchedulePaymentId), params, customHeaders); @@ -219,30 +219,30 @@ public static BunqResponse get() { return get(null, null, null, null, null); } - public static BunqResponse get(Integer schedulePaymentId) { + public static BunqResponse get(Long schedulePaymentId) { return get(schedulePaymentId, null, null, null, null); } - public static BunqResponse get(Integer schedulePaymentId, Integer noteTextSchedulePaymentId) { + public static BunqResponse get(Long schedulePaymentId, Long noteTextSchedulePaymentId) { return get(schedulePaymentId, noteTextSchedulePaymentId, null, null, null); } - public static BunqResponse get(Integer schedulePaymentId, Integer noteTextSchedulePaymentId, Integer monetaryAccountId) { + public static BunqResponse get(Long schedulePaymentId, Long noteTextSchedulePaymentId, Long monetaryAccountId) { return get(schedulePaymentId, noteTextSchedulePaymentId, monetaryAccountId, null, null); } - public static BunqResponse get(Integer schedulePaymentId, Integer noteTextSchedulePaymentId, Integer monetaryAccountId, Map params) { + public static BunqResponse get(Long schedulePaymentId, Long noteTextSchedulePaymentId, Long monetaryAccountId, Map params) { return get(schedulePaymentId, noteTextSchedulePaymentId, monetaryAccountId, params, null); } /** * The id of the note. */ - public Integer getId() { + public Long getId() { return this.id; } - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } diff --git a/src/main/java/com/bunq/sdk/model/generated/endpoint/NoteTextSchedulePaymentBatchApiObject.java b/src/main/java/com/bunq/sdk/model/generated/endpoint/NoteTextSchedulePaymentBatchApiObject.java index 5255ae30..f5f15f64 100644 --- a/src/main/java/com/bunq/sdk/model/generated/endpoint/NoteTextSchedulePaymentBatchApiObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/endpoint/NoteTextSchedulePaymentBatchApiObject.java @@ -46,7 +46,7 @@ public class NoteTextSchedulePaymentBatchApiObject extends BunqModel { */ @Expose @SerializedName("id") - private Integer id; + private Long id; /** * The timestamp of the note's creation. @@ -92,7 +92,7 @@ public NoteTextSchedulePaymentBatchApiObject(String content) { } /** * @param content The content of the note. */ - public static BunqResponse create(Integer schedulePaymentBatchId, Integer monetaryAccountId, String content, Map customHeaders) { + public static BunqResponse create(Long schedulePaymentBatchId, Long monetaryAccountId, String content, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -108,26 +108,26 @@ public static BunqResponse create(Integer schedulePaymentBatchId, Integ return processForId(responseRaw); } - public static BunqResponse create() { + public static BunqResponse create() { return create(null, null, null, null); } - public static BunqResponse create(Integer schedulePaymentBatchId) { + public static BunqResponse create(Long schedulePaymentBatchId) { return create(schedulePaymentBatchId, null, null, null); } - public static BunqResponse create(Integer schedulePaymentBatchId, Integer monetaryAccountId) { + public static BunqResponse create(Long schedulePaymentBatchId, Long monetaryAccountId) { return create(schedulePaymentBatchId, monetaryAccountId, null, null); } - public static BunqResponse create(Integer schedulePaymentBatchId, Integer monetaryAccountId, String content) { + public static BunqResponse create(Long schedulePaymentBatchId, Long monetaryAccountId, String content) { return create(schedulePaymentBatchId, monetaryAccountId, content, null); } /** * @param content The content of the note. */ - public static BunqResponse update(Integer schedulePaymentBatchId, Integer noteTextSchedulePaymentBatchId, Integer monetaryAccountId, String content, Map customHeaders) { + public static BunqResponse update(Long schedulePaymentBatchId, Long noteTextSchedulePaymentBatchId, Long monetaryAccountId, String content, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -143,47 +143,47 @@ public static BunqResponse update(Integer schedulePaymentBatchId, Integ return processForId(responseRaw); } - public static BunqResponse update(Integer schedulePaymentBatchId) { + public static BunqResponse update(Long schedulePaymentBatchId) { return update(schedulePaymentBatchId, null, null, null, null); } - public static BunqResponse update(Integer schedulePaymentBatchId, Integer noteTextSchedulePaymentBatchId) { + public static BunqResponse update(Long schedulePaymentBatchId, Long noteTextSchedulePaymentBatchId) { return update(schedulePaymentBatchId, noteTextSchedulePaymentBatchId, null, null, null); } - public static BunqResponse update(Integer schedulePaymentBatchId, Integer noteTextSchedulePaymentBatchId, Integer monetaryAccountId) { + public static BunqResponse update(Long schedulePaymentBatchId, Long noteTextSchedulePaymentBatchId, Long monetaryAccountId) { return update(schedulePaymentBatchId, noteTextSchedulePaymentBatchId, monetaryAccountId, null, null); } - public static BunqResponse update(Integer schedulePaymentBatchId, Integer noteTextSchedulePaymentBatchId, Integer monetaryAccountId, String content) { + public static BunqResponse update(Long schedulePaymentBatchId, Long noteTextSchedulePaymentBatchId, Long monetaryAccountId, String content) { return update(schedulePaymentBatchId, noteTextSchedulePaymentBatchId, monetaryAccountId, content, null); } /** */ - public static BunqResponse delete(Integer schedulePaymentBatchId, Integer noteTextSchedulePaymentBatchId, Integer monetaryAccountId, Map customHeaders) { + public static BunqResponse delete(Long schedulePaymentBatchId, Long noteTextSchedulePaymentBatchId, Long monetaryAccountId, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.delete(String.format(ENDPOINT_URL_DELETE, determineUserId(), determineMonetaryAccountId(monetaryAccountId), schedulePaymentBatchId, noteTextSchedulePaymentBatchId), customHeaders); return new BunqResponse<>(null, responseRaw.getHeaders()); } - public static BunqResponse delete(Integer schedulePaymentBatchId) { + public static BunqResponse delete(Long schedulePaymentBatchId) { return delete(schedulePaymentBatchId, null, null, null); } - public static BunqResponse delete(Integer schedulePaymentBatchId, Integer noteTextSchedulePaymentBatchId) { + public static BunqResponse delete(Long schedulePaymentBatchId, Long noteTextSchedulePaymentBatchId) { return delete(schedulePaymentBatchId, noteTextSchedulePaymentBatchId, null, null); } - public static BunqResponse delete(Integer schedulePaymentBatchId, Integer noteTextSchedulePaymentBatchId, Integer monetaryAccountId) { + public static BunqResponse delete(Long schedulePaymentBatchId, Long noteTextSchedulePaymentBatchId, Long monetaryAccountId) { return delete(schedulePaymentBatchId, noteTextSchedulePaymentBatchId, monetaryAccountId, null); } /** * Manage the notes for a given user. */ - public static BunqResponse> list(Integer schedulePaymentBatchId, Integer monetaryAccountId, Map params, Map customHeaders) { + public static BunqResponse> list(Long schedulePaymentBatchId, Long monetaryAccountId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_LISTING, determineUserId(), determineMonetaryAccountId(monetaryAccountId), schedulePaymentBatchId), params, customHeaders); @@ -194,21 +194,21 @@ public static BunqResponse> list() { return list(null, null, null, null); } - public static BunqResponse> list(Integer schedulePaymentBatchId) { + public static BunqResponse> list(Long schedulePaymentBatchId) { return list(schedulePaymentBatchId, null, null, null); } - public static BunqResponse> list(Integer schedulePaymentBatchId, Integer monetaryAccountId) { + public static BunqResponse> list(Long schedulePaymentBatchId, Long monetaryAccountId) { return list(schedulePaymentBatchId, monetaryAccountId, null, null); } - public static BunqResponse> list(Integer schedulePaymentBatchId, Integer monetaryAccountId, Map params) { + public static BunqResponse> list(Long schedulePaymentBatchId, Long monetaryAccountId, Map params) { return list(schedulePaymentBatchId, monetaryAccountId, params, null); } /** */ - public static BunqResponse get(Integer schedulePaymentBatchId, Integer noteTextSchedulePaymentBatchId, Integer monetaryAccountId, Map params, Map customHeaders) { + public static BunqResponse get(Long schedulePaymentBatchId, Long noteTextSchedulePaymentBatchId, Long monetaryAccountId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_READ, determineUserId(), determineMonetaryAccountId(monetaryAccountId), schedulePaymentBatchId, noteTextSchedulePaymentBatchId), params, customHeaders); @@ -219,30 +219,30 @@ public static BunqResponse get() { return get(null, null, null, null, null); } - public static BunqResponse get(Integer schedulePaymentBatchId) { + public static BunqResponse get(Long schedulePaymentBatchId) { return get(schedulePaymentBatchId, null, null, null, null); } - public static BunqResponse get(Integer schedulePaymentBatchId, Integer noteTextSchedulePaymentBatchId) { + public static BunqResponse get(Long schedulePaymentBatchId, Long noteTextSchedulePaymentBatchId) { return get(schedulePaymentBatchId, noteTextSchedulePaymentBatchId, null, null, null); } - public static BunqResponse get(Integer schedulePaymentBatchId, Integer noteTextSchedulePaymentBatchId, Integer monetaryAccountId) { + public static BunqResponse get(Long schedulePaymentBatchId, Long noteTextSchedulePaymentBatchId, Long monetaryAccountId) { return get(schedulePaymentBatchId, noteTextSchedulePaymentBatchId, monetaryAccountId, null, null); } - public static BunqResponse get(Integer schedulePaymentBatchId, Integer noteTextSchedulePaymentBatchId, Integer monetaryAccountId, Map params) { + public static BunqResponse get(Long schedulePaymentBatchId, Long noteTextSchedulePaymentBatchId, Long monetaryAccountId, Map params) { return get(schedulePaymentBatchId, noteTextSchedulePaymentBatchId, monetaryAccountId, params, null); } /** * The id of the note. */ - public Integer getId() { + public Long getId() { return this.id; } - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } diff --git a/src/main/java/com/bunq/sdk/model/generated/endpoint/NoteTextScheduleRequestApiObject.java b/src/main/java/com/bunq/sdk/model/generated/endpoint/NoteTextScheduleRequestApiObject.java index 905cd1a5..75707283 100644 --- a/src/main/java/com/bunq/sdk/model/generated/endpoint/NoteTextScheduleRequestApiObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/endpoint/NoteTextScheduleRequestApiObject.java @@ -46,7 +46,7 @@ public class NoteTextScheduleRequestApiObject extends BunqModel { */ @Expose @SerializedName("id") - private Integer id; + private Long id; /** * The timestamp of the note's creation. @@ -92,7 +92,7 @@ public NoteTextScheduleRequestApiObject(String content) { } /** * @param content The content of the note. */ - public static BunqResponse create(Integer scheduleRequestInquiryId, Integer monetaryAccountId, String content, Map customHeaders) { + public static BunqResponse create(Long scheduleRequestInquiryId, Long monetaryAccountId, String content, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -108,26 +108,26 @@ public static BunqResponse create(Integer scheduleRequestInquiryId, Int return processForId(responseRaw); } - public static BunqResponse create() { + public static BunqResponse create() { return create(null, null, null, null); } - public static BunqResponse create(Integer scheduleRequestInquiryId) { + public static BunqResponse create(Long scheduleRequestInquiryId) { return create(scheduleRequestInquiryId, null, null, null); } - public static BunqResponse create(Integer scheduleRequestInquiryId, Integer monetaryAccountId) { + public static BunqResponse create(Long scheduleRequestInquiryId, Long monetaryAccountId) { return create(scheduleRequestInquiryId, monetaryAccountId, null, null); } - public static BunqResponse create(Integer scheduleRequestInquiryId, Integer monetaryAccountId, String content) { + public static BunqResponse create(Long scheduleRequestInquiryId, Long monetaryAccountId, String content) { return create(scheduleRequestInquiryId, monetaryAccountId, content, null); } /** * @param content The content of the note. */ - public static BunqResponse update(Integer scheduleRequestInquiryId, Integer noteTextScheduleRequestId, Integer monetaryAccountId, String content, Map customHeaders) { + public static BunqResponse update(Long scheduleRequestInquiryId, Long noteTextScheduleRequestId, Long monetaryAccountId, String content, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -143,47 +143,47 @@ public static BunqResponse update(Integer scheduleRequestInquiryId, Int return processForId(responseRaw); } - public static BunqResponse update(Integer scheduleRequestInquiryId) { + public static BunqResponse update(Long scheduleRequestInquiryId) { return update(scheduleRequestInquiryId, null, null, null, null); } - public static BunqResponse update(Integer scheduleRequestInquiryId, Integer noteTextScheduleRequestId) { + public static BunqResponse update(Long scheduleRequestInquiryId, Long noteTextScheduleRequestId) { return update(scheduleRequestInquiryId, noteTextScheduleRequestId, null, null, null); } - public static BunqResponse update(Integer scheduleRequestInquiryId, Integer noteTextScheduleRequestId, Integer monetaryAccountId) { + public static BunqResponse update(Long scheduleRequestInquiryId, Long noteTextScheduleRequestId, Long monetaryAccountId) { return update(scheduleRequestInquiryId, noteTextScheduleRequestId, monetaryAccountId, null, null); } - public static BunqResponse update(Integer scheduleRequestInquiryId, Integer noteTextScheduleRequestId, Integer monetaryAccountId, String content) { + public static BunqResponse update(Long scheduleRequestInquiryId, Long noteTextScheduleRequestId, Long monetaryAccountId, String content) { return update(scheduleRequestInquiryId, noteTextScheduleRequestId, monetaryAccountId, content, null); } /** */ - public static BunqResponse delete(Integer scheduleRequestInquiryId, Integer noteTextScheduleRequestId, Integer monetaryAccountId, Map customHeaders) { + public static BunqResponse delete(Long scheduleRequestInquiryId, Long noteTextScheduleRequestId, Long monetaryAccountId, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.delete(String.format(ENDPOINT_URL_DELETE, determineUserId(), determineMonetaryAccountId(monetaryAccountId), scheduleRequestInquiryId, noteTextScheduleRequestId), customHeaders); return new BunqResponse<>(null, responseRaw.getHeaders()); } - public static BunqResponse delete(Integer scheduleRequestInquiryId) { + public static BunqResponse delete(Long scheduleRequestInquiryId) { return delete(scheduleRequestInquiryId, null, null, null); } - public static BunqResponse delete(Integer scheduleRequestInquiryId, Integer noteTextScheduleRequestId) { + public static BunqResponse delete(Long scheduleRequestInquiryId, Long noteTextScheduleRequestId) { return delete(scheduleRequestInquiryId, noteTextScheduleRequestId, null, null); } - public static BunqResponse delete(Integer scheduleRequestInquiryId, Integer noteTextScheduleRequestId, Integer monetaryAccountId) { + public static BunqResponse delete(Long scheduleRequestInquiryId, Long noteTextScheduleRequestId, Long monetaryAccountId) { return delete(scheduleRequestInquiryId, noteTextScheduleRequestId, monetaryAccountId, null); } /** * Manage the notes for a given schedule request. */ - public static BunqResponse> list(Integer scheduleRequestInquiryId, Integer monetaryAccountId, Map params, Map customHeaders) { + public static BunqResponse> list(Long scheduleRequestInquiryId, Long monetaryAccountId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_LISTING, determineUserId(), determineMonetaryAccountId(monetaryAccountId), scheduleRequestInquiryId), params, customHeaders); @@ -194,21 +194,21 @@ public static BunqResponse> list() { return list(null, null, null, null); } - public static BunqResponse> list(Integer scheduleRequestInquiryId) { + public static BunqResponse> list(Long scheduleRequestInquiryId) { return list(scheduleRequestInquiryId, null, null, null); } - public static BunqResponse> list(Integer scheduleRequestInquiryId, Integer monetaryAccountId) { + public static BunqResponse> list(Long scheduleRequestInquiryId, Long monetaryAccountId) { return list(scheduleRequestInquiryId, monetaryAccountId, null, null); } - public static BunqResponse> list(Integer scheduleRequestInquiryId, Integer monetaryAccountId, Map params) { + public static BunqResponse> list(Long scheduleRequestInquiryId, Long monetaryAccountId, Map params) { return list(scheduleRequestInquiryId, monetaryAccountId, params, null); } /** */ - public static BunqResponse get(Integer scheduleRequestInquiryId, Integer noteTextScheduleRequestId, Integer monetaryAccountId, Map params, Map customHeaders) { + public static BunqResponse get(Long scheduleRequestInquiryId, Long noteTextScheduleRequestId, Long monetaryAccountId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_READ, determineUserId(), determineMonetaryAccountId(monetaryAccountId), scheduleRequestInquiryId, noteTextScheduleRequestId), params, customHeaders); @@ -219,30 +219,30 @@ public static BunqResponse get() { return get(null, null, null, null, null); } - public static BunqResponse get(Integer scheduleRequestInquiryId) { + public static BunqResponse get(Long scheduleRequestInquiryId) { return get(scheduleRequestInquiryId, null, null, null, null); } - public static BunqResponse get(Integer scheduleRequestInquiryId, Integer noteTextScheduleRequestId) { + public static BunqResponse get(Long scheduleRequestInquiryId, Long noteTextScheduleRequestId) { return get(scheduleRequestInquiryId, noteTextScheduleRequestId, null, null, null); } - public static BunqResponse get(Integer scheduleRequestInquiryId, Integer noteTextScheduleRequestId, Integer monetaryAccountId) { + public static BunqResponse get(Long scheduleRequestInquiryId, Long noteTextScheduleRequestId, Long monetaryAccountId) { return get(scheduleRequestInquiryId, noteTextScheduleRequestId, monetaryAccountId, null, null); } - public static BunqResponse get(Integer scheduleRequestInquiryId, Integer noteTextScheduleRequestId, Integer monetaryAccountId, Map params) { + public static BunqResponse get(Long scheduleRequestInquiryId, Long noteTextScheduleRequestId, Long monetaryAccountId, Map params) { return get(scheduleRequestInquiryId, noteTextScheduleRequestId, monetaryAccountId, params, null); } /** * The id of the note. */ - public Integer getId() { + public Long getId() { return this.id; } - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } diff --git a/src/main/java/com/bunq/sdk/model/generated/endpoint/NoteTextScheduleRequestBatchApiObject.java b/src/main/java/com/bunq/sdk/model/generated/endpoint/NoteTextScheduleRequestBatchApiObject.java index a63ee811..54c6badc 100644 --- a/src/main/java/com/bunq/sdk/model/generated/endpoint/NoteTextScheduleRequestBatchApiObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/endpoint/NoteTextScheduleRequestBatchApiObject.java @@ -46,7 +46,7 @@ public class NoteTextScheduleRequestBatchApiObject extends BunqModel { */ @Expose @SerializedName("id") - private Integer id; + private Long id; /** * The timestamp of the note's creation. @@ -92,7 +92,7 @@ public NoteTextScheduleRequestBatchApiObject(String content) { } /** * @param content The content of the note. */ - public static BunqResponse create(Integer scheduleRequestInquiryBatchId, Integer monetaryAccountId, String content, Map customHeaders) { + public static BunqResponse create(Long scheduleRequestInquiryBatchId, Long monetaryAccountId, String content, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -108,26 +108,26 @@ public static BunqResponse create(Integer scheduleRequestInquiryBatchId return processForId(responseRaw); } - public static BunqResponse create() { + public static BunqResponse create() { return create(null, null, null, null); } - public static BunqResponse create(Integer scheduleRequestInquiryBatchId) { + public static BunqResponse create(Long scheduleRequestInquiryBatchId) { return create(scheduleRequestInquiryBatchId, null, null, null); } - public static BunqResponse create(Integer scheduleRequestInquiryBatchId, Integer monetaryAccountId) { + public static BunqResponse create(Long scheduleRequestInquiryBatchId, Long monetaryAccountId) { return create(scheduleRequestInquiryBatchId, monetaryAccountId, null, null); } - public static BunqResponse create(Integer scheduleRequestInquiryBatchId, Integer monetaryAccountId, String content) { + public static BunqResponse create(Long scheduleRequestInquiryBatchId, Long monetaryAccountId, String content) { return create(scheduleRequestInquiryBatchId, monetaryAccountId, content, null); } /** * @param content The content of the note. */ - public static BunqResponse update(Integer scheduleRequestInquiryBatchId, Integer noteTextScheduleRequestBatchId, Integer monetaryAccountId, String content, Map customHeaders) { + public static BunqResponse update(Long scheduleRequestInquiryBatchId, Long noteTextScheduleRequestBatchId, Long monetaryAccountId, String content, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -143,47 +143,47 @@ public static BunqResponse update(Integer scheduleRequestInquiryBatchId return processForId(responseRaw); } - public static BunqResponse update(Integer scheduleRequestInquiryBatchId) { + public static BunqResponse update(Long scheduleRequestInquiryBatchId) { return update(scheduleRequestInquiryBatchId, null, null, null, null); } - public static BunqResponse update(Integer scheduleRequestInquiryBatchId, Integer noteTextScheduleRequestBatchId) { + public static BunqResponse update(Long scheduleRequestInquiryBatchId, Long noteTextScheduleRequestBatchId) { return update(scheduleRequestInquiryBatchId, noteTextScheduleRequestBatchId, null, null, null); } - public static BunqResponse update(Integer scheduleRequestInquiryBatchId, Integer noteTextScheduleRequestBatchId, Integer monetaryAccountId) { + public static BunqResponse update(Long scheduleRequestInquiryBatchId, Long noteTextScheduleRequestBatchId, Long monetaryAccountId) { return update(scheduleRequestInquiryBatchId, noteTextScheduleRequestBatchId, monetaryAccountId, null, null); } - public static BunqResponse update(Integer scheduleRequestInquiryBatchId, Integer noteTextScheduleRequestBatchId, Integer monetaryAccountId, String content) { + public static BunqResponse update(Long scheduleRequestInquiryBatchId, Long noteTextScheduleRequestBatchId, Long monetaryAccountId, String content) { return update(scheduleRequestInquiryBatchId, noteTextScheduleRequestBatchId, monetaryAccountId, content, null); } /** */ - public static BunqResponse delete(Integer scheduleRequestInquiryBatchId, Integer noteTextScheduleRequestBatchId, Integer monetaryAccountId, Map customHeaders) { + public static BunqResponse delete(Long scheduleRequestInquiryBatchId, Long noteTextScheduleRequestBatchId, Long monetaryAccountId, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.delete(String.format(ENDPOINT_URL_DELETE, determineUserId(), determineMonetaryAccountId(monetaryAccountId), scheduleRequestInquiryBatchId, noteTextScheduleRequestBatchId), customHeaders); return new BunqResponse<>(null, responseRaw.getHeaders()); } - public static BunqResponse delete(Integer scheduleRequestInquiryBatchId) { + public static BunqResponse delete(Long scheduleRequestInquiryBatchId) { return delete(scheduleRequestInquiryBatchId, null, null, null); } - public static BunqResponse delete(Integer scheduleRequestInquiryBatchId, Integer noteTextScheduleRequestBatchId) { + public static BunqResponse delete(Long scheduleRequestInquiryBatchId, Long noteTextScheduleRequestBatchId) { return delete(scheduleRequestInquiryBatchId, noteTextScheduleRequestBatchId, null, null); } - public static BunqResponse delete(Integer scheduleRequestInquiryBatchId, Integer noteTextScheduleRequestBatchId, Integer monetaryAccountId) { + public static BunqResponse delete(Long scheduleRequestInquiryBatchId, Long noteTextScheduleRequestBatchId, Long monetaryAccountId) { return delete(scheduleRequestInquiryBatchId, noteTextScheduleRequestBatchId, monetaryAccountId, null); } /** * Manage the notes for a given schedule request. */ - public static BunqResponse> list(Integer scheduleRequestInquiryBatchId, Integer monetaryAccountId, Map params, Map customHeaders) { + public static BunqResponse> list(Long scheduleRequestInquiryBatchId, Long monetaryAccountId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_LISTING, determineUserId(), determineMonetaryAccountId(monetaryAccountId), scheduleRequestInquiryBatchId), params, customHeaders); @@ -194,21 +194,21 @@ public static BunqResponse> list() { return list(null, null, null, null); } - public static BunqResponse> list(Integer scheduleRequestInquiryBatchId) { + public static BunqResponse> list(Long scheduleRequestInquiryBatchId) { return list(scheduleRequestInquiryBatchId, null, null, null); } - public static BunqResponse> list(Integer scheduleRequestInquiryBatchId, Integer monetaryAccountId) { + public static BunqResponse> list(Long scheduleRequestInquiryBatchId, Long monetaryAccountId) { return list(scheduleRequestInquiryBatchId, monetaryAccountId, null, null); } - public static BunqResponse> list(Integer scheduleRequestInquiryBatchId, Integer monetaryAccountId, Map params) { + public static BunqResponse> list(Long scheduleRequestInquiryBatchId, Long monetaryAccountId, Map params) { return list(scheduleRequestInquiryBatchId, monetaryAccountId, params, null); } /** */ - public static BunqResponse get(Integer scheduleRequestInquiryBatchId, Integer noteTextScheduleRequestBatchId, Integer monetaryAccountId, Map params, Map customHeaders) { + public static BunqResponse get(Long scheduleRequestInquiryBatchId, Long noteTextScheduleRequestBatchId, Long monetaryAccountId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_READ, determineUserId(), determineMonetaryAccountId(monetaryAccountId), scheduleRequestInquiryBatchId, noteTextScheduleRequestBatchId), params, customHeaders); @@ -219,30 +219,30 @@ public static BunqResponse get() { return get(null, null, null, null, null); } - public static BunqResponse get(Integer scheduleRequestInquiryBatchId) { + public static BunqResponse get(Long scheduleRequestInquiryBatchId) { return get(scheduleRequestInquiryBatchId, null, null, null, null); } - public static BunqResponse get(Integer scheduleRequestInquiryBatchId, Integer noteTextScheduleRequestBatchId) { + public static BunqResponse get(Long scheduleRequestInquiryBatchId, Long noteTextScheduleRequestBatchId) { return get(scheduleRequestInquiryBatchId, noteTextScheduleRequestBatchId, null, null, null); } - public static BunqResponse get(Integer scheduleRequestInquiryBatchId, Integer noteTextScheduleRequestBatchId, Integer monetaryAccountId) { + public static BunqResponse get(Long scheduleRequestInquiryBatchId, Long noteTextScheduleRequestBatchId, Long monetaryAccountId) { return get(scheduleRequestInquiryBatchId, noteTextScheduleRequestBatchId, monetaryAccountId, null, null); } - public static BunqResponse get(Integer scheduleRequestInquiryBatchId, Integer noteTextScheduleRequestBatchId, Integer monetaryAccountId, Map params) { + public static BunqResponse get(Long scheduleRequestInquiryBatchId, Long noteTextScheduleRequestBatchId, Long monetaryAccountId, Map params) { return get(scheduleRequestInquiryBatchId, noteTextScheduleRequestBatchId, monetaryAccountId, params, null); } /** * The id of the note. */ - public Integer getId() { + public Long getId() { return this.id; } - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } diff --git a/src/main/java/com/bunq/sdk/model/generated/endpoint/NoteTextSofortMerchantTransactionApiObject.java b/src/main/java/com/bunq/sdk/model/generated/endpoint/NoteTextSofortMerchantTransactionApiObject.java index c54c589e..982ee31c 100644 --- a/src/main/java/com/bunq/sdk/model/generated/endpoint/NoteTextSofortMerchantTransactionApiObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/endpoint/NoteTextSofortMerchantTransactionApiObject.java @@ -46,7 +46,7 @@ public class NoteTextSofortMerchantTransactionApiObject extends BunqModel { */ @Expose @SerializedName("id") - private Integer id; + private Long id; /** * The timestamp of the note's creation. @@ -92,7 +92,7 @@ public NoteTextSofortMerchantTransactionApiObject(String content) { } /** * @param content The content of the note. */ - public static BunqResponse create(Integer sofortMerchantTransactionId, Integer monetaryAccountId, String content, Map customHeaders) { + public static BunqResponse create(Long sofortMerchantTransactionId, Long monetaryAccountId, String content, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -108,26 +108,26 @@ public static BunqResponse create(Integer sofortMerchantTransactionId, return processForId(responseRaw); } - public static BunqResponse create() { + public static BunqResponse create() { return create(null, null, null, null); } - public static BunqResponse create(Integer sofortMerchantTransactionId) { + public static BunqResponse create(Long sofortMerchantTransactionId) { return create(sofortMerchantTransactionId, null, null, null); } - public static BunqResponse create(Integer sofortMerchantTransactionId, Integer monetaryAccountId) { + public static BunqResponse create(Long sofortMerchantTransactionId, Long monetaryAccountId) { return create(sofortMerchantTransactionId, monetaryAccountId, null, null); } - public static BunqResponse create(Integer sofortMerchantTransactionId, Integer monetaryAccountId, String content) { + public static BunqResponse create(Long sofortMerchantTransactionId, Long monetaryAccountId, String content) { return create(sofortMerchantTransactionId, monetaryAccountId, content, null); } /** * @param content The content of the note. */ - public static BunqResponse update(Integer sofortMerchantTransactionId, Integer noteTextSofortMerchantTransactionId, Integer monetaryAccountId, String content, Map customHeaders) { + public static BunqResponse update(Long sofortMerchantTransactionId, Long noteTextSofortMerchantTransactionId, Long monetaryAccountId, String content, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -143,47 +143,47 @@ public static BunqResponse update(Integer sofortMerchantTransactionId, return processForId(responseRaw); } - public static BunqResponse update(Integer sofortMerchantTransactionId) { + public static BunqResponse update(Long sofortMerchantTransactionId) { return update(sofortMerchantTransactionId, null, null, null, null); } - public static BunqResponse update(Integer sofortMerchantTransactionId, Integer noteTextSofortMerchantTransactionId) { + public static BunqResponse update(Long sofortMerchantTransactionId, Long noteTextSofortMerchantTransactionId) { return update(sofortMerchantTransactionId, noteTextSofortMerchantTransactionId, null, null, null); } - public static BunqResponse update(Integer sofortMerchantTransactionId, Integer noteTextSofortMerchantTransactionId, Integer monetaryAccountId) { + public static BunqResponse update(Long sofortMerchantTransactionId, Long noteTextSofortMerchantTransactionId, Long monetaryAccountId) { return update(sofortMerchantTransactionId, noteTextSofortMerchantTransactionId, monetaryAccountId, null, null); } - public static BunqResponse update(Integer sofortMerchantTransactionId, Integer noteTextSofortMerchantTransactionId, Integer monetaryAccountId, String content) { + public static BunqResponse update(Long sofortMerchantTransactionId, Long noteTextSofortMerchantTransactionId, Long monetaryAccountId, String content) { return update(sofortMerchantTransactionId, noteTextSofortMerchantTransactionId, monetaryAccountId, content, null); } /** */ - public static BunqResponse delete(Integer sofortMerchantTransactionId, Integer noteTextSofortMerchantTransactionId, Integer monetaryAccountId, Map customHeaders) { + public static BunqResponse delete(Long sofortMerchantTransactionId, Long noteTextSofortMerchantTransactionId, Long monetaryAccountId, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.delete(String.format(ENDPOINT_URL_DELETE, determineUserId(), determineMonetaryAccountId(monetaryAccountId), sofortMerchantTransactionId, noteTextSofortMerchantTransactionId), customHeaders); return new BunqResponse<>(null, responseRaw.getHeaders()); } - public static BunqResponse delete(Integer sofortMerchantTransactionId) { + public static BunqResponse delete(Long sofortMerchantTransactionId) { return delete(sofortMerchantTransactionId, null, null, null); } - public static BunqResponse delete(Integer sofortMerchantTransactionId, Integer noteTextSofortMerchantTransactionId) { + public static BunqResponse delete(Long sofortMerchantTransactionId, Long noteTextSofortMerchantTransactionId) { return delete(sofortMerchantTransactionId, noteTextSofortMerchantTransactionId, null, null); } - public static BunqResponse delete(Integer sofortMerchantTransactionId, Integer noteTextSofortMerchantTransactionId, Integer monetaryAccountId) { + public static BunqResponse delete(Long sofortMerchantTransactionId, Long noteTextSofortMerchantTransactionId, Long monetaryAccountId) { return delete(sofortMerchantTransactionId, noteTextSofortMerchantTransactionId, monetaryAccountId, null); } /** * Manage the notes for a given user. */ - public static BunqResponse> list(Integer sofortMerchantTransactionId, Integer monetaryAccountId, Map params, Map customHeaders) { + public static BunqResponse> list(Long sofortMerchantTransactionId, Long monetaryAccountId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_LISTING, determineUserId(), determineMonetaryAccountId(monetaryAccountId), sofortMerchantTransactionId), params, customHeaders); @@ -194,21 +194,21 @@ public static BunqResponse> lis return list(null, null, null, null); } - public static BunqResponse> list(Integer sofortMerchantTransactionId) { + public static BunqResponse> list(Long sofortMerchantTransactionId) { return list(sofortMerchantTransactionId, null, null, null); } - public static BunqResponse> list(Integer sofortMerchantTransactionId, Integer monetaryAccountId) { + public static BunqResponse> list(Long sofortMerchantTransactionId, Long monetaryAccountId) { return list(sofortMerchantTransactionId, monetaryAccountId, null, null); } - public static BunqResponse> list(Integer sofortMerchantTransactionId, Integer monetaryAccountId, Map params) { + public static BunqResponse> list(Long sofortMerchantTransactionId, Long monetaryAccountId, Map params) { return list(sofortMerchantTransactionId, monetaryAccountId, params, null); } /** */ - public static BunqResponse get(Integer sofortMerchantTransactionId, Integer noteTextSofortMerchantTransactionId, Integer monetaryAccountId, Map params, Map customHeaders) { + public static BunqResponse get(Long sofortMerchantTransactionId, Long noteTextSofortMerchantTransactionId, Long monetaryAccountId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_READ, determineUserId(), determineMonetaryAccountId(monetaryAccountId), sofortMerchantTransactionId, noteTextSofortMerchantTransactionId), params, customHeaders); @@ -219,30 +219,30 @@ public static BunqResponse get() { return get(null, null, null, null, null); } - public static BunqResponse get(Integer sofortMerchantTransactionId) { + public static BunqResponse get(Long sofortMerchantTransactionId) { return get(sofortMerchantTransactionId, null, null, null, null); } - public static BunqResponse get(Integer sofortMerchantTransactionId, Integer noteTextSofortMerchantTransactionId) { + public static BunqResponse get(Long sofortMerchantTransactionId, Long noteTextSofortMerchantTransactionId) { return get(sofortMerchantTransactionId, noteTextSofortMerchantTransactionId, null, null, null); } - public static BunqResponse get(Integer sofortMerchantTransactionId, Integer noteTextSofortMerchantTransactionId, Integer monetaryAccountId) { + public static BunqResponse get(Long sofortMerchantTransactionId, Long noteTextSofortMerchantTransactionId, Long monetaryAccountId) { return get(sofortMerchantTransactionId, noteTextSofortMerchantTransactionId, monetaryAccountId, null, null); } - public static BunqResponse get(Integer sofortMerchantTransactionId, Integer noteTextSofortMerchantTransactionId, Integer monetaryAccountId, Map params) { + public static BunqResponse get(Long sofortMerchantTransactionId, Long noteTextSofortMerchantTransactionId, Long monetaryAccountId, Map params) { return get(sofortMerchantTransactionId, noteTextSofortMerchantTransactionId, monetaryAccountId, params, null); } /** * The id of the note. */ - public Integer getId() { + public Long getId() { return this.id; } - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } diff --git a/src/main/java/com/bunq/sdk/model/generated/endpoint/NoteTextWhitelistResultApiObject.java b/src/main/java/com/bunq/sdk/model/generated/endpoint/NoteTextWhitelistResultApiObject.java index 5cd4af58..a2b566f4 100644 --- a/src/main/java/com/bunq/sdk/model/generated/endpoint/NoteTextWhitelistResultApiObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/endpoint/NoteTextWhitelistResultApiObject.java @@ -46,7 +46,7 @@ public class NoteTextWhitelistResultApiObject extends BunqModel { */ @Expose @SerializedName("id") - private Integer id; + private Long id; /** * The timestamp of the note's creation. @@ -92,7 +92,7 @@ public NoteTextWhitelistResultApiObject(String content) { } /** * @param content The content of the note. */ - public static BunqResponse create(Integer whitelistId, Integer whitelistResultId, Integer monetaryAccountId, String content, Map customHeaders) { + public static BunqResponse create(Long whitelistId, Long whitelistResultId, Long monetaryAccountId, String content, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -108,30 +108,30 @@ public static BunqResponse create(Integer whitelistId, Integer whitelis return processForId(responseRaw); } - public static BunqResponse create() { + public static BunqResponse create() { return create(null, null, null, null, null); } - public static BunqResponse create(Integer whitelistId) { + public static BunqResponse create(Long whitelistId) { return create(whitelistId, null, null, null, null); } - public static BunqResponse create(Integer whitelistId, Integer whitelistResultId) { + public static BunqResponse create(Long whitelistId, Long whitelistResultId) { return create(whitelistId, whitelistResultId, null, null, null); } - public static BunqResponse create(Integer whitelistId, Integer whitelistResultId, Integer monetaryAccountId) { + public static BunqResponse create(Long whitelistId, Long whitelistResultId, Long monetaryAccountId) { return create(whitelistId, whitelistResultId, monetaryAccountId, null, null); } - public static BunqResponse create(Integer whitelistId, Integer whitelistResultId, Integer monetaryAccountId, String content) { + public static BunqResponse create(Long whitelistId, Long whitelistResultId, Long monetaryAccountId, String content) { return create(whitelistId, whitelistResultId, monetaryAccountId, content, null); } /** * @param content The content of the note. */ - public static BunqResponse update(Integer whitelistId, Integer whitelistResultId, Integer noteTextWhitelistResultId, Integer monetaryAccountId, String content, Map customHeaders) { + public static BunqResponse update(Long whitelistId, Long whitelistResultId, Long noteTextWhitelistResultId, Long monetaryAccountId, String content, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -147,55 +147,55 @@ public static BunqResponse update(Integer whitelistId, Integer whitelis return processForId(responseRaw); } - public static BunqResponse update(Integer whitelistId) { + public static BunqResponse update(Long whitelistId) { return update(whitelistId, null, null, null, null, null); } - public static BunqResponse update(Integer whitelistId, Integer whitelistResultId) { + public static BunqResponse update(Long whitelistId, Long whitelistResultId) { return update(whitelistId, whitelistResultId, null, null, null, null); } - public static BunqResponse update(Integer whitelistId, Integer whitelistResultId, Integer noteTextWhitelistResultId) { + public static BunqResponse update(Long whitelistId, Long whitelistResultId, Long noteTextWhitelistResultId) { return update(whitelistId, whitelistResultId, noteTextWhitelistResultId, null, null, null); } - public static BunqResponse update(Integer whitelistId, Integer whitelistResultId, Integer noteTextWhitelistResultId, Integer monetaryAccountId) { + public static BunqResponse update(Long whitelistId, Long whitelistResultId, Long noteTextWhitelistResultId, Long monetaryAccountId) { return update(whitelistId, whitelistResultId, noteTextWhitelistResultId, monetaryAccountId, null, null); } - public static BunqResponse update(Integer whitelistId, Integer whitelistResultId, Integer noteTextWhitelistResultId, Integer monetaryAccountId, String content) { + public static BunqResponse update(Long whitelistId, Long whitelistResultId, Long noteTextWhitelistResultId, Long monetaryAccountId, String content) { return update(whitelistId, whitelistResultId, noteTextWhitelistResultId, monetaryAccountId, content, null); } /** */ - public static BunqResponse delete(Integer whitelistId, Integer whitelistResultId, Integer noteTextWhitelistResultId, Integer monetaryAccountId, Map customHeaders) { + public static BunqResponse delete(Long whitelistId, Long whitelistResultId, Long noteTextWhitelistResultId, Long monetaryAccountId, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.delete(String.format(ENDPOINT_URL_DELETE, determineUserId(), determineMonetaryAccountId(monetaryAccountId), whitelistId, whitelistResultId, noteTextWhitelistResultId), customHeaders); return new BunqResponse<>(null, responseRaw.getHeaders()); } - public static BunqResponse delete(Integer whitelistId) { + public static BunqResponse delete(Long whitelistId) { return delete(whitelistId, null, null, null, null); } - public static BunqResponse delete(Integer whitelistId, Integer whitelistResultId) { + public static BunqResponse delete(Long whitelistId, Long whitelistResultId) { return delete(whitelistId, whitelistResultId, null, null, null); } - public static BunqResponse delete(Integer whitelistId, Integer whitelistResultId, Integer noteTextWhitelistResultId) { + public static BunqResponse delete(Long whitelistId, Long whitelistResultId, Long noteTextWhitelistResultId) { return delete(whitelistId, whitelistResultId, noteTextWhitelistResultId, null, null); } - public static BunqResponse delete(Integer whitelistId, Integer whitelistResultId, Integer noteTextWhitelistResultId, Integer monetaryAccountId) { + public static BunqResponse delete(Long whitelistId, Long whitelistResultId, Long noteTextWhitelistResultId, Long monetaryAccountId) { return delete(whitelistId, whitelistResultId, noteTextWhitelistResultId, monetaryAccountId, null); } /** * Manage the notes for a given user. */ - public static BunqResponse> list(Integer whitelistId, Integer whitelistResultId, Integer monetaryAccountId, Map params, Map customHeaders) { + public static BunqResponse> list(Long whitelistId, Long whitelistResultId, Long monetaryAccountId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_LISTING, determineUserId(), determineMonetaryAccountId(monetaryAccountId), whitelistId, whitelistResultId), params, customHeaders); @@ -206,25 +206,25 @@ public static BunqResponse> list() { return list(null, null, null, null, null); } - public static BunqResponse> list(Integer whitelistId) { + public static BunqResponse> list(Long whitelistId) { return list(whitelistId, null, null, null, null); } - public static BunqResponse> list(Integer whitelistId, Integer whitelistResultId) { + public static BunqResponse> list(Long whitelistId, Long whitelistResultId) { return list(whitelistId, whitelistResultId, null, null, null); } - public static BunqResponse> list(Integer whitelistId, Integer whitelistResultId, Integer monetaryAccountId) { + public static BunqResponse> list(Long whitelistId, Long whitelistResultId, Long monetaryAccountId) { return list(whitelistId, whitelistResultId, monetaryAccountId, null, null); } - public static BunqResponse> list(Integer whitelistId, Integer whitelistResultId, Integer monetaryAccountId, Map params) { + public static BunqResponse> list(Long whitelistId, Long whitelistResultId, Long monetaryAccountId, Map params) { return list(whitelistId, whitelistResultId, monetaryAccountId, params, null); } /** */ - public static BunqResponse get(Integer whitelistId, Integer whitelistResultId, Integer noteTextWhitelistResultId, Integer monetaryAccountId, Map params, Map customHeaders) { + public static BunqResponse get(Long whitelistId, Long whitelistResultId, Long noteTextWhitelistResultId, Long monetaryAccountId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_READ, determineUserId(), determineMonetaryAccountId(monetaryAccountId), whitelistId, whitelistResultId, noteTextWhitelistResultId), params, customHeaders); @@ -235,34 +235,34 @@ public static BunqResponse get() { return get(null, null, null, null, null, null); } - public static BunqResponse get(Integer whitelistId) { + public static BunqResponse get(Long whitelistId) { return get(whitelistId, null, null, null, null, null); } - public static BunqResponse get(Integer whitelistId, Integer whitelistResultId) { + public static BunqResponse get(Long whitelistId, Long whitelistResultId) { return get(whitelistId, whitelistResultId, null, null, null, null); } - public static BunqResponse get(Integer whitelistId, Integer whitelistResultId, Integer noteTextWhitelistResultId) { + public static BunqResponse get(Long whitelistId, Long whitelistResultId, Long noteTextWhitelistResultId) { return get(whitelistId, whitelistResultId, noteTextWhitelistResultId, null, null, null); } - public static BunqResponse get(Integer whitelistId, Integer whitelistResultId, Integer noteTextWhitelistResultId, Integer monetaryAccountId) { + public static BunqResponse get(Long whitelistId, Long whitelistResultId, Long noteTextWhitelistResultId, Long monetaryAccountId) { return get(whitelistId, whitelistResultId, noteTextWhitelistResultId, monetaryAccountId, null, null); } - public static BunqResponse get(Integer whitelistId, Integer whitelistResultId, Integer noteTextWhitelistResultId, Integer monetaryAccountId, Map params) { + public static BunqResponse get(Long whitelistId, Long whitelistResultId, Long noteTextWhitelistResultId, Long monetaryAccountId, Map params) { return get(whitelistId, whitelistResultId, noteTextWhitelistResultId, monetaryAccountId, params, null); } /** * The id of the note. */ - public Integer getId() { + public Long getId() { return this.id; } - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } diff --git a/src/main/java/com/bunq/sdk/model/generated/endpoint/NotificationFilterFailureApiObject.java b/src/main/java/com/bunq/sdk/model/generated/endpoint/NotificationFilterFailureApiObject.java index 742da2e6..06d5fc38 100644 --- a/src/main/java/com/bunq/sdk/model/generated/endpoint/NotificationFilterFailureApiObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/endpoint/NotificationFilterFailureApiObject.java @@ -64,7 +64,7 @@ public class NotificationFilterFailureApiObject extends BunqModel { */ @Expose @SerializedName("object_id") - private Integer objectId; + private Long objectId; /** * The exception bunq encountered when processing the callback. @@ -78,7 +78,14 @@ public class NotificationFilterFailureApiObject extends BunqModel { */ @Expose @SerializedName("response_code") - private Integer responseCode; + private Long responseCode; + + /** + * This is the URL to which the callback will be made. + */ + @Expose + @SerializedName("notification_target") + private String notificationTarget; /** * The IDs to retry. @@ -96,7 +103,7 @@ public NotificationFilterFailureApiObject(String notificationFilterFailedIds) { } /** * @param notificationFilterFailedIds The IDs to retry. */ - public static BunqResponse create(String notificationFilterFailedIds, Map customHeaders) { + public static BunqResponse create(String notificationFilterFailedIds, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -112,11 +119,11 @@ public static BunqResponse create(String notificationFilterFailedIds, M return processForId(responseRaw); } - public static BunqResponse create() { + public static BunqResponse create() { return create(null, null); } - public static BunqResponse create(String notificationFilterFailedIds) { + public static BunqResponse create(String notificationFilterFailedIds) { return create(notificationFilterFailedIds, null); } @@ -173,11 +180,11 @@ public void setEventType(String eventType) { /** * The object id used to generate the body of the notification. */ - public Integer getObjectId() { + public Long getObjectId() { return this.objectId; } - public void setObjectId(Integer objectId) { + public void setObjectId(Long objectId) { this.objectId = objectId; } @@ -195,14 +202,25 @@ public void setExceptionMessage(String exceptionMessage) { /** * The response code (or null) received from the endpoint. */ - public Integer getResponseCode() { + public Long getResponseCode() { return this.responseCode; } - public void setResponseCode(Integer responseCode) { + public void setResponseCode(Long responseCode) { this.responseCode = responseCode; } + /** + * This is the URL to which the callback will be made. + */ + public String getNotificationTarget() { + return this.notificationTarget; + } + + public void setNotificationTarget(String notificationTarget) { + this.notificationTarget = notificationTarget; + } + /** */ public boolean isAllFieldNull() { @@ -230,6 +248,10 @@ public boolean isAllFieldNull() { return false; } + if (this.notificationTarget != null) { + return false; + } + return true; } diff --git a/src/main/java/com/bunq/sdk/model/generated/endpoint/NotificationFilterUrlApiObject.java b/src/main/java/com/bunq/sdk/model/generated/endpoint/NotificationFilterUrlApiObject.java index 467af126..ee761e4b 100644 --- a/src/main/java/com/bunq/sdk/model/generated/endpoint/NotificationFilterUrlApiObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/endpoint/NotificationFilterUrlApiObject.java @@ -62,7 +62,7 @@ public NotificationFilterUrlApiObject(List notifica * @param notificationFilters The types of notifications that will result in a url notification * for this user. */ - public static BunqResponse create(List notificationFilters, Map customHeaders) { + public static BunqResponse create(List notificationFilters, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -78,11 +78,11 @@ public static BunqResponse create(List not return processForId(responseRaw); } - public static BunqResponse create() { + public static BunqResponse create() { return create(null, null); } - public static BunqResponse create(List notificationFilters) { + public static BunqResponse create(List notificationFilters) { return create(notificationFilters, null); } diff --git a/src/main/java/com/bunq/sdk/model/generated/endpoint/NotificationFilterUrlMonetaryAccountApiObject.java b/src/main/java/com/bunq/sdk/model/generated/endpoint/NotificationFilterUrlMonetaryAccountApiObject.java index 681e2cbd..c6418ed1 100644 --- a/src/main/java/com/bunq/sdk/model/generated/endpoint/NotificationFilterUrlMonetaryAccountApiObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/endpoint/NotificationFilterUrlMonetaryAccountApiObject.java @@ -62,7 +62,7 @@ public NotificationFilterUrlMonetaryAccountApiObject(List create(Integer monetaryAccountId, List notificationFilters, Map customHeaders) { + public static BunqResponse create(Long monetaryAccountId, List notificationFilters, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -78,21 +78,21 @@ public static BunqResponse create(Integer monetaryAccountId, List create() { + public static BunqResponse create() { return create(null, null, null); } - public static BunqResponse create(Integer monetaryAccountId) { + public static BunqResponse create(Long monetaryAccountId) { return create(monetaryAccountId, null, null); } - public static BunqResponse create(Integer monetaryAccountId, List notificationFilters) { + public static BunqResponse create(Long monetaryAccountId, List notificationFilters) { return create(monetaryAccountId, notificationFilters, null); } /** */ - public static BunqResponse> list(Integer monetaryAccountId, Map params, Map customHeaders) { + public static BunqResponse> list(Long monetaryAccountId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_LISTING, determineUserId(), determineMonetaryAccountId(monetaryAccountId)), params, customHeaders); @@ -103,11 +103,11 @@ public static BunqResponse> return list(null, null, null); } - public static BunqResponse> list(Integer monetaryAccountId) { + public static BunqResponse> list(Long monetaryAccountId) { return list(monetaryAccountId, null, null); } - public static BunqResponse> list(Integer monetaryAccountId, Map params) { + public static BunqResponse> list(Long monetaryAccountId, Map params) { return list(monetaryAccountId, params, null); } diff --git a/src/main/java/com/bunq/sdk/model/generated/endpoint/OauthCallbackUrlApiObject.java b/src/main/java/com/bunq/sdk/model/generated/endpoint/OauthCallbackUrlApiObject.java index c406b6ff..c5e7a8f6 100644 --- a/src/main/java/com/bunq/sdk/model/generated/endpoint/OauthCallbackUrlApiObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/endpoint/OauthCallbackUrlApiObject.java @@ -62,7 +62,7 @@ public OauthCallbackUrlApiObject(String url) { this.urlFieldForRequest = url; } /** */ - public static BunqResponse get(Integer oauthClientId, Integer oauthCallbackUrlId, Map params, Map customHeaders) { + public static BunqResponse get(Long oauthClientId, Long oauthCallbackUrlId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_READ, determineUserId(), oauthClientId, oauthCallbackUrlId), params, customHeaders); @@ -73,22 +73,22 @@ public static BunqResponse get() { return get(null, null, null, null); } - public static BunqResponse get(Integer oauthClientId) { + public static BunqResponse get(Long oauthClientId) { return get(oauthClientId, null, null, null); } - public static BunqResponse get(Integer oauthClientId, Integer oauthCallbackUrlId) { + public static BunqResponse get(Long oauthClientId, Long oauthCallbackUrlId) { return get(oauthClientId, oauthCallbackUrlId, null, null); } - public static BunqResponse get(Integer oauthClientId, Integer oauthCallbackUrlId, Map params) { + public static BunqResponse get(Long oauthClientId, Long oauthCallbackUrlId, Map params) { return get(oauthClientId, oauthCallbackUrlId, params, null); } /** * @param url The URL for this callback. */ - public static BunqResponse create(Integer oauthClientId, String url, Map customHeaders) { + public static BunqResponse create(Long oauthClientId, String url, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -104,22 +104,22 @@ public static BunqResponse create(Integer oauthClientId, String url, Ma return processForId(responseRaw); } - public static BunqResponse create() { + public static BunqResponse create() { return create(null, null, null); } - public static BunqResponse create(Integer oauthClientId) { + public static BunqResponse create(Long oauthClientId) { return create(oauthClientId, null, null); } - public static BunqResponse create(Integer oauthClientId, String url) { + public static BunqResponse create(Long oauthClientId, String url) { return create(oauthClientId, url, null); } /** * @param url The URL for this callback. */ - public static BunqResponse update(Integer oauthClientId, Integer oauthCallbackUrlId, String url, Map customHeaders) { + public static BunqResponse update(Long oauthClientId, Long oauthCallbackUrlId, String url, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -135,21 +135,21 @@ public static BunqResponse update(Integer oauthClientId, Integer oauthC return processForId(responseRaw); } - public static BunqResponse update(Integer oauthClientId) { + public static BunqResponse update(Long oauthClientId) { return update(oauthClientId, null, null, null); } - public static BunqResponse update(Integer oauthClientId, Integer oauthCallbackUrlId) { + public static BunqResponse update(Long oauthClientId, Long oauthCallbackUrlId) { return update(oauthClientId, oauthCallbackUrlId, null, null); } - public static BunqResponse update(Integer oauthClientId, Integer oauthCallbackUrlId, String url) { + public static BunqResponse update(Long oauthClientId, Long oauthCallbackUrlId, String url) { return update(oauthClientId, oauthCallbackUrlId, url, null); } /** */ - public static BunqResponse> list(Integer oauthClientId, Map params, Map customHeaders) { + public static BunqResponse> list(Long oauthClientId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_LISTING, determineUserId(), oauthClientId), params, customHeaders); @@ -160,28 +160,28 @@ public static BunqResponse> list() { return list(null, null, null); } - public static BunqResponse> list(Integer oauthClientId) { + public static BunqResponse> list(Long oauthClientId) { return list(oauthClientId, null, null); } - public static BunqResponse> list(Integer oauthClientId, Map params) { + public static BunqResponse> list(Long oauthClientId, Map params) { return list(oauthClientId, params, null); } /** */ - public static BunqResponse delete(Integer oauthClientId, Integer oauthCallbackUrlId, Map customHeaders) { + public static BunqResponse delete(Long oauthClientId, Long oauthCallbackUrlId, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.delete(String.format(ENDPOINT_URL_DELETE, determineUserId(), oauthClientId, oauthCallbackUrlId), customHeaders); return new BunqResponse<>(null, responseRaw.getHeaders()); } - public static BunqResponse delete(Integer oauthClientId) { + public static BunqResponse delete(Long oauthClientId) { return delete(oauthClientId, null, null); } - public static BunqResponse delete(Integer oauthClientId, Integer oauthCallbackUrlId) { + public static BunqResponse delete(Long oauthClientId, Long oauthCallbackUrlId) { return delete(oauthClientId, oauthCallbackUrlId, null); } diff --git a/src/main/java/com/bunq/sdk/model/generated/endpoint/OauthClientApiObject.java b/src/main/java/com/bunq/sdk/model/generated/endpoint/OauthClientApiObject.java index 55471ed8..b4f77511 100644 --- a/src/main/java/com/bunq/sdk/model/generated/endpoint/OauthClientApiObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/endpoint/OauthClientApiObject.java @@ -45,7 +45,7 @@ public class OauthClientApiObject extends BunqModel { */ @Expose @SerializedName("id") - private Integer id; + private Long id; /** * The status of the pack group, can be ACTIVE, CANCELLED or CANCELLED_PENDING. @@ -97,7 +97,7 @@ public OauthClientApiObject(String status) { this.statusFieldForRequest = status; } /** */ - public static BunqResponse get(Integer oauthClientId, Map params, Map customHeaders) { + public static BunqResponse get(Long oauthClientId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_READ, determineUserId(), oauthClientId), params, customHeaders); @@ -108,18 +108,18 @@ public static BunqResponse get() { return get(null, null, null); } - public static BunqResponse get(Integer oauthClientId) { + public static BunqResponse get(Long oauthClientId) { return get(oauthClientId, null, null); } - public static BunqResponse get(Integer oauthClientId, Map params) { + public static BunqResponse get(Long oauthClientId, Map params) { return get(oauthClientId, params, null); } /** * @param status The status of the Oauth Client, can be ACTIVE or CANCELLED. */ - public static BunqResponse create(String status, Map customHeaders) { + public static BunqResponse create(String status, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -135,18 +135,18 @@ public static BunqResponse create(String status, Map cu return processForId(responseRaw); } - public static BunqResponse create() { + public static BunqResponse create() { return create(null, null); } - public static BunqResponse create(String status) { + public static BunqResponse create(String status) { return create(status, null); } /** * @param status The status of the Oauth Client, can be ACTIVE or CANCELLED. */ - public static BunqResponse update(Integer oauthClientId, String status, Map customHeaders) { + public static BunqResponse update(Long oauthClientId, String status, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -162,11 +162,11 @@ public static BunqResponse update(Integer oauthClientId, String status, return processForId(responseRaw); } - public static BunqResponse update(Integer oauthClientId) { + public static BunqResponse update(Long oauthClientId) { return update(oauthClientId, null, null); } - public static BunqResponse update(Integer oauthClientId, String status) { + public static BunqResponse update(Long oauthClientId, String status) { return update(oauthClientId, status, null); } @@ -190,11 +190,11 @@ public static BunqResponse> list(Map /** * Id of the client. */ - public Integer getId() { + public Long getId() { return this.id; } - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } diff --git a/src/main/java/com/bunq/sdk/model/generated/endpoint/PartnerPromotionCashbackApiObject.java b/src/main/java/com/bunq/sdk/model/generated/endpoint/PartnerPromotionCashbackApiObject.java index 7289a54a..932527c9 100644 --- a/src/main/java/com/bunq/sdk/model/generated/endpoint/PartnerPromotionCashbackApiObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/endpoint/PartnerPromotionCashbackApiObject.java @@ -52,7 +52,7 @@ public class PartnerPromotionCashbackApiObject extends BunqModel { */ @Expose @SerializedName("number_of_transaction_maximum") - private Integer numberOfTransactionMaximum; + private Long numberOfTransactionMaximum; /** * The minimum amount of a transaction. @@ -158,11 +158,11 @@ public void setAmountCashbackPerTransactionMaximum(AmountObject amountCashbackPe /** * The maximum number of transactions that can be made. */ - public Integer getNumberOfTransactionMaximum() { + public Long getNumberOfTransactionMaximum() { return this.numberOfTransactionMaximum; } - public void setNumberOfTransactionMaximum(Integer numberOfTransactionMaximum) { + public void setNumberOfTransactionMaximum(Long numberOfTransactionMaximum) { this.numberOfTransactionMaximum = numberOfTransactionMaximum; } diff --git a/src/main/java/com/bunq/sdk/model/generated/endpoint/PaymentApiObject.java b/src/main/java/com/bunq/sdk/model/generated/endpoint/PaymentApiObject.java index 6e85a357..57f447a0 100644 --- a/src/main/java/com/bunq/sdk/model/generated/endpoint/PaymentApiObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/endpoint/PaymentApiObject.java @@ -61,7 +61,7 @@ public class PaymentApiObject extends BunqModel { */ @Expose @SerializedName("id") - private Integer id; + private Long id; /** * The timestamp when the Payment was done. @@ -84,7 +84,7 @@ public class PaymentApiObject extends BunqModel { */ @Expose @SerializedName("monetary_account_id") - private Integer monetaryAccountId; + private Long monetaryAccountId; /** * The Amount transferred by the Payment. Will be negative for outgoing Payments and positive @@ -194,14 +194,14 @@ public class PaymentApiObject extends BunqModel { */ @Expose @SerializedName("batch_id") - private Integer batchId; + private Long batchId; /** * The id of the JobScheduled if the Payment was scheduled. */ @Expose @SerializedName("scheduled_id") - private Integer scheduledId; + private Long scheduledId; /** * A shipping Address provided with the Payment, currently unused. @@ -353,7 +353,7 @@ public PaymentApiObject(AmountObject amount, PointerObject counterpartyAlias, St * merchant. * @param allowBunqto Whether or not sending a bunq.to payment is allowed. */ - public static BunqResponse create(AmountObject amount, PointerObject counterpartyAlias, String description, Integer monetaryAccountId, List attachment, String merchantReference, Boolean allowBunqto, Map customHeaders) { + public static BunqResponse create(AmountObject amount, PointerObject counterpartyAlias, String description, Long monetaryAccountId, List attachment, String merchantReference, Boolean allowBunqto, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -374,42 +374,42 @@ public static BunqResponse create(AmountObject amount, PointerObject co return processForId(responseRaw); } - public static BunqResponse create() { + public static BunqResponse create() { return create(null, null, null, null, null, null, null, null); } - public static BunqResponse create(AmountObject amount) { + public static BunqResponse create(AmountObject amount) { return create(amount, null, null, null, null, null, null, null); } - public static BunqResponse create(AmountObject amount, PointerObject counterpartyAlias) { + public static BunqResponse create(AmountObject amount, PointerObject counterpartyAlias) { return create(amount, counterpartyAlias, null, null, null, null, null, null); } - public static BunqResponse create(AmountObject amount, PointerObject counterpartyAlias, String description) { + public static BunqResponse create(AmountObject amount, PointerObject counterpartyAlias, String description) { return create(amount, counterpartyAlias, description, null, null, null, null, null); } - public static BunqResponse create(AmountObject amount, PointerObject counterpartyAlias, String description, Integer monetaryAccountId) { + public static BunqResponse create(AmountObject amount, PointerObject counterpartyAlias, String description, Long monetaryAccountId) { return create(amount, counterpartyAlias, description, monetaryAccountId, null, null, null, null); } - public static BunqResponse create(AmountObject amount, PointerObject counterpartyAlias, String description, Integer monetaryAccountId, List attachment) { + public static BunqResponse create(AmountObject amount, PointerObject counterpartyAlias, String description, Long monetaryAccountId, List attachment) { return create(amount, counterpartyAlias, description, monetaryAccountId, attachment, null, null, null); } - public static BunqResponse create(AmountObject amount, PointerObject counterpartyAlias, String description, Integer monetaryAccountId, List attachment, String merchantReference) { + public static BunqResponse create(AmountObject amount, PointerObject counterpartyAlias, String description, Long monetaryAccountId, List attachment, String merchantReference) { return create(amount, counterpartyAlias, description, monetaryAccountId, attachment, merchantReference, null, null); } - public static BunqResponse create(AmountObject amount, PointerObject counterpartyAlias, String description, Integer monetaryAccountId, List attachment, String merchantReference, Boolean allowBunqto) { + public static BunqResponse create(AmountObject amount, PointerObject counterpartyAlias, String description, Long monetaryAccountId, List attachment, String merchantReference, Boolean allowBunqto) { return create(amount, counterpartyAlias, description, monetaryAccountId, attachment, merchantReference, allowBunqto, null); } /** * Get a specific previous Payment. */ - public static BunqResponse get(Integer paymentId, Integer monetaryAccountId, Map params, Map customHeaders) { + public static BunqResponse get(Long paymentId, Long monetaryAccountId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_READ, determineUserId(), determineMonetaryAccountId(monetaryAccountId), paymentId), params, customHeaders); @@ -420,22 +420,22 @@ public static BunqResponse get() { return get(null, null, null, null); } - public static BunqResponse get(Integer paymentId) { + public static BunqResponse get(Long paymentId) { return get(paymentId, null, null, null); } - public static BunqResponse get(Integer paymentId, Integer monetaryAccountId) { + public static BunqResponse get(Long paymentId, Long monetaryAccountId) { return get(paymentId, monetaryAccountId, null, null); } - public static BunqResponse get(Integer paymentId, Integer monetaryAccountId, Map params) { + public static BunqResponse get(Long paymentId, Long monetaryAccountId, Map params) { return get(paymentId, monetaryAccountId, params, null); } /** * Get a listing of all Payments performed on a given MonetaryAccount (incoming and outgoing). */ - public static BunqResponse> list(Integer monetaryAccountId, Map params, Map customHeaders) { + public static BunqResponse> list(Long monetaryAccountId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_LISTING, determineUserId(), determineMonetaryAccountId(monetaryAccountId)), params, customHeaders); @@ -446,22 +446,22 @@ public static BunqResponse> list() { return list(null, null, null); } - public static BunqResponse> list(Integer monetaryAccountId) { + public static BunqResponse> list(Long monetaryAccountId) { return list(monetaryAccountId, null, null); } - public static BunqResponse> list(Integer monetaryAccountId, Map params) { + public static BunqResponse> list(Long monetaryAccountId, Map params) { return list(monetaryAccountId, params, null); } /** * The id of the created Payment. */ - public Integer getId() { + public Long getId() { return this.id; } - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } @@ -492,11 +492,11 @@ public void setUpdated(String updated) { * The id of the MonetaryAccount the Payment was made to or from (depending on whether this is * an incoming or outgoing Payment). */ - public Integer getMonetaryAccountId() { + public Long getMonetaryAccountId() { return this.monetaryAccountId; } - public void setMonetaryAccountId(Integer monetaryAccountId) { + public void setMonetaryAccountId(Long monetaryAccountId) { this.monetaryAccountId = monetaryAccountId; } @@ -662,22 +662,22 @@ public void setMerchantReference(String merchantReference) { /** * The id of the PaymentBatch if this Payment was part of one. */ - public Integer getBatchId() { + public Long getBatchId() { return this.batchId; } - public void setBatchId(Integer batchId) { + public void setBatchId(Long batchId) { this.batchId = batchId; } /** * The id of the JobScheduled if the Payment was scheduled. */ - public Integer getScheduledId() { + public Long getScheduledId() { return this.scheduledId; } - public void setScheduledId(Integer scheduledId) { + public void setScheduledId(Long scheduledId) { this.scheduledId = scheduledId; } diff --git a/src/main/java/com/bunq/sdk/model/generated/endpoint/PaymentAutoAllocateApiObject.java b/src/main/java/com/bunq/sdk/model/generated/endpoint/PaymentAutoAllocateApiObject.java index 3c972b17..9b3454ee 100644 --- a/src/main/java/com/bunq/sdk/model/generated/endpoint/PaymentAutoAllocateApiObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/endpoint/PaymentAutoAllocateApiObject.java @@ -48,7 +48,7 @@ public class PaymentAutoAllocateApiObject extends BunqModel { */ @Expose @SerializedName("id") - private Integer id; + private Long id; /** * The timestamp when the PaymentAutoAllocate was created. @@ -111,7 +111,7 @@ public class PaymentAutoAllocateApiObject extends BunqModel { */ @Expose @SerializedName("payment_id_field_for_request") - private Integer paymentIdFieldForRequest; + private Long paymentIdFieldForRequest; /** * Whether a payment should be sorted ONCE or RECURRING. @@ -131,15 +131,15 @@ public PaymentAutoAllocateApiObject() { this(null, null, null); } - public PaymentAutoAllocateApiObject(Integer paymentId) { + public PaymentAutoAllocateApiObject(Long paymentId) { this(paymentId, null, null); } - public PaymentAutoAllocateApiObject(Integer paymentId, String type) { + public PaymentAutoAllocateApiObject(Long paymentId, String type) { this(paymentId, type, null); } - public PaymentAutoAllocateApiObject(Integer paymentId, String type, List definition) { + public PaymentAutoAllocateApiObject(Long paymentId, String type, List definition) { this.paymentIdFieldForRequest = paymentId; this.typeFieldForRequest = type; this.definitionFieldForRequest = definition; @@ -149,7 +149,7 @@ public PaymentAutoAllocateApiObject(Integer paymentId, String type, List create(Integer paymentId, String type, List definition, Integer monetaryAccountId, Map customHeaders) { + public static BunqResponse create(Long paymentId, String type, List definition, Long monetaryAccountId, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -167,29 +167,29 @@ public static BunqResponse create(Integer paymentId, String type, List< return processForId(responseRaw); } - public static BunqResponse create() { + public static BunqResponse create() { return create(null, null, null, null, null); } - public static BunqResponse create(Integer paymentId) { + public static BunqResponse create(Long paymentId) { return create(paymentId, null, null, null, null); } - public static BunqResponse create(Integer paymentId, String type) { + public static BunqResponse create(Long paymentId, String type) { return create(paymentId, type, null, null, null); } - public static BunqResponse create(Integer paymentId, String type, List definition) { + public static BunqResponse create(Long paymentId, String type, List definition) { return create(paymentId, type, definition, null, null); } - public static BunqResponse create(Integer paymentId, String type, List definition, Integer monetaryAccountId) { + public static BunqResponse create(Long paymentId, String type, List definition, Long monetaryAccountId) { return create(paymentId, type, definition, monetaryAccountId, null); } /** */ - public static BunqResponse get(Integer paymentAutoAllocateId, Integer monetaryAccountId, Map params, Map customHeaders) { + public static BunqResponse get(Long paymentAutoAllocateId, Long monetaryAccountId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_READ, determineUserId(), determineMonetaryAccountId(monetaryAccountId), paymentAutoAllocateId), params, customHeaders); @@ -200,21 +200,21 @@ public static BunqResponse get() { return get(null, null, null, null); } - public static BunqResponse get(Integer paymentAutoAllocateId) { + public static BunqResponse get(Long paymentAutoAllocateId) { return get(paymentAutoAllocateId, null, null, null); } - public static BunqResponse get(Integer paymentAutoAllocateId, Integer monetaryAccountId) { + public static BunqResponse get(Long paymentAutoAllocateId, Long monetaryAccountId) { return get(paymentAutoAllocateId, monetaryAccountId, null, null); } - public static BunqResponse get(Integer paymentAutoAllocateId, Integer monetaryAccountId, Map params) { + public static BunqResponse get(Long paymentAutoAllocateId, Long monetaryAccountId, Map params) { return get(paymentAutoAllocateId, monetaryAccountId, params, null); } /** */ - public static BunqResponse> list(Integer monetaryAccountId, Map params, Map customHeaders) { + public static BunqResponse> list(Long monetaryAccountId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_LISTING, determineUserId(), determineMonetaryAccountId(monetaryAccountId)), params, customHeaders); @@ -225,18 +225,18 @@ public static BunqResponse> list() { return list(null, null, null); } - public static BunqResponse> list(Integer monetaryAccountId) { + public static BunqResponse> list(Long monetaryAccountId) { return list(monetaryAccountId, null, null); } - public static BunqResponse> list(Integer monetaryAccountId, Map params) { + public static BunqResponse> list(Long monetaryAccountId, Map params) { return list(monetaryAccountId, params, null); } /** * @param definition The definition of how the money should be allocated. */ - public static BunqResponse update(Integer paymentAutoAllocateId, Integer monetaryAccountId, List definition, Map customHeaders) { + public static BunqResponse update(Long paymentAutoAllocateId, Long monetaryAccountId, List definition, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -252,43 +252,43 @@ public static BunqResponse update(Integer paymentAutoAllocateId, Intege return processForId(responseRaw); } - public static BunqResponse update(Integer paymentAutoAllocateId) { + public static BunqResponse update(Long paymentAutoAllocateId) { return update(paymentAutoAllocateId, null, null, null); } - public static BunqResponse update(Integer paymentAutoAllocateId, Integer monetaryAccountId) { + public static BunqResponse update(Long paymentAutoAllocateId, Long monetaryAccountId) { return update(paymentAutoAllocateId, monetaryAccountId, null, null); } - public static BunqResponse update(Integer paymentAutoAllocateId, Integer monetaryAccountId, List definition) { + public static BunqResponse update(Long paymentAutoAllocateId, Long monetaryAccountId, List definition) { return update(paymentAutoAllocateId, monetaryAccountId, definition, null); } /** */ - public static BunqResponse delete(Integer paymentAutoAllocateId, Integer monetaryAccountId, Map customHeaders) { + public static BunqResponse delete(Long paymentAutoAllocateId, Long monetaryAccountId, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.delete(String.format(ENDPOINT_URL_DELETE, determineUserId(), determineMonetaryAccountId(monetaryAccountId), paymentAutoAllocateId), customHeaders); return new BunqResponse<>(null, responseRaw.getHeaders()); } - public static BunqResponse delete(Integer paymentAutoAllocateId) { + public static BunqResponse delete(Long paymentAutoAllocateId) { return delete(paymentAutoAllocateId, null, null); } - public static BunqResponse delete(Integer paymentAutoAllocateId, Integer monetaryAccountId) { + public static BunqResponse delete(Long paymentAutoAllocateId, Long monetaryAccountId) { return delete(paymentAutoAllocateId, monetaryAccountId, null); } /** * The id of the PaymentAutoAllocate. */ - public Integer getId() { + public Long getId() { return this.id; } - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } diff --git a/src/main/java/com/bunq/sdk/model/generated/endpoint/PaymentAutoAllocateDefinitionApiObject.java b/src/main/java/com/bunq/sdk/model/generated/endpoint/PaymentAutoAllocateDefinitionApiObject.java index 24c98f53..1efd6e1e 100644 --- a/src/main/java/com/bunq/sdk/model/generated/endpoint/PaymentAutoAllocateDefinitionApiObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/endpoint/PaymentAutoAllocateDefinitionApiObject.java @@ -47,7 +47,7 @@ public class PaymentAutoAllocateDefinitionApiObject extends BunqModel { */ @Expose @SerializedName("id") - private Integer id; + private Long id; /** * The timestamp when the PaymentAutoAllocateDefinition was created. @@ -154,7 +154,7 @@ public PaymentAutoAllocateDefinitionApiObject(String type, PointerObject counter this.fractionFieldForRequest = fraction; } /** */ - public static BunqResponse> list(Integer paymentAutoAllocateId, Integer monetaryAccountId, Map params, Map customHeaders) { + public static BunqResponse> list(Long paymentAutoAllocateId, Long monetaryAccountId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_LISTING, determineUserId(), determineMonetaryAccountId(monetaryAccountId), paymentAutoAllocateId), params, customHeaders); @@ -165,26 +165,26 @@ public static BunqResponse> list() return list(null, null, null, null); } - public static BunqResponse> list(Integer paymentAutoAllocateId) { + public static BunqResponse> list(Long paymentAutoAllocateId) { return list(paymentAutoAllocateId, null, null, null); } - public static BunqResponse> list(Integer paymentAutoAllocateId, Integer monetaryAccountId) { + public static BunqResponse> list(Long paymentAutoAllocateId, Long monetaryAccountId) { return list(paymentAutoAllocateId, monetaryAccountId, null, null); } - public static BunqResponse> list(Integer paymentAutoAllocateId, Integer monetaryAccountId, Map params) { + public static BunqResponse> list(Long paymentAutoAllocateId, Long monetaryAccountId, Map params) { return list(paymentAutoAllocateId, monetaryAccountId, params, null); } /** * The id of the PaymentAutoAllocateDefinition. */ - public Integer getId() { + public Long getId() { return this.id; } - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } diff --git a/src/main/java/com/bunq/sdk/model/generated/endpoint/PaymentAutoAllocateInstanceApiObject.java b/src/main/java/com/bunq/sdk/model/generated/endpoint/PaymentAutoAllocateInstanceApiObject.java index 4d7956a9..aa491719 100644 --- a/src/main/java/com/bunq/sdk/model/generated/endpoint/PaymentAutoAllocateInstanceApiObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/endpoint/PaymentAutoAllocateInstanceApiObject.java @@ -38,7 +38,7 @@ public class PaymentAutoAllocateInstanceApiObject extends BunqModel { */ @Expose @SerializedName("id") - private Integer id; + private Long id; /** * The timestamp when the PaymentAutoAllocateInstance was created. @@ -59,7 +59,7 @@ public class PaymentAutoAllocateInstanceApiObject extends BunqModel { */ @Expose @SerializedName("payment_auto_allocate_id") - private Integer paymentAutoAllocateId; + private Long paymentAutoAllocateId; /** * The status of the payment auto allocate instance. SUCCEEDED or FAILED. @@ -87,7 +87,7 @@ public class PaymentAutoAllocateInstanceApiObject extends BunqModel { */ @Expose @SerializedName("payment_id") - private Integer paymentId; + private Long paymentId; /** * All Ginmon transaction orders executed with this instance. @@ -97,8 +97,15 @@ public class PaymentAutoAllocateInstanceApiObject extends BunqModel { private List allGinmonTransactionOrder; /** + * All Kraken transactions executed with this instance. */ - public static BunqResponse> list(Integer paymentAutoAllocateId, Integer monetaryAccountId, Map params, Map customHeaders) { + @Expose + @SerializedName("all_kraken_transaction") + private List allKrakenTransaction; + + /** + */ + public static BunqResponse> list(Long paymentAutoAllocateId, Long monetaryAccountId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_LISTING, determineUserId(), determineMonetaryAccountId(monetaryAccountId), paymentAutoAllocateId), params, customHeaders); @@ -109,21 +116,21 @@ public static BunqResponse> list() { return list(null, null, null, null); } - public static BunqResponse> list(Integer paymentAutoAllocateId) { + public static BunqResponse> list(Long paymentAutoAllocateId) { return list(paymentAutoAllocateId, null, null, null); } - public static BunqResponse> list(Integer paymentAutoAllocateId, Integer monetaryAccountId) { + public static BunqResponse> list(Long paymentAutoAllocateId, Long monetaryAccountId) { return list(paymentAutoAllocateId, monetaryAccountId, null, null); } - public static BunqResponse> list(Integer paymentAutoAllocateId, Integer monetaryAccountId, Map params) { + public static BunqResponse> list(Long paymentAutoAllocateId, Long monetaryAccountId, Map params) { return list(paymentAutoAllocateId, monetaryAccountId, params, null); } /** */ - public static BunqResponse get(Integer paymentAutoAllocateId, Integer paymentAutoAllocateInstanceId, Integer monetaryAccountId, Map params, Map customHeaders) { + public static BunqResponse get(Long paymentAutoAllocateId, Long paymentAutoAllocateInstanceId, Long monetaryAccountId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_READ, determineUserId(), determineMonetaryAccountId(monetaryAccountId), paymentAutoAllocateId, paymentAutoAllocateInstanceId), params, customHeaders); @@ -134,30 +141,30 @@ public static BunqResponse get() { return get(null, null, null, null, null); } - public static BunqResponse get(Integer paymentAutoAllocateId) { + public static BunqResponse get(Long paymentAutoAllocateId) { return get(paymentAutoAllocateId, null, null, null, null); } - public static BunqResponse get(Integer paymentAutoAllocateId, Integer paymentAutoAllocateInstanceId) { + public static BunqResponse get(Long paymentAutoAllocateId, Long paymentAutoAllocateInstanceId) { return get(paymentAutoAllocateId, paymentAutoAllocateInstanceId, null, null, null); } - public static BunqResponse get(Integer paymentAutoAllocateId, Integer paymentAutoAllocateInstanceId, Integer monetaryAccountId) { + public static BunqResponse get(Long paymentAutoAllocateId, Long paymentAutoAllocateInstanceId, Long monetaryAccountId) { return get(paymentAutoAllocateId, paymentAutoAllocateInstanceId, monetaryAccountId, null, null); } - public static BunqResponse get(Integer paymentAutoAllocateId, Integer paymentAutoAllocateInstanceId, Integer monetaryAccountId, Map params) { + public static BunqResponse get(Long paymentAutoAllocateId, Long paymentAutoAllocateInstanceId, Long monetaryAccountId, Map params) { return get(paymentAutoAllocateId, paymentAutoAllocateInstanceId, monetaryAccountId, params, null); } /** * The id of the PaymentAutoAllocateInstance. */ - public Integer getId() { + public Long getId() { return this.id; } - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } @@ -186,11 +193,11 @@ public void setUpdated(String updated) { /** * The ID of the payment auto allocate this instance belongs to. */ - public Integer getPaymentAutoAllocateId() { + public Long getPaymentAutoAllocateId() { return this.paymentAutoAllocateId; } - public void setPaymentAutoAllocateId(Integer paymentAutoAllocateId) { + public void setPaymentAutoAllocateId(Long paymentAutoAllocateId) { this.paymentAutoAllocateId = paymentAutoAllocateId; } @@ -230,11 +237,11 @@ public void setPaymentBatch(PaymentBatchApiObject paymentBatch) { /** * The ID of the payment that triggered the allocating of the payments. */ - public Integer getPaymentId() { + public Long getPaymentId() { return this.paymentId; } - public void setPaymentId(Integer paymentId) { + public void setPaymentId(Long paymentId) { this.paymentId = paymentId; } @@ -249,6 +256,17 @@ public void setAllGinmonTransactionOrder(List allGin this.allGinmonTransactionOrder = allGinmonTransactionOrder; } + /** + * All Kraken transactions executed with this instance. + */ + public List getAllKrakenTransaction() { + return this.allKrakenTransaction; + } + + public void setAllKrakenTransaction(List allKrakenTransaction) { + this.allKrakenTransaction = allKrakenTransaction; + } + /** */ public boolean isAllFieldNull() { @@ -288,6 +306,10 @@ public boolean isAllFieldNull() { return false; } + if (this.allKrakenTransaction != null) { + return false; + } + return true; } diff --git a/src/main/java/com/bunq/sdk/model/generated/endpoint/PaymentBatchApiObject.java b/src/main/java/com/bunq/sdk/model/generated/endpoint/PaymentBatchApiObject.java index 08d74d03..b08f579a 100644 --- a/src/main/java/com/bunq/sdk/model/generated/endpoint/PaymentBatchApiObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/endpoint/PaymentBatchApiObject.java @@ -6,6 +6,8 @@ import com.bunq.sdk.http.BunqResponseRaw; import com.bunq.sdk.model.core.BunqModel; import com.bunq.sdk.model.core.MonetaryAccountReference; +import com.bunq.sdk.model.generated.object.AmountObject; +import com.bunq.sdk.model.generated.object.LabelMonetaryAccountObject; import com.google.gson.annotations.Expose; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; @@ -33,12 +35,63 @@ public class PaymentBatchApiObject extends BunqModel { * Field constants. */ public static final String FIELD_PAYMENTS = "payments"; + public static final String FIELD_EXECUTION_TYPE = "execution_type"; + public static final String FIELD_STATUS = "status"; /** * Object type. */ protected static final String OBJECT_TYPE_GET = "PaymentBatch"; + /** + * The ID of the monetary account that this payment batch belongs to. + */ + @Expose + @SerializedName("monetary_account_id") + private Long monetaryAccountId; + + /** + * Whether the payment batch should be executed synchronously or asynchronously. + */ + @Expose + @SerializedName("execution_type") + private String executionType; + + /** + * The status of the payment batch. + */ + @Expose + @SerializedName("status") + private String status; + + /** + * The label to display for the monetary account. + */ + @Expose + @SerializedName("label") + private LabelMonetaryAccountObject label; + + /** + * The total amount of the payment batch. + */ + @Expose + @SerializedName("amount_total") + private AmountObject amountTotal; + + /** + * The total amount of the successful payments in the batch. + */ + @Expose + @SerializedName("amount_successful") + private AmountObject amountSuccessful; + + /** + * The ID of the latest event for the payment batch. + */ + @Expose + @SerializedName("event_id") + private Long eventId; + /** * The list of mutations that were made. */ @@ -46,6 +99,13 @@ public class PaymentBatchApiObject extends BunqModel { @SerializedName("payments") private List payments; + /** + * The entries that are part of this batch. + */ + @Expose + @SerializedName("entries") + private List entries; + /** * The list of payments we want to send in a single batch. */ @@ -53,18 +113,45 @@ public class PaymentBatchApiObject extends BunqModel { @SerializedName("payments_field_for_request") private List paymentsFieldForRequest; + /** + * Whether the payment batch should be executed synchronously or asynchronously. + */ + @Expose + @SerializedName("execution_type_field_for_request") + private String executionTypeFieldForRequest; + + /** + * The status of the payment batch, used to retry failed payments. + */ + @Expose + @SerializedName("status_field_for_request") + private String statusFieldForRequest; + public PaymentBatchApiObject() { - this(null); + this(null, null, null); } public PaymentBatchApiObject(List payments) { + this(payments, null, null); + } + + public PaymentBatchApiObject(List payments, String executionType) { + this(payments, executionType, null); + } + + public PaymentBatchApiObject(List payments, String executionType, String status) { this.paymentsFieldForRequest = payments; + this.executionTypeFieldForRequest = executionType; + this.statusFieldForRequest = status; } /** * Create a payment batch by sending an array of single payment objects, that will become part * of the batch. * @param payments The list of payments we want to send in a single batch. + * @param executionType Whether the payment batch should be executed synchronously or + * asynchronously. + * @param status The status of the payment batch, used to retry failed payments. */ - public static BunqResponse create(List payments, Integer monetaryAccountId, Map customHeaders) { + public static BunqResponse create(List payments, Long monetaryAccountId, String executionType, String status, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -73,6 +160,8 @@ public static BunqResponse create(List payments, Inte HashMap requestMap = new HashMap<>(); requestMap.put(FIELD_PAYMENTS, payments); +requestMap.put(FIELD_EXECUTION_TYPE, executionType); +requestMap.put(FIELD_STATUS, status); byte[] requestBytes = determineAllRequestByte(requestMap); BunqResponseRaw responseRaw = apiClient.post(String.format(ENDPOINT_URL_CREATE, determineUserId(), determineMonetaryAccountId(monetaryAccountId)), requestBytes, customHeaders); @@ -80,22 +169,31 @@ public static BunqResponse create(List payments, Inte return processForId(responseRaw); } - public static BunqResponse create() { - return create(null, null, null); + public static BunqResponse create() { + return create(null, null, null, null, null); + } + + public static BunqResponse create(List payments) { + return create(payments, null, null, null, null); } - public static BunqResponse create(List payments) { - return create(payments, null, null); + public static BunqResponse create(List payments, Long monetaryAccountId) { + return create(payments, monetaryAccountId, null, null, null); } - public static BunqResponse create(List payments, Integer monetaryAccountId) { - return create(payments, monetaryAccountId, null); + public static BunqResponse create(List payments, Long monetaryAccountId, String executionType) { + return create(payments, monetaryAccountId, executionType, null, null); + } + + public static BunqResponse create(List payments, Long monetaryAccountId, String executionType, String status) { + return create(payments, monetaryAccountId, executionType, status, null); } /** * Revoke a bunq.to payment batch. The status of all the payments will be set to REVOKED. + * @param status The status of the payment batch, used to retry failed payments. */ - public static BunqResponse update(Integer paymentBatchId, Integer monetaryAccountId, Map customHeaders) { + public static BunqResponse update(Long paymentBatchId, Long monetaryAccountId, String status, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -103,6 +201,7 @@ public static BunqResponse update(Integer paymentBatchId, Integer monet } HashMap requestMap = new HashMap<>(); +requestMap.put(FIELD_STATUS, status); byte[] requestBytes = determineAllRequestByte(requestMap); BunqResponseRaw responseRaw = apiClient.put(String.format(ENDPOINT_URL_UPDATE, determineUserId(), determineMonetaryAccountId(monetaryAccountId), paymentBatchId), requestBytes, customHeaders); @@ -110,18 +209,22 @@ public static BunqResponse update(Integer paymentBatchId, Integer monet return processForId(responseRaw); } - public static BunqResponse update(Integer paymentBatchId) { - return update(paymentBatchId, null, null); + public static BunqResponse update(Long paymentBatchId) { + return update(paymentBatchId, null, null, null); + } + + public static BunqResponse update(Long paymentBatchId, Long monetaryAccountId) { + return update(paymentBatchId, monetaryAccountId, null, null); } - public static BunqResponse update(Integer paymentBatchId, Integer monetaryAccountId) { - return update(paymentBatchId, monetaryAccountId, null); + public static BunqResponse update(Long paymentBatchId, Long monetaryAccountId, String status) { + return update(paymentBatchId, monetaryAccountId, status, null); } /** * Return the details of a specific payment batch. */ - public static BunqResponse get(Integer paymentBatchId, Integer monetaryAccountId, Map params, Map customHeaders) { + public static BunqResponse get(Long paymentBatchId, Long monetaryAccountId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_READ, determineUserId(), determineMonetaryAccountId(monetaryAccountId), paymentBatchId), params, customHeaders); @@ -132,22 +235,22 @@ public static BunqResponse get() { return get(null, null, null, null); } - public static BunqResponse get(Integer paymentBatchId) { + public static BunqResponse get(Long paymentBatchId) { return get(paymentBatchId, null, null, null); } - public static BunqResponse get(Integer paymentBatchId, Integer monetaryAccountId) { + public static BunqResponse get(Long paymentBatchId, Long monetaryAccountId) { return get(paymentBatchId, monetaryAccountId, null, null); } - public static BunqResponse get(Integer paymentBatchId, Integer monetaryAccountId, Map params) { + public static BunqResponse get(Long paymentBatchId, Long monetaryAccountId, Map params) { return get(paymentBatchId, monetaryAccountId, params, null); } /** * Return all the payment batches for a monetary account. */ - public static BunqResponse> list(Integer monetaryAccountId, Map params, Map customHeaders) { + public static BunqResponse> list(Long monetaryAccountId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_LISTING, determineUserId(), determineMonetaryAccountId(monetaryAccountId)), params, customHeaders); @@ -158,14 +261,91 @@ public static BunqResponse> list() { return list(null, null, null); } - public static BunqResponse> list(Integer monetaryAccountId) { + public static BunqResponse> list(Long monetaryAccountId) { return list(monetaryAccountId, null, null); } - public static BunqResponse> list(Integer monetaryAccountId, Map params) { + public static BunqResponse> list(Long monetaryAccountId, Map params) { return list(monetaryAccountId, params, null); } + /** + * The ID of the monetary account that this payment batch belongs to. + */ + public Long getMonetaryAccountId() { + return this.monetaryAccountId; + } + + public void setMonetaryAccountId(Long monetaryAccountId) { + this.monetaryAccountId = monetaryAccountId; + } + + /** + * Whether the payment batch should be executed synchronously or asynchronously. + */ + public String getExecutionType() { + return this.executionType; + } + + public void setExecutionType(String executionType) { + this.executionType = executionType; + } + + /** + * The status of the payment batch. + */ + public String getStatus() { + return this.status; + } + + public void setStatus(String status) { + this.status = status; + } + + /** + * The label to display for the monetary account. + */ + public LabelMonetaryAccountObject getLabel() { + return this.label; + } + + public void setLabel(LabelMonetaryAccountObject label) { + this.label = label; + } + + /** + * The total amount of the payment batch. + */ + public AmountObject getAmountTotal() { + return this.amountTotal; + } + + public void setAmountTotal(AmountObject amountTotal) { + this.amountTotal = amountTotal; + } + + /** + * The total amount of the successful payments in the batch. + */ + public AmountObject getAmountSuccessful() { + return this.amountSuccessful; + } + + public void setAmountSuccessful(AmountObject amountSuccessful) { + this.amountSuccessful = amountSuccessful; + } + + /** + * The ID of the latest event for the payment batch. + */ + public Long getEventId() { + return this.eventId; + } + + public void setEventId(Long eventId) { + this.eventId = eventId; + } + /** * The list of mutations that were made. */ @@ -177,13 +357,56 @@ public void setPayments(List payments) { this.payments = payments; } + /** + * The entries that are part of this batch. + */ + public List getEntries() { + return this.entries; + } + + public void setEntries(List entries) { + this.entries = entries; + } + /** */ public boolean isAllFieldNull() { + if (this.monetaryAccountId != null) { + return false; + } + + if (this.executionType != null) { + return false; + } + + if (this.status != null) { + return false; + } + + if (this.label != null) { + return false; + } + + if (this.amountTotal != null) { + return false; + } + + if (this.amountSuccessful != null) { + return false; + } + + if (this.eventId != null) { + return false; + } + if (this.payments != null) { return false; } + if (this.entries != null) { + return false; + } + return true; } diff --git a/src/main/java/com/bunq/sdk/model/generated/endpoint/PaymentServiceProviderCredentialApiObject.java b/src/main/java/com/bunq/sdk/model/generated/endpoint/PaymentServiceProviderCredentialApiObject.java index 3e5a9471..a1a9d67c 100644 --- a/src/main/java/com/bunq/sdk/model/generated/endpoint/PaymentServiceProviderCredentialApiObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/endpoint/PaymentServiceProviderCredentialApiObject.java @@ -45,7 +45,7 @@ public class PaymentServiceProviderCredentialApiObject extends BunqModel { */ @Expose @SerializedName("id") - private Integer id; + private Long id; /** * The timestamp of the credential object's creation. @@ -130,7 +130,7 @@ public PaymentServiceProviderCredentialApiObject(String clientPaymentServiceProv this.clientPublicKeySignatureFieldForRequest = clientPublicKeySignature; } /** */ - public static BunqResponse get(Integer paymentServiceProviderCredentialId, Map params, Map customHeaders) { + public static BunqResponse get(Long paymentServiceProviderCredentialId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_READ, paymentServiceProviderCredentialId), params, customHeaders); @@ -141,11 +141,11 @@ public static BunqResponse get() { return get(null, null, null); } - public static BunqResponse get(Integer paymentServiceProviderCredentialId) { + public static BunqResponse get(Long paymentServiceProviderCredentialId) { return get(paymentServiceProviderCredentialId, null, null); } - public static BunqResponse get(Integer paymentServiceProviderCredentialId, Map params) { + public static BunqResponse get(Long paymentServiceProviderCredentialId, Map params) { return get(paymentServiceProviderCredentialId, params, null); } @@ -158,7 +158,7 @@ public static BunqResponse get(Intege * during installation and with the installation token appended as a nonce. Signed with the * private key belonging to the QSEAL certificate. */ - public static BunqResponse create(String clientPaymentServiceProviderCertificate, String clientPaymentServiceProviderCertificateChain, String clientPublicKeySignature, Map customHeaders) { + public static BunqResponse create(String clientPaymentServiceProviderCertificate, String clientPaymentServiceProviderCertificateChain, String clientPublicKeySignature, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -176,30 +176,30 @@ public static BunqResponse create(String clientPaymentServiceProviderCe return processForId(responseRaw); } - public static BunqResponse create() { + public static BunqResponse create() { return create(null, null, null, null); } - public static BunqResponse create(String clientPaymentServiceProviderCertificate) { + public static BunqResponse create(String clientPaymentServiceProviderCertificate) { return create(clientPaymentServiceProviderCertificate, null, null, null); } - public static BunqResponse create(String clientPaymentServiceProviderCertificate, String clientPaymentServiceProviderCertificateChain) { + public static BunqResponse create(String clientPaymentServiceProviderCertificate, String clientPaymentServiceProviderCertificateChain) { return create(clientPaymentServiceProviderCertificate, clientPaymentServiceProviderCertificateChain, null, null); } - public static BunqResponse create(String clientPaymentServiceProviderCertificate, String clientPaymentServiceProviderCertificateChain, String clientPublicKeySignature) { + public static BunqResponse create(String clientPaymentServiceProviderCertificate, String clientPaymentServiceProviderCertificateChain, String clientPublicKeySignature) { return create(clientPaymentServiceProviderCertificate, clientPaymentServiceProviderCertificateChain, clientPublicKeySignature, null); } /** * The id of the credential. */ - public Integer getId() { + public Long getId() { return this.id; } - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } diff --git a/src/main/java/com/bunq/sdk/model/generated/endpoint/PaymentServiceProviderDraftPaymentApiObject.java b/src/main/java/com/bunq/sdk/model/generated/endpoint/PaymentServiceProviderDraftPaymentApiObject.java index 58ca657a..4a0bde71 100644 --- a/src/main/java/com/bunq/sdk/model/generated/endpoint/PaymentServiceProviderDraftPaymentApiObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/endpoint/PaymentServiceProviderDraftPaymentApiObject.java @@ -169,7 +169,7 @@ public PaymentServiceProviderDraftPaymentApiObject(String senderIban, String cou * @param status The new status of the Draft Payment. Can only be set to REJECTED or CANCELLED * by update. */ - public static BunqResponse create(String senderIban, String counterpartyIban, String counterpartyName, String description, AmountObject amount, String senderName, String status, Map customHeaders) { + public static BunqResponse create(String senderIban, String counterpartyIban, String counterpartyName, String description, AmountObject amount, String senderName, String status, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -191,35 +191,35 @@ public static BunqResponse create(String senderIban, String counterpart return processForId(responseRaw); } - public static BunqResponse create() { + public static BunqResponse create() { return create(null, null, null, null, null, null, null, null); } - public static BunqResponse create(String senderIban) { + public static BunqResponse create(String senderIban) { return create(senderIban, null, null, null, null, null, null, null); } - public static BunqResponse create(String senderIban, String counterpartyIban) { + public static BunqResponse create(String senderIban, String counterpartyIban) { return create(senderIban, counterpartyIban, null, null, null, null, null, null); } - public static BunqResponse create(String senderIban, String counterpartyIban, String counterpartyName) { + public static BunqResponse create(String senderIban, String counterpartyIban, String counterpartyName) { return create(senderIban, counterpartyIban, counterpartyName, null, null, null, null, null); } - public static BunqResponse create(String senderIban, String counterpartyIban, String counterpartyName, String description) { + public static BunqResponse create(String senderIban, String counterpartyIban, String counterpartyName, String description) { return create(senderIban, counterpartyIban, counterpartyName, description, null, null, null, null); } - public static BunqResponse create(String senderIban, String counterpartyIban, String counterpartyName, String description, AmountObject amount) { + public static BunqResponse create(String senderIban, String counterpartyIban, String counterpartyName, String description, AmountObject amount) { return create(senderIban, counterpartyIban, counterpartyName, description, amount, null, null, null); } - public static BunqResponse create(String senderIban, String counterpartyIban, String counterpartyName, String description, AmountObject amount, String senderName) { + public static BunqResponse create(String senderIban, String counterpartyIban, String counterpartyName, String description, AmountObject amount, String senderName) { return create(senderIban, counterpartyIban, counterpartyName, description, amount, senderName, null, null); } - public static BunqResponse create(String senderIban, String counterpartyIban, String counterpartyName, String description, AmountObject amount, String senderName, String status) { + public static BunqResponse create(String senderIban, String counterpartyIban, String counterpartyName, String description, AmountObject amount, String senderName, String status) { return create(senderIban, counterpartyIban, counterpartyName, description, amount, senderName, status, null); } @@ -227,7 +227,7 @@ public static BunqResponse create(String senderIban, String counterpart * @param status The new status of the Draft Payment. Can only be set to REJECTED or CANCELLED * by update. */ - public static BunqResponse update(Integer paymentServiceProviderDraftPaymentId, String status, Map customHeaders) { + public static BunqResponse update(Long paymentServiceProviderDraftPaymentId, String status, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -243,11 +243,11 @@ public static BunqResponse update(Integer paymentServiceProviderDraftPa return processForId(responseRaw); } - public static BunqResponse update(Integer paymentServiceProviderDraftPaymentId) { + public static BunqResponse update(Long paymentServiceProviderDraftPaymentId) { return update(paymentServiceProviderDraftPaymentId, null, null); } - public static BunqResponse update(Integer paymentServiceProviderDraftPaymentId, String status) { + public static BunqResponse update(Long paymentServiceProviderDraftPaymentId, String status) { return update(paymentServiceProviderDraftPaymentId, status, null); } @@ -270,7 +270,7 @@ public static BunqResponse> li /** */ - public static BunqResponse get(Integer paymentServiceProviderDraftPaymentId, Map params, Map customHeaders) { + public static BunqResponse get(Long paymentServiceProviderDraftPaymentId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_READ, determineUserId(), paymentServiceProviderDraftPaymentId), params, customHeaders); @@ -281,11 +281,11 @@ public static BunqResponse get() { return get(null, null, null); } - public static BunqResponse get(Integer paymentServiceProviderDraftPaymentId) { + public static BunqResponse get(Long paymentServiceProviderDraftPaymentId) { return get(paymentServiceProviderDraftPaymentId, null, null); } - public static BunqResponse get(Integer paymentServiceProviderDraftPaymentId, Map params) { + public static BunqResponse get(Long paymentServiceProviderDraftPaymentId, Map params) { return get(paymentServiceProviderDraftPaymentId, params, null); } diff --git a/src/main/java/com/bunq/sdk/model/generated/endpoint/PaymentServiceProviderIssuerTransactionApiObject.java b/src/main/java/com/bunq/sdk/model/generated/endpoint/PaymentServiceProviderIssuerTransactionApiObject.java index 1f98a2cb..11a8b433 100644 --- a/src/main/java/com/bunq/sdk/model/generated/endpoint/PaymentServiceProviderIssuerTransactionApiObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/endpoint/PaymentServiceProviderIssuerTransactionApiObject.java @@ -52,7 +52,7 @@ public class PaymentServiceProviderIssuerTransactionApiObject extends BunqModel */ @Expose @SerializedName("id") - private Integer id; + private Long id; /** * The time this transaction was created. @@ -207,7 +207,7 @@ public PaymentServiceProviderIssuerTransactionApiObject(PointerObject counterpar * @param timeExpiry The (optional) expiration time of the transaction. Defaults to 10 minutes. * @param status The status of the transaction. Can only be used for cancelling the transaction. */ - public static BunqResponse create(PointerObject counterpartyAlias, AmountObject amount, String description, String urlRedirect, String timeExpiry, String status, Map customHeaders) { + public static BunqResponse create(PointerObject counterpartyAlias, AmountObject amount, String description, String urlRedirect, String timeExpiry, String status, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -228,37 +228,37 @@ public static BunqResponse create(PointerObject counterpartyAlias, Amou return processForId(responseRaw); } - public static BunqResponse create() { + public static BunqResponse create() { return create(null, null, null, null, null, null, null); } - public static BunqResponse create(PointerObject counterpartyAlias) { + public static BunqResponse create(PointerObject counterpartyAlias) { return create(counterpartyAlias, null, null, null, null, null, null); } - public static BunqResponse create(PointerObject counterpartyAlias, AmountObject amount) { + public static BunqResponse create(PointerObject counterpartyAlias, AmountObject amount) { return create(counterpartyAlias, amount, null, null, null, null, null); } - public static BunqResponse create(PointerObject counterpartyAlias, AmountObject amount, String description) { + public static BunqResponse create(PointerObject counterpartyAlias, AmountObject amount, String description) { return create(counterpartyAlias, amount, description, null, null, null, null); } - public static BunqResponse create(PointerObject counterpartyAlias, AmountObject amount, String description, String urlRedirect) { + public static BunqResponse create(PointerObject counterpartyAlias, AmountObject amount, String description, String urlRedirect) { return create(counterpartyAlias, amount, description, urlRedirect, null, null, null); } - public static BunqResponse create(PointerObject counterpartyAlias, AmountObject amount, String description, String urlRedirect, String timeExpiry) { + public static BunqResponse create(PointerObject counterpartyAlias, AmountObject amount, String description, String urlRedirect, String timeExpiry) { return create(counterpartyAlias, amount, description, urlRedirect, timeExpiry, null, null); } - public static BunqResponse create(PointerObject counterpartyAlias, AmountObject amount, String description, String urlRedirect, String timeExpiry, String status) { + public static BunqResponse create(PointerObject counterpartyAlias, AmountObject amount, String description, String urlRedirect, String timeExpiry, String status) { return create(counterpartyAlias, amount, description, urlRedirect, timeExpiry, status, null); } /** */ - public static BunqResponse get(Integer paymentServiceProviderIssuerTransactionId, Map params, Map customHeaders) { + public static BunqResponse get(Long paymentServiceProviderIssuerTransactionId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_READ, determineUserId(), paymentServiceProviderIssuerTransactionId), params, customHeaders); @@ -269,18 +269,18 @@ public static BunqResponse get return get(null, null, null); } - public static BunqResponse get(Integer paymentServiceProviderIssuerTransactionId) { + public static BunqResponse get(Long paymentServiceProviderIssuerTransactionId) { return get(paymentServiceProviderIssuerTransactionId, null, null); } - public static BunqResponse get(Integer paymentServiceProviderIssuerTransactionId, Map params) { + public static BunqResponse get(Long paymentServiceProviderIssuerTransactionId, Map params) { return get(paymentServiceProviderIssuerTransactionId, params, null); } /** * @param status The status of the transaction. Can only be used for cancelling the transaction. */ - public static BunqResponse update(Integer paymentServiceProviderIssuerTransactionId, String status, Map customHeaders) { + public static BunqResponse update(Long paymentServiceProviderIssuerTransactionId, String status, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -296,11 +296,11 @@ public static BunqResponse update(Integer paymentServiceProviderIssuerT return processForId(responseRaw); } - public static BunqResponse update(Integer paymentServiceProviderIssuerTransactionId) { + public static BunqResponse update(Long paymentServiceProviderIssuerTransactionId) { return update(paymentServiceProviderIssuerTransactionId, null, null); } - public static BunqResponse update(Integer paymentServiceProviderIssuerTransactionId, String status) { + public static BunqResponse update(Long paymentServiceProviderIssuerTransactionId, String status) { return update(paymentServiceProviderIssuerTransactionId, status, null); } @@ -324,11 +324,11 @@ public static BunqResponse get(Integer credentialPasswordIpId, Integer permittedIpId, Map params, Map customHeaders) { + public static BunqResponse get(Long credentialPasswordIpId, Long permittedIpId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_READ, determineUserId(), credentialPasswordIpId, permittedIpId), params, customHeaders); @@ -94,15 +94,15 @@ public static BunqResponse get() { return get(null, null, null, null); } - public static BunqResponse get(Integer credentialPasswordIpId) { + public static BunqResponse get(Long credentialPasswordIpId) { return get(credentialPasswordIpId, null, null, null); } - public static BunqResponse get(Integer credentialPasswordIpId, Integer permittedIpId) { + public static BunqResponse get(Long credentialPasswordIpId, Long permittedIpId) { return get(credentialPasswordIpId, permittedIpId, null, null); } - public static BunqResponse get(Integer credentialPasswordIpId, Integer permittedIpId, Map params) { + public static BunqResponse get(Long credentialPasswordIpId, Long permittedIpId, Map params) { return get(credentialPasswordIpId, permittedIpId, params, null); } @@ -111,7 +111,7 @@ public static BunqResponse get(Integer credentialPasswordI * @param status The status of the IP. May be "ACTIVE" or "INACTIVE". It is only possible to * make requests from "ACTIVE" IP addresses. Only "ACTIVE" IPs will be billed. */ - public static BunqResponse create(Integer credentialPasswordIpId, String ip, String status, Map customHeaders) { + public static BunqResponse create(Long credentialPasswordIpId, String ip, String status, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -128,25 +128,25 @@ public static BunqResponse create(Integer credentialPasswordIpId, Strin return processForId(responseRaw); } - public static BunqResponse create() { + public static BunqResponse create() { return create(null, null, null, null); } - public static BunqResponse create(Integer credentialPasswordIpId) { + public static BunqResponse create(Long credentialPasswordIpId) { return create(credentialPasswordIpId, null, null, null); } - public static BunqResponse create(Integer credentialPasswordIpId, String ip) { + public static BunqResponse create(Long credentialPasswordIpId, String ip) { return create(credentialPasswordIpId, ip, null, null); } - public static BunqResponse create(Integer credentialPasswordIpId, String ip, String status) { + public static BunqResponse create(Long credentialPasswordIpId, String ip, String status) { return create(credentialPasswordIpId, ip, status, null); } /** */ - public static BunqResponse> list(Integer credentialPasswordIpId, Map params, Map customHeaders) { + public static BunqResponse> list(Long credentialPasswordIpId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_LISTING, determineUserId(), credentialPasswordIpId), params, customHeaders); @@ -157,11 +157,11 @@ public static BunqResponse> list() { return list(null, null, null); } - public static BunqResponse> list(Integer credentialPasswordIpId) { + public static BunqResponse> list(Long credentialPasswordIpId) { return list(credentialPasswordIpId, null, null); } - public static BunqResponse> list(Integer credentialPasswordIpId, Map params) { + public static BunqResponse> list(Long credentialPasswordIpId, Map params) { return list(credentialPasswordIpId, params, null); } @@ -169,7 +169,7 @@ public static BunqResponse> list(Integer credentialPa * @param status The status of the IP. May be "ACTIVE" or "INACTIVE". It is only possible to * make requests from "ACTIVE" IP addresses. Only "ACTIVE" IPs will be billed. */ - public static BunqResponse update(Integer credentialPasswordIpId, Integer permittedIpId, String status, Map customHeaders) { + public static BunqResponse update(Long credentialPasswordIpId, Long permittedIpId, String status, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -185,15 +185,15 @@ public static BunqResponse update(Integer credentialPasswordIpId, Integ return processForId(responseRaw); } - public static BunqResponse update(Integer credentialPasswordIpId) { + public static BunqResponse update(Long credentialPasswordIpId) { return update(credentialPasswordIpId, null, null, null); } - public static BunqResponse update(Integer credentialPasswordIpId, Integer permittedIpId) { + public static BunqResponse update(Long credentialPasswordIpId, Long permittedIpId) { return update(credentialPasswordIpId, permittedIpId, null, null); } - public static BunqResponse update(Integer credentialPasswordIpId, Integer permittedIpId, String status) { + public static BunqResponse update(Long credentialPasswordIpId, Long permittedIpId, String status) { return update(credentialPasswordIpId, permittedIpId, status, null); } diff --git a/src/main/java/com/bunq/sdk/model/generated/endpoint/PointMutationApiObject.java b/src/main/java/com/bunq/sdk/model/generated/endpoint/PointMutationApiObject.java index 7bcafe32..7d7019d8 100644 --- a/src/main/java/com/bunq/sdk/model/generated/endpoint/PointMutationApiObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/endpoint/PointMutationApiObject.java @@ -21,16 +21,16 @@ public class PointMutationApiObject extends BunqModel { */ @Expose @SerializedName("number_of_point") - private Integer numberOfPoint; + private Long numberOfPoint; /** * The number of points earned. */ - public Integer getNumberOfPoint() { + public Long getNumberOfPoint() { return this.numberOfPoint; } - public void setNumberOfPoint(Integer numberOfPoint) { + public void setNumberOfPoint(Long numberOfPoint) { this.numberOfPoint = numberOfPoint; } diff --git a/src/main/java/com/bunq/sdk/model/generated/endpoint/RelationUserApiObject.java b/src/main/java/com/bunq/sdk/model/generated/endpoint/RelationUserApiObject.java index c3180703..1b3b60f6 100644 --- a/src/main/java/com/bunq/sdk/model/generated/endpoint/RelationUserApiObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/endpoint/RelationUserApiObject.java @@ -60,19 +60,47 @@ public class RelationUserApiObject extends BunqModel { private String status; /** - * The account status of a user + * The account status of a user. */ @Expose @SerializedName("user_status") private String userStatus; /** - * The account status of a user + * The account sub-status of the user. + */ + @Expose + @SerializedName("user_sub_status") + private String userSubStatus; + + /** + * The account verification status of the user. + */ + @Expose + @SerializedName("user_verification_status") + private String userVerificationStatus; + + /** + * The account sub-status of the counter user. */ @Expose @SerializedName("counter_user_status") private String counterUserStatus; + /** + * The account sub-status of the counter user. + */ + @Expose + @SerializedName("counter_user_sub_status") + private String counterUserSubStatus; + + /** + * The account verification status of the counter user. + */ + @Expose + @SerializedName("counter_user_verification_status") + private String counterUserVerificationStatus; + /** * Tap to Pay settings for the company employee. */ @@ -154,7 +182,7 @@ public void setStatus(String status) { } /** - * The account status of a user + * The account status of a user. */ public String getUserStatus() { return this.userStatus; @@ -165,7 +193,29 @@ public void setUserStatus(String userStatus) { } /** - * The account status of a user + * The account sub-status of the user. + */ + public String getUserSubStatus() { + return this.userSubStatus; + } + + public void setUserSubStatus(String userSubStatus) { + this.userSubStatus = userSubStatus; + } + + /** + * The account verification status of the user. + */ + public String getUserVerificationStatus() { + return this.userVerificationStatus; + } + + public void setUserVerificationStatus(String userVerificationStatus) { + this.userVerificationStatus = userVerificationStatus; + } + + /** + * The account sub-status of the counter user. */ public String getCounterUserStatus() { return this.counterUserStatus; @@ -175,6 +225,28 @@ public void setCounterUserStatus(String counterUserStatus) { this.counterUserStatus = counterUserStatus; } + /** + * The account sub-status of the counter user. + */ + public String getCounterUserSubStatus() { + return this.counterUserSubStatus; + } + + public void setCounterUserSubStatus(String counterUserSubStatus) { + this.counterUserSubStatus = counterUserSubStatus; + } + + /** + * The account verification status of the counter user. + */ + public String getCounterUserVerificationStatus() { + return this.counterUserVerificationStatus; + } + + public void setCounterUserVerificationStatus(String counterUserVerificationStatus) { + this.counterUserVerificationStatus = counterUserVerificationStatus; + } + /** * Tap to Pay settings for the company employee. */ @@ -228,10 +300,26 @@ public boolean isAllFieldNull() { return false; } + if (this.userSubStatus != null) { + return false; + } + + if (this.userVerificationStatus != null) { + return false; + } + if (this.counterUserStatus != null) { return false; } + if (this.counterUserSubStatus != null) { + return false; + } + + if (this.counterUserVerificationStatus != null) { + return false; + } + if (this.companyEmployeeSettingAdyenCardTransaction != null) { return false; } diff --git a/src/main/java/com/bunq/sdk/model/generated/endpoint/RequestInquiryApiObject.java b/src/main/java/com/bunq/sdk/model/generated/endpoint/RequestInquiryApiObject.java index 5f7b0658..dfd19025 100644 --- a/src/main/java/com/bunq/sdk/model/generated/endpoint/RequestInquiryApiObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/endpoint/RequestInquiryApiObject.java @@ -70,7 +70,7 @@ public class RequestInquiryApiObject extends BunqModel { */ @Expose @SerializedName("id") - private Integer id; + private Long id; /** * The timestamp of the payment request's creation. @@ -105,7 +105,7 @@ public class RequestInquiryApiObject extends BunqModel { */ @Expose @SerializedName("monetary_account_id") - private Integer monetaryAccountId; + private Long monetaryAccountId; /** * The requested amount. @@ -176,21 +176,21 @@ public class RequestInquiryApiObject extends BunqModel { */ @Expose @SerializedName("batch_id") - private Integer batchId; + private Long batchId; /** * The id of the scheduled job if the request was scheduled. */ @Expose @SerializedName("scheduled_id") - private Integer scheduledId; + private Long scheduledId; /** * The minimum age the user accepting the RequestInquiry must have. */ @Expose @SerializedName("minimum_age") - private Integer minimumAge; + private Long minimumAge; /** * Whether or not an address must be provided on accept. @@ -297,7 +297,7 @@ public class RequestInquiryApiObject extends BunqModel { */ @Expose @SerializedName("minimum_age_field_for_request") - private Integer minimumAgeFieldForRequest; + private Long minimumAgeFieldForRequest; /** * Whether a billing and shipping address must be provided when paying the request. Possible @@ -350,7 +350,7 @@ public class RequestInquiryApiObject extends BunqModel { */ @Expose @SerializedName("event_id_field_for_request") - private Integer eventIdFieldForRequest; + private Long eventIdFieldForRequest; public RequestInquiryApiObject() { this(null, null, null, null, null, null, null, null, null, null, null, null, null, null); @@ -384,31 +384,31 @@ public RequestInquiryApiObject(AmountObject amountInquired, PointerObject counte this(amountInquired, counterpartyAlias, description, allowBunqme, attachment, merchantReference, status, null, null, null, null, null, null, null); } - public RequestInquiryApiObject(AmountObject amountInquired, PointerObject counterpartyAlias, String description, Boolean allowBunqme, List attachment, String merchantReference, String status, Integer minimumAge) { + public RequestInquiryApiObject(AmountObject amountInquired, PointerObject counterpartyAlias, String description, Boolean allowBunqme, List attachment, String merchantReference, String status, Long minimumAge) { this(amountInquired, counterpartyAlias, description, allowBunqme, attachment, merchantReference, status, minimumAge, null, null, null, null, null, null); } - public RequestInquiryApiObject(AmountObject amountInquired, PointerObject counterpartyAlias, String description, Boolean allowBunqme, List attachment, String merchantReference, String status, Integer minimumAge, String requireAddress) { + public RequestInquiryApiObject(AmountObject amountInquired, PointerObject counterpartyAlias, String description, Boolean allowBunqme, List attachment, String merchantReference, String status, Long minimumAge, String requireAddress) { this(amountInquired, counterpartyAlias, description, allowBunqme, attachment, merchantReference, status, minimumAge, requireAddress, null, null, null, null, null); } - public RequestInquiryApiObject(AmountObject amountInquired, PointerObject counterpartyAlias, String description, Boolean allowBunqme, List attachment, String merchantReference, String status, Integer minimumAge, String requireAddress, Boolean wantTip) { + public RequestInquiryApiObject(AmountObject amountInquired, PointerObject counterpartyAlias, String description, Boolean allowBunqme, List attachment, String merchantReference, String status, Long minimumAge, String requireAddress, Boolean wantTip) { this(amountInquired, counterpartyAlias, description, allowBunqme, attachment, merchantReference, status, minimumAge, requireAddress, wantTip, null, null, null, null); } - public RequestInquiryApiObject(AmountObject amountInquired, PointerObject counterpartyAlias, String description, Boolean allowBunqme, List attachment, String merchantReference, String status, Integer minimumAge, String requireAddress, Boolean wantTip, Boolean allowAmountLower) { + public RequestInquiryApiObject(AmountObject amountInquired, PointerObject counterpartyAlias, String description, Boolean allowBunqme, List attachment, String merchantReference, String status, Long minimumAge, String requireAddress, Boolean wantTip, Boolean allowAmountLower) { this(amountInquired, counterpartyAlias, description, allowBunqme, attachment, merchantReference, status, minimumAge, requireAddress, wantTip, allowAmountLower, null, null, null); } - public RequestInquiryApiObject(AmountObject amountInquired, PointerObject counterpartyAlias, String description, Boolean allowBunqme, List attachment, String merchantReference, String status, Integer minimumAge, String requireAddress, Boolean wantTip, Boolean allowAmountLower, Boolean allowAmountHigher) { + public RequestInquiryApiObject(AmountObject amountInquired, PointerObject counterpartyAlias, String description, Boolean allowBunqme, List attachment, String merchantReference, String status, Long minimumAge, String requireAddress, Boolean wantTip, Boolean allowAmountLower, Boolean allowAmountHigher) { this(amountInquired, counterpartyAlias, description, allowBunqme, attachment, merchantReference, status, minimumAge, requireAddress, wantTip, allowAmountLower, allowAmountHigher, null, null); } - public RequestInquiryApiObject(AmountObject amountInquired, PointerObject counterpartyAlias, String description, Boolean allowBunqme, List attachment, String merchantReference, String status, Integer minimumAge, String requireAddress, Boolean wantTip, Boolean allowAmountLower, Boolean allowAmountHigher, String redirectUrl) { + public RequestInquiryApiObject(AmountObject amountInquired, PointerObject counterpartyAlias, String description, Boolean allowBunqme, List attachment, String merchantReference, String status, Long minimumAge, String requireAddress, Boolean wantTip, Boolean allowAmountLower, Boolean allowAmountHigher, String redirectUrl) { this(amountInquired, counterpartyAlias, description, allowBunqme, attachment, merchantReference, status, minimumAge, requireAddress, wantTip, allowAmountLower, allowAmountHigher, redirectUrl, null); } - public RequestInquiryApiObject(AmountObject amountInquired, PointerObject counterpartyAlias, String description, Boolean allowBunqme, List attachment, String merchantReference, String status, Integer minimumAge, String requireAddress, Boolean wantTip, Boolean allowAmountLower, Boolean allowAmountHigher, String redirectUrl, Integer eventId) { + public RequestInquiryApiObject(AmountObject amountInquired, PointerObject counterpartyAlias, String description, Boolean allowBunqme, List attachment, String merchantReference, String status, Long minimumAge, String requireAddress, Boolean wantTip, Boolean allowAmountLower, Boolean allowAmountHigher, String redirectUrl, Long eventId) { this.amountInquiredFieldForRequest = amountInquired; this.counterpartyAliasFieldForRequest = counterpartyAlias; this.descriptionFieldForRequest = description; @@ -454,7 +454,7 @@ public RequestInquiryApiObject(AmountObject amountInquired, PointerObject counte * Request. * @param eventId The ID of the associated event if the request was made using 'split the bill'. */ - public static BunqResponse create(AmountObject amountInquired, PointerObject counterpartyAlias, String description, Boolean allowBunqme, Integer monetaryAccountId, List attachment, String merchantReference, String status, Integer minimumAge, String requireAddress, Boolean wantTip, Boolean allowAmountLower, Boolean allowAmountHigher, String redirectUrl, Integer eventId, Map customHeaders) { + public static BunqResponse create(AmountObject amountInquired, PointerObject counterpartyAlias, String description, Boolean allowBunqme, Long monetaryAccountId, List attachment, String merchantReference, String status, Long minimumAge, String requireAddress, Boolean wantTip, Boolean allowAmountLower, Boolean allowAmountHigher, String redirectUrl, Long eventId, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -483,67 +483,67 @@ public static BunqResponse create(AmountObject amountInquired, PointerO return processForId(responseRaw); } - public static BunqResponse create() { + public static BunqResponse create() { return create(null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null); } - public static BunqResponse create(AmountObject amountInquired) { + public static BunqResponse create(AmountObject amountInquired) { return create(amountInquired, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null); } - public static BunqResponse create(AmountObject amountInquired, PointerObject counterpartyAlias) { + public static BunqResponse create(AmountObject amountInquired, PointerObject counterpartyAlias) { return create(amountInquired, counterpartyAlias, null, null, null, null, null, null, null, null, null, null, null, null, null, null); } - public static BunqResponse create(AmountObject amountInquired, PointerObject counterpartyAlias, String description) { + public static BunqResponse create(AmountObject amountInquired, PointerObject counterpartyAlias, String description) { return create(amountInquired, counterpartyAlias, description, null, null, null, null, null, null, null, null, null, null, null, null, null); } - public static BunqResponse create(AmountObject amountInquired, PointerObject counterpartyAlias, String description, Boolean allowBunqme) { + public static BunqResponse create(AmountObject amountInquired, PointerObject counterpartyAlias, String description, Boolean allowBunqme) { return create(amountInquired, counterpartyAlias, description, allowBunqme, null, null, null, null, null, null, null, null, null, null, null, null); } - public static BunqResponse create(AmountObject amountInquired, PointerObject counterpartyAlias, String description, Boolean allowBunqme, Integer monetaryAccountId) { + public static BunqResponse create(AmountObject amountInquired, PointerObject counterpartyAlias, String description, Boolean allowBunqme, Long monetaryAccountId) { return create(amountInquired, counterpartyAlias, description, allowBunqme, monetaryAccountId, null, null, null, null, null, null, null, null, null, null, null); } - public static BunqResponse create(AmountObject amountInquired, PointerObject counterpartyAlias, String description, Boolean allowBunqme, Integer monetaryAccountId, List attachment) { + public static BunqResponse create(AmountObject amountInquired, PointerObject counterpartyAlias, String description, Boolean allowBunqme, Long monetaryAccountId, List attachment) { return create(amountInquired, counterpartyAlias, description, allowBunqme, monetaryAccountId, attachment, null, null, null, null, null, null, null, null, null, null); } - public static BunqResponse create(AmountObject amountInquired, PointerObject counterpartyAlias, String description, Boolean allowBunqme, Integer monetaryAccountId, List attachment, String merchantReference) { + public static BunqResponse create(AmountObject amountInquired, PointerObject counterpartyAlias, String description, Boolean allowBunqme, Long monetaryAccountId, List attachment, String merchantReference) { return create(amountInquired, counterpartyAlias, description, allowBunqme, monetaryAccountId, attachment, merchantReference, null, null, null, null, null, null, null, null, null); } - public static BunqResponse create(AmountObject amountInquired, PointerObject counterpartyAlias, String description, Boolean allowBunqme, Integer monetaryAccountId, List attachment, String merchantReference, String status) { + public static BunqResponse create(AmountObject amountInquired, PointerObject counterpartyAlias, String description, Boolean allowBunqme, Long monetaryAccountId, List attachment, String merchantReference, String status) { return create(amountInquired, counterpartyAlias, description, allowBunqme, monetaryAccountId, attachment, merchantReference, status, null, null, null, null, null, null, null, null); } - public static BunqResponse create(AmountObject amountInquired, PointerObject counterpartyAlias, String description, Boolean allowBunqme, Integer monetaryAccountId, List attachment, String merchantReference, String status, Integer minimumAge) { + public static BunqResponse create(AmountObject amountInquired, PointerObject counterpartyAlias, String description, Boolean allowBunqme, Long monetaryAccountId, List attachment, String merchantReference, String status, Long minimumAge) { return create(amountInquired, counterpartyAlias, description, allowBunqme, monetaryAccountId, attachment, merchantReference, status, minimumAge, null, null, null, null, null, null, null); } - public static BunqResponse create(AmountObject amountInquired, PointerObject counterpartyAlias, String description, Boolean allowBunqme, Integer monetaryAccountId, List attachment, String merchantReference, String status, Integer minimumAge, String requireAddress) { + public static BunqResponse create(AmountObject amountInquired, PointerObject counterpartyAlias, String description, Boolean allowBunqme, Long monetaryAccountId, List attachment, String merchantReference, String status, Long minimumAge, String requireAddress) { return create(amountInquired, counterpartyAlias, description, allowBunqme, monetaryAccountId, attachment, merchantReference, status, minimumAge, requireAddress, null, null, null, null, null, null); } - public static BunqResponse create(AmountObject amountInquired, PointerObject counterpartyAlias, String description, Boolean allowBunqme, Integer monetaryAccountId, List attachment, String merchantReference, String status, Integer minimumAge, String requireAddress, Boolean wantTip) { + public static BunqResponse create(AmountObject amountInquired, PointerObject counterpartyAlias, String description, Boolean allowBunqme, Long monetaryAccountId, List attachment, String merchantReference, String status, Long minimumAge, String requireAddress, Boolean wantTip) { return create(amountInquired, counterpartyAlias, description, allowBunqme, monetaryAccountId, attachment, merchantReference, status, minimumAge, requireAddress, wantTip, null, null, null, null, null); } - public static BunqResponse create(AmountObject amountInquired, PointerObject counterpartyAlias, String description, Boolean allowBunqme, Integer monetaryAccountId, List attachment, String merchantReference, String status, Integer minimumAge, String requireAddress, Boolean wantTip, Boolean allowAmountLower) { + public static BunqResponse create(AmountObject amountInquired, PointerObject counterpartyAlias, String description, Boolean allowBunqme, Long monetaryAccountId, List attachment, String merchantReference, String status, Long minimumAge, String requireAddress, Boolean wantTip, Boolean allowAmountLower) { return create(amountInquired, counterpartyAlias, description, allowBunqme, monetaryAccountId, attachment, merchantReference, status, minimumAge, requireAddress, wantTip, allowAmountLower, null, null, null, null); } - public static BunqResponse create(AmountObject amountInquired, PointerObject counterpartyAlias, String description, Boolean allowBunqme, Integer monetaryAccountId, List attachment, String merchantReference, String status, Integer minimumAge, String requireAddress, Boolean wantTip, Boolean allowAmountLower, Boolean allowAmountHigher) { + public static BunqResponse create(AmountObject amountInquired, PointerObject counterpartyAlias, String description, Boolean allowBunqme, Long monetaryAccountId, List attachment, String merchantReference, String status, Long minimumAge, String requireAddress, Boolean wantTip, Boolean allowAmountLower, Boolean allowAmountHigher) { return create(amountInquired, counterpartyAlias, description, allowBunqme, monetaryAccountId, attachment, merchantReference, status, minimumAge, requireAddress, wantTip, allowAmountLower, allowAmountHigher, null, null, null); } - public static BunqResponse create(AmountObject amountInquired, PointerObject counterpartyAlias, String description, Boolean allowBunqme, Integer monetaryAccountId, List attachment, String merchantReference, String status, Integer minimumAge, String requireAddress, Boolean wantTip, Boolean allowAmountLower, Boolean allowAmountHigher, String redirectUrl) { + public static BunqResponse create(AmountObject amountInquired, PointerObject counterpartyAlias, String description, Boolean allowBunqme, Long monetaryAccountId, List attachment, String merchantReference, String status, Long minimumAge, String requireAddress, Boolean wantTip, Boolean allowAmountLower, Boolean allowAmountHigher, String redirectUrl) { return create(amountInquired, counterpartyAlias, description, allowBunqme, monetaryAccountId, attachment, merchantReference, status, minimumAge, requireAddress, wantTip, allowAmountLower, allowAmountHigher, redirectUrl, null, null); } - public static BunqResponse create(AmountObject amountInquired, PointerObject counterpartyAlias, String description, Boolean allowBunqme, Integer monetaryAccountId, List attachment, String merchantReference, String status, Integer minimumAge, String requireAddress, Boolean wantTip, Boolean allowAmountLower, Boolean allowAmountHigher, String redirectUrl, Integer eventId) { + public static BunqResponse create(AmountObject amountInquired, PointerObject counterpartyAlias, String description, Boolean allowBunqme, Long monetaryAccountId, List attachment, String merchantReference, String status, Long minimumAge, String requireAddress, Boolean wantTip, Boolean allowAmountLower, Boolean allowAmountHigher, String redirectUrl, Long eventId) { return create(amountInquired, counterpartyAlias, description, allowBunqme, monetaryAccountId, attachment, merchantReference, status, minimumAge, requireAddress, wantTip, allowAmountLower, allowAmountHigher, redirectUrl, eventId, null); } @@ -552,7 +552,7 @@ public static BunqResponse create(AmountObject amountInquired, PointerO * @param status The status of the RequestInquiry. Ignored in POST requests but can be used for * revoking (cancelling) the RequestInquiry by setting REVOKED with a PUT request. */ - public static BunqResponse update(Integer requestInquiryId, Integer monetaryAccountId, String status, Map customHeaders) { + public static BunqResponse update(Long requestInquiryId, Long monetaryAccountId, String status, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -568,15 +568,15 @@ public static BunqResponse update(Integer requestInquir return fromJson(RequestInquiryApiObject.class, responseRaw, OBJECT_TYPE_PUT); } - public static BunqResponse update(Integer requestInquiryId) { + public static BunqResponse update(Long requestInquiryId) { return update(requestInquiryId, null, null, null); } - public static BunqResponse update(Integer requestInquiryId, Integer monetaryAccountId) { + public static BunqResponse update(Long requestInquiryId, Long monetaryAccountId) { return update(requestInquiryId, monetaryAccountId, null, null); } - public static BunqResponse update(Integer requestInquiryId, Integer monetaryAccountId, String status) { + public static BunqResponse update(Long requestInquiryId, Long monetaryAccountId, String status) { return update(requestInquiryId, monetaryAccountId, status, null); } @@ -584,7 +584,7 @@ public static BunqResponse update(Integer requestInquir * Get all payment requests for a user's monetary account. bunqme_share_url is always null if * the counterparty is a bunq user. */ - public static BunqResponse> list(Integer monetaryAccountId, Map params, Map customHeaders) { + public static BunqResponse> list(Long monetaryAccountId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_LISTING, determineUserId(), determineMonetaryAccountId(monetaryAccountId)), params, customHeaders); @@ -595,11 +595,11 @@ public static BunqResponse> list() { return list(null, null, null); } - public static BunqResponse> list(Integer monetaryAccountId) { + public static BunqResponse> list(Long monetaryAccountId) { return list(monetaryAccountId, null, null); } - public static BunqResponse> list(Integer monetaryAccountId, Map params) { + public static BunqResponse> list(Long monetaryAccountId, Map params) { return list(monetaryAccountId, params, null); } @@ -607,7 +607,7 @@ public static BunqResponse> list(Integer monetaryA * Get the details of a specific payment request, including its status. bunqme_share_url is * always null if the counterparty is a bunq user. */ - public static BunqResponse get(Integer requestInquiryId, Integer monetaryAccountId, Map params, Map customHeaders) { + public static BunqResponse get(Long requestInquiryId, Long monetaryAccountId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_READ, determineUserId(), determineMonetaryAccountId(monetaryAccountId), requestInquiryId), params, customHeaders); @@ -618,26 +618,26 @@ public static BunqResponse get() { return get(null, null, null, null); } - public static BunqResponse get(Integer requestInquiryId) { + public static BunqResponse get(Long requestInquiryId) { return get(requestInquiryId, null, null, null); } - public static BunqResponse get(Integer requestInquiryId, Integer monetaryAccountId) { + public static BunqResponse get(Long requestInquiryId, Long monetaryAccountId) { return get(requestInquiryId, monetaryAccountId, null, null); } - public static BunqResponse get(Integer requestInquiryId, Integer monetaryAccountId, Map params) { + public static BunqResponse get(Long requestInquiryId, Long monetaryAccountId, Map params) { return get(requestInquiryId, monetaryAccountId, params, null); } /** * The id of the created RequestInquiry. */ - public Integer getId() { + public Long getId() { return this.id; } - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } @@ -688,11 +688,11 @@ public void setTimeExpiry(String timeExpiry) { /** * The id of the monetary account the request response applies to. */ - public Integer getMonetaryAccountId() { + public Long getMonetaryAccountId() { return this.monetaryAccountId; } - public void setMonetaryAccountId(Integer monetaryAccountId) { + public void setMonetaryAccountId(Long monetaryAccountId) { this.monetaryAccountId = monetaryAccountId; } @@ -799,33 +799,33 @@ public void setStatus(String status) { /** * The id of the batch if the request was part of a batch. */ - public Integer getBatchId() { + public Long getBatchId() { return this.batchId; } - public void setBatchId(Integer batchId) { + public void setBatchId(Long batchId) { this.batchId = batchId; } /** * The id of the scheduled job if the request was scheduled. */ - public Integer getScheduledId() { + public Long getScheduledId() { return this.scheduledId; } - public void setScheduledId(Integer scheduledId) { + public void setScheduledId(Long scheduledId) { this.scheduledId = scheduledId; } /** * The minimum age the user accepting the RequestInquiry must have. */ - public Integer getMinimumAge() { + public Long getMinimumAge() { return this.minimumAge; } - public void setMinimumAge(Integer minimumAge) { + public void setMinimumAge(Long minimumAge) { this.minimumAge = minimumAge; } diff --git a/src/main/java/com/bunq/sdk/model/generated/endpoint/RequestInquiryBatchApiObject.java b/src/main/java/com/bunq/sdk/model/generated/endpoint/RequestInquiryBatchApiObject.java index 392e7393..5f894d41 100644 --- a/src/main/java/com/bunq/sdk/model/generated/endpoint/RequestInquiryBatchApiObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/endpoint/RequestInquiryBatchApiObject.java @@ -92,7 +92,7 @@ public class RequestInquiryBatchApiObject extends BunqModel { */ @Expose @SerializedName("event_id_field_for_request") - private Integer eventIdFieldForRequest; + private Long eventIdFieldForRequest; public RequestInquiryBatchApiObject() { this(null, null, null, null); @@ -110,7 +110,7 @@ public RequestInquiryBatchApiObject(List requestInquiri this(requestInquiries, totalAmountInquired, status, null); } - public RequestInquiryBatchApiObject(List requestInquiries, AmountObject totalAmountInquired, String status, Integer eventId) { + public RequestInquiryBatchApiObject(List requestInquiries, AmountObject totalAmountInquired, String status, Long eventId) { this.requestInquiriesFieldForRequest = requestInquiries; this.statusFieldForRequest = status; this.totalAmountInquiredFieldForRequest = totalAmountInquired; @@ -124,7 +124,7 @@ public RequestInquiryBatchApiObject(List requestInquiri * @param eventId The ID of the associated event if the request batch was made using 'split the * bill'. */ - public static BunqResponse create(List requestInquiries, AmountObject totalAmountInquired, Integer monetaryAccountId, String status, Integer eventId, Map customHeaders) { + public static BunqResponse create(List requestInquiries, AmountObject totalAmountInquired, Long monetaryAccountId, String status, Long eventId, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -143,27 +143,27 @@ public static BunqResponse create(List request return processForId(responseRaw); } - public static BunqResponse create() { + public static BunqResponse create() { return create(null, null, null, null, null, null); } - public static BunqResponse create(List requestInquiries) { + public static BunqResponse create(List requestInquiries) { return create(requestInquiries, null, null, null, null, null); } - public static BunqResponse create(List requestInquiries, AmountObject totalAmountInquired) { + public static BunqResponse create(List requestInquiries, AmountObject totalAmountInquired) { return create(requestInquiries, totalAmountInquired, null, null, null, null); } - public static BunqResponse create(List requestInquiries, AmountObject totalAmountInquired, Integer monetaryAccountId) { + public static BunqResponse create(List requestInquiries, AmountObject totalAmountInquired, Long monetaryAccountId) { return create(requestInquiries, totalAmountInquired, monetaryAccountId, null, null, null); } - public static BunqResponse create(List requestInquiries, AmountObject totalAmountInquired, Integer monetaryAccountId, String status) { + public static BunqResponse create(List requestInquiries, AmountObject totalAmountInquired, Long monetaryAccountId, String status) { return create(requestInquiries, totalAmountInquired, monetaryAccountId, status, null, null); } - public static BunqResponse create(List requestInquiries, AmountObject totalAmountInquired, Integer monetaryAccountId, String status, Integer eventId) { + public static BunqResponse create(List requestInquiries, AmountObject totalAmountInquired, Long monetaryAccountId, String status, Long eventId) { return create(requestInquiries, totalAmountInquired, monetaryAccountId, status, eventId, null); } @@ -171,7 +171,7 @@ public static BunqResponse create(List request * Revoke a request batch. The status of all the requests will be set to REVOKED. * @param status The status of the request. */ - public static BunqResponse update(Integer requestInquiryBatchId, Integer monetaryAccountId, String status, Map customHeaders) { + public static BunqResponse update(Long requestInquiryBatchId, Long monetaryAccountId, String status, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -187,22 +187,22 @@ public static BunqResponse update(Integer requestInquiryBatchId, Intege return processForId(responseRaw); } - public static BunqResponse update(Integer requestInquiryBatchId) { + public static BunqResponse update(Long requestInquiryBatchId) { return update(requestInquiryBatchId, null, null, null); } - public static BunqResponse update(Integer requestInquiryBatchId, Integer monetaryAccountId) { + public static BunqResponse update(Long requestInquiryBatchId, Long monetaryAccountId) { return update(requestInquiryBatchId, monetaryAccountId, null, null); } - public static BunqResponse update(Integer requestInquiryBatchId, Integer monetaryAccountId, String status) { + public static BunqResponse update(Long requestInquiryBatchId, Long monetaryAccountId, String status) { return update(requestInquiryBatchId, monetaryAccountId, status, null); } /** * Return the details of a specific request batch. */ - public static BunqResponse get(Integer requestInquiryBatchId, Integer monetaryAccountId, Map params, Map customHeaders) { + public static BunqResponse get(Long requestInquiryBatchId, Long monetaryAccountId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_READ, determineUserId(), determineMonetaryAccountId(monetaryAccountId), requestInquiryBatchId), params, customHeaders); @@ -213,22 +213,22 @@ public static BunqResponse get() { return get(null, null, null, null); } - public static BunqResponse get(Integer requestInquiryBatchId) { + public static BunqResponse get(Long requestInquiryBatchId) { return get(requestInquiryBatchId, null, null, null); } - public static BunqResponse get(Integer requestInquiryBatchId, Integer monetaryAccountId) { + public static BunqResponse get(Long requestInquiryBatchId, Long monetaryAccountId) { return get(requestInquiryBatchId, monetaryAccountId, null, null); } - public static BunqResponse get(Integer requestInquiryBatchId, Integer monetaryAccountId, Map params) { + public static BunqResponse get(Long requestInquiryBatchId, Long monetaryAccountId, Map params) { return get(requestInquiryBatchId, monetaryAccountId, params, null); } /** * Return all the request batches for a monetary account. */ - public static BunqResponse> list(Integer monetaryAccountId, Map params, Map customHeaders) { + public static BunqResponse> list(Long monetaryAccountId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_LISTING, determineUserId(), determineMonetaryAccountId(monetaryAccountId)), params, customHeaders); @@ -239,11 +239,11 @@ public static BunqResponse> list() { return list(null, null, null); } - public static BunqResponse> list(Integer monetaryAccountId) { + public static BunqResponse> list(Long monetaryAccountId) { return list(monetaryAccountId, null, null); } - public static BunqResponse> list(Integer monetaryAccountId, Map params) { + public static BunqResponse> list(Long monetaryAccountId, Map params) { return list(monetaryAccountId, params, null); } diff --git a/src/main/java/com/bunq/sdk/model/generated/endpoint/RequestResponseApiObject.java b/src/main/java/com/bunq/sdk/model/generated/endpoint/RequestResponseApiObject.java index 4d1cc8f6..26b8e8b5 100644 --- a/src/main/java/com/bunq/sdk/model/generated/endpoint/RequestResponseApiObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/endpoint/RequestResponseApiObject.java @@ -58,7 +58,7 @@ public class RequestResponseApiObject extends BunqModel { */ @Expose @SerializedName("id") - private Integer id; + private Long id; /** * The timestamp when the Request Response was created. @@ -115,7 +115,7 @@ public class RequestResponseApiObject extends BunqModel { */ @Expose @SerializedName("monetary_account_id") - private Integer monetaryAccountId; + private Long monetaryAccountId; /** * The requested Amount. @@ -175,7 +175,7 @@ public class RequestResponseApiObject extends BunqModel { */ @Expose @SerializedName("minimum_age") - private Integer minimumAge; + private Long minimumAge; /** * Whether or not an address must be provided on accept. @@ -254,7 +254,7 @@ public class RequestResponseApiObject extends BunqModel { */ @Expose @SerializedName("eligible_whitelist_id") - private Integer eligibleWhitelistId; + private Long eligibleWhitelistId; /** * The reference to the object used for split the bill. Can be RequestInquiry or @@ -269,14 +269,14 @@ public class RequestResponseApiObject extends BunqModel { */ @Expose @SerializedName("event_id") - private Integer eventId; + private Long eventId; /** * The ID of the monetary account this user prefers to pay the request from. */ @Expose @SerializedName("monetary_account_preferred_id") - private Integer monetaryAccountPreferredId; + private Long monetaryAccountPreferredId; /** * The Amount the user decides to pay. @@ -314,7 +314,7 @@ public class RequestResponseApiObject extends BunqModel { */ @Expose @SerializedName("currency_conversion_quote_id_field_for_request") - private Integer currencyConversionQuoteIdFieldForRequest; + private Long currencyConversionQuoteIdFieldForRequest; public RequestResponseApiObject() { this(null, null, null, null, null); @@ -336,7 +336,7 @@ public RequestResponseApiObject(String status, AmountObject amountResponded, Add this(status, amountResponded, addressShipping, addressBilling, null); } - public RequestResponseApiObject(String status, AmountObject amountResponded, AddressObject addressShipping, AddressObject addressBilling, Integer currencyConversionQuoteId) { + public RequestResponseApiObject(String status, AmountObject amountResponded, AddressObject addressShipping, AddressObject addressBilling, Long currencyConversionQuoteId) { this.amountRespondedFieldForRequest = amountResponded; this.statusFieldForRequest = status; this.addressShippingFieldForRequest = addressShipping; @@ -355,7 +355,7 @@ public RequestResponseApiObject(String status, AmountObject amountResponded, Add * @param currencyConversionQuoteId When the request is accepted on a monetary account with a * different currency, a quote is expected to convert. */ - public static BunqResponse update(Integer requestResponseId, Integer monetaryAccountId, AmountObject amountResponded, String status, AddressObject addressShipping, AddressObject addressBilling, Integer currencyConversionQuoteId, Map customHeaders) { + public static BunqResponse update(Long requestResponseId, Long monetaryAccountId, AmountObject amountResponded, String status, AddressObject addressShipping, AddressObject addressBilling, Long currencyConversionQuoteId, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -375,38 +375,38 @@ public static BunqResponse update(Integer requestRespo return fromJson(RequestResponseApiObject.class, responseRaw, OBJECT_TYPE_PUT); } - public static BunqResponse update(Integer requestResponseId) { + public static BunqResponse update(Long requestResponseId) { return update(requestResponseId, null, null, null, null, null, null, null); } - public static BunqResponse update(Integer requestResponseId, Integer monetaryAccountId) { + public static BunqResponse update(Long requestResponseId, Long monetaryAccountId) { return update(requestResponseId, monetaryAccountId, null, null, null, null, null, null); } - public static BunqResponse update(Integer requestResponseId, Integer monetaryAccountId, AmountObject amountResponded) { + public static BunqResponse update(Long requestResponseId, Long monetaryAccountId, AmountObject amountResponded) { return update(requestResponseId, monetaryAccountId, amountResponded, null, null, null, null, null); } - public static BunqResponse update(Integer requestResponseId, Integer monetaryAccountId, AmountObject amountResponded, String status) { + public static BunqResponse update(Long requestResponseId, Long monetaryAccountId, AmountObject amountResponded, String status) { return update(requestResponseId, monetaryAccountId, amountResponded, status, null, null, null, null); } - public static BunqResponse update(Integer requestResponseId, Integer monetaryAccountId, AmountObject amountResponded, String status, AddressObject addressShipping) { + public static BunqResponse update(Long requestResponseId, Long monetaryAccountId, AmountObject amountResponded, String status, AddressObject addressShipping) { return update(requestResponseId, monetaryAccountId, amountResponded, status, addressShipping, null, null, null); } - public static BunqResponse update(Integer requestResponseId, Integer monetaryAccountId, AmountObject amountResponded, String status, AddressObject addressShipping, AddressObject addressBilling) { + public static BunqResponse update(Long requestResponseId, Long monetaryAccountId, AmountObject amountResponded, String status, AddressObject addressShipping, AddressObject addressBilling) { return update(requestResponseId, monetaryAccountId, amountResponded, status, addressShipping, addressBilling, null, null); } - public static BunqResponse update(Integer requestResponseId, Integer monetaryAccountId, AmountObject amountResponded, String status, AddressObject addressShipping, AddressObject addressBilling, Integer currencyConversionQuoteId) { + public static BunqResponse update(Long requestResponseId, Long monetaryAccountId, AmountObject amountResponded, String status, AddressObject addressShipping, AddressObject addressBilling, Long currencyConversionQuoteId) { return update(requestResponseId, monetaryAccountId, amountResponded, status, addressShipping, addressBilling, currencyConversionQuoteId, null); } /** * Get all RequestResponses for a MonetaryAccount. */ - public static BunqResponse> list(Integer monetaryAccountId, Map params, Map customHeaders) { + public static BunqResponse> list(Long monetaryAccountId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_LISTING, determineUserId(), determineMonetaryAccountId(monetaryAccountId)), params, customHeaders); @@ -417,18 +417,18 @@ public static BunqResponse> list() { return list(null, null, null); } - public static BunqResponse> list(Integer monetaryAccountId) { + public static BunqResponse> list(Long monetaryAccountId) { return list(monetaryAccountId, null, null); } - public static BunqResponse> list(Integer monetaryAccountId, Map params) { + public static BunqResponse> list(Long monetaryAccountId, Map params) { return list(monetaryAccountId, params, null); } /** * Get the details for a specific existing RequestResponse. */ - public static BunqResponse get(Integer requestResponseId, Integer monetaryAccountId, Map params, Map customHeaders) { + public static BunqResponse get(Long requestResponseId, Long monetaryAccountId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_READ, determineUserId(), determineMonetaryAccountId(monetaryAccountId), requestResponseId), params, customHeaders); @@ -439,26 +439,26 @@ public static BunqResponse get() { return get(null, null, null, null); } - public static BunqResponse get(Integer requestResponseId) { + public static BunqResponse get(Long requestResponseId) { return get(requestResponseId, null, null, null); } - public static BunqResponse get(Integer requestResponseId, Integer monetaryAccountId) { + public static BunqResponse get(Long requestResponseId, Long monetaryAccountId) { return get(requestResponseId, monetaryAccountId, null, null); } - public static BunqResponse get(Integer requestResponseId, Integer monetaryAccountId, Map params) { + public static BunqResponse get(Long requestResponseId, Long monetaryAccountId, Map params) { return get(requestResponseId, monetaryAccountId, params, null); } /** * The id of the Request Response. */ - public Integer getId() { + public Long getId() { return this.id; } - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } @@ -543,11 +543,11 @@ public void setUserRefundRequested(LabelUserObject userRefundRequested) { /** * The id of the MonetaryAccount the RequestResponse was received on. */ - public Integer getMonetaryAccountId() { + public Long getMonetaryAccountId() { return this.monetaryAccountId; } - public void setMonetaryAccountId(Integer monetaryAccountId) { + public void setMonetaryAccountId(Long monetaryAccountId) { this.monetaryAccountId = monetaryAccountId; } @@ -635,11 +635,11 @@ public void setAttachment(List attachment) { /** * The minimum age the user accepting the RequestResponse must have. */ - public Integer getMinimumAge() { + public Long getMinimumAge() { return this.minimumAge; } - public void setMinimumAge(Integer minimumAge) { + public void setMinimumAge(Long minimumAge) { this.minimumAge = minimumAge; } @@ -758,11 +758,11 @@ public void setRegistrationAction(String registrationAction) { /** * The whitelist id for this action or null. */ - public Integer getEligibleWhitelistId() { + public Long getEligibleWhitelistId() { return this.eligibleWhitelistId; } - public void setEligibleWhitelistId(Integer eligibleWhitelistId) { + public void setEligibleWhitelistId(Long eligibleWhitelistId) { this.eligibleWhitelistId = eligibleWhitelistId; } @@ -781,22 +781,22 @@ public void setRequestReferenceSplitTheBill(List /** * The ID of the latest event for the request. */ - public Integer getEventId() { + public Long getEventId() { return this.eventId; } - public void setEventId(Integer eventId) { + public void setEventId(Long eventId) { this.eventId = eventId; } /** * The ID of the monetary account this user prefers to pay the request from. */ - public Integer getMonetaryAccountPreferredId() { + public Long getMonetaryAccountPreferredId() { return this.monetaryAccountPreferredId; } - public void setMonetaryAccountPreferredId(Integer monetaryAccountPreferredId) { + public void setMonetaryAccountPreferredId(Long monetaryAccountPreferredId) { this.monetaryAccountPreferredId = monetaryAccountPreferredId; } diff --git a/src/main/java/com/bunq/sdk/model/generated/endpoint/SandboxUserCompanyApiObject.java b/src/main/java/com/bunq/sdk/model/generated/endpoint/SandboxUserCompanyApiObject.java index 26a96ea3..1376d5f7 100644 --- a/src/main/java/com/bunq/sdk/model/generated/endpoint/SandboxUserCompanyApiObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/endpoint/SandboxUserCompanyApiObject.java @@ -39,11 +39,18 @@ public class SandboxUserCompanyApiObject extends BunqModel { private String apiKey; /** - * The user which was created. + * The user company which was created. */ @Expose - @SerializedName("user") - private UserApiObject user; + @SerializedName("user_company") + private UserCompanyApiObject userCompany; + + /** + * The director of the company which was created. + */ + @Expose + @SerializedName("user_person") + private UserPersonApiObject userPerson; /** * The login code which the developer can use to log into their sandbox user. @@ -85,14 +92,25 @@ public void setApiKey(String apiKey) { } /** - * The user which was created. + * The user company which was created. */ - public UserApiObject getUser() { - return this.user; + public UserCompanyApiObject getUserCompany() { + return this.userCompany; } - public void setUser(UserApiObject user) { - this.user = user; + public void setUserCompany(UserCompanyApiObject userCompany) { + this.userCompany = userCompany; + } + + /** + * The director of the company which was created. + */ + public UserPersonApiObject getUserPerson() { + return this.userPerson; + } + + public void setUserPerson(UserPersonApiObject userPerson) { + this.userPerson = userPerson; } /** @@ -113,7 +131,11 @@ public boolean isAllFieldNull() { return false; } - if (this.user != null) { + if (this.userCompany != null) { + return false; + } + + if (this.userPerson != null) { return false; } diff --git a/src/main/java/com/bunq/sdk/model/generated/endpoint/ScheduleApiObject.java b/src/main/java/com/bunq/sdk/model/generated/endpoint/ScheduleApiObject.java index 2fb14b60..c1cc5c5d 100644 --- a/src/main/java/com/bunq/sdk/model/generated/endpoint/ScheduleApiObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/endpoint/ScheduleApiObject.java @@ -68,7 +68,7 @@ public class ScheduleApiObject extends BunqModel { */ @Expose @SerializedName("recurrence_size") - private Integer recurrenceSize; + private Long recurrenceSize; /** * The schedule status, options: ACTIVE, FINISHED, CANCELLED. @@ -111,7 +111,7 @@ public class ScheduleApiObject extends BunqModel { */ @Expose @SerializedName("recurrence_size_field_for_request") - private Integer recurrenceSizeFieldForRequest; + private Long recurrenceSizeFieldForRequest; public ScheduleApiObject() { this(null, null, null, null); @@ -125,11 +125,11 @@ public ScheduleApiObject(String timeStart, String recurrenceUnit) { this(timeStart, recurrenceUnit, null, null); } - public ScheduleApiObject(String timeStart, String recurrenceUnit, Integer recurrenceSize) { + public ScheduleApiObject(String timeStart, String recurrenceUnit, Long recurrenceSize) { this(timeStart, recurrenceUnit, recurrenceSize, null); } - public ScheduleApiObject(String timeStart, String recurrenceUnit, Integer recurrenceSize, String timeEnd) { + public ScheduleApiObject(String timeStart, String recurrenceUnit, Long recurrenceSize, String timeEnd) { this.timeStartFieldForRequest = timeStart; this.timeEndFieldForRequest = timeEnd; this.recurrenceUnitFieldForRequest = recurrenceUnit; @@ -137,7 +137,7 @@ public ScheduleApiObject(String timeStart, String recurrenceUnit, Integer recurr } /** * Get a specific schedule definition for a given monetary account. */ - public static BunqResponse get(Integer scheduleId, Integer monetaryAccountId, Map params, Map customHeaders) { + public static BunqResponse get(Long scheduleId, Long monetaryAccountId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_READ, determineUserId(), determineMonetaryAccountId(monetaryAccountId), scheduleId), params, customHeaders); @@ -148,15 +148,15 @@ public static BunqResponse get() { return get(null, null, null, null); } - public static BunqResponse get(Integer scheduleId) { + public static BunqResponse get(Long scheduleId) { return get(scheduleId, null, null, null); } - public static BunqResponse get(Integer scheduleId, Integer monetaryAccountId) { + public static BunqResponse get(Long scheduleId, Long monetaryAccountId) { return get(scheduleId, monetaryAccountId, null, null); } - public static BunqResponse get(Integer scheduleId, Integer monetaryAccountId, Map params) { + public static BunqResponse get(Long scheduleId, Long monetaryAccountId, Map params) { return get(scheduleId, monetaryAccountId, params, null); } @@ -166,7 +166,7 @@ public static BunqResponse get(Integer scheduleId, Integer mo * type={SCHEDULE_DEFINITION_PAYMENT,SCHEDULE_DEFINITION_PAYMENT_BATCH} is provided only * schedule definition object that relate to these definitions are returned. */ - public static BunqResponse> list(Integer monetaryAccountId, Map params, Map customHeaders) { + public static BunqResponse> list(Long monetaryAccountId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_LISTING, determineUserId(), determineMonetaryAccountId(monetaryAccountId)), params, customHeaders); @@ -177,11 +177,11 @@ public static BunqResponse> list() { return list(null, null, null); } - public static BunqResponse> list(Integer monetaryAccountId) { + public static BunqResponse> list(Long monetaryAccountId) { return list(monetaryAccountId, null, null); } - public static BunqResponse> list(Integer monetaryAccountId, Map params) { + public static BunqResponse> list(Long monetaryAccountId, Map params) { return list(monetaryAccountId, params, null); } @@ -222,11 +222,11 @@ public void setRecurrenceUnit(String recurrenceUnit) { * The schedule recurrence size. For example size 4 and unit WEEKLY means the recurrence is * every 4 weeks. */ - public Integer getRecurrenceSize() { + public Long getRecurrenceSize() { return this.recurrenceSize; } - public void setRecurrenceSize(Integer recurrenceSize) { + public void setRecurrenceSize(Long recurrenceSize) { this.recurrenceSize = recurrenceSize; } diff --git a/src/main/java/com/bunq/sdk/model/generated/endpoint/ScheduleInstanceApiObject.java b/src/main/java/com/bunq/sdk/model/generated/endpoint/ScheduleInstanceApiObject.java index e4bb1559..d113c656 100644 --- a/src/main/java/com/bunq/sdk/model/generated/endpoint/ScheduleInstanceApiObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/endpoint/ScheduleInstanceApiObject.java @@ -107,7 +107,7 @@ public ScheduleInstanceApiObject(String state) { this.stateFieldForRequest = state; } /** */ - public static BunqResponse get(Integer scheduleId, Integer scheduleInstanceId, Integer monetaryAccountId, Map params, Map customHeaders) { + public static BunqResponse get(Long scheduleId, Long scheduleInstanceId, Long monetaryAccountId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_READ, determineUserId(), determineMonetaryAccountId(monetaryAccountId), scheduleId, scheduleInstanceId), params, customHeaders); @@ -118,26 +118,26 @@ public static BunqResponse get() { return get(null, null, null, null, null); } - public static BunqResponse get(Integer scheduleId) { + public static BunqResponse get(Long scheduleId) { return get(scheduleId, null, null, null, null); } - public static BunqResponse get(Integer scheduleId, Integer scheduleInstanceId) { + public static BunqResponse get(Long scheduleId, Long scheduleInstanceId) { return get(scheduleId, scheduleInstanceId, null, null, null); } - public static BunqResponse get(Integer scheduleId, Integer scheduleInstanceId, Integer monetaryAccountId) { + public static BunqResponse get(Long scheduleId, Long scheduleInstanceId, Long monetaryAccountId) { return get(scheduleId, scheduleInstanceId, monetaryAccountId, null, null); } - public static BunqResponse get(Integer scheduleId, Integer scheduleInstanceId, Integer monetaryAccountId, Map params) { + public static BunqResponse get(Long scheduleId, Long scheduleInstanceId, Long monetaryAccountId, Map params) { return get(scheduleId, scheduleInstanceId, monetaryAccountId, params, null); } /** * @param state Change the state of the scheduleInstance from FAILED_USER_ERROR to RETRY. */ - public static BunqResponse update(Integer scheduleId, Integer scheduleInstanceId, Integer monetaryAccountId, String state, Map customHeaders) { + public static BunqResponse update(Long scheduleId, Long scheduleInstanceId, Long monetaryAccountId, String state, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -153,25 +153,25 @@ public static BunqResponse update(Integer scheduleId, Integer scheduleI return processForId(responseRaw); } - public static BunqResponse update(Integer scheduleId) { + public static BunqResponse update(Long scheduleId) { return update(scheduleId, null, null, null, null); } - public static BunqResponse update(Integer scheduleId, Integer scheduleInstanceId) { + public static BunqResponse update(Long scheduleId, Long scheduleInstanceId) { return update(scheduleId, scheduleInstanceId, null, null, null); } - public static BunqResponse update(Integer scheduleId, Integer scheduleInstanceId, Integer monetaryAccountId) { + public static BunqResponse update(Long scheduleId, Long scheduleInstanceId, Long monetaryAccountId) { return update(scheduleId, scheduleInstanceId, monetaryAccountId, null, null); } - public static BunqResponse update(Integer scheduleId, Integer scheduleInstanceId, Integer monetaryAccountId, String state) { + public static BunqResponse update(Long scheduleId, Long scheduleInstanceId, Long monetaryAccountId, String state) { return update(scheduleId, scheduleInstanceId, monetaryAccountId, state, null); } /** */ - public static BunqResponse> list(Integer scheduleId, Integer monetaryAccountId, Map params, Map customHeaders) { + public static BunqResponse> list(Long scheduleId, Long monetaryAccountId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_LISTING, determineUserId(), determineMonetaryAccountId(monetaryAccountId), scheduleId), params, customHeaders); @@ -182,15 +182,15 @@ public static BunqResponse> list() { return list(null, null, null, null); } - public static BunqResponse> list(Integer scheduleId) { + public static BunqResponse> list(Long scheduleId) { return list(scheduleId, null, null, null); } - public static BunqResponse> list(Integer scheduleId, Integer monetaryAccountId) { + public static BunqResponse> list(Long scheduleId, Long monetaryAccountId) { return list(scheduleId, monetaryAccountId, null, null); } - public static BunqResponse> list(Integer scheduleId, Integer monetaryAccountId, Map params) { + public static BunqResponse> list(Long scheduleId, Long monetaryAccountId, Map params) { return list(scheduleId, monetaryAccountId, params, null); } diff --git a/src/main/java/com/bunq/sdk/model/generated/endpoint/SchedulePaymentApiObject.java b/src/main/java/com/bunq/sdk/model/generated/endpoint/SchedulePaymentApiObject.java index 8b4ea621..7dc60a8f 100644 --- a/src/main/java/com/bunq/sdk/model/generated/endpoint/SchedulePaymentApiObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/endpoint/SchedulePaymentApiObject.java @@ -114,7 +114,7 @@ public SchedulePaymentApiObject(SchedulePaymentEntryObject payment, ScheduleApiO * @param schedule The schedule details when creating or updating a scheduled payment. * @param purpose The purpose of this scheduled payment. */ - public static BunqResponse create(SchedulePaymentEntryObject payment, ScheduleApiObject schedule, Integer monetaryAccountId, String purpose, Map customHeaders) { + public static BunqResponse create(SchedulePaymentEntryObject payment, ScheduleApiObject schedule, Long monetaryAccountId, String purpose, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -132,46 +132,46 @@ public static BunqResponse create(SchedulePaymentEntryObject payment, S return processForId(responseRaw); } - public static BunqResponse create() { + public static BunqResponse create() { return create(null, null, null, null, null); } - public static BunqResponse create(SchedulePaymentEntryObject payment) { + public static BunqResponse create(SchedulePaymentEntryObject payment) { return create(payment, null, null, null, null); } - public static BunqResponse create(SchedulePaymentEntryObject payment, ScheduleApiObject schedule) { + public static BunqResponse create(SchedulePaymentEntryObject payment, ScheduleApiObject schedule) { return create(payment, schedule, null, null, null); } - public static BunqResponse create(SchedulePaymentEntryObject payment, ScheduleApiObject schedule, Integer monetaryAccountId) { + public static BunqResponse create(SchedulePaymentEntryObject payment, ScheduleApiObject schedule, Long monetaryAccountId) { return create(payment, schedule, monetaryAccountId, null, null); } - public static BunqResponse create(SchedulePaymentEntryObject payment, ScheduleApiObject schedule, Integer monetaryAccountId, String purpose) { + public static BunqResponse create(SchedulePaymentEntryObject payment, ScheduleApiObject schedule, Long monetaryAccountId, String purpose) { return create(payment, schedule, monetaryAccountId, purpose, null); } /** */ - public static BunqResponse delete(Integer schedulePaymentId, Integer monetaryAccountId, Map customHeaders) { + public static BunqResponse delete(Long schedulePaymentId, Long monetaryAccountId, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.delete(String.format(ENDPOINT_URL_DELETE, determineUserId(), determineMonetaryAccountId(monetaryAccountId), schedulePaymentId), customHeaders); return new BunqResponse<>(null, responseRaw.getHeaders()); } - public static BunqResponse delete(Integer schedulePaymentId) { + public static BunqResponse delete(Long schedulePaymentId) { return delete(schedulePaymentId, null, null); } - public static BunqResponse delete(Integer schedulePaymentId, Integer monetaryAccountId) { + public static BunqResponse delete(Long schedulePaymentId, Long monetaryAccountId) { return delete(schedulePaymentId, monetaryAccountId, null); } /** */ - public static BunqResponse get(Integer schedulePaymentId, Integer monetaryAccountId, Map params, Map customHeaders) { + public static BunqResponse get(Long schedulePaymentId, Long monetaryAccountId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_READ, determineUserId(), determineMonetaryAccountId(monetaryAccountId), schedulePaymentId), params, customHeaders); @@ -182,21 +182,21 @@ public static BunqResponse get() { return get(null, null, null, null); } - public static BunqResponse get(Integer schedulePaymentId) { + public static BunqResponse get(Long schedulePaymentId) { return get(schedulePaymentId, null, null, null); } - public static BunqResponse get(Integer schedulePaymentId, Integer monetaryAccountId) { + public static BunqResponse get(Long schedulePaymentId, Long monetaryAccountId) { return get(schedulePaymentId, monetaryAccountId, null, null); } - public static BunqResponse get(Integer schedulePaymentId, Integer monetaryAccountId, Map params) { + public static BunqResponse get(Long schedulePaymentId, Long monetaryAccountId, Map params) { return get(schedulePaymentId, monetaryAccountId, params, null); } /** */ - public static BunqResponse> list(Integer monetaryAccountId, Map params, Map customHeaders) { + public static BunqResponse> list(Long monetaryAccountId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_LISTING, determineUserId(), determineMonetaryAccountId(monetaryAccountId)), params, customHeaders); @@ -207,11 +207,11 @@ public static BunqResponse> list() { return list(null, null, null); } - public static BunqResponse> list(Integer monetaryAccountId) { + public static BunqResponse> list(Long monetaryAccountId) { return list(monetaryAccountId, null, null); } - public static BunqResponse> list(Integer monetaryAccountId, Map params) { + public static BunqResponse> list(Long monetaryAccountId, Map params) { return list(monetaryAccountId, params, null); } @@ -219,7 +219,7 @@ public static BunqResponse> list(Integer monetary * @param payment The payment details. * @param schedule The schedule details when creating or updating a scheduled payment. */ - public static BunqResponse update(Integer schedulePaymentId, Integer monetaryAccountId, SchedulePaymentEntryObject payment, ScheduleApiObject schedule, Map customHeaders) { + public static BunqResponse update(Long schedulePaymentId, Long monetaryAccountId, SchedulePaymentEntryObject payment, ScheduleApiObject schedule, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -236,19 +236,19 @@ public static BunqResponse update(Integer schedulePaym return fromJson(SchedulePaymentApiObject.class, responseRaw, OBJECT_TYPE_PUT); } - public static BunqResponse update(Integer schedulePaymentId) { + public static BunqResponse update(Long schedulePaymentId) { return update(schedulePaymentId, null, null, null, null); } - public static BunqResponse update(Integer schedulePaymentId, Integer monetaryAccountId) { + public static BunqResponse update(Long schedulePaymentId, Long monetaryAccountId) { return update(schedulePaymentId, monetaryAccountId, null, null, null); } - public static BunqResponse update(Integer schedulePaymentId, Integer monetaryAccountId, SchedulePaymentEntryObject payment) { + public static BunqResponse update(Long schedulePaymentId, Long monetaryAccountId, SchedulePaymentEntryObject payment) { return update(schedulePaymentId, monetaryAccountId, payment, null, null); } - public static BunqResponse update(Integer schedulePaymentId, Integer monetaryAccountId, SchedulePaymentEntryObject payment, ScheduleApiObject schedule) { + public static BunqResponse update(Long schedulePaymentId, Long monetaryAccountId, SchedulePaymentEntryObject payment, ScheduleApiObject schedule) { return update(schedulePaymentId, monetaryAccountId, payment, schedule, null); } diff --git a/src/main/java/com/bunq/sdk/model/generated/endpoint/SchedulePaymentBatchApiObject.java b/src/main/java/com/bunq/sdk/model/generated/endpoint/SchedulePaymentBatchApiObject.java index e5f04d16..832e4e93 100644 --- a/src/main/java/com/bunq/sdk/model/generated/endpoint/SchedulePaymentBatchApiObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/endpoint/SchedulePaymentBatchApiObject.java @@ -82,7 +82,7 @@ public SchedulePaymentBatchApiObject(List payments, this.scheduleFieldForRequest = schedule; } /** */ - public static BunqResponse get(Integer schedulePaymentBatchId, Integer monetaryAccountId, Map params, Map customHeaders) { + public static BunqResponse get(Long schedulePaymentBatchId, Long monetaryAccountId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_READ, determineUserId(), determineMonetaryAccountId(monetaryAccountId), schedulePaymentBatchId), params, customHeaders); @@ -93,15 +93,15 @@ public static BunqResponse get() { return get(null, null, null, null); } - public static BunqResponse get(Integer schedulePaymentBatchId) { + public static BunqResponse get(Long schedulePaymentBatchId) { return get(schedulePaymentBatchId, null, null, null); } - public static BunqResponse get(Integer schedulePaymentBatchId, Integer monetaryAccountId) { + public static BunqResponse get(Long schedulePaymentBatchId, Long monetaryAccountId) { return get(schedulePaymentBatchId, monetaryAccountId, null, null); } - public static BunqResponse get(Integer schedulePaymentBatchId, Integer monetaryAccountId, Map params) { + public static BunqResponse get(Long schedulePaymentBatchId, Long monetaryAccountId, Map params) { return get(schedulePaymentBatchId, monetaryAccountId, params, null); } @@ -109,7 +109,7 @@ public static BunqResponse get(Integer schedulePa * @param payments The payment details. * @param schedule The schedule details when creating a scheduled payment. */ - public static BunqResponse create(List payments, ScheduleApiObject schedule, Integer monetaryAccountId, Map customHeaders) { + public static BunqResponse create(List payments, ScheduleApiObject schedule, Long monetaryAccountId, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -126,19 +126,19 @@ public static BunqResponse create(List paym return processForId(responseRaw); } - public static BunqResponse create() { + public static BunqResponse create() { return create(null, null, null, null); } - public static BunqResponse create(List payments) { + public static BunqResponse create(List payments) { return create(payments, null, null, null); } - public static BunqResponse create(List payments, ScheduleApiObject schedule) { + public static BunqResponse create(List payments, ScheduleApiObject schedule) { return create(payments, schedule, null, null); } - public static BunqResponse create(List payments, ScheduleApiObject schedule, Integer monetaryAccountId) { + public static BunqResponse create(List payments, ScheduleApiObject schedule, Long monetaryAccountId) { return create(payments, schedule, monetaryAccountId, null); } @@ -146,7 +146,7 @@ public static BunqResponse create(List paym * @param payments The payment details. * @param schedule The schedule details when creating a scheduled payment. */ - public static BunqResponse update(Integer schedulePaymentBatchId, Integer monetaryAccountId, List payments, ScheduleApiObject schedule, Map customHeaders) { + public static BunqResponse update(Long schedulePaymentBatchId, Long monetaryAccountId, List payments, ScheduleApiObject schedule, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -163,36 +163,36 @@ public static BunqResponse update(Integer schedulePaymentBatchId, Integ return processForId(responseRaw); } - public static BunqResponse update(Integer schedulePaymentBatchId) { + public static BunqResponse update(Long schedulePaymentBatchId) { return update(schedulePaymentBatchId, null, null, null, null); } - public static BunqResponse update(Integer schedulePaymentBatchId, Integer monetaryAccountId) { + public static BunqResponse update(Long schedulePaymentBatchId, Long monetaryAccountId) { return update(schedulePaymentBatchId, monetaryAccountId, null, null, null); } - public static BunqResponse update(Integer schedulePaymentBatchId, Integer monetaryAccountId, List payments) { + public static BunqResponse update(Long schedulePaymentBatchId, Long monetaryAccountId, List payments) { return update(schedulePaymentBatchId, monetaryAccountId, payments, null, null); } - public static BunqResponse update(Integer schedulePaymentBatchId, Integer monetaryAccountId, List payments, ScheduleApiObject schedule) { + public static BunqResponse update(Long schedulePaymentBatchId, Long monetaryAccountId, List payments, ScheduleApiObject schedule) { return update(schedulePaymentBatchId, monetaryAccountId, payments, schedule, null); } /** */ - public static BunqResponse delete(Integer schedulePaymentBatchId, Integer monetaryAccountId, Map customHeaders) { + public static BunqResponse delete(Long schedulePaymentBatchId, Long monetaryAccountId, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.delete(String.format(ENDPOINT_URL_DELETE, determineUserId(), determineMonetaryAccountId(monetaryAccountId), schedulePaymentBatchId), customHeaders); return new BunqResponse<>(null, responseRaw.getHeaders()); } - public static BunqResponse delete(Integer schedulePaymentBatchId) { + public static BunqResponse delete(Long schedulePaymentBatchId) { return delete(schedulePaymentBatchId, null, null); } - public static BunqResponse delete(Integer schedulePaymentBatchId, Integer monetaryAccountId) { + public static BunqResponse delete(Long schedulePaymentBatchId, Long monetaryAccountId) { return delete(schedulePaymentBatchId, monetaryAccountId, null); } diff --git a/src/main/java/com/bunq/sdk/model/generated/endpoint/ServerErrorApiObject.java b/src/main/java/com/bunq/sdk/model/generated/endpoint/ServerErrorApiObject.java index 09e0942c..9613dac9 100644 --- a/src/main/java/com/bunq/sdk/model/generated/endpoint/ServerErrorApiObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/endpoint/ServerErrorApiObject.java @@ -28,7 +28,7 @@ public class ServerErrorApiObject extends BunqModel { /** */ - public static BunqResponse create(Map customHeaders) { + public static BunqResponse create(Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -43,7 +43,7 @@ public static BunqResponse create(Map customHeaders) { return processForId(responseRaw); } - public static BunqResponse create() { + public static BunqResponse create() { return create(null); } diff --git a/src/main/java/com/bunq/sdk/model/generated/endpoint/SessionApiObject.java b/src/main/java/com/bunq/sdk/model/generated/endpoint/SessionApiObject.java index fdd9bbae..6eb32429 100644 --- a/src/main/java/com/bunq/sdk/model/generated/endpoint/SessionApiObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/endpoint/SessionApiObject.java @@ -29,14 +29,14 @@ public class SessionApiObject extends BunqModel { /** * Deletes the current session. */ - public static BunqResponse delete(Integer sessionId, Map customHeaders) { + public static BunqResponse delete(Long sessionId, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.delete(String.format(ENDPOINT_URL_DELETE, sessionId), customHeaders); return new BunqResponse<>(null, responseRaw.getHeaders()); } - public static BunqResponse delete(Integer sessionId) { + public static BunqResponse delete(Long sessionId) { return delete(sessionId, null); } diff --git a/src/main/java/com/bunq/sdk/model/generated/endpoint/ShareInviteMonetaryAccountInquiryApiObject.java b/src/main/java/com/bunq/sdk/model/generated/endpoint/ShareInviteMonetaryAccountInquiryApiObject.java index a87e830c..c1d36a77 100644 --- a/src/main/java/com/bunq/sdk/model/generated/endpoint/ShareInviteMonetaryAccountInquiryApiObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/endpoint/ShareInviteMonetaryAccountInquiryApiObject.java @@ -87,7 +87,7 @@ public class ShareInviteMonetaryAccountInquiryApiObject extends BunqModel { */ @Expose @SerializedName("monetary_account_id") - private Integer monetaryAccountId; + private Long monetaryAccountId; /** * The status of the share. Can be ACTIVE, REVOKED, REJECTED. @@ -115,7 +115,7 @@ public class ShareInviteMonetaryAccountInquiryApiObject extends BunqModel { */ @Expose @SerializedName("id") - private Integer id; + private Long id; /** * The pointer of the user to share with. @@ -137,7 +137,7 @@ public class ShareInviteMonetaryAccountInquiryApiObject extends BunqModel { */ @Expose @SerializedName("draft_share_invite_bank_id_field_for_request") - private Integer draftShareInviteBankIdFieldForRequest; + private Long draftShareInviteBankIdFieldForRequest; /** * DEPRECATED: USE `access_type` INSTEAD | The share details. Only one of these objects may be @@ -194,31 +194,31 @@ public ShareInviteMonetaryAccountInquiryApiObject(PointerObject counterUserAlias this(counterUserAlias, accessType, null, null, null, null, null, null, null); } - public ShareInviteMonetaryAccountInquiryApiObject(PointerObject counterUserAlias, String accessType, Integer draftShareInviteBankId) { + public ShareInviteMonetaryAccountInquiryApiObject(PointerObject counterUserAlias, String accessType, Long draftShareInviteBankId) { this(counterUserAlias, accessType, draftShareInviteBankId, null, null, null, null, null, null); } - public ShareInviteMonetaryAccountInquiryApiObject(PointerObject counterUserAlias, String accessType, Integer draftShareInviteBankId, ShareDetailObject shareDetail) { + public ShareInviteMonetaryAccountInquiryApiObject(PointerObject counterUserAlias, String accessType, Long draftShareInviteBankId, ShareDetailObject shareDetail) { this(counterUserAlias, accessType, draftShareInviteBankId, shareDetail, null, null, null, null, null); } - public ShareInviteMonetaryAccountInquiryApiObject(PointerObject counterUserAlias, String accessType, Integer draftShareInviteBankId, ShareDetailObject shareDetail, String status) { + public ShareInviteMonetaryAccountInquiryApiObject(PointerObject counterUserAlias, String accessType, Long draftShareInviteBankId, ShareDetailObject shareDetail, String status) { this(counterUserAlias, accessType, draftShareInviteBankId, shareDetail, status, null, null, null, null); } - public ShareInviteMonetaryAccountInquiryApiObject(PointerObject counterUserAlias, String accessType, Integer draftShareInviteBankId, ShareDetailObject shareDetail, String status, String relationship) { + public ShareInviteMonetaryAccountInquiryApiObject(PointerObject counterUserAlias, String accessType, Long draftShareInviteBankId, ShareDetailObject shareDetail, String status, String relationship) { this(counterUserAlias, accessType, draftShareInviteBankId, shareDetail, status, relationship, null, null, null); } - public ShareInviteMonetaryAccountInquiryApiObject(PointerObject counterUserAlias, String accessType, Integer draftShareInviteBankId, ShareDetailObject shareDetail, String status, String relationship, String shareType) { + public ShareInviteMonetaryAccountInquiryApiObject(PointerObject counterUserAlias, String accessType, Long draftShareInviteBankId, ShareDetailObject shareDetail, String status, String relationship, String shareType) { this(counterUserAlias, accessType, draftShareInviteBankId, shareDetail, status, relationship, shareType, null, null); } - public ShareInviteMonetaryAccountInquiryApiObject(PointerObject counterUserAlias, String accessType, Integer draftShareInviteBankId, ShareDetailObject shareDetail, String status, String relationship, String shareType, String startDate) { + public ShareInviteMonetaryAccountInquiryApiObject(PointerObject counterUserAlias, String accessType, Long draftShareInviteBankId, ShareDetailObject shareDetail, String status, String relationship, String shareType, String startDate) { this(counterUserAlias, accessType, draftShareInviteBankId, shareDetail, status, relationship, shareType, startDate, null); } - public ShareInviteMonetaryAccountInquiryApiObject(PointerObject counterUserAlias, String accessType, Integer draftShareInviteBankId, ShareDetailObject shareDetail, String status, String relationship, String shareType, String startDate, String endDate) { + public ShareInviteMonetaryAccountInquiryApiObject(PointerObject counterUserAlias, String accessType, Long draftShareInviteBankId, ShareDetailObject shareDetail, String status, String relationship, String shareType, String startDate, String endDate) { this.counterUserAliasFieldForRequest = counterUserAlias; this.accessTypeFieldForRequest = accessType; this.draftShareInviteBankIdFieldForRequest = draftShareInviteBankId; @@ -245,7 +245,7 @@ public ShareInviteMonetaryAccountInquiryApiObject(PointerObject counterUserAlias * @param startDate DEPRECATED: USE `access_type` INSTEAD | The start date of this share. * @param endDate DEPRECATED: USE `access_type` INSTEAD | The expiration date of this share. */ - public static BunqResponse create(PointerObject counterUserAlias, Integer monetaryAccountId, String accessType, Integer draftShareInviteBankId, ShareDetailObject shareDetail, String status, String relationship, String shareType, String startDate, String endDate, Map customHeaders) { + public static BunqResponse create(PointerObject counterUserAlias, Long monetaryAccountId, String accessType, Long draftShareInviteBankId, ShareDetailObject shareDetail, String status, String relationship, String shareType, String startDate, String endDate, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -269,47 +269,47 @@ public static BunqResponse create(PointerObject counterUserAlias, Integ return processForId(responseRaw); } - public static BunqResponse create() { + public static BunqResponse create() { return create(null, null, null, null, null, null, null, null, null, null, null); } - public static BunqResponse create(PointerObject counterUserAlias) { + public static BunqResponse create(PointerObject counterUserAlias) { return create(counterUserAlias, null, null, null, null, null, null, null, null, null, null); } - public static BunqResponse create(PointerObject counterUserAlias, Integer monetaryAccountId) { + public static BunqResponse create(PointerObject counterUserAlias, Long monetaryAccountId) { return create(counterUserAlias, monetaryAccountId, null, null, null, null, null, null, null, null, null); } - public static BunqResponse create(PointerObject counterUserAlias, Integer monetaryAccountId, String accessType) { + public static BunqResponse create(PointerObject counterUserAlias, Long monetaryAccountId, String accessType) { return create(counterUserAlias, monetaryAccountId, accessType, null, null, null, null, null, null, null, null); } - public static BunqResponse create(PointerObject counterUserAlias, Integer monetaryAccountId, String accessType, Integer draftShareInviteBankId) { + public static BunqResponse create(PointerObject counterUserAlias, Long monetaryAccountId, String accessType, Long draftShareInviteBankId) { return create(counterUserAlias, monetaryAccountId, accessType, draftShareInviteBankId, null, null, null, null, null, null, null); } - public static BunqResponse create(PointerObject counterUserAlias, Integer monetaryAccountId, String accessType, Integer draftShareInviteBankId, ShareDetailObject shareDetail) { + public static BunqResponse create(PointerObject counterUserAlias, Long monetaryAccountId, String accessType, Long draftShareInviteBankId, ShareDetailObject shareDetail) { return create(counterUserAlias, monetaryAccountId, accessType, draftShareInviteBankId, shareDetail, null, null, null, null, null, null); } - public static BunqResponse create(PointerObject counterUserAlias, Integer monetaryAccountId, String accessType, Integer draftShareInviteBankId, ShareDetailObject shareDetail, String status) { + public static BunqResponse create(PointerObject counterUserAlias, Long monetaryAccountId, String accessType, Long draftShareInviteBankId, ShareDetailObject shareDetail, String status) { return create(counterUserAlias, monetaryAccountId, accessType, draftShareInviteBankId, shareDetail, status, null, null, null, null, null); } - public static BunqResponse create(PointerObject counterUserAlias, Integer monetaryAccountId, String accessType, Integer draftShareInviteBankId, ShareDetailObject shareDetail, String status, String relationship) { + public static BunqResponse create(PointerObject counterUserAlias, Long monetaryAccountId, String accessType, Long draftShareInviteBankId, ShareDetailObject shareDetail, String status, String relationship) { return create(counterUserAlias, monetaryAccountId, accessType, draftShareInviteBankId, shareDetail, status, relationship, null, null, null, null); } - public static BunqResponse create(PointerObject counterUserAlias, Integer monetaryAccountId, String accessType, Integer draftShareInviteBankId, ShareDetailObject shareDetail, String status, String relationship, String shareType) { + public static BunqResponse create(PointerObject counterUserAlias, Long monetaryAccountId, String accessType, Long draftShareInviteBankId, ShareDetailObject shareDetail, String status, String relationship, String shareType) { return create(counterUserAlias, monetaryAccountId, accessType, draftShareInviteBankId, shareDetail, status, relationship, shareType, null, null, null); } - public static BunqResponse create(PointerObject counterUserAlias, Integer monetaryAccountId, String accessType, Integer draftShareInviteBankId, ShareDetailObject shareDetail, String status, String relationship, String shareType, String startDate) { + public static BunqResponse create(PointerObject counterUserAlias, Long monetaryAccountId, String accessType, Long draftShareInviteBankId, ShareDetailObject shareDetail, String status, String relationship, String shareType, String startDate) { return create(counterUserAlias, monetaryAccountId, accessType, draftShareInviteBankId, shareDetail, status, relationship, shareType, startDate, null, null); } - public static BunqResponse create(PointerObject counterUserAlias, Integer monetaryAccountId, String accessType, Integer draftShareInviteBankId, ShareDetailObject shareDetail, String status, String relationship, String shareType, String startDate, String endDate) { + public static BunqResponse create(PointerObject counterUserAlias, Long monetaryAccountId, String accessType, Long draftShareInviteBankId, ShareDetailObject shareDetail, String status, String relationship, String shareType, String startDate, String endDate) { return create(counterUserAlias, monetaryAccountId, accessType, draftShareInviteBankId, shareDetail, status, relationship, shareType, startDate, endDate, null); } @@ -317,7 +317,7 @@ public static BunqResponse create(PointerObject counterUserAlias, Integ * [DEPRECATED - use /share-invite-monetary-account-response] Get the details of a specific * share inquiry. */ - public static BunqResponse get(Integer shareInviteMonetaryAccountInquiryId, Integer monetaryAccountId, Map params, Map customHeaders) { + public static BunqResponse get(Long shareInviteMonetaryAccountInquiryId, Long monetaryAccountId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_READ, determineUserId(), determineMonetaryAccountId(monetaryAccountId), shareInviteMonetaryAccountInquiryId), params, customHeaders); @@ -328,15 +328,15 @@ public static BunqResponse get() { return get(null, null, null, null); } - public static BunqResponse get(Integer shareInviteMonetaryAccountInquiryId) { + public static BunqResponse get(Long shareInviteMonetaryAccountInquiryId) { return get(shareInviteMonetaryAccountInquiryId, null, null, null); } - public static BunqResponse get(Integer shareInviteMonetaryAccountInquiryId, Integer monetaryAccountId) { + public static BunqResponse get(Long shareInviteMonetaryAccountInquiryId, Long monetaryAccountId) { return get(shareInviteMonetaryAccountInquiryId, monetaryAccountId, null, null); } - public static BunqResponse get(Integer shareInviteMonetaryAccountInquiryId, Integer monetaryAccountId, Map params) { + public static BunqResponse get(Long shareInviteMonetaryAccountInquiryId, Long monetaryAccountId, Map params) { return get(shareInviteMonetaryAccountInquiryId, monetaryAccountId, params, null); } @@ -352,7 +352,7 @@ public static BunqResponse get(Integ * @param startDate DEPRECATED: USE `access_type` INSTEAD | The start date of this share. * @param endDate DEPRECATED: USE `access_type` INSTEAD | The expiration date of this share. */ - public static BunqResponse update(Integer shareInviteMonetaryAccountInquiryId, Integer monetaryAccountId, String accessType, ShareDetailObject shareDetail, String status, String startDate, String endDate, Map customHeaders) { + public static BunqResponse update(Long shareInviteMonetaryAccountInquiryId, Long monetaryAccountId, String accessType, ShareDetailObject shareDetail, String status, String startDate, String endDate, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -372,31 +372,31 @@ public static BunqResponse update(Integer shareInviteMonetaryAccountInq return processForId(responseRaw); } - public static BunqResponse update(Integer shareInviteMonetaryAccountInquiryId) { + public static BunqResponse update(Long shareInviteMonetaryAccountInquiryId) { return update(shareInviteMonetaryAccountInquiryId, null, null, null, null, null, null, null); } - public static BunqResponse update(Integer shareInviteMonetaryAccountInquiryId, Integer monetaryAccountId) { + public static BunqResponse update(Long shareInviteMonetaryAccountInquiryId, Long monetaryAccountId) { return update(shareInviteMonetaryAccountInquiryId, monetaryAccountId, null, null, null, null, null, null); } - public static BunqResponse update(Integer shareInviteMonetaryAccountInquiryId, Integer monetaryAccountId, String accessType) { + public static BunqResponse update(Long shareInviteMonetaryAccountInquiryId, Long monetaryAccountId, String accessType) { return update(shareInviteMonetaryAccountInquiryId, monetaryAccountId, accessType, null, null, null, null, null); } - public static BunqResponse update(Integer shareInviteMonetaryAccountInquiryId, Integer monetaryAccountId, String accessType, ShareDetailObject shareDetail) { + public static BunqResponse update(Long shareInviteMonetaryAccountInquiryId, Long monetaryAccountId, String accessType, ShareDetailObject shareDetail) { return update(shareInviteMonetaryAccountInquiryId, monetaryAccountId, accessType, shareDetail, null, null, null, null); } - public static BunqResponse update(Integer shareInviteMonetaryAccountInquiryId, Integer monetaryAccountId, String accessType, ShareDetailObject shareDetail, String status) { + public static BunqResponse update(Long shareInviteMonetaryAccountInquiryId, Long monetaryAccountId, String accessType, ShareDetailObject shareDetail, String status) { return update(shareInviteMonetaryAccountInquiryId, monetaryAccountId, accessType, shareDetail, status, null, null, null); } - public static BunqResponse update(Integer shareInviteMonetaryAccountInquiryId, Integer monetaryAccountId, String accessType, ShareDetailObject shareDetail, String status, String startDate) { + public static BunqResponse update(Long shareInviteMonetaryAccountInquiryId, Long monetaryAccountId, String accessType, ShareDetailObject shareDetail, String status, String startDate) { return update(shareInviteMonetaryAccountInquiryId, monetaryAccountId, accessType, shareDetail, status, startDate, null, null); } - public static BunqResponse update(Integer shareInviteMonetaryAccountInquiryId, Integer monetaryAccountId, String accessType, ShareDetailObject shareDetail, String status, String startDate, String endDate) { + public static BunqResponse update(Long shareInviteMonetaryAccountInquiryId, Long monetaryAccountId, String accessType, ShareDetailObject shareDetail, String status, String startDate, String endDate) { return update(shareInviteMonetaryAccountInquiryId, monetaryAccountId, accessType, shareDetail, status, startDate, endDate, null); } @@ -405,7 +405,7 @@ public static BunqResponse update(Integer shareInviteMonetaryAccountInq * inquiries for a monetary account, only if the requesting user has permission to change the * details of the various ones. */ - public static BunqResponse> list(Integer monetaryAccountId, Map params, Map customHeaders) { + public static BunqResponse> list(Long monetaryAccountId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_LISTING, determineUserId(), determineMonetaryAccountId(monetaryAccountId)), params, customHeaders); @@ -416,11 +416,11 @@ public static BunqResponse> lis return list(null, null, null); } - public static BunqResponse> list(Integer monetaryAccountId) { + public static BunqResponse> list(Long monetaryAccountId) { return list(monetaryAccountId, null, null); } - public static BunqResponse> list(Integer monetaryAccountId, Map params) { + public static BunqResponse> list(Long monetaryAccountId, Map params) { return list(monetaryAccountId, params, null); } @@ -471,11 +471,11 @@ public void setCounterUserAlias(LabelUserObject counterUserAlias) { /** * The id of the monetary account the share applies to. */ - public Integer getMonetaryAccountId() { + public Long getMonetaryAccountId() { return this.monetaryAccountId; } - public void setMonetaryAccountId(Integer monetaryAccountId) { + public void setMonetaryAccountId(Long monetaryAccountId) { this.monetaryAccountId = monetaryAccountId; } @@ -515,11 +515,11 @@ public void setRelationship(String relationship) { /** * The id of the newly created share invite. */ - public Integer getId() { + public Long getId() { return this.id; } - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } diff --git a/src/main/java/com/bunq/sdk/model/generated/endpoint/ShareInviteMonetaryAccountResponseApiObject.java b/src/main/java/com/bunq/sdk/model/generated/endpoint/ShareInviteMonetaryAccountResponseApiObject.java index 9fe9ce1b..1e3c4f80 100644 --- a/src/main/java/com/bunq/sdk/model/generated/endpoint/ShareInviteMonetaryAccountResponseApiObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/endpoint/ShareInviteMonetaryAccountResponseApiObject.java @@ -48,7 +48,7 @@ public class ShareInviteMonetaryAccountResponseApiObject extends BunqModel { */ @Expose @SerializedName("id") - private Integer id; + private Long id; /** * The timestamp of the ShareInviteBankResponse creation. @@ -83,14 +83,14 @@ public class ShareInviteMonetaryAccountResponseApiObject extends BunqModel { */ @Expose @SerializedName("monetary_account_id") - private Integer monetaryAccountId; + private Long monetaryAccountId; /** * The id of the draft share invite bank. */ @Expose @SerializedName("draft_share_invite_bank_id") - private Integer draftShareInviteBankId; + private Long draftShareInviteBankId; /** * The share details. @@ -165,7 +165,7 @@ public class ShareInviteMonetaryAccountResponseApiObject extends BunqModel { */ @Expose @SerializedName("card_id_field_for_request") - private Integer cardIdFieldForRequest; + private Long cardIdFieldForRequest; public ShareInviteMonetaryAccountResponseApiObject() { this(null, null); @@ -175,13 +175,13 @@ public ShareInviteMonetaryAccountResponseApiObject(String status) { this(status, null); } - public ShareInviteMonetaryAccountResponseApiObject(String status, Integer cardId) { + public ShareInviteMonetaryAccountResponseApiObject(String status, Long cardId) { this.statusFieldForRequest = status; this.cardIdFieldForRequest = cardId; } /** * Return the details of a specific share a user was invited to. */ - public static BunqResponse get(Integer shareInviteMonetaryAccountResponseId, Map params, Map customHeaders) { + public static BunqResponse get(Long shareInviteMonetaryAccountResponseId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_READ, determineUserId(), shareInviteMonetaryAccountResponseId), params, customHeaders); @@ -192,11 +192,11 @@ public static BunqResponse get() { return get(null, null, null); } - public static BunqResponse get(Integer shareInviteMonetaryAccountResponseId) { + public static BunqResponse get(Long shareInviteMonetaryAccountResponseId) { return get(shareInviteMonetaryAccountResponseId, null, null); } - public static BunqResponse get(Integer shareInviteMonetaryAccountResponseId, Map params) { + public static BunqResponse get(Long shareInviteMonetaryAccountResponseId, Map params) { return get(shareInviteMonetaryAccountResponseId, params, null); } @@ -209,7 +209,7 @@ public static BunqResponse get(Inte * @param cardId The card to link to the shared monetary account. Used only if share_detail is * ShareDetailCardPayment. */ - public static BunqResponse update(Integer shareInviteMonetaryAccountResponseId, String status, Integer cardId, Map customHeaders) { + public static BunqResponse update(Long shareInviteMonetaryAccountResponseId, String status, Long cardId, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -226,15 +226,15 @@ public static BunqResponse update(Integer shareInviteMonetaryAccountRes return processForId(responseRaw); } - public static BunqResponse update(Integer shareInviteMonetaryAccountResponseId) { + public static BunqResponse update(Long shareInviteMonetaryAccountResponseId) { return update(shareInviteMonetaryAccountResponseId, null, null, null); } - public static BunqResponse update(Integer shareInviteMonetaryAccountResponseId, String status) { + public static BunqResponse update(Long shareInviteMonetaryAccountResponseId, String status) { return update(shareInviteMonetaryAccountResponseId, status, null, null); } - public static BunqResponse update(Integer shareInviteMonetaryAccountResponseId, String status, Integer cardId) { + public static BunqResponse update(Long shareInviteMonetaryAccountResponseId, String status, Long cardId) { return update(shareInviteMonetaryAccountResponseId, status, cardId, null); } @@ -259,11 +259,11 @@ public static BunqResponse> li /** * The id of the ShareInviteBankResponse. */ - public Integer getId() { + public Long getId() { return this.id; } - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } @@ -314,22 +314,22 @@ public void setUserAliasCancelled(LabelUserObject userAliasCancelled) { /** * The id of the monetary account the ACCEPTED share applies to. null otherwise. */ - public Integer getMonetaryAccountId() { + public Long getMonetaryAccountId() { return this.monetaryAccountId; } - public void setMonetaryAccountId(Integer monetaryAccountId) { + public void setMonetaryAccountId(Long monetaryAccountId) { this.monetaryAccountId = monetaryAccountId; } /** * The id of the draft share invite bank. */ - public Integer getDraftShareInviteBankId() { + public Long getDraftShareInviteBankId() { return this.draftShareInviteBankId; } - public void setDraftShareInviteBankId(Integer draftShareInviteBankId) { + public void setDraftShareInviteBankId(Long draftShareInviteBankId) { this.draftShareInviteBankId = draftShareInviteBankId; } diff --git a/src/main/java/com/bunq/sdk/model/generated/endpoint/SofortMerchantTransactionApiObject.java b/src/main/java/com/bunq/sdk/model/generated/endpoint/SofortMerchantTransactionApiObject.java index 841bb98c..dd74eeb9 100644 --- a/src/main/java/com/bunq/sdk/model/generated/endpoint/SofortMerchantTransactionApiObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/endpoint/SofortMerchantTransactionApiObject.java @@ -46,7 +46,7 @@ public class SofortMerchantTransactionApiObject extends BunqModel { */ @Expose @SerializedName("monetary_account_id") - private Integer monetaryAccountId; + private Long monetaryAccountId; /** * The alias of the monetary account to add money to. @@ -138,7 +138,7 @@ public SofortMerchantTransactionApiObject(AmountObject amountRequested, String i this.issuerFieldForRequest = issuer; } /** */ - public static BunqResponse get(Integer sofortMerchantTransactionId, Integer monetaryAccountId, Map params, Map customHeaders) { + public static BunqResponse get(Long sofortMerchantTransactionId, Long monetaryAccountId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_READ, determineUserId(), determineMonetaryAccountId(monetaryAccountId), sofortMerchantTransactionId), params, customHeaders); @@ -149,21 +149,21 @@ public static BunqResponse get() { return get(null, null, null, null); } - public static BunqResponse get(Integer sofortMerchantTransactionId) { + public static BunqResponse get(Long sofortMerchantTransactionId) { return get(sofortMerchantTransactionId, null, null, null); } - public static BunqResponse get(Integer sofortMerchantTransactionId, Integer monetaryAccountId) { + public static BunqResponse get(Long sofortMerchantTransactionId, Long monetaryAccountId) { return get(sofortMerchantTransactionId, monetaryAccountId, null, null); } - public static BunqResponse get(Integer sofortMerchantTransactionId, Integer monetaryAccountId, Map params) { + public static BunqResponse get(Long sofortMerchantTransactionId, Long monetaryAccountId, Map params) { return get(sofortMerchantTransactionId, monetaryAccountId, params, null); } /** */ - public static BunqResponse> list(Integer monetaryAccountId, Map params, Map customHeaders) { + public static BunqResponse> list(Long monetaryAccountId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_LISTING, determineUserId(), determineMonetaryAccountId(monetaryAccountId)), params, customHeaders); @@ -174,22 +174,22 @@ public static BunqResponse> list() { return list(null, null, null); } - public static BunqResponse> list(Integer monetaryAccountId) { + public static BunqResponse> list(Long monetaryAccountId) { return list(monetaryAccountId, null, null); } - public static BunqResponse> list(Integer monetaryAccountId, Map params) { + public static BunqResponse> list(Long monetaryAccountId, Map params) { return list(monetaryAccountId, params, null); } /** * The id of the monetary account this sofort merchant transaction links to. */ - public Integer getMonetaryAccountId() { + public Long getMonetaryAccountId() { return this.monetaryAccountId; } - public void setMonetaryAccountId(Integer monetaryAccountId) { + public void setMonetaryAccountId(Long monetaryAccountId) { this.monetaryAccountId = monetaryAccountId; } diff --git a/src/main/java/com/bunq/sdk/model/generated/endpoint/TokenQrRequestIdealApiObject.java b/src/main/java/com/bunq/sdk/model/generated/endpoint/TokenQrRequestIdealApiObject.java index 8d8b717c..65096818 100644 --- a/src/main/java/com/bunq/sdk/model/generated/endpoint/TokenQrRequestIdealApiObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/endpoint/TokenQrRequestIdealApiObject.java @@ -50,7 +50,7 @@ public class TokenQrRequestIdealApiObject extends BunqModel { */ @Expose @SerializedName("id") - private Integer id; + private Long id; /** * The timestamp of when the RequestResponse was responded to. @@ -71,7 +71,7 @@ public class TokenQrRequestIdealApiObject extends BunqModel { */ @Expose @SerializedName("monetary_account_id") - private Integer monetaryAccountId; + private Long monetaryAccountId; /** * The requested Amount. @@ -130,7 +130,7 @@ public class TokenQrRequestIdealApiObject extends BunqModel { */ @Expose @SerializedName("minimum_age") - private Integer minimumAge; + private Long minimumAge; /** * Whether or not an address must be provided on accept. @@ -186,7 +186,7 @@ public class TokenQrRequestIdealApiObject extends BunqModel { */ @Expose @SerializedName("eligible_whitelist_id") - private Integer eligibleWhitelistId; + private Long eligibleWhitelistId; /** * The token passed from a site or read from a QR code. @@ -232,11 +232,11 @@ public static BunqResponse create(String token) { /** * The id of the RequestResponse. */ - public Integer getId() { + public Long getId() { return this.id; } - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } @@ -265,11 +265,11 @@ public void setTimeExpiry(String timeExpiry) { /** * The id of the MonetaryAccount the RequestResponse was received on. */ - public Integer getMonetaryAccountId() { + public Long getMonetaryAccountId() { return this.monetaryAccountId; } - public void setMonetaryAccountId(Integer monetaryAccountId) { + public void setMonetaryAccountId(Long monetaryAccountId) { this.monetaryAccountId = monetaryAccountId; } @@ -356,11 +356,11 @@ public void setStatus(String status) { /** * The minimum age the user accepting the RequestResponse must have. */ - public Integer getMinimumAge() { + public Long getMinimumAge() { return this.minimumAge; } - public void setMinimumAge(Integer minimumAge) { + public void setMinimumAge(Long minimumAge) { this.minimumAge = minimumAge; } @@ -444,11 +444,11 @@ public void setSubType(String subType) { /** * The whitelist id for this action or null. */ - public Integer getEligibleWhitelistId() { + public Long getEligibleWhitelistId() { return this.eligibleWhitelistId; } - public void setEligibleWhitelistId(Integer eligibleWhitelistId) { + public void setEligibleWhitelistId(Long eligibleWhitelistId) { this.eligibleWhitelistId = eligibleWhitelistId; } diff --git a/src/main/java/com/bunq/sdk/model/generated/endpoint/TransferwiseAccountQuoteApiObject.java b/src/main/java/com/bunq/sdk/model/generated/endpoint/TransferwiseAccountQuoteApiObject.java index cf0df076..0f209f8e 100644 --- a/src/main/java/com/bunq/sdk/model/generated/endpoint/TransferwiseAccountQuoteApiObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/endpoint/TransferwiseAccountQuoteApiObject.java @@ -144,7 +144,7 @@ public TransferwiseAccountQuoteApiObject(String nameAccountHolder, String type, * @param detail The fields which were specified as "required" and have since been filled by the * user. Always provide the full list. */ - public static BunqResponse create(Integer transferwiseQuoteId, String nameAccountHolder, String type, String country, List detail, Map customHeaders) { + public static BunqResponse create(Long transferwiseQuoteId, String nameAccountHolder, String type, String country, List detail, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -163,33 +163,33 @@ public static BunqResponse create(Integer transferwiseQuoteId, String n return processForId(responseRaw); } - public static BunqResponse create() { + public static BunqResponse create() { return create(null, null, null, null, null, null); } - public static BunqResponse create(Integer transferwiseQuoteId) { + public static BunqResponse create(Long transferwiseQuoteId) { return create(transferwiseQuoteId, null, null, null, null, null); } - public static BunqResponse create(Integer transferwiseQuoteId, String nameAccountHolder) { + public static BunqResponse create(Long transferwiseQuoteId, String nameAccountHolder) { return create(transferwiseQuoteId, nameAccountHolder, null, null, null, null); } - public static BunqResponse create(Integer transferwiseQuoteId, String nameAccountHolder, String type) { + public static BunqResponse create(Long transferwiseQuoteId, String nameAccountHolder, String type) { return create(transferwiseQuoteId, nameAccountHolder, type, null, null, null); } - public static BunqResponse create(Integer transferwiseQuoteId, String nameAccountHolder, String type, String country) { + public static BunqResponse create(Long transferwiseQuoteId, String nameAccountHolder, String type, String country) { return create(transferwiseQuoteId, nameAccountHolder, type, country, null, null); } - public static BunqResponse create(Integer transferwiseQuoteId, String nameAccountHolder, String type, String country, List detail) { + public static BunqResponse create(Long transferwiseQuoteId, String nameAccountHolder, String type, String country, List detail) { return create(transferwiseQuoteId, nameAccountHolder, type, country, detail, null); } /** */ - public static BunqResponse get(Integer transferwiseQuoteId, Integer transferwiseAccountQuoteId, Map params, Map customHeaders) { + public static BunqResponse get(Long transferwiseQuoteId, Long transferwiseAccountQuoteId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_READ, determineUserId(), transferwiseQuoteId, transferwiseAccountQuoteId), params, customHeaders); @@ -200,21 +200,21 @@ public static BunqResponse get() { return get(null, null, null, null); } - public static BunqResponse get(Integer transferwiseQuoteId) { + public static BunqResponse get(Long transferwiseQuoteId) { return get(transferwiseQuoteId, null, null, null); } - public static BunqResponse get(Integer transferwiseQuoteId, Integer transferwiseAccountQuoteId) { + public static BunqResponse get(Long transferwiseQuoteId, Long transferwiseAccountQuoteId) { return get(transferwiseQuoteId, transferwiseAccountQuoteId, null, null); } - public static BunqResponse get(Integer transferwiseQuoteId, Integer transferwiseAccountQuoteId, Map params) { + public static BunqResponse get(Long transferwiseQuoteId, Long transferwiseAccountQuoteId, Map params) { return get(transferwiseQuoteId, transferwiseAccountQuoteId, params, null); } /** */ - public static BunqResponse> list(Integer transferwiseQuoteId, Map params, Map customHeaders) { + public static BunqResponse> list(Long transferwiseQuoteId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_LISTING, determineUserId(), transferwiseQuoteId), params, customHeaders); @@ -225,28 +225,28 @@ public static BunqResponse> list() { return list(null, null, null); } - public static BunqResponse> list(Integer transferwiseQuoteId) { + public static BunqResponse> list(Long transferwiseQuoteId) { return list(transferwiseQuoteId, null, null); } - public static BunqResponse> list(Integer transferwiseQuoteId, Map params) { + public static BunqResponse> list(Long transferwiseQuoteId, Map params) { return list(transferwiseQuoteId, params, null); } /** */ - public static BunqResponse delete(Integer transferwiseQuoteId, Integer transferwiseAccountQuoteId, Map customHeaders) { + public static BunqResponse delete(Long transferwiseQuoteId, Long transferwiseAccountQuoteId, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.delete(String.format(ENDPOINT_URL_DELETE, determineUserId(), transferwiseQuoteId, transferwiseAccountQuoteId), customHeaders); return new BunqResponse<>(null, responseRaw.getHeaders()); } - public static BunqResponse delete(Integer transferwiseQuoteId) { + public static BunqResponse delete(Long transferwiseQuoteId) { return delete(transferwiseQuoteId, null, null); } - public static BunqResponse delete(Integer transferwiseQuoteId, Integer transferwiseAccountQuoteId) { + public static BunqResponse delete(Long transferwiseQuoteId, Long transferwiseAccountQuoteId) { return delete(transferwiseQuoteId, transferwiseAccountQuoteId, null); } diff --git a/src/main/java/com/bunq/sdk/model/generated/endpoint/TransferwiseAccountRequirementApiObject.java b/src/main/java/com/bunq/sdk/model/generated/endpoint/TransferwiseAccountRequirementApiObject.java index 73e6672d..16867c18 100644 --- a/src/main/java/com/bunq/sdk/model/generated/endpoint/TransferwiseAccountRequirementApiObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/endpoint/TransferwiseAccountRequirementApiObject.java @@ -121,7 +121,7 @@ public TransferwiseAccountRequirementApiObject(String nameAccountHolder, String * @param detail The fields which were specified as "required" and have since been filled by the * user. Always provide the full list. */ - public static BunqResponse create(Integer transferwiseQuoteId, String nameAccountHolder, String type, String country, List detail, Map customHeaders) { + public static BunqResponse create(Long transferwiseQuoteId, String nameAccountHolder, String type, String country, List detail, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -140,33 +140,33 @@ public static BunqResponse create(Integer transferwiseQuoteId, String n return processForId(responseRaw); } - public static BunqResponse create() { + public static BunqResponse create() { return create(null, null, null, null, null, null); } - public static BunqResponse create(Integer transferwiseQuoteId) { + public static BunqResponse create(Long transferwiseQuoteId) { return create(transferwiseQuoteId, null, null, null, null, null); } - public static BunqResponse create(Integer transferwiseQuoteId, String nameAccountHolder) { + public static BunqResponse create(Long transferwiseQuoteId, String nameAccountHolder) { return create(transferwiseQuoteId, nameAccountHolder, null, null, null, null); } - public static BunqResponse create(Integer transferwiseQuoteId, String nameAccountHolder, String type) { + public static BunqResponse create(Long transferwiseQuoteId, String nameAccountHolder, String type) { return create(transferwiseQuoteId, nameAccountHolder, type, null, null, null); } - public static BunqResponse create(Integer transferwiseQuoteId, String nameAccountHolder, String type, String country) { + public static BunqResponse create(Long transferwiseQuoteId, String nameAccountHolder, String type, String country) { return create(transferwiseQuoteId, nameAccountHolder, type, country, null, null); } - public static BunqResponse create(Integer transferwiseQuoteId, String nameAccountHolder, String type, String country, List detail) { + public static BunqResponse create(Long transferwiseQuoteId, String nameAccountHolder, String type, String country, List detail) { return create(transferwiseQuoteId, nameAccountHolder, type, country, detail, null); } /** */ - public static BunqResponse> list(Integer transferwiseQuoteId, Map params, Map customHeaders) { + public static BunqResponse> list(Long transferwiseQuoteId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_LISTING, determineUserId(), transferwiseQuoteId), params, customHeaders); @@ -177,11 +177,11 @@ public static BunqResponse> list() return list(null, null, null); } - public static BunqResponse> list(Integer transferwiseQuoteId) { + public static BunqResponse> list(Long transferwiseQuoteId) { return list(transferwiseQuoteId, null, null); } - public static BunqResponse> list(Integer transferwiseQuoteId, Map params) { + public static BunqResponse> list(Long transferwiseQuoteId, Map params) { return list(transferwiseQuoteId, params, null); } diff --git a/src/main/java/com/bunq/sdk/model/generated/endpoint/TransferwiseQuoteApiObject.java b/src/main/java/com/bunq/sdk/model/generated/endpoint/TransferwiseQuoteApiObject.java index 28140597..05b48934 100644 --- a/src/main/java/com/bunq/sdk/model/generated/endpoint/TransferwiseQuoteApiObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/endpoint/TransferwiseQuoteApiObject.java @@ -46,7 +46,7 @@ public class TransferwiseQuoteApiObject extends BunqModel { */ @Expose @SerializedName("id") - private Integer id; + private Long id; /** * The timestamp of the quote's creation. @@ -166,7 +166,7 @@ public TransferwiseQuoteApiObject(String currencySource, String currencyTarget, * @param amountSource The source amount. Required if target amount is left empty. * @param amountTarget The target amount. Required if source amount is left empty. */ - public static BunqResponse create(String currencySource, String currencyTarget, AmountObject amountSource, AmountObject amountTarget, Map customHeaders) { + public static BunqResponse create(String currencySource, String currencyTarget, AmountObject amountSource, AmountObject amountTarget, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -185,29 +185,29 @@ public static BunqResponse create(String currencySource, String currenc return processForId(responseRaw); } - public static BunqResponse create() { + public static BunqResponse create() { return create(null, null, null, null, null); } - public static BunqResponse create(String currencySource) { + public static BunqResponse create(String currencySource) { return create(currencySource, null, null, null, null); } - public static BunqResponse create(String currencySource, String currencyTarget) { + public static BunqResponse create(String currencySource, String currencyTarget) { return create(currencySource, currencyTarget, null, null, null); } - public static BunqResponse create(String currencySource, String currencyTarget, AmountObject amountSource) { + public static BunqResponse create(String currencySource, String currencyTarget, AmountObject amountSource) { return create(currencySource, currencyTarget, amountSource, null, null); } - public static BunqResponse create(String currencySource, String currencyTarget, AmountObject amountSource, AmountObject amountTarget) { + public static BunqResponse create(String currencySource, String currencyTarget, AmountObject amountSource, AmountObject amountTarget) { return create(currencySource, currencyTarget, amountSource, amountTarget, null); } /** */ - public static BunqResponse get(Integer transferwiseQuoteId, Map params, Map customHeaders) { + public static BunqResponse get(Long transferwiseQuoteId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_READ, determineUserId(), transferwiseQuoteId), params, customHeaders); @@ -218,22 +218,22 @@ public static BunqResponse get() { return get(null, null, null); } - public static BunqResponse get(Integer transferwiseQuoteId) { + public static BunqResponse get(Long transferwiseQuoteId) { return get(transferwiseQuoteId, null, null); } - public static BunqResponse get(Integer transferwiseQuoteId, Map params) { + public static BunqResponse get(Long transferwiseQuoteId, Map params) { return get(transferwiseQuoteId, params, null); } /** * The id of the quote. */ - public Integer getId() { + public Long getId() { return this.id; } - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } diff --git a/src/main/java/com/bunq/sdk/model/generated/endpoint/TransferwiseQuoteTemporaryApiObject.java b/src/main/java/com/bunq/sdk/model/generated/endpoint/TransferwiseQuoteTemporaryApiObject.java index f82477cf..ba157cff 100644 --- a/src/main/java/com/bunq/sdk/model/generated/endpoint/TransferwiseQuoteTemporaryApiObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/endpoint/TransferwiseQuoteTemporaryApiObject.java @@ -46,7 +46,7 @@ public class TransferwiseQuoteTemporaryApiObject extends BunqModel { */ @Expose @SerializedName("id") - private Integer id; + private Long id; /** * The timestamp of the note's creation. @@ -152,7 +152,7 @@ public TransferwiseQuoteTemporaryApiObject(String currencySource, String currenc * @param amountSource The source amount. Required if target amount is left empty. * @param amountTarget The target amount. Required if source amount is left empty. */ - public static BunqResponse create(String currencySource, String currencyTarget, AmountObject amountSource, AmountObject amountTarget, Map customHeaders) { + public static BunqResponse create(String currencySource, String currencyTarget, AmountObject amountSource, AmountObject amountTarget, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -171,29 +171,29 @@ public static BunqResponse create(String currencySource, String currenc return processForId(responseRaw); } - public static BunqResponse create() { + public static BunqResponse create() { return create(null, null, null, null, null); } - public static BunqResponse create(String currencySource) { + public static BunqResponse create(String currencySource) { return create(currencySource, null, null, null, null); } - public static BunqResponse create(String currencySource, String currencyTarget) { + public static BunqResponse create(String currencySource, String currencyTarget) { return create(currencySource, currencyTarget, null, null, null); } - public static BunqResponse create(String currencySource, String currencyTarget, AmountObject amountSource) { + public static BunqResponse create(String currencySource, String currencyTarget, AmountObject amountSource) { return create(currencySource, currencyTarget, amountSource, null, null); } - public static BunqResponse create(String currencySource, String currencyTarget, AmountObject amountSource, AmountObject amountTarget) { + public static BunqResponse create(String currencySource, String currencyTarget, AmountObject amountSource, AmountObject amountTarget) { return create(currencySource, currencyTarget, amountSource, amountTarget, null); } /** */ - public static BunqResponse get(Integer transferwiseQuoteTemporaryId, Map params, Map customHeaders) { + public static BunqResponse get(Long transferwiseQuoteTemporaryId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_READ, determineUserId(), transferwiseQuoteTemporaryId), params, customHeaders); @@ -204,22 +204,22 @@ public static BunqResponse get() { return get(null, null, null); } - public static BunqResponse get(Integer transferwiseQuoteTemporaryId) { + public static BunqResponse get(Long transferwiseQuoteTemporaryId) { return get(transferwiseQuoteTemporaryId, null, null); } - public static BunqResponse get(Integer transferwiseQuoteTemporaryId, Map params) { + public static BunqResponse get(Long transferwiseQuoteTemporaryId, Map params) { return get(transferwiseQuoteTemporaryId, params, null); } /** * The id of the quote. */ - public Integer getId() { + public Long getId() { return this.id; } - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } diff --git a/src/main/java/com/bunq/sdk/model/generated/endpoint/TransferwiseTransferApiObject.java b/src/main/java/com/bunq/sdk/model/generated/endpoint/TransferwiseTransferApiObject.java index 02291003..962fc798 100644 --- a/src/main/java/com/bunq/sdk/model/generated/endpoint/TransferwiseTransferApiObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/endpoint/TransferwiseTransferApiObject.java @@ -164,7 +164,7 @@ public TransferwiseTransferApiObject(String monetaryAccountId, String recipientI * @param monetaryAccountId The id of the monetary account the payment should be made from. * @param recipientId The id of the target account. */ - public static BunqResponse create(Integer transferwiseQuoteId, String monetaryAccountId, String recipientId, Map customHeaders) { + public static BunqResponse create(Long transferwiseQuoteId, String monetaryAccountId, String recipientId, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -181,25 +181,25 @@ public static BunqResponse create(Integer transferwiseQuoteId, String m return processForId(responseRaw); } - public static BunqResponse create() { + public static BunqResponse create() { return create(null, null, null, null); } - public static BunqResponse create(Integer transferwiseQuoteId) { + public static BunqResponse create(Long transferwiseQuoteId) { return create(transferwiseQuoteId, null, null, null); } - public static BunqResponse create(Integer transferwiseQuoteId, String monetaryAccountId) { + public static BunqResponse create(Long transferwiseQuoteId, String monetaryAccountId) { return create(transferwiseQuoteId, monetaryAccountId, null, null); } - public static BunqResponse create(Integer transferwiseQuoteId, String monetaryAccountId, String recipientId) { + public static BunqResponse create(Long transferwiseQuoteId, String monetaryAccountId, String recipientId) { return create(transferwiseQuoteId, monetaryAccountId, recipientId, null); } /** */ - public static BunqResponse get(Integer transferwiseQuoteId, Integer transferwiseTransferId, Map params, Map customHeaders) { + public static BunqResponse get(Long transferwiseQuoteId, Long transferwiseTransferId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_READ, determineUserId(), transferwiseQuoteId, transferwiseTransferId), params, customHeaders); @@ -210,21 +210,21 @@ public static BunqResponse get() { return get(null, null, null, null); } - public static BunqResponse get(Integer transferwiseQuoteId) { + public static BunqResponse get(Long transferwiseQuoteId) { return get(transferwiseQuoteId, null, null, null); } - public static BunqResponse get(Integer transferwiseQuoteId, Integer transferwiseTransferId) { + public static BunqResponse get(Long transferwiseQuoteId, Long transferwiseTransferId) { return get(transferwiseQuoteId, transferwiseTransferId, null, null); } - public static BunqResponse get(Integer transferwiseQuoteId, Integer transferwiseTransferId, Map params) { + public static BunqResponse get(Long transferwiseQuoteId, Long transferwiseTransferId, Map params) { return get(transferwiseQuoteId, transferwiseTransferId, params, null); } /** */ - public static BunqResponse> list(Integer transferwiseQuoteId, Map params, Map customHeaders) { + public static BunqResponse> list(Long transferwiseQuoteId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_LISTING, determineUserId(), transferwiseQuoteId), params, customHeaders); @@ -235,11 +235,11 @@ public static BunqResponse> list() { return list(null, null, null); } - public static BunqResponse> list(Integer transferwiseQuoteId) { + public static BunqResponse> list(Long transferwiseQuoteId) { return list(transferwiseQuoteId, null, null); } - public static BunqResponse> list(Integer transferwiseQuoteId, Map params) { + public static BunqResponse> list(Long transferwiseQuoteId, Map params) { return list(transferwiseQuoteId, params, null); } diff --git a/src/main/java/com/bunq/sdk/model/generated/endpoint/TransferwiseTransferRequirementApiObject.java b/src/main/java/com/bunq/sdk/model/generated/endpoint/TransferwiseTransferRequirementApiObject.java index 27202bea..d40ce094 100644 --- a/src/main/java/com/bunq/sdk/model/generated/endpoint/TransferwiseTransferRequirementApiObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/endpoint/TransferwiseTransferRequirementApiObject.java @@ -85,7 +85,7 @@ public TransferwiseTransferRequirementApiObject(String recipientId, List create(Integer transferwiseQuoteId, String recipientId, List detail, Map customHeaders) { + public static BunqResponse create(Long transferwiseQuoteId, String recipientId, List detail, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -102,19 +102,19 @@ public static BunqResponse create(Integer transferwiseQuoteId, String r return processForId(responseRaw); } - public static BunqResponse create() { + public static BunqResponse create() { return create(null, null, null, null); } - public static BunqResponse create(Integer transferwiseQuoteId) { + public static BunqResponse create(Long transferwiseQuoteId) { return create(transferwiseQuoteId, null, null, null); } - public static BunqResponse create(Integer transferwiseQuoteId, String recipientId) { + public static BunqResponse create(Long transferwiseQuoteId, String recipientId) { return create(transferwiseQuoteId, recipientId, null, null); } - public static BunqResponse create(Integer transferwiseQuoteId, String recipientId, List detail) { + public static BunqResponse create(Long transferwiseQuoteId, String recipientId, List detail) { return create(transferwiseQuoteId, recipientId, detail, null); } diff --git a/src/main/java/com/bunq/sdk/model/generated/endpoint/TransferwiseUserApiObject.java b/src/main/java/com/bunq/sdk/model/generated/endpoint/TransferwiseUserApiObject.java index 77ae5620..faf92e90 100644 --- a/src/main/java/com/bunq/sdk/model/generated/endpoint/TransferwiseUserApiObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/endpoint/TransferwiseUserApiObject.java @@ -42,7 +42,7 @@ public class TransferwiseUserApiObject extends BunqModel { */ @Expose @SerializedName("id") - private Integer id; + private Long id; /** * The timestamp of the TransferwiseUser's creation. @@ -97,7 +97,7 @@ public TransferwiseUserApiObject(String oauthCode) { * @param oauthCode The OAuth code returned by Transferwise we should be using to gain access to * the user's Transferwise account. */ - public static BunqResponse create(String oauthCode, Map customHeaders) { + public static BunqResponse create(String oauthCode, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -113,11 +113,11 @@ public static BunqResponse create(String oauthCode, Map return processForId(responseRaw); } - public static BunqResponse create() { + public static BunqResponse create() { return create(null, null); } - public static BunqResponse create(String oauthCode) { + public static BunqResponse create(String oauthCode) { return create(oauthCode, null); } @@ -141,11 +141,11 @@ public static BunqResponse> list(Map ubo, String chamberOfCommerceNumber, String legalForm, String status, String subStatus, Integer sessionTimeout) { + public UserCompanyApiObject(AddressObject addressMain, String language, String region, String name, String publicNickName, String avatarUuid, AddressObject addressPostal, String country, List ubo, String chamberOfCommerceNumber, String legalForm, String status, String subStatus, Long sessionTimeout) { this(addressMain, language, region, name, publicNickName, avatarUuid, addressPostal, country, ubo, chamberOfCommerceNumber, legalForm, status, subStatus, sessionTimeout, null); } - public UserCompanyApiObject(AddressObject addressMain, String language, String region, String name, String publicNickName, String avatarUuid, AddressObject addressPostal, String country, List ubo, String chamberOfCommerceNumber, String legalForm, String status, String subStatus, Integer sessionTimeout, AmountObject dailyLimitWithoutConfirmationLogin) { + public UserCompanyApiObject(AddressObject addressMain, String language, String region, String name, String publicNickName, String avatarUuid, AddressObject addressPostal, String country, List ubo, String chamberOfCommerceNumber, String legalForm, String status, String subStatus, Long sessionTimeout, AmountObject dailyLimitWithoutConfirmationLogin) { this.nameFieldForRequest = name; this.publicNickNameFieldForRequest = publicNickName; this.avatarUuidFieldForRequest = avatarUuid; @@ -530,7 +530,7 @@ public static BunqResponse get(Map params) * @param dailyLimitWithoutConfirmationLogin The amount the company can pay in the session * without asking for credentials. */ - public static BunqResponse update(String name, String publicNickName, String avatarUuid, AddressObject addressMain, AddressObject addressPostal, String language, String region, String country, List ubo, String chamberOfCommerceNumber, String legalForm, String status, String subStatus, Integer sessionTimeout, AmountObject dailyLimitWithoutConfirmationLogin, Map customHeaders) { + public static BunqResponse update(String name, String publicNickName, String avatarUuid, AddressObject addressMain, AddressObject addressPostal, String language, String region, String country, List ubo, String chamberOfCommerceNumber, String legalForm, String status, String subStatus, Long sessionTimeout, AmountObject dailyLimitWithoutConfirmationLogin, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -560,74 +560,74 @@ public static BunqResponse update(String name, String publicNickName, S return processForId(responseRaw); } - public static BunqResponse update(String name) { + public static BunqResponse update(String name) { return update(name, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null); } - public static BunqResponse update(String name, String publicNickName) { + public static BunqResponse update(String name, String publicNickName) { return update(name, publicNickName, null, null, null, null, null, null, null, null, null, null, null, null, null, null); } - public static BunqResponse update(String name, String publicNickName, String avatarUuid) { + public static BunqResponse update(String name, String publicNickName, String avatarUuid) { return update(name, publicNickName, avatarUuid, null, null, null, null, null, null, null, null, null, null, null, null, null); } - public static BunqResponse update(String name, String publicNickName, String avatarUuid, AddressObject addressMain) { + public static BunqResponse update(String name, String publicNickName, String avatarUuid, AddressObject addressMain) { return update(name, publicNickName, avatarUuid, addressMain, null, null, null, null, null, null, null, null, null, null, null, null); } - public static BunqResponse update(String name, String publicNickName, String avatarUuid, AddressObject addressMain, AddressObject addressPostal) { + public static BunqResponse update(String name, String publicNickName, String avatarUuid, AddressObject addressMain, AddressObject addressPostal) { return update(name, publicNickName, avatarUuid, addressMain, addressPostal, null, null, null, null, null, null, null, null, null, null, null); } - public static BunqResponse update(String name, String publicNickName, String avatarUuid, AddressObject addressMain, AddressObject addressPostal, String language) { + public static BunqResponse update(String name, String publicNickName, String avatarUuid, AddressObject addressMain, AddressObject addressPostal, String language) { return update(name, publicNickName, avatarUuid, addressMain, addressPostal, language, null, null, null, null, null, null, null, null, null, null); } - public static BunqResponse update(String name, String publicNickName, String avatarUuid, AddressObject addressMain, AddressObject addressPostal, String language, String region) { + public static BunqResponse update(String name, String publicNickName, String avatarUuid, AddressObject addressMain, AddressObject addressPostal, String language, String region) { return update(name, publicNickName, avatarUuid, addressMain, addressPostal, language, region, null, null, null, null, null, null, null, null, null); } - public static BunqResponse update(String name, String publicNickName, String avatarUuid, AddressObject addressMain, AddressObject addressPostal, String language, String region, String country) { + public static BunqResponse update(String name, String publicNickName, String avatarUuid, AddressObject addressMain, AddressObject addressPostal, String language, String region, String country) { return update(name, publicNickName, avatarUuid, addressMain, addressPostal, language, region, country, null, null, null, null, null, null, null, null); } - public static BunqResponse update(String name, String publicNickName, String avatarUuid, AddressObject addressMain, AddressObject addressPostal, String language, String region, String country, List ubo) { + public static BunqResponse update(String name, String publicNickName, String avatarUuid, AddressObject addressMain, AddressObject addressPostal, String language, String region, String country, List ubo) { return update(name, publicNickName, avatarUuid, addressMain, addressPostal, language, region, country, ubo, null, null, null, null, null, null, null); } - public static BunqResponse update(String name, String publicNickName, String avatarUuid, AddressObject addressMain, AddressObject addressPostal, String language, String region, String country, List ubo, String chamberOfCommerceNumber) { + public static BunqResponse update(String name, String publicNickName, String avatarUuid, AddressObject addressMain, AddressObject addressPostal, String language, String region, String country, List ubo, String chamberOfCommerceNumber) { return update(name, publicNickName, avatarUuid, addressMain, addressPostal, language, region, country, ubo, chamberOfCommerceNumber, null, null, null, null, null, null); } - public static BunqResponse update(String name, String publicNickName, String avatarUuid, AddressObject addressMain, AddressObject addressPostal, String language, String region, String country, List ubo, String chamberOfCommerceNumber, String legalForm) { + public static BunqResponse update(String name, String publicNickName, String avatarUuid, AddressObject addressMain, AddressObject addressPostal, String language, String region, String country, List ubo, String chamberOfCommerceNumber, String legalForm) { return update(name, publicNickName, avatarUuid, addressMain, addressPostal, language, region, country, ubo, chamberOfCommerceNumber, legalForm, null, null, null, null, null); } - public static BunqResponse update(String name, String publicNickName, String avatarUuid, AddressObject addressMain, AddressObject addressPostal, String language, String region, String country, List ubo, String chamberOfCommerceNumber, String legalForm, String status) { + public static BunqResponse update(String name, String publicNickName, String avatarUuid, AddressObject addressMain, AddressObject addressPostal, String language, String region, String country, List ubo, String chamberOfCommerceNumber, String legalForm, String status) { return update(name, publicNickName, avatarUuid, addressMain, addressPostal, language, region, country, ubo, chamberOfCommerceNumber, legalForm, status, null, null, null, null); } - public static BunqResponse update(String name, String publicNickName, String avatarUuid, AddressObject addressMain, AddressObject addressPostal, String language, String region, String country, List ubo, String chamberOfCommerceNumber, String legalForm, String status, String subStatus) { + public static BunqResponse update(String name, String publicNickName, String avatarUuid, AddressObject addressMain, AddressObject addressPostal, String language, String region, String country, List ubo, String chamberOfCommerceNumber, String legalForm, String status, String subStatus) { return update(name, publicNickName, avatarUuid, addressMain, addressPostal, language, region, country, ubo, chamberOfCommerceNumber, legalForm, status, subStatus, null, null, null); } - public static BunqResponse update(String name, String publicNickName, String avatarUuid, AddressObject addressMain, AddressObject addressPostal, String language, String region, String country, List ubo, String chamberOfCommerceNumber, String legalForm, String status, String subStatus, Integer sessionTimeout) { + public static BunqResponse update(String name, String publicNickName, String avatarUuid, AddressObject addressMain, AddressObject addressPostal, String language, String region, String country, List ubo, String chamberOfCommerceNumber, String legalForm, String status, String subStatus, Long sessionTimeout) { return update(name, publicNickName, avatarUuid, addressMain, addressPostal, language, region, country, ubo, chamberOfCommerceNumber, legalForm, status, subStatus, sessionTimeout, null, null); } - public static BunqResponse update(String name, String publicNickName, String avatarUuid, AddressObject addressMain, AddressObject addressPostal, String language, String region, String country, List ubo, String chamberOfCommerceNumber, String legalForm, String status, String subStatus, Integer sessionTimeout, AmountObject dailyLimitWithoutConfirmationLogin) { + public static BunqResponse update(String name, String publicNickName, String avatarUuid, AddressObject addressMain, AddressObject addressPostal, String language, String region, String country, List ubo, String chamberOfCommerceNumber, String legalForm, String status, String subStatus, Long sessionTimeout, AmountObject dailyLimitWithoutConfirmationLogin) { return update(name, publicNickName, avatarUuid, addressMain, addressPostal, language, region, country, ubo, chamberOfCommerceNumber, legalForm, status, subStatus, sessionTimeout, dailyLimitWithoutConfirmationLogin, null); } /** * The id of the modified company. */ - public Integer getId() { + public Long getId() { return this.id; } - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } @@ -901,11 +901,11 @@ public void setSubStatus(String subStatus) { /** * The setting for the session timeout of the company in seconds. */ - public Integer getSessionTimeout() { + public Long getSessionTimeout() { return this.sessionTimeout; } - public void setSessionTimeout(Integer sessionTimeout) { + public void setSessionTimeout(Long sessionTimeout) { this.sessionTimeout = sessionTimeout; } diff --git a/src/main/java/com/bunq/sdk/model/generated/endpoint/UserCompanyNameApiObject.java b/src/main/java/com/bunq/sdk/model/generated/endpoint/UserCompanyNameApiObject.java index a66c2ab8..8bb3bab6 100644 --- a/src/main/java/com/bunq/sdk/model/generated/endpoint/UserCompanyNameApiObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/endpoint/UserCompanyNameApiObject.java @@ -42,7 +42,7 @@ public class UserCompanyNameApiObject extends BunqModel { /** * Return all the known (trade) names for a specific user company. */ - public static BunqResponse> list(Integer userCompanyId, Map params, Map customHeaders) { + public static BunqResponse> list(Long userCompanyId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_LISTING, determineUserId()), params, customHeaders); @@ -53,11 +53,11 @@ public static BunqResponse> list() { return list(null, null, null); } - public static BunqResponse> list(Integer userCompanyId) { + public static BunqResponse> list(Long userCompanyId) { return list(userCompanyId, null, null); } - public static BunqResponse> list(Integer userCompanyId, Map params) { + public static BunqResponse> list(Long userCompanyId, Map params) { return list(userCompanyId, params, null); } diff --git a/src/main/java/com/bunq/sdk/model/generated/endpoint/UserCredentialPasswordIpApiObject.java b/src/main/java/com/bunq/sdk/model/generated/endpoint/UserCredentialPasswordIpApiObject.java index aecc9ad7..3058c962 100644 --- a/src/main/java/com/bunq/sdk/model/generated/endpoint/UserCredentialPasswordIpApiObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/endpoint/UserCredentialPasswordIpApiObject.java @@ -39,7 +39,7 @@ public class UserCredentialPasswordIpApiObject extends BunqModel { */ @Expose @SerializedName("id") - private Integer id; + private Long id; /** * The timestamp of the credential object's creation. @@ -85,7 +85,7 @@ public class UserCredentialPasswordIpApiObject extends BunqModel { /** */ - public static BunqResponse get(Integer userCredentialPasswordIpId, Map params, Map customHeaders) { + public static BunqResponse get(Long userCredentialPasswordIpId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_READ, determineUserId(), userCredentialPasswordIpId), params, customHeaders); @@ -96,11 +96,11 @@ public static BunqResponse get() { return get(null, null, null); } - public static BunqResponse get(Integer userCredentialPasswordIpId) { + public static BunqResponse get(Long userCredentialPasswordIpId) { return get(userCredentialPasswordIpId, null, null); } - public static BunqResponse get(Integer userCredentialPasswordIpId, Map params) { + public static BunqResponse get(Long userCredentialPasswordIpId, Map params) { return get(userCredentialPasswordIpId, params, null); } @@ -124,11 +124,11 @@ public static BunqResponse> list(Map get(Integer userPaymentServiceProviderId, Map params, Map customHeaders) { + public static BunqResponse get(Long userPaymentServiceProviderId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_READ, userPaymentServiceProviderId), params, customHeaders); @@ -146,22 +146,22 @@ public static BunqResponse get() { return get(null, null, null); } - public static BunqResponse get(Integer userPaymentServiceProviderId) { + public static BunqResponse get(Long userPaymentServiceProviderId) { return get(userPaymentServiceProviderId, null, null); } - public static BunqResponse get(Integer userPaymentServiceProviderId, Map params) { + public static BunqResponse get(Long userPaymentServiceProviderId, Map params) { return get(userPaymentServiceProviderId, params, null); } /** * The id of the user. */ - public Integer getId() { + public Long getId() { return this.id; } - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } @@ -302,11 +302,11 @@ public void setRegion(String region) { /** * The setting for the session timeout of the user in seconds. */ - public Integer getSessionTimeout() { + public Long getSessionTimeout() { return this.sessionTimeout; } - public void setSessionTimeout(Integer sessionTimeout) { + public void setSessionTimeout(Long sessionTimeout) { this.sessionTimeout = sessionTimeout; } diff --git a/src/main/java/com/bunq/sdk/model/generated/endpoint/UserPersonApiObject.java b/src/main/java/com/bunq/sdk/model/generated/endpoint/UserPersonApiObject.java index 0476e5bd..52b85222 100644 --- a/src/main/java/com/bunq/sdk/model/generated/endpoint/UserPersonApiObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/endpoint/UserPersonApiObject.java @@ -77,7 +77,7 @@ public class UserPersonApiObject extends BunqModel { */ @Expose @SerializedName("id") - private Integer id; + private Long id; /** * The timestamp of the person object's creation. @@ -270,7 +270,7 @@ public class UserPersonApiObject extends BunqModel { */ @Expose @SerializedName("session_timeout") - private Integer sessionTimeout; + private Long sessionTimeout; /** * The amount the user can pay in the session without asking for credentials. @@ -383,14 +383,14 @@ public class UserPersonApiObject extends BunqModel { */ @Expose @SerializedName("document_front_attachment_id_field_for_request") - private Integer documentFrontAttachmentIdFieldForRequest; + private Long documentFrontAttachmentIdFieldForRequest; /** * The reference to the uploaded picture/scan of the back side of the identification document. */ @Expose @SerializedName("document_back_attachment_id_field_for_request") - private Integer documentBackAttachmentIdFieldForRequest; + private Long documentBackAttachmentIdFieldForRequest; /** * The person's date of birth. Accepts ISO8601 date formats. @@ -462,7 +462,7 @@ public class UserPersonApiObject extends BunqModel { */ @Expose @SerializedName("session_timeout_field_for_request") - private Integer sessionTimeoutFieldForRequest; + private Long sessionTimeoutFieldForRequest; /** * The amount the user can pay in the session without asking for credentials. @@ -538,63 +538,63 @@ public UserPersonApiObject(String subscriptionType, String firstName, String mid this(subscriptionType, firstName, middleName, lastName, publicNickName, addressMain, addressPostal, avatarUuid, taxResident, documentType, documentNumber, documentCountryOfIssuance, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null); } - public UserPersonApiObject(String subscriptionType, String firstName, String middleName, String lastName, String publicNickName, AddressObject addressMain, AddressObject addressPostal, String avatarUuid, List taxResident, String documentType, String documentNumber, String documentCountryOfIssuance, Integer documentFrontAttachmentId) { + public UserPersonApiObject(String subscriptionType, String firstName, String middleName, String lastName, String publicNickName, AddressObject addressMain, AddressObject addressPostal, String avatarUuid, List taxResident, String documentType, String documentNumber, String documentCountryOfIssuance, Long documentFrontAttachmentId) { this(subscriptionType, firstName, middleName, lastName, publicNickName, addressMain, addressPostal, avatarUuid, taxResident, documentType, documentNumber, documentCountryOfIssuance, documentFrontAttachmentId, null, null, null, null, null, null, null, null, null, null, null, null, null, null); } - public UserPersonApiObject(String subscriptionType, String firstName, String middleName, String lastName, String publicNickName, AddressObject addressMain, AddressObject addressPostal, String avatarUuid, List taxResident, String documentType, String documentNumber, String documentCountryOfIssuance, Integer documentFrontAttachmentId, Integer documentBackAttachmentId) { + public UserPersonApiObject(String subscriptionType, String firstName, String middleName, String lastName, String publicNickName, AddressObject addressMain, AddressObject addressPostal, String avatarUuid, List taxResident, String documentType, String documentNumber, String documentCountryOfIssuance, Long documentFrontAttachmentId, Long documentBackAttachmentId) { this(subscriptionType, firstName, middleName, lastName, publicNickName, addressMain, addressPostal, avatarUuid, taxResident, documentType, documentNumber, documentCountryOfIssuance, documentFrontAttachmentId, documentBackAttachmentId, null, null, null, null, null, null, null, null, null, null, null, null, null); } - public UserPersonApiObject(String subscriptionType, String firstName, String middleName, String lastName, String publicNickName, AddressObject addressMain, AddressObject addressPostal, String avatarUuid, List taxResident, String documentType, String documentNumber, String documentCountryOfIssuance, Integer documentFrontAttachmentId, Integer documentBackAttachmentId, String dateOfBirth) { + public UserPersonApiObject(String subscriptionType, String firstName, String middleName, String lastName, String publicNickName, AddressObject addressMain, AddressObject addressPostal, String avatarUuid, List taxResident, String documentType, String documentNumber, String documentCountryOfIssuance, Long documentFrontAttachmentId, Long documentBackAttachmentId, String dateOfBirth) { this(subscriptionType, firstName, middleName, lastName, publicNickName, addressMain, addressPostal, avatarUuid, taxResident, documentType, documentNumber, documentCountryOfIssuance, documentFrontAttachmentId, documentBackAttachmentId, dateOfBirth, null, null, null, null, null, null, null, null, null, null, null, null); } - public UserPersonApiObject(String subscriptionType, String firstName, String middleName, String lastName, String publicNickName, AddressObject addressMain, AddressObject addressPostal, String avatarUuid, List taxResident, String documentType, String documentNumber, String documentCountryOfIssuance, Integer documentFrontAttachmentId, Integer documentBackAttachmentId, String dateOfBirth, String nationality) { + public UserPersonApiObject(String subscriptionType, String firstName, String middleName, String lastName, String publicNickName, AddressObject addressMain, AddressObject addressPostal, String avatarUuid, List taxResident, String documentType, String documentNumber, String documentCountryOfIssuance, Long documentFrontAttachmentId, Long documentBackAttachmentId, String dateOfBirth, String nationality) { this(subscriptionType, firstName, middleName, lastName, publicNickName, addressMain, addressPostal, avatarUuid, taxResident, documentType, documentNumber, documentCountryOfIssuance, documentFrontAttachmentId, documentBackAttachmentId, dateOfBirth, nationality, null, null, null, null, null, null, null, null, null, null, null); } - public UserPersonApiObject(String subscriptionType, String firstName, String middleName, String lastName, String publicNickName, AddressObject addressMain, AddressObject addressPostal, String avatarUuid, List taxResident, String documentType, String documentNumber, String documentCountryOfIssuance, Integer documentFrontAttachmentId, Integer documentBackAttachmentId, String dateOfBirth, String nationality, List allNationality) { + public UserPersonApiObject(String subscriptionType, String firstName, String middleName, String lastName, String publicNickName, AddressObject addressMain, AddressObject addressPostal, String avatarUuid, List taxResident, String documentType, String documentNumber, String documentCountryOfIssuance, Long documentFrontAttachmentId, Long documentBackAttachmentId, String dateOfBirth, String nationality, List allNationality) { this(subscriptionType, firstName, middleName, lastName, publicNickName, addressMain, addressPostal, avatarUuid, taxResident, documentType, documentNumber, documentCountryOfIssuance, documentFrontAttachmentId, documentBackAttachmentId, dateOfBirth, nationality, allNationality, null, null, null, null, null, null, null, null, null, null); } - public UserPersonApiObject(String subscriptionType, String firstName, String middleName, String lastName, String publicNickName, AddressObject addressMain, AddressObject addressPostal, String avatarUuid, List taxResident, String documentType, String documentNumber, String documentCountryOfIssuance, Integer documentFrontAttachmentId, Integer documentBackAttachmentId, String dateOfBirth, String nationality, List allNationality, String language) { + public UserPersonApiObject(String subscriptionType, String firstName, String middleName, String lastName, String publicNickName, AddressObject addressMain, AddressObject addressPostal, String avatarUuid, List taxResident, String documentType, String documentNumber, String documentCountryOfIssuance, Long documentFrontAttachmentId, Long documentBackAttachmentId, String dateOfBirth, String nationality, List allNationality, String language) { this(subscriptionType, firstName, middleName, lastName, publicNickName, addressMain, addressPostal, avatarUuid, taxResident, documentType, documentNumber, documentCountryOfIssuance, documentFrontAttachmentId, documentBackAttachmentId, dateOfBirth, nationality, allNationality, language, null, null, null, null, null, null, null, null, null); } - public UserPersonApiObject(String subscriptionType, String firstName, String middleName, String lastName, String publicNickName, AddressObject addressMain, AddressObject addressPostal, String avatarUuid, List taxResident, String documentType, String documentNumber, String documentCountryOfIssuance, Integer documentFrontAttachmentId, Integer documentBackAttachmentId, String dateOfBirth, String nationality, List allNationality, String language, String region) { + public UserPersonApiObject(String subscriptionType, String firstName, String middleName, String lastName, String publicNickName, AddressObject addressMain, AddressObject addressPostal, String avatarUuid, List taxResident, String documentType, String documentNumber, String documentCountryOfIssuance, Long documentFrontAttachmentId, Long documentBackAttachmentId, String dateOfBirth, String nationality, List allNationality, String language, String region) { this(subscriptionType, firstName, middleName, lastName, publicNickName, addressMain, addressPostal, avatarUuid, taxResident, documentType, documentNumber, documentCountryOfIssuance, documentFrontAttachmentId, documentBackAttachmentId, dateOfBirth, nationality, allNationality, language, region, null, null, null, null, null, null, null, null); } - public UserPersonApiObject(String subscriptionType, String firstName, String middleName, String lastName, String publicNickName, AddressObject addressMain, AddressObject addressPostal, String avatarUuid, List taxResident, String documentType, String documentNumber, String documentCountryOfIssuance, Integer documentFrontAttachmentId, Integer documentBackAttachmentId, String dateOfBirth, String nationality, List allNationality, String language, String region, String gender) { + public UserPersonApiObject(String subscriptionType, String firstName, String middleName, String lastName, String publicNickName, AddressObject addressMain, AddressObject addressPostal, String avatarUuid, List taxResident, String documentType, String documentNumber, String documentCountryOfIssuance, Long documentFrontAttachmentId, Long documentBackAttachmentId, String dateOfBirth, String nationality, List allNationality, String language, String region, String gender) { this(subscriptionType, firstName, middleName, lastName, publicNickName, addressMain, addressPostal, avatarUuid, taxResident, documentType, documentNumber, documentCountryOfIssuance, documentFrontAttachmentId, documentBackAttachmentId, dateOfBirth, nationality, allNationality, language, region, gender, null, null, null, null, null, null, null); } - public UserPersonApiObject(String subscriptionType, String firstName, String middleName, String lastName, String publicNickName, AddressObject addressMain, AddressObject addressPostal, String avatarUuid, List taxResident, String documentType, String documentNumber, String documentCountryOfIssuance, Integer documentFrontAttachmentId, Integer documentBackAttachmentId, String dateOfBirth, String nationality, List allNationality, String language, String region, String gender, String status) { + public UserPersonApiObject(String subscriptionType, String firstName, String middleName, String lastName, String publicNickName, AddressObject addressMain, AddressObject addressPostal, String avatarUuid, List taxResident, String documentType, String documentNumber, String documentCountryOfIssuance, Long documentFrontAttachmentId, Long documentBackAttachmentId, String dateOfBirth, String nationality, List allNationality, String language, String region, String gender, String status) { this(subscriptionType, firstName, middleName, lastName, publicNickName, addressMain, addressPostal, avatarUuid, taxResident, documentType, documentNumber, documentCountryOfIssuance, documentFrontAttachmentId, documentBackAttachmentId, dateOfBirth, nationality, allNationality, language, region, gender, status, null, null, null, null, null, null); } - public UserPersonApiObject(String subscriptionType, String firstName, String middleName, String lastName, String publicNickName, AddressObject addressMain, AddressObject addressPostal, String avatarUuid, List taxResident, String documentType, String documentNumber, String documentCountryOfIssuance, Integer documentFrontAttachmentId, Integer documentBackAttachmentId, String dateOfBirth, String nationality, List allNationality, String language, String region, String gender, String status, String subStatus) { + public UserPersonApiObject(String subscriptionType, String firstName, String middleName, String lastName, String publicNickName, AddressObject addressMain, AddressObject addressPostal, String avatarUuid, List taxResident, String documentType, String documentNumber, String documentCountryOfIssuance, Long documentFrontAttachmentId, Long documentBackAttachmentId, String dateOfBirth, String nationality, List allNationality, String language, String region, String gender, String status, String subStatus) { this(subscriptionType, firstName, middleName, lastName, publicNickName, addressMain, addressPostal, avatarUuid, taxResident, documentType, documentNumber, documentCountryOfIssuance, documentFrontAttachmentId, documentBackAttachmentId, dateOfBirth, nationality, allNationality, language, region, gender, status, subStatus, null, null, null, null, null); } - public UserPersonApiObject(String subscriptionType, String firstName, String middleName, String lastName, String publicNickName, AddressObject addressMain, AddressObject addressPostal, String avatarUuid, List taxResident, String documentType, String documentNumber, String documentCountryOfIssuance, Integer documentFrontAttachmentId, Integer documentBackAttachmentId, String dateOfBirth, String nationality, List allNationality, String language, String region, String gender, String status, String subStatus, PointerObject legalGuardianAlias) { + public UserPersonApiObject(String subscriptionType, String firstName, String middleName, String lastName, String publicNickName, AddressObject addressMain, AddressObject addressPostal, String avatarUuid, List taxResident, String documentType, String documentNumber, String documentCountryOfIssuance, Long documentFrontAttachmentId, Long documentBackAttachmentId, String dateOfBirth, String nationality, List allNationality, String language, String region, String gender, String status, String subStatus, PointerObject legalGuardianAlias) { this(subscriptionType, firstName, middleName, lastName, publicNickName, addressMain, addressPostal, avatarUuid, taxResident, documentType, documentNumber, documentCountryOfIssuance, documentFrontAttachmentId, documentBackAttachmentId, dateOfBirth, nationality, allNationality, language, region, gender, status, subStatus, legalGuardianAlias, null, null, null, null); } - public UserPersonApiObject(String subscriptionType, String firstName, String middleName, String lastName, String publicNickName, AddressObject addressMain, AddressObject addressPostal, String avatarUuid, List taxResident, String documentType, String documentNumber, String documentCountryOfIssuance, Integer documentFrontAttachmentId, Integer documentBackAttachmentId, String dateOfBirth, String nationality, List allNationality, String language, String region, String gender, String status, String subStatus, PointerObject legalGuardianAlias, Integer sessionTimeout) { + public UserPersonApiObject(String subscriptionType, String firstName, String middleName, String lastName, String publicNickName, AddressObject addressMain, AddressObject addressPostal, String avatarUuid, List taxResident, String documentType, String documentNumber, String documentCountryOfIssuance, Long documentFrontAttachmentId, Long documentBackAttachmentId, String dateOfBirth, String nationality, List allNationality, String language, String region, String gender, String status, String subStatus, PointerObject legalGuardianAlias, Long sessionTimeout) { this(subscriptionType, firstName, middleName, lastName, publicNickName, addressMain, addressPostal, avatarUuid, taxResident, documentType, documentNumber, documentCountryOfIssuance, documentFrontAttachmentId, documentBackAttachmentId, dateOfBirth, nationality, allNationality, language, region, gender, status, subStatus, legalGuardianAlias, sessionTimeout, null, null, null); } - public UserPersonApiObject(String subscriptionType, String firstName, String middleName, String lastName, String publicNickName, AddressObject addressMain, AddressObject addressPostal, String avatarUuid, List taxResident, String documentType, String documentNumber, String documentCountryOfIssuance, Integer documentFrontAttachmentId, Integer documentBackAttachmentId, String dateOfBirth, String nationality, List allNationality, String language, String region, String gender, String status, String subStatus, PointerObject legalGuardianAlias, Integer sessionTimeout, AmountObject dailyLimitWithoutConfirmationLogin) { + public UserPersonApiObject(String subscriptionType, String firstName, String middleName, String lastName, String publicNickName, AddressObject addressMain, AddressObject addressPostal, String avatarUuid, List taxResident, String documentType, String documentNumber, String documentCountryOfIssuance, Long documentFrontAttachmentId, Long documentBackAttachmentId, String dateOfBirth, String nationality, List allNationality, String language, String region, String gender, String status, String subStatus, PointerObject legalGuardianAlias, Long sessionTimeout, AmountObject dailyLimitWithoutConfirmationLogin) { this(subscriptionType, firstName, middleName, lastName, publicNickName, addressMain, addressPostal, avatarUuid, taxResident, documentType, documentNumber, documentCountryOfIssuance, documentFrontAttachmentId, documentBackAttachmentId, dateOfBirth, nationality, allNationality, language, region, gender, status, subStatus, legalGuardianAlias, sessionTimeout, dailyLimitWithoutConfirmationLogin, null, null); } - public UserPersonApiObject(String subscriptionType, String firstName, String middleName, String lastName, String publicNickName, AddressObject addressMain, AddressObject addressPostal, String avatarUuid, List taxResident, String documentType, String documentNumber, String documentCountryOfIssuance, Integer documentFrontAttachmentId, Integer documentBackAttachmentId, String dateOfBirth, String nationality, List allNationality, String language, String region, String gender, String status, String subStatus, PointerObject legalGuardianAlias, Integer sessionTimeout, AmountObject dailyLimitWithoutConfirmationLogin, String displayName) { + public UserPersonApiObject(String subscriptionType, String firstName, String middleName, String lastName, String publicNickName, AddressObject addressMain, AddressObject addressPostal, String avatarUuid, List taxResident, String documentType, String documentNumber, String documentCountryOfIssuance, Long documentFrontAttachmentId, Long documentBackAttachmentId, String dateOfBirth, String nationality, List allNationality, String language, String region, String gender, String status, String subStatus, PointerObject legalGuardianAlias, Long sessionTimeout, AmountObject dailyLimitWithoutConfirmationLogin, String displayName) { this(subscriptionType, firstName, middleName, lastName, publicNickName, addressMain, addressPostal, avatarUuid, taxResident, documentType, documentNumber, documentCountryOfIssuance, documentFrontAttachmentId, documentBackAttachmentId, dateOfBirth, nationality, allNationality, language, region, gender, status, subStatus, legalGuardianAlias, sessionTimeout, dailyLimitWithoutConfirmationLogin, displayName, null); } - public UserPersonApiObject(String subscriptionType, String firstName, String middleName, String lastName, String publicNickName, AddressObject addressMain, AddressObject addressPostal, String avatarUuid, List taxResident, String documentType, String documentNumber, String documentCountryOfIssuance, Integer documentFrontAttachmentId, Integer documentBackAttachmentId, String dateOfBirth, String nationality, List allNationality, String language, String region, String gender, String status, String subStatus, PointerObject legalGuardianAlias, Integer sessionTimeout, AmountObject dailyLimitWithoutConfirmationLogin, String displayName, String signupTrackType) { + public UserPersonApiObject(String subscriptionType, String firstName, String middleName, String lastName, String publicNickName, AddressObject addressMain, AddressObject addressPostal, String avatarUuid, List taxResident, String documentType, String documentNumber, String documentCountryOfIssuance, Long documentFrontAttachmentId, Long documentBackAttachmentId, String dateOfBirth, String nationality, List allNationality, String language, String region, String gender, String status, String subStatus, PointerObject legalGuardianAlias, Long sessionTimeout, AmountObject dailyLimitWithoutConfirmationLogin, String displayName, String signupTrackType) { this.subscriptionTypeFieldForRequest = subscriptionType; this.firstNameFieldForRequest = firstName; this.middleNameFieldForRequest = middleName; @@ -676,7 +676,7 @@ public static BunqResponse get(Map params) * @param displayName The person's legal name. Available legal names can be listed via the * 'user/{user_id}/legal-name' endpoint. */ - public static BunqResponse update(String firstName, String middleName, String lastName, String publicNickName, AddressObject addressMain, AddressObject addressPostal, String avatarUuid, List taxResident, String documentType, String documentNumber, String documentCountryOfIssuance, Integer documentFrontAttachmentId, Integer documentBackAttachmentId, String dateOfBirth, String nationality, List allNationality, String language, String region, String gender, String status, String subStatus, PointerObject legalGuardianAlias, Integer sessionTimeout, AmountObject dailyLimitWithoutConfirmationLogin, String displayName, Map customHeaders) { + public static BunqResponse update(String firstName, String middleName, String lastName, String publicNickName, AddressObject addressMain, AddressObject addressPostal, String avatarUuid, List taxResident, String documentType, String documentNumber, String documentCountryOfIssuance, Long documentFrontAttachmentId, Long documentBackAttachmentId, String dateOfBirth, String nationality, List allNationality, String language, String region, String gender, String status, String subStatus, PointerObject legalGuardianAlias, Long sessionTimeout, AmountObject dailyLimitWithoutConfirmationLogin, String displayName, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -716,114 +716,114 @@ public static BunqResponse update(String firstName, String middleName, return processForId(responseRaw); } - public static BunqResponse update(String firstName) { + public static BunqResponse update(String firstName) { return update(firstName, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null); } - public static BunqResponse update(String firstName, String middleName) { + public static BunqResponse update(String firstName, String middleName) { return update(firstName, middleName, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null); } - public static BunqResponse update(String firstName, String middleName, String lastName) { + public static BunqResponse update(String firstName, String middleName, String lastName) { return update(firstName, middleName, lastName, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null); } - public static BunqResponse update(String firstName, String middleName, String lastName, String publicNickName) { + public static BunqResponse update(String firstName, String middleName, String lastName, String publicNickName) { return update(firstName, middleName, lastName, publicNickName, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null); } - public static BunqResponse update(String firstName, String middleName, String lastName, String publicNickName, AddressObject addressMain) { + public static BunqResponse update(String firstName, String middleName, String lastName, String publicNickName, AddressObject addressMain) { return update(firstName, middleName, lastName, publicNickName, addressMain, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null); } - public static BunqResponse update(String firstName, String middleName, String lastName, String publicNickName, AddressObject addressMain, AddressObject addressPostal) { + public static BunqResponse update(String firstName, String middleName, String lastName, String publicNickName, AddressObject addressMain, AddressObject addressPostal) { return update(firstName, middleName, lastName, publicNickName, addressMain, addressPostal, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null); } - public static BunqResponse update(String firstName, String middleName, String lastName, String publicNickName, AddressObject addressMain, AddressObject addressPostal, String avatarUuid) { + public static BunqResponse update(String firstName, String middleName, String lastName, String publicNickName, AddressObject addressMain, AddressObject addressPostal, String avatarUuid) { return update(firstName, middleName, lastName, publicNickName, addressMain, addressPostal, avatarUuid, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null); } - public static BunqResponse update(String firstName, String middleName, String lastName, String publicNickName, AddressObject addressMain, AddressObject addressPostal, String avatarUuid, List taxResident) { + public static BunqResponse update(String firstName, String middleName, String lastName, String publicNickName, AddressObject addressMain, AddressObject addressPostal, String avatarUuid, List taxResident) { return update(firstName, middleName, lastName, publicNickName, addressMain, addressPostal, avatarUuid, taxResident, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null); } - public static BunqResponse update(String firstName, String middleName, String lastName, String publicNickName, AddressObject addressMain, AddressObject addressPostal, String avatarUuid, List taxResident, String documentType) { + public static BunqResponse update(String firstName, String middleName, String lastName, String publicNickName, AddressObject addressMain, AddressObject addressPostal, String avatarUuid, List taxResident, String documentType) { return update(firstName, middleName, lastName, publicNickName, addressMain, addressPostal, avatarUuid, taxResident, documentType, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null); } - public static BunqResponse update(String firstName, String middleName, String lastName, String publicNickName, AddressObject addressMain, AddressObject addressPostal, String avatarUuid, List taxResident, String documentType, String documentNumber) { + public static BunqResponse update(String firstName, String middleName, String lastName, String publicNickName, AddressObject addressMain, AddressObject addressPostal, String avatarUuid, List taxResident, String documentType, String documentNumber) { return update(firstName, middleName, lastName, publicNickName, addressMain, addressPostal, avatarUuid, taxResident, documentType, documentNumber, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null); } - public static BunqResponse update(String firstName, String middleName, String lastName, String publicNickName, AddressObject addressMain, AddressObject addressPostal, String avatarUuid, List taxResident, String documentType, String documentNumber, String documentCountryOfIssuance) { + public static BunqResponse update(String firstName, String middleName, String lastName, String publicNickName, AddressObject addressMain, AddressObject addressPostal, String avatarUuid, List taxResident, String documentType, String documentNumber, String documentCountryOfIssuance) { return update(firstName, middleName, lastName, publicNickName, addressMain, addressPostal, avatarUuid, taxResident, documentType, documentNumber, documentCountryOfIssuance, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null); } - public static BunqResponse update(String firstName, String middleName, String lastName, String publicNickName, AddressObject addressMain, AddressObject addressPostal, String avatarUuid, List taxResident, String documentType, String documentNumber, String documentCountryOfIssuance, Integer documentFrontAttachmentId) { + public static BunqResponse update(String firstName, String middleName, String lastName, String publicNickName, AddressObject addressMain, AddressObject addressPostal, String avatarUuid, List taxResident, String documentType, String documentNumber, String documentCountryOfIssuance, Long documentFrontAttachmentId) { return update(firstName, middleName, lastName, publicNickName, addressMain, addressPostal, avatarUuid, taxResident, documentType, documentNumber, documentCountryOfIssuance, documentFrontAttachmentId, null, null, null, null, null, null, null, null, null, null, null, null, null, null); } - public static BunqResponse update(String firstName, String middleName, String lastName, String publicNickName, AddressObject addressMain, AddressObject addressPostal, String avatarUuid, List taxResident, String documentType, String documentNumber, String documentCountryOfIssuance, Integer documentFrontAttachmentId, Integer documentBackAttachmentId) { + public static BunqResponse update(String firstName, String middleName, String lastName, String publicNickName, AddressObject addressMain, AddressObject addressPostal, String avatarUuid, List taxResident, String documentType, String documentNumber, String documentCountryOfIssuance, Long documentFrontAttachmentId, Long documentBackAttachmentId) { return update(firstName, middleName, lastName, publicNickName, addressMain, addressPostal, avatarUuid, taxResident, documentType, documentNumber, documentCountryOfIssuance, documentFrontAttachmentId, documentBackAttachmentId, null, null, null, null, null, null, null, null, null, null, null, null, null); } - public static BunqResponse update(String firstName, String middleName, String lastName, String publicNickName, AddressObject addressMain, AddressObject addressPostal, String avatarUuid, List taxResident, String documentType, String documentNumber, String documentCountryOfIssuance, Integer documentFrontAttachmentId, Integer documentBackAttachmentId, String dateOfBirth) { + public static BunqResponse update(String firstName, String middleName, String lastName, String publicNickName, AddressObject addressMain, AddressObject addressPostal, String avatarUuid, List taxResident, String documentType, String documentNumber, String documentCountryOfIssuance, Long documentFrontAttachmentId, Long documentBackAttachmentId, String dateOfBirth) { return update(firstName, middleName, lastName, publicNickName, addressMain, addressPostal, avatarUuid, taxResident, documentType, documentNumber, documentCountryOfIssuance, documentFrontAttachmentId, documentBackAttachmentId, dateOfBirth, null, null, null, null, null, null, null, null, null, null, null, null); } - public static BunqResponse update(String firstName, String middleName, String lastName, String publicNickName, AddressObject addressMain, AddressObject addressPostal, String avatarUuid, List taxResident, String documentType, String documentNumber, String documentCountryOfIssuance, Integer documentFrontAttachmentId, Integer documentBackAttachmentId, String dateOfBirth, String nationality) { + public static BunqResponse update(String firstName, String middleName, String lastName, String publicNickName, AddressObject addressMain, AddressObject addressPostal, String avatarUuid, List taxResident, String documentType, String documentNumber, String documentCountryOfIssuance, Long documentFrontAttachmentId, Long documentBackAttachmentId, String dateOfBirth, String nationality) { return update(firstName, middleName, lastName, publicNickName, addressMain, addressPostal, avatarUuid, taxResident, documentType, documentNumber, documentCountryOfIssuance, documentFrontAttachmentId, documentBackAttachmentId, dateOfBirth, nationality, null, null, null, null, null, null, null, null, null, null, null); } - public static BunqResponse update(String firstName, String middleName, String lastName, String publicNickName, AddressObject addressMain, AddressObject addressPostal, String avatarUuid, List taxResident, String documentType, String documentNumber, String documentCountryOfIssuance, Integer documentFrontAttachmentId, Integer documentBackAttachmentId, String dateOfBirth, String nationality, List allNationality) { + public static BunqResponse update(String firstName, String middleName, String lastName, String publicNickName, AddressObject addressMain, AddressObject addressPostal, String avatarUuid, List taxResident, String documentType, String documentNumber, String documentCountryOfIssuance, Long documentFrontAttachmentId, Long documentBackAttachmentId, String dateOfBirth, String nationality, List allNationality) { return update(firstName, middleName, lastName, publicNickName, addressMain, addressPostal, avatarUuid, taxResident, documentType, documentNumber, documentCountryOfIssuance, documentFrontAttachmentId, documentBackAttachmentId, dateOfBirth, nationality, allNationality, null, null, null, null, null, null, null, null, null, null); } - public static BunqResponse update(String firstName, String middleName, String lastName, String publicNickName, AddressObject addressMain, AddressObject addressPostal, String avatarUuid, List taxResident, String documentType, String documentNumber, String documentCountryOfIssuance, Integer documentFrontAttachmentId, Integer documentBackAttachmentId, String dateOfBirth, String nationality, List allNationality, String language) { + public static BunqResponse update(String firstName, String middleName, String lastName, String publicNickName, AddressObject addressMain, AddressObject addressPostal, String avatarUuid, List taxResident, String documentType, String documentNumber, String documentCountryOfIssuance, Long documentFrontAttachmentId, Long documentBackAttachmentId, String dateOfBirth, String nationality, List allNationality, String language) { return update(firstName, middleName, lastName, publicNickName, addressMain, addressPostal, avatarUuid, taxResident, documentType, documentNumber, documentCountryOfIssuance, documentFrontAttachmentId, documentBackAttachmentId, dateOfBirth, nationality, allNationality, language, null, null, null, null, null, null, null, null, null); } - public static BunqResponse update(String firstName, String middleName, String lastName, String publicNickName, AddressObject addressMain, AddressObject addressPostal, String avatarUuid, List taxResident, String documentType, String documentNumber, String documentCountryOfIssuance, Integer documentFrontAttachmentId, Integer documentBackAttachmentId, String dateOfBirth, String nationality, List allNationality, String language, String region) { + public static BunqResponse update(String firstName, String middleName, String lastName, String publicNickName, AddressObject addressMain, AddressObject addressPostal, String avatarUuid, List taxResident, String documentType, String documentNumber, String documentCountryOfIssuance, Long documentFrontAttachmentId, Long documentBackAttachmentId, String dateOfBirth, String nationality, List allNationality, String language, String region) { return update(firstName, middleName, lastName, publicNickName, addressMain, addressPostal, avatarUuid, taxResident, documentType, documentNumber, documentCountryOfIssuance, documentFrontAttachmentId, documentBackAttachmentId, dateOfBirth, nationality, allNationality, language, region, null, null, null, null, null, null, null, null); } - public static BunqResponse update(String firstName, String middleName, String lastName, String publicNickName, AddressObject addressMain, AddressObject addressPostal, String avatarUuid, List taxResident, String documentType, String documentNumber, String documentCountryOfIssuance, Integer documentFrontAttachmentId, Integer documentBackAttachmentId, String dateOfBirth, String nationality, List allNationality, String language, String region, String gender) { + public static BunqResponse update(String firstName, String middleName, String lastName, String publicNickName, AddressObject addressMain, AddressObject addressPostal, String avatarUuid, List taxResident, String documentType, String documentNumber, String documentCountryOfIssuance, Long documentFrontAttachmentId, Long documentBackAttachmentId, String dateOfBirth, String nationality, List allNationality, String language, String region, String gender) { return update(firstName, middleName, lastName, publicNickName, addressMain, addressPostal, avatarUuid, taxResident, documentType, documentNumber, documentCountryOfIssuance, documentFrontAttachmentId, documentBackAttachmentId, dateOfBirth, nationality, allNationality, language, region, gender, null, null, null, null, null, null, null); } - public static BunqResponse update(String firstName, String middleName, String lastName, String publicNickName, AddressObject addressMain, AddressObject addressPostal, String avatarUuid, List taxResident, String documentType, String documentNumber, String documentCountryOfIssuance, Integer documentFrontAttachmentId, Integer documentBackAttachmentId, String dateOfBirth, String nationality, List allNationality, String language, String region, String gender, String status) { + public static BunqResponse update(String firstName, String middleName, String lastName, String publicNickName, AddressObject addressMain, AddressObject addressPostal, String avatarUuid, List taxResident, String documentType, String documentNumber, String documentCountryOfIssuance, Long documentFrontAttachmentId, Long documentBackAttachmentId, String dateOfBirth, String nationality, List allNationality, String language, String region, String gender, String status) { return update(firstName, middleName, lastName, publicNickName, addressMain, addressPostal, avatarUuid, taxResident, documentType, documentNumber, documentCountryOfIssuance, documentFrontAttachmentId, documentBackAttachmentId, dateOfBirth, nationality, allNationality, language, region, gender, status, null, null, null, null, null, null); } - public static BunqResponse update(String firstName, String middleName, String lastName, String publicNickName, AddressObject addressMain, AddressObject addressPostal, String avatarUuid, List taxResident, String documentType, String documentNumber, String documentCountryOfIssuance, Integer documentFrontAttachmentId, Integer documentBackAttachmentId, String dateOfBirth, String nationality, List allNationality, String language, String region, String gender, String status, String subStatus) { + public static BunqResponse update(String firstName, String middleName, String lastName, String publicNickName, AddressObject addressMain, AddressObject addressPostal, String avatarUuid, List taxResident, String documentType, String documentNumber, String documentCountryOfIssuance, Long documentFrontAttachmentId, Long documentBackAttachmentId, String dateOfBirth, String nationality, List allNationality, String language, String region, String gender, String status, String subStatus) { return update(firstName, middleName, lastName, publicNickName, addressMain, addressPostal, avatarUuid, taxResident, documentType, documentNumber, documentCountryOfIssuance, documentFrontAttachmentId, documentBackAttachmentId, dateOfBirth, nationality, allNationality, language, region, gender, status, subStatus, null, null, null, null, null); } - public static BunqResponse update(String firstName, String middleName, String lastName, String publicNickName, AddressObject addressMain, AddressObject addressPostal, String avatarUuid, List taxResident, String documentType, String documentNumber, String documentCountryOfIssuance, Integer documentFrontAttachmentId, Integer documentBackAttachmentId, String dateOfBirth, String nationality, List allNationality, String language, String region, String gender, String status, String subStatus, PointerObject legalGuardianAlias) { + public static BunqResponse update(String firstName, String middleName, String lastName, String publicNickName, AddressObject addressMain, AddressObject addressPostal, String avatarUuid, List taxResident, String documentType, String documentNumber, String documentCountryOfIssuance, Long documentFrontAttachmentId, Long documentBackAttachmentId, String dateOfBirth, String nationality, List allNationality, String language, String region, String gender, String status, String subStatus, PointerObject legalGuardianAlias) { return update(firstName, middleName, lastName, publicNickName, addressMain, addressPostal, avatarUuid, taxResident, documentType, documentNumber, documentCountryOfIssuance, documentFrontAttachmentId, documentBackAttachmentId, dateOfBirth, nationality, allNationality, language, region, gender, status, subStatus, legalGuardianAlias, null, null, null, null); } - public static BunqResponse update(String firstName, String middleName, String lastName, String publicNickName, AddressObject addressMain, AddressObject addressPostal, String avatarUuid, List taxResident, String documentType, String documentNumber, String documentCountryOfIssuance, Integer documentFrontAttachmentId, Integer documentBackAttachmentId, String dateOfBirth, String nationality, List allNationality, String language, String region, String gender, String status, String subStatus, PointerObject legalGuardianAlias, Integer sessionTimeout) { + public static BunqResponse update(String firstName, String middleName, String lastName, String publicNickName, AddressObject addressMain, AddressObject addressPostal, String avatarUuid, List taxResident, String documentType, String documentNumber, String documentCountryOfIssuance, Long documentFrontAttachmentId, Long documentBackAttachmentId, String dateOfBirth, String nationality, List allNationality, String language, String region, String gender, String status, String subStatus, PointerObject legalGuardianAlias, Long sessionTimeout) { return update(firstName, middleName, lastName, publicNickName, addressMain, addressPostal, avatarUuid, taxResident, documentType, documentNumber, documentCountryOfIssuance, documentFrontAttachmentId, documentBackAttachmentId, dateOfBirth, nationality, allNationality, language, region, gender, status, subStatus, legalGuardianAlias, sessionTimeout, null, null, null); } - public static BunqResponse update(String firstName, String middleName, String lastName, String publicNickName, AddressObject addressMain, AddressObject addressPostal, String avatarUuid, List taxResident, String documentType, String documentNumber, String documentCountryOfIssuance, Integer documentFrontAttachmentId, Integer documentBackAttachmentId, String dateOfBirth, String nationality, List allNationality, String language, String region, String gender, String status, String subStatus, PointerObject legalGuardianAlias, Integer sessionTimeout, AmountObject dailyLimitWithoutConfirmationLogin) { + public static BunqResponse update(String firstName, String middleName, String lastName, String publicNickName, AddressObject addressMain, AddressObject addressPostal, String avatarUuid, List taxResident, String documentType, String documentNumber, String documentCountryOfIssuance, Long documentFrontAttachmentId, Long documentBackAttachmentId, String dateOfBirth, String nationality, List allNationality, String language, String region, String gender, String status, String subStatus, PointerObject legalGuardianAlias, Long sessionTimeout, AmountObject dailyLimitWithoutConfirmationLogin) { return update(firstName, middleName, lastName, publicNickName, addressMain, addressPostal, avatarUuid, taxResident, documentType, documentNumber, documentCountryOfIssuance, documentFrontAttachmentId, documentBackAttachmentId, dateOfBirth, nationality, allNationality, language, region, gender, status, subStatus, legalGuardianAlias, sessionTimeout, dailyLimitWithoutConfirmationLogin, null, null); } - public static BunqResponse update(String firstName, String middleName, String lastName, String publicNickName, AddressObject addressMain, AddressObject addressPostal, String avatarUuid, List taxResident, String documentType, String documentNumber, String documentCountryOfIssuance, Integer documentFrontAttachmentId, Integer documentBackAttachmentId, String dateOfBirth, String nationality, List allNationality, String language, String region, String gender, String status, String subStatus, PointerObject legalGuardianAlias, Integer sessionTimeout, AmountObject dailyLimitWithoutConfirmationLogin, String displayName) { + public static BunqResponse update(String firstName, String middleName, String lastName, String publicNickName, AddressObject addressMain, AddressObject addressPostal, String avatarUuid, List taxResident, String documentType, String documentNumber, String documentCountryOfIssuance, Long documentFrontAttachmentId, Long documentBackAttachmentId, String dateOfBirth, String nationality, List allNationality, String language, String region, String gender, String status, String subStatus, PointerObject legalGuardianAlias, Long sessionTimeout, AmountObject dailyLimitWithoutConfirmationLogin, String displayName) { return update(firstName, middleName, lastName, publicNickName, addressMain, addressPostal, avatarUuid, taxResident, documentType, documentNumber, documentCountryOfIssuance, documentFrontAttachmentId, documentBackAttachmentId, dateOfBirth, nationality, allNationality, language, region, gender, status, subStatus, legalGuardianAlias, sessionTimeout, dailyLimitWithoutConfirmationLogin, displayName, null); } /** * The id of the modified person object. */ - public Integer getId() { + public Long getId() { return this.id; } - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } @@ -1120,11 +1120,11 @@ public void setSubStatus(String subStatus) { /** * The setting for the session timeout of the user in seconds. */ - public Integer getSessionTimeout() { + public Long getSessionTimeout() { return this.sessionTimeout; } - public void setSessionTimeout(Integer sessionTimeout) { + public void setSessionTimeout(Long sessionTimeout) { this.sessionTimeout = sessionTimeout; } diff --git a/src/main/java/com/bunq/sdk/model/generated/endpoint/WhitelistResultApiObject.java b/src/main/java/com/bunq/sdk/model/generated/endpoint/WhitelistResultApiObject.java index 92c65a1f..cf0d02c1 100644 --- a/src/main/java/com/bunq/sdk/model/generated/endpoint/WhitelistResultApiObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/endpoint/WhitelistResultApiObject.java @@ -24,7 +24,7 @@ public class WhitelistResultApiObject extends BunqModel { */ @Expose @SerializedName("id") - private Integer id; + private Long id; /** * The account from which payments will be deducted when a transaction is matched with this @@ -32,7 +32,7 @@ public class WhitelistResultApiObject extends BunqModel { */ @Expose @SerializedName("monetary_account_paying_id") - private Integer monetaryAccountPayingId; + private Long monetaryAccountPayingId; /** * The status of the WhitelistResult. @@ -80,11 +80,11 @@ public class WhitelistResultApiObject extends BunqModel { /** * The ID of the whitelist entry. */ - public Integer getId() { + public Long getId() { return this.id; } - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } @@ -92,11 +92,11 @@ public void setId(Integer id) { * The account from which payments will be deducted when a transaction is matched with this * whitelist. */ - public Integer getMonetaryAccountPayingId() { + public Long getMonetaryAccountPayingId() { return this.monetaryAccountPayingId; } - public void setMonetaryAccountPayingId(Integer monetaryAccountPayingId) { + public void setMonetaryAccountPayingId(Long monetaryAccountPayingId) { this.monetaryAccountPayingId = monetaryAccountPayingId; } diff --git a/src/main/java/com/bunq/sdk/model/generated/endpoint/WhitelistSddApiObject.java b/src/main/java/com/bunq/sdk/model/generated/endpoint/WhitelistSddApiObject.java index 693b8cbc..0295181f 100644 --- a/src/main/java/com/bunq/sdk/model/generated/endpoint/WhitelistSddApiObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/endpoint/WhitelistSddApiObject.java @@ -47,7 +47,7 @@ public class WhitelistSddApiObject extends BunqModel { */ @Expose @SerializedName("id") - private Integer id; + private Long id; /** * The account to which payments will come in before possibly being 'redirected' by the @@ -55,7 +55,7 @@ public class WhitelistSddApiObject extends BunqModel { */ @Expose @SerializedName("monetary_account_incoming_id") - private Integer monetaryAccountIncomingId; + private Long monetaryAccountIncomingId; /** * The account from which payments will be deducted when a transaction is matched with this @@ -63,7 +63,7 @@ public class WhitelistSddApiObject extends BunqModel { */ @Expose @SerializedName("monetary_account_paying_id") - private Integer monetaryAccountPayingId; + private Long monetaryAccountPayingId; /** * The type of the SDD whitelist, can be CORE or B2B. @@ -119,14 +119,14 @@ public class WhitelistSddApiObject extends BunqModel { */ @Expose @SerializedName("monetary_account_paying_id_field_for_request") - private Integer monetaryAccountPayingIdFieldForRequest; + private Long monetaryAccountPayingIdFieldForRequest; /** * ID of the request for which you want to whitelist the originating SDD. */ @Expose @SerializedName("request_id_field_for_request") - private Integer requestIdFieldForRequest; + private Long requestIdFieldForRequest; /** * The maximum amount of money that is allowed to be deducted based on the whitelist. @@ -139,22 +139,22 @@ public WhitelistSddApiObject() { this(null, null, null); } - public WhitelistSddApiObject(Integer monetaryAccountPayingId) { + public WhitelistSddApiObject(Long monetaryAccountPayingId) { this(monetaryAccountPayingId, null, null); } - public WhitelistSddApiObject(Integer monetaryAccountPayingId, Integer requestId) { + public WhitelistSddApiObject(Long monetaryAccountPayingId, Long requestId) { this(monetaryAccountPayingId, requestId, null); } - public WhitelistSddApiObject(Integer monetaryAccountPayingId, Integer requestId, AmountObject maximumAmountPerMonth) { + public WhitelistSddApiObject(Long monetaryAccountPayingId, Long requestId, AmountObject maximumAmountPerMonth) { this.monetaryAccountPayingIdFieldForRequest = monetaryAccountPayingId; this.requestIdFieldForRequest = requestId; this.maximumAmountPerMonthFieldForRequest = maximumAmountPerMonth; } /** * Get a specific recurring SDD whitelist entry. */ - public static BunqResponse get(Integer whitelistSddId, Map params, Map customHeaders) { + public static BunqResponse get(Long whitelistSddId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_READ, determineUserId(), whitelistSddId), params, customHeaders); @@ -165,11 +165,11 @@ public static BunqResponse get() { return get(null, null, null); } - public static BunqResponse get(Integer whitelistSddId) { + public static BunqResponse get(Long whitelistSddId) { return get(whitelistSddId, null, null); } - public static BunqResponse get(Integer whitelistSddId, Map params) { + public static BunqResponse get(Long whitelistSddId, Map params) { return get(whitelistSddId, params, null); } @@ -194,11 +194,11 @@ public static BunqResponse> list(Map /** * The ID of the whitelist entry. */ - public Integer getId() { + public Long getId() { return this.id; } - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } @@ -206,11 +206,11 @@ public void setId(Integer id) { * The account to which payments will come in before possibly being 'redirected' by the * whitelist. */ - public Integer getMonetaryAccountIncomingId() { + public Long getMonetaryAccountIncomingId() { return this.monetaryAccountIncomingId; } - public void setMonetaryAccountIncomingId(Integer monetaryAccountIncomingId) { + public void setMonetaryAccountIncomingId(Long monetaryAccountIncomingId) { this.monetaryAccountIncomingId = monetaryAccountIncomingId; } @@ -218,11 +218,11 @@ public void setMonetaryAccountIncomingId(Integer monetaryAccountIncomingId) { * The account from which payments will be deducted when a transaction is matched with this * whitelist. */ - public Integer getMonetaryAccountPayingId() { + public Long getMonetaryAccountPayingId() { return this.monetaryAccountPayingId; } - public void setMonetaryAccountPayingId(Integer monetaryAccountPayingId) { + public void setMonetaryAccountPayingId(Long monetaryAccountPayingId) { this.monetaryAccountPayingId = monetaryAccountPayingId; } diff --git a/src/main/java/com/bunq/sdk/model/generated/endpoint/WhitelistSddMonetaryAccountPayingApiObject.java b/src/main/java/com/bunq/sdk/model/generated/endpoint/WhitelistSddMonetaryAccountPayingApiObject.java index f66ff3d2..2947cdff 100644 --- a/src/main/java/com/bunq/sdk/model/generated/endpoint/WhitelistSddMonetaryAccountPayingApiObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/endpoint/WhitelistSddMonetaryAccountPayingApiObject.java @@ -40,7 +40,7 @@ public class WhitelistSddMonetaryAccountPayingApiObject extends BunqModel { */ @Expose @SerializedName("id") - private Integer id; + private Long id; /** * The account to which payments will come in before possibly being 'redirected' by the @@ -48,7 +48,7 @@ public class WhitelistSddMonetaryAccountPayingApiObject extends BunqModel { */ @Expose @SerializedName("monetary_account_incoming_id") - private Integer monetaryAccountIncomingId; + private Long monetaryAccountIncomingId; /** * The account from which payments will be deducted when a transaction is matched with this @@ -56,7 +56,7 @@ public class WhitelistSddMonetaryAccountPayingApiObject extends BunqModel { */ @Expose @SerializedName("monetary_account_paying_id") - private Integer monetaryAccountPayingId; + private Long monetaryAccountPayingId; /** * The type of the SDD whitelist, can be CORE or B2B. @@ -110,7 +110,7 @@ public class WhitelistSddMonetaryAccountPayingApiObject extends BunqModel { /** * Get a specific SDD whitelist entry. */ - public static BunqResponse get(Integer whitelistSddMonetaryAccountPayingId, Integer monetaryAccountId, Map params, Map customHeaders) { + public static BunqResponse get(Long whitelistSddMonetaryAccountPayingId, Long monetaryAccountId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_READ, determineUserId(), determineMonetaryAccountId(monetaryAccountId), whitelistSddMonetaryAccountPayingId), params, customHeaders); @@ -121,22 +121,22 @@ public static BunqResponse get() { return get(null, null, null, null); } - public static BunqResponse get(Integer whitelistSddMonetaryAccountPayingId) { + public static BunqResponse get(Long whitelistSddMonetaryAccountPayingId) { return get(whitelistSddMonetaryAccountPayingId, null, null, null); } - public static BunqResponse get(Integer whitelistSddMonetaryAccountPayingId, Integer monetaryAccountId) { + public static BunqResponse get(Long whitelistSddMonetaryAccountPayingId, Long monetaryAccountId) { return get(whitelistSddMonetaryAccountPayingId, monetaryAccountId, null, null); } - public static BunqResponse get(Integer whitelistSddMonetaryAccountPayingId, Integer monetaryAccountId, Map params) { + public static BunqResponse get(Long whitelistSddMonetaryAccountPayingId, Long monetaryAccountId, Map params) { return get(whitelistSddMonetaryAccountPayingId, monetaryAccountId, params, null); } /** * Get a listing of all SDD whitelist entries for a target monetary account. */ - public static BunqResponse> list(Integer monetaryAccountId, Map params, Map customHeaders) { + public static BunqResponse> list(Long monetaryAccountId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_LISTING, determineUserId(), determineMonetaryAccountId(monetaryAccountId)), params, customHeaders); @@ -147,22 +147,22 @@ public static BunqResponse> lis return list(null, null, null); } - public static BunqResponse> list(Integer monetaryAccountId) { + public static BunqResponse> list(Long monetaryAccountId) { return list(monetaryAccountId, null, null); } - public static BunqResponse> list(Integer monetaryAccountId, Map params) { + public static BunqResponse> list(Long monetaryAccountId, Map params) { return list(monetaryAccountId, params, null); } /** * The ID of the whitelist entry. */ - public Integer getId() { + public Long getId() { return this.id; } - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } @@ -170,11 +170,11 @@ public void setId(Integer id) { * The account to which payments will come in before possibly being 'redirected' by the * whitelist. */ - public Integer getMonetaryAccountIncomingId() { + public Long getMonetaryAccountIncomingId() { return this.monetaryAccountIncomingId; } - public void setMonetaryAccountIncomingId(Integer monetaryAccountIncomingId) { + public void setMonetaryAccountIncomingId(Long monetaryAccountIncomingId) { this.monetaryAccountIncomingId = monetaryAccountIncomingId; } @@ -182,11 +182,11 @@ public void setMonetaryAccountIncomingId(Integer monetaryAccountIncomingId) { * The account from which payments will be deducted when a transaction is matched with this * whitelist. */ - public Integer getMonetaryAccountPayingId() { + public Long getMonetaryAccountPayingId() { return this.monetaryAccountPayingId; } - public void setMonetaryAccountPayingId(Integer monetaryAccountPayingId) { + public void setMonetaryAccountPayingId(Long monetaryAccountPayingId) { this.monetaryAccountPayingId = monetaryAccountPayingId; } diff --git a/src/main/java/com/bunq/sdk/model/generated/endpoint/WhitelistSddOneOffApiObject.java b/src/main/java/com/bunq/sdk/model/generated/endpoint/WhitelistSddOneOffApiObject.java index 7ff5921e..5f0ca184 100644 --- a/src/main/java/com/bunq/sdk/model/generated/endpoint/WhitelistSddOneOffApiObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/endpoint/WhitelistSddOneOffApiObject.java @@ -53,7 +53,7 @@ public class WhitelistSddOneOffApiObject extends BunqModel { */ @Expose @SerializedName("id") - private Integer id; + private Long id; /** * The account to which payments will come in before possibly being 'redirected' by the @@ -61,7 +61,7 @@ public class WhitelistSddOneOffApiObject extends BunqModel { */ @Expose @SerializedName("monetary_account_incoming_id") - private Integer monetaryAccountIncomingId; + private Long monetaryAccountIncomingId; /** * The account from which payments will be deducted when a transaction is matched with this @@ -69,7 +69,7 @@ public class WhitelistSddOneOffApiObject extends BunqModel { */ @Expose @SerializedName("monetary_account_paying_id") - private Integer monetaryAccountPayingId; + private Long monetaryAccountPayingId; /** * The type of the SDD whitelist, can be CORE or B2B. @@ -132,14 +132,14 @@ public class WhitelistSddOneOffApiObject extends BunqModel { */ @Expose @SerializedName("monetary_account_paying_id_field_for_request") - private Integer monetaryAccountPayingIdFieldForRequest; + private Long monetaryAccountPayingIdFieldForRequest; /** * ID of the request for which you want to whitelist the originating SDD. */ @Expose @SerializedName("request_id_field_for_request") - private Integer requestIdFieldForRequest; + private Long requestIdFieldForRequest; /** * The maximum amount of money that is allowed to be deducted per month based on the whitelist. @@ -168,23 +168,23 @@ public WhitelistSddOneOffApiObject() { this(null, null, null, null, null); } - public WhitelistSddOneOffApiObject(Integer monetaryAccountPayingId) { + public WhitelistSddOneOffApiObject(Long monetaryAccountPayingId) { this(monetaryAccountPayingId, null, null, null, null); } - public WhitelistSddOneOffApiObject(Integer monetaryAccountPayingId, Integer requestId) { + public WhitelistSddOneOffApiObject(Long monetaryAccountPayingId, Long requestId) { this(monetaryAccountPayingId, requestId, null, null, null); } - public WhitelistSddOneOffApiObject(Integer monetaryAccountPayingId, Integer requestId, AmountObject maximumAmountPerMonth) { + public WhitelistSddOneOffApiObject(Long monetaryAccountPayingId, Long requestId, AmountObject maximumAmountPerMonth) { this(monetaryAccountPayingId, requestId, maximumAmountPerMonth, null, null); } - public WhitelistSddOneOffApiObject(Integer monetaryAccountPayingId, Integer requestId, AmountObject maximumAmountPerMonth, AmountObject maximumAmountPerPayment) { + public WhitelistSddOneOffApiObject(Long monetaryAccountPayingId, Long requestId, AmountObject maximumAmountPerMonth, AmountObject maximumAmountPerPayment) { this(monetaryAccountPayingId, requestId, maximumAmountPerMonth, maximumAmountPerPayment, null); } - public WhitelistSddOneOffApiObject(Integer monetaryAccountPayingId, Integer requestId, AmountObject maximumAmountPerMonth, AmountObject maximumAmountPerPayment, String routingType) { + public WhitelistSddOneOffApiObject(Long monetaryAccountPayingId, Long requestId, AmountObject maximumAmountPerMonth, AmountObject maximumAmountPerPayment, String routingType) { this.monetaryAccountPayingIdFieldForRequest = monetaryAccountPayingId; this.requestIdFieldForRequest = requestId; this.maximumAmountPerMonthFieldForRequest = maximumAmountPerMonth; @@ -193,7 +193,7 @@ public WhitelistSddOneOffApiObject(Integer monetaryAccountPayingId, Integer requ } /** * Get a specific one off SDD whitelist entry. */ - public static BunqResponse get(Integer whitelistSddOneOffId, Map params, Map customHeaders) { + public static BunqResponse get(Long whitelistSddOneOffId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_READ, determineUserId(), whitelistSddOneOffId), params, customHeaders); @@ -204,11 +204,11 @@ public static BunqResponse get() { return get(null, null, null); } - public static BunqResponse get(Integer whitelistSddOneOffId) { + public static BunqResponse get(Long whitelistSddOneOffId) { return get(whitelistSddOneOffId, null, null); } - public static BunqResponse get(Integer whitelistSddOneOffId, Map params) { + public static BunqResponse get(Long whitelistSddOneOffId, Map params) { return get(whitelistSddOneOffId, params, null); } @@ -223,7 +223,7 @@ public static BunqResponse get(Integer whitelistSdd * @param routingType The type of routing for this whitelist. Should be changed to non-optional * CIT/technical#12806. */ - public static BunqResponse create(Integer monetaryAccountPayingId, Integer requestId, AmountObject maximumAmountPerMonth, AmountObject maximumAmountPerPayment, String routingType, Map customHeaders) { + public static BunqResponse create(Long monetaryAccountPayingId, Long requestId, AmountObject maximumAmountPerMonth, AmountObject maximumAmountPerPayment, String routingType, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -243,27 +243,27 @@ public static BunqResponse create(Integer monetaryAccountPayingId, Inte return processForId(responseRaw); } - public static BunqResponse create() { + public static BunqResponse create() { return create(null, null, null, null, null, null); } - public static BunqResponse create(Integer monetaryAccountPayingId) { + public static BunqResponse create(Long monetaryAccountPayingId) { return create(monetaryAccountPayingId, null, null, null, null, null); } - public static BunqResponse create(Integer monetaryAccountPayingId, Integer requestId) { + public static BunqResponse create(Long monetaryAccountPayingId, Long requestId) { return create(monetaryAccountPayingId, requestId, null, null, null, null); } - public static BunqResponse create(Integer monetaryAccountPayingId, Integer requestId, AmountObject maximumAmountPerMonth) { + public static BunqResponse create(Long monetaryAccountPayingId, Long requestId, AmountObject maximumAmountPerMonth) { return create(monetaryAccountPayingId, requestId, maximumAmountPerMonth, null, null, null); } - public static BunqResponse create(Integer monetaryAccountPayingId, Integer requestId, AmountObject maximumAmountPerMonth, AmountObject maximumAmountPerPayment) { + public static BunqResponse create(Long monetaryAccountPayingId, Long requestId, AmountObject maximumAmountPerMonth, AmountObject maximumAmountPerPayment) { return create(monetaryAccountPayingId, requestId, maximumAmountPerMonth, maximumAmountPerPayment, null, null); } - public static BunqResponse create(Integer monetaryAccountPayingId, Integer requestId, AmountObject maximumAmountPerMonth, AmountObject maximumAmountPerPayment, String routingType) { + public static BunqResponse create(Long monetaryAccountPayingId, Long requestId, AmountObject maximumAmountPerMonth, AmountObject maximumAmountPerPayment, String routingType) { return create(monetaryAccountPayingId, requestId, maximumAmountPerMonth, maximumAmountPerPayment, routingType, null); } @@ -276,7 +276,7 @@ public static BunqResponse create(Integer monetaryAccountPayingId, Inte * @param routingType The type of routing for this whitelist. Should be changed to non-optional * CIT/technical#12806. */ - public static BunqResponse update(Integer whitelistSddOneOffId, Integer monetaryAccountPayingId, AmountObject maximumAmountPerMonth, AmountObject maximumAmountPerPayment, String routingType, Map customHeaders) { + public static BunqResponse update(Long whitelistSddOneOffId, Long monetaryAccountPayingId, AmountObject maximumAmountPerMonth, AmountObject maximumAmountPerPayment, String routingType, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -295,36 +295,36 @@ public static BunqResponse update(Integer whitelistSddOneOffId, Integer return processForId(responseRaw); } - public static BunqResponse update(Integer whitelistSddOneOffId) { + public static BunqResponse update(Long whitelistSddOneOffId) { return update(whitelistSddOneOffId, null, null, null, null, null); } - public static BunqResponse update(Integer whitelistSddOneOffId, Integer monetaryAccountPayingId) { + public static BunqResponse update(Long whitelistSddOneOffId, Long monetaryAccountPayingId) { return update(whitelistSddOneOffId, monetaryAccountPayingId, null, null, null, null); } - public static BunqResponse update(Integer whitelistSddOneOffId, Integer monetaryAccountPayingId, AmountObject maximumAmountPerMonth) { + public static BunqResponse update(Long whitelistSddOneOffId, Long monetaryAccountPayingId, AmountObject maximumAmountPerMonth) { return update(whitelistSddOneOffId, monetaryAccountPayingId, maximumAmountPerMonth, null, null, null); } - public static BunqResponse update(Integer whitelistSddOneOffId, Integer monetaryAccountPayingId, AmountObject maximumAmountPerMonth, AmountObject maximumAmountPerPayment) { + public static BunqResponse update(Long whitelistSddOneOffId, Long monetaryAccountPayingId, AmountObject maximumAmountPerMonth, AmountObject maximumAmountPerPayment) { return update(whitelistSddOneOffId, monetaryAccountPayingId, maximumAmountPerMonth, maximumAmountPerPayment, null, null); } - public static BunqResponse update(Integer whitelistSddOneOffId, Integer monetaryAccountPayingId, AmountObject maximumAmountPerMonth, AmountObject maximumAmountPerPayment, String routingType) { + public static BunqResponse update(Long whitelistSddOneOffId, Long monetaryAccountPayingId, AmountObject maximumAmountPerMonth, AmountObject maximumAmountPerPayment, String routingType) { return update(whitelistSddOneOffId, monetaryAccountPayingId, maximumAmountPerMonth, maximumAmountPerPayment, routingType, null); } /** */ - public static BunqResponse delete(Integer whitelistSddOneOffId, Map customHeaders) { + public static BunqResponse delete(Long whitelistSddOneOffId, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.delete(String.format(ENDPOINT_URL_DELETE, determineUserId(), whitelistSddOneOffId), customHeaders); return new BunqResponse<>(null, responseRaw.getHeaders()); } - public static BunqResponse delete(Integer whitelistSddOneOffId) { + public static BunqResponse delete(Long whitelistSddOneOffId) { return delete(whitelistSddOneOffId, null); } @@ -349,11 +349,11 @@ public static BunqResponse> list(Map get(Integer whitelistSddRecurringId, Map params, Map customHeaders) { + public static BunqResponse get(Long whitelistSddRecurringId, Map params, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.get(String.format(ENDPOINT_URL_READ, determineUserId(), whitelistSddRecurringId), params, customHeaders); @@ -211,11 +211,11 @@ public static BunqResponse get() { return get(null, null, null); } - public static BunqResponse get(Integer whitelistSddRecurringId) { + public static BunqResponse get(Long whitelistSddRecurringId) { return get(whitelistSddRecurringId, null, null); } - public static BunqResponse get(Integer whitelistSddRecurringId, Map params) { + public static BunqResponse get(Long whitelistSddRecurringId, Map params) { return get(whitelistSddRecurringId, params, null); } @@ -230,7 +230,7 @@ public static BunqResponse get(Integer whitelist * @param routingType The type of routing for this whitelist. Should be changed to non-optional * CIT/technical#12806. */ - public static BunqResponse create(Integer monetaryAccountPayingId, Integer requestId, AmountObject maximumAmountPerMonth, AmountObject maximumAmountPerPayment, String routingType, Map customHeaders) { + public static BunqResponse create(Long monetaryAccountPayingId, Long requestId, AmountObject maximumAmountPerMonth, AmountObject maximumAmountPerPayment, String routingType, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -250,27 +250,27 @@ public static BunqResponse create(Integer monetaryAccountPayingId, Inte return processForId(responseRaw); } - public static BunqResponse create() { + public static BunqResponse create() { return create(null, null, null, null, null, null); } - public static BunqResponse create(Integer monetaryAccountPayingId) { + public static BunqResponse create(Long monetaryAccountPayingId) { return create(monetaryAccountPayingId, null, null, null, null, null); } - public static BunqResponse create(Integer monetaryAccountPayingId, Integer requestId) { + public static BunqResponse create(Long monetaryAccountPayingId, Long requestId) { return create(monetaryAccountPayingId, requestId, null, null, null, null); } - public static BunqResponse create(Integer monetaryAccountPayingId, Integer requestId, AmountObject maximumAmountPerMonth) { + public static BunqResponse create(Long monetaryAccountPayingId, Long requestId, AmountObject maximumAmountPerMonth) { return create(monetaryAccountPayingId, requestId, maximumAmountPerMonth, null, null, null); } - public static BunqResponse create(Integer monetaryAccountPayingId, Integer requestId, AmountObject maximumAmountPerMonth, AmountObject maximumAmountPerPayment) { + public static BunqResponse create(Long monetaryAccountPayingId, Long requestId, AmountObject maximumAmountPerMonth, AmountObject maximumAmountPerPayment) { return create(monetaryAccountPayingId, requestId, maximumAmountPerMonth, maximumAmountPerPayment, null, null); } - public static BunqResponse create(Integer monetaryAccountPayingId, Integer requestId, AmountObject maximumAmountPerMonth, AmountObject maximumAmountPerPayment, String routingType) { + public static BunqResponse create(Long monetaryAccountPayingId, Long requestId, AmountObject maximumAmountPerMonth, AmountObject maximumAmountPerPayment, String routingType) { return create(monetaryAccountPayingId, requestId, maximumAmountPerMonth, maximumAmountPerPayment, routingType, null); } @@ -283,7 +283,7 @@ public static BunqResponse create(Integer monetaryAccountPayingId, Inte * @param routingType The type of routing for this whitelist. Should be changed to non-optional * CIT/technical#12806. */ - public static BunqResponse update(Integer whitelistSddRecurringId, Integer monetaryAccountPayingId, AmountObject maximumAmountPerMonth, AmountObject maximumAmountPerPayment, String routingType, Map customHeaders) { + public static BunqResponse update(Long whitelistSddRecurringId, Long monetaryAccountPayingId, AmountObject maximumAmountPerMonth, AmountObject maximumAmountPerPayment, String routingType, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); if (customHeaders == null) { @@ -302,36 +302,36 @@ public static BunqResponse update(Integer whitelistSddRecurringId, Inte return processForId(responseRaw); } - public static BunqResponse update(Integer whitelistSddRecurringId) { + public static BunqResponse update(Long whitelistSddRecurringId) { return update(whitelistSddRecurringId, null, null, null, null, null); } - public static BunqResponse update(Integer whitelistSddRecurringId, Integer monetaryAccountPayingId) { + public static BunqResponse update(Long whitelistSddRecurringId, Long monetaryAccountPayingId) { return update(whitelistSddRecurringId, monetaryAccountPayingId, null, null, null, null); } - public static BunqResponse update(Integer whitelistSddRecurringId, Integer monetaryAccountPayingId, AmountObject maximumAmountPerMonth) { + public static BunqResponse update(Long whitelistSddRecurringId, Long monetaryAccountPayingId, AmountObject maximumAmountPerMonth) { return update(whitelistSddRecurringId, monetaryAccountPayingId, maximumAmountPerMonth, null, null, null); } - public static BunqResponse update(Integer whitelistSddRecurringId, Integer monetaryAccountPayingId, AmountObject maximumAmountPerMonth, AmountObject maximumAmountPerPayment) { + public static BunqResponse update(Long whitelistSddRecurringId, Long monetaryAccountPayingId, AmountObject maximumAmountPerMonth, AmountObject maximumAmountPerPayment) { return update(whitelistSddRecurringId, monetaryAccountPayingId, maximumAmountPerMonth, maximumAmountPerPayment, null, null); } - public static BunqResponse update(Integer whitelistSddRecurringId, Integer monetaryAccountPayingId, AmountObject maximumAmountPerMonth, AmountObject maximumAmountPerPayment, String routingType) { + public static BunqResponse update(Long whitelistSddRecurringId, Long monetaryAccountPayingId, AmountObject maximumAmountPerMonth, AmountObject maximumAmountPerPayment, String routingType) { return update(whitelistSddRecurringId, monetaryAccountPayingId, maximumAmountPerMonth, maximumAmountPerPayment, routingType, null); } /** */ - public static BunqResponse delete(Integer whitelistSddRecurringId, Map customHeaders) { + public static BunqResponse delete(Long whitelistSddRecurringId, Map customHeaders) { ApiClient apiClient = new ApiClient(getApiContext()); BunqResponseRaw responseRaw = apiClient.delete(String.format(ENDPOINT_URL_DELETE, determineUserId(), whitelistSddRecurringId), customHeaders); return new BunqResponse<>(null, responseRaw.getHeaders()); } - public static BunqResponse delete(Integer whitelistSddRecurringId) { + public static BunqResponse delete(Long whitelistSddRecurringId) { return delete(whitelistSddRecurringId, null); } @@ -356,11 +356,11 @@ public static BunqResponse> list(Map countryPermission) { + public CardBatchEntryObject(Long id, String status, AmountObject cardLimit, AmountObject cardLimitAtm, List countryPermission) { this(id, status, cardLimit, cardLimitAtm, countryPermission, null); } - public CardBatchEntryObject(Integer id, String status, AmountObject cardLimit, AmountObject cardLimitAtm, List countryPermission, Integer monetaryAccountIdFallback) { + public CardBatchEntryObject(Long id, String status, AmountObject cardLimit, AmountObject cardLimitAtm, List countryPermission, Long monetaryAccountIdFallback) { this.idFieldForRequest = id; this.statusFieldForRequest = status; this.cardLimitFieldForRequest = cardLimit; diff --git a/src/main/java/com/bunq/sdk/model/generated/object/CardBatchReplaceEntryObject.java b/src/main/java/com/bunq/sdk/model/generated/object/CardBatchReplaceEntryObject.java index 0b442e4e..5e6321c3 100644 --- a/src/main/java/com/bunq/sdk/model/generated/object/CardBatchReplaceEntryObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/object/CardBatchReplaceEntryObject.java @@ -20,7 +20,7 @@ public class CardBatchReplaceEntryObject extends BunqModel { */ @Expose @SerializedName("id_field_for_request") - private Integer idFieldForRequest; + private Long idFieldForRequest; /** * The user's name as it will be on the card. Check 'card-name' for the available card names for @@ -48,19 +48,19 @@ public CardBatchReplaceEntryObject() { this(null, null, null, null); } - public CardBatchReplaceEntryObject(Integer id) { + public CardBatchReplaceEntryObject(Long id) { this(id, null, null, null); } - public CardBatchReplaceEntryObject(Integer id, String nameOnCard) { + public CardBatchReplaceEntryObject(Long id, String nameOnCard) { this(id, nameOnCard, null, null); } - public CardBatchReplaceEntryObject(Integer id, String nameOnCard, List pinCodeAssignment) { + public CardBatchReplaceEntryObject(Long id, String nameOnCard, List pinCodeAssignment) { this(id, nameOnCard, pinCodeAssignment, null); } - public CardBatchReplaceEntryObject(Integer id, String nameOnCard, List pinCodeAssignment, String secondLine) { + public CardBatchReplaceEntryObject(Long id, String nameOnCard, List pinCodeAssignment, String secondLine) { this.idFieldForRequest = id; this.nameOnCardFieldForRequest = nameOnCard; this.pinCodeAssignmentFieldForRequest = pinCodeAssignment; diff --git a/src/main/java/com/bunq/sdk/model/generated/object/CardCountryPermissionObject.java b/src/main/java/com/bunq/sdk/model/generated/object/CardCountryPermissionObject.java index c55fa351..00110a15 100644 --- a/src/main/java/com/bunq/sdk/model/generated/object/CardCountryPermissionObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/object/CardCountryPermissionObject.java @@ -20,7 +20,7 @@ public class CardCountryPermissionObject extends BunqModel { */ @Expose @SerializedName("id") - private Integer id; + private Long id; /** * The country to allow transactions in (e.g. NL, DE). @@ -59,11 +59,11 @@ public CardCountryPermissionObject(String country, String expiryTime) { /** * The id of the card country permission entry. */ - public Integer getId() { + public Long getId() { return this.id; } - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } diff --git a/src/main/java/com/bunq/sdk/model/generated/object/CardPinAssignmentObject.java b/src/main/java/com/bunq/sdk/model/generated/object/CardPinAssignmentObject.java index 1ad2626f..a43cf3f3 100644 --- a/src/main/java/com/bunq/sdk/model/generated/object/CardPinAssignmentObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/object/CardPinAssignmentObject.java @@ -27,7 +27,7 @@ public class CardPinAssignmentObject extends BunqModel { */ @Expose @SerializedName("monetary_account_id") - private Integer monetaryAccountId; + private Long monetaryAccountId; /** * The status of the card pin assignment. @@ -69,7 +69,7 @@ public class CardPinAssignmentObject extends BunqModel { */ @Expose @SerializedName("monetary_account_id_field_for_request") - private Integer monetaryAccountIdFieldForRequest; + private Long monetaryAccountIdFieldForRequest; public CardPinAssignmentObject() { this(null, null, null, null); @@ -87,7 +87,7 @@ public CardPinAssignmentObject(String type, String routingType, String pinCode) this(type, routingType, pinCode, null); } - public CardPinAssignmentObject(String type, String routingType, String pinCode, Integer monetaryAccountId) { + public CardPinAssignmentObject(String type, String routingType, String pinCode, Long monetaryAccountId) { this.typeFieldForRequest = type; this.routingTypeFieldForRequest = routingType; this.pinCodeFieldForRequest = pinCode; @@ -108,11 +108,11 @@ public void setType(String type) { /** * The ID of the monetary account to assign to this pin for the card. */ - public Integer getMonetaryAccountId() { + public Long getMonetaryAccountId() { return this.monetaryAccountId; } - public void setMonetaryAccountId(Integer monetaryAccountId) { + public void setMonetaryAccountId(Long monetaryAccountId) { this.monetaryAccountId = monetaryAccountId; } diff --git a/src/main/java/com/bunq/sdk/model/generated/object/CardPrimaryAccountNumberObject.java b/src/main/java/com/bunq/sdk/model/generated/object/CardPrimaryAccountNumberObject.java index 41161c9e..12516785 100644 --- a/src/main/java/com/bunq/sdk/model/generated/object/CardPrimaryAccountNumberObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/object/CardPrimaryAccountNumberObject.java @@ -20,7 +20,7 @@ public class CardPrimaryAccountNumberObject extends BunqModel { */ @Expose @SerializedName("id") - private Integer id; + private Long id; /** * The UUID for this Virtual PAN. @@ -48,7 +48,7 @@ public class CardPrimaryAccountNumberObject extends BunqModel { */ @Expose @SerializedName("monetary_account_id") - private Integer monetaryAccountId; + private Long monetaryAccountId; /** * The last four digits of the PAN. @@ -69,7 +69,7 @@ public class CardPrimaryAccountNumberObject extends BunqModel { */ @Expose @SerializedName("id_field_for_request") - private Integer idFieldForRequest; + private Long idFieldForRequest; /** * The description for this PAN. @@ -90,25 +90,25 @@ public class CardPrimaryAccountNumberObject extends BunqModel { */ @Expose @SerializedName("monetary_account_id_field_for_request") - private Integer monetaryAccountIdFieldForRequest; + private Long monetaryAccountIdFieldForRequest; public CardPrimaryAccountNumberObject() { this(null, null, null, null); } - public CardPrimaryAccountNumberObject(Integer id) { + public CardPrimaryAccountNumberObject(Long id) { this(id, null, null, null); } - public CardPrimaryAccountNumberObject(Integer id, String description) { + public CardPrimaryAccountNumberObject(Long id, String description) { this(id, description, null, null); } - public CardPrimaryAccountNumberObject(Integer id, String description, String status) { + public CardPrimaryAccountNumberObject(Long id, String description, String status) { this(id, description, status, null); } - public CardPrimaryAccountNumberObject(Integer id, String description, String status, Integer monetaryAccountId) { + public CardPrimaryAccountNumberObject(Long id, String description, String status, Long monetaryAccountId) { this.idFieldForRequest = id; this.descriptionFieldForRequest = description; this.statusFieldForRequest = status; @@ -118,11 +118,11 @@ public CardPrimaryAccountNumberObject(Integer id, String description, String sta /** * The ID for this Virtual PAN. */ - public Integer getId() { + public Long getId() { return this.id; } - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } @@ -162,11 +162,11 @@ public void setStatus(String status) { /** * The ID of the monetary account to assign to this PAN, only for Online Cards. */ - public Integer getMonetaryAccountId() { + public Long getMonetaryAccountId() { return this.monetaryAccountId; } - public void setMonetaryAccountId(Integer monetaryAccountId) { + public void setMonetaryAccountId(Long monetaryAccountId) { this.monetaryAccountId = monetaryAccountId; } diff --git a/src/main/java/com/bunq/sdk/model/generated/object/DraftPaymentEntryObject.java b/src/main/java/com/bunq/sdk/model/generated/object/DraftPaymentEntryObject.java index 598014fd..d5cda522 100644 --- a/src/main/java/com/bunq/sdk/model/generated/object/DraftPaymentEntryObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/object/DraftPaymentEntryObject.java @@ -20,7 +20,7 @@ public class DraftPaymentEntryObject extends BunqModel { */ @Expose @SerializedName("id") - private Integer id; + private Long id; /** * The amount of the payment. @@ -144,11 +144,11 @@ public DraftPaymentEntryObject(AmountObject amount, PointerObject counterpartyAl /** * The id of the draft payment entry. */ - public Integer getId() { + public Long getId() { return this.id; } - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } diff --git a/src/main/java/com/bunq/sdk/model/generated/object/ImageObject.java b/src/main/java/com/bunq/sdk/model/generated/object/ImageObject.java index 761b0326..d4d9493d 100644 --- a/src/main/java/com/bunq/sdk/model/generated/object/ImageObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/object/ImageObject.java @@ -34,14 +34,14 @@ public class ImageObject extends BunqModel { */ @Expose @SerializedName("height") - private Integer height; + private Long height; /** * The image width in pixels. */ @Expose @SerializedName("width") - private Integer width; + private Long width; /** * The public UUID of the public attachment containing the image. @@ -68,22 +68,22 @@ public void setContentType(String contentType) { /** * The image height in pixels. */ - public Integer getHeight() { + public Long getHeight() { return this.height; } - public void setHeight(Integer height) { + public void setHeight(Long height) { this.height = height; } /** * The image width in pixels. */ - public Integer getWidth() { + public Long getWidth() { return this.width; } - public void setWidth(Integer width) { + public void setWidth(Long width) { this.width = width; } diff --git a/src/main/java/com/bunq/sdk/model/generated/object/InvoiceItemObject.java b/src/main/java/com/bunq/sdk/model/generated/object/InvoiceItemObject.java index 3bc043cc..461bf3b7 100644 --- a/src/main/java/com/bunq/sdk/model/generated/object/InvoiceItemObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/object/InvoiceItemObject.java @@ -20,7 +20,7 @@ public class InvoiceItemObject extends BunqModel { */ @Expose @SerializedName("id") - private Integer id; + private Long id; /** * The billing date of the item. @@ -88,11 +88,11 @@ public class InvoiceItemObject extends BunqModel { /** * The id of the invoice item. */ - public Integer getId() { + public Long getId() { return this.id; } - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } diff --git a/src/main/java/com/bunq/sdk/model/generated/object/MasterCardActionReferenceObject.java b/src/main/java/com/bunq/sdk/model/generated/object/MasterCardActionReferenceObject.java index 52eeb4b1..8f0585f7 100644 --- a/src/main/java/com/bunq/sdk/model/generated/object/MasterCardActionReferenceObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/object/MasterCardActionReferenceObject.java @@ -20,16 +20,16 @@ public class MasterCardActionReferenceObject extends BunqModel { */ @Expose @SerializedName("event_id") - private Integer eventId; + private Long eventId; /** * The id of the event. */ - public Integer getEventId() { + public Long getEventId() { return this.eventId; } - public void setEventId(Integer eventId) { + public void setEventId(Long eventId) { this.eventId = eventId; } diff --git a/src/main/java/com/bunq/sdk/model/generated/object/NotificationFilterUrlObject.java b/src/main/java/com/bunq/sdk/model/generated/object/NotificationFilterUrlObject.java index 90af58e7..bb90c8e7 100644 --- a/src/main/java/com/bunq/sdk/model/generated/object/NotificationFilterUrlObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/object/NotificationFilterUrlObject.java @@ -20,7 +20,7 @@ public class NotificationFilterUrlObject extends BunqModel { */ @Expose @SerializedName("id") - private Integer id; + private Long id; /** * The timestamp of the NotificationFilterUrl's creation. @@ -137,11 +137,11 @@ public NotificationFilterUrlObject(String category, String notificationTarget, L /** * The id of the NotificationFilterUrl. */ - public Integer getId() { + public Long getId() { return this.id; } - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } diff --git a/src/main/java/com/bunq/sdk/model/generated/object/OauthCallbackUrlObject.java b/src/main/java/com/bunq/sdk/model/generated/object/OauthCallbackUrlObject.java index e3fe0607..23f94824 100644 --- a/src/main/java/com/bunq/sdk/model/generated/object/OauthCallbackUrlObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/object/OauthCallbackUrlObject.java @@ -20,7 +20,7 @@ public class OauthCallbackUrlObject extends BunqModel { */ @Expose @SerializedName("id") - private Integer id; + private Long id; /** * The timestamp of the callback URL's creation. @@ -46,11 +46,11 @@ public class OauthCallbackUrlObject extends BunqModel { /** * The id of the callback URL. */ - public Integer getId() { + public Long getId() { return this.id; } - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } diff --git a/src/main/java/com/bunq/sdk/model/generated/object/PaymentFeeObject.java b/src/main/java/com/bunq/sdk/model/generated/object/PaymentFeeObject.java index db7c13fa..5f2b2b19 100644 --- a/src/main/java/com/bunq/sdk/model/generated/object/PaymentFeeObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/object/PaymentFeeObject.java @@ -34,7 +34,7 @@ public class PaymentFeeObject extends BunqModel { */ @Expose @SerializedName("invoice_id") - private Integer invoiceId; + private Long invoiceId; /** * The amount formatted to two decimal places. @@ -61,11 +61,11 @@ public void setCurrency(String currency) { /** * The id of the invoice related to possible payment fee. */ - public Integer getInvoiceId() { + public Long getInvoiceId() { return this.invoiceId; } - public void setInvoiceId(Integer invoiceId) { + public void setInvoiceId(Long invoiceId) { this.invoiceId = invoiceId; } diff --git a/src/main/java/com/bunq/sdk/model/generated/object/RequestInquiryReferenceObject.java b/src/main/java/com/bunq/sdk/model/generated/object/RequestInquiryReferenceObject.java index b95a4959..675abaf5 100644 --- a/src/main/java/com/bunq/sdk/model/generated/object/RequestInquiryReferenceObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/object/RequestInquiryReferenceObject.java @@ -27,7 +27,7 @@ public class RequestInquiryReferenceObject extends BunqModel { */ @Expose @SerializedName("id") - private Integer id; + private Long id; /** * The type of request inquiry. Can be RequestInquiry or RequestInquiryBatch. @@ -43,11 +43,11 @@ public void setType(String type) { /** * The id of the request inquiry (batch). */ - public Integer getId() { + public Long getId() { return this.id; } - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } diff --git a/src/main/java/com/bunq/sdk/model/generated/object/TaxResidentObject.java b/src/main/java/com/bunq/sdk/model/generated/object/TaxResidentObject.java index f10e6f5a..7d58d725 100644 --- a/src/main/java/com/bunq/sdk/model/generated/object/TaxResidentObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/object/TaxResidentObject.java @@ -20,7 +20,7 @@ public class TaxResidentObject extends BunqModel { */ @Expose @SerializedName("id") - private Integer id; + private Long id; /** * The country of the tax number. @@ -85,11 +85,11 @@ public TaxResidentObject(String country, String taxNumber, String status) { /** * The id of the tax resident. */ - public Integer getId() { + public Long getId() { return this.id; } - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } diff --git a/src/main/java/com/bunq/sdk/model/generated/object/WhitelistResultViewAnchoredObjectObject.java b/src/main/java/com/bunq/sdk/model/generated/object/WhitelistResultViewAnchoredObjectObject.java index 33f2b296..0a7e780a 100644 --- a/src/main/java/com/bunq/sdk/model/generated/object/WhitelistResultViewAnchoredObjectObject.java +++ b/src/main/java/com/bunq/sdk/model/generated/object/WhitelistResultViewAnchoredObjectObject.java @@ -22,7 +22,7 @@ public class WhitelistResultViewAnchoredObjectObject extends BunqModel { */ @Expose @SerializedName("id") - private Integer id; + private Long id; /** * The RequestResponse object @@ -41,11 +41,11 @@ public class WhitelistResultViewAnchoredObjectObject extends BunqModel { /** * The ID of the whitelist entry. */ - public Integer getId() { + public Long getId() { return this.id; } - public void setId(Integer id) { + public void setId(Long id) { this.id = id; } diff --git a/src/test/java/com/bunq/sdk/BunqSdkTestBase.java b/src/test/java/com/bunq/sdk/BunqSdkTestBase.java index 04e0f0ce..cffe7d68 100644 --- a/src/test/java/com/bunq/sdk/BunqSdkTestBase.java +++ b/src/test/java/com/bunq/sdk/BunqSdkTestBase.java @@ -149,7 +149,7 @@ private static SandboxUserPersonApiObject generateNewSandboxUser() { } private static void setSecondMonetaryAccountBank() { - BunqResponse response = MonetaryAccountBankApiObject.create(CURRENCY_EUR, ACCOUNT_DESCRIPTION); + BunqResponse response = MonetaryAccountBankApiObject.create(CURRENCY_EUR, ACCOUNT_DESCRIPTION); secondMonetaryAccountBank = MonetaryAccountBankApiObject.get(response.getValue()).getValue(); } diff --git a/src/test/java/com/bunq/sdk/Config.java b/src/test/java/com/bunq/sdk/Config.java index 73c63ce8..4d75ceb1 100644 --- a/src/test/java/com/bunq/sdk/Config.java +++ b/src/test/java/com/bunq/sdk/Config.java @@ -77,8 +77,8 @@ public static String[] getPermittedIps() { } } - public static Integer getUserId() { - return Integer.parseInt(properties.getProperty(FIELD_USER_ID)); + public static Long getUserId() { + return Long.parseLong(properties.getProperty(FIELD_USER_ID)); } public static String getContentType() { @@ -93,12 +93,12 @@ public static String getPathAttachmentIn() { return properties.getProperty(FIELD_PATH_ATTACHMENT_IN); } - public static Integer getMonetaryAccountId() { - return Integer.parseInt(properties.getProperty(FIELD_MONETARY_ACCOUNT_ID)); + public static Long getMonetaryAccountId() { + return Long.parseLong(properties.getProperty(FIELD_MONETARY_ACCOUNT_ID)); } - public static Integer getMonetaryAccountId2() { - return Integer.parseInt(properties.getProperty(FIELD_MONETARY_ACCOUNT_ID2)); + public static Long getMonetaryAccountId2() { + return Long.parseLong(properties.getProperty(FIELD_MONETARY_ACCOUNT_ID2)); } public static PointerObject getCounterPartyAliasOther() { @@ -115,7 +115,7 @@ public static PointerObject getCounterPartyAliasSelf() { return new PointerObject(type, value); } - public static Integer getPaymentIdWithGeolocation() { - return Integer.parseInt(properties.getProperty(FIELD_PAYMENT_ID_WITH_GEOLOCATION)); + public static Long getPaymentIdWithGeolocation() { + return Long.parseLong(properties.getProperty(FIELD_PAYMENT_ID_WITH_GEOLOCATION)); } } diff --git a/src/test/java/com/bunq/sdk/context/Psd2ContextTest.java b/src/test/java/com/bunq/sdk/context/Psd2ContextTest.java index a3e7efe0..355d78f7 100644 --- a/src/test/java/com/bunq/sdk/context/Psd2ContextTest.java +++ b/src/test/java/com/bunq/sdk/context/Psd2ContextTest.java @@ -86,7 +86,7 @@ public void testCreateOauthClient() { } try { - Integer clientId = OauthClientApiObject.create().getValue(); + Long clientId = OauthClientApiObject.create().getValue(); OauthClientApiObject oauthClient = OauthClientApiObject.get(clientId).getValue(); Assert.assertNotNull(oauthClient); diff --git a/src/test/java/com/bunq/sdk/model/generated/endpoint/MonetaryAccountBankTest.java b/src/test/java/com/bunq/sdk/model/generated/endpoint/MonetaryAccountBankTest.java index 459b0b1a..dbd14b0d 100644 --- a/src/test/java/com/bunq/sdk/model/generated/endpoint/MonetaryAccountBankTest.java +++ b/src/test/java/com/bunq/sdk/model/generated/endpoint/MonetaryAccountBankTest.java @@ -21,7 +21,7 @@ public class MonetaryAccountBankTest extends BunqSdkTestBase { /** * The id of the newly created monetary account which should be closed after the tests completes */ - private static Integer monetaryAccountIdToClose; + private static Long monetaryAccountIdToClose; @AfterClass public static void tearDown() { diff --git a/src/test/java/com/bunq/sdk/model/generated/endpoint/PaymentTest.java b/src/test/java/com/bunq/sdk/model/generated/endpoint/PaymentTest.java index 7ec3d8f5..e2ac96ac 100644 --- a/src/test/java/com/bunq/sdk/model/generated/endpoint/PaymentTest.java +++ b/src/test/java/com/bunq/sdk/model/generated/endpoint/PaymentTest.java @@ -43,7 +43,7 @@ public class PaymentTest extends BunqSdkTestBase { public void makePaymentToOtherUser() { AmountObject amount = new AmountObject(AMOUNT_EUR, CURRENCY_EUR); requestSpendingMoneyIfNeeded(); - BunqResponse response = PaymentApiObject.create( + BunqResponse response = PaymentApiObject.create( amount, secondMonetaryAccountBank.getAlias().get(INDEX_FIRST), PAYMENT_DESCRIPTION @@ -61,7 +61,7 @@ public void makePaymentToOtherUser() { public void makePaymentToOtherAccount() { AmountObject amount = new AmountObject(AMOUNT_EUR, CURRENCY_EUR); requestSpendingMoneyIfNeeded(); - BunqResponse response = PaymentApiObject.create(amount, getPointerBravo(), PAYMENT_DESCRIPTION); + BunqResponse response = PaymentApiObject.create(amount, getPointerBravo(), PAYMENT_DESCRIPTION); Assert.assertNotNull(response); Assert.assertNotNull(response.getValue()); @@ -86,7 +86,7 @@ public void counterPartyAliasNotNullTest() { @Test public void paymentBatchTest() { - BunqResponse response = PaymentBatchApiObject.create(createPaymentForBatch()); + BunqResponse response = PaymentBatchApiObject.create(createPaymentForBatch()); Assert.assertNotNull(response); Assert.assertNotNull(response.getValue()); diff --git a/src/test/java/com/bunq/sdk/model/generated/endpoint/RequestInquiryTest.java b/src/test/java/com/bunq/sdk/model/generated/endpoint/RequestInquiryTest.java index de2deec9..39c1143e 100644 --- a/src/test/java/com/bunq/sdk/model/generated/endpoint/RequestInquiryTest.java +++ b/src/test/java/com/bunq/sdk/model/generated/endpoint/RequestInquiryTest.java @@ -32,7 +32,7 @@ public class RequestInquiryTest extends BunqSdkTestBase { */ @Test public void createRequestInquiryTest() { - BunqResponse request = RequestInquiryApiObject.create( + BunqResponse request = RequestInquiryApiObject.create( new AmountObject(AMOUNT_EUR, CURRENCY), BunqContext.getUserContext().getPrimaryMonetaryAccountBank().getAlias().get(INDEX_FIRST), REQUEST_DESCRIPTION,