diff --git a/README.md b/README.md index 369193822..8b5ce8467 100644 --- a/README.md +++ b/README.md @@ -206,11 +206,6 @@ client.ats().activities().create( ); ``` -## Staged Builders -The generated builders all follow the staged builder pattern. Read more [here](https://immutables.github.io/immutable.html#staged-builder). - -Staged builders only allow you to build the object once all required properties have been specified. For example, to build an `ApplicationEndpointRequest` the Merge SDK will require that you specify the `model` and `remoteUserId` properties. - ## Contributing While we value open-source contributions to this SDK, this library is generated programmatically. @@ -219,4 +214,8 @@ otherwise they would be overwritten upon the next generated release. Feel free t a proof of concept, but know that we will not be able to merge it as-is. We suggest opening an issue first to discuss with us! -On the other hand, contributions to the README are always very welcome! \ No newline at end of file +On the other hand, contributions to the README are always very welcome! +## Staged Builders +The generated builders all follow the staged builder pattern. Read more [here](https://immutables.github.io/immutable.html#staged-builder). + +Staged builders only allow you to build the object once all required properties have been specified. For example, to build an `ApplicationEndpointRequest` the Merge SDK will require that you specify the `model` and `remoteUserId` properties. diff --git a/build.gradle b/build.gradle index 66b7a8f44..f6edfe895 100644 --- a/build.gradle +++ b/build.gradle @@ -44,7 +44,7 @@ java { group = 'dev.merge' -version = '2.0.0' +version = '2.0.1' jar { dependsOn(":generatePomFileForMavenPublication") @@ -71,7 +71,7 @@ publishing { maven(MavenPublication) { groupId = 'dev.merge' artifactId = 'merge-java-client' - version = '2.0.0' + version = '2.0.1' from components.java pom { licenses { diff --git a/src/main/java/com/merge/api/accounting/AccountingClient.java b/src/main/java/com/merge/api/accounting/AccountingClient.java index 87081bc96..d62497b9e 100644 --- a/src/main/java/com/merge/api/accounting/AccountingClient.java +++ b/src/main/java/com/merge/api/accounting/AccountingClient.java @@ -82,6 +82,8 @@ public class AccountingClient { protected final Supplier phoneNumbersClient; + protected final Supplier projectsClient; + protected final Supplier purchaseOrdersClient; protected final Supplier regenerateKeyClient; @@ -139,6 +141,7 @@ public AccountingClient(ClientOptions clientOptions) { this.paymentTermsClient = Suppliers.memoize(() -> new PaymentTermsClient(clientOptions)); this.paymentsClient = Suppliers.memoize(() -> new PaymentsClient(clientOptions)); this.phoneNumbersClient = Suppliers.memoize(() -> new PhoneNumbersClient(clientOptions)); + this.projectsClient = Suppliers.memoize(() -> new ProjectsClient(clientOptions)); this.purchaseOrdersClient = Suppliers.memoize(() -> new PurchaseOrdersClient(clientOptions)); this.regenerateKeyClient = Suppliers.memoize(() -> new RegenerateKeyClient(clientOptions)); this.syncStatusClient = Suppliers.memoize(() -> new SyncStatusClient(clientOptions)); @@ -294,6 +297,10 @@ public PhoneNumbersClient phoneNumbers() { return this.phoneNumbersClient.get(); } + public ProjectsClient projects() { + return this.projectsClient.get(); + } + public PurchaseOrdersClient purchaseOrders() { return this.purchaseOrdersClient.get(); } diff --git a/src/main/java/com/merge/api/accounting/AsyncAccountingClient.java b/src/main/java/com/merge/api/accounting/AsyncAccountingClient.java index ba528cedf..211947e9f 100644 --- a/src/main/java/com/merge/api/accounting/AsyncAccountingClient.java +++ b/src/main/java/com/merge/api/accounting/AsyncAccountingClient.java @@ -82,6 +82,8 @@ public class AsyncAccountingClient { protected final Supplier phoneNumbersClient; + protected final Supplier projectsClient; + protected final Supplier purchaseOrdersClient; protected final Supplier regenerateKeyClient; @@ -139,6 +141,7 @@ public AsyncAccountingClient(ClientOptions clientOptions) { this.paymentTermsClient = Suppliers.memoize(() -> new AsyncPaymentTermsClient(clientOptions)); this.paymentsClient = Suppliers.memoize(() -> new AsyncPaymentsClient(clientOptions)); this.phoneNumbersClient = Suppliers.memoize(() -> new AsyncPhoneNumbersClient(clientOptions)); + this.projectsClient = Suppliers.memoize(() -> new AsyncProjectsClient(clientOptions)); this.purchaseOrdersClient = Suppliers.memoize(() -> new AsyncPurchaseOrdersClient(clientOptions)); this.regenerateKeyClient = Suppliers.memoize(() -> new AsyncRegenerateKeyClient(clientOptions)); this.syncStatusClient = Suppliers.memoize(() -> new AsyncSyncStatusClient(clientOptions)); @@ -294,6 +297,10 @@ public AsyncPhoneNumbersClient phoneNumbers() { return this.phoneNumbersClient.get(); } + public AsyncProjectsClient projects() { + return this.projectsClient.get(); + } + public AsyncPurchaseOrdersClient purchaseOrders() { return this.purchaseOrdersClient.get(); } diff --git a/src/main/java/com/merge/api/accounting/AsyncItemsClient.java b/src/main/java/com/merge/api/accounting/AsyncItemsClient.java index 684994ae5..b07b348f1 100644 --- a/src/main/java/com/merge/api/accounting/AsyncItemsClient.java +++ b/src/main/java/com/merge/api/accounting/AsyncItemsClient.java @@ -4,8 +4,12 @@ package com.merge.api.accounting; import com.merge.api.accounting.types.Item; +import com.merge.api.accounting.types.ItemEndpointRequest; +import com.merge.api.accounting.types.ItemResponse; import com.merge.api.accounting.types.ItemsListRequest; import com.merge.api.accounting.types.ItemsRetrieveRequest; +import com.merge.api.accounting.types.MetaResponse; +import com.merge.api.accounting.types.PatchedItemEndpointRequest; import com.merge.api.core.ClientOptions; import com.merge.api.core.RequestOptions; import com.merge.api.core.SyncPagingIterable; @@ -49,6 +53,20 @@ public CompletableFuture> list(ItemsListRequest request return this.rawClient.list(request, requestOptions).thenApply(response -> response.body()); } + /** + * Creates an Item object with the given values. + */ + public CompletableFuture create(ItemEndpointRequest request) { + return this.rawClient.create(request).thenApply(response -> response.body()); + } + + /** + * Creates an Item object with the given values. + */ + public CompletableFuture create(ItemEndpointRequest request, RequestOptions requestOptions) { + return this.rawClient.create(request, requestOptions).thenApply(response -> response.body()); + } + /** * Returns an Item object with the given id. */ @@ -69,4 +87,47 @@ public CompletableFuture retrieve(String id, ItemsRetrieveRequest request) public CompletableFuture retrieve(String id, ItemsRetrieveRequest request, RequestOptions requestOptions) { return this.rawClient.retrieve(id, request, requestOptions).thenApply(response -> response.body()); } + + /** + * Updates an Item object with the given id. + */ + public CompletableFuture partialUpdate(String id, PatchedItemEndpointRequest request) { + return this.rawClient.partialUpdate(id, request).thenApply(response -> response.body()); + } + + /** + * Updates an Item object with the given id. + */ + public CompletableFuture partialUpdate( + String id, PatchedItemEndpointRequest request, RequestOptions requestOptions) { + return this.rawClient.partialUpdate(id, request, requestOptions).thenApply(response -> response.body()); + } + + /** + * Returns metadata for Item PATCHs. + */ + public CompletableFuture metaPatchRetrieve(String id) { + return this.rawClient.metaPatchRetrieve(id).thenApply(response -> response.body()); + } + + /** + * Returns metadata for Item PATCHs. + */ + public CompletableFuture metaPatchRetrieve(String id, RequestOptions requestOptions) { + return this.rawClient.metaPatchRetrieve(id, requestOptions).thenApply(response -> response.body()); + } + + /** + * Returns metadata for Item POSTs. + */ + public CompletableFuture metaPostRetrieve() { + return this.rawClient.metaPostRetrieve().thenApply(response -> response.body()); + } + + /** + * Returns metadata for Item POSTs. + */ + public CompletableFuture metaPostRetrieve(RequestOptions requestOptions) { + return this.rawClient.metaPostRetrieve(requestOptions).thenApply(response -> response.body()); + } } diff --git a/src/main/java/com/merge/api/accounting/AsyncProjectsClient.java b/src/main/java/com/merge/api/accounting/AsyncProjectsClient.java new file mode 100644 index 000000000..061f17989 --- /dev/null +++ b/src/main/java/com/merge/api/accounting/AsyncProjectsClient.java @@ -0,0 +1,73 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.merge.api.accounting; + +import com.merge.api.accounting.types.PaginatedProjectList; +import com.merge.api.accounting.types.Project; +import com.merge.api.accounting.types.ProjectsListRequest; +import com.merge.api.accounting.types.ProjectsRetrieveRequest; +import com.merge.api.core.ClientOptions; +import com.merge.api.core.RequestOptions; +import java.util.concurrent.CompletableFuture; + +public class AsyncProjectsClient { + protected final ClientOptions clientOptions; + + private final AsyncRawProjectsClient rawClient; + + public AsyncProjectsClient(ClientOptions clientOptions) { + this.clientOptions = clientOptions; + this.rawClient = new AsyncRawProjectsClient(clientOptions); + } + + /** + * Get responses with HTTP metadata like headers + */ + public AsyncRawProjectsClient withRawResponse() { + return this.rawClient; + } + + /** + * Returns a list of Project objects. + */ + public CompletableFuture list() { + return this.rawClient.list().thenApply(response -> response.body()); + } + + /** + * Returns a list of Project objects. + */ + public CompletableFuture list(ProjectsListRequest request) { + return this.rawClient.list(request).thenApply(response -> response.body()); + } + + /** + * Returns a list of Project objects. + */ + public CompletableFuture list(ProjectsListRequest request, RequestOptions requestOptions) { + return this.rawClient.list(request, requestOptions).thenApply(response -> response.body()); + } + + /** + * Returns a Project object with the given id. + */ + public CompletableFuture retrieve(String id) { + return this.rawClient.retrieve(id).thenApply(response -> response.body()); + } + + /** + * Returns a Project object with the given id. + */ + public CompletableFuture retrieve(String id, ProjectsRetrieveRequest request) { + return this.rawClient.retrieve(id, request).thenApply(response -> response.body()); + } + + /** + * Returns a Project object with the given id. + */ + public CompletableFuture retrieve( + String id, ProjectsRetrieveRequest request, RequestOptions requestOptions) { + return this.rawClient.retrieve(id, request, requestOptions).thenApply(response -> response.body()); + } +} diff --git a/src/main/java/com/merge/api/accounting/AsyncRawAccountsClient.java b/src/main/java/com/merge/api/accounting/AsyncRawAccountsClient.java index 28d81eef8..72d9fcf44 100644 --- a/src/main/java/com/merge/api/accounting/AsyncRawAccountsClient.java +++ b/src/main/java/com/merge/api/accounting/AsyncRawAccountsClient.java @@ -71,6 +71,10 @@ public CompletableFuture>> list QueryStringMapper.addQueryParameter( httpUrl, "account_type", request.getAccountType().get(), false); } + if (request.getClassification().isPresent()) { + QueryStringMapper.addQueryParameter( + httpUrl, "classification", request.getClassification().get(), false); + } if (request.getCompanyId().isPresent()) { QueryStringMapper.addQueryParameter( httpUrl, "company_id", request.getCompanyId().get(), false); diff --git a/src/main/java/com/merge/api/accounting/AsyncRawContactsClient.java b/src/main/java/com/merge/api/accounting/AsyncRawContactsClient.java index 4a0f919cd..e7f73f05b 100644 --- a/src/main/java/com/merge/api/accounting/AsyncRawContactsClient.java +++ b/src/main/java/com/merge/api/accounting/AsyncRawContactsClient.java @@ -507,6 +507,10 @@ public CompletableFutureItem object with the given values. + */ + public CompletableFuture> create(ItemEndpointRequest request) { + return create(request, null); + } + + /** + * Creates an Item object with the given values. + */ + public CompletableFuture> create( + ItemEndpointRequest request, RequestOptions requestOptions) { + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getApiURL()) + .newBuilder() + .addPathSegments("accounting/v1/items"); + if (request.getIsDebugMode().isPresent()) { + QueryStringMapper.addQueryParameter( + httpUrl, "is_debug_mode", request.getIsDebugMode().get().toString(), false); + } + if (request.getRunAsync().isPresent()) { + QueryStringMapper.addQueryParameter( + httpUrl, "run_async", request.getRunAsync().get().toString(), false); + } + Map properties = new HashMap<>(); + properties.put("model", request.getModel()); + RequestBody body; + try { + body = RequestBody.create( + ObjectMappers.JSON_MAPPER.writeValueAsBytes(properties), MediaTypes.APPLICATION_JSON); + } catch (Exception e) { + throw new RuntimeException(e); + } + Request.Builder _requestBuilder = new Request.Builder() + .url(httpUrl.build()) + .method("POST", body) + .headers(Headers.of(clientOptions.headers(requestOptions))) + .addHeader("Content-Type", "application/json") + .addHeader("Accept", "application/json"); + Request okhttpRequest = _requestBuilder.build(); + OkHttpClient client = clientOptions.httpClient(); + if (requestOptions != null && requestOptions.getTimeout().isPresent()) { + client = clientOptions.httpClientWithTimeout(requestOptions); + } + CompletableFuture> future = new CompletableFuture<>(); + client.newCall(okhttpRequest).enqueue(new Callback() { + @Override + public void onResponse(@NotNull Call call, @NotNull Response response) throws IOException { + try (ResponseBody responseBody = response.body()) { + if (response.isSuccessful()) { + future.complete(new MergeApiHttpResponse<>( + ObjectMappers.JSON_MAPPER.readValue(responseBody.string(), ItemResponse.class), + response)); + return; + } + String responseBodyString = responseBody != null ? responseBody.string() : "{}"; + future.completeExceptionally(new ApiError( + "Error with status code " + response.code(), + response.code(), + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), + response)); + return; + } catch (IOException e) { + future.completeExceptionally(new MergeException("Network error executing HTTP request", e)); + } + } + + @Override + public void onFailure(@NotNull Call call, @NotNull IOException e) { + future.completeExceptionally(new MergeException("Network error executing HTTP request", e)); + } + }); + return future; + } + /** * Returns an Item object with the given id. */ @@ -275,4 +357,196 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { }); return future; } + + /** + * Updates an Item object with the given id. + */ + public CompletableFuture> partialUpdate( + String id, PatchedItemEndpointRequest request) { + return partialUpdate(id, request, null); + } + + /** + * Updates an Item object with the given id. + */ + public CompletableFuture> partialUpdate( + String id, PatchedItemEndpointRequest request, RequestOptions requestOptions) { + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getApiURL()) + .newBuilder() + .addPathSegments("accounting/v1/items") + .addPathSegment(id); + if (request.getIsDebugMode().isPresent()) { + QueryStringMapper.addQueryParameter( + httpUrl, "is_debug_mode", request.getIsDebugMode().get().toString(), false); + } + if (request.getRunAsync().isPresent()) { + QueryStringMapper.addQueryParameter( + httpUrl, "run_async", request.getRunAsync().get().toString(), false); + } + Map properties = new HashMap<>(); + properties.put("model", request.getModel()); + RequestBody body; + try { + body = RequestBody.create( + ObjectMappers.JSON_MAPPER.writeValueAsBytes(properties), MediaTypes.APPLICATION_JSON); + } catch (Exception e) { + throw new RuntimeException(e); + } + Request.Builder _requestBuilder = new Request.Builder() + .url(httpUrl.build()) + .method("PATCH", body) + .headers(Headers.of(clientOptions.headers(requestOptions))) + .addHeader("Content-Type", "application/json") + .addHeader("Accept", "application/json"); + Request okhttpRequest = _requestBuilder.build(); + OkHttpClient client = clientOptions.httpClient(); + if (requestOptions != null && requestOptions.getTimeout().isPresent()) { + client = clientOptions.httpClientWithTimeout(requestOptions); + } + CompletableFuture> future = new CompletableFuture<>(); + client.newCall(okhttpRequest).enqueue(new Callback() { + @Override + public void onResponse(@NotNull Call call, @NotNull Response response) throws IOException { + try (ResponseBody responseBody = response.body()) { + if (response.isSuccessful()) { + future.complete(new MergeApiHttpResponse<>( + ObjectMappers.JSON_MAPPER.readValue(responseBody.string(), ItemResponse.class), + response)); + return; + } + String responseBodyString = responseBody != null ? responseBody.string() : "{}"; + future.completeExceptionally(new ApiError( + "Error with status code " + response.code(), + response.code(), + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), + response)); + return; + } catch (IOException e) { + future.completeExceptionally(new MergeException("Network error executing HTTP request", e)); + } + } + + @Override + public void onFailure(@NotNull Call call, @NotNull IOException e) { + future.completeExceptionally(new MergeException("Network error executing HTTP request", e)); + } + }); + return future; + } + + /** + * Returns metadata for Item PATCHs. + */ + public CompletableFuture> metaPatchRetrieve(String id) { + return metaPatchRetrieve(id, null); + } + + /** + * Returns metadata for Item PATCHs. + */ + public CompletableFuture> metaPatchRetrieve( + String id, RequestOptions requestOptions) { + HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getApiURL()) + .newBuilder() + .addPathSegments("accounting/v1/items/meta/patch") + .addPathSegment(id) + .build(); + Request okhttpRequest = new Request.Builder() + .url(httpUrl) + .method("GET", null) + .headers(Headers.of(clientOptions.headers(requestOptions))) + .addHeader("Content-Type", "application/json") + .addHeader("Accept", "application/json") + .build(); + OkHttpClient client = clientOptions.httpClient(); + if (requestOptions != null && requestOptions.getTimeout().isPresent()) { + client = clientOptions.httpClientWithTimeout(requestOptions); + } + CompletableFuture> future = new CompletableFuture<>(); + client.newCall(okhttpRequest).enqueue(new Callback() { + @Override + public void onResponse(@NotNull Call call, @NotNull Response response) throws IOException { + try (ResponseBody responseBody = response.body()) { + if (response.isSuccessful()) { + future.complete(new MergeApiHttpResponse<>( + ObjectMappers.JSON_MAPPER.readValue(responseBody.string(), MetaResponse.class), + response)); + return; + } + String responseBodyString = responseBody != null ? responseBody.string() : "{}"; + future.completeExceptionally(new ApiError( + "Error with status code " + response.code(), + response.code(), + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), + response)); + return; + } catch (IOException e) { + future.completeExceptionally(new MergeException("Network error executing HTTP request", e)); + } + } + + @Override + public void onFailure(@NotNull Call call, @NotNull IOException e) { + future.completeExceptionally(new MergeException("Network error executing HTTP request", e)); + } + }); + return future; + } + + /** + * Returns metadata for Item POSTs. + */ + public CompletableFuture> metaPostRetrieve() { + return metaPostRetrieve(null); + } + + /** + * Returns metadata for Item POSTs. + */ + public CompletableFuture> metaPostRetrieve(RequestOptions requestOptions) { + HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getApiURL()) + .newBuilder() + .addPathSegments("accounting/v1/items/meta/post") + .build(); + Request okhttpRequest = new Request.Builder() + .url(httpUrl) + .method("GET", null) + .headers(Headers.of(clientOptions.headers(requestOptions))) + .addHeader("Content-Type", "application/json") + .addHeader("Accept", "application/json") + .build(); + OkHttpClient client = clientOptions.httpClient(); + if (requestOptions != null && requestOptions.getTimeout().isPresent()) { + client = clientOptions.httpClientWithTimeout(requestOptions); + } + CompletableFuture> future = new CompletableFuture<>(); + client.newCall(okhttpRequest).enqueue(new Callback() { + @Override + public void onResponse(@NotNull Call call, @NotNull Response response) throws IOException { + try (ResponseBody responseBody = response.body()) { + if (response.isSuccessful()) { + future.complete(new MergeApiHttpResponse<>( + ObjectMappers.JSON_MAPPER.readValue(responseBody.string(), MetaResponse.class), + response)); + return; + } + String responseBodyString = responseBody != null ? responseBody.string() : "{}"; + future.completeExceptionally(new ApiError( + "Error with status code " + response.code(), + response.code(), + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), + response)); + return; + } catch (IOException e) { + future.completeExceptionally(new MergeException("Network error executing HTTP request", e)); + } + } + + @Override + public void onFailure(@NotNull Call call, @NotNull IOException e) { + future.completeExceptionally(new MergeException("Network error executing HTTP request", e)); + } + }); + return future; + } } diff --git a/src/main/java/com/merge/api/accounting/AsyncRawJournalEntriesClient.java b/src/main/java/com/merge/api/accounting/AsyncRawJournalEntriesClient.java index 7c89988df..9df097bbf 100644 --- a/src/main/java/com/merge/api/accounting/AsyncRawJournalEntriesClient.java +++ b/src/main/java/com/merge/api/accounting/AsyncRawJournalEntriesClient.java @@ -432,6 +432,10 @@ public CompletableFutureProject objects. + */ + public CompletableFuture> list() { + return list(ProjectsListRequest.builder().build()); + } + + /** + * Returns a list of Project objects. + */ + public CompletableFuture> list(ProjectsListRequest request) { + return list(request, null); + } + + /** + * Returns a list of Project objects. + */ + public CompletableFuture> list( + ProjectsListRequest request, RequestOptions requestOptions) { + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getApiURL()) + .newBuilder() + .addPathSegments("accounting/v1/projects"); + if (request.getCursor().isPresent()) { + QueryStringMapper.addQueryParameter( + httpUrl, "cursor", request.getCursor().get(), false); + } + if (request.getIncludeDeletedData().isPresent()) { + QueryStringMapper.addQueryParameter( + httpUrl, + "include_deleted_data", + request.getIncludeDeletedData().get().toString(), + false); + } + if (request.getIncludeRemoteData().isPresent()) { + QueryStringMapper.addQueryParameter( + httpUrl, + "include_remote_data", + request.getIncludeRemoteData().get().toString(), + false); + } + if (request.getIncludeShellData().isPresent()) { + QueryStringMapper.addQueryParameter( + httpUrl, + "include_shell_data", + request.getIncludeShellData().get().toString(), + false); + } + if (request.getPageSize().isPresent()) { + QueryStringMapper.addQueryParameter( + httpUrl, "page_size", request.getPageSize().get().toString(), false); + } + if (request.getExpand().isPresent()) { + QueryStringMapper.addQueryParameter( + httpUrl, "expand", request.getExpand().get().toString(), false); + } + Request.Builder _requestBuilder = new Request.Builder() + .url(httpUrl.build()) + .method("GET", null) + .headers(Headers.of(clientOptions.headers(requestOptions))) + .addHeader("Content-Type", "application/json") + .addHeader("Accept", "application/json"); + Request okhttpRequest = _requestBuilder.build(); + OkHttpClient client = clientOptions.httpClient(); + if (requestOptions != null && requestOptions.getTimeout().isPresent()) { + client = clientOptions.httpClientWithTimeout(requestOptions); + } + CompletableFuture> future = new CompletableFuture<>(); + client.newCall(okhttpRequest).enqueue(new Callback() { + @Override + public void onResponse(@NotNull Call call, @NotNull Response response) throws IOException { + try (ResponseBody responseBody = response.body()) { + if (response.isSuccessful()) { + future.complete(new MergeApiHttpResponse<>( + ObjectMappers.JSON_MAPPER.readValue(responseBody.string(), PaginatedProjectList.class), + response)); + return; + } + String responseBodyString = responseBody != null ? responseBody.string() : "{}"; + future.completeExceptionally(new ApiError( + "Error with status code " + response.code(), + response.code(), + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), + response)); + return; + } catch (IOException e) { + future.completeExceptionally(new MergeException("Network error executing HTTP request", e)); + } + } + + @Override + public void onFailure(@NotNull Call call, @NotNull IOException e) { + future.completeExceptionally(new MergeException("Network error executing HTTP request", e)); + } + }); + return future; + } + + /** + * Returns a Project object with the given id. + */ + public CompletableFuture> retrieve(String id) { + return retrieve(id, ProjectsRetrieveRequest.builder().build()); + } + + /** + * Returns a Project object with the given id. + */ + public CompletableFuture> retrieve(String id, ProjectsRetrieveRequest request) { + return retrieve(id, request, null); + } + + /** + * Returns a Project object with the given id. + */ + public CompletableFuture> retrieve( + String id, ProjectsRetrieveRequest request, RequestOptions requestOptions) { + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getApiURL()) + .newBuilder() + .addPathSegments("accounting/v1/projects") + .addPathSegment(id); + if (request.getIncludeRemoteData().isPresent()) { + QueryStringMapper.addQueryParameter( + httpUrl, + "include_remote_data", + request.getIncludeRemoteData().get().toString(), + false); + } + if (request.getIncludeShellData().isPresent()) { + QueryStringMapper.addQueryParameter( + httpUrl, + "include_shell_data", + request.getIncludeShellData().get().toString(), + false); + } + if (request.getExpand().isPresent()) { + QueryStringMapper.addQueryParameter( + httpUrl, "expand", request.getExpand().get().toString(), false); + } + Request.Builder _requestBuilder = new Request.Builder() + .url(httpUrl.build()) + .method("GET", null) + .headers(Headers.of(clientOptions.headers(requestOptions))) + .addHeader("Content-Type", "application/json") + .addHeader("Accept", "application/json"); + Request okhttpRequest = _requestBuilder.build(); + OkHttpClient client = clientOptions.httpClient(); + if (requestOptions != null && requestOptions.getTimeout().isPresent()) { + client = clientOptions.httpClientWithTimeout(requestOptions); + } + CompletableFuture> future = new CompletableFuture<>(); + client.newCall(okhttpRequest).enqueue(new Callback() { + @Override + public void onResponse(@NotNull Call call, @NotNull Response response) throws IOException { + try (ResponseBody responseBody = response.body()) { + if (response.isSuccessful()) { + future.complete(new MergeApiHttpResponse<>( + ObjectMappers.JSON_MAPPER.readValue(responseBody.string(), Project.class), response)); + return; + } + String responseBodyString = responseBody != null ? responseBody.string() : "{}"; + future.completeExceptionally(new ApiError( + "Error with status code " + response.code(), + response.code(), + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), + response)); + return; + } catch (IOException e) { + future.completeExceptionally(new MergeException("Network error executing HTTP request", e)); + } + } + + @Override + public void onFailure(@NotNull Call call, @NotNull IOException e) { + future.completeExceptionally(new MergeException("Network error executing HTTP request", e)); + } + }); + return future; + } +} diff --git a/src/main/java/com/merge/api/accounting/AsyncRawPurchaseOrdersClient.java b/src/main/java/com/merge/api/accounting/AsyncRawPurchaseOrdersClient.java index 81a725710..e55b07ddf 100644 --- a/src/main/java/com/merge/api/accounting/AsyncRawPurchaseOrdersClient.java +++ b/src/main/java/com/merge/api/accounting/AsyncRawPurchaseOrdersClient.java @@ -450,6 +450,10 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { request.getIsCommonModelField().get().toString(), false); } + if (request.getIsCustom().isPresent()) { + QueryStringMapper.addQueryParameter( + httpUrl, "is_custom", request.getIsCustom().get().toString(), false); + } if (request.getPageSize().isPresent()) { QueryStringMapper.addQueryParameter( httpUrl, "page_size", request.getPageSize().get().toString(), false); @@ -628,6 +632,10 @@ public CompletableFuture list(ItemsListRequest request, RequestOptions re return this.rawClient.list(request, requestOptions).body(); } + /** + * Creates an Item object with the given values. + */ + public ItemResponse create(ItemEndpointRequest request) { + return this.rawClient.create(request).body(); + } + + /** + * Creates an Item object with the given values. + */ + public ItemResponse create(ItemEndpointRequest request, RequestOptions requestOptions) { + return this.rawClient.create(request, requestOptions).body(); + } + /** * Returns an Item object with the given id. */ @@ -68,4 +86,46 @@ public Item retrieve(String id, ItemsRetrieveRequest request) { public Item retrieve(String id, ItemsRetrieveRequest request, RequestOptions requestOptions) { return this.rawClient.retrieve(id, request, requestOptions).body(); } + + /** + * Updates an Item object with the given id. + */ + public ItemResponse partialUpdate(String id, PatchedItemEndpointRequest request) { + return this.rawClient.partialUpdate(id, request).body(); + } + + /** + * Updates an Item object with the given id. + */ + public ItemResponse partialUpdate(String id, PatchedItemEndpointRequest request, RequestOptions requestOptions) { + return this.rawClient.partialUpdate(id, request, requestOptions).body(); + } + + /** + * Returns metadata for Item PATCHs. + */ + public MetaResponse metaPatchRetrieve(String id) { + return this.rawClient.metaPatchRetrieve(id).body(); + } + + /** + * Returns metadata for Item PATCHs. + */ + public MetaResponse metaPatchRetrieve(String id, RequestOptions requestOptions) { + return this.rawClient.metaPatchRetrieve(id, requestOptions).body(); + } + + /** + * Returns metadata for Item POSTs. + */ + public MetaResponse metaPostRetrieve() { + return this.rawClient.metaPostRetrieve().body(); + } + + /** + * Returns metadata for Item POSTs. + */ + public MetaResponse metaPostRetrieve(RequestOptions requestOptions) { + return this.rawClient.metaPostRetrieve(requestOptions).body(); + } } diff --git a/src/main/java/com/merge/api/accounting/ProjectsClient.java b/src/main/java/com/merge/api/accounting/ProjectsClient.java new file mode 100644 index 000000000..ca971d1cb --- /dev/null +++ b/src/main/java/com/merge/api/accounting/ProjectsClient.java @@ -0,0 +1,71 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.merge.api.accounting; + +import com.merge.api.accounting.types.PaginatedProjectList; +import com.merge.api.accounting.types.Project; +import com.merge.api.accounting.types.ProjectsListRequest; +import com.merge.api.accounting.types.ProjectsRetrieveRequest; +import com.merge.api.core.ClientOptions; +import com.merge.api.core.RequestOptions; + +public class ProjectsClient { + protected final ClientOptions clientOptions; + + private final RawProjectsClient rawClient; + + public ProjectsClient(ClientOptions clientOptions) { + this.clientOptions = clientOptions; + this.rawClient = new RawProjectsClient(clientOptions); + } + + /** + * Get responses with HTTP metadata like headers + */ + public RawProjectsClient withRawResponse() { + return this.rawClient; + } + + /** + * Returns a list of Project objects. + */ + public PaginatedProjectList list() { + return this.rawClient.list().body(); + } + + /** + * Returns a list of Project objects. + */ + public PaginatedProjectList list(ProjectsListRequest request) { + return this.rawClient.list(request).body(); + } + + /** + * Returns a list of Project objects. + */ + public PaginatedProjectList list(ProjectsListRequest request, RequestOptions requestOptions) { + return this.rawClient.list(request, requestOptions).body(); + } + + /** + * Returns a Project object with the given id. + */ + public Project retrieve(String id) { + return this.rawClient.retrieve(id).body(); + } + + /** + * Returns a Project object with the given id. + */ + public Project retrieve(String id, ProjectsRetrieveRequest request) { + return this.rawClient.retrieve(id, request).body(); + } + + /** + * Returns a Project object with the given id. + */ + public Project retrieve(String id, ProjectsRetrieveRequest request, RequestOptions requestOptions) { + return this.rawClient.retrieve(id, request, requestOptions).body(); + } +} diff --git a/src/main/java/com/merge/api/accounting/RawAccountsClient.java b/src/main/java/com/merge/api/accounting/RawAccountsClient.java index cf8a66304..329e81561 100644 --- a/src/main/java/com/merge/api/accounting/RawAccountsClient.java +++ b/src/main/java/com/merge/api/accounting/RawAccountsClient.java @@ -66,6 +66,10 @@ public MergeApiHttpResponse> list( QueryStringMapper.addQueryParameter( httpUrl, "account_type", request.getAccountType().get(), false); } + if (request.getClassification().isPresent()) { + QueryStringMapper.addQueryParameter( + httpUrl, "classification", request.getClassification().get(), false); + } if (request.getCompanyId().isPresent()) { QueryStringMapper.addQueryParameter( httpUrl, "company_id", request.getCompanyId().get(), false); diff --git a/src/main/java/com/merge/api/accounting/RawContactsClient.java b/src/main/java/com/merge/api/accounting/RawContactsClient.java index 9bcd5b19d..eaf8c4143 100644 --- a/src/main/java/com/merge/api/accounting/RawContactsClient.java +++ b/src/main/java/com/merge/api/accounting/RawContactsClient.java @@ -441,6 +441,10 @@ public MergeApiHttpResponse> remoteFieldCla request.getIsCommonModelField().get().toString(), false); } + if (request.getIsCustom().isPresent()) { + QueryStringMapper.addQueryParameter( + httpUrl, "is_custom", request.getIsCustom().get().toString(), false); + } if (request.getPageSize().isPresent()) { QueryStringMapper.addQueryParameter( httpUrl, "page_size", request.getPageSize().get().toString(), false); diff --git a/src/main/java/com/merge/api/accounting/RawExpensesClient.java b/src/main/java/com/merge/api/accounting/RawExpensesClient.java index 33eb5d797..01bc2091c 100644 --- a/src/main/java/com/merge/api/accounting/RawExpensesClient.java +++ b/src/main/java/com/merge/api/accounting/RawExpensesClient.java @@ -377,6 +377,10 @@ public MergeApiHttpResponse> linesRemoteFie request.getIsCommonModelField().get().toString(), false); } + if (request.getIsCustom().isPresent()) { + QueryStringMapper.addQueryParameter( + httpUrl, "is_custom", request.getIsCustom().get().toString(), false); + } if (request.getPageSize().isPresent()) { QueryStringMapper.addQueryParameter( httpUrl, "page_size", request.getPageSize().get().toString(), false); @@ -521,6 +525,10 @@ public MergeApiHttpResponse> remoteFieldCla request.getIsCommonModelField().get().toString(), false); } + if (request.getIsCustom().isPresent()) { + QueryStringMapper.addQueryParameter( + httpUrl, "is_custom", request.getIsCustom().get().toString(), false); + } if (request.getPageSize().isPresent()) { QueryStringMapper.addQueryParameter( httpUrl, "page_size", request.getPageSize().get().toString(), false); diff --git a/src/main/java/com/merge/api/accounting/RawInvoicesClient.java b/src/main/java/com/merge/api/accounting/RawInvoicesClient.java index 9d988258c..5eef43f45 100644 --- a/src/main/java/com/merge/api/accounting/RawInvoicesClient.java +++ b/src/main/java/com/merge/api/accounting/RawInvoicesClient.java @@ -473,6 +473,10 @@ public MergeApiHttpResponse> lineItemsRemot request.getIsCommonModelField().get().toString(), false); } + if (request.getIsCustom().isPresent()) { + QueryStringMapper.addQueryParameter( + httpUrl, "is_custom", request.getIsCustom().get().toString(), false); + } if (request.getPageSize().isPresent()) { QueryStringMapper.addQueryParameter( httpUrl, "page_size", request.getPageSize().get().toString(), false); @@ -661,6 +665,10 @@ public MergeApiHttpResponse> remoteFieldCla request.getIsCommonModelField().get().toString(), false); } + if (request.getIsCustom().isPresent()) { + QueryStringMapper.addQueryParameter( + httpUrl, "is_custom", request.getIsCustom().get().toString(), false); + } if (request.getPageSize().isPresent()) { QueryStringMapper.addQueryParameter( httpUrl, "page_size", request.getPageSize().get().toString(), false); diff --git a/src/main/java/com/merge/api/accounting/RawItemsClient.java b/src/main/java/com/merge/api/accounting/RawItemsClient.java index a1f0c77c8..c275e649b 100644 --- a/src/main/java/com/merge/api/accounting/RawItemsClient.java +++ b/src/main/java/com/merge/api/accounting/RawItemsClient.java @@ -4,11 +4,16 @@ package com.merge.api.accounting; import com.merge.api.accounting.types.Item; +import com.merge.api.accounting.types.ItemEndpointRequest; +import com.merge.api.accounting.types.ItemResponse; import com.merge.api.accounting.types.ItemsListRequest; import com.merge.api.accounting.types.ItemsRetrieveRequest; +import com.merge.api.accounting.types.MetaResponse; import com.merge.api.accounting.types.PaginatedItemList; +import com.merge.api.accounting.types.PatchedItemEndpointRequest; import com.merge.api.core.ApiError; import com.merge.api.core.ClientOptions; +import com.merge.api.core.MediaTypes; import com.merge.api.core.MergeApiHttpResponse; import com.merge.api.core.MergeException; import com.merge.api.core.ObjectMappers; @@ -17,12 +22,15 @@ import com.merge.api.core.SyncPagingIterable; import java.io.IOException; import java.util.Collections; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Optional; import okhttp3.Headers; import okhttp3.HttpUrl; import okhttp3.OkHttpClient; import okhttp3.Request; +import okhttp3.RequestBody; import okhttp3.Response; import okhttp3.ResponseBody; @@ -162,6 +170,65 @@ public MergeApiHttpResponse> list( } } + /** + * Creates an Item object with the given values. + */ + public MergeApiHttpResponse create(ItemEndpointRequest request) { + return create(request, null); + } + + /** + * Creates an Item object with the given values. + */ + public MergeApiHttpResponse create(ItemEndpointRequest request, RequestOptions requestOptions) { + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getApiURL()) + .newBuilder() + .addPathSegments("accounting/v1/items"); + if (request.getIsDebugMode().isPresent()) { + QueryStringMapper.addQueryParameter( + httpUrl, "is_debug_mode", request.getIsDebugMode().get().toString(), false); + } + if (request.getRunAsync().isPresent()) { + QueryStringMapper.addQueryParameter( + httpUrl, "run_async", request.getRunAsync().get().toString(), false); + } + Map properties = new HashMap<>(); + properties.put("model", request.getModel()); + RequestBody body; + try { + body = RequestBody.create( + ObjectMappers.JSON_MAPPER.writeValueAsBytes(properties), MediaTypes.APPLICATION_JSON); + } catch (Exception e) { + throw new RuntimeException(e); + } + Request.Builder _requestBuilder = new Request.Builder() + .url(httpUrl.build()) + .method("POST", body) + .headers(Headers.of(clientOptions.headers(requestOptions))) + .addHeader("Content-Type", "application/json") + .addHeader("Accept", "application/json"); + Request okhttpRequest = _requestBuilder.build(); + OkHttpClient client = clientOptions.httpClient(); + if (requestOptions != null && requestOptions.getTimeout().isPresent()) { + client = clientOptions.httpClientWithTimeout(requestOptions); + } + try (Response response = client.newCall(okhttpRequest).execute()) { + ResponseBody responseBody = response.body(); + if (response.isSuccessful()) { + return new MergeApiHttpResponse<>( + ObjectMappers.JSON_MAPPER.readValue(responseBody.string(), ItemResponse.class), response); + } + String responseBodyString = responseBody != null ? responseBody.string() : "{}"; + throw new ApiError( + "Error with status code " + response.code(), + response.code(), + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), + response); + } catch (IOException e) { + throw new MergeException("Network error executing HTTP request", e); + } + } + /** * Returns an Item object with the given id. */ @@ -237,4 +304,152 @@ public MergeApiHttpResponse retrieve(String id, ItemsRetrieveRequest reque throw new MergeException("Network error executing HTTP request", e); } } + + /** + * Updates an Item object with the given id. + */ + public MergeApiHttpResponse partialUpdate(String id, PatchedItemEndpointRequest request) { + return partialUpdate(id, request, null); + } + + /** + * Updates an Item object with the given id. + */ + public MergeApiHttpResponse partialUpdate( + String id, PatchedItemEndpointRequest request, RequestOptions requestOptions) { + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getApiURL()) + .newBuilder() + .addPathSegments("accounting/v1/items") + .addPathSegment(id); + if (request.getIsDebugMode().isPresent()) { + QueryStringMapper.addQueryParameter( + httpUrl, "is_debug_mode", request.getIsDebugMode().get().toString(), false); + } + if (request.getRunAsync().isPresent()) { + QueryStringMapper.addQueryParameter( + httpUrl, "run_async", request.getRunAsync().get().toString(), false); + } + Map properties = new HashMap<>(); + properties.put("model", request.getModel()); + RequestBody body; + try { + body = RequestBody.create( + ObjectMappers.JSON_MAPPER.writeValueAsBytes(properties), MediaTypes.APPLICATION_JSON); + } catch (Exception e) { + throw new RuntimeException(e); + } + Request.Builder _requestBuilder = new Request.Builder() + .url(httpUrl.build()) + .method("PATCH", body) + .headers(Headers.of(clientOptions.headers(requestOptions))) + .addHeader("Content-Type", "application/json") + .addHeader("Accept", "application/json"); + Request okhttpRequest = _requestBuilder.build(); + OkHttpClient client = clientOptions.httpClient(); + if (requestOptions != null && requestOptions.getTimeout().isPresent()) { + client = clientOptions.httpClientWithTimeout(requestOptions); + } + try (Response response = client.newCall(okhttpRequest).execute()) { + ResponseBody responseBody = response.body(); + if (response.isSuccessful()) { + return new MergeApiHttpResponse<>( + ObjectMappers.JSON_MAPPER.readValue(responseBody.string(), ItemResponse.class), response); + } + String responseBodyString = responseBody != null ? responseBody.string() : "{}"; + throw new ApiError( + "Error with status code " + response.code(), + response.code(), + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), + response); + } catch (IOException e) { + throw new MergeException("Network error executing HTTP request", e); + } + } + + /** + * Returns metadata for Item PATCHs. + */ + public MergeApiHttpResponse metaPatchRetrieve(String id) { + return metaPatchRetrieve(id, null); + } + + /** + * Returns metadata for Item PATCHs. + */ + public MergeApiHttpResponse metaPatchRetrieve(String id, RequestOptions requestOptions) { + HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getApiURL()) + .newBuilder() + .addPathSegments("accounting/v1/items/meta/patch") + .addPathSegment(id) + .build(); + Request okhttpRequest = new Request.Builder() + .url(httpUrl) + .method("GET", null) + .headers(Headers.of(clientOptions.headers(requestOptions))) + .addHeader("Content-Type", "application/json") + .addHeader("Accept", "application/json") + .build(); + OkHttpClient client = clientOptions.httpClient(); + if (requestOptions != null && requestOptions.getTimeout().isPresent()) { + client = clientOptions.httpClientWithTimeout(requestOptions); + } + try (Response response = client.newCall(okhttpRequest).execute()) { + ResponseBody responseBody = response.body(); + if (response.isSuccessful()) { + return new MergeApiHttpResponse<>( + ObjectMappers.JSON_MAPPER.readValue(responseBody.string(), MetaResponse.class), response); + } + String responseBodyString = responseBody != null ? responseBody.string() : "{}"; + throw new ApiError( + "Error with status code " + response.code(), + response.code(), + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), + response); + } catch (IOException e) { + throw new MergeException("Network error executing HTTP request", e); + } + } + + /** + * Returns metadata for Item POSTs. + */ + public MergeApiHttpResponse metaPostRetrieve() { + return metaPostRetrieve(null); + } + + /** + * Returns metadata for Item POSTs. + */ + public MergeApiHttpResponse metaPostRetrieve(RequestOptions requestOptions) { + HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getApiURL()) + .newBuilder() + .addPathSegments("accounting/v1/items/meta/post") + .build(); + Request okhttpRequest = new Request.Builder() + .url(httpUrl) + .method("GET", null) + .headers(Headers.of(clientOptions.headers(requestOptions))) + .addHeader("Content-Type", "application/json") + .addHeader("Accept", "application/json") + .build(); + OkHttpClient client = clientOptions.httpClient(); + if (requestOptions != null && requestOptions.getTimeout().isPresent()) { + client = clientOptions.httpClientWithTimeout(requestOptions); + } + try (Response response = client.newCall(okhttpRequest).execute()) { + ResponseBody responseBody = response.body(); + if (response.isSuccessful()) { + return new MergeApiHttpResponse<>( + ObjectMappers.JSON_MAPPER.readValue(responseBody.string(), MetaResponse.class), response); + } + String responseBodyString = responseBody != null ? responseBody.string() : "{}"; + throw new ApiError( + "Error with status code " + response.code(), + response.code(), + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), + response); + } catch (IOException e) { + throw new MergeException("Network error executing HTTP request", e); + } + } } diff --git a/src/main/java/com/merge/api/accounting/RawJournalEntriesClient.java b/src/main/java/com/merge/api/accounting/RawJournalEntriesClient.java index c46072cf2..dfa8c53f2 100644 --- a/src/main/java/com/merge/api/accounting/RawJournalEntriesClient.java +++ b/src/main/java/com/merge/api/accounting/RawJournalEntriesClient.java @@ -379,6 +379,10 @@ public MergeApiHttpResponse> linesRemoteFie request.getIsCommonModelField().get().toString(), false); } + if (request.getIsCustom().isPresent()) { + QueryStringMapper.addQueryParameter( + httpUrl, "is_custom", request.getIsCustom().get().toString(), false); + } if (request.getPageSize().isPresent()) { QueryStringMapper.addQueryParameter( httpUrl, "page_size", request.getPageSize().get().toString(), false); @@ -523,6 +527,10 @@ public MergeApiHttpResponse> remoteFieldCla request.getIsCommonModelField().get().toString(), false); } + if (request.getIsCustom().isPresent()) { + QueryStringMapper.addQueryParameter( + httpUrl, "is_custom", request.getIsCustom().get().toString(), false); + } if (request.getPageSize().isPresent()) { QueryStringMapper.addQueryParameter( httpUrl, "page_size", request.getPageSize().get().toString(), false); diff --git a/src/main/java/com/merge/api/accounting/RawPaymentsClient.java b/src/main/java/com/merge/api/accounting/RawPaymentsClient.java index 64ba49cd4..d58b7c238 100644 --- a/src/main/java/com/merge/api/accounting/RawPaymentsClient.java +++ b/src/main/java/com/merge/api/accounting/RawPaymentsClient.java @@ -447,6 +447,10 @@ public MergeApiHttpResponse> lineItemsRemot request.getIsCommonModelField().get().toString(), false); } + if (request.getIsCustom().isPresent()) { + QueryStringMapper.addQueryParameter( + httpUrl, "is_custom", request.getIsCustom().get().toString(), false); + } if (request.getPageSize().isPresent()) { QueryStringMapper.addQueryParameter( httpUrl, "page_size", request.getPageSize().get().toString(), false); @@ -635,6 +639,10 @@ public MergeApiHttpResponse> remoteFieldCla request.getIsCommonModelField().get().toString(), false); } + if (request.getIsCustom().isPresent()) { + QueryStringMapper.addQueryParameter( + httpUrl, "is_custom", request.getIsCustom().get().toString(), false); + } if (request.getPageSize().isPresent()) { QueryStringMapper.addQueryParameter( httpUrl, "page_size", request.getPageSize().get().toString(), false); diff --git a/src/main/java/com/merge/api/accounting/RawProjectsClient.java b/src/main/java/com/merge/api/accounting/RawProjectsClient.java new file mode 100644 index 000000000..f4ff67a3b --- /dev/null +++ b/src/main/java/com/merge/api/accounting/RawProjectsClient.java @@ -0,0 +1,183 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.merge.api.accounting; + +import com.merge.api.accounting.types.PaginatedProjectList; +import com.merge.api.accounting.types.Project; +import com.merge.api.accounting.types.ProjectsListRequest; +import com.merge.api.accounting.types.ProjectsRetrieveRequest; +import com.merge.api.core.ApiError; +import com.merge.api.core.ClientOptions; +import com.merge.api.core.MergeApiHttpResponse; +import com.merge.api.core.MergeException; +import com.merge.api.core.ObjectMappers; +import com.merge.api.core.QueryStringMapper; +import com.merge.api.core.RequestOptions; +import java.io.IOException; +import okhttp3.Headers; +import okhttp3.HttpUrl; +import okhttp3.OkHttpClient; +import okhttp3.Request; +import okhttp3.Response; +import okhttp3.ResponseBody; + +public class RawProjectsClient { + protected final ClientOptions clientOptions; + + public RawProjectsClient(ClientOptions clientOptions) { + this.clientOptions = clientOptions; + } + + /** + * Returns a list of Project objects. + */ + public MergeApiHttpResponse list() { + return list(ProjectsListRequest.builder().build()); + } + + /** + * Returns a list of Project objects. + */ + public MergeApiHttpResponse list(ProjectsListRequest request) { + return list(request, null); + } + + /** + * Returns a list of Project objects. + */ + public MergeApiHttpResponse list(ProjectsListRequest request, RequestOptions requestOptions) { + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getApiURL()) + .newBuilder() + .addPathSegments("accounting/v1/projects"); + if (request.getCursor().isPresent()) { + QueryStringMapper.addQueryParameter( + httpUrl, "cursor", request.getCursor().get(), false); + } + if (request.getIncludeDeletedData().isPresent()) { + QueryStringMapper.addQueryParameter( + httpUrl, + "include_deleted_data", + request.getIncludeDeletedData().get().toString(), + false); + } + if (request.getIncludeRemoteData().isPresent()) { + QueryStringMapper.addQueryParameter( + httpUrl, + "include_remote_data", + request.getIncludeRemoteData().get().toString(), + false); + } + if (request.getIncludeShellData().isPresent()) { + QueryStringMapper.addQueryParameter( + httpUrl, + "include_shell_data", + request.getIncludeShellData().get().toString(), + false); + } + if (request.getPageSize().isPresent()) { + QueryStringMapper.addQueryParameter( + httpUrl, "page_size", request.getPageSize().get().toString(), false); + } + if (request.getExpand().isPresent()) { + QueryStringMapper.addQueryParameter( + httpUrl, "expand", request.getExpand().get().toString(), false); + } + Request.Builder _requestBuilder = new Request.Builder() + .url(httpUrl.build()) + .method("GET", null) + .headers(Headers.of(clientOptions.headers(requestOptions))) + .addHeader("Content-Type", "application/json") + .addHeader("Accept", "application/json"); + Request okhttpRequest = _requestBuilder.build(); + OkHttpClient client = clientOptions.httpClient(); + if (requestOptions != null && requestOptions.getTimeout().isPresent()) { + client = clientOptions.httpClientWithTimeout(requestOptions); + } + try (Response response = client.newCall(okhttpRequest).execute()) { + ResponseBody responseBody = response.body(); + if (response.isSuccessful()) { + return new MergeApiHttpResponse<>( + ObjectMappers.JSON_MAPPER.readValue(responseBody.string(), PaginatedProjectList.class), + response); + } + String responseBodyString = responseBody != null ? responseBody.string() : "{}"; + throw new ApiError( + "Error with status code " + response.code(), + response.code(), + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), + response); + } catch (IOException e) { + throw new MergeException("Network error executing HTTP request", e); + } + } + + /** + * Returns a Project object with the given id. + */ + public MergeApiHttpResponse retrieve(String id) { + return retrieve(id, ProjectsRetrieveRequest.builder().build()); + } + + /** + * Returns a Project object with the given id. + */ + public MergeApiHttpResponse retrieve(String id, ProjectsRetrieveRequest request) { + return retrieve(id, request, null); + } + + /** + * Returns a Project object with the given id. + */ + public MergeApiHttpResponse retrieve( + String id, ProjectsRetrieveRequest request, RequestOptions requestOptions) { + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getApiURL()) + .newBuilder() + .addPathSegments("accounting/v1/projects") + .addPathSegment(id); + if (request.getIncludeRemoteData().isPresent()) { + QueryStringMapper.addQueryParameter( + httpUrl, + "include_remote_data", + request.getIncludeRemoteData().get().toString(), + false); + } + if (request.getIncludeShellData().isPresent()) { + QueryStringMapper.addQueryParameter( + httpUrl, + "include_shell_data", + request.getIncludeShellData().get().toString(), + false); + } + if (request.getExpand().isPresent()) { + QueryStringMapper.addQueryParameter( + httpUrl, "expand", request.getExpand().get().toString(), false); + } + Request.Builder _requestBuilder = new Request.Builder() + .url(httpUrl.build()) + .method("GET", null) + .headers(Headers.of(clientOptions.headers(requestOptions))) + .addHeader("Content-Type", "application/json") + .addHeader("Accept", "application/json"); + Request okhttpRequest = _requestBuilder.build(); + OkHttpClient client = clientOptions.httpClient(); + if (requestOptions != null && requestOptions.getTimeout().isPresent()) { + client = clientOptions.httpClientWithTimeout(requestOptions); + } + try (Response response = client.newCall(okhttpRequest).execute()) { + ResponseBody responseBody = response.body(); + if (response.isSuccessful()) { + return new MergeApiHttpResponse<>( + ObjectMappers.JSON_MAPPER.readValue(responseBody.string(), Project.class), response); + } + String responseBodyString = responseBody != null ? responseBody.string() : "{}"; + throw new ApiError( + "Error with status code " + response.code(), + response.code(), + ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), + response); + } catch (IOException e) { + throw new MergeException("Network error executing HTTP request", e); + } + } +} diff --git a/src/main/java/com/merge/api/accounting/RawPurchaseOrdersClient.java b/src/main/java/com/merge/api/accounting/RawPurchaseOrdersClient.java index 975cff3f7..962c2971a 100644 --- a/src/main/java/com/merge/api/accounting/RawPurchaseOrdersClient.java +++ b/src/main/java/com/merge/api/accounting/RawPurchaseOrdersClient.java @@ -395,6 +395,10 @@ public MergeApiHttpResponse> lineItemsRemot request.getIsCommonModelField().get().toString(), false); } + if (request.getIsCustom().isPresent()) { + QueryStringMapper.addQueryParameter( + httpUrl, "is_custom", request.getIsCustom().get().toString(), false); + } if (request.getPageSize().isPresent()) { QueryStringMapper.addQueryParameter( httpUrl, "page_size", request.getPageSize().get().toString(), false); @@ -539,6 +543,10 @@ public MergeApiHttpResponse> remoteFieldCla request.getIsCommonModelField().get().toString(), false); } + if (request.getIsCustom().isPresent()) { + QueryStringMapper.addQueryParameter( + httpUrl, "is_custom", request.getIsCustom().get().toString(), false); + } if (request.getPageSize().isPresent()) { QueryStringMapper.addQueryParameter( httpUrl, "page_size", request.getPageSize().get().toString(), false); diff --git a/src/main/java/com/merge/api/accounting/types/Account.java b/src/main/java/com/merge/api/accounting/types/Account.java index 2d19d2b79..701308416 100644 --- a/src/main/java/com/merge/api/accounting/types/Account.java +++ b/src/main/java/com/merge/api/accounting/types/Account.java @@ -35,17 +35,17 @@ public final class Account { private final Optional description; - private final Optional classification; + private final Optional classification; private final Optional type; - private final Optional accountType; + private final Optional accountType; - private final Optional status; + private final Optional status; private final Optional currentBalance; - private final Optional currency; + private final Optional currency; private final Optional accountNumber; @@ -68,12 +68,12 @@ private Account( Optional modifiedAt, Optional name, Optional description, - Optional classification, + Optional classification, Optional type, - Optional accountType, - Optional status, + Optional accountType, + Optional status, Optional currentBalance, - Optional currency, + Optional currency, Optional accountNumber, Optional parentAccount, Optional company, @@ -158,7 +158,7 @@ public Optional getDescription() { * */ @JsonProperty("classification") - public Optional getClassification() { + public Optional getClassification() { return classification; } @@ -189,7 +189,7 @@ public Optional getType() { * */ @JsonProperty("account_type") - public Optional getAccountType() { + public Optional getAccountType() { return accountType; } @@ -202,7 +202,7 @@ public Optional getAccountType() { * */ @JsonProperty("status") - public Optional getStatus() { + public Optional getStatus() { return status; } @@ -526,7 +526,7 @@ public Optional getCurrentBalance() { * */ @JsonProperty("currency") - public Optional getCurrency() { + public Optional getCurrency() { return currency; } @@ -650,17 +650,17 @@ public static final class Builder { private Optional description = Optional.empty(); - private Optional classification = Optional.empty(); + private Optional classification = Optional.empty(); private Optional type = Optional.empty(); - private Optional accountType = Optional.empty(); + private Optional accountType = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Optional currentBalance = Optional.empty(); - private Optional currency = Optional.empty(); + private Optional currency = Optional.empty(); private Optional accountNumber = Optional.empty(); @@ -712,6 +712,9 @@ public Builder id(String id) { return this; } + /** + *

The third-party API ID of the matching object.

+ */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; @@ -723,6 +726,9 @@ public Builder remoteId(String remoteId) { return this; } + /** + *

The datetime that this object was created by Merge.

+ */ @JsonSetter(value = "created_at", nulls = Nulls.SKIP) public Builder createdAt(Optional createdAt) { this.createdAt = createdAt; @@ -734,6 +740,9 @@ public Builder createdAt(OffsetDateTime createdAt) { return this; } + /** + *

The datetime that this object was modified by Merge.

+ */ @JsonSetter(value = "modified_at", nulls = Nulls.SKIP) public Builder modifiedAt(Optional modifiedAt) { this.modifiedAt = modifiedAt; @@ -745,6 +754,9 @@ public Builder modifiedAt(OffsetDateTime modifiedAt) { return this; } + /** + *

The account's name.

+ */ @JsonSetter(value = "name", nulls = Nulls.SKIP) public Builder name(Optional name) { this.name = name; @@ -756,6 +768,9 @@ public Builder name(String name) { return this; } + /** + *

The account's description.

+ */ @JsonSetter(value = "description", nulls = Nulls.SKIP) public Builder description(Optional description) { this.description = description; @@ -767,17 +782,30 @@ public Builder description(String description) { return this; } + /** + *

The account's broadest grouping.

+ *
    + *
  • ASSET - ASSET
  • + *
  • EQUITY - EQUITY
  • + *
  • EXPENSE - EXPENSE
  • + *
  • LIABILITY - LIABILITY
  • + *
  • REVENUE - REVENUE
  • + *
+ */ @JsonSetter(value = "classification", nulls = Nulls.SKIP) - public Builder classification(Optional classification) { + public Builder classification(Optional classification) { this.classification = classification; return this; } - public Builder classification(ClassificationEnum classification) { + public Builder classification(AccountClassification classification) { this.classification = Optional.ofNullable(classification); return this; } + /** + *

The account's type is a narrower and more specific grouping within the account's classification.

+ */ @JsonSetter(value = "type", nulls = Nulls.SKIP) public Builder type(Optional type) { this.type = type; @@ -789,28 +817,57 @@ public Builder type(String type) { return this; } + /** + *

Normalized account type- which is a narrower and more specific grouping within the account's classification.

+ *
    + *
  • BANK - BANK
  • + *
  • CREDIT_CARD - CREDIT_CARD
  • + *
  • ACCOUNTS_PAYABLE - ACCOUNTS_PAYABLE
  • + *
  • ACCOUNTS_RECEIVABLE - ACCOUNTS_RECEIVABLE
  • + *
  • FIXED_ASSET - FIXED_ASSET
  • + *
  • OTHER_ASSET - OTHER_ASSET
  • + *
  • OTHER_CURRENT_ASSET - OTHER_CURRENT_ASSET
  • + *
  • OTHER_EXPENSE - OTHER_EXPENSE
  • + *
  • OTHER_INCOME - OTHER_INCOME
  • + *
  • COST_OF_GOODS_SOLD - COST_OF_GOODS_SOLD
  • + *
  • OTHER_CURRENT_LIABILITY - OTHER_CURRENT_LIABILITY
  • + *
  • LONG_TERM_LIABILITY - LONG_TERM_LIABILITY
  • + *
  • NON_POSTING - NON_POSTING
  • + *
+ */ @JsonSetter(value = "account_type", nulls = Nulls.SKIP) - public Builder accountType(Optional accountType) { + public Builder accountType(Optional accountType) { this.accountType = accountType; return this; } - public Builder accountType(AccountAccountTypeEnum accountType) { + public Builder accountType(AccountAccountType accountType) { this.accountType = Optional.ofNullable(accountType); return this; } + /** + *

The account's status.

+ *
    + *
  • ACTIVE - ACTIVE
  • + *
  • PENDING - PENDING
  • + *
  • INACTIVE - INACTIVE
  • + *
+ */ @JsonSetter(value = "status", nulls = Nulls.SKIP) - public Builder status(Optional status) { + public Builder status(Optional status) { this.status = status; return this; } - public Builder status(AccountStatusEnum status) { + public Builder status(AccountStatus status) { this.status = Optional.ofNullable(status); return this; } + /** + *

The account's current balance.

+ */ @JsonSetter(value = "current_balance", nulls = Nulls.SKIP) public Builder currentBalance(Optional currentBalance) { this.currentBalance = currentBalance; @@ -822,17 +879,331 @@ public Builder currentBalance(Double currentBalance) { return this; } + /** + *

The account's currency.

+ *
    + *
  • XUA - ADB Unit of Account
  • + *
  • AFN - Afghan Afghani
  • + *
  • AFA - Afghan Afghani (1927–2002)
  • + *
  • ALL - Albanian Lek
  • + *
  • ALK - Albanian Lek (1946–1965)
  • + *
  • DZD - Algerian Dinar
  • + *
  • ADP - Andorran Peseta
  • + *
  • AOA - Angolan Kwanza
  • + *
  • AOK - Angolan Kwanza (1977–1991)
  • + *
  • AON - Angolan New Kwanza (1990–2000)
  • + *
  • AOR - Angolan Readjusted Kwanza (1995–1999)
  • + *
  • ARA - Argentine Austral
  • + *
  • ARS - Argentine Peso
  • + *
  • ARM - Argentine Peso (1881–1970)
  • + *
  • ARP - Argentine Peso (1983–1985)
  • + *
  • ARL - Argentine Peso Ley (1970–1983)
  • + *
  • AMD - Armenian Dram
  • + *
  • AWG - Aruban Florin
  • + *
  • AUD - Australian Dollar
  • + *
  • ATS - Austrian Schilling
  • + *
  • AZN - Azerbaijani Manat
  • + *
  • AZM - Azerbaijani Manat (1993–2006)
  • + *
  • BSD - Bahamian Dollar
  • + *
  • BHD - Bahraini Dinar
  • + *
  • BDT - Bangladeshi Taka
  • + *
  • BBD - Barbadian Dollar
  • + *
  • BYN - Belarusian Ruble
  • + *
  • BYB - Belarusian Ruble (1994–1999)
  • + *
  • BYR - Belarusian Ruble (2000–2016)
  • + *
  • BEF - Belgian Franc
  • + *
  • BEC - Belgian Franc (convertible)
  • + *
  • BEL - Belgian Franc (financial)
  • + *
  • BZD - Belize Dollar
  • + *
  • BMD - Bermudan Dollar
  • + *
  • BTN - Bhutanese Ngultrum
  • + *
  • BOB - Bolivian Boliviano
  • + *
  • BOL - Bolivian Boliviano (1863–1963)
  • + *
  • BOV - Bolivian Mvdol
  • + *
  • BOP - Bolivian Peso
  • + *
  • BAM - Bosnia-Herzegovina Convertible Mark
  • + *
  • BAD - Bosnia-Herzegovina Dinar (1992–1994)
  • + *
  • BAN - Bosnia-Herzegovina New Dinar (1994–1997)
  • + *
  • BWP - Botswanan Pula
  • + *
  • BRC - Brazilian Cruzado (1986–1989)
  • + *
  • BRZ - Brazilian Cruzeiro (1942–1967)
  • + *
  • BRE - Brazilian Cruzeiro (1990–1993)
  • + *
  • BRR - Brazilian Cruzeiro (1993–1994)
  • + *
  • BRN - Brazilian New Cruzado (1989–1990)
  • + *
  • BRB - Brazilian New Cruzeiro (1967–1986)
  • + *
  • BRL - Brazilian Real
  • + *
  • GBP - British Pound
  • + *
  • BND - Brunei Dollar
  • + *
  • BGL - Bulgarian Hard Lev
  • + *
  • BGN - Bulgarian Lev
  • + *
  • BGO - Bulgarian Lev (1879–1952)
  • + *
  • BGM - Bulgarian Socialist Lev
  • + *
  • BUK - Burmese Kyat
  • + *
  • BIF - Burundian Franc
  • + *
  • XPF - CFP Franc
  • + *
  • KHR - Cambodian Riel
  • + *
  • CAD - Canadian Dollar
  • + *
  • CVE - Cape Verdean Escudo
  • + *
  • KYD - Cayman Islands Dollar
  • + *
  • XAF - Central African CFA Franc
  • + *
  • CLE - Chilean Escudo
  • + *
  • CLP - Chilean Peso
  • + *
  • CLF - Chilean Unit of Account (UF)
  • + *
  • CNX - Chinese People’s Bank Dollar
  • + *
  • CNY - Chinese Yuan
  • + *
  • CNH - Chinese Yuan (offshore)
  • + *
  • COP - Colombian Peso
  • + *
  • COU - Colombian Real Value Unit
  • + *
  • KMF - Comorian Franc
  • + *
  • CDF - Congolese Franc
  • + *
  • CRC - Costa Rican Colón
  • + *
  • HRD - Croatian Dinar
  • + *
  • HRK - Croatian Kuna
  • + *
  • CUC - Cuban Convertible Peso
  • + *
  • CUP - Cuban Peso
  • + *
  • CYP - Cypriot Pound
  • + *
  • CZK - Czech Koruna
  • + *
  • CSK - Czechoslovak Hard Koruna
  • + *
  • DKK - Danish Krone
  • + *
  • DJF - Djiboutian Franc
  • + *
  • DOP - Dominican Peso
  • + *
  • NLG - Dutch Guilder
  • + *
  • XCD - East Caribbean Dollar
  • + *
  • DDM - East German Mark
  • + *
  • ECS - Ecuadorian Sucre
  • + *
  • ECV - Ecuadorian Unit of Constant Value
  • + *
  • EGP - Egyptian Pound
  • + *
  • GQE - Equatorial Guinean Ekwele
  • + *
  • ERN - Eritrean Nakfa
  • + *
  • EEK - Estonian Kroon
  • + *
  • ETB - Ethiopian Birr
  • + *
  • EUR - Euro
  • + *
  • XBA - European Composite Unit
  • + *
  • XEU - European Currency Unit
  • + *
  • XBB - European Monetary Unit
  • + *
  • XBC - European Unit of Account (XBC)
  • + *
  • XBD - European Unit of Account (XBD)
  • + *
  • FKP - Falkland Islands Pound
  • + *
  • FJD - Fijian Dollar
  • + *
  • FIM - Finnish Markka
  • + *
  • FRF - French Franc
  • + *
  • XFO - French Gold Franc
  • + *
  • XFU - French UIC-Franc
  • + *
  • GMD - Gambian Dalasi
  • + *
  • GEK - Georgian Kupon Larit
  • + *
  • GEL - Georgian Lari
  • + *
  • DEM - German Mark
  • + *
  • GHS - Ghanaian Cedi
  • + *
  • GHC - Ghanaian Cedi (1979–2007)
  • + *
  • GIP - Gibraltar Pound
  • + *
  • XAU - Gold
  • + *
  • GRD - Greek Drachma
  • + *
  • GTQ - Guatemalan Quetzal
  • + *
  • GWP - Guinea-Bissau Peso
  • + *
  • GNF - Guinean Franc
  • + *
  • GNS - Guinean Syli
  • + *
  • GYD - Guyanaese Dollar
  • + *
  • HTG - Haitian Gourde
  • + *
  • HNL - Honduran Lempira
  • + *
  • HKD - Hong Kong Dollar
  • + *
  • HUF - Hungarian Forint
  • + *
  • IMP - IMP
  • + *
  • ISK - Icelandic Króna
  • + *
  • ISJ - Icelandic Króna (1918–1981)
  • + *
  • INR - Indian Rupee
  • + *
  • IDR - Indonesian Rupiah
  • + *
  • IRR - Iranian Rial
  • + *
  • IQD - Iraqi Dinar
  • + *
  • IEP - Irish Pound
  • + *
  • ILS - Israeli New Shekel
  • + *
  • ILP - Israeli Pound
  • + *
  • ILR - Israeli Shekel (1980–1985)
  • + *
  • ITL - Italian Lira
  • + *
  • JMD - Jamaican Dollar
  • + *
  • JPY - Japanese Yen
  • + *
  • JOD - Jordanian Dinar
  • + *
  • KZT - Kazakhstani Tenge
  • + *
  • KES - Kenyan Shilling
  • + *
  • KWD - Kuwaiti Dinar
  • + *
  • KGS - Kyrgystani Som
  • + *
  • LAK - Laotian Kip
  • + *
  • LVL - Latvian Lats
  • + *
  • LVR - Latvian Ruble
  • + *
  • LBP - Lebanese Pound
  • + *
  • LSL - Lesotho Loti
  • + *
  • LRD - Liberian Dollar
  • + *
  • LYD - Libyan Dinar
  • + *
  • LTL - Lithuanian Litas
  • + *
  • LTT - Lithuanian Talonas
  • + *
  • LUL - Luxembourg Financial Franc
  • + *
  • LUC - Luxembourgian Convertible Franc
  • + *
  • LUF - Luxembourgian Franc
  • + *
  • MOP - Macanese Pataca
  • + *
  • MKD - Macedonian Denar
  • + *
  • MKN - Macedonian Denar (1992–1993)
  • + *
  • MGA - Malagasy Ariary
  • + *
  • MGF - Malagasy Franc
  • + *
  • MWK - Malawian Kwacha
  • + *
  • MYR - Malaysian Ringgit
  • + *
  • MVR - Maldivian Rufiyaa
  • + *
  • MVP - Maldivian Rupee (1947–1981)
  • + *
  • MLF - Malian Franc
  • + *
  • MTL - Maltese Lira
  • + *
  • MTP - Maltese Pound
  • + *
  • MRU - Mauritanian Ouguiya
  • + *
  • MRO - Mauritanian Ouguiya (1973–2017)
  • + *
  • MUR - Mauritian Rupee
  • + *
  • MXV - Mexican Investment Unit
  • + *
  • MXN - Mexican Peso
  • + *
  • MXP - Mexican Silver Peso (1861–1992)
  • + *
  • MDC - Moldovan Cupon
  • + *
  • MDL - Moldovan Leu
  • + *
  • MCF - Monegasque Franc
  • + *
  • MNT - Mongolian Tugrik
  • + *
  • MAD - Moroccan Dirham
  • + *
  • MAF - Moroccan Franc
  • + *
  • MZE - Mozambican Escudo
  • + *
  • MZN - Mozambican Metical
  • + *
  • MZM - Mozambican Metical (1980–2006)
  • + *
  • MMK - Myanmar Kyat
  • + *
  • NAD - Namibian Dollar
  • + *
  • NPR - Nepalese Rupee
  • + *
  • ANG - Netherlands Antillean Guilder
  • + *
  • TWD - New Taiwan Dollar
  • + *
  • NZD - New Zealand Dollar
  • + *
  • NIO - Nicaraguan Córdoba
  • + *
  • NIC - Nicaraguan Córdoba (1988–1991)
  • + *
  • NGN - Nigerian Naira
  • + *
  • KPW - North Korean Won
  • + *
  • NOK - Norwegian Krone
  • + *
  • OMR - Omani Rial
  • + *
  • PKR - Pakistani Rupee
  • + *
  • XPD - Palladium
  • + *
  • PAB - Panamanian Balboa
  • + *
  • PGK - Papua New Guinean Kina
  • + *
  • PYG - Paraguayan Guarani
  • + *
  • PEI - Peruvian Inti
  • + *
  • PEN - Peruvian Sol
  • + *
  • PES - Peruvian Sol (1863–1965)
  • + *
  • PHP - Philippine Peso
  • + *
  • XPT - Platinum
  • + *
  • PLN - Polish Zloty
  • + *
  • PLZ - Polish Zloty (1950–1995)
  • + *
  • PTE - Portuguese Escudo
  • + *
  • GWE - Portuguese Guinea Escudo
  • + *
  • QAR - Qatari Rial
  • + *
  • XRE - RINET Funds
  • + *
  • RHD - Rhodesian Dollar
  • + *
  • RON - Romanian Leu
  • + *
  • ROL - Romanian Leu (1952–2006)
  • + *
  • RUB - Russian Ruble
  • + *
  • RUR - Russian Ruble (1991–1998)
  • + *
  • RWF - Rwandan Franc
  • + *
  • SVC - Salvadoran Colón
  • + *
  • WST - Samoan Tala
  • + *
  • SAR - Saudi Riyal
  • + *
  • RSD - Serbian Dinar
  • + *
  • CSD - Serbian Dinar (2002–2006)
  • + *
  • SCR - Seychellois Rupee
  • + *
  • SLL - Sierra Leonean Leone
  • + *
  • XAG - Silver
  • + *
  • SGD - Singapore Dollar
  • + *
  • SKK - Slovak Koruna
  • + *
  • SIT - Slovenian Tolar
  • + *
  • SBD - Solomon Islands Dollar
  • + *
  • SOS - Somali Shilling
  • + *
  • ZAR - South African Rand
  • + *
  • ZAL - South African Rand (financial)
  • + *
  • KRH - South Korean Hwan (1953–1962)
  • + *
  • KRW - South Korean Won
  • + *
  • KRO - South Korean Won (1945–1953)
  • + *
  • SSP - South Sudanese Pound
  • + *
  • SUR - Soviet Rouble
  • + *
  • ESP - Spanish Peseta
  • + *
  • ESA - Spanish Peseta (A account)
  • + *
  • ESB - Spanish Peseta (convertible account)
  • + *
  • XDR - Special Drawing Rights
  • + *
  • LKR - Sri Lankan Rupee
  • + *
  • SHP - St. Helena Pound
  • + *
  • XSU - Sucre
  • + *
  • SDD - Sudanese Dinar (1992–2007)
  • + *
  • SDG - Sudanese Pound
  • + *
  • SDP - Sudanese Pound (1957–1998)
  • + *
  • SRD - Surinamese Dollar
  • + *
  • SRG - Surinamese Guilder
  • + *
  • SZL - Swazi Lilangeni
  • + *
  • SEK - Swedish Krona
  • + *
  • CHF - Swiss Franc
  • + *
  • SYP - Syrian Pound
  • + *
  • STN - São Tomé & Príncipe Dobra
  • + *
  • STD - São Tomé & Príncipe Dobra (1977–2017)
  • + *
  • TVD - TVD
  • + *
  • TJR - Tajikistani Ruble
  • + *
  • TJS - Tajikistani Somoni
  • + *
  • TZS - Tanzanian Shilling
  • + *
  • XTS - Testing Currency Code
  • + *
  • THB - Thai Baht
  • + *
  • XXX - The codes assigned for transactions where no currency is involved
  • + *
  • TPE - Timorese Escudo
  • + *
  • TOP - Tongan Paʻanga
  • + *
  • TTD - Trinidad & Tobago Dollar
  • + *
  • TND - Tunisian Dinar
  • + *
  • TRY - Turkish Lira
  • + *
  • TRL - Turkish Lira (1922–2005)
  • + *
  • TMT - Turkmenistani Manat
  • + *
  • TMM - Turkmenistani Manat (1993–2009)
  • + *
  • USD - US Dollar
  • + *
  • USN - US Dollar (Next day)
  • + *
  • USS - US Dollar (Same day)
  • + *
  • UGX - Ugandan Shilling
  • + *
  • UGS - Ugandan Shilling (1966–1987)
  • + *
  • UAH - Ukrainian Hryvnia
  • + *
  • UAK - Ukrainian Karbovanets
  • + *
  • AED - United Arab Emirates Dirham
  • + *
  • UYW - Uruguayan Nominal Wage Index Unit
  • + *
  • UYU - Uruguayan Peso
  • + *
  • UYP - Uruguayan Peso (1975–1993)
  • + *
  • UYI - Uruguayan Peso (Indexed Units)
  • + *
  • UZS - Uzbekistani Som
  • + *
  • VUV - Vanuatu Vatu
  • + *
  • VES - Venezuelan Bolívar
  • + *
  • VEB - Venezuelan Bolívar (1871–2008)
  • + *
  • VEF - Venezuelan Bolívar (2008–2018)
  • + *
  • VND - Vietnamese Dong
  • + *
  • VNN - Vietnamese Dong (1978–1985)
  • + *
  • CHE - WIR Euro
  • + *
  • CHW - WIR Franc
  • + *
  • XOF - West African CFA Franc
  • + *
  • YDD - Yemeni Dinar
  • + *
  • YER - Yemeni Rial
  • + *
  • YUN - Yugoslavian Convertible Dinar (1990–1992)
  • + *
  • YUD - Yugoslavian Hard Dinar (1966–1990)
  • + *
  • YUM - Yugoslavian New Dinar (1994–2002)
  • + *
  • YUR - Yugoslavian Reformed Dinar (1992–1993)
  • + *
  • ZWN - ZWN
  • + *
  • ZRN - Zairean New Zaire (1993–1998)
  • + *
  • ZRZ - Zairean Zaire (1971–1993)
  • + *
  • ZMW - Zambian Kwacha
  • + *
  • ZMK - Zambian Kwacha (1968–2012)
  • + *
  • ZWD - Zimbabwean Dollar (1980–2008)
  • + *
  • ZWR - Zimbabwean Dollar (2008)
  • + *
  • ZWL - Zimbabwean Dollar (2009)
  • + *
+ */ @JsonSetter(value = "currency", nulls = Nulls.SKIP) - public Builder currency(Optional currency) { + public Builder currency(Optional currency) { this.currency = currency; return this; } - public Builder currency(TransactionCurrencyEnum currency) { + public Builder currency(AccountCurrency currency) { this.currency = Optional.ofNullable(currency); return this; } + /** + *

The account's number.

+ */ @JsonSetter(value = "account_number", nulls = Nulls.SKIP) public Builder accountNumber(Optional accountNumber) { this.accountNumber = accountNumber; @@ -844,6 +1215,9 @@ public Builder accountNumber(String accountNumber) { return this; } + /** + *

ID of the parent account.

+ */ @JsonSetter(value = "parent_account", nulls = Nulls.SKIP) public Builder parentAccount(Optional parentAccount) { this.parentAccount = parentAccount; @@ -855,6 +1229,9 @@ public Builder parentAccount(String parentAccount) { return this; } + /** + *

The company the account belongs to.

+ */ @JsonSetter(value = "company", nulls = Nulls.SKIP) public Builder company(Optional company) { this.company = company; @@ -866,6 +1243,9 @@ public Builder company(String company) { return this; } + /** + *

Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

+ */ @JsonSetter(value = "remote_was_deleted", nulls = Nulls.SKIP) public Builder remoteWasDeleted(Optional remoteWasDeleted) { this.remoteWasDeleted = remoteWasDeleted; diff --git a/src/main/java/com/merge/api/accounting/types/AccountAccountType.java b/src/main/java/com/merge/api/accounting/types/AccountAccountType.java new file mode 100644 index 000000000..2e2bed065 --- /dev/null +++ b/src/main/java/com/merge/api/accounting/types/AccountAccountType.java @@ -0,0 +1,95 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.merge.api.accounting.types; + +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.databind.DeserializationContext; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.fasterxml.jackson.databind.deser.std.StdDeserializer; +import com.merge.api.core.ObjectMappers; +import java.io.IOException; +import java.util.Objects; + +@JsonDeserialize(using = AccountAccountType.Deserializer.class) +public final class AccountAccountType { + private final Object value; + + private final int type; + + private AccountAccountType(Object value, int type) { + this.value = value; + this.type = type; + } + + @JsonValue + public Object get() { + return this.value; + } + + @SuppressWarnings("unchecked") + public T visit(Visitor visitor) { + if (this.type == 0) { + return visitor.visit((AccountAccountTypeEnum) this.value); + } else if (this.type == 1) { + return visitor.visit((String) this.value); + } + throw new IllegalStateException("Failed to visit value. This should never happen."); + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof AccountAccountType && equalTo((AccountAccountType) other); + } + + private boolean equalTo(AccountAccountType other) { + return value.equals(other.value); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.value); + } + + @java.lang.Override + public String toString() { + return this.value.toString(); + } + + public static AccountAccountType of(AccountAccountTypeEnum value) { + return new AccountAccountType(value, 0); + } + + public static AccountAccountType of(String value) { + return new AccountAccountType(value, 1); + } + + public interface Visitor { + T visit(AccountAccountTypeEnum value); + + T visit(String value); + } + + static final class Deserializer extends StdDeserializer { + Deserializer() { + super(AccountAccountType.class); + } + + @java.lang.Override + public AccountAccountType deserialize(JsonParser p, DeserializationContext context) throws IOException { + Object value = p.readValueAs(Object.class); + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, AccountAccountTypeEnum.class)); + } catch (IllegalArgumentException e) { + } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, String.class)); + } catch (IllegalArgumentException e) { + } + throw new JsonParseException(p, "Failed to deserialize"); + } + } +} diff --git a/src/main/java/com/merge/api/accounting/types/AccountClassification.java b/src/main/java/com/merge/api/accounting/types/AccountClassification.java new file mode 100644 index 000000000..f226138e8 --- /dev/null +++ b/src/main/java/com/merge/api/accounting/types/AccountClassification.java @@ -0,0 +1,95 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.merge.api.accounting.types; + +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.databind.DeserializationContext; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.fasterxml.jackson.databind.deser.std.StdDeserializer; +import com.merge.api.core.ObjectMappers; +import java.io.IOException; +import java.util.Objects; + +@JsonDeserialize(using = AccountClassification.Deserializer.class) +public final class AccountClassification { + private final Object value; + + private final int type; + + private AccountClassification(Object value, int type) { + this.value = value; + this.type = type; + } + + @JsonValue + public Object get() { + return this.value; + } + + @SuppressWarnings("unchecked") + public T visit(Visitor visitor) { + if (this.type == 0) { + return visitor.visit((ClassificationEnum) this.value); + } else if (this.type == 1) { + return visitor.visit((String) this.value); + } + throw new IllegalStateException("Failed to visit value. This should never happen."); + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof AccountClassification && equalTo((AccountClassification) other); + } + + private boolean equalTo(AccountClassification other) { + return value.equals(other.value); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.value); + } + + @java.lang.Override + public String toString() { + return this.value.toString(); + } + + public static AccountClassification of(ClassificationEnum value) { + return new AccountClassification(value, 0); + } + + public static AccountClassification of(String value) { + return new AccountClassification(value, 1); + } + + public interface Visitor { + T visit(ClassificationEnum value); + + T visit(String value); + } + + static final class Deserializer extends StdDeserializer { + Deserializer() { + super(AccountClassification.class); + } + + @java.lang.Override + public AccountClassification deserialize(JsonParser p, DeserializationContext context) throws IOException { + Object value = p.readValueAs(Object.class); + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, ClassificationEnum.class)); + } catch (IllegalArgumentException e) { + } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, String.class)); + } catch (IllegalArgumentException e) { + } + throw new JsonParseException(p, "Failed to deserialize"); + } + } +} diff --git a/src/main/java/com/merge/api/accounting/types/AccountCurrency.java b/src/main/java/com/merge/api/accounting/types/AccountCurrency.java new file mode 100644 index 000000000..adb57e7ce --- /dev/null +++ b/src/main/java/com/merge/api/accounting/types/AccountCurrency.java @@ -0,0 +1,95 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.merge.api.accounting.types; + +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.databind.DeserializationContext; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.fasterxml.jackson.databind.deser.std.StdDeserializer; +import com.merge.api.core.ObjectMappers; +import java.io.IOException; +import java.util.Objects; + +@JsonDeserialize(using = AccountCurrency.Deserializer.class) +public final class AccountCurrency { + private final Object value; + + private final int type; + + private AccountCurrency(Object value, int type) { + this.value = value; + this.type = type; + } + + @JsonValue + public Object get() { + return this.value; + } + + @SuppressWarnings("unchecked") + public T visit(Visitor visitor) { + if (this.type == 0) { + return visitor.visit((TransactionCurrencyEnum) this.value); + } else if (this.type == 1) { + return visitor.visit((String) this.value); + } + throw new IllegalStateException("Failed to visit value. This should never happen."); + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof AccountCurrency && equalTo((AccountCurrency) other); + } + + private boolean equalTo(AccountCurrency other) { + return value.equals(other.value); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.value); + } + + @java.lang.Override + public String toString() { + return this.value.toString(); + } + + public static AccountCurrency of(TransactionCurrencyEnum value) { + return new AccountCurrency(value, 0); + } + + public static AccountCurrency of(String value) { + return new AccountCurrency(value, 1); + } + + public interface Visitor { + T visit(TransactionCurrencyEnum value); + + T visit(String value); + } + + static final class Deserializer extends StdDeserializer { + Deserializer() { + super(AccountCurrency.class); + } + + @java.lang.Override + public AccountCurrency deserialize(JsonParser p, DeserializationContext context) throws IOException { + Object value = p.readValueAs(Object.class); + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, TransactionCurrencyEnum.class)); + } catch (IllegalArgumentException e) { + } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, String.class)); + } catch (IllegalArgumentException e) { + } + throw new JsonParseException(p, "Failed to deserialize"); + } + } +} diff --git a/src/main/java/com/merge/api/accounting/types/AccountDetails.java b/src/main/java/com/merge/api/accounting/types/AccountDetails.java index 5f29b1d18..836f028a9 100644 --- a/src/main/java/com/merge/api/accounting/types/AccountDetails.java +++ b/src/main/java/com/merge/api/accounting/types/AccountDetails.java @@ -340,6 +340,9 @@ public Builder webhookListenerUrl(String webhookListenerUrl) { return this; } + /** + *

Whether a Production Linked Account's credentials match another existing Production Linked Account. This field is null for Test Linked Accounts, incomplete Production Linked Accounts, and ignored duplicate Production Linked Account sets.

+ */ @JsonSetter(value = "is_duplicate", nulls = Nulls.SKIP) public Builder isDuplicate(Optional isDuplicate) { this.isDuplicate = isDuplicate; @@ -362,6 +365,9 @@ public Builder accountType(String accountType) { return this; } + /** + *

The time at which account completes the linking flow.

+ */ @JsonSetter(value = "completed_at", nulls = Nulls.SKIP) public Builder completedAt(Optional completedAt) { this.completedAt = completedAt; diff --git a/src/main/java/com/merge/api/accounting/types/AccountDetailsAndActions.java b/src/main/java/com/merge/api/accounting/types/AccountDetailsAndActions.java index 625686b95..c472134aa 100644 --- a/src/main/java/com/merge/api/accounting/types/AccountDetailsAndActions.java +++ b/src/main/java/com/merge/api/accounting/types/AccountDetailsAndActions.java @@ -251,10 +251,16 @@ public interface _FinalStage { _FinalStage endUserOriginId(String endUserOriginId); + /** + *

The tenant or domain the customer has provided access to.

+ */ _FinalStage subdomain(Optional subdomain); _FinalStage subdomain(String subdomain); + /** + *

Whether a Production Linked Account's credentials match another existing Production Linked Account. This field is null for Test Linked Accounts, incomplete Production Linked Accounts, and ignored duplicate Production Linked Account sets.

+ */ _FinalStage isDuplicate(Optional isDuplicate); _FinalStage isDuplicate(Boolean isDuplicate); @@ -395,6 +401,9 @@ public _FinalStage isDuplicate(Boolean isDuplicate) { return this; } + /** + *

Whether a Production Linked Account's credentials match another existing Production Linked Account. This field is null for Test Linked Accounts, incomplete Production Linked Accounts, and ignored duplicate Production Linked Account sets.

+ */ @java.lang.Override @JsonSetter(value = "is_duplicate", nulls = Nulls.SKIP) public _FinalStage isDuplicate(Optional isDuplicate) { @@ -412,6 +421,9 @@ public _FinalStage subdomain(String subdomain) { return this; } + /** + *

The tenant or domain the customer has provided access to.

+ */ @java.lang.Override @JsonSetter(value = "subdomain", nulls = Nulls.SKIP) public _FinalStage subdomain(Optional subdomain) { diff --git a/src/main/java/com/merge/api/accounting/types/AccountEndpointRequest.java b/src/main/java/com/merge/api/accounting/types/AccountEndpointRequest.java index a5d9563e9..9126d7c67 100644 --- a/src/main/java/com/merge/api/accounting/types/AccountEndpointRequest.java +++ b/src/main/java/com/merge/api/accounting/types/AccountEndpointRequest.java @@ -99,10 +99,16 @@ public interface ModelStage { public interface _FinalStage { AccountEndpointRequest build(); + /** + *

Whether to include debug fields (such as log file links) in the response.

+ */ _FinalStage isDebugMode(Optional isDebugMode); _FinalStage isDebugMode(Boolean isDebugMode); + /** + *

Whether or not third-party updates should be run asynchronously.

+ */ _FinalStage runAsync(Optional runAsync); _FinalStage runAsync(Boolean runAsync); @@ -146,6 +152,9 @@ public _FinalStage runAsync(Boolean runAsync) { return this; } + /** + *

Whether or not third-party updates should be run asynchronously.

+ */ @java.lang.Override @JsonSetter(value = "run_async", nulls = Nulls.SKIP) public _FinalStage runAsync(Optional runAsync) { @@ -163,6 +172,9 @@ public _FinalStage isDebugMode(Boolean isDebugMode) { return this; } + /** + *

Whether to include debug fields (such as log file links) in the response.

+ */ @java.lang.Override @JsonSetter(value = "is_debug_mode", nulls = Nulls.SKIP) public _FinalStage isDebugMode(Optional isDebugMode) { diff --git a/src/main/java/com/merge/api/accounting/types/AccountIntegration.java b/src/main/java/com/merge/api/accounting/types/AccountIntegration.java index a7f7ebe16..39ca34c2f 100644 --- a/src/main/java/com/merge/api/accounting/types/AccountIntegration.java +++ b/src/main/java/com/merge/api/accounting/types/AccountIntegration.java @@ -196,6 +196,9 @@ public static NameStage builder() { } public interface NameStage { + /** + * Company name. + */ _FinalStage name(@NotNull String name); Builder from(AccountIntegration other); @@ -204,22 +207,37 @@ public interface NameStage { public interface _FinalStage { AccountIntegration build(); + /** + *

Optional. This shortened name appears in places with limited space, usually in conjunction with the platform's logo (e.g., Merge Link menu).<br><br>Example: <i>Workforce Now (in lieu of ADP Workforce Now), SuccessFactors (in lieu of SAP SuccessFactors)</i>

+ */ _FinalStage abbreviatedName(Optional abbreviatedName); _FinalStage abbreviatedName(String abbreviatedName); + /** + *

Category or categories this integration belongs to. Multiple categories should be comma separated, i.e. [ats, hris].

+ */ _FinalStage categories(Optional> categories); _FinalStage categories(List categories); + /** + *

Company logo in rectangular shape.

+ */ _FinalStage image(Optional image); _FinalStage image(String image); + /** + *

Company logo in square shape.

+ */ _FinalStage squareImage(Optional squareImage); _FinalStage squareImage(String squareImage); + /** + *

The color of this integration used for buttons and text throughout the app and landing pages. <b>Choose a darker, saturated color.</b>

+ */ _FinalStage color(Optional color); _FinalStage color(String color); @@ -228,14 +246,23 @@ public interface _FinalStage { _FinalStage slug(String slug); + /** + *

Mapping of API endpoints to documentation urls for support. Example: {'GET': [['/common-model-scopes', 'https://docs.merge.dev/accounting/common-model-scopes/#common_model_scopes_retrieve'],['/common-model-actions', 'https://docs.merge.dev/accounting/common-model-actions/#common_model_actions_retrieve']], 'POST': []}

+ */ _FinalStage apiEndpointsToDocumentationUrls(Optional> apiEndpointsToDocumentationUrls); _FinalStage apiEndpointsToDocumentationUrls(Map apiEndpointsToDocumentationUrls); + /** + *

Setup guide URL for third party webhook creation. Exposed in Merge Docs.

+ */ _FinalStage webhookSetupGuideUrl(Optional webhookSetupGuideUrl); _FinalStage webhookSetupGuideUrl(String webhookSetupGuideUrl); + /** + *

Category or categories this integration is in beta status for.

+ */ _FinalStage categoryBetaStatus(Optional> categoryBetaStatus); _FinalStage categoryBetaStatus(Map categoryBetaStatus); @@ -284,7 +311,7 @@ public Builder from(AccountIntegration other) { } /** - *

Company name.

+ * Company name.

Company name.

* @return Reference to {@code this} so that method calls can be chained together. */ @java.lang.Override @@ -304,6 +331,9 @@ public _FinalStage categoryBetaStatus(Map categoryBetaStatus) return this; } + /** + *

Category or categories this integration is in beta status for.

+ */ @java.lang.Override @JsonSetter(value = "category_beta_status", nulls = Nulls.SKIP) public _FinalStage categoryBetaStatus(Optional> categoryBetaStatus) { @@ -321,6 +351,9 @@ public _FinalStage webhookSetupGuideUrl(String webhookSetupGuideUrl) { return this; } + /** + *

Setup guide URL for third party webhook creation. Exposed in Merge Docs.

+ */ @java.lang.Override @JsonSetter(value = "webhook_setup_guide_url", nulls = Nulls.SKIP) public _FinalStage webhookSetupGuideUrl(Optional webhookSetupGuideUrl) { @@ -338,6 +371,9 @@ public _FinalStage apiEndpointsToDocumentationUrls(Map apiEndp return this; } + /** + *

Mapping of API endpoints to documentation urls for support. Example: {'GET': [['/common-model-scopes', 'https://docs.merge.dev/accounting/common-model-scopes/#common_model_scopes_retrieve'],['/common-model-actions', 'https://docs.merge.dev/accounting/common-model-actions/#common_model_actions_retrieve']], 'POST': []}

+ */ @java.lang.Override @JsonSetter(value = "api_endpoints_to_documentation_urls", nulls = Nulls.SKIP) public _FinalStage apiEndpointsToDocumentationUrls( @@ -369,6 +405,9 @@ public _FinalStage color(String color) { return this; } + /** + *

The color of this integration used for buttons and text throughout the app and landing pages. <b>Choose a darker, saturated color.</b>

+ */ @java.lang.Override @JsonSetter(value = "color", nulls = Nulls.SKIP) public _FinalStage color(Optional color) { @@ -386,6 +425,9 @@ public _FinalStage squareImage(String squareImage) { return this; } + /** + *

Company logo in square shape.

+ */ @java.lang.Override @JsonSetter(value = "square_image", nulls = Nulls.SKIP) public _FinalStage squareImage(Optional squareImage) { @@ -403,6 +445,9 @@ public _FinalStage image(String image) { return this; } + /** + *

Company logo in rectangular shape.

+ */ @java.lang.Override @JsonSetter(value = "image", nulls = Nulls.SKIP) public _FinalStage image(Optional image) { @@ -420,6 +465,9 @@ public _FinalStage categories(List categories) { return this; } + /** + *

Category or categories this integration belongs to. Multiple categories should be comma separated, i.e. [ats, hris].

+ */ @java.lang.Override @JsonSetter(value = "categories", nulls = Nulls.SKIP) public _FinalStage categories(Optional> categories) { @@ -437,6 +485,9 @@ public _FinalStage abbreviatedName(String abbreviatedName) { return this; } + /** + *

Optional. This shortened name appears in places with limited space, usually in conjunction with the platform's logo (e.g., Merge Link menu).<br><br>Example: <i>Workforce Now (in lieu of ADP Workforce Now), SuccessFactors (in lieu of SAP SuccessFactors)</i>

+ */ @java.lang.Override @JsonSetter(value = "abbreviated_name", nulls = Nulls.SKIP) public _FinalStage abbreviatedName(Optional abbreviatedName) { diff --git a/src/main/java/com/merge/api/accounting/types/AccountRequest.java b/src/main/java/com/merge/api/accounting/types/AccountRequest.java index 71278bee2..752ffe961 100644 --- a/src/main/java/com/merge/api/accounting/types/AccountRequest.java +++ b/src/main/java/com/merge/api/accounting/types/AccountRequest.java @@ -25,17 +25,17 @@ public final class AccountRequest { private final Optional description; - private final Optional classification; + private final Optional classification; private final Optional type; - private final Optional accountType; + private final Optional accountType; - private final Optional status; + private final Optional status; private final Optional currentBalance; - private final Optional currency; + private final Optional currency; private final Optional accountNumber; @@ -52,12 +52,12 @@ public final class AccountRequest { private AccountRequest( Optional name, Optional description, - Optional classification, + Optional classification, Optional type, - Optional accountType, - Optional status, + Optional accountType, + Optional status, Optional currentBalance, - Optional currency, + Optional currency, Optional accountNumber, Optional parentAccount, Optional company, @@ -107,7 +107,7 @@ public Optional getDescription() { * */ @JsonProperty("classification") - public Optional getClassification() { + public Optional getClassification() { return classification; } @@ -138,7 +138,7 @@ public Optional getType() { * */ @JsonProperty("account_type") - public Optional getAccountType() { + public Optional getAccountType() { return accountType; } @@ -151,7 +151,7 @@ public Optional getAccountType() { * */ @JsonProperty("status") - public Optional getStatus() { + public Optional getStatus() { return status; } @@ -475,7 +475,7 @@ public Optional getCurrentBalance() { * */ @JsonProperty("currency") - public Optional getCurrency() { + public Optional getCurrency() { return currency; } @@ -573,17 +573,17 @@ public static final class Builder { private Optional description = Optional.empty(); - private Optional classification = Optional.empty(); + private Optional classification = Optional.empty(); private Optional type = Optional.empty(); - private Optional accountType = Optional.empty(); + private Optional accountType = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Optional currentBalance = Optional.empty(); - private Optional currency = Optional.empty(); + private Optional currency = Optional.empty(); private Optional accountNumber = Optional.empty(); @@ -617,6 +617,9 @@ public Builder from(AccountRequest other) { return this; } + /** + *

The account's name.

+ */ @JsonSetter(value = "name", nulls = Nulls.SKIP) public Builder name(Optional name) { this.name = name; @@ -628,6 +631,9 @@ public Builder name(String name) { return this; } + /** + *

The account's description.

+ */ @JsonSetter(value = "description", nulls = Nulls.SKIP) public Builder description(Optional description) { this.description = description; @@ -639,17 +645,30 @@ public Builder description(String description) { return this; } + /** + *

The account's broadest grouping.

+ *
    + *
  • ASSET - ASSET
  • + *
  • EQUITY - EQUITY
  • + *
  • EXPENSE - EXPENSE
  • + *
  • LIABILITY - LIABILITY
  • + *
  • REVENUE - REVENUE
  • + *
+ */ @JsonSetter(value = "classification", nulls = Nulls.SKIP) - public Builder classification(Optional classification) { + public Builder classification(Optional classification) { this.classification = classification; return this; } - public Builder classification(ClassificationEnum classification) { + public Builder classification(AccountRequestClassification classification) { this.classification = Optional.ofNullable(classification); return this; } + /** + *

The account's type is a narrower and more specific grouping within the account's classification.

+ */ @JsonSetter(value = "type", nulls = Nulls.SKIP) public Builder type(Optional type) { this.type = type; @@ -661,28 +680,57 @@ public Builder type(String type) { return this; } + /** + *

Normalized account type- which is a narrower and more specific grouping within the account's classification.

+ *
    + *
  • BANK - BANK
  • + *
  • CREDIT_CARD - CREDIT_CARD
  • + *
  • ACCOUNTS_PAYABLE - ACCOUNTS_PAYABLE
  • + *
  • ACCOUNTS_RECEIVABLE - ACCOUNTS_RECEIVABLE
  • + *
  • FIXED_ASSET - FIXED_ASSET
  • + *
  • OTHER_ASSET - OTHER_ASSET
  • + *
  • OTHER_CURRENT_ASSET - OTHER_CURRENT_ASSET
  • + *
  • OTHER_EXPENSE - OTHER_EXPENSE
  • + *
  • OTHER_INCOME - OTHER_INCOME
  • + *
  • COST_OF_GOODS_SOLD - COST_OF_GOODS_SOLD
  • + *
  • OTHER_CURRENT_LIABILITY - OTHER_CURRENT_LIABILITY
  • + *
  • LONG_TERM_LIABILITY - LONG_TERM_LIABILITY
  • + *
  • NON_POSTING - NON_POSTING
  • + *
+ */ @JsonSetter(value = "account_type", nulls = Nulls.SKIP) - public Builder accountType(Optional accountType) { + public Builder accountType(Optional accountType) { this.accountType = accountType; return this; } - public Builder accountType(AccountAccountTypeEnum accountType) { + public Builder accountType(AccountRequestAccountType accountType) { this.accountType = Optional.ofNullable(accountType); return this; } + /** + *

The account's status.

+ *
    + *
  • ACTIVE - ACTIVE
  • + *
  • PENDING - PENDING
  • + *
  • INACTIVE - INACTIVE
  • + *
+ */ @JsonSetter(value = "status", nulls = Nulls.SKIP) - public Builder status(Optional status) { + public Builder status(Optional status) { this.status = status; return this; } - public Builder status(AccountStatusEnum status) { + public Builder status(AccountRequestStatus status) { this.status = Optional.ofNullable(status); return this; } + /** + *

The account's current balance.

+ */ @JsonSetter(value = "current_balance", nulls = Nulls.SKIP) public Builder currentBalance(Optional currentBalance) { this.currentBalance = currentBalance; @@ -694,17 +742,331 @@ public Builder currentBalance(Double currentBalance) { return this; } + /** + *

The account's currency.

+ *
    + *
  • XUA - ADB Unit of Account
  • + *
  • AFN - Afghan Afghani
  • + *
  • AFA - Afghan Afghani (1927–2002)
  • + *
  • ALL - Albanian Lek
  • + *
  • ALK - Albanian Lek (1946–1965)
  • + *
  • DZD - Algerian Dinar
  • + *
  • ADP - Andorran Peseta
  • + *
  • AOA - Angolan Kwanza
  • + *
  • AOK - Angolan Kwanza (1977–1991)
  • + *
  • AON - Angolan New Kwanza (1990–2000)
  • + *
  • AOR - Angolan Readjusted Kwanza (1995–1999)
  • + *
  • ARA - Argentine Austral
  • + *
  • ARS - Argentine Peso
  • + *
  • ARM - Argentine Peso (1881–1970)
  • + *
  • ARP - Argentine Peso (1983–1985)
  • + *
  • ARL - Argentine Peso Ley (1970–1983)
  • + *
  • AMD - Armenian Dram
  • + *
  • AWG - Aruban Florin
  • + *
  • AUD - Australian Dollar
  • + *
  • ATS - Austrian Schilling
  • + *
  • AZN - Azerbaijani Manat
  • + *
  • AZM - Azerbaijani Manat (1993–2006)
  • + *
  • BSD - Bahamian Dollar
  • + *
  • BHD - Bahraini Dinar
  • + *
  • BDT - Bangladeshi Taka
  • + *
  • BBD - Barbadian Dollar
  • + *
  • BYN - Belarusian Ruble
  • + *
  • BYB - Belarusian Ruble (1994–1999)
  • + *
  • BYR - Belarusian Ruble (2000–2016)
  • + *
  • BEF - Belgian Franc
  • + *
  • BEC - Belgian Franc (convertible)
  • + *
  • BEL - Belgian Franc (financial)
  • + *
  • BZD - Belize Dollar
  • + *
  • BMD - Bermudan Dollar
  • + *
  • BTN - Bhutanese Ngultrum
  • + *
  • BOB - Bolivian Boliviano
  • + *
  • BOL - Bolivian Boliviano (1863–1963)
  • + *
  • BOV - Bolivian Mvdol
  • + *
  • BOP - Bolivian Peso
  • + *
  • BAM - Bosnia-Herzegovina Convertible Mark
  • + *
  • BAD - Bosnia-Herzegovina Dinar (1992–1994)
  • + *
  • BAN - Bosnia-Herzegovina New Dinar (1994–1997)
  • + *
  • BWP - Botswanan Pula
  • + *
  • BRC - Brazilian Cruzado (1986–1989)
  • + *
  • BRZ - Brazilian Cruzeiro (1942–1967)
  • + *
  • BRE - Brazilian Cruzeiro (1990–1993)
  • + *
  • BRR - Brazilian Cruzeiro (1993–1994)
  • + *
  • BRN - Brazilian New Cruzado (1989–1990)
  • + *
  • BRB - Brazilian New Cruzeiro (1967–1986)
  • + *
  • BRL - Brazilian Real
  • + *
  • GBP - British Pound
  • + *
  • BND - Brunei Dollar
  • + *
  • BGL - Bulgarian Hard Lev
  • + *
  • BGN - Bulgarian Lev
  • + *
  • BGO - Bulgarian Lev (1879–1952)
  • + *
  • BGM - Bulgarian Socialist Lev
  • + *
  • BUK - Burmese Kyat
  • + *
  • BIF - Burundian Franc
  • + *
  • XPF - CFP Franc
  • + *
  • KHR - Cambodian Riel
  • + *
  • CAD - Canadian Dollar
  • + *
  • CVE - Cape Verdean Escudo
  • + *
  • KYD - Cayman Islands Dollar
  • + *
  • XAF - Central African CFA Franc
  • + *
  • CLE - Chilean Escudo
  • + *
  • CLP - Chilean Peso
  • + *
  • CLF - Chilean Unit of Account (UF)
  • + *
  • CNX - Chinese People’s Bank Dollar
  • + *
  • CNY - Chinese Yuan
  • + *
  • CNH - Chinese Yuan (offshore)
  • + *
  • COP - Colombian Peso
  • + *
  • COU - Colombian Real Value Unit
  • + *
  • KMF - Comorian Franc
  • + *
  • CDF - Congolese Franc
  • + *
  • CRC - Costa Rican Colón
  • + *
  • HRD - Croatian Dinar
  • + *
  • HRK - Croatian Kuna
  • + *
  • CUC - Cuban Convertible Peso
  • + *
  • CUP - Cuban Peso
  • + *
  • CYP - Cypriot Pound
  • + *
  • CZK - Czech Koruna
  • + *
  • CSK - Czechoslovak Hard Koruna
  • + *
  • DKK - Danish Krone
  • + *
  • DJF - Djiboutian Franc
  • + *
  • DOP - Dominican Peso
  • + *
  • NLG - Dutch Guilder
  • + *
  • XCD - East Caribbean Dollar
  • + *
  • DDM - East German Mark
  • + *
  • ECS - Ecuadorian Sucre
  • + *
  • ECV - Ecuadorian Unit of Constant Value
  • + *
  • EGP - Egyptian Pound
  • + *
  • GQE - Equatorial Guinean Ekwele
  • + *
  • ERN - Eritrean Nakfa
  • + *
  • EEK - Estonian Kroon
  • + *
  • ETB - Ethiopian Birr
  • + *
  • EUR - Euro
  • + *
  • XBA - European Composite Unit
  • + *
  • XEU - European Currency Unit
  • + *
  • XBB - European Monetary Unit
  • + *
  • XBC - European Unit of Account (XBC)
  • + *
  • XBD - European Unit of Account (XBD)
  • + *
  • FKP - Falkland Islands Pound
  • + *
  • FJD - Fijian Dollar
  • + *
  • FIM - Finnish Markka
  • + *
  • FRF - French Franc
  • + *
  • XFO - French Gold Franc
  • + *
  • XFU - French UIC-Franc
  • + *
  • GMD - Gambian Dalasi
  • + *
  • GEK - Georgian Kupon Larit
  • + *
  • GEL - Georgian Lari
  • + *
  • DEM - German Mark
  • + *
  • GHS - Ghanaian Cedi
  • + *
  • GHC - Ghanaian Cedi (1979–2007)
  • + *
  • GIP - Gibraltar Pound
  • + *
  • XAU - Gold
  • + *
  • GRD - Greek Drachma
  • + *
  • GTQ - Guatemalan Quetzal
  • + *
  • GWP - Guinea-Bissau Peso
  • + *
  • GNF - Guinean Franc
  • + *
  • GNS - Guinean Syli
  • + *
  • GYD - Guyanaese Dollar
  • + *
  • HTG - Haitian Gourde
  • + *
  • HNL - Honduran Lempira
  • + *
  • HKD - Hong Kong Dollar
  • + *
  • HUF - Hungarian Forint
  • + *
  • IMP - IMP
  • + *
  • ISK - Icelandic Króna
  • + *
  • ISJ - Icelandic Króna (1918–1981)
  • + *
  • INR - Indian Rupee
  • + *
  • IDR - Indonesian Rupiah
  • + *
  • IRR - Iranian Rial
  • + *
  • IQD - Iraqi Dinar
  • + *
  • IEP - Irish Pound
  • + *
  • ILS - Israeli New Shekel
  • + *
  • ILP - Israeli Pound
  • + *
  • ILR - Israeli Shekel (1980–1985)
  • + *
  • ITL - Italian Lira
  • + *
  • JMD - Jamaican Dollar
  • + *
  • JPY - Japanese Yen
  • + *
  • JOD - Jordanian Dinar
  • + *
  • KZT - Kazakhstani Tenge
  • + *
  • KES - Kenyan Shilling
  • + *
  • KWD - Kuwaiti Dinar
  • + *
  • KGS - Kyrgystani Som
  • + *
  • LAK - Laotian Kip
  • + *
  • LVL - Latvian Lats
  • + *
  • LVR - Latvian Ruble
  • + *
  • LBP - Lebanese Pound
  • + *
  • LSL - Lesotho Loti
  • + *
  • LRD - Liberian Dollar
  • + *
  • LYD - Libyan Dinar
  • + *
  • LTL - Lithuanian Litas
  • + *
  • LTT - Lithuanian Talonas
  • + *
  • LUL - Luxembourg Financial Franc
  • + *
  • LUC - Luxembourgian Convertible Franc
  • + *
  • LUF - Luxembourgian Franc
  • + *
  • MOP - Macanese Pataca
  • + *
  • MKD - Macedonian Denar
  • + *
  • MKN - Macedonian Denar (1992–1993)
  • + *
  • MGA - Malagasy Ariary
  • + *
  • MGF - Malagasy Franc
  • + *
  • MWK - Malawian Kwacha
  • + *
  • MYR - Malaysian Ringgit
  • + *
  • MVR - Maldivian Rufiyaa
  • + *
  • MVP - Maldivian Rupee (1947–1981)
  • + *
  • MLF - Malian Franc
  • + *
  • MTL - Maltese Lira
  • + *
  • MTP - Maltese Pound
  • + *
  • MRU - Mauritanian Ouguiya
  • + *
  • MRO - Mauritanian Ouguiya (1973–2017)
  • + *
  • MUR - Mauritian Rupee
  • + *
  • MXV - Mexican Investment Unit
  • + *
  • MXN - Mexican Peso
  • + *
  • MXP - Mexican Silver Peso (1861–1992)
  • + *
  • MDC - Moldovan Cupon
  • + *
  • MDL - Moldovan Leu
  • + *
  • MCF - Monegasque Franc
  • + *
  • MNT - Mongolian Tugrik
  • + *
  • MAD - Moroccan Dirham
  • + *
  • MAF - Moroccan Franc
  • + *
  • MZE - Mozambican Escudo
  • + *
  • MZN - Mozambican Metical
  • + *
  • MZM - Mozambican Metical (1980–2006)
  • + *
  • MMK - Myanmar Kyat
  • + *
  • NAD - Namibian Dollar
  • + *
  • NPR - Nepalese Rupee
  • + *
  • ANG - Netherlands Antillean Guilder
  • + *
  • TWD - New Taiwan Dollar
  • + *
  • NZD - New Zealand Dollar
  • + *
  • NIO - Nicaraguan Córdoba
  • + *
  • NIC - Nicaraguan Córdoba (1988–1991)
  • + *
  • NGN - Nigerian Naira
  • + *
  • KPW - North Korean Won
  • + *
  • NOK - Norwegian Krone
  • + *
  • OMR - Omani Rial
  • + *
  • PKR - Pakistani Rupee
  • + *
  • XPD - Palladium
  • + *
  • PAB - Panamanian Balboa
  • + *
  • PGK - Papua New Guinean Kina
  • + *
  • PYG - Paraguayan Guarani
  • + *
  • PEI - Peruvian Inti
  • + *
  • PEN - Peruvian Sol
  • + *
  • PES - Peruvian Sol (1863–1965)
  • + *
  • PHP - Philippine Peso
  • + *
  • XPT - Platinum
  • + *
  • PLN - Polish Zloty
  • + *
  • PLZ - Polish Zloty (1950–1995)
  • + *
  • PTE - Portuguese Escudo
  • + *
  • GWE - Portuguese Guinea Escudo
  • + *
  • QAR - Qatari Rial
  • + *
  • XRE - RINET Funds
  • + *
  • RHD - Rhodesian Dollar
  • + *
  • RON - Romanian Leu
  • + *
  • ROL - Romanian Leu (1952–2006)
  • + *
  • RUB - Russian Ruble
  • + *
  • RUR - Russian Ruble (1991–1998)
  • + *
  • RWF - Rwandan Franc
  • + *
  • SVC - Salvadoran Colón
  • + *
  • WST - Samoan Tala
  • + *
  • SAR - Saudi Riyal
  • + *
  • RSD - Serbian Dinar
  • + *
  • CSD - Serbian Dinar (2002–2006)
  • + *
  • SCR - Seychellois Rupee
  • + *
  • SLL - Sierra Leonean Leone
  • + *
  • XAG - Silver
  • + *
  • SGD - Singapore Dollar
  • + *
  • SKK - Slovak Koruna
  • + *
  • SIT - Slovenian Tolar
  • + *
  • SBD - Solomon Islands Dollar
  • + *
  • SOS - Somali Shilling
  • + *
  • ZAR - South African Rand
  • + *
  • ZAL - South African Rand (financial)
  • + *
  • KRH - South Korean Hwan (1953–1962)
  • + *
  • KRW - South Korean Won
  • + *
  • KRO - South Korean Won (1945–1953)
  • + *
  • SSP - South Sudanese Pound
  • + *
  • SUR - Soviet Rouble
  • + *
  • ESP - Spanish Peseta
  • + *
  • ESA - Spanish Peseta (A account)
  • + *
  • ESB - Spanish Peseta (convertible account)
  • + *
  • XDR - Special Drawing Rights
  • + *
  • LKR - Sri Lankan Rupee
  • + *
  • SHP - St. Helena Pound
  • + *
  • XSU - Sucre
  • + *
  • SDD - Sudanese Dinar (1992–2007)
  • + *
  • SDG - Sudanese Pound
  • + *
  • SDP - Sudanese Pound (1957–1998)
  • + *
  • SRD - Surinamese Dollar
  • + *
  • SRG - Surinamese Guilder
  • + *
  • SZL - Swazi Lilangeni
  • + *
  • SEK - Swedish Krona
  • + *
  • CHF - Swiss Franc
  • + *
  • SYP - Syrian Pound
  • + *
  • STN - São Tomé & Príncipe Dobra
  • + *
  • STD - São Tomé & Príncipe Dobra (1977–2017)
  • + *
  • TVD - TVD
  • + *
  • TJR - Tajikistani Ruble
  • + *
  • TJS - Tajikistani Somoni
  • + *
  • TZS - Tanzanian Shilling
  • + *
  • XTS - Testing Currency Code
  • + *
  • THB - Thai Baht
  • + *
  • XXX - The codes assigned for transactions where no currency is involved
  • + *
  • TPE - Timorese Escudo
  • + *
  • TOP - Tongan Paʻanga
  • + *
  • TTD - Trinidad & Tobago Dollar
  • + *
  • TND - Tunisian Dinar
  • + *
  • TRY - Turkish Lira
  • + *
  • TRL - Turkish Lira (1922–2005)
  • + *
  • TMT - Turkmenistani Manat
  • + *
  • TMM - Turkmenistani Manat (1993–2009)
  • + *
  • USD - US Dollar
  • + *
  • USN - US Dollar (Next day)
  • + *
  • USS - US Dollar (Same day)
  • + *
  • UGX - Ugandan Shilling
  • + *
  • UGS - Ugandan Shilling (1966–1987)
  • + *
  • UAH - Ukrainian Hryvnia
  • + *
  • UAK - Ukrainian Karbovanets
  • + *
  • AED - United Arab Emirates Dirham
  • + *
  • UYW - Uruguayan Nominal Wage Index Unit
  • + *
  • UYU - Uruguayan Peso
  • + *
  • UYP - Uruguayan Peso (1975–1993)
  • + *
  • UYI - Uruguayan Peso (Indexed Units)
  • + *
  • UZS - Uzbekistani Som
  • + *
  • VUV - Vanuatu Vatu
  • + *
  • VES - Venezuelan Bolívar
  • + *
  • VEB - Venezuelan Bolívar (1871–2008)
  • + *
  • VEF - Venezuelan Bolívar (2008–2018)
  • + *
  • VND - Vietnamese Dong
  • + *
  • VNN - Vietnamese Dong (1978–1985)
  • + *
  • CHE - WIR Euro
  • + *
  • CHW - WIR Franc
  • + *
  • XOF - West African CFA Franc
  • + *
  • YDD - Yemeni Dinar
  • + *
  • YER - Yemeni Rial
  • + *
  • YUN - Yugoslavian Convertible Dinar (1990–1992)
  • + *
  • YUD - Yugoslavian Hard Dinar (1966–1990)
  • + *
  • YUM - Yugoslavian New Dinar (1994–2002)
  • + *
  • YUR - Yugoslavian Reformed Dinar (1992–1993)
  • + *
  • ZWN - ZWN
  • + *
  • ZRN - Zairean New Zaire (1993–1998)
  • + *
  • ZRZ - Zairean Zaire (1971–1993)
  • + *
  • ZMW - Zambian Kwacha
  • + *
  • ZMK - Zambian Kwacha (1968–2012)
  • + *
  • ZWD - Zimbabwean Dollar (1980–2008)
  • + *
  • ZWR - Zimbabwean Dollar (2008)
  • + *
  • ZWL - Zimbabwean Dollar (2009)
  • + *
+ */ @JsonSetter(value = "currency", nulls = Nulls.SKIP) - public Builder currency(Optional currency) { + public Builder currency(Optional currency) { this.currency = currency; return this; } - public Builder currency(TransactionCurrencyEnum currency) { + public Builder currency(AccountRequestCurrency currency) { this.currency = Optional.ofNullable(currency); return this; } + /** + *

The account's number.

+ */ @JsonSetter(value = "account_number", nulls = Nulls.SKIP) public Builder accountNumber(Optional accountNumber) { this.accountNumber = accountNumber; @@ -716,6 +1078,9 @@ public Builder accountNumber(String accountNumber) { return this; } + /** + *

ID of the parent account.

+ */ @JsonSetter(value = "parent_account", nulls = Nulls.SKIP) public Builder parentAccount(Optional parentAccount) { this.parentAccount = parentAccount; @@ -727,6 +1092,9 @@ public Builder parentAccount(String parentAccount) { return this; } + /** + *

The company the account belongs to.

+ */ @JsonSetter(value = "company", nulls = Nulls.SKIP) public Builder company(Optional company) { this.company = company; diff --git a/src/main/java/com/merge/api/accounting/types/AccountRequestAccountType.java b/src/main/java/com/merge/api/accounting/types/AccountRequestAccountType.java new file mode 100644 index 000000000..2bc3757bd --- /dev/null +++ b/src/main/java/com/merge/api/accounting/types/AccountRequestAccountType.java @@ -0,0 +1,95 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.merge.api.accounting.types; + +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.databind.DeserializationContext; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.fasterxml.jackson.databind.deser.std.StdDeserializer; +import com.merge.api.core.ObjectMappers; +import java.io.IOException; +import java.util.Objects; + +@JsonDeserialize(using = AccountRequestAccountType.Deserializer.class) +public final class AccountRequestAccountType { + private final Object value; + + private final int type; + + private AccountRequestAccountType(Object value, int type) { + this.value = value; + this.type = type; + } + + @JsonValue + public Object get() { + return this.value; + } + + @SuppressWarnings("unchecked") + public T visit(Visitor visitor) { + if (this.type == 0) { + return visitor.visit((AccountAccountTypeEnum) this.value); + } else if (this.type == 1) { + return visitor.visit((String) this.value); + } + throw new IllegalStateException("Failed to visit value. This should never happen."); + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof AccountRequestAccountType && equalTo((AccountRequestAccountType) other); + } + + private boolean equalTo(AccountRequestAccountType other) { + return value.equals(other.value); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.value); + } + + @java.lang.Override + public String toString() { + return this.value.toString(); + } + + public static AccountRequestAccountType of(AccountAccountTypeEnum value) { + return new AccountRequestAccountType(value, 0); + } + + public static AccountRequestAccountType of(String value) { + return new AccountRequestAccountType(value, 1); + } + + public interface Visitor { + T visit(AccountAccountTypeEnum value); + + T visit(String value); + } + + static final class Deserializer extends StdDeserializer { + Deserializer() { + super(AccountRequestAccountType.class); + } + + @java.lang.Override + public AccountRequestAccountType deserialize(JsonParser p, DeserializationContext context) throws IOException { + Object value = p.readValueAs(Object.class); + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, AccountAccountTypeEnum.class)); + } catch (IllegalArgumentException e) { + } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, String.class)); + } catch (IllegalArgumentException e) { + } + throw new JsonParseException(p, "Failed to deserialize"); + } + } +} diff --git a/src/main/java/com/merge/api/accounting/types/AccountRequestClassification.java b/src/main/java/com/merge/api/accounting/types/AccountRequestClassification.java new file mode 100644 index 000000000..6c1b1add9 --- /dev/null +++ b/src/main/java/com/merge/api/accounting/types/AccountRequestClassification.java @@ -0,0 +1,96 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.merge.api.accounting.types; + +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.databind.DeserializationContext; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.fasterxml.jackson.databind.deser.std.StdDeserializer; +import com.merge.api.core.ObjectMappers; +import java.io.IOException; +import java.util.Objects; + +@JsonDeserialize(using = AccountRequestClassification.Deserializer.class) +public final class AccountRequestClassification { + private final Object value; + + private final int type; + + private AccountRequestClassification(Object value, int type) { + this.value = value; + this.type = type; + } + + @JsonValue + public Object get() { + return this.value; + } + + @SuppressWarnings("unchecked") + public T visit(Visitor visitor) { + if (this.type == 0) { + return visitor.visit((ClassificationEnum) this.value); + } else if (this.type == 1) { + return visitor.visit((String) this.value); + } + throw new IllegalStateException("Failed to visit value. This should never happen."); + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof AccountRequestClassification && equalTo((AccountRequestClassification) other); + } + + private boolean equalTo(AccountRequestClassification other) { + return value.equals(other.value); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.value); + } + + @java.lang.Override + public String toString() { + return this.value.toString(); + } + + public static AccountRequestClassification of(ClassificationEnum value) { + return new AccountRequestClassification(value, 0); + } + + public static AccountRequestClassification of(String value) { + return new AccountRequestClassification(value, 1); + } + + public interface Visitor { + T visit(ClassificationEnum value); + + T visit(String value); + } + + static final class Deserializer extends StdDeserializer { + Deserializer() { + super(AccountRequestClassification.class); + } + + @java.lang.Override + public AccountRequestClassification deserialize(JsonParser p, DeserializationContext context) + throws IOException { + Object value = p.readValueAs(Object.class); + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, ClassificationEnum.class)); + } catch (IllegalArgumentException e) { + } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, String.class)); + } catch (IllegalArgumentException e) { + } + throw new JsonParseException(p, "Failed to deserialize"); + } + } +} diff --git a/src/main/java/com/merge/api/accounting/types/AccountRequestCurrency.java b/src/main/java/com/merge/api/accounting/types/AccountRequestCurrency.java new file mode 100644 index 000000000..d72843bd4 --- /dev/null +++ b/src/main/java/com/merge/api/accounting/types/AccountRequestCurrency.java @@ -0,0 +1,95 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.merge.api.accounting.types; + +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.databind.DeserializationContext; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.fasterxml.jackson.databind.deser.std.StdDeserializer; +import com.merge.api.core.ObjectMappers; +import java.io.IOException; +import java.util.Objects; + +@JsonDeserialize(using = AccountRequestCurrency.Deserializer.class) +public final class AccountRequestCurrency { + private final Object value; + + private final int type; + + private AccountRequestCurrency(Object value, int type) { + this.value = value; + this.type = type; + } + + @JsonValue + public Object get() { + return this.value; + } + + @SuppressWarnings("unchecked") + public T visit(Visitor visitor) { + if (this.type == 0) { + return visitor.visit((TransactionCurrencyEnum) this.value); + } else if (this.type == 1) { + return visitor.visit((String) this.value); + } + throw new IllegalStateException("Failed to visit value. This should never happen."); + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof AccountRequestCurrency && equalTo((AccountRequestCurrency) other); + } + + private boolean equalTo(AccountRequestCurrency other) { + return value.equals(other.value); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.value); + } + + @java.lang.Override + public String toString() { + return this.value.toString(); + } + + public static AccountRequestCurrency of(TransactionCurrencyEnum value) { + return new AccountRequestCurrency(value, 0); + } + + public static AccountRequestCurrency of(String value) { + return new AccountRequestCurrency(value, 1); + } + + public interface Visitor { + T visit(TransactionCurrencyEnum value); + + T visit(String value); + } + + static final class Deserializer extends StdDeserializer { + Deserializer() { + super(AccountRequestCurrency.class); + } + + @java.lang.Override + public AccountRequestCurrency deserialize(JsonParser p, DeserializationContext context) throws IOException { + Object value = p.readValueAs(Object.class); + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, TransactionCurrencyEnum.class)); + } catch (IllegalArgumentException e) { + } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, String.class)); + } catch (IllegalArgumentException e) { + } + throw new JsonParseException(p, "Failed to deserialize"); + } + } +} diff --git a/src/main/java/com/merge/api/accounting/types/AccountRequestStatus.java b/src/main/java/com/merge/api/accounting/types/AccountRequestStatus.java new file mode 100644 index 000000000..2aedbbf80 --- /dev/null +++ b/src/main/java/com/merge/api/accounting/types/AccountRequestStatus.java @@ -0,0 +1,95 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.merge.api.accounting.types; + +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.databind.DeserializationContext; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.fasterxml.jackson.databind.deser.std.StdDeserializer; +import com.merge.api.core.ObjectMappers; +import java.io.IOException; +import java.util.Objects; + +@JsonDeserialize(using = AccountRequestStatus.Deserializer.class) +public final class AccountRequestStatus { + private final Object value; + + private final int type; + + private AccountRequestStatus(Object value, int type) { + this.value = value; + this.type = type; + } + + @JsonValue + public Object get() { + return this.value; + } + + @SuppressWarnings("unchecked") + public T visit(Visitor visitor) { + if (this.type == 0) { + return visitor.visit((AccountStatusEnum) this.value); + } else if (this.type == 1) { + return visitor.visit((String) this.value); + } + throw new IllegalStateException("Failed to visit value. This should never happen."); + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof AccountRequestStatus && equalTo((AccountRequestStatus) other); + } + + private boolean equalTo(AccountRequestStatus other) { + return value.equals(other.value); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.value); + } + + @java.lang.Override + public String toString() { + return this.value.toString(); + } + + public static AccountRequestStatus of(AccountStatusEnum value) { + return new AccountRequestStatus(value, 0); + } + + public static AccountRequestStatus of(String value) { + return new AccountRequestStatus(value, 1); + } + + public interface Visitor { + T visit(AccountStatusEnum value); + + T visit(String value); + } + + static final class Deserializer extends StdDeserializer { + Deserializer() { + super(AccountRequestStatus.class); + } + + @java.lang.Override + public AccountRequestStatus deserialize(JsonParser p, DeserializationContext context) throws IOException { + Object value = p.readValueAs(Object.class); + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, AccountStatusEnum.class)); + } catch (IllegalArgumentException e) { + } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, String.class)); + } catch (IllegalArgumentException e) { + } + throw new JsonParseException(p, "Failed to deserialize"); + } + } +} diff --git a/src/main/java/com/merge/api/accounting/types/AccountStatus.java b/src/main/java/com/merge/api/accounting/types/AccountStatus.java new file mode 100644 index 000000000..c779e73d1 --- /dev/null +++ b/src/main/java/com/merge/api/accounting/types/AccountStatus.java @@ -0,0 +1,95 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.merge.api.accounting.types; + +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.databind.DeserializationContext; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.fasterxml.jackson.databind.deser.std.StdDeserializer; +import com.merge.api.core.ObjectMappers; +import java.io.IOException; +import java.util.Objects; + +@JsonDeserialize(using = AccountStatus.Deserializer.class) +public final class AccountStatus { + private final Object value; + + private final int type; + + private AccountStatus(Object value, int type) { + this.value = value; + this.type = type; + } + + @JsonValue + public Object get() { + return this.value; + } + + @SuppressWarnings("unchecked") + public T visit(Visitor visitor) { + if (this.type == 0) { + return visitor.visit((AccountStatusEnum) this.value); + } else if (this.type == 1) { + return visitor.visit((String) this.value); + } + throw new IllegalStateException("Failed to visit value. This should never happen."); + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof AccountStatus && equalTo((AccountStatus) other); + } + + private boolean equalTo(AccountStatus other) { + return value.equals(other.value); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.value); + } + + @java.lang.Override + public String toString() { + return this.value.toString(); + } + + public static AccountStatus of(AccountStatusEnum value) { + return new AccountStatus(value, 0); + } + + public static AccountStatus of(String value) { + return new AccountStatus(value, 1); + } + + public interface Visitor { + T visit(AccountStatusEnum value); + + T visit(String value); + } + + static final class Deserializer extends StdDeserializer { + Deserializer() { + super(AccountStatus.class); + } + + @java.lang.Override + public AccountStatus deserialize(JsonParser p, DeserializationContext context) throws IOException { + Object value = p.readValueAs(Object.class); + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, AccountStatusEnum.class)); + } catch (IllegalArgumentException e) { + } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, String.class)); + } catch (IllegalArgumentException e) { + } + throw new JsonParseException(p, "Failed to deserialize"); + } + } +} diff --git a/src/main/java/com/merge/api/accounting/types/AccountingAttachment.java b/src/main/java/com/merge/api/accounting/types/AccountingAttachment.java index 1f91d6e7b..42d25d61b 100644 --- a/src/main/java/com/merge/api/accounting/types/AccountingAttachment.java +++ b/src/main/java/com/merge/api/accounting/types/AccountingAttachment.java @@ -241,6 +241,9 @@ public Builder id(String id) { return this; } + /** + *

The third-party API ID of the matching object.

+ */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; @@ -252,6 +255,9 @@ public Builder remoteId(String remoteId) { return this; } + /** + *

The datetime that this object was created by Merge.

+ */ @JsonSetter(value = "created_at", nulls = Nulls.SKIP) public Builder createdAt(Optional createdAt) { this.createdAt = createdAt; @@ -263,6 +269,9 @@ public Builder createdAt(OffsetDateTime createdAt) { return this; } + /** + *

The datetime that this object was modified by Merge.

+ */ @JsonSetter(value = "modified_at", nulls = Nulls.SKIP) public Builder modifiedAt(Optional modifiedAt) { this.modifiedAt = modifiedAt; @@ -274,6 +283,9 @@ public Builder modifiedAt(OffsetDateTime modifiedAt) { return this; } + /** + *

The attachment's name.

+ */ @JsonSetter(value = "file_name", nulls = Nulls.SKIP) public Builder fileName(Optional fileName) { this.fileName = fileName; @@ -285,6 +297,9 @@ public Builder fileName(String fileName) { return this; } + /** + *

The attachment's url.

+ */ @JsonSetter(value = "file_url", nulls = Nulls.SKIP) public Builder fileUrl(Optional fileUrl) { this.fileUrl = fileUrl; @@ -296,6 +311,9 @@ public Builder fileUrl(String fileUrl) { return this; } + /** + *

The company the accounting attachment belongs to.

+ */ @JsonSetter(value = "company", nulls = Nulls.SKIP) public Builder company(Optional company) { this.company = company; @@ -307,6 +325,9 @@ public Builder company(String company) { return this; } + /** + *

Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

+ */ @JsonSetter(value = "remote_was_deleted", nulls = Nulls.SKIP) public Builder remoteWasDeleted(Optional remoteWasDeleted) { this.remoteWasDeleted = remoteWasDeleted; diff --git a/src/main/java/com/merge/api/accounting/types/AccountingAttachmentEndpointRequest.java b/src/main/java/com/merge/api/accounting/types/AccountingAttachmentEndpointRequest.java index a39abbd05..95e2e7bdf 100644 --- a/src/main/java/com/merge/api/accounting/types/AccountingAttachmentEndpointRequest.java +++ b/src/main/java/com/merge/api/accounting/types/AccountingAttachmentEndpointRequest.java @@ -100,10 +100,16 @@ public interface ModelStage { public interface _FinalStage { AccountingAttachmentEndpointRequest build(); + /** + *

Whether to include debug fields (such as log file links) in the response.

+ */ _FinalStage isDebugMode(Optional isDebugMode); _FinalStage isDebugMode(Boolean isDebugMode); + /** + *

Whether or not third-party updates should be run asynchronously.

+ */ _FinalStage runAsync(Optional runAsync); _FinalStage runAsync(Boolean runAsync); @@ -147,6 +153,9 @@ public _FinalStage runAsync(Boolean runAsync) { return this; } + /** + *

Whether or not third-party updates should be run asynchronously.

+ */ @java.lang.Override @JsonSetter(value = "run_async", nulls = Nulls.SKIP) public _FinalStage runAsync(Optional runAsync) { @@ -164,6 +173,9 @@ public _FinalStage isDebugMode(Boolean isDebugMode) { return this; } + /** + *

Whether to include debug fields (such as log file links) in the response.

+ */ @java.lang.Override @JsonSetter(value = "is_debug_mode", nulls = Nulls.SKIP) public _FinalStage isDebugMode(Optional isDebugMode) { diff --git a/src/main/java/com/merge/api/accounting/types/AccountingAttachmentRequest.java b/src/main/java/com/merge/api/accounting/types/AccountingAttachmentRequest.java index 2a5cf4d2f..e29e73ef6 100644 --- a/src/main/java/com/merge/api/accounting/types/AccountingAttachmentRequest.java +++ b/src/main/java/com/merge/api/accounting/types/AccountingAttachmentRequest.java @@ -142,6 +142,9 @@ public Builder from(AccountingAttachmentRequest other) { return this; } + /** + *

The attachment's name.

+ */ @JsonSetter(value = "file_name", nulls = Nulls.SKIP) public Builder fileName(Optional fileName) { this.fileName = fileName; @@ -153,6 +156,9 @@ public Builder fileName(String fileName) { return this; } + /** + *

The attachment's url.

+ */ @JsonSetter(value = "file_url", nulls = Nulls.SKIP) public Builder fileUrl(Optional fileUrl) { this.fileUrl = fileUrl; @@ -164,6 +170,9 @@ public Builder fileUrl(String fileUrl) { return this; } + /** + *

The company the accounting attachment belongs to.

+ */ @JsonSetter(value = "company", nulls = Nulls.SKIP) public Builder company(Optional company) { this.company = company; diff --git a/src/main/java/com/merge/api/accounting/types/AccountingPeriod.java b/src/main/java/com/merge/api/accounting/types/AccountingPeriod.java index 5b4e836fe..e8e1c31a3 100644 --- a/src/main/java/com/merge/api/accounting/types/AccountingPeriod.java +++ b/src/main/java/com/merge/api/accounting/types/AccountingPeriod.java @@ -33,7 +33,7 @@ public final class AccountingPeriod { private final Optional name; - private final Optional status; + private final Optional status; private final Optional startDate; @@ -51,7 +51,7 @@ private AccountingPeriod( Optional createdAt, Optional modifiedAt, Optional name, - Optional status, + Optional status, Optional startDate, Optional endDate, Optional> fieldMappings, @@ -108,7 +108,7 @@ public Optional getName() { } @JsonProperty("status") - public Optional getStatus() { + public Optional getStatus() { return status; } @@ -198,7 +198,7 @@ public static final class Builder { private Optional name = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Optional startDate = Optional.empty(); @@ -238,6 +238,9 @@ public Builder id(String id) { return this; } + /** + *

The third-party API ID of the matching object.

+ */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; @@ -249,6 +252,9 @@ public Builder remoteId(String remoteId) { return this; } + /** + *

The datetime that this object was created by Merge.

+ */ @JsonSetter(value = "created_at", nulls = Nulls.SKIP) public Builder createdAt(Optional createdAt) { this.createdAt = createdAt; @@ -260,6 +266,9 @@ public Builder createdAt(OffsetDateTime createdAt) { return this; } + /** + *

The datetime that this object was modified by Merge.

+ */ @JsonSetter(value = "modified_at", nulls = Nulls.SKIP) public Builder modifiedAt(Optional modifiedAt) { this.modifiedAt = modifiedAt; @@ -271,6 +280,9 @@ public Builder modifiedAt(OffsetDateTime modifiedAt) { return this; } + /** + *

Name of the accounting period.

+ */ @JsonSetter(value = "name", nulls = Nulls.SKIP) public Builder name(Optional name) { this.name = name; @@ -283,16 +295,19 @@ public Builder name(String name) { } @JsonSetter(value = "status", nulls = Nulls.SKIP) - public Builder status(Optional status) { + public Builder status(Optional status) { this.status = status; return this; } - public Builder status(Status895Enum status) { + public Builder status(AccountingPeriodStatus status) { this.status = Optional.ofNullable(status); return this; } + /** + *

Beginning date of the period

+ */ @JsonSetter(value = "start_date", nulls = Nulls.SKIP) public Builder startDate(Optional startDate) { this.startDate = startDate; @@ -304,6 +319,9 @@ public Builder startDate(OffsetDateTime startDate) { return this; } + /** + *

End date of the period

+ */ @JsonSetter(value = "end_date", nulls = Nulls.SKIP) public Builder endDate(Optional endDate) { this.endDate = endDate; diff --git a/src/main/java/com/merge/api/accounting/types/AccountingPeriodStatus.java b/src/main/java/com/merge/api/accounting/types/AccountingPeriodStatus.java new file mode 100644 index 000000000..b3c5e49a1 --- /dev/null +++ b/src/main/java/com/merge/api/accounting/types/AccountingPeriodStatus.java @@ -0,0 +1,95 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.merge.api.accounting.types; + +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.databind.DeserializationContext; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.fasterxml.jackson.databind.deser.std.StdDeserializer; +import com.merge.api.core.ObjectMappers; +import java.io.IOException; +import java.util.Objects; + +@JsonDeserialize(using = AccountingPeriodStatus.Deserializer.class) +public final class AccountingPeriodStatus { + private final Object value; + + private final int type; + + private AccountingPeriodStatus(Object value, int type) { + this.value = value; + this.type = type; + } + + @JsonValue + public Object get() { + return this.value; + } + + @SuppressWarnings("unchecked") + public T visit(Visitor visitor) { + if (this.type == 0) { + return visitor.visit((Status895Enum) this.value); + } else if (this.type == 1) { + return visitor.visit((String) this.value); + } + throw new IllegalStateException("Failed to visit value. This should never happen."); + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof AccountingPeriodStatus && equalTo((AccountingPeriodStatus) other); + } + + private boolean equalTo(AccountingPeriodStatus other) { + return value.equals(other.value); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.value); + } + + @java.lang.Override + public String toString() { + return this.value.toString(); + } + + public static AccountingPeriodStatus of(Status895Enum value) { + return new AccountingPeriodStatus(value, 0); + } + + public static AccountingPeriodStatus of(String value) { + return new AccountingPeriodStatus(value, 1); + } + + public interface Visitor { + T visit(Status895Enum value); + + T visit(String value); + } + + static final class Deserializer extends StdDeserializer { + Deserializer() { + super(AccountingPeriodStatus.class); + } + + @java.lang.Override + public AccountingPeriodStatus deserialize(JsonParser p, DeserializationContext context) throws IOException { + Object value = p.readValueAs(Object.class); + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, Status895Enum.class)); + } catch (IllegalArgumentException e) { + } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, String.class)); + } catch (IllegalArgumentException e) { + } + throw new JsonParseException(p, "Failed to deserialize"); + } + } +} diff --git a/src/main/java/com/merge/api/accounting/types/AccountingPeriodsListRequest.java b/src/main/java/com/merge/api/accounting/types/AccountingPeriodsListRequest.java index 5030612c7..301bc79a6 100644 --- a/src/main/java/com/merge/api/accounting/types/AccountingPeriodsListRequest.java +++ b/src/main/java/com/merge/api/accounting/types/AccountingPeriodsListRequest.java @@ -147,6 +147,9 @@ public Builder from(AccountingPeriodsListRequest other) { return this; } + /** + *

The pagination cursor value.

+ */ @JsonSetter(value = "cursor", nulls = Nulls.SKIP) public Builder cursor(Optional cursor) { this.cursor = cursor; @@ -158,6 +161,9 @@ public Builder cursor(String cursor) { return this; } + /** + *

Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

+ */ @JsonSetter(value = "include_deleted_data", nulls = Nulls.SKIP) public Builder includeDeletedData(Optional includeDeletedData) { this.includeDeletedData = includeDeletedData; @@ -169,6 +175,9 @@ public Builder includeDeletedData(Boolean includeDeletedData) { return this; } + /** + *

Whether to include the original data Merge fetched from the third-party to produce these models.

+ */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -180,6 +189,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

+ */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; @@ -191,6 +203,9 @@ public Builder includeShellData(Boolean includeShellData) { return this; } + /** + *

Number of results to return per page.

+ */ @JsonSetter(value = "page_size", nulls = Nulls.SKIP) public Builder pageSize(Optional pageSize) { this.pageSize = pageSize; diff --git a/src/main/java/com/merge/api/accounting/types/AccountingPeriodsRetrieveRequest.java b/src/main/java/com/merge/api/accounting/types/AccountingPeriodsRetrieveRequest.java index 040d3aeff..69732d855 100644 --- a/src/main/java/com/merge/api/accounting/types/AccountingPeriodsRetrieveRequest.java +++ b/src/main/java/com/merge/api/accounting/types/AccountingPeriodsRetrieveRequest.java @@ -97,6 +97,9 @@ public Builder from(AccountingPeriodsRetrieveRequest other) { return this; } + /** + *

Whether to include the original data Merge fetched from the third-party to produce these models.

+ */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -108,6 +111,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

+ */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; diff --git a/src/main/java/com/merge/api/accounting/types/AccountingPhoneNumber.java b/src/main/java/com/merge/api/accounting/types/AccountingPhoneNumber.java index c6239368b..ff074e44c 100644 --- a/src/main/java/com/merge/api/accounting/types/AccountingPhoneNumber.java +++ b/src/main/java/com/merge/api/accounting/types/AccountingPhoneNumber.java @@ -131,6 +131,9 @@ public Builder from(AccountingPhoneNumber other) { return this; } + /** + *

The datetime that this object was created by Merge.

+ */ @JsonSetter(value = "created_at", nulls = Nulls.SKIP) public Builder createdAt(Optional createdAt) { this.createdAt = createdAt; @@ -142,6 +145,9 @@ public Builder createdAt(OffsetDateTime createdAt) { return this; } + /** + *

The datetime that this object was modified by Merge.

+ */ @JsonSetter(value = "modified_at", nulls = Nulls.SKIP) public Builder modifiedAt(Optional modifiedAt) { this.modifiedAt = modifiedAt; @@ -153,6 +159,9 @@ public Builder modifiedAt(OffsetDateTime modifiedAt) { return this; } + /** + *

The phone number.

+ */ @JsonSetter(value = "number", nulls = Nulls.SKIP) public Builder number(Optional number) { this.number = number; @@ -164,6 +173,9 @@ public Builder number(String number) { return this; } + /** + *

The phone number's type.

+ */ @JsonSetter(value = "type", nulls = Nulls.SKIP) public Builder type(Optional type) { this.type = type; diff --git a/src/main/java/com/merge/api/accounting/types/AccountingPhoneNumberRequest.java b/src/main/java/com/merge/api/accounting/types/AccountingPhoneNumberRequest.java index 864b4366d..556ba145f 100644 --- a/src/main/java/com/merge/api/accounting/types/AccountingPhoneNumberRequest.java +++ b/src/main/java/com/merge/api/accounting/types/AccountingPhoneNumberRequest.java @@ -125,6 +125,9 @@ public Builder from(AccountingPhoneNumberRequest other) { return this; } + /** + *

The phone number.

+ */ @JsonSetter(value = "number", nulls = Nulls.SKIP) public Builder number(Optional number) { this.number = number; @@ -136,6 +139,9 @@ public Builder number(String number) { return this; } + /** + *

The phone number's type.

+ */ @JsonSetter(value = "type", nulls = Nulls.SKIP) public Builder type(Optional type) { this.type = type; diff --git a/src/main/java/com/merge/api/accounting/types/AccountsListRequest.java b/src/main/java/com/merge/api/accounting/types/AccountsListRequest.java index cabe8ca0e..a3e72930f 100644 --- a/src/main/java/com/merge/api/accounting/types/AccountsListRequest.java +++ b/src/main/java/com/merge/api/accounting/types/AccountsListRequest.java @@ -27,6 +27,8 @@ public final class AccountsListRequest { private final Optional accountType; + private final Optional classification; + private final Optional companyId; private final Optional createdAfter; @@ -62,6 +64,7 @@ public final class AccountsListRequest { private AccountsListRequest( Optional> expand, Optional accountType, + Optional classification, Optional companyId, Optional createdAfter, Optional createdBefore, @@ -80,6 +83,7 @@ private AccountsListRequest( Map additionalProperties) { this.expand = expand; this.accountType = accountType; + this.classification = classification; this.companyId = companyId; this.createdAfter = createdAfter; this.createdBefore = createdBefore; @@ -107,13 +111,21 @@ public Optional> getExpand() { } /** - * @return If provided, will only provide accounts with the passed in enum. + * @return If provided, will only return accounts with the passed in enum. */ @JsonProperty("account_type") public Optional getAccountType() { return accountType; } + /** + * @return If provided, will only return accounts with this classification. + */ + @JsonProperty("classification") + public Optional getClassification() { + return classification; + } + /** * @return If provided, will only return accounts for this company. */ @@ -248,6 +260,7 @@ public Map getAdditionalProperties() { private boolean equalTo(AccountsListRequest other) { return expand.equals(other.expand) && accountType.equals(other.accountType) + && classification.equals(other.classification) && companyId.equals(other.companyId) && createdAfter.equals(other.createdAfter) && createdBefore.equals(other.createdBefore) @@ -270,6 +283,7 @@ public int hashCode() { return Objects.hash( this.expand, this.accountType, + this.classification, this.companyId, this.createdAfter, this.createdBefore, @@ -302,6 +316,8 @@ public static final class Builder { private Optional accountType = Optional.empty(); + private Optional classification = Optional.empty(); + private Optional companyId = Optional.empty(); private Optional createdAfter = Optional.empty(); @@ -340,6 +356,7 @@ private Builder() {} public Builder from(AccountsListRequest other) { expand(other.getExpand()); accountType(other.getAccountType()); + classification(other.getClassification()); companyId(other.getCompanyId()); createdAfter(other.getCreatedAfter()); createdBefore(other.getCreatedBefore()); @@ -358,6 +375,9 @@ public Builder from(AccountsListRequest other) { return this; } + /** + *

Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.

+ */ @JsonSetter(value = "expand", nulls = Nulls.SKIP) public Builder expand(Optional> expand) { this.expand = expand; @@ -374,6 +394,9 @@ public Builder expand(String expand) { return this; } + /** + *

If provided, will only return accounts with the passed in enum.

+ */ @JsonSetter(value = "account_type", nulls = Nulls.SKIP) public Builder accountType(Optional accountType) { this.accountType = accountType; @@ -385,6 +408,23 @@ public Builder accountType(String accountType) { return this; } + /** + *

If provided, will only return accounts with this classification.

+ */ + @JsonSetter(value = "classification", nulls = Nulls.SKIP) + public Builder classification(Optional classification) { + this.classification = classification; + return this; + } + + public Builder classification(String classification) { + this.classification = Optional.ofNullable(classification); + return this; + } + + /** + *

If provided, will only return accounts for this company.

+ */ @JsonSetter(value = "company_id", nulls = Nulls.SKIP) public Builder companyId(Optional companyId) { this.companyId = companyId; @@ -396,6 +436,9 @@ public Builder companyId(String companyId) { return this; } + /** + *

If provided, will only return objects created after this datetime.

+ */ @JsonSetter(value = "created_after", nulls = Nulls.SKIP) public Builder createdAfter(Optional createdAfter) { this.createdAfter = createdAfter; @@ -407,6 +450,9 @@ public Builder createdAfter(OffsetDateTime createdAfter) { return this; } + /** + *

If provided, will only return objects created before this datetime.

+ */ @JsonSetter(value = "created_before", nulls = Nulls.SKIP) public Builder createdBefore(Optional createdBefore) { this.createdBefore = createdBefore; @@ -418,6 +464,9 @@ public Builder createdBefore(OffsetDateTime createdBefore) { return this; } + /** + *

The pagination cursor value.

+ */ @JsonSetter(value = "cursor", nulls = Nulls.SKIP) public Builder cursor(Optional cursor) { this.cursor = cursor; @@ -429,6 +478,9 @@ public Builder cursor(String cursor) { return this; } + /** + *

Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

+ */ @JsonSetter(value = "include_deleted_data", nulls = Nulls.SKIP) public Builder includeDeletedData(Optional includeDeletedData) { this.includeDeletedData = includeDeletedData; @@ -440,6 +492,9 @@ public Builder includeDeletedData(Boolean includeDeletedData) { return this; } + /** + *

Whether to include the original data Merge fetched from the third-party to produce these models.

+ */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -451,6 +506,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

+ */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; @@ -462,6 +520,9 @@ public Builder includeShellData(Boolean includeShellData) { return this; } + /** + *

If provided, only objects synced by Merge after this date time will be returned.

+ */ @JsonSetter(value = "modified_after", nulls = Nulls.SKIP) public Builder modifiedAfter(Optional modifiedAfter) { this.modifiedAfter = modifiedAfter; @@ -473,6 +534,9 @@ public Builder modifiedAfter(OffsetDateTime modifiedAfter) { return this; } + /** + *

If provided, only objects synced by Merge before this date time will be returned.

+ */ @JsonSetter(value = "modified_before", nulls = Nulls.SKIP) public Builder modifiedBefore(Optional modifiedBefore) { this.modifiedBefore = modifiedBefore; @@ -484,6 +548,9 @@ public Builder modifiedBefore(OffsetDateTime modifiedBefore) { return this; } + /** + *

If provided, will only return Accounts with this name.

+ */ @JsonSetter(value = "name", nulls = Nulls.SKIP) public Builder name(Optional name) { this.name = name; @@ -495,6 +562,9 @@ public Builder name(String name) { return this; } + /** + *

Number of results to return per page.

+ */ @JsonSetter(value = "page_size", nulls = Nulls.SKIP) public Builder pageSize(Optional pageSize) { this.pageSize = pageSize; @@ -506,6 +576,9 @@ public Builder pageSize(Integer pageSize) { return this; } + /** + *

Deprecated. Use show_enum_origins.

+ */ @JsonSetter(value = "remote_fields", nulls = Nulls.SKIP) public Builder remoteFields(Optional remoteFields) { this.remoteFields = remoteFields; @@ -517,6 +590,9 @@ public Builder remoteFields(AccountsListRequestRemoteFields remoteFields) { return this; } + /** + *

The API provider's ID for the given object.

+ */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; @@ -528,6 +604,9 @@ public Builder remoteId(String remoteId) { return this; } + /** + *

A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. Learn more

+ */ @JsonSetter(value = "show_enum_origins", nulls = Nulls.SKIP) public Builder showEnumOrigins(Optional showEnumOrigins) { this.showEnumOrigins = showEnumOrigins; @@ -539,6 +618,9 @@ public Builder showEnumOrigins(AccountsListRequestShowEnumOrigins showEnumOrigin return this; } + /** + *

If provided, will only return accounts with this status.

+ */ @JsonSetter(value = "status", nulls = Nulls.SKIP) public Builder status(Optional status) { this.status = status; @@ -554,6 +636,7 @@ public AccountsListRequest build() { return new AccountsListRequest( expand, accountType, + classification, companyId, createdAfter, createdBefore, diff --git a/src/main/java/com/merge/api/accounting/types/AccountsRetrieveRequest.java b/src/main/java/com/merge/api/accounting/types/AccountsRetrieveRequest.java index d8afe945b..f8798c8a4 100644 --- a/src/main/java/com/merge/api/accounting/types/AccountsRetrieveRequest.java +++ b/src/main/java/com/merge/api/accounting/types/AccountsRetrieveRequest.java @@ -149,6 +149,9 @@ public Builder from(AccountsRetrieveRequest other) { return this; } + /** + *

Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.

+ */ @JsonSetter(value = "expand", nulls = Nulls.SKIP) public Builder expand(Optional> expand) { this.expand = expand; @@ -165,6 +168,9 @@ public Builder expand(String expand) { return this; } + /** + *

Whether to include the original data Merge fetched from the third-party to produce these models.

+ */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -176,6 +182,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

+ */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; @@ -187,6 +196,9 @@ public Builder includeShellData(Boolean includeShellData) { return this; } + /** + *

Deprecated. Use show_enum_origins.

+ */ @JsonSetter(value = "remote_fields", nulls = Nulls.SKIP) public Builder remoteFields(Optional remoteFields) { this.remoteFields = remoteFields; @@ -198,6 +210,9 @@ public Builder remoteFields(AccountsRetrieveRequestRemoteFields remoteFields) { return this; } + /** + *

A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. Learn more

+ */ @JsonSetter(value = "show_enum_origins", nulls = Nulls.SKIP) public Builder showEnumOrigins(Optional showEnumOrigins) { this.showEnumOrigins = showEnumOrigins; diff --git a/src/main/java/com/merge/api/accounting/types/Address.java b/src/main/java/com/merge/api/accounting/types/Address.java index 083ea9e0b..f8e223c47 100644 --- a/src/main/java/com/merge/api/accounting/types/Address.java +++ b/src/main/java/com/merge/api/accounting/types/Address.java @@ -26,7 +26,7 @@ public final class Address { private final Optional modifiedAt; - private final Optional type; + private final Optional type; private final Optional street1; @@ -38,7 +38,7 @@ public final class Address { private final Optional countrySubdivision; - private final Optional country; + private final Optional country; private final Optional zipCode; @@ -47,13 +47,13 @@ public final class Address { private Address( Optional createdAt, Optional modifiedAt, - Optional type, + Optional type, Optional street1, Optional street2, Optional city, Optional state, Optional countrySubdivision, - Optional country, + Optional country, Optional zipCode, Map additionalProperties) { this.createdAt = createdAt; @@ -93,7 +93,7 @@ public Optional getModifiedAt() { * */ @JsonProperty("type") - public Optional getType() { + public Optional getType() { return type; } @@ -389,7 +389,7 @@ public Optional getCountrySubdivision() { * */ @JsonProperty("country") - public Optional getCountry() { + public Optional getCountry() { return country; } @@ -455,7 +455,7 @@ public static final class Builder { private Optional modifiedAt = Optional.empty(); - private Optional type = Optional.empty(); + private Optional type = Optional.empty(); private Optional street1 = Optional.empty(); @@ -467,7 +467,7 @@ public static final class Builder { private Optional countrySubdivision = Optional.empty(); - private Optional country = Optional.empty(); + private Optional country = Optional.empty(); private Optional zipCode = Optional.empty(); @@ -490,6 +490,9 @@ public Builder from(Address other) { return this; } + /** + *

The datetime that this object was created by Merge.

+ */ @JsonSetter(value = "created_at", nulls = Nulls.SKIP) public Builder createdAt(Optional createdAt) { this.createdAt = createdAt; @@ -501,6 +504,9 @@ public Builder createdAt(OffsetDateTime createdAt) { return this; } + /** + *

The datetime that this object was modified by Merge.

+ */ @JsonSetter(value = "modified_at", nulls = Nulls.SKIP) public Builder modifiedAt(Optional modifiedAt) { this.modifiedAt = modifiedAt; @@ -512,17 +518,27 @@ public Builder modifiedAt(OffsetDateTime modifiedAt) { return this; } + /** + *

The address type.

+ *
    + *
  • BILLING - BILLING
  • + *
  • SHIPPING - SHIPPING
  • + *
+ */ @JsonSetter(value = "type", nulls = Nulls.SKIP) - public Builder type(Optional type) { + public Builder type(Optional type) { this.type = type; return this; } - public Builder type(AddressTypeEnum type) { + public Builder type(AddressType type) { this.type = Optional.ofNullable(type); return this; } + /** + *

Line 1 of the address's street.

+ */ @JsonSetter(value = "street_1", nulls = Nulls.SKIP) public Builder street1(Optional street1) { this.street1 = street1; @@ -534,6 +550,9 @@ public Builder street1(String street1) { return this; } + /** + *

Line 2 of the address's street.

+ */ @JsonSetter(value = "street_2", nulls = Nulls.SKIP) public Builder street2(Optional street2) { this.street2 = street2; @@ -545,6 +564,9 @@ public Builder street2(String street2) { return this; } + /** + *

The address's city.

+ */ @JsonSetter(value = "city", nulls = Nulls.SKIP) public Builder city(Optional city) { this.city = city; @@ -567,6 +589,9 @@ public Builder state(JsonNode state) { return this; } + /** + *

The address's state or region.

+ */ @JsonSetter(value = "country_subdivision", nulls = Nulls.SKIP) public Builder countrySubdivision(Optional countrySubdivision) { this.countrySubdivision = countrySubdivision; @@ -578,17 +603,274 @@ public Builder countrySubdivision(String countrySubdivision) { return this; } + /** + *

The address's country.

+ *
    + *
  • AF - Afghanistan
  • + *
  • AX - Åland Islands
  • + *
  • AL - Albania
  • + *
  • DZ - Algeria
  • + *
  • AS - American Samoa
  • + *
  • AD - Andorra
  • + *
  • AO - Angola
  • + *
  • AI - Anguilla
  • + *
  • AQ - Antarctica
  • + *
  • AG - Antigua and Barbuda
  • + *
  • AR - Argentina
  • + *
  • AM - Armenia
  • + *
  • AW - Aruba
  • + *
  • AU - Australia
  • + *
  • AT - Austria
  • + *
  • AZ - Azerbaijan
  • + *
  • BS - Bahamas
  • + *
  • BH - Bahrain
  • + *
  • BD - Bangladesh
  • + *
  • BB - Barbados
  • + *
  • BY - Belarus
  • + *
  • BE - Belgium
  • + *
  • BZ - Belize
  • + *
  • BJ - Benin
  • + *
  • BM - Bermuda
  • + *
  • BT - Bhutan
  • + *
  • BO - Bolivia
  • + *
  • BQ - Bonaire, Sint Eustatius and Saba
  • + *
  • BA - Bosnia and Herzegovina
  • + *
  • BW - Botswana
  • + *
  • BV - Bouvet Island
  • + *
  • BR - Brazil
  • + *
  • IO - British Indian Ocean Territory
  • + *
  • BN - Brunei
  • + *
  • BG - Bulgaria
  • + *
  • BF - Burkina Faso
  • + *
  • BI - Burundi
  • + *
  • CV - Cabo Verde
  • + *
  • KH - Cambodia
  • + *
  • CM - Cameroon
  • + *
  • CA - Canada
  • + *
  • KY - Cayman Islands
  • + *
  • CF - Central African Republic
  • + *
  • TD - Chad
  • + *
  • CL - Chile
  • + *
  • CN - China
  • + *
  • CX - Christmas Island
  • + *
  • CC - Cocos (Keeling) Islands
  • + *
  • CO - Colombia
  • + *
  • KM - Comoros
  • + *
  • CG - Congo
  • + *
  • CD - Congo (the Democratic Republic of the)
  • + *
  • CK - Cook Islands
  • + *
  • CR - Costa Rica
  • + *
  • CI - Côte d'Ivoire
  • + *
  • HR - Croatia
  • + *
  • CU - Cuba
  • + *
  • CW - Curaçao
  • + *
  • CY - Cyprus
  • + *
  • CZ - Czechia
  • + *
  • DK - Denmark
  • + *
  • DJ - Djibouti
  • + *
  • DM - Dominica
  • + *
  • DO - Dominican Republic
  • + *
  • EC - Ecuador
  • + *
  • EG - Egypt
  • + *
  • SV - El Salvador
  • + *
  • GQ - Equatorial Guinea
  • + *
  • ER - Eritrea
  • + *
  • EE - Estonia
  • + *
  • SZ - Eswatini
  • + *
  • ET - Ethiopia
  • + *
  • FK - Falkland Islands (Malvinas)
  • + *
  • FO - Faroe Islands
  • + *
  • FJ - Fiji
  • + *
  • FI - Finland
  • + *
  • FR - France
  • + *
  • GF - French Guiana
  • + *
  • PF - French Polynesia
  • + *
  • TF - French Southern Territories
  • + *
  • GA - Gabon
  • + *
  • GM - Gambia
  • + *
  • GE - Georgia
  • + *
  • DE - Germany
  • + *
  • GH - Ghana
  • + *
  • GI - Gibraltar
  • + *
  • GR - Greece
  • + *
  • GL - Greenland
  • + *
  • GD - Grenada
  • + *
  • GP - Guadeloupe
  • + *
  • GU - Guam
  • + *
  • GT - Guatemala
  • + *
  • GG - Guernsey
  • + *
  • GN - Guinea
  • + *
  • GW - Guinea-Bissau
  • + *
  • GY - Guyana
  • + *
  • HT - Haiti
  • + *
  • HM - Heard Island and McDonald Islands
  • + *
  • VA - Holy See
  • + *
  • HN - Honduras
  • + *
  • HK - Hong Kong
  • + *
  • HU - Hungary
  • + *
  • IS - Iceland
  • + *
  • IN - India
  • + *
  • ID - Indonesia
  • + *
  • IR - Iran
  • + *
  • IQ - Iraq
  • + *
  • IE - Ireland
  • + *
  • IM - Isle of Man
  • + *
  • IL - Israel
  • + *
  • IT - Italy
  • + *
  • JM - Jamaica
  • + *
  • JP - Japan
  • + *
  • JE - Jersey
  • + *
  • JO - Jordan
  • + *
  • KZ - Kazakhstan
  • + *
  • KE - Kenya
  • + *
  • KI - Kiribati
  • + *
  • KW - Kuwait
  • + *
  • KG - Kyrgyzstan
  • + *
  • LA - Laos
  • + *
  • LV - Latvia
  • + *
  • LB - Lebanon
  • + *
  • LS - Lesotho
  • + *
  • LR - Liberia
  • + *
  • LY - Libya
  • + *
  • LI - Liechtenstein
  • + *
  • LT - Lithuania
  • + *
  • LU - Luxembourg
  • + *
  • MO - Macao
  • + *
  • MG - Madagascar
  • + *
  • MW - Malawi
  • + *
  • MY - Malaysia
  • + *
  • MV - Maldives
  • + *
  • ML - Mali
  • + *
  • MT - Malta
  • + *
  • MH - Marshall Islands
  • + *
  • MQ - Martinique
  • + *
  • MR - Mauritania
  • + *
  • MU - Mauritius
  • + *
  • YT - Mayotte
  • + *
  • MX - Mexico
  • + *
  • FM - Micronesia (Federated States of)
  • + *
  • MD - Moldova
  • + *
  • MC - Monaco
  • + *
  • MN - Mongolia
  • + *
  • ME - Montenegro
  • + *
  • MS - Montserrat
  • + *
  • MA - Morocco
  • + *
  • MZ - Mozambique
  • + *
  • MM - Myanmar
  • + *
  • NA - Namibia
  • + *
  • NR - Nauru
  • + *
  • NP - Nepal
  • + *
  • NL - Netherlands
  • + *
  • NC - New Caledonia
  • + *
  • NZ - New Zealand
  • + *
  • NI - Nicaragua
  • + *
  • NE - Niger
  • + *
  • NG - Nigeria
  • + *
  • NU - Niue
  • + *
  • NF - Norfolk Island
  • + *
  • KP - North Korea
  • + *
  • MK - North Macedonia
  • + *
  • MP - Northern Mariana Islands
  • + *
  • NO - Norway
  • + *
  • OM - Oman
  • + *
  • PK - Pakistan
  • + *
  • PW - Palau
  • + *
  • PS - Palestine, State of
  • + *
  • PA - Panama
  • + *
  • PG - Papua New Guinea
  • + *
  • PY - Paraguay
  • + *
  • PE - Peru
  • + *
  • PH - Philippines
  • + *
  • PN - Pitcairn
  • + *
  • PL - Poland
  • + *
  • PT - Portugal
  • + *
  • PR - Puerto Rico
  • + *
  • QA - Qatar
  • + *
  • RE - Réunion
  • + *
  • RO - Romania
  • + *
  • RU - Russia
  • + *
  • RW - Rwanda
  • + *
  • BL - Saint Barthélemy
  • + *
  • SH - Saint Helena, Ascension and Tristan da Cunha
  • + *
  • KN - Saint Kitts and Nevis
  • + *
  • LC - Saint Lucia
  • + *
  • MF - Saint Martin (French part)
  • + *
  • PM - Saint Pierre and Miquelon
  • + *
  • VC - Saint Vincent and the Grenadines
  • + *
  • WS - Samoa
  • + *
  • SM - San Marino
  • + *
  • ST - Sao Tome and Principe
  • + *
  • SA - Saudi Arabia
  • + *
  • SN - Senegal
  • + *
  • RS - Serbia
  • + *
  • SC - Seychelles
  • + *
  • SL - Sierra Leone
  • + *
  • SG - Singapore
  • + *
  • SX - Sint Maarten (Dutch part)
  • + *
  • SK - Slovakia
  • + *
  • SI - Slovenia
  • + *
  • SB - Solomon Islands
  • + *
  • SO - Somalia
  • + *
  • ZA - South Africa
  • + *
  • GS - South Georgia and the South Sandwich Islands
  • + *
  • KR - South Korea
  • + *
  • SS - South Sudan
  • + *
  • ES - Spain
  • + *
  • LK - Sri Lanka
  • + *
  • SD - Sudan
  • + *
  • SR - Suriname
  • + *
  • SJ - Svalbard and Jan Mayen
  • + *
  • SE - Sweden
  • + *
  • CH - Switzerland
  • + *
  • SY - Syria
  • + *
  • TW - Taiwan
  • + *
  • TJ - Tajikistan
  • + *
  • TZ - Tanzania
  • + *
  • TH - Thailand
  • + *
  • TL - Timor-Leste
  • + *
  • TG - Togo
  • + *
  • TK - Tokelau
  • + *
  • TO - Tonga
  • + *
  • TT - Trinidad and Tobago
  • + *
  • TN - Tunisia
  • + *
  • TR - Turkey
  • + *
  • TM - Turkmenistan
  • + *
  • TC - Turks and Caicos Islands
  • + *
  • TV - Tuvalu
  • + *
  • UG - Uganda
  • + *
  • UA - Ukraine
  • + *
  • AE - United Arab Emirates
  • + *
  • GB - United Kingdom
  • + *
  • UM - United States Minor Outlying Islands
  • + *
  • US - United States of America
  • + *
  • UY - Uruguay
  • + *
  • UZ - Uzbekistan
  • + *
  • VU - Vanuatu
  • + *
  • VE - Venezuela
  • + *
  • VN - Vietnam
  • + *
  • VG - Virgin Islands (British)
  • + *
  • VI - Virgin Islands (U.S.)
  • + *
  • WF - Wallis and Futuna
  • + *
  • EH - Western Sahara
  • + *
  • YE - Yemen
  • + *
  • ZM - Zambia
  • + *
  • ZW - Zimbabwe
  • + *
+ */ @JsonSetter(value = "country", nulls = Nulls.SKIP) - public Builder country(Optional country) { + public Builder country(Optional country) { this.country = country; return this; } - public Builder country(CountryEnum country) { + public Builder country(AddressCountry country) { this.country = Optional.ofNullable(country); return this; } + /** + *

The address's zip code.

+ */ @JsonSetter(value = "zip_code", nulls = Nulls.SKIP) public Builder zipCode(Optional zipCode) { this.zipCode = zipCode; diff --git a/src/main/java/com/merge/api/accounting/types/AddressCountry.java b/src/main/java/com/merge/api/accounting/types/AddressCountry.java new file mode 100644 index 000000000..31a1151fb --- /dev/null +++ b/src/main/java/com/merge/api/accounting/types/AddressCountry.java @@ -0,0 +1,95 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.merge.api.accounting.types; + +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.databind.DeserializationContext; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.fasterxml.jackson.databind.deser.std.StdDeserializer; +import com.merge.api.core.ObjectMappers; +import java.io.IOException; +import java.util.Objects; + +@JsonDeserialize(using = AddressCountry.Deserializer.class) +public final class AddressCountry { + private final Object value; + + private final int type; + + private AddressCountry(Object value, int type) { + this.value = value; + this.type = type; + } + + @JsonValue + public Object get() { + return this.value; + } + + @SuppressWarnings("unchecked") + public T visit(Visitor visitor) { + if (this.type == 0) { + return visitor.visit((CountryEnum) this.value); + } else if (this.type == 1) { + return visitor.visit((String) this.value); + } + throw new IllegalStateException("Failed to visit value. This should never happen."); + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof AddressCountry && equalTo((AddressCountry) other); + } + + private boolean equalTo(AddressCountry other) { + return value.equals(other.value); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.value); + } + + @java.lang.Override + public String toString() { + return this.value.toString(); + } + + public static AddressCountry of(CountryEnum value) { + return new AddressCountry(value, 0); + } + + public static AddressCountry of(String value) { + return new AddressCountry(value, 1); + } + + public interface Visitor { + T visit(CountryEnum value); + + T visit(String value); + } + + static final class Deserializer extends StdDeserializer { + Deserializer() { + super(AddressCountry.class); + } + + @java.lang.Override + public AddressCountry deserialize(JsonParser p, DeserializationContext context) throws IOException { + Object value = p.readValueAs(Object.class); + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, CountryEnum.class)); + } catch (IllegalArgumentException e) { + } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, String.class)); + } catch (IllegalArgumentException e) { + } + throw new JsonParseException(p, "Failed to deserialize"); + } + } +} diff --git a/src/main/java/com/merge/api/accounting/types/AddressRequest.java b/src/main/java/com/merge/api/accounting/types/AddressRequest.java index cb8e95354..6a71f9a12 100644 --- a/src/main/java/com/merge/api/accounting/types/AddressRequest.java +++ b/src/main/java/com/merge/api/accounting/types/AddressRequest.java @@ -21,7 +21,7 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = AddressRequest.Builder.class) public final class AddressRequest { - private final Optional type; + private final Optional type; private final Optional street1; @@ -31,7 +31,7 @@ public final class AddressRequest { private final Optional countrySubdivision; - private final Optional country; + private final Optional country; private final Optional zipCode; @@ -42,12 +42,12 @@ public final class AddressRequest { private final Map additionalProperties; private AddressRequest( - Optional type, + Optional type, Optional street1, Optional street2, Optional city, Optional countrySubdivision, - Optional country, + Optional country, Optional zipCode, Optional> integrationParams, Optional> linkedAccountParams, @@ -72,7 +72,7 @@ private AddressRequest( * */ @JsonProperty("type") - public Optional getType() { + public Optional getType() { return type; } @@ -363,7 +363,7 @@ public Optional getCountrySubdivision() { * */ @JsonProperty("country") - public Optional getCountry() { + public Optional getCountry() { return country; } @@ -433,7 +433,7 @@ public static Builder builder() { @JsonIgnoreProperties(ignoreUnknown = true) public static final class Builder { - private Optional type = Optional.empty(); + private Optional type = Optional.empty(); private Optional street1 = Optional.empty(); @@ -443,7 +443,7 @@ public static final class Builder { private Optional countrySubdivision = Optional.empty(); - private Optional country = Optional.empty(); + private Optional country = Optional.empty(); private Optional zipCode = Optional.empty(); @@ -469,17 +469,27 @@ public Builder from(AddressRequest other) { return this; } + /** + *

The address type.

+ *
    + *
  • BILLING - BILLING
  • + *
  • SHIPPING - SHIPPING
  • + *
+ */ @JsonSetter(value = "type", nulls = Nulls.SKIP) - public Builder type(Optional type) { + public Builder type(Optional type) { this.type = type; return this; } - public Builder type(AddressTypeEnum type) { + public Builder type(AddressRequestType type) { this.type = Optional.ofNullable(type); return this; } + /** + *

Line 1 of the address's street.

+ */ @JsonSetter(value = "street_1", nulls = Nulls.SKIP) public Builder street1(Optional street1) { this.street1 = street1; @@ -491,6 +501,9 @@ public Builder street1(String street1) { return this; } + /** + *

Line 2 of the address's street.

+ */ @JsonSetter(value = "street_2", nulls = Nulls.SKIP) public Builder street2(Optional street2) { this.street2 = street2; @@ -502,6 +515,9 @@ public Builder street2(String street2) { return this; } + /** + *

The address's city.

+ */ @JsonSetter(value = "city", nulls = Nulls.SKIP) public Builder city(Optional city) { this.city = city; @@ -513,6 +529,9 @@ public Builder city(String city) { return this; } + /** + *

The address's state or region.

+ */ @JsonSetter(value = "country_subdivision", nulls = Nulls.SKIP) public Builder countrySubdivision(Optional countrySubdivision) { this.countrySubdivision = countrySubdivision; @@ -524,17 +543,274 @@ public Builder countrySubdivision(String countrySubdivision) { return this; } + /** + *

The address's country.

+ *
    + *
  • AF - Afghanistan
  • + *
  • AX - Åland Islands
  • + *
  • AL - Albania
  • + *
  • DZ - Algeria
  • + *
  • AS - American Samoa
  • + *
  • AD - Andorra
  • + *
  • AO - Angola
  • + *
  • AI - Anguilla
  • + *
  • AQ - Antarctica
  • + *
  • AG - Antigua and Barbuda
  • + *
  • AR - Argentina
  • + *
  • AM - Armenia
  • + *
  • AW - Aruba
  • + *
  • AU - Australia
  • + *
  • AT - Austria
  • + *
  • AZ - Azerbaijan
  • + *
  • BS - Bahamas
  • + *
  • BH - Bahrain
  • + *
  • BD - Bangladesh
  • + *
  • BB - Barbados
  • + *
  • BY - Belarus
  • + *
  • BE - Belgium
  • + *
  • BZ - Belize
  • + *
  • BJ - Benin
  • + *
  • BM - Bermuda
  • + *
  • BT - Bhutan
  • + *
  • BO - Bolivia
  • + *
  • BQ - Bonaire, Sint Eustatius and Saba
  • + *
  • BA - Bosnia and Herzegovina
  • + *
  • BW - Botswana
  • + *
  • BV - Bouvet Island
  • + *
  • BR - Brazil
  • + *
  • IO - British Indian Ocean Territory
  • + *
  • BN - Brunei
  • + *
  • BG - Bulgaria
  • + *
  • BF - Burkina Faso
  • + *
  • BI - Burundi
  • + *
  • CV - Cabo Verde
  • + *
  • KH - Cambodia
  • + *
  • CM - Cameroon
  • + *
  • CA - Canada
  • + *
  • KY - Cayman Islands
  • + *
  • CF - Central African Republic
  • + *
  • TD - Chad
  • + *
  • CL - Chile
  • + *
  • CN - China
  • + *
  • CX - Christmas Island
  • + *
  • CC - Cocos (Keeling) Islands
  • + *
  • CO - Colombia
  • + *
  • KM - Comoros
  • + *
  • CG - Congo
  • + *
  • CD - Congo (the Democratic Republic of the)
  • + *
  • CK - Cook Islands
  • + *
  • CR - Costa Rica
  • + *
  • CI - Côte d'Ivoire
  • + *
  • HR - Croatia
  • + *
  • CU - Cuba
  • + *
  • CW - Curaçao
  • + *
  • CY - Cyprus
  • + *
  • CZ - Czechia
  • + *
  • DK - Denmark
  • + *
  • DJ - Djibouti
  • + *
  • DM - Dominica
  • + *
  • DO - Dominican Republic
  • + *
  • EC - Ecuador
  • + *
  • EG - Egypt
  • + *
  • SV - El Salvador
  • + *
  • GQ - Equatorial Guinea
  • + *
  • ER - Eritrea
  • + *
  • EE - Estonia
  • + *
  • SZ - Eswatini
  • + *
  • ET - Ethiopia
  • + *
  • FK - Falkland Islands (Malvinas)
  • + *
  • FO - Faroe Islands
  • + *
  • FJ - Fiji
  • + *
  • FI - Finland
  • + *
  • FR - France
  • + *
  • GF - French Guiana
  • + *
  • PF - French Polynesia
  • + *
  • TF - French Southern Territories
  • + *
  • GA - Gabon
  • + *
  • GM - Gambia
  • + *
  • GE - Georgia
  • + *
  • DE - Germany
  • + *
  • GH - Ghana
  • + *
  • GI - Gibraltar
  • + *
  • GR - Greece
  • + *
  • GL - Greenland
  • + *
  • GD - Grenada
  • + *
  • GP - Guadeloupe
  • + *
  • GU - Guam
  • + *
  • GT - Guatemala
  • + *
  • GG - Guernsey
  • + *
  • GN - Guinea
  • + *
  • GW - Guinea-Bissau
  • + *
  • GY - Guyana
  • + *
  • HT - Haiti
  • + *
  • HM - Heard Island and McDonald Islands
  • + *
  • VA - Holy See
  • + *
  • HN - Honduras
  • + *
  • HK - Hong Kong
  • + *
  • HU - Hungary
  • + *
  • IS - Iceland
  • + *
  • IN - India
  • + *
  • ID - Indonesia
  • + *
  • IR - Iran
  • + *
  • IQ - Iraq
  • + *
  • IE - Ireland
  • + *
  • IM - Isle of Man
  • + *
  • IL - Israel
  • + *
  • IT - Italy
  • + *
  • JM - Jamaica
  • + *
  • JP - Japan
  • + *
  • JE - Jersey
  • + *
  • JO - Jordan
  • + *
  • KZ - Kazakhstan
  • + *
  • KE - Kenya
  • + *
  • KI - Kiribati
  • + *
  • KW - Kuwait
  • + *
  • KG - Kyrgyzstan
  • + *
  • LA - Laos
  • + *
  • LV - Latvia
  • + *
  • LB - Lebanon
  • + *
  • LS - Lesotho
  • + *
  • LR - Liberia
  • + *
  • LY - Libya
  • + *
  • LI - Liechtenstein
  • + *
  • LT - Lithuania
  • + *
  • LU - Luxembourg
  • + *
  • MO - Macao
  • + *
  • MG - Madagascar
  • + *
  • MW - Malawi
  • + *
  • MY - Malaysia
  • + *
  • MV - Maldives
  • + *
  • ML - Mali
  • + *
  • MT - Malta
  • + *
  • MH - Marshall Islands
  • + *
  • MQ - Martinique
  • + *
  • MR - Mauritania
  • + *
  • MU - Mauritius
  • + *
  • YT - Mayotte
  • + *
  • MX - Mexico
  • + *
  • FM - Micronesia (Federated States of)
  • + *
  • MD - Moldova
  • + *
  • MC - Monaco
  • + *
  • MN - Mongolia
  • + *
  • ME - Montenegro
  • + *
  • MS - Montserrat
  • + *
  • MA - Morocco
  • + *
  • MZ - Mozambique
  • + *
  • MM - Myanmar
  • + *
  • NA - Namibia
  • + *
  • NR - Nauru
  • + *
  • NP - Nepal
  • + *
  • NL - Netherlands
  • + *
  • NC - New Caledonia
  • + *
  • NZ - New Zealand
  • + *
  • NI - Nicaragua
  • + *
  • NE - Niger
  • + *
  • NG - Nigeria
  • + *
  • NU - Niue
  • + *
  • NF - Norfolk Island
  • + *
  • KP - North Korea
  • + *
  • MK - North Macedonia
  • + *
  • MP - Northern Mariana Islands
  • + *
  • NO - Norway
  • + *
  • OM - Oman
  • + *
  • PK - Pakistan
  • + *
  • PW - Palau
  • + *
  • PS - Palestine, State of
  • + *
  • PA - Panama
  • + *
  • PG - Papua New Guinea
  • + *
  • PY - Paraguay
  • + *
  • PE - Peru
  • + *
  • PH - Philippines
  • + *
  • PN - Pitcairn
  • + *
  • PL - Poland
  • + *
  • PT - Portugal
  • + *
  • PR - Puerto Rico
  • + *
  • QA - Qatar
  • + *
  • RE - Réunion
  • + *
  • RO - Romania
  • + *
  • RU - Russia
  • + *
  • RW - Rwanda
  • + *
  • BL - Saint Barthélemy
  • + *
  • SH - Saint Helena, Ascension and Tristan da Cunha
  • + *
  • KN - Saint Kitts and Nevis
  • + *
  • LC - Saint Lucia
  • + *
  • MF - Saint Martin (French part)
  • + *
  • PM - Saint Pierre and Miquelon
  • + *
  • VC - Saint Vincent and the Grenadines
  • + *
  • WS - Samoa
  • + *
  • SM - San Marino
  • + *
  • ST - Sao Tome and Principe
  • + *
  • SA - Saudi Arabia
  • + *
  • SN - Senegal
  • + *
  • RS - Serbia
  • + *
  • SC - Seychelles
  • + *
  • SL - Sierra Leone
  • + *
  • SG - Singapore
  • + *
  • SX - Sint Maarten (Dutch part)
  • + *
  • SK - Slovakia
  • + *
  • SI - Slovenia
  • + *
  • SB - Solomon Islands
  • + *
  • SO - Somalia
  • + *
  • ZA - South Africa
  • + *
  • GS - South Georgia and the South Sandwich Islands
  • + *
  • KR - South Korea
  • + *
  • SS - South Sudan
  • + *
  • ES - Spain
  • + *
  • LK - Sri Lanka
  • + *
  • SD - Sudan
  • + *
  • SR - Suriname
  • + *
  • SJ - Svalbard and Jan Mayen
  • + *
  • SE - Sweden
  • + *
  • CH - Switzerland
  • + *
  • SY - Syria
  • + *
  • TW - Taiwan
  • + *
  • TJ - Tajikistan
  • + *
  • TZ - Tanzania
  • + *
  • TH - Thailand
  • + *
  • TL - Timor-Leste
  • + *
  • TG - Togo
  • + *
  • TK - Tokelau
  • + *
  • TO - Tonga
  • + *
  • TT - Trinidad and Tobago
  • + *
  • TN - Tunisia
  • + *
  • TR - Turkey
  • + *
  • TM - Turkmenistan
  • + *
  • TC - Turks and Caicos Islands
  • + *
  • TV - Tuvalu
  • + *
  • UG - Uganda
  • + *
  • UA - Ukraine
  • + *
  • AE - United Arab Emirates
  • + *
  • GB - United Kingdom
  • + *
  • UM - United States Minor Outlying Islands
  • + *
  • US - United States of America
  • + *
  • UY - Uruguay
  • + *
  • UZ - Uzbekistan
  • + *
  • VU - Vanuatu
  • + *
  • VE - Venezuela
  • + *
  • VN - Vietnam
  • + *
  • VG - Virgin Islands (British)
  • + *
  • VI - Virgin Islands (U.S.)
  • + *
  • WF - Wallis and Futuna
  • + *
  • EH - Western Sahara
  • + *
  • YE - Yemen
  • + *
  • ZM - Zambia
  • + *
  • ZW - Zimbabwe
  • + *
+ */ @JsonSetter(value = "country", nulls = Nulls.SKIP) - public Builder country(Optional country) { + public Builder country(Optional country) { this.country = country; return this; } - public Builder country(CountryEnum country) { + public Builder country(AddressRequestCountry country) { this.country = Optional.ofNullable(country); return this; } + /** + *

The address's zip code.

+ */ @JsonSetter(value = "zip_code", nulls = Nulls.SKIP) public Builder zipCode(Optional zipCode) { this.zipCode = zipCode; diff --git a/src/main/java/com/merge/api/accounting/types/AddressRequestCountry.java b/src/main/java/com/merge/api/accounting/types/AddressRequestCountry.java new file mode 100644 index 000000000..a5bf742c7 --- /dev/null +++ b/src/main/java/com/merge/api/accounting/types/AddressRequestCountry.java @@ -0,0 +1,95 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.merge.api.accounting.types; + +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.databind.DeserializationContext; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.fasterxml.jackson.databind.deser.std.StdDeserializer; +import com.merge.api.core.ObjectMappers; +import java.io.IOException; +import java.util.Objects; + +@JsonDeserialize(using = AddressRequestCountry.Deserializer.class) +public final class AddressRequestCountry { + private final Object value; + + private final int type; + + private AddressRequestCountry(Object value, int type) { + this.value = value; + this.type = type; + } + + @JsonValue + public Object get() { + return this.value; + } + + @SuppressWarnings("unchecked") + public T visit(Visitor visitor) { + if (this.type == 0) { + return visitor.visit((CountryEnum) this.value); + } else if (this.type == 1) { + return visitor.visit((String) this.value); + } + throw new IllegalStateException("Failed to visit value. This should never happen."); + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof AddressRequestCountry && equalTo((AddressRequestCountry) other); + } + + private boolean equalTo(AddressRequestCountry other) { + return value.equals(other.value); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.value); + } + + @java.lang.Override + public String toString() { + return this.value.toString(); + } + + public static AddressRequestCountry of(CountryEnum value) { + return new AddressRequestCountry(value, 0); + } + + public static AddressRequestCountry of(String value) { + return new AddressRequestCountry(value, 1); + } + + public interface Visitor { + T visit(CountryEnum value); + + T visit(String value); + } + + static final class Deserializer extends StdDeserializer { + Deserializer() { + super(AddressRequestCountry.class); + } + + @java.lang.Override + public AddressRequestCountry deserialize(JsonParser p, DeserializationContext context) throws IOException { + Object value = p.readValueAs(Object.class); + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, CountryEnum.class)); + } catch (IllegalArgumentException e) { + } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, String.class)); + } catch (IllegalArgumentException e) { + } + throw new JsonParseException(p, "Failed to deserialize"); + } + } +} diff --git a/src/main/java/com/merge/api/accounting/types/AddressRequestType.java b/src/main/java/com/merge/api/accounting/types/AddressRequestType.java new file mode 100644 index 000000000..0664e9446 --- /dev/null +++ b/src/main/java/com/merge/api/accounting/types/AddressRequestType.java @@ -0,0 +1,95 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.merge.api.accounting.types; + +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.databind.DeserializationContext; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.fasterxml.jackson.databind.deser.std.StdDeserializer; +import com.merge.api.core.ObjectMappers; +import java.io.IOException; +import java.util.Objects; + +@JsonDeserialize(using = AddressRequestType.Deserializer.class) +public final class AddressRequestType { + private final Object value; + + private final int type; + + private AddressRequestType(Object value, int type) { + this.value = value; + this.type = type; + } + + @JsonValue + public Object get() { + return this.value; + } + + @SuppressWarnings("unchecked") + public T visit(Visitor visitor) { + if (this.type == 0) { + return visitor.visit((AddressTypeEnum) this.value); + } else if (this.type == 1) { + return visitor.visit((String) this.value); + } + throw new IllegalStateException("Failed to visit value. This should never happen."); + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof AddressRequestType && equalTo((AddressRequestType) other); + } + + private boolean equalTo(AddressRequestType other) { + return value.equals(other.value); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.value); + } + + @java.lang.Override + public String toString() { + return this.value.toString(); + } + + public static AddressRequestType of(AddressTypeEnum value) { + return new AddressRequestType(value, 0); + } + + public static AddressRequestType of(String value) { + return new AddressRequestType(value, 1); + } + + public interface Visitor { + T visit(AddressTypeEnum value); + + T visit(String value); + } + + static final class Deserializer extends StdDeserializer { + Deserializer() { + super(AddressRequestType.class); + } + + @java.lang.Override + public AddressRequestType deserialize(JsonParser p, DeserializationContext context) throws IOException { + Object value = p.readValueAs(Object.class); + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, AddressTypeEnum.class)); + } catch (IllegalArgumentException e) { + } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, String.class)); + } catch (IllegalArgumentException e) { + } + throw new JsonParseException(p, "Failed to deserialize"); + } + } +} diff --git a/src/main/java/com/merge/api/accounting/types/AddressType.java b/src/main/java/com/merge/api/accounting/types/AddressType.java new file mode 100644 index 000000000..e7beccff5 --- /dev/null +++ b/src/main/java/com/merge/api/accounting/types/AddressType.java @@ -0,0 +1,95 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.merge.api.accounting.types; + +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.databind.DeserializationContext; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.fasterxml.jackson.databind.deser.std.StdDeserializer; +import com.merge.api.core.ObjectMappers; +import java.io.IOException; +import java.util.Objects; + +@JsonDeserialize(using = AddressType.Deserializer.class) +public final class AddressType { + private final Object value; + + private final int type; + + private AddressType(Object value, int type) { + this.value = value; + this.type = type; + } + + @JsonValue + public Object get() { + return this.value; + } + + @SuppressWarnings("unchecked") + public T visit(Visitor visitor) { + if (this.type == 0) { + return visitor.visit((AddressTypeEnum) this.value); + } else if (this.type == 1) { + return visitor.visit((String) this.value); + } + throw new IllegalStateException("Failed to visit value. This should never happen."); + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof AddressType && equalTo((AddressType) other); + } + + private boolean equalTo(AddressType other) { + return value.equals(other.value); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.value); + } + + @java.lang.Override + public String toString() { + return this.value.toString(); + } + + public static AddressType of(AddressTypeEnum value) { + return new AddressType(value, 0); + } + + public static AddressType of(String value) { + return new AddressType(value, 1); + } + + public interface Visitor { + T visit(AddressTypeEnum value); + + T visit(String value); + } + + static final class Deserializer extends StdDeserializer { + Deserializer() { + super(AddressType.class); + } + + @java.lang.Override + public AddressType deserialize(JsonParser p, DeserializationContext context) throws IOException { + Object value = p.readValueAs(Object.class); + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, AddressTypeEnum.class)); + } catch (IllegalArgumentException e) { + } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, String.class)); + } catch (IllegalArgumentException e) { + } + throw new JsonParseException(p, "Failed to deserialize"); + } + } +} diff --git a/src/main/java/com/merge/api/accounting/types/AddressesRetrieveRequest.java b/src/main/java/com/merge/api/accounting/types/AddressesRetrieveRequest.java index 7de4ccbea..14ce945c4 100644 --- a/src/main/java/com/merge/api/accounting/types/AddressesRetrieveRequest.java +++ b/src/main/java/com/merge/api/accounting/types/AddressesRetrieveRequest.java @@ -130,6 +130,9 @@ public Builder from(AddressesRetrieveRequest other) { return this; } + /** + *

Whether to include the original data Merge fetched from the third-party to produce these models.

+ */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -141,6 +144,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

+ */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; @@ -152,6 +158,9 @@ public Builder includeShellData(Boolean includeShellData) { return this; } + /** + *

Deprecated. Use show_enum_origins.

+ */ @JsonSetter(value = "remote_fields", nulls = Nulls.SKIP) public Builder remoteFields(Optional remoteFields) { this.remoteFields = remoteFields; @@ -163,6 +172,9 @@ public Builder remoteFields(String remoteFields) { return this; } + /** + *

A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. Learn more

+ */ @JsonSetter(value = "show_enum_origins", nulls = Nulls.SKIP) public Builder showEnumOrigins(Optional showEnumOrigins) { this.showEnumOrigins = showEnumOrigins; diff --git a/src/main/java/com/merge/api/accounting/types/AsyncPostTask.java b/src/main/java/com/merge/api/accounting/types/AsyncPostTask.java index 110dfc4d7..79e3de93a 100644 --- a/src/main/java/com/merge/api/accounting/types/AsyncPostTask.java +++ b/src/main/java/com/merge/api/accounting/types/AsyncPostTask.java @@ -19,21 +19,21 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = AsyncPostTask.Builder.class) public final class AsyncPostTask { - private final AsyncPostTaskStatusEnum status; + private final AsyncPostTaskStatus status; private final AsyncPostTaskResult result; private final Map additionalProperties; private AsyncPostTask( - AsyncPostTaskStatusEnum status, AsyncPostTaskResult result, Map additionalProperties) { + AsyncPostTaskStatus status, AsyncPostTaskResult result, Map additionalProperties) { this.status = status; this.result = result; this.additionalProperties = additionalProperties; } @JsonProperty("status") - public AsyncPostTaskStatusEnum getStatus() { + public AsyncPostTaskStatus getStatus() { return status; } @@ -72,7 +72,7 @@ public static StatusStage builder() { } public interface StatusStage { - ResultStage status(@NotNull AsyncPostTaskStatusEnum status); + ResultStage status(@NotNull AsyncPostTaskStatus status); Builder from(AsyncPostTask other); } @@ -87,7 +87,7 @@ public interface _FinalStage { @JsonIgnoreProperties(ignoreUnknown = true) public static final class Builder implements StatusStage, ResultStage, _FinalStage { - private AsyncPostTaskStatusEnum status; + private AsyncPostTaskStatus status; private AsyncPostTaskResult result; @@ -105,7 +105,7 @@ public Builder from(AsyncPostTask other) { @java.lang.Override @JsonSetter("status") - public ResultStage status(@NotNull AsyncPostTaskStatusEnum status) { + public ResultStage status(@NotNull AsyncPostTaskStatus status) { this.status = status; return this; } diff --git a/src/main/java/com/merge/api/accounting/types/AsyncPostTaskStatus.java b/src/main/java/com/merge/api/accounting/types/AsyncPostTaskStatus.java new file mode 100644 index 000000000..f108ff2aa --- /dev/null +++ b/src/main/java/com/merge/api/accounting/types/AsyncPostTaskStatus.java @@ -0,0 +1,95 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.merge.api.accounting.types; + +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.databind.DeserializationContext; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.fasterxml.jackson.databind.deser.std.StdDeserializer; +import com.merge.api.core.ObjectMappers; +import java.io.IOException; +import java.util.Objects; + +@JsonDeserialize(using = AsyncPostTaskStatus.Deserializer.class) +public final class AsyncPostTaskStatus { + private final Object value; + + private final int type; + + private AsyncPostTaskStatus(Object value, int type) { + this.value = value; + this.type = type; + } + + @JsonValue + public Object get() { + return this.value; + } + + @SuppressWarnings("unchecked") + public T visit(Visitor visitor) { + if (this.type == 0) { + return visitor.visit((AsyncPostTaskStatusEnum) this.value); + } else if (this.type == 1) { + return visitor.visit((String) this.value); + } + throw new IllegalStateException("Failed to visit value. This should never happen."); + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof AsyncPostTaskStatus && equalTo((AsyncPostTaskStatus) other); + } + + private boolean equalTo(AsyncPostTaskStatus other) { + return value.equals(other.value); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.value); + } + + @java.lang.Override + public String toString() { + return this.value.toString(); + } + + public static AsyncPostTaskStatus of(AsyncPostTaskStatusEnum value) { + return new AsyncPostTaskStatus(value, 0); + } + + public static AsyncPostTaskStatus of(String value) { + return new AsyncPostTaskStatus(value, 1); + } + + public interface Visitor { + T visit(AsyncPostTaskStatusEnum value); + + T visit(String value); + } + + static final class Deserializer extends StdDeserializer { + Deserializer() { + super(AsyncPostTaskStatus.class); + } + + @java.lang.Override + public AsyncPostTaskStatus deserialize(JsonParser p, DeserializationContext context) throws IOException { + Object value = p.readValueAs(Object.class); + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, AsyncPostTaskStatusEnum.class)); + } catch (IllegalArgumentException e) { + } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, String.class)); + } catch (IllegalArgumentException e) { + } + throw new JsonParseException(p, "Failed to deserialize"); + } + } +} diff --git a/src/main/java/com/merge/api/accounting/types/AttachmentsListRequest.java b/src/main/java/com/merge/api/accounting/types/AttachmentsListRequest.java index 29fbf7188..27ea3586b 100644 --- a/src/main/java/com/merge/api/accounting/types/AttachmentsListRequest.java +++ b/src/main/java/com/merge/api/accounting/types/AttachmentsListRequest.java @@ -254,6 +254,9 @@ public Builder from(AttachmentsListRequest other) { return this; } + /** + *

If provided, will only return accounting attachments for this company.

+ */ @JsonSetter(value = "company_id", nulls = Nulls.SKIP) public Builder companyId(Optional companyId) { this.companyId = companyId; @@ -265,6 +268,9 @@ public Builder companyId(String companyId) { return this; } + /** + *

If provided, will only return objects created after this datetime.

+ */ @JsonSetter(value = "created_after", nulls = Nulls.SKIP) public Builder createdAfter(Optional createdAfter) { this.createdAfter = createdAfter; @@ -276,6 +282,9 @@ public Builder createdAfter(OffsetDateTime createdAfter) { return this; } + /** + *

If provided, will only return objects created before this datetime.

+ */ @JsonSetter(value = "created_before", nulls = Nulls.SKIP) public Builder createdBefore(Optional createdBefore) { this.createdBefore = createdBefore; @@ -287,6 +296,9 @@ public Builder createdBefore(OffsetDateTime createdBefore) { return this; } + /** + *

The pagination cursor value.

+ */ @JsonSetter(value = "cursor", nulls = Nulls.SKIP) public Builder cursor(Optional cursor) { this.cursor = cursor; @@ -298,6 +310,9 @@ public Builder cursor(String cursor) { return this; } + /** + *

Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

+ */ @JsonSetter(value = "include_deleted_data", nulls = Nulls.SKIP) public Builder includeDeletedData(Optional includeDeletedData) { this.includeDeletedData = includeDeletedData; @@ -309,6 +324,9 @@ public Builder includeDeletedData(Boolean includeDeletedData) { return this; } + /** + *

Whether to include the original data Merge fetched from the third-party to produce these models.

+ */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -320,6 +338,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

+ */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; @@ -331,6 +352,9 @@ public Builder includeShellData(Boolean includeShellData) { return this; } + /** + *

If provided, only objects synced by Merge after this date time will be returned.

+ */ @JsonSetter(value = "modified_after", nulls = Nulls.SKIP) public Builder modifiedAfter(Optional modifiedAfter) { this.modifiedAfter = modifiedAfter; @@ -342,6 +366,9 @@ public Builder modifiedAfter(OffsetDateTime modifiedAfter) { return this; } + /** + *

If provided, only objects synced by Merge before this date time will be returned.

+ */ @JsonSetter(value = "modified_before", nulls = Nulls.SKIP) public Builder modifiedBefore(Optional modifiedBefore) { this.modifiedBefore = modifiedBefore; @@ -353,6 +380,9 @@ public Builder modifiedBefore(OffsetDateTime modifiedBefore) { return this; } + /** + *

Number of results to return per page.

+ */ @JsonSetter(value = "page_size", nulls = Nulls.SKIP) public Builder pageSize(Optional pageSize) { this.pageSize = pageSize; @@ -364,6 +394,9 @@ public Builder pageSize(Integer pageSize) { return this; } + /** + *

The API provider's ID for the given object.

+ */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; diff --git a/src/main/java/com/merge/api/accounting/types/AttachmentsRetrieveRequest.java b/src/main/java/com/merge/api/accounting/types/AttachmentsRetrieveRequest.java index 1e9beaae9..915c801e1 100644 --- a/src/main/java/com/merge/api/accounting/types/AttachmentsRetrieveRequest.java +++ b/src/main/java/com/merge/api/accounting/types/AttachmentsRetrieveRequest.java @@ -97,6 +97,9 @@ public Builder from(AttachmentsRetrieveRequest other) { return this; } + /** + *

Whether to include the original data Merge fetched from the third-party to produce these models.

+ */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -108,6 +111,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

+ */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; diff --git a/src/main/java/com/merge/api/accounting/types/AuditLogEvent.java b/src/main/java/com/merge/api/accounting/types/AuditLogEvent.java index b058a82bc..935c2b311 100644 --- a/src/main/java/com/merge/api/accounting/types/AuditLogEvent.java +++ b/src/main/java/com/merge/api/accounting/types/AuditLogEvent.java @@ -28,11 +28,11 @@ public final class AuditLogEvent { private final Optional userEmail; - private final RoleEnum role; + private final AuditLogEventRole role; private final String ipAddress; - private final EventTypeEnum eventType; + private final AuditLogEventEventType eventType; private final String eventDescription; @@ -44,9 +44,9 @@ private AuditLogEvent( Optional id, Optional userName, Optional userEmail, - RoleEnum role, + AuditLogEventRole role, String ipAddress, - EventTypeEnum eventType, + AuditLogEventEventType eventType, String eventDescription, Optional createdAt, Map additionalProperties) { @@ -94,7 +94,7 @@ public Optional getUserEmail() { * */ @JsonProperty("role") - public RoleEnum getRole() { + public AuditLogEventRole getRole() { return role; } @@ -111,6 +111,7 @@ public String getIpAddress() { *
  • CREATED_TEST_API_KEY - CREATED_TEST_API_KEY
  • *
  • DELETED_TEST_API_KEY - DELETED_TEST_API_KEY
  • *
  • REGENERATED_PRODUCTION_API_KEY - REGENERATED_PRODUCTION_API_KEY
  • + *
  • REGENERATED_WEBHOOK_SIGNATURE - REGENERATED_WEBHOOK_SIGNATURE
  • *
  • INVITED_USER - INVITED_USER
  • *
  • TWO_FACTOR_AUTH_ENABLED - TWO_FACTOR_AUTH_ENABLED
  • *
  • TWO_FACTOR_AUTH_DISABLED - TWO_FACTOR_AUTH_DISABLED
  • @@ -151,7 +152,7 @@ public String getIpAddress() { * */ @JsonProperty("event_type") - public EventTypeEnum getEventType() { + public AuditLogEventEventType getEventType() { return eventType; } @@ -210,7 +211,17 @@ public static RoleStage builder() { } public interface RoleStage { - IpAddressStage role(@NotNull RoleEnum role); + /** + * Designates the role of the user (or SYSTEM/API if action not taken by a user) at the time of this Event occurring. + * + * * `ADMIN` - ADMIN + * * `DEVELOPER` - DEVELOPER + * * `MEMBER` - MEMBER + * * `API` - API + * * `SYSTEM` - SYSTEM + * * `MERGE_TEAM` - MERGE_TEAM + */ + IpAddressStage role(@NotNull AuditLogEventRole role); Builder from(AuditLogEvent other); } @@ -220,7 +231,54 @@ public interface IpAddressStage { } public interface EventTypeStage { - EventDescriptionStage eventType(@NotNull EventTypeEnum eventType); + /** + * Designates the type of event that occurred. + * + * * `CREATED_REMOTE_PRODUCTION_API_KEY` - CREATED_REMOTE_PRODUCTION_API_KEY + * * `DELETED_REMOTE_PRODUCTION_API_KEY` - DELETED_REMOTE_PRODUCTION_API_KEY + * * `CREATED_TEST_API_KEY` - CREATED_TEST_API_KEY + * * `DELETED_TEST_API_KEY` - DELETED_TEST_API_KEY + * * `REGENERATED_PRODUCTION_API_KEY` - REGENERATED_PRODUCTION_API_KEY + * * `REGENERATED_WEBHOOK_SIGNATURE` - REGENERATED_WEBHOOK_SIGNATURE + * * `INVITED_USER` - INVITED_USER + * * `TWO_FACTOR_AUTH_ENABLED` - TWO_FACTOR_AUTH_ENABLED + * * `TWO_FACTOR_AUTH_DISABLED` - TWO_FACTOR_AUTH_DISABLED + * * `DELETED_LINKED_ACCOUNT` - DELETED_LINKED_ACCOUNT + * * `DELETED_ALL_COMMON_MODELS_FOR_LINKED_ACCOUNT` - DELETED_ALL_COMMON_MODELS_FOR_LINKED_ACCOUNT + * * `CREATED_DESTINATION` - CREATED_DESTINATION + * * `DELETED_DESTINATION` - DELETED_DESTINATION + * * `CHANGED_DESTINATION` - CHANGED_DESTINATION + * * `CHANGED_SCOPES` - CHANGED_SCOPES + * * `CHANGED_PERSONAL_INFORMATION` - CHANGED_PERSONAL_INFORMATION + * * `CHANGED_ORGANIZATION_SETTINGS` - CHANGED_ORGANIZATION_SETTINGS + * * `ENABLED_INTEGRATION` - ENABLED_INTEGRATION + * * `DISABLED_INTEGRATION` - DISABLED_INTEGRATION + * * `ENABLED_CATEGORY` - ENABLED_CATEGORY + * * `DISABLED_CATEGORY` - DISABLED_CATEGORY + * * `CHANGED_PASSWORD` - CHANGED_PASSWORD + * * `RESET_PASSWORD` - RESET_PASSWORD + * * `ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION` - ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION + * * `ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT` - ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT + * * `DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION` - DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION + * * `DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT` - DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT + * * `CREATED_INTEGRATION_WIDE_FIELD_MAPPING` - CREATED_INTEGRATION_WIDE_FIELD_MAPPING + * * `CREATED_LINKED_ACCOUNT_FIELD_MAPPING` - CREATED_LINKED_ACCOUNT_FIELD_MAPPING + * * `CHANGED_INTEGRATION_WIDE_FIELD_MAPPING` - CHANGED_INTEGRATION_WIDE_FIELD_MAPPING + * * `CHANGED_LINKED_ACCOUNT_FIELD_MAPPING` - CHANGED_LINKED_ACCOUNT_FIELD_MAPPING + * * `DELETED_INTEGRATION_WIDE_FIELD_MAPPING` - DELETED_INTEGRATION_WIDE_FIELD_MAPPING + * * `DELETED_LINKED_ACCOUNT_FIELD_MAPPING` - DELETED_LINKED_ACCOUNT_FIELD_MAPPING + * * `CREATED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE` - CREATED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE + * * `CHANGED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE` - CHANGED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE + * * `DELETED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE` - DELETED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE + * * `FORCED_LINKED_ACCOUNT_RESYNC` - FORCED_LINKED_ACCOUNT_RESYNC + * * `MUTED_ISSUE` - MUTED_ISSUE + * * `GENERATED_MAGIC_LINK` - GENERATED_MAGIC_LINK + * * `ENABLED_MERGE_WEBHOOK` - ENABLED_MERGE_WEBHOOK + * * `DISABLED_MERGE_WEBHOOK` - DISABLED_MERGE_WEBHOOK + * * `MERGE_WEBHOOK_TARGET_CHANGED` - MERGE_WEBHOOK_TARGET_CHANGED + * * `END_USER_CREDENTIALS_ACCESSED` - END_USER_CREDENTIALS_ACCESSED + */ + EventDescriptionStage eventType(@NotNull AuditLogEventEventType eventType); } public interface EventDescriptionStage { @@ -234,10 +292,16 @@ public interface _FinalStage { _FinalStage id(String id); + /** + *

    The User's full name at the time of this Event occurring.

    + */ _FinalStage userName(Optional userName); _FinalStage userName(String userName); + /** + *

    The User's email at the time of this Event occurring.

    + */ _FinalStage userEmail(Optional userEmail); _FinalStage userEmail(String userEmail); @@ -250,11 +314,11 @@ public interface _FinalStage { @JsonIgnoreProperties(ignoreUnknown = true) public static final class Builder implements RoleStage, IpAddressStage, EventTypeStage, EventDescriptionStage, _FinalStage { - private RoleEnum role; + private AuditLogEventRole role; private String ipAddress; - private EventTypeEnum eventType; + private AuditLogEventEventType eventType; private String eventDescription; @@ -285,7 +349,14 @@ public Builder from(AuditLogEvent other) { } /** - *

    Designates the role of the user (or SYSTEM/API if action not taken by a user) at the time of this Event occurring.

    + * Designates the role of the user (or SYSTEM/API if action not taken by a user) at the time of this Event occurring. + * + * * `ADMIN` - ADMIN + * * `DEVELOPER` - DEVELOPER + * * `MEMBER` - MEMBER + * * `API` - API + * * `SYSTEM` - SYSTEM + * * `MERGE_TEAM` - MERGE_TEAM

    Designates the role of the user (or SYSTEM/API if action not taken by a user) at the time of this Event occurring.

    *
      *
    • ADMIN - ADMIN
    • *
    • DEVELOPER - DEVELOPER
    • @@ -298,7 +369,7 @@ public Builder from(AuditLogEvent other) { */ @java.lang.Override @JsonSetter("role") - public IpAddressStage role(@NotNull RoleEnum role) { + public IpAddressStage role(@NotNull AuditLogEventRole role) { this.role = role; return this; } @@ -311,13 +382,58 @@ public EventTypeStage ipAddress(@NotNull String ipAddress) { } /** - *

      Designates the type of event that occurred.

      + * Designates the type of event that occurred. + * + * * `CREATED_REMOTE_PRODUCTION_API_KEY` - CREATED_REMOTE_PRODUCTION_API_KEY + * * `DELETED_REMOTE_PRODUCTION_API_KEY` - DELETED_REMOTE_PRODUCTION_API_KEY + * * `CREATED_TEST_API_KEY` - CREATED_TEST_API_KEY + * * `DELETED_TEST_API_KEY` - DELETED_TEST_API_KEY + * * `REGENERATED_PRODUCTION_API_KEY` - REGENERATED_PRODUCTION_API_KEY + * * `REGENERATED_WEBHOOK_SIGNATURE` - REGENERATED_WEBHOOK_SIGNATURE + * * `INVITED_USER` - INVITED_USER + * * `TWO_FACTOR_AUTH_ENABLED` - TWO_FACTOR_AUTH_ENABLED + * * `TWO_FACTOR_AUTH_DISABLED` - TWO_FACTOR_AUTH_DISABLED + * * `DELETED_LINKED_ACCOUNT` - DELETED_LINKED_ACCOUNT + * * `DELETED_ALL_COMMON_MODELS_FOR_LINKED_ACCOUNT` - DELETED_ALL_COMMON_MODELS_FOR_LINKED_ACCOUNT + * * `CREATED_DESTINATION` - CREATED_DESTINATION + * * `DELETED_DESTINATION` - DELETED_DESTINATION + * * `CHANGED_DESTINATION` - CHANGED_DESTINATION + * * `CHANGED_SCOPES` - CHANGED_SCOPES + * * `CHANGED_PERSONAL_INFORMATION` - CHANGED_PERSONAL_INFORMATION + * * `CHANGED_ORGANIZATION_SETTINGS` - CHANGED_ORGANIZATION_SETTINGS + * * `ENABLED_INTEGRATION` - ENABLED_INTEGRATION + * * `DISABLED_INTEGRATION` - DISABLED_INTEGRATION + * * `ENABLED_CATEGORY` - ENABLED_CATEGORY + * * `DISABLED_CATEGORY` - DISABLED_CATEGORY + * * `CHANGED_PASSWORD` - CHANGED_PASSWORD + * * `RESET_PASSWORD` - RESET_PASSWORD + * * `ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION` - ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION + * * `ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT` - ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT + * * `DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION` - DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION + * * `DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT` - DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT + * * `CREATED_INTEGRATION_WIDE_FIELD_MAPPING` - CREATED_INTEGRATION_WIDE_FIELD_MAPPING + * * `CREATED_LINKED_ACCOUNT_FIELD_MAPPING` - CREATED_LINKED_ACCOUNT_FIELD_MAPPING + * * `CHANGED_INTEGRATION_WIDE_FIELD_MAPPING` - CHANGED_INTEGRATION_WIDE_FIELD_MAPPING + * * `CHANGED_LINKED_ACCOUNT_FIELD_MAPPING` - CHANGED_LINKED_ACCOUNT_FIELD_MAPPING + * * `DELETED_INTEGRATION_WIDE_FIELD_MAPPING` - DELETED_INTEGRATION_WIDE_FIELD_MAPPING + * * `DELETED_LINKED_ACCOUNT_FIELD_MAPPING` - DELETED_LINKED_ACCOUNT_FIELD_MAPPING + * * `CREATED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE` - CREATED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE + * * `CHANGED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE` - CHANGED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE + * * `DELETED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE` - DELETED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE + * * `FORCED_LINKED_ACCOUNT_RESYNC` - FORCED_LINKED_ACCOUNT_RESYNC + * * `MUTED_ISSUE` - MUTED_ISSUE + * * `GENERATED_MAGIC_LINK` - GENERATED_MAGIC_LINK + * * `ENABLED_MERGE_WEBHOOK` - ENABLED_MERGE_WEBHOOK + * * `DISABLED_MERGE_WEBHOOK` - DISABLED_MERGE_WEBHOOK + * * `MERGE_WEBHOOK_TARGET_CHANGED` - MERGE_WEBHOOK_TARGET_CHANGED + * * `END_USER_CREDENTIALS_ACCESSED` - END_USER_CREDENTIALS_ACCESSED

      Designates the type of event that occurred.

      *
        *
      • CREATED_REMOTE_PRODUCTION_API_KEY - CREATED_REMOTE_PRODUCTION_API_KEY
      • *
      • DELETED_REMOTE_PRODUCTION_API_KEY - DELETED_REMOTE_PRODUCTION_API_KEY
      • *
      • CREATED_TEST_API_KEY - CREATED_TEST_API_KEY
      • *
      • DELETED_TEST_API_KEY - DELETED_TEST_API_KEY
      • *
      • REGENERATED_PRODUCTION_API_KEY - REGENERATED_PRODUCTION_API_KEY
      • + *
      • REGENERATED_WEBHOOK_SIGNATURE - REGENERATED_WEBHOOK_SIGNATURE
      • *
      • INVITED_USER - INVITED_USER
      • *
      • TWO_FACTOR_AUTH_ENABLED - TWO_FACTOR_AUTH_ENABLED
      • *
      • TWO_FACTOR_AUTH_DISABLED - TWO_FACTOR_AUTH_DISABLED
      • @@ -360,7 +476,7 @@ public EventTypeStage ipAddress(@NotNull String ipAddress) { */ @java.lang.Override @JsonSetter("event_type") - public EventDescriptionStage eventType(@NotNull EventTypeEnum eventType) { + public EventDescriptionStage eventType(@NotNull AuditLogEventEventType eventType) { this.eventType = eventType; return this; } @@ -395,6 +511,9 @@ public _FinalStage userEmail(String userEmail) { return this; } + /** + *

        The User's email at the time of this Event occurring.

        + */ @java.lang.Override @JsonSetter(value = "user_email", nulls = Nulls.SKIP) public _FinalStage userEmail(Optional userEmail) { @@ -412,6 +531,9 @@ public _FinalStage userName(String userName) { return this; } + /** + *

        The User's full name at the time of this Event occurring.

        + */ @java.lang.Override @JsonSetter(value = "user_name", nulls = Nulls.SKIP) public _FinalStage userName(Optional userName) { diff --git a/src/main/java/com/merge/api/accounting/types/AuditLogEventEventType.java b/src/main/java/com/merge/api/accounting/types/AuditLogEventEventType.java new file mode 100644 index 000000000..ed6a68248 --- /dev/null +++ b/src/main/java/com/merge/api/accounting/types/AuditLogEventEventType.java @@ -0,0 +1,95 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.merge.api.accounting.types; + +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.databind.DeserializationContext; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.fasterxml.jackson.databind.deser.std.StdDeserializer; +import com.merge.api.core.ObjectMappers; +import java.io.IOException; +import java.util.Objects; + +@JsonDeserialize(using = AuditLogEventEventType.Deserializer.class) +public final class AuditLogEventEventType { + private final Object value; + + private final int type; + + private AuditLogEventEventType(Object value, int type) { + this.value = value; + this.type = type; + } + + @JsonValue + public Object get() { + return this.value; + } + + @SuppressWarnings("unchecked") + public T visit(Visitor visitor) { + if (this.type == 0) { + return visitor.visit((EventTypeEnum) this.value); + } else if (this.type == 1) { + return visitor.visit((String) this.value); + } + throw new IllegalStateException("Failed to visit value. This should never happen."); + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof AuditLogEventEventType && equalTo((AuditLogEventEventType) other); + } + + private boolean equalTo(AuditLogEventEventType other) { + return value.equals(other.value); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.value); + } + + @java.lang.Override + public String toString() { + return this.value.toString(); + } + + public static AuditLogEventEventType of(EventTypeEnum value) { + return new AuditLogEventEventType(value, 0); + } + + public static AuditLogEventEventType of(String value) { + return new AuditLogEventEventType(value, 1); + } + + public interface Visitor { + T visit(EventTypeEnum value); + + T visit(String value); + } + + static final class Deserializer extends StdDeserializer { + Deserializer() { + super(AuditLogEventEventType.class); + } + + @java.lang.Override + public AuditLogEventEventType deserialize(JsonParser p, DeserializationContext context) throws IOException { + Object value = p.readValueAs(Object.class); + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, EventTypeEnum.class)); + } catch (IllegalArgumentException e) { + } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, String.class)); + } catch (IllegalArgumentException e) { + } + throw new JsonParseException(p, "Failed to deserialize"); + } + } +} diff --git a/src/main/java/com/merge/api/accounting/types/AuditLogEventRole.java b/src/main/java/com/merge/api/accounting/types/AuditLogEventRole.java new file mode 100644 index 000000000..4add81b3b --- /dev/null +++ b/src/main/java/com/merge/api/accounting/types/AuditLogEventRole.java @@ -0,0 +1,95 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.merge.api.accounting.types; + +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.databind.DeserializationContext; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.fasterxml.jackson.databind.deser.std.StdDeserializer; +import com.merge.api.core.ObjectMappers; +import java.io.IOException; +import java.util.Objects; + +@JsonDeserialize(using = AuditLogEventRole.Deserializer.class) +public final class AuditLogEventRole { + private final Object value; + + private final int type; + + private AuditLogEventRole(Object value, int type) { + this.value = value; + this.type = type; + } + + @JsonValue + public Object get() { + return this.value; + } + + @SuppressWarnings("unchecked") + public T visit(Visitor visitor) { + if (this.type == 0) { + return visitor.visit((RoleEnum) this.value); + } else if (this.type == 1) { + return visitor.visit((String) this.value); + } + throw new IllegalStateException("Failed to visit value. This should never happen."); + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof AuditLogEventRole && equalTo((AuditLogEventRole) other); + } + + private boolean equalTo(AuditLogEventRole other) { + return value.equals(other.value); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.value); + } + + @java.lang.Override + public String toString() { + return this.value.toString(); + } + + public static AuditLogEventRole of(RoleEnum value) { + return new AuditLogEventRole(value, 0); + } + + public static AuditLogEventRole of(String value) { + return new AuditLogEventRole(value, 1); + } + + public interface Visitor { + T visit(RoleEnum value); + + T visit(String value); + } + + static final class Deserializer extends StdDeserializer { + Deserializer() { + super(AuditLogEventRole.class); + } + + @java.lang.Override + public AuditLogEventRole deserialize(JsonParser p, DeserializationContext context) throws IOException { + Object value = p.readValueAs(Object.class); + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, RoleEnum.class)); + } catch (IllegalArgumentException e) { + } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, String.class)); + } catch (IllegalArgumentException e) { + } + throw new JsonParseException(p, "Failed to deserialize"); + } + } +} diff --git a/src/main/java/com/merge/api/accounting/types/AuditTrailListRequest.java b/src/main/java/com/merge/api/accounting/types/AuditTrailListRequest.java index 16ee0ac9a..bd4c33ce3 100644 --- a/src/main/java/com/merge/api/accounting/types/AuditTrailListRequest.java +++ b/src/main/java/com/merge/api/accounting/types/AuditTrailListRequest.java @@ -68,7 +68,7 @@ public Optional getEndDate() { } /** - * @return If included, will only include events with the given event type. Possible values include: CREATED_REMOTE_PRODUCTION_API_KEY, DELETED_REMOTE_PRODUCTION_API_KEY, CREATED_TEST_API_KEY, DELETED_TEST_API_KEY, REGENERATED_PRODUCTION_API_KEY, INVITED_USER, TWO_FACTOR_AUTH_ENABLED, TWO_FACTOR_AUTH_DISABLED, DELETED_LINKED_ACCOUNT, DELETED_ALL_COMMON_MODELS_FOR_LINKED_ACCOUNT, CREATED_DESTINATION, DELETED_DESTINATION, CHANGED_DESTINATION, CHANGED_SCOPES, CHANGED_PERSONAL_INFORMATION, CHANGED_ORGANIZATION_SETTINGS, ENABLED_INTEGRATION, DISABLED_INTEGRATION, ENABLED_CATEGORY, DISABLED_CATEGORY, CHANGED_PASSWORD, RESET_PASSWORD, ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION, ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT, DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION, DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT, CREATED_INTEGRATION_WIDE_FIELD_MAPPING, CREATED_LINKED_ACCOUNT_FIELD_MAPPING, CHANGED_INTEGRATION_WIDE_FIELD_MAPPING, CHANGED_LINKED_ACCOUNT_FIELD_MAPPING, DELETED_INTEGRATION_WIDE_FIELD_MAPPING, DELETED_LINKED_ACCOUNT_FIELD_MAPPING, CREATED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE, CHANGED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE, DELETED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE, FORCED_LINKED_ACCOUNT_RESYNC, MUTED_ISSUE, GENERATED_MAGIC_LINK, ENABLED_MERGE_WEBHOOK, DISABLED_MERGE_WEBHOOK, MERGE_WEBHOOK_TARGET_CHANGED, END_USER_CREDENTIALS_ACCESSED + * @return If included, will only include events with the given event type. Possible values include: CREATED_REMOTE_PRODUCTION_API_KEY, DELETED_REMOTE_PRODUCTION_API_KEY, CREATED_TEST_API_KEY, DELETED_TEST_API_KEY, REGENERATED_PRODUCTION_API_KEY, REGENERATED_WEBHOOK_SIGNATURE, INVITED_USER, TWO_FACTOR_AUTH_ENABLED, TWO_FACTOR_AUTH_DISABLED, DELETED_LINKED_ACCOUNT, DELETED_ALL_COMMON_MODELS_FOR_LINKED_ACCOUNT, CREATED_DESTINATION, DELETED_DESTINATION, CHANGED_DESTINATION, CHANGED_SCOPES, CHANGED_PERSONAL_INFORMATION, CHANGED_ORGANIZATION_SETTINGS, ENABLED_INTEGRATION, DISABLED_INTEGRATION, ENABLED_CATEGORY, DISABLED_CATEGORY, CHANGED_PASSWORD, RESET_PASSWORD, ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION, ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT, DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION, DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT, CREATED_INTEGRATION_WIDE_FIELD_MAPPING, CREATED_LINKED_ACCOUNT_FIELD_MAPPING, CHANGED_INTEGRATION_WIDE_FIELD_MAPPING, CHANGED_LINKED_ACCOUNT_FIELD_MAPPING, DELETED_INTEGRATION_WIDE_FIELD_MAPPING, DELETED_LINKED_ACCOUNT_FIELD_MAPPING, CREATED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE, CHANGED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE, DELETED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE, FORCED_LINKED_ACCOUNT_RESYNC, MUTED_ISSUE, GENERATED_MAGIC_LINK, ENABLED_MERGE_WEBHOOK, DISABLED_MERGE_WEBHOOK, MERGE_WEBHOOK_TARGET_CHANGED, END_USER_CREDENTIALS_ACCESSED */ @JsonProperty("event_type") public Optional getEventType() { @@ -162,6 +162,9 @@ public Builder from(AuditTrailListRequest other) { return this; } + /** + *

        The pagination cursor value.

        + */ @JsonSetter(value = "cursor", nulls = Nulls.SKIP) public Builder cursor(Optional cursor) { this.cursor = cursor; @@ -173,6 +176,9 @@ public Builder cursor(String cursor) { return this; } + /** + *

        If included, will only include audit trail events that occurred before this time

        + */ @JsonSetter(value = "end_date", nulls = Nulls.SKIP) public Builder endDate(Optional endDate) { this.endDate = endDate; @@ -184,6 +190,9 @@ public Builder endDate(String endDate) { return this; } + /** + *

        If included, will only include events with the given event type. Possible values include: CREATED_REMOTE_PRODUCTION_API_KEY, DELETED_REMOTE_PRODUCTION_API_KEY, CREATED_TEST_API_KEY, DELETED_TEST_API_KEY, REGENERATED_PRODUCTION_API_KEY, REGENERATED_WEBHOOK_SIGNATURE, INVITED_USER, TWO_FACTOR_AUTH_ENABLED, TWO_FACTOR_AUTH_DISABLED, DELETED_LINKED_ACCOUNT, DELETED_ALL_COMMON_MODELS_FOR_LINKED_ACCOUNT, CREATED_DESTINATION, DELETED_DESTINATION, CHANGED_DESTINATION, CHANGED_SCOPES, CHANGED_PERSONAL_INFORMATION, CHANGED_ORGANIZATION_SETTINGS, ENABLED_INTEGRATION, DISABLED_INTEGRATION, ENABLED_CATEGORY, DISABLED_CATEGORY, CHANGED_PASSWORD, RESET_PASSWORD, ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION, ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT, DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION, DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT, CREATED_INTEGRATION_WIDE_FIELD_MAPPING, CREATED_LINKED_ACCOUNT_FIELD_MAPPING, CHANGED_INTEGRATION_WIDE_FIELD_MAPPING, CHANGED_LINKED_ACCOUNT_FIELD_MAPPING, DELETED_INTEGRATION_WIDE_FIELD_MAPPING, DELETED_LINKED_ACCOUNT_FIELD_MAPPING, CREATED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE, CHANGED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE, DELETED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE, FORCED_LINKED_ACCOUNT_RESYNC, MUTED_ISSUE, GENERATED_MAGIC_LINK, ENABLED_MERGE_WEBHOOK, DISABLED_MERGE_WEBHOOK, MERGE_WEBHOOK_TARGET_CHANGED, END_USER_CREDENTIALS_ACCESSED

        + */ @JsonSetter(value = "event_type", nulls = Nulls.SKIP) public Builder eventType(Optional eventType) { this.eventType = eventType; @@ -195,6 +204,9 @@ public Builder eventType(String eventType) { return this; } + /** + *

        Number of results to return per page.

        + */ @JsonSetter(value = "page_size", nulls = Nulls.SKIP) public Builder pageSize(Optional pageSize) { this.pageSize = pageSize; @@ -206,6 +218,9 @@ public Builder pageSize(Integer pageSize) { return this; } + /** + *

        If included, will only include audit trail events that occurred after this time

        + */ @JsonSetter(value = "start_date", nulls = Nulls.SKIP) public Builder startDate(Optional startDate) { this.startDate = startDate; @@ -217,6 +232,9 @@ public Builder startDate(String startDate) { return this; } + /** + *

        If provided, this will return events associated with the specified user email. Please note that the email address reflects the user's email at the time of the event, and may not be their current email.

        + */ @JsonSetter(value = "user_email", nulls = Nulls.SKIP) public Builder userEmail(Optional userEmail) { this.userEmail = userEmail; diff --git a/src/main/java/com/merge/api/accounting/types/BalanceSheet.java b/src/main/java/com/merge/api/accounting/types/BalanceSheet.java index bca1270f3..56351c782 100644 --- a/src/main/java/com/merge/api/accounting/types/BalanceSheet.java +++ b/src/main/java/com/merge/api/accounting/types/BalanceSheet.java @@ -33,7 +33,7 @@ public final class BalanceSheet { private final Optional name; - private final Optional currency; + private final Optional currency; private final Optional company; @@ -63,7 +63,7 @@ private BalanceSheet( Optional createdAt, Optional modifiedAt, Optional name, - Optional currency, + Optional currency, Optional company, Optional date, Optional netAssets, @@ -443,7 +443,7 @@ public Optional getName() { *
      */ @JsonProperty("currency") - public Optional getCurrency() { + public Optional getCurrency() { return currency; } @@ -584,7 +584,7 @@ public static final class Builder { private Optional name = Optional.empty(); - private Optional currency = Optional.empty(); + private Optional currency = Optional.empty(); private Optional company = Optional.empty(); @@ -642,6 +642,9 @@ public Builder id(String id) { return this; } + /** + *

      The third-party API ID of the matching object.

      + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; @@ -653,6 +656,9 @@ public Builder remoteId(String remoteId) { return this; } + /** + *

      The datetime that this object was created by Merge.

      + */ @JsonSetter(value = "created_at", nulls = Nulls.SKIP) public Builder createdAt(Optional createdAt) { this.createdAt = createdAt; @@ -664,6 +670,9 @@ public Builder createdAt(OffsetDateTime createdAt) { return this; } + /** + *

      The datetime that this object was modified by Merge.

      + */ @JsonSetter(value = "modified_at", nulls = Nulls.SKIP) public Builder modifiedAt(Optional modifiedAt) { this.modifiedAt = modifiedAt; @@ -675,6 +684,9 @@ public Builder modifiedAt(OffsetDateTime modifiedAt) { return this; } + /** + *

      The balance sheet's name.

      + */ @JsonSetter(value = "name", nulls = Nulls.SKIP) public Builder name(Optional name) { this.name = name; @@ -686,17 +698,331 @@ public Builder name(String name) { return this; } + /** + *

      The balance sheet's currency.

      + *
        + *
      • XUA - ADB Unit of Account
      • + *
      • AFN - Afghan Afghani
      • + *
      • AFA - Afghan Afghani (1927–2002)
      • + *
      • ALL - Albanian Lek
      • + *
      • ALK - Albanian Lek (1946–1965)
      • + *
      • DZD - Algerian Dinar
      • + *
      • ADP - Andorran Peseta
      • + *
      • AOA - Angolan Kwanza
      • + *
      • AOK - Angolan Kwanza (1977–1991)
      • + *
      • AON - Angolan New Kwanza (1990–2000)
      • + *
      • AOR - Angolan Readjusted Kwanza (1995–1999)
      • + *
      • ARA - Argentine Austral
      • + *
      • ARS - Argentine Peso
      • + *
      • ARM - Argentine Peso (1881–1970)
      • + *
      • ARP - Argentine Peso (1983–1985)
      • + *
      • ARL - Argentine Peso Ley (1970–1983)
      • + *
      • AMD - Armenian Dram
      • + *
      • AWG - Aruban Florin
      • + *
      • AUD - Australian Dollar
      • + *
      • ATS - Austrian Schilling
      • + *
      • AZN - Azerbaijani Manat
      • + *
      • AZM - Azerbaijani Manat (1993–2006)
      • + *
      • BSD - Bahamian Dollar
      • + *
      • BHD - Bahraini Dinar
      • + *
      • BDT - Bangladeshi Taka
      • + *
      • BBD - Barbadian Dollar
      • + *
      • BYN - Belarusian Ruble
      • + *
      • BYB - Belarusian Ruble (1994–1999)
      • + *
      • BYR - Belarusian Ruble (2000–2016)
      • + *
      • BEF - Belgian Franc
      • + *
      • BEC - Belgian Franc (convertible)
      • + *
      • BEL - Belgian Franc (financial)
      • + *
      • BZD - Belize Dollar
      • + *
      • BMD - Bermudan Dollar
      • + *
      • BTN - Bhutanese Ngultrum
      • + *
      • BOB - Bolivian Boliviano
      • + *
      • BOL - Bolivian Boliviano (1863–1963)
      • + *
      • BOV - Bolivian Mvdol
      • + *
      • BOP - Bolivian Peso
      • + *
      • BAM - Bosnia-Herzegovina Convertible Mark
      • + *
      • BAD - Bosnia-Herzegovina Dinar (1992–1994)
      • + *
      • BAN - Bosnia-Herzegovina New Dinar (1994–1997)
      • + *
      • BWP - Botswanan Pula
      • + *
      • BRC - Brazilian Cruzado (1986–1989)
      • + *
      • BRZ - Brazilian Cruzeiro (1942–1967)
      • + *
      • BRE - Brazilian Cruzeiro (1990–1993)
      • + *
      • BRR - Brazilian Cruzeiro (1993–1994)
      • + *
      • BRN - Brazilian New Cruzado (1989–1990)
      • + *
      • BRB - Brazilian New Cruzeiro (1967–1986)
      • + *
      • BRL - Brazilian Real
      • + *
      • GBP - British Pound
      • + *
      • BND - Brunei Dollar
      • + *
      • BGL - Bulgarian Hard Lev
      • + *
      • BGN - Bulgarian Lev
      • + *
      • BGO - Bulgarian Lev (1879–1952)
      • + *
      • BGM - Bulgarian Socialist Lev
      • + *
      • BUK - Burmese Kyat
      • + *
      • BIF - Burundian Franc
      • + *
      • XPF - CFP Franc
      • + *
      • KHR - Cambodian Riel
      • + *
      • CAD - Canadian Dollar
      • + *
      • CVE - Cape Verdean Escudo
      • + *
      • KYD - Cayman Islands Dollar
      • + *
      • XAF - Central African CFA Franc
      • + *
      • CLE - Chilean Escudo
      • + *
      • CLP - Chilean Peso
      • + *
      • CLF - Chilean Unit of Account (UF)
      • + *
      • CNX - Chinese People’s Bank Dollar
      • + *
      • CNY - Chinese Yuan
      • + *
      • CNH - Chinese Yuan (offshore)
      • + *
      • COP - Colombian Peso
      • + *
      • COU - Colombian Real Value Unit
      • + *
      • KMF - Comorian Franc
      • + *
      • CDF - Congolese Franc
      • + *
      • CRC - Costa Rican Colón
      • + *
      • HRD - Croatian Dinar
      • + *
      • HRK - Croatian Kuna
      • + *
      • CUC - Cuban Convertible Peso
      • + *
      • CUP - Cuban Peso
      • + *
      • CYP - Cypriot Pound
      • + *
      • CZK - Czech Koruna
      • + *
      • CSK - Czechoslovak Hard Koruna
      • + *
      • DKK - Danish Krone
      • + *
      • DJF - Djiboutian Franc
      • + *
      • DOP - Dominican Peso
      • + *
      • NLG - Dutch Guilder
      • + *
      • XCD - East Caribbean Dollar
      • + *
      • DDM - East German Mark
      • + *
      • ECS - Ecuadorian Sucre
      • + *
      • ECV - Ecuadorian Unit of Constant Value
      • + *
      • EGP - Egyptian Pound
      • + *
      • GQE - Equatorial Guinean Ekwele
      • + *
      • ERN - Eritrean Nakfa
      • + *
      • EEK - Estonian Kroon
      • + *
      • ETB - Ethiopian Birr
      • + *
      • EUR - Euro
      • + *
      • XBA - European Composite Unit
      • + *
      • XEU - European Currency Unit
      • + *
      • XBB - European Monetary Unit
      • + *
      • XBC - European Unit of Account (XBC)
      • + *
      • XBD - European Unit of Account (XBD)
      • + *
      • FKP - Falkland Islands Pound
      • + *
      • FJD - Fijian Dollar
      • + *
      • FIM - Finnish Markka
      • + *
      • FRF - French Franc
      • + *
      • XFO - French Gold Franc
      • + *
      • XFU - French UIC-Franc
      • + *
      • GMD - Gambian Dalasi
      • + *
      • GEK - Georgian Kupon Larit
      • + *
      • GEL - Georgian Lari
      • + *
      • DEM - German Mark
      • + *
      • GHS - Ghanaian Cedi
      • + *
      • GHC - Ghanaian Cedi (1979–2007)
      • + *
      • GIP - Gibraltar Pound
      • + *
      • XAU - Gold
      • + *
      • GRD - Greek Drachma
      • + *
      • GTQ - Guatemalan Quetzal
      • + *
      • GWP - Guinea-Bissau Peso
      • + *
      • GNF - Guinean Franc
      • + *
      • GNS - Guinean Syli
      • + *
      • GYD - Guyanaese Dollar
      • + *
      • HTG - Haitian Gourde
      • + *
      • HNL - Honduran Lempira
      • + *
      • HKD - Hong Kong Dollar
      • + *
      • HUF - Hungarian Forint
      • + *
      • IMP - IMP
      • + *
      • ISK - Icelandic Króna
      • + *
      • ISJ - Icelandic Króna (1918–1981)
      • + *
      • INR - Indian Rupee
      • + *
      • IDR - Indonesian Rupiah
      • + *
      • IRR - Iranian Rial
      • + *
      • IQD - Iraqi Dinar
      • + *
      • IEP - Irish Pound
      • + *
      • ILS - Israeli New Shekel
      • + *
      • ILP - Israeli Pound
      • + *
      • ILR - Israeli Shekel (1980–1985)
      • + *
      • ITL - Italian Lira
      • + *
      • JMD - Jamaican Dollar
      • + *
      • JPY - Japanese Yen
      • + *
      • JOD - Jordanian Dinar
      • + *
      • KZT - Kazakhstani Tenge
      • + *
      • KES - Kenyan Shilling
      • + *
      • KWD - Kuwaiti Dinar
      • + *
      • KGS - Kyrgystani Som
      • + *
      • LAK - Laotian Kip
      • + *
      • LVL - Latvian Lats
      • + *
      • LVR - Latvian Ruble
      • + *
      • LBP - Lebanese Pound
      • + *
      • LSL - Lesotho Loti
      • + *
      • LRD - Liberian Dollar
      • + *
      • LYD - Libyan Dinar
      • + *
      • LTL - Lithuanian Litas
      • + *
      • LTT - Lithuanian Talonas
      • + *
      • LUL - Luxembourg Financial Franc
      • + *
      • LUC - Luxembourgian Convertible Franc
      • + *
      • LUF - Luxembourgian Franc
      • + *
      • MOP - Macanese Pataca
      • + *
      • MKD - Macedonian Denar
      • + *
      • MKN - Macedonian Denar (1992–1993)
      • + *
      • MGA - Malagasy Ariary
      • + *
      • MGF - Malagasy Franc
      • + *
      • MWK - Malawian Kwacha
      • + *
      • MYR - Malaysian Ringgit
      • + *
      • MVR - Maldivian Rufiyaa
      • + *
      • MVP - Maldivian Rupee (1947–1981)
      • + *
      • MLF - Malian Franc
      • + *
      • MTL - Maltese Lira
      • + *
      • MTP - Maltese Pound
      • + *
      • MRU - Mauritanian Ouguiya
      • + *
      • MRO - Mauritanian Ouguiya (1973–2017)
      • + *
      • MUR - Mauritian Rupee
      • + *
      • MXV - Mexican Investment Unit
      • + *
      • MXN - Mexican Peso
      • + *
      • MXP - Mexican Silver Peso (1861–1992)
      • + *
      • MDC - Moldovan Cupon
      • + *
      • MDL - Moldovan Leu
      • + *
      • MCF - Monegasque Franc
      • + *
      • MNT - Mongolian Tugrik
      • + *
      • MAD - Moroccan Dirham
      • + *
      • MAF - Moroccan Franc
      • + *
      • MZE - Mozambican Escudo
      • + *
      • MZN - Mozambican Metical
      • + *
      • MZM - Mozambican Metical (1980–2006)
      • + *
      • MMK - Myanmar Kyat
      • + *
      • NAD - Namibian Dollar
      • + *
      • NPR - Nepalese Rupee
      • + *
      • ANG - Netherlands Antillean Guilder
      • + *
      • TWD - New Taiwan Dollar
      • + *
      • NZD - New Zealand Dollar
      • + *
      • NIO - Nicaraguan Córdoba
      • + *
      • NIC - Nicaraguan Córdoba (1988–1991)
      • + *
      • NGN - Nigerian Naira
      • + *
      • KPW - North Korean Won
      • + *
      • NOK - Norwegian Krone
      • + *
      • OMR - Omani Rial
      • + *
      • PKR - Pakistani Rupee
      • + *
      • XPD - Palladium
      • + *
      • PAB - Panamanian Balboa
      • + *
      • PGK - Papua New Guinean Kina
      • + *
      • PYG - Paraguayan Guarani
      • + *
      • PEI - Peruvian Inti
      • + *
      • PEN - Peruvian Sol
      • + *
      • PES - Peruvian Sol (1863–1965)
      • + *
      • PHP - Philippine Peso
      • + *
      • XPT - Platinum
      • + *
      • PLN - Polish Zloty
      • + *
      • PLZ - Polish Zloty (1950–1995)
      • + *
      • PTE - Portuguese Escudo
      • + *
      • GWE - Portuguese Guinea Escudo
      • + *
      • QAR - Qatari Rial
      • + *
      • XRE - RINET Funds
      • + *
      • RHD - Rhodesian Dollar
      • + *
      • RON - Romanian Leu
      • + *
      • ROL - Romanian Leu (1952–2006)
      • + *
      • RUB - Russian Ruble
      • + *
      • RUR - Russian Ruble (1991–1998)
      • + *
      • RWF - Rwandan Franc
      • + *
      • SVC - Salvadoran Colón
      • + *
      • WST - Samoan Tala
      • + *
      • SAR - Saudi Riyal
      • + *
      • RSD - Serbian Dinar
      • + *
      • CSD - Serbian Dinar (2002–2006)
      • + *
      • SCR - Seychellois Rupee
      • + *
      • SLL - Sierra Leonean Leone
      • + *
      • XAG - Silver
      • + *
      • SGD - Singapore Dollar
      • + *
      • SKK - Slovak Koruna
      • + *
      • SIT - Slovenian Tolar
      • + *
      • SBD - Solomon Islands Dollar
      • + *
      • SOS - Somali Shilling
      • + *
      • ZAR - South African Rand
      • + *
      • ZAL - South African Rand (financial)
      • + *
      • KRH - South Korean Hwan (1953–1962)
      • + *
      • KRW - South Korean Won
      • + *
      • KRO - South Korean Won (1945–1953)
      • + *
      • SSP - South Sudanese Pound
      • + *
      • SUR - Soviet Rouble
      • + *
      • ESP - Spanish Peseta
      • + *
      • ESA - Spanish Peseta (A account)
      • + *
      • ESB - Spanish Peseta (convertible account)
      • + *
      • XDR - Special Drawing Rights
      • + *
      • LKR - Sri Lankan Rupee
      • + *
      • SHP - St. Helena Pound
      • + *
      • XSU - Sucre
      • + *
      • SDD - Sudanese Dinar (1992–2007)
      • + *
      • SDG - Sudanese Pound
      • + *
      • SDP - Sudanese Pound (1957–1998)
      • + *
      • SRD - Surinamese Dollar
      • + *
      • SRG - Surinamese Guilder
      • + *
      • SZL - Swazi Lilangeni
      • + *
      • SEK - Swedish Krona
      • + *
      • CHF - Swiss Franc
      • + *
      • SYP - Syrian Pound
      • + *
      • STN - São Tomé & Príncipe Dobra
      • + *
      • STD - São Tomé & Príncipe Dobra (1977–2017)
      • + *
      • TVD - TVD
      • + *
      • TJR - Tajikistani Ruble
      • + *
      • TJS - Tajikistani Somoni
      • + *
      • TZS - Tanzanian Shilling
      • + *
      • XTS - Testing Currency Code
      • + *
      • THB - Thai Baht
      • + *
      • XXX - The codes assigned for transactions where no currency is involved
      • + *
      • TPE - Timorese Escudo
      • + *
      • TOP - Tongan Paʻanga
      • + *
      • TTD - Trinidad & Tobago Dollar
      • + *
      • TND - Tunisian Dinar
      • + *
      • TRY - Turkish Lira
      • + *
      • TRL - Turkish Lira (1922–2005)
      • + *
      • TMT - Turkmenistani Manat
      • + *
      • TMM - Turkmenistani Manat (1993–2009)
      • + *
      • USD - US Dollar
      • + *
      • USN - US Dollar (Next day)
      • + *
      • USS - US Dollar (Same day)
      • + *
      • UGX - Ugandan Shilling
      • + *
      • UGS - Ugandan Shilling (1966–1987)
      • + *
      • UAH - Ukrainian Hryvnia
      • + *
      • UAK - Ukrainian Karbovanets
      • + *
      • AED - United Arab Emirates Dirham
      • + *
      • UYW - Uruguayan Nominal Wage Index Unit
      • + *
      • UYU - Uruguayan Peso
      • + *
      • UYP - Uruguayan Peso (1975–1993)
      • + *
      • UYI - Uruguayan Peso (Indexed Units)
      • + *
      • UZS - Uzbekistani Som
      • + *
      • VUV - Vanuatu Vatu
      • + *
      • VES - Venezuelan Bolívar
      • + *
      • VEB - Venezuelan Bolívar (1871–2008)
      • + *
      • VEF - Venezuelan Bolívar (2008–2018)
      • + *
      • VND - Vietnamese Dong
      • + *
      • VNN - Vietnamese Dong (1978–1985)
      • + *
      • CHE - WIR Euro
      • + *
      • CHW - WIR Franc
      • + *
      • XOF - West African CFA Franc
      • + *
      • YDD - Yemeni Dinar
      • + *
      • YER - Yemeni Rial
      • + *
      • YUN - Yugoslavian Convertible Dinar (1990–1992)
      • + *
      • YUD - Yugoslavian Hard Dinar (1966–1990)
      • + *
      • YUM - Yugoslavian New Dinar (1994–2002)
      • + *
      • YUR - Yugoslavian Reformed Dinar (1992–1993)
      • + *
      • ZWN - ZWN
      • + *
      • ZRN - Zairean New Zaire (1993–1998)
      • + *
      • ZRZ - Zairean Zaire (1971–1993)
      • + *
      • ZMW - Zambian Kwacha
      • + *
      • ZMK - Zambian Kwacha (1968–2012)
      • + *
      • ZWD - Zimbabwean Dollar (1980–2008)
      • + *
      • ZWR - Zimbabwean Dollar (2008)
      • + *
      • ZWL - Zimbabwean Dollar (2009)
      • + *
      + */ @JsonSetter(value = "currency", nulls = Nulls.SKIP) - public Builder currency(Optional currency) { + public Builder currency(Optional currency) { this.currency = currency; return this; } - public Builder currency(TransactionCurrencyEnum currency) { + public Builder currency(BalanceSheetCurrency currency) { this.currency = Optional.ofNullable(currency); return this; } + /** + *

      Company object for the given BalanceSheet object.

      + */ @JsonSetter(value = "company", nulls = Nulls.SKIP) public Builder company(Optional company) { this.company = company; @@ -708,6 +1034,9 @@ public Builder company(BalanceSheetCompany company) { return this; } + /** + *

      The balance sheet's date. The balance sheet data will reflect the company's financial position this point in time.

      + */ @JsonSetter(value = "date", nulls = Nulls.SKIP) public Builder date(Optional date) { this.date = date; @@ -719,6 +1048,9 @@ public Builder date(OffsetDateTime date) { return this; } + /** + *

      The balance sheet's net assets.

      + */ @JsonSetter(value = "net_assets", nulls = Nulls.SKIP) public Builder netAssets(Optional netAssets) { this.netAssets = netAssets; @@ -763,6 +1095,9 @@ public Builder equity(List equity) { return this; } + /** + *

      The time that balance sheet was generated by the accounting system.

      + */ @JsonSetter(value = "remote_generated_at", nulls = Nulls.SKIP) public Builder remoteGeneratedAt(Optional remoteGeneratedAt) { this.remoteGeneratedAt = remoteGeneratedAt; @@ -774,6 +1109,9 @@ public Builder remoteGeneratedAt(OffsetDateTime remoteGeneratedAt) { return this; } + /** + *

      Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

      + */ @JsonSetter(value = "remote_was_deleted", nulls = Nulls.SKIP) public Builder remoteWasDeleted(Optional remoteWasDeleted) { this.remoteWasDeleted = remoteWasDeleted; diff --git a/src/main/java/com/merge/api/accounting/types/BalanceSheetCurrency.java b/src/main/java/com/merge/api/accounting/types/BalanceSheetCurrency.java new file mode 100644 index 000000000..727c4e2b8 --- /dev/null +++ b/src/main/java/com/merge/api/accounting/types/BalanceSheetCurrency.java @@ -0,0 +1,95 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.merge.api.accounting.types; + +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.databind.DeserializationContext; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.fasterxml.jackson.databind.deser.std.StdDeserializer; +import com.merge.api.core.ObjectMappers; +import java.io.IOException; +import java.util.Objects; + +@JsonDeserialize(using = BalanceSheetCurrency.Deserializer.class) +public final class BalanceSheetCurrency { + private final Object value; + + private final int type; + + private BalanceSheetCurrency(Object value, int type) { + this.value = value; + this.type = type; + } + + @JsonValue + public Object get() { + return this.value; + } + + @SuppressWarnings("unchecked") + public T visit(Visitor visitor) { + if (this.type == 0) { + return visitor.visit((TransactionCurrencyEnum) this.value); + } else if (this.type == 1) { + return visitor.visit((String) this.value); + } + throw new IllegalStateException("Failed to visit value. This should never happen."); + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof BalanceSheetCurrency && equalTo((BalanceSheetCurrency) other); + } + + private boolean equalTo(BalanceSheetCurrency other) { + return value.equals(other.value); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.value); + } + + @java.lang.Override + public String toString() { + return this.value.toString(); + } + + public static BalanceSheetCurrency of(TransactionCurrencyEnum value) { + return new BalanceSheetCurrency(value, 0); + } + + public static BalanceSheetCurrency of(String value) { + return new BalanceSheetCurrency(value, 1); + } + + public interface Visitor { + T visit(TransactionCurrencyEnum value); + + T visit(String value); + } + + static final class Deserializer extends StdDeserializer { + Deserializer() { + super(BalanceSheetCurrency.class); + } + + @java.lang.Override + public BalanceSheetCurrency deserialize(JsonParser p, DeserializationContext context) throws IOException { + Object value = p.readValueAs(Object.class); + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, TransactionCurrencyEnum.class)); + } catch (IllegalArgumentException e) { + } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, String.class)); + } catch (IllegalArgumentException e) { + } + throw new JsonParseException(p, "Failed to deserialize"); + } + } +} diff --git a/src/main/java/com/merge/api/accounting/types/BalanceSheetsListRequest.java b/src/main/java/com/merge/api/accounting/types/BalanceSheetsListRequest.java index f46c44502..e9bef96f3 100644 --- a/src/main/java/com/merge/api/accounting/types/BalanceSheetsListRequest.java +++ b/src/main/java/com/merge/api/accounting/types/BalanceSheetsListRequest.java @@ -273,6 +273,9 @@ public Builder from(BalanceSheetsListRequest other) { return this; } + /** + *

      Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.

      + */ @JsonSetter(value = "expand", nulls = Nulls.SKIP) public Builder expand(Optional> expand) { this.expand = expand; @@ -289,6 +292,9 @@ public Builder expand(String expand) { return this; } + /** + *

      If provided, will only return balance sheets for this company.

      + */ @JsonSetter(value = "company_id", nulls = Nulls.SKIP) public Builder companyId(Optional companyId) { this.companyId = companyId; @@ -300,6 +306,9 @@ public Builder companyId(String companyId) { return this; } + /** + *

      If provided, will only return objects created after this datetime.

      + */ @JsonSetter(value = "created_after", nulls = Nulls.SKIP) public Builder createdAfter(Optional createdAfter) { this.createdAfter = createdAfter; @@ -311,6 +320,9 @@ public Builder createdAfter(OffsetDateTime createdAfter) { return this; } + /** + *

      If provided, will only return objects created before this datetime.

      + */ @JsonSetter(value = "created_before", nulls = Nulls.SKIP) public Builder createdBefore(Optional createdBefore) { this.createdBefore = createdBefore; @@ -322,6 +334,9 @@ public Builder createdBefore(OffsetDateTime createdBefore) { return this; } + /** + *

      The pagination cursor value.

      + */ @JsonSetter(value = "cursor", nulls = Nulls.SKIP) public Builder cursor(Optional cursor) { this.cursor = cursor; @@ -333,6 +348,9 @@ public Builder cursor(String cursor) { return this; } + /** + *

      Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

      + */ @JsonSetter(value = "include_deleted_data", nulls = Nulls.SKIP) public Builder includeDeletedData(Optional includeDeletedData) { this.includeDeletedData = includeDeletedData; @@ -344,6 +362,9 @@ public Builder includeDeletedData(Boolean includeDeletedData) { return this; } + /** + *

      Whether to include the original data Merge fetched from the third-party to produce these models.

      + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -355,6 +376,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

      Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

      + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; @@ -366,6 +390,9 @@ public Builder includeShellData(Boolean includeShellData) { return this; } + /** + *

      If provided, only objects synced by Merge after this date time will be returned.

      + */ @JsonSetter(value = "modified_after", nulls = Nulls.SKIP) public Builder modifiedAfter(Optional modifiedAfter) { this.modifiedAfter = modifiedAfter; @@ -377,6 +404,9 @@ public Builder modifiedAfter(OffsetDateTime modifiedAfter) { return this; } + /** + *

      If provided, only objects synced by Merge before this date time will be returned.

      + */ @JsonSetter(value = "modified_before", nulls = Nulls.SKIP) public Builder modifiedBefore(Optional modifiedBefore) { this.modifiedBefore = modifiedBefore; @@ -388,6 +418,9 @@ public Builder modifiedBefore(OffsetDateTime modifiedBefore) { return this; } + /** + *

      Number of results to return per page.

      + */ @JsonSetter(value = "page_size", nulls = Nulls.SKIP) public Builder pageSize(Optional pageSize) { this.pageSize = pageSize; @@ -399,6 +432,9 @@ public Builder pageSize(Integer pageSize) { return this; } + /** + *

      The API provider's ID for the given object.

      + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; diff --git a/src/main/java/com/merge/api/accounting/types/BalanceSheetsRetrieveRequest.java b/src/main/java/com/merge/api/accounting/types/BalanceSheetsRetrieveRequest.java index 0a709b786..365ecf1a7 100644 --- a/src/main/java/com/merge/api/accounting/types/BalanceSheetsRetrieveRequest.java +++ b/src/main/java/com/merge/api/accounting/types/BalanceSheetsRetrieveRequest.java @@ -116,6 +116,9 @@ public Builder from(BalanceSheetsRetrieveRequest other) { return this; } + /** + *

      Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.

      + */ @JsonSetter(value = "expand", nulls = Nulls.SKIP) public Builder expand(Optional> expand) { this.expand = expand; @@ -132,6 +135,9 @@ public Builder expand(String expand) { return this; } + /** + *

      Whether to include the original data Merge fetched from the third-party to produce these models.

      + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -143,6 +149,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

      Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

      + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; diff --git a/src/main/java/com/merge/api/accounting/types/BankFeedAccount.java b/src/main/java/com/merge/api/accounting/types/BankFeedAccount.java index 4c8bf2d8f..2cc32aea3 100644 --- a/src/main/java/com/merge/api/accounting/types/BankFeedAccount.java +++ b/src/main/java/com/merge/api/accounting/types/BankFeedAccount.java @@ -41,15 +41,15 @@ public final class BankFeedAccount { private final Optional targetAccountName; - private final Optional currency; + private final Optional currency; - private final Optional feedStatus; + private final Optional feedStatus; private final Optional feedStartDate; private final Optional sourceAccountBalance; - private final Optional accountType; + private final Optional accountType; private final Optional remoteWasDeleted; @@ -69,11 +69,11 @@ private BankFeedAccount( Optional sourceAccountName, Optional sourceAccountNumber, Optional targetAccountName, - Optional currency, - Optional feedStatus, + Optional currency, + Optional feedStatus, Optional feedStartDate, Optional sourceAccountBalance, - Optional accountType, + Optional accountType, Optional remoteWasDeleted, Optional> fieldMappings, Optional>>> remoteData, @@ -479,7 +479,7 @@ public Optional getTargetAccountName() { *
    */ @JsonProperty("currency") - public Optional getCurrency() { + public Optional getCurrency() { return currency; } @@ -491,7 +491,7 @@ public Optional getCurrency() { * */ @JsonProperty("feed_status") - public Optional getFeedStatus() { + public Optional getFeedStatus() { return feedStatus; } @@ -519,7 +519,7 @@ public Optional getSourceAccountBalance() { * */ @JsonProperty("account_type") - public Optional getAccountType() { + public Optional getAccountType() { return accountType; } @@ -623,15 +623,15 @@ public static final class Builder { private Optional targetAccountName = Optional.empty(); - private Optional currency = Optional.empty(); + private Optional currency = Optional.empty(); - private Optional feedStatus = Optional.empty(); + private Optional feedStatus = Optional.empty(); private Optional feedStartDate = Optional.empty(); private Optional sourceAccountBalance = Optional.empty(); - private Optional accountType = Optional.empty(); + private Optional accountType = Optional.empty(); private Optional remoteWasDeleted = Optional.empty(); @@ -676,6 +676,9 @@ public Builder id(String id) { return this; } + /** + *

    The third-party API ID of the matching object.

    + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; @@ -687,6 +690,9 @@ public Builder remoteId(String remoteId) { return this; } + /** + *

    The datetime that this object was created by Merge.

    + */ @JsonSetter(value = "created_at", nulls = Nulls.SKIP) public Builder createdAt(Optional createdAt) { this.createdAt = createdAt; @@ -698,6 +704,9 @@ public Builder createdAt(OffsetDateTime createdAt) { return this; } + /** + *

    The datetime that this object was modified by Merge.

    + */ @JsonSetter(value = "modified_at", nulls = Nulls.SKIP) public Builder modifiedAt(Optional modifiedAt) { this.modifiedAt = modifiedAt; @@ -709,6 +718,9 @@ public Builder modifiedAt(OffsetDateTime modifiedAt) { return this; } + /** + *

    The unique identifier of the source account from our customer’s platform.

    + */ @JsonSetter(value = "source_account_id", nulls = Nulls.SKIP) public Builder sourceAccountId(Optional sourceAccountId) { this.sourceAccountId = sourceAccountId; @@ -720,6 +732,9 @@ public Builder sourceAccountId(String sourceAccountId) { return this; } + /** + *

    The unique identifier of the target account from the third party software.

    + */ @JsonSetter(value = "target_account_id", nulls = Nulls.SKIP) public Builder targetAccountId(Optional targetAccountId) { this.targetAccountId = targetAccountId; @@ -731,6 +746,9 @@ public Builder targetAccountId(String targetAccountId) { return this; } + /** + *

    The name of the source account as stored in our customer’s platform.

    + */ @JsonSetter(value = "source_account_name", nulls = Nulls.SKIP) public Builder sourceAccountName(Optional sourceAccountName) { this.sourceAccountName = sourceAccountName; @@ -742,6 +760,9 @@ public Builder sourceAccountName(String sourceAccountName) { return this; } + /** + *

    The human-readable account number of the source account as stored in our customer’s platform.

    + */ @JsonSetter(value = "source_account_number", nulls = Nulls.SKIP) public Builder sourceAccountNumber(Optional sourceAccountNumber) { this.sourceAccountNumber = sourceAccountNumber; @@ -753,6 +774,9 @@ public Builder sourceAccountNumber(String sourceAccountNumber) { return this; } + /** + *

    The name of the target account from the third party software.

    + */ @JsonSetter(value = "target_account_name", nulls = Nulls.SKIP) public Builder targetAccountName(Optional targetAccountName) { this.targetAccountName = targetAccountName; @@ -764,28 +788,349 @@ public Builder targetAccountName(String targetAccountName) { return this; } + /** + *

    The currency code of the bank feed.

    + *
      + *
    • XUA - ADB Unit of Account
    • + *
    • AFN - Afghan Afghani
    • + *
    • AFA - Afghan Afghani (1927–2002)
    • + *
    • ALL - Albanian Lek
    • + *
    • ALK - Albanian Lek (1946–1965)
    • + *
    • DZD - Algerian Dinar
    • + *
    • ADP - Andorran Peseta
    • + *
    • AOA - Angolan Kwanza
    • + *
    • AOK - Angolan Kwanza (1977–1991)
    • + *
    • AON - Angolan New Kwanza (1990–2000)
    • + *
    • AOR - Angolan Readjusted Kwanza (1995–1999)
    • + *
    • ARA - Argentine Austral
    • + *
    • ARS - Argentine Peso
    • + *
    • ARM - Argentine Peso (1881–1970)
    • + *
    • ARP - Argentine Peso (1983–1985)
    • + *
    • ARL - Argentine Peso Ley (1970–1983)
    • + *
    • AMD - Armenian Dram
    • + *
    • AWG - Aruban Florin
    • + *
    • AUD - Australian Dollar
    • + *
    • ATS - Austrian Schilling
    • + *
    • AZN - Azerbaijani Manat
    • + *
    • AZM - Azerbaijani Manat (1993–2006)
    • + *
    • BSD - Bahamian Dollar
    • + *
    • BHD - Bahraini Dinar
    • + *
    • BDT - Bangladeshi Taka
    • + *
    • BBD - Barbadian Dollar
    • + *
    • BYN - Belarusian Ruble
    • + *
    • BYB - Belarusian Ruble (1994–1999)
    • + *
    • BYR - Belarusian Ruble (2000–2016)
    • + *
    • BEF - Belgian Franc
    • + *
    • BEC - Belgian Franc (convertible)
    • + *
    • BEL - Belgian Franc (financial)
    • + *
    • BZD - Belize Dollar
    • + *
    • BMD - Bermudan Dollar
    • + *
    • BTN - Bhutanese Ngultrum
    • + *
    • BOB - Bolivian Boliviano
    • + *
    • BOL - Bolivian Boliviano (1863–1963)
    • + *
    • BOV - Bolivian Mvdol
    • + *
    • BOP - Bolivian Peso
    • + *
    • BAM - Bosnia-Herzegovina Convertible Mark
    • + *
    • BAD - Bosnia-Herzegovina Dinar (1992–1994)
    • + *
    • BAN - Bosnia-Herzegovina New Dinar (1994–1997)
    • + *
    • BWP - Botswanan Pula
    • + *
    • BRC - Brazilian Cruzado (1986–1989)
    • + *
    • BRZ - Brazilian Cruzeiro (1942–1967)
    • + *
    • BRE - Brazilian Cruzeiro (1990–1993)
    • + *
    • BRR - Brazilian Cruzeiro (1993–1994)
    • + *
    • BRN - Brazilian New Cruzado (1989–1990)
    • + *
    • BRB - Brazilian New Cruzeiro (1967–1986)
    • + *
    • BRL - Brazilian Real
    • + *
    • GBP - British Pound
    • + *
    • BND - Brunei Dollar
    • + *
    • BGL - Bulgarian Hard Lev
    • + *
    • BGN - Bulgarian Lev
    • + *
    • BGO - Bulgarian Lev (1879–1952)
    • + *
    • BGM - Bulgarian Socialist Lev
    • + *
    • BUK - Burmese Kyat
    • + *
    • BIF - Burundian Franc
    • + *
    • XPF - CFP Franc
    • + *
    • KHR - Cambodian Riel
    • + *
    • CAD - Canadian Dollar
    • + *
    • CVE - Cape Verdean Escudo
    • + *
    • KYD - Cayman Islands Dollar
    • + *
    • XAF - Central African CFA Franc
    • + *
    • CLE - Chilean Escudo
    • + *
    • CLP - Chilean Peso
    • + *
    • CLF - Chilean Unit of Account (UF)
    • + *
    • CNX - Chinese People’s Bank Dollar
    • + *
    • CNY - Chinese Yuan
    • + *
    • CNH - Chinese Yuan (offshore)
    • + *
    • COP - Colombian Peso
    • + *
    • COU - Colombian Real Value Unit
    • + *
    • KMF - Comorian Franc
    • + *
    • CDF - Congolese Franc
    • + *
    • CRC - Costa Rican Colón
    • + *
    • HRD - Croatian Dinar
    • + *
    • HRK - Croatian Kuna
    • + *
    • CUC - Cuban Convertible Peso
    • + *
    • CUP - Cuban Peso
    • + *
    • CYP - Cypriot Pound
    • + *
    • CZK - Czech Koruna
    • + *
    • CSK - Czechoslovak Hard Koruna
    • + *
    • DKK - Danish Krone
    • + *
    • DJF - Djiboutian Franc
    • + *
    • DOP - Dominican Peso
    • + *
    • NLG - Dutch Guilder
    • + *
    • XCD - East Caribbean Dollar
    • + *
    • DDM - East German Mark
    • + *
    • ECS - Ecuadorian Sucre
    • + *
    • ECV - Ecuadorian Unit of Constant Value
    • + *
    • EGP - Egyptian Pound
    • + *
    • GQE - Equatorial Guinean Ekwele
    • + *
    • ERN - Eritrean Nakfa
    • + *
    • EEK - Estonian Kroon
    • + *
    • ETB - Ethiopian Birr
    • + *
    • EUR - Euro
    • + *
    • XBA - European Composite Unit
    • + *
    • XEU - European Currency Unit
    • + *
    • XBB - European Monetary Unit
    • + *
    • XBC - European Unit of Account (XBC)
    • + *
    • XBD - European Unit of Account (XBD)
    • + *
    • FKP - Falkland Islands Pound
    • + *
    • FJD - Fijian Dollar
    • + *
    • FIM - Finnish Markka
    • + *
    • FRF - French Franc
    • + *
    • XFO - French Gold Franc
    • + *
    • XFU - French UIC-Franc
    • + *
    • GMD - Gambian Dalasi
    • + *
    • GEK - Georgian Kupon Larit
    • + *
    • GEL - Georgian Lari
    • + *
    • DEM - German Mark
    • + *
    • GHS - Ghanaian Cedi
    • + *
    • GHC - Ghanaian Cedi (1979–2007)
    • + *
    • GIP - Gibraltar Pound
    • + *
    • XAU - Gold
    • + *
    • GRD - Greek Drachma
    • + *
    • GTQ - Guatemalan Quetzal
    • + *
    • GWP - Guinea-Bissau Peso
    • + *
    • GNF - Guinean Franc
    • + *
    • GNS - Guinean Syli
    • + *
    • GYD - Guyanaese Dollar
    • + *
    • HTG - Haitian Gourde
    • + *
    • HNL - Honduran Lempira
    • + *
    • HKD - Hong Kong Dollar
    • + *
    • HUF - Hungarian Forint
    • + *
    • IMP - IMP
    • + *
    • ISK - Icelandic Króna
    • + *
    • ISJ - Icelandic Króna (1918–1981)
    • + *
    • INR - Indian Rupee
    • + *
    • IDR - Indonesian Rupiah
    • + *
    • IRR - Iranian Rial
    • + *
    • IQD - Iraqi Dinar
    • + *
    • IEP - Irish Pound
    • + *
    • ILS - Israeli New Shekel
    • + *
    • ILP - Israeli Pound
    • + *
    • ILR - Israeli Shekel (1980–1985)
    • + *
    • ITL - Italian Lira
    • + *
    • JMD - Jamaican Dollar
    • + *
    • JPY - Japanese Yen
    • + *
    • JOD - Jordanian Dinar
    • + *
    • KZT - Kazakhstani Tenge
    • + *
    • KES - Kenyan Shilling
    • + *
    • KWD - Kuwaiti Dinar
    • + *
    • KGS - Kyrgystani Som
    • + *
    • LAK - Laotian Kip
    • + *
    • LVL - Latvian Lats
    • + *
    • LVR - Latvian Ruble
    • + *
    • LBP - Lebanese Pound
    • + *
    • LSL - Lesotho Loti
    • + *
    • LRD - Liberian Dollar
    • + *
    • LYD - Libyan Dinar
    • + *
    • LTL - Lithuanian Litas
    • + *
    • LTT - Lithuanian Talonas
    • + *
    • LUL - Luxembourg Financial Franc
    • + *
    • LUC - Luxembourgian Convertible Franc
    • + *
    • LUF - Luxembourgian Franc
    • + *
    • MOP - Macanese Pataca
    • + *
    • MKD - Macedonian Denar
    • + *
    • MKN - Macedonian Denar (1992–1993)
    • + *
    • MGA - Malagasy Ariary
    • + *
    • MGF - Malagasy Franc
    • + *
    • MWK - Malawian Kwacha
    • + *
    • MYR - Malaysian Ringgit
    • + *
    • MVR - Maldivian Rufiyaa
    • + *
    • MVP - Maldivian Rupee (1947–1981)
    • + *
    • MLF - Malian Franc
    • + *
    • MTL - Maltese Lira
    • + *
    • MTP - Maltese Pound
    • + *
    • MRU - Mauritanian Ouguiya
    • + *
    • MRO - Mauritanian Ouguiya (1973–2017)
    • + *
    • MUR - Mauritian Rupee
    • + *
    • MXV - Mexican Investment Unit
    • + *
    • MXN - Mexican Peso
    • + *
    • MXP - Mexican Silver Peso (1861–1992)
    • + *
    • MDC - Moldovan Cupon
    • + *
    • MDL - Moldovan Leu
    • + *
    • MCF - Monegasque Franc
    • + *
    • MNT - Mongolian Tugrik
    • + *
    • MAD - Moroccan Dirham
    • + *
    • MAF - Moroccan Franc
    • + *
    • MZE - Mozambican Escudo
    • + *
    • MZN - Mozambican Metical
    • + *
    • MZM - Mozambican Metical (1980–2006)
    • + *
    • MMK - Myanmar Kyat
    • + *
    • NAD - Namibian Dollar
    • + *
    • NPR - Nepalese Rupee
    • + *
    • ANG - Netherlands Antillean Guilder
    • + *
    • TWD - New Taiwan Dollar
    • + *
    • NZD - New Zealand Dollar
    • + *
    • NIO - Nicaraguan Córdoba
    • + *
    • NIC - Nicaraguan Córdoba (1988–1991)
    • + *
    • NGN - Nigerian Naira
    • + *
    • KPW - North Korean Won
    • + *
    • NOK - Norwegian Krone
    • + *
    • OMR - Omani Rial
    • + *
    • PKR - Pakistani Rupee
    • + *
    • XPD - Palladium
    • + *
    • PAB - Panamanian Balboa
    • + *
    • PGK - Papua New Guinean Kina
    • + *
    • PYG - Paraguayan Guarani
    • + *
    • PEI - Peruvian Inti
    • + *
    • PEN - Peruvian Sol
    • + *
    • PES - Peruvian Sol (1863–1965)
    • + *
    • PHP - Philippine Peso
    • + *
    • XPT - Platinum
    • + *
    • PLN - Polish Zloty
    • + *
    • PLZ - Polish Zloty (1950–1995)
    • + *
    • PTE - Portuguese Escudo
    • + *
    • GWE - Portuguese Guinea Escudo
    • + *
    • QAR - Qatari Rial
    • + *
    • XRE - RINET Funds
    • + *
    • RHD - Rhodesian Dollar
    • + *
    • RON - Romanian Leu
    • + *
    • ROL - Romanian Leu (1952–2006)
    • + *
    • RUB - Russian Ruble
    • + *
    • RUR - Russian Ruble (1991–1998)
    • + *
    • RWF - Rwandan Franc
    • + *
    • SVC - Salvadoran Colón
    • + *
    • WST - Samoan Tala
    • + *
    • SAR - Saudi Riyal
    • + *
    • RSD - Serbian Dinar
    • + *
    • CSD - Serbian Dinar (2002–2006)
    • + *
    • SCR - Seychellois Rupee
    • + *
    • SLL - Sierra Leonean Leone
    • + *
    • XAG - Silver
    • + *
    • SGD - Singapore Dollar
    • + *
    • SKK - Slovak Koruna
    • + *
    • SIT - Slovenian Tolar
    • + *
    • SBD - Solomon Islands Dollar
    • + *
    • SOS - Somali Shilling
    • + *
    • ZAR - South African Rand
    • + *
    • ZAL - South African Rand (financial)
    • + *
    • KRH - South Korean Hwan (1953–1962)
    • + *
    • KRW - South Korean Won
    • + *
    • KRO - South Korean Won (1945–1953)
    • + *
    • SSP - South Sudanese Pound
    • + *
    • SUR - Soviet Rouble
    • + *
    • ESP - Spanish Peseta
    • + *
    • ESA - Spanish Peseta (A account)
    • + *
    • ESB - Spanish Peseta (convertible account)
    • + *
    • XDR - Special Drawing Rights
    • + *
    • LKR - Sri Lankan Rupee
    • + *
    • SHP - St. Helena Pound
    • + *
    • XSU - Sucre
    • + *
    • SDD - Sudanese Dinar (1992–2007)
    • + *
    • SDG - Sudanese Pound
    • + *
    • SDP - Sudanese Pound (1957–1998)
    • + *
    • SRD - Surinamese Dollar
    • + *
    • SRG - Surinamese Guilder
    • + *
    • SZL - Swazi Lilangeni
    • + *
    • SEK - Swedish Krona
    • + *
    • CHF - Swiss Franc
    • + *
    • SYP - Syrian Pound
    • + *
    • STN - São Tomé & Príncipe Dobra
    • + *
    • STD - São Tomé & Príncipe Dobra (1977–2017)
    • + *
    • TVD - TVD
    • + *
    • TJR - Tajikistani Ruble
    • + *
    • TJS - Tajikistani Somoni
    • + *
    • TZS - Tanzanian Shilling
    • + *
    • XTS - Testing Currency Code
    • + *
    • THB - Thai Baht
    • + *
    • XXX - The codes assigned for transactions where no currency is involved
    • + *
    • TPE - Timorese Escudo
    • + *
    • TOP - Tongan Paʻanga
    • + *
    • TTD - Trinidad & Tobago Dollar
    • + *
    • TND - Tunisian Dinar
    • + *
    • TRY - Turkish Lira
    • + *
    • TRL - Turkish Lira (1922–2005)
    • + *
    • TMT - Turkmenistani Manat
    • + *
    • TMM - Turkmenistani Manat (1993–2009)
    • + *
    • USD - US Dollar
    • + *
    • USN - US Dollar (Next day)
    • + *
    • USS - US Dollar (Same day)
    • + *
    • UGX - Ugandan Shilling
    • + *
    • UGS - Ugandan Shilling (1966–1987)
    • + *
    • UAH - Ukrainian Hryvnia
    • + *
    • UAK - Ukrainian Karbovanets
    • + *
    • AED - United Arab Emirates Dirham
    • + *
    • UYW - Uruguayan Nominal Wage Index Unit
    • + *
    • UYU - Uruguayan Peso
    • + *
    • UYP - Uruguayan Peso (1975–1993)
    • + *
    • UYI - Uruguayan Peso (Indexed Units)
    • + *
    • UZS - Uzbekistani Som
    • + *
    • VUV - Vanuatu Vatu
    • + *
    • VES - Venezuelan Bolívar
    • + *
    • VEB - Venezuelan Bolívar (1871–2008)
    • + *
    • VEF - Venezuelan Bolívar (2008–2018)
    • + *
    • VND - Vietnamese Dong
    • + *
    • VNN - Vietnamese Dong (1978–1985)
    • + *
    • CHE - WIR Euro
    • + *
    • CHW - WIR Franc
    • + *
    • XOF - West African CFA Franc
    • + *
    • YDD - Yemeni Dinar
    • + *
    • YER - Yemeni Rial
    • + *
    • YUN - Yugoslavian Convertible Dinar (1990–1992)
    • + *
    • YUD - Yugoslavian Hard Dinar (1966–1990)
    • + *
    • YUM - Yugoslavian New Dinar (1994–2002)
    • + *
    • YUR - Yugoslavian Reformed Dinar (1992–1993)
    • + *
    • ZWN - ZWN
    • + *
    • ZRN - Zairean New Zaire (1993–1998)
    • + *
    • ZRZ - Zairean Zaire (1971–1993)
    • + *
    • ZMW - Zambian Kwacha
    • + *
    • ZMK - Zambian Kwacha (1968–2012)
    • + *
    • ZWD - Zimbabwean Dollar (1980–2008)
    • + *
    • ZWR - Zimbabwean Dollar (2008)
    • + *
    • ZWL - Zimbabwean Dollar (2009)
    • + *
    + */ @JsonSetter(value = "currency", nulls = Nulls.SKIP) - public Builder currency(Optional currency) { + public Builder currency(Optional currency) { this.currency = currency; return this; } - public Builder currency(TransactionCurrencyEnum currency) { + public Builder currency(BankFeedAccountCurrency currency) { this.currency = Optional.ofNullable(currency); return this; } + /** + *

    The status of the bank feed.

    + *
      + *
    • ACTIVE - ACTIVE
    • + *
    • INACTIVE - INACTIVE
    • + *
    + */ @JsonSetter(value = "feed_status", nulls = Nulls.SKIP) - public Builder feedStatus(Optional feedStatus) { + public Builder feedStatus(Optional feedStatus) { this.feedStatus = feedStatus; return this; } - public Builder feedStatus(FeedStatusEnum feedStatus) { + public Builder feedStatus(BankFeedAccountFeedStatus feedStatus) { this.feedStatus = Optional.ofNullable(feedStatus); return this; } + /** + *

    The start date of the bank feed’s transactions.

    + */ @JsonSetter(value = "feed_start_date", nulls = Nulls.SKIP) public Builder feedStartDate(Optional feedStartDate) { this.feedStartDate = feedStartDate; @@ -797,6 +1142,9 @@ public Builder feedStartDate(OffsetDateTime feedStartDate) { return this; } + /** + *

    The current balance of funds in the source account.

    + */ @JsonSetter(value = "source_account_balance", nulls = Nulls.SKIP) public Builder sourceAccountBalance(Optional sourceAccountBalance) { this.sourceAccountBalance = sourceAccountBalance; @@ -808,17 +1156,27 @@ public Builder sourceAccountBalance(Double sourceAccountBalance) { return this; } + /** + *

    The type of the account.

    + *
      + *
    • BANK - BANK
    • + *
    • CREDIT_CARD - CREDIT_CARD
    • + *
    + */ @JsonSetter(value = "account_type", nulls = Nulls.SKIP) - public Builder accountType(Optional accountType) { + public Builder accountType(Optional accountType) { this.accountType = accountType; return this; } - public Builder accountType(BankFeedAccountAccountTypeEnum accountType) { + public Builder accountType(BankFeedAccountAccountType accountType) { this.accountType = Optional.ofNullable(accountType); return this; } + /** + *

    Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

    + */ @JsonSetter(value = "remote_was_deleted", nulls = Nulls.SKIP) public Builder remoteWasDeleted(Optional remoteWasDeleted) { this.remoteWasDeleted = remoteWasDeleted; diff --git a/src/main/java/com/merge/api/accounting/types/BankFeedAccountAccountType.java b/src/main/java/com/merge/api/accounting/types/BankFeedAccountAccountType.java new file mode 100644 index 000000000..13c9c824b --- /dev/null +++ b/src/main/java/com/merge/api/accounting/types/BankFeedAccountAccountType.java @@ -0,0 +1,95 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.merge.api.accounting.types; + +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.databind.DeserializationContext; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.fasterxml.jackson.databind.deser.std.StdDeserializer; +import com.merge.api.core.ObjectMappers; +import java.io.IOException; +import java.util.Objects; + +@JsonDeserialize(using = BankFeedAccountAccountType.Deserializer.class) +public final class BankFeedAccountAccountType { + private final Object value; + + private final int type; + + private BankFeedAccountAccountType(Object value, int type) { + this.value = value; + this.type = type; + } + + @JsonValue + public Object get() { + return this.value; + } + + @SuppressWarnings("unchecked") + public T visit(Visitor visitor) { + if (this.type == 0) { + return visitor.visit((BankFeedAccountAccountTypeEnum) this.value); + } else if (this.type == 1) { + return visitor.visit((String) this.value); + } + throw new IllegalStateException("Failed to visit value. This should never happen."); + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof BankFeedAccountAccountType && equalTo((BankFeedAccountAccountType) other); + } + + private boolean equalTo(BankFeedAccountAccountType other) { + return value.equals(other.value); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.value); + } + + @java.lang.Override + public String toString() { + return this.value.toString(); + } + + public static BankFeedAccountAccountType of(BankFeedAccountAccountTypeEnum value) { + return new BankFeedAccountAccountType(value, 0); + } + + public static BankFeedAccountAccountType of(String value) { + return new BankFeedAccountAccountType(value, 1); + } + + public interface Visitor { + T visit(BankFeedAccountAccountTypeEnum value); + + T visit(String value); + } + + static final class Deserializer extends StdDeserializer { + Deserializer() { + super(BankFeedAccountAccountType.class); + } + + @java.lang.Override + public BankFeedAccountAccountType deserialize(JsonParser p, DeserializationContext context) throws IOException { + Object value = p.readValueAs(Object.class); + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, BankFeedAccountAccountTypeEnum.class)); + } catch (IllegalArgumentException e) { + } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, String.class)); + } catch (IllegalArgumentException e) { + } + throw new JsonParseException(p, "Failed to deserialize"); + } + } +} diff --git a/src/main/java/com/merge/api/accounting/types/BankFeedAccountCurrency.java b/src/main/java/com/merge/api/accounting/types/BankFeedAccountCurrency.java new file mode 100644 index 000000000..06eccc94a --- /dev/null +++ b/src/main/java/com/merge/api/accounting/types/BankFeedAccountCurrency.java @@ -0,0 +1,95 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.merge.api.accounting.types; + +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.databind.DeserializationContext; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.fasterxml.jackson.databind.deser.std.StdDeserializer; +import com.merge.api.core.ObjectMappers; +import java.io.IOException; +import java.util.Objects; + +@JsonDeserialize(using = BankFeedAccountCurrency.Deserializer.class) +public final class BankFeedAccountCurrency { + private final Object value; + + private final int type; + + private BankFeedAccountCurrency(Object value, int type) { + this.value = value; + this.type = type; + } + + @JsonValue + public Object get() { + return this.value; + } + + @SuppressWarnings("unchecked") + public T visit(Visitor visitor) { + if (this.type == 0) { + return visitor.visit((TransactionCurrencyEnum) this.value); + } else if (this.type == 1) { + return visitor.visit((String) this.value); + } + throw new IllegalStateException("Failed to visit value. This should never happen."); + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof BankFeedAccountCurrency && equalTo((BankFeedAccountCurrency) other); + } + + private boolean equalTo(BankFeedAccountCurrency other) { + return value.equals(other.value); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.value); + } + + @java.lang.Override + public String toString() { + return this.value.toString(); + } + + public static BankFeedAccountCurrency of(TransactionCurrencyEnum value) { + return new BankFeedAccountCurrency(value, 0); + } + + public static BankFeedAccountCurrency of(String value) { + return new BankFeedAccountCurrency(value, 1); + } + + public interface Visitor { + T visit(TransactionCurrencyEnum value); + + T visit(String value); + } + + static final class Deserializer extends StdDeserializer { + Deserializer() { + super(BankFeedAccountCurrency.class); + } + + @java.lang.Override + public BankFeedAccountCurrency deserialize(JsonParser p, DeserializationContext context) throws IOException { + Object value = p.readValueAs(Object.class); + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, TransactionCurrencyEnum.class)); + } catch (IllegalArgumentException e) { + } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, String.class)); + } catch (IllegalArgumentException e) { + } + throw new JsonParseException(p, "Failed to deserialize"); + } + } +} diff --git a/src/main/java/com/merge/api/accounting/types/BankFeedAccountEndpointRequest.java b/src/main/java/com/merge/api/accounting/types/BankFeedAccountEndpointRequest.java index 2c1826c16..2893e4c88 100644 --- a/src/main/java/com/merge/api/accounting/types/BankFeedAccountEndpointRequest.java +++ b/src/main/java/com/merge/api/accounting/types/BankFeedAccountEndpointRequest.java @@ -99,10 +99,16 @@ public interface ModelStage { public interface _FinalStage { BankFeedAccountEndpointRequest build(); + /** + *

    Whether to include debug fields (such as log file links) in the response.

    + */ _FinalStage isDebugMode(Optional isDebugMode); _FinalStage isDebugMode(Boolean isDebugMode); + /** + *

    Whether or not third-party updates should be run asynchronously.

    + */ _FinalStage runAsync(Optional runAsync); _FinalStage runAsync(Boolean runAsync); @@ -146,6 +152,9 @@ public _FinalStage runAsync(Boolean runAsync) { return this; } + /** + *

    Whether or not third-party updates should be run asynchronously.

    + */ @java.lang.Override @JsonSetter(value = "run_async", nulls = Nulls.SKIP) public _FinalStage runAsync(Optional runAsync) { @@ -163,6 +172,9 @@ public _FinalStage isDebugMode(Boolean isDebugMode) { return this; } + /** + *

    Whether to include debug fields (such as log file links) in the response.

    + */ @java.lang.Override @JsonSetter(value = "is_debug_mode", nulls = Nulls.SKIP) public _FinalStage isDebugMode(Optional isDebugMode) { diff --git a/src/main/java/com/merge/api/accounting/types/BankFeedAccountFeedStatus.java b/src/main/java/com/merge/api/accounting/types/BankFeedAccountFeedStatus.java new file mode 100644 index 000000000..4a129e41e --- /dev/null +++ b/src/main/java/com/merge/api/accounting/types/BankFeedAccountFeedStatus.java @@ -0,0 +1,95 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.merge.api.accounting.types; + +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.databind.DeserializationContext; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.fasterxml.jackson.databind.deser.std.StdDeserializer; +import com.merge.api.core.ObjectMappers; +import java.io.IOException; +import java.util.Objects; + +@JsonDeserialize(using = BankFeedAccountFeedStatus.Deserializer.class) +public final class BankFeedAccountFeedStatus { + private final Object value; + + private final int type; + + private BankFeedAccountFeedStatus(Object value, int type) { + this.value = value; + this.type = type; + } + + @JsonValue + public Object get() { + return this.value; + } + + @SuppressWarnings("unchecked") + public T visit(Visitor visitor) { + if (this.type == 0) { + return visitor.visit((FeedStatusEnum) this.value); + } else if (this.type == 1) { + return visitor.visit((String) this.value); + } + throw new IllegalStateException("Failed to visit value. This should never happen."); + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof BankFeedAccountFeedStatus && equalTo((BankFeedAccountFeedStatus) other); + } + + private boolean equalTo(BankFeedAccountFeedStatus other) { + return value.equals(other.value); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.value); + } + + @java.lang.Override + public String toString() { + return this.value.toString(); + } + + public static BankFeedAccountFeedStatus of(FeedStatusEnum value) { + return new BankFeedAccountFeedStatus(value, 0); + } + + public static BankFeedAccountFeedStatus of(String value) { + return new BankFeedAccountFeedStatus(value, 1); + } + + public interface Visitor { + T visit(FeedStatusEnum value); + + T visit(String value); + } + + static final class Deserializer extends StdDeserializer { + Deserializer() { + super(BankFeedAccountFeedStatus.class); + } + + @java.lang.Override + public BankFeedAccountFeedStatus deserialize(JsonParser p, DeserializationContext context) throws IOException { + Object value = p.readValueAs(Object.class); + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, FeedStatusEnum.class)); + } catch (IllegalArgumentException e) { + } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, String.class)); + } catch (IllegalArgumentException e) { + } + throw new JsonParseException(p, "Failed to deserialize"); + } + } +} diff --git a/src/main/java/com/merge/api/accounting/types/BankFeedAccountRequest.java b/src/main/java/com/merge/api/accounting/types/BankFeedAccountRequest.java index 364f73469..b42fb877c 100644 --- a/src/main/java/com/merge/api/accounting/types/BankFeedAccountRequest.java +++ b/src/main/java/com/merge/api/accounting/types/BankFeedAccountRequest.java @@ -32,15 +32,15 @@ public final class BankFeedAccountRequest { private final Optional targetAccountName; - private final Optional currency; + private final Optional currency; - private final Optional feedStatus; + private final Optional feedStatus; private final Optional feedStartDate; private final Optional sourceAccountBalance; - private final Optional accountType; + private final Optional accountType; private final Optional> integrationParams; @@ -54,11 +54,11 @@ private BankFeedAccountRequest( Optional sourceAccountName, Optional sourceAccountNumber, Optional targetAccountName, - Optional currency, - Optional feedStatus, + Optional currency, + Optional feedStatus, Optional feedStartDate, Optional sourceAccountBalance, - Optional accountType, + Optional accountType, Optional> integrationParams, Optional> linkedAccountParams, Map additionalProperties) { @@ -429,7 +429,7 @@ public Optional getTargetAccountName() { * */ @JsonProperty("currency") - public Optional getCurrency() { + public Optional getCurrency() { return currency; } @@ -441,7 +441,7 @@ public Optional getCurrency() { * */ @JsonProperty("feed_status") - public Optional getFeedStatus() { + public Optional getFeedStatus() { return feedStatus; } @@ -469,7 +469,7 @@ public Optional getSourceAccountBalance() { * */ @JsonProperty("account_type") - public Optional getAccountType() { + public Optional getAccountType() { return accountType; } @@ -547,15 +547,15 @@ public static final class Builder { private Optional targetAccountName = Optional.empty(); - private Optional currency = Optional.empty(); + private Optional currency = Optional.empty(); - private Optional feedStatus = Optional.empty(); + private Optional feedStatus = Optional.empty(); private Optional feedStartDate = Optional.empty(); private Optional sourceAccountBalance = Optional.empty(); - private Optional accountType = Optional.empty(); + private Optional accountType = Optional.empty(); private Optional> integrationParams = Optional.empty(); @@ -582,6 +582,9 @@ public Builder from(BankFeedAccountRequest other) { return this; } + /** + *

    The unique identifier of the source account from our customer’s platform.

    + */ @JsonSetter(value = "source_account_id", nulls = Nulls.SKIP) public Builder sourceAccountId(Optional sourceAccountId) { this.sourceAccountId = sourceAccountId; @@ -593,6 +596,9 @@ public Builder sourceAccountId(String sourceAccountId) { return this; } + /** + *

    The unique identifier of the target account from the third party software.

    + */ @JsonSetter(value = "target_account_id", nulls = Nulls.SKIP) public Builder targetAccountId(Optional targetAccountId) { this.targetAccountId = targetAccountId; @@ -604,6 +610,9 @@ public Builder targetAccountId(String targetAccountId) { return this; } + /** + *

    The name of the source account as stored in our customer’s platform.

    + */ @JsonSetter(value = "source_account_name", nulls = Nulls.SKIP) public Builder sourceAccountName(Optional sourceAccountName) { this.sourceAccountName = sourceAccountName; @@ -615,6 +624,9 @@ public Builder sourceAccountName(String sourceAccountName) { return this; } + /** + *

    The human-readable account number of the source account as stored in our customer’s platform.

    + */ @JsonSetter(value = "source_account_number", nulls = Nulls.SKIP) public Builder sourceAccountNumber(Optional sourceAccountNumber) { this.sourceAccountNumber = sourceAccountNumber; @@ -626,6 +638,9 @@ public Builder sourceAccountNumber(String sourceAccountNumber) { return this; } + /** + *

    The name of the target account from the third party software.

    + */ @JsonSetter(value = "target_account_name", nulls = Nulls.SKIP) public Builder targetAccountName(Optional targetAccountName) { this.targetAccountName = targetAccountName; @@ -637,28 +652,349 @@ public Builder targetAccountName(String targetAccountName) { return this; } + /** + *

    The currency code of the bank feed.

    + *
      + *
    • XUA - ADB Unit of Account
    • + *
    • AFN - Afghan Afghani
    • + *
    • AFA - Afghan Afghani (1927–2002)
    • + *
    • ALL - Albanian Lek
    • + *
    • ALK - Albanian Lek (1946–1965)
    • + *
    • DZD - Algerian Dinar
    • + *
    • ADP - Andorran Peseta
    • + *
    • AOA - Angolan Kwanza
    • + *
    • AOK - Angolan Kwanza (1977–1991)
    • + *
    • AON - Angolan New Kwanza (1990–2000)
    • + *
    • AOR - Angolan Readjusted Kwanza (1995–1999)
    • + *
    • ARA - Argentine Austral
    • + *
    • ARS - Argentine Peso
    • + *
    • ARM - Argentine Peso (1881–1970)
    • + *
    • ARP - Argentine Peso (1983–1985)
    • + *
    • ARL - Argentine Peso Ley (1970–1983)
    • + *
    • AMD - Armenian Dram
    • + *
    • AWG - Aruban Florin
    • + *
    • AUD - Australian Dollar
    • + *
    • ATS - Austrian Schilling
    • + *
    • AZN - Azerbaijani Manat
    • + *
    • AZM - Azerbaijani Manat (1993–2006)
    • + *
    • BSD - Bahamian Dollar
    • + *
    • BHD - Bahraini Dinar
    • + *
    • BDT - Bangladeshi Taka
    • + *
    • BBD - Barbadian Dollar
    • + *
    • BYN - Belarusian Ruble
    • + *
    • BYB - Belarusian Ruble (1994–1999)
    • + *
    • BYR - Belarusian Ruble (2000–2016)
    • + *
    • BEF - Belgian Franc
    • + *
    • BEC - Belgian Franc (convertible)
    • + *
    • BEL - Belgian Franc (financial)
    • + *
    • BZD - Belize Dollar
    • + *
    • BMD - Bermudan Dollar
    • + *
    • BTN - Bhutanese Ngultrum
    • + *
    • BOB - Bolivian Boliviano
    • + *
    • BOL - Bolivian Boliviano (1863–1963)
    • + *
    • BOV - Bolivian Mvdol
    • + *
    • BOP - Bolivian Peso
    • + *
    • BAM - Bosnia-Herzegovina Convertible Mark
    • + *
    • BAD - Bosnia-Herzegovina Dinar (1992–1994)
    • + *
    • BAN - Bosnia-Herzegovina New Dinar (1994–1997)
    • + *
    • BWP - Botswanan Pula
    • + *
    • BRC - Brazilian Cruzado (1986–1989)
    • + *
    • BRZ - Brazilian Cruzeiro (1942–1967)
    • + *
    • BRE - Brazilian Cruzeiro (1990–1993)
    • + *
    • BRR - Brazilian Cruzeiro (1993–1994)
    • + *
    • BRN - Brazilian New Cruzado (1989–1990)
    • + *
    • BRB - Brazilian New Cruzeiro (1967–1986)
    • + *
    • BRL - Brazilian Real
    • + *
    • GBP - British Pound
    • + *
    • BND - Brunei Dollar
    • + *
    • BGL - Bulgarian Hard Lev
    • + *
    • BGN - Bulgarian Lev
    • + *
    • BGO - Bulgarian Lev (1879–1952)
    • + *
    • BGM - Bulgarian Socialist Lev
    • + *
    • BUK - Burmese Kyat
    • + *
    • BIF - Burundian Franc
    • + *
    • XPF - CFP Franc
    • + *
    • KHR - Cambodian Riel
    • + *
    • CAD - Canadian Dollar
    • + *
    • CVE - Cape Verdean Escudo
    • + *
    • KYD - Cayman Islands Dollar
    • + *
    • XAF - Central African CFA Franc
    • + *
    • CLE - Chilean Escudo
    • + *
    • CLP - Chilean Peso
    • + *
    • CLF - Chilean Unit of Account (UF)
    • + *
    • CNX - Chinese People’s Bank Dollar
    • + *
    • CNY - Chinese Yuan
    • + *
    • CNH - Chinese Yuan (offshore)
    • + *
    • COP - Colombian Peso
    • + *
    • COU - Colombian Real Value Unit
    • + *
    • KMF - Comorian Franc
    • + *
    • CDF - Congolese Franc
    • + *
    • CRC - Costa Rican Colón
    • + *
    • HRD - Croatian Dinar
    • + *
    • HRK - Croatian Kuna
    • + *
    • CUC - Cuban Convertible Peso
    • + *
    • CUP - Cuban Peso
    • + *
    • CYP - Cypriot Pound
    • + *
    • CZK - Czech Koruna
    • + *
    • CSK - Czechoslovak Hard Koruna
    • + *
    • DKK - Danish Krone
    • + *
    • DJF - Djiboutian Franc
    • + *
    • DOP - Dominican Peso
    • + *
    • NLG - Dutch Guilder
    • + *
    • XCD - East Caribbean Dollar
    • + *
    • DDM - East German Mark
    • + *
    • ECS - Ecuadorian Sucre
    • + *
    • ECV - Ecuadorian Unit of Constant Value
    • + *
    • EGP - Egyptian Pound
    • + *
    • GQE - Equatorial Guinean Ekwele
    • + *
    • ERN - Eritrean Nakfa
    • + *
    • EEK - Estonian Kroon
    • + *
    • ETB - Ethiopian Birr
    • + *
    • EUR - Euro
    • + *
    • XBA - European Composite Unit
    • + *
    • XEU - European Currency Unit
    • + *
    • XBB - European Monetary Unit
    • + *
    • XBC - European Unit of Account (XBC)
    • + *
    • XBD - European Unit of Account (XBD)
    • + *
    • FKP - Falkland Islands Pound
    • + *
    • FJD - Fijian Dollar
    • + *
    • FIM - Finnish Markka
    • + *
    • FRF - French Franc
    • + *
    • XFO - French Gold Franc
    • + *
    • XFU - French UIC-Franc
    • + *
    • GMD - Gambian Dalasi
    • + *
    • GEK - Georgian Kupon Larit
    • + *
    • GEL - Georgian Lari
    • + *
    • DEM - German Mark
    • + *
    • GHS - Ghanaian Cedi
    • + *
    • GHC - Ghanaian Cedi (1979–2007)
    • + *
    • GIP - Gibraltar Pound
    • + *
    • XAU - Gold
    • + *
    • GRD - Greek Drachma
    • + *
    • GTQ - Guatemalan Quetzal
    • + *
    • GWP - Guinea-Bissau Peso
    • + *
    • GNF - Guinean Franc
    • + *
    • GNS - Guinean Syli
    • + *
    • GYD - Guyanaese Dollar
    • + *
    • HTG - Haitian Gourde
    • + *
    • HNL - Honduran Lempira
    • + *
    • HKD - Hong Kong Dollar
    • + *
    • HUF - Hungarian Forint
    • + *
    • IMP - IMP
    • + *
    • ISK - Icelandic Króna
    • + *
    • ISJ - Icelandic Króna (1918–1981)
    • + *
    • INR - Indian Rupee
    • + *
    • IDR - Indonesian Rupiah
    • + *
    • IRR - Iranian Rial
    • + *
    • IQD - Iraqi Dinar
    • + *
    • IEP - Irish Pound
    • + *
    • ILS - Israeli New Shekel
    • + *
    • ILP - Israeli Pound
    • + *
    • ILR - Israeli Shekel (1980–1985)
    • + *
    • ITL - Italian Lira
    • + *
    • JMD - Jamaican Dollar
    • + *
    • JPY - Japanese Yen
    • + *
    • JOD - Jordanian Dinar
    • + *
    • KZT - Kazakhstani Tenge
    • + *
    • KES - Kenyan Shilling
    • + *
    • KWD - Kuwaiti Dinar
    • + *
    • KGS - Kyrgystani Som
    • + *
    • LAK - Laotian Kip
    • + *
    • LVL - Latvian Lats
    • + *
    • LVR - Latvian Ruble
    • + *
    • LBP - Lebanese Pound
    • + *
    • LSL - Lesotho Loti
    • + *
    • LRD - Liberian Dollar
    • + *
    • LYD - Libyan Dinar
    • + *
    • LTL - Lithuanian Litas
    • + *
    • LTT - Lithuanian Talonas
    • + *
    • LUL - Luxembourg Financial Franc
    • + *
    • LUC - Luxembourgian Convertible Franc
    • + *
    • LUF - Luxembourgian Franc
    • + *
    • MOP - Macanese Pataca
    • + *
    • MKD - Macedonian Denar
    • + *
    • MKN - Macedonian Denar (1992–1993)
    • + *
    • MGA - Malagasy Ariary
    • + *
    • MGF - Malagasy Franc
    • + *
    • MWK - Malawian Kwacha
    • + *
    • MYR - Malaysian Ringgit
    • + *
    • MVR - Maldivian Rufiyaa
    • + *
    • MVP - Maldivian Rupee (1947–1981)
    • + *
    • MLF - Malian Franc
    • + *
    • MTL - Maltese Lira
    • + *
    • MTP - Maltese Pound
    • + *
    • MRU - Mauritanian Ouguiya
    • + *
    • MRO - Mauritanian Ouguiya (1973–2017)
    • + *
    • MUR - Mauritian Rupee
    • + *
    • MXV - Mexican Investment Unit
    • + *
    • MXN - Mexican Peso
    • + *
    • MXP - Mexican Silver Peso (1861–1992)
    • + *
    • MDC - Moldovan Cupon
    • + *
    • MDL - Moldovan Leu
    • + *
    • MCF - Monegasque Franc
    • + *
    • MNT - Mongolian Tugrik
    • + *
    • MAD - Moroccan Dirham
    • + *
    • MAF - Moroccan Franc
    • + *
    • MZE - Mozambican Escudo
    • + *
    • MZN - Mozambican Metical
    • + *
    • MZM - Mozambican Metical (1980–2006)
    • + *
    • MMK - Myanmar Kyat
    • + *
    • NAD - Namibian Dollar
    • + *
    • NPR - Nepalese Rupee
    • + *
    • ANG - Netherlands Antillean Guilder
    • + *
    • TWD - New Taiwan Dollar
    • + *
    • NZD - New Zealand Dollar
    • + *
    • NIO - Nicaraguan Córdoba
    • + *
    • NIC - Nicaraguan Córdoba (1988–1991)
    • + *
    • NGN - Nigerian Naira
    • + *
    • KPW - North Korean Won
    • + *
    • NOK - Norwegian Krone
    • + *
    • OMR - Omani Rial
    • + *
    • PKR - Pakistani Rupee
    • + *
    • XPD - Palladium
    • + *
    • PAB - Panamanian Balboa
    • + *
    • PGK - Papua New Guinean Kina
    • + *
    • PYG - Paraguayan Guarani
    • + *
    • PEI - Peruvian Inti
    • + *
    • PEN - Peruvian Sol
    • + *
    • PES - Peruvian Sol (1863–1965)
    • + *
    • PHP - Philippine Peso
    • + *
    • XPT - Platinum
    • + *
    • PLN - Polish Zloty
    • + *
    • PLZ - Polish Zloty (1950–1995)
    • + *
    • PTE - Portuguese Escudo
    • + *
    • GWE - Portuguese Guinea Escudo
    • + *
    • QAR - Qatari Rial
    • + *
    • XRE - RINET Funds
    • + *
    • RHD - Rhodesian Dollar
    • + *
    • RON - Romanian Leu
    • + *
    • ROL - Romanian Leu (1952–2006)
    • + *
    • RUB - Russian Ruble
    • + *
    • RUR - Russian Ruble (1991–1998)
    • + *
    • RWF - Rwandan Franc
    • + *
    • SVC - Salvadoran Colón
    • + *
    • WST - Samoan Tala
    • + *
    • SAR - Saudi Riyal
    • + *
    • RSD - Serbian Dinar
    • + *
    • CSD - Serbian Dinar (2002–2006)
    • + *
    • SCR - Seychellois Rupee
    • + *
    • SLL - Sierra Leonean Leone
    • + *
    • XAG - Silver
    • + *
    • SGD - Singapore Dollar
    • + *
    • SKK - Slovak Koruna
    • + *
    • SIT - Slovenian Tolar
    • + *
    • SBD - Solomon Islands Dollar
    • + *
    • SOS - Somali Shilling
    • + *
    • ZAR - South African Rand
    • + *
    • ZAL - South African Rand (financial)
    • + *
    • KRH - South Korean Hwan (1953–1962)
    • + *
    • KRW - South Korean Won
    • + *
    • KRO - South Korean Won (1945–1953)
    • + *
    • SSP - South Sudanese Pound
    • + *
    • SUR - Soviet Rouble
    • + *
    • ESP - Spanish Peseta
    • + *
    • ESA - Spanish Peseta (A account)
    • + *
    • ESB - Spanish Peseta (convertible account)
    • + *
    • XDR - Special Drawing Rights
    • + *
    • LKR - Sri Lankan Rupee
    • + *
    • SHP - St. Helena Pound
    • + *
    • XSU - Sucre
    • + *
    • SDD - Sudanese Dinar (1992–2007)
    • + *
    • SDG - Sudanese Pound
    • + *
    • SDP - Sudanese Pound (1957–1998)
    • + *
    • SRD - Surinamese Dollar
    • + *
    • SRG - Surinamese Guilder
    • + *
    • SZL - Swazi Lilangeni
    • + *
    • SEK - Swedish Krona
    • + *
    • CHF - Swiss Franc
    • + *
    • SYP - Syrian Pound
    • + *
    • STN - São Tomé & Príncipe Dobra
    • + *
    • STD - São Tomé & Príncipe Dobra (1977–2017)
    • + *
    • TVD - TVD
    • + *
    • TJR - Tajikistani Ruble
    • + *
    • TJS - Tajikistani Somoni
    • + *
    • TZS - Tanzanian Shilling
    • + *
    • XTS - Testing Currency Code
    • + *
    • THB - Thai Baht
    • + *
    • XXX - The codes assigned for transactions where no currency is involved
    • + *
    • TPE - Timorese Escudo
    • + *
    • TOP - Tongan Paʻanga
    • + *
    • TTD - Trinidad & Tobago Dollar
    • + *
    • TND - Tunisian Dinar
    • + *
    • TRY - Turkish Lira
    • + *
    • TRL - Turkish Lira (1922–2005)
    • + *
    • TMT - Turkmenistani Manat
    • + *
    • TMM - Turkmenistani Manat (1993–2009)
    • + *
    • USD - US Dollar
    • + *
    • USN - US Dollar (Next day)
    • + *
    • USS - US Dollar (Same day)
    • + *
    • UGX - Ugandan Shilling
    • + *
    • UGS - Ugandan Shilling (1966–1987)
    • + *
    • UAH - Ukrainian Hryvnia
    • + *
    • UAK - Ukrainian Karbovanets
    • + *
    • AED - United Arab Emirates Dirham
    • + *
    • UYW - Uruguayan Nominal Wage Index Unit
    • + *
    • UYU - Uruguayan Peso
    • + *
    • UYP - Uruguayan Peso (1975–1993)
    • + *
    • UYI - Uruguayan Peso (Indexed Units)
    • + *
    • UZS - Uzbekistani Som
    • + *
    • VUV - Vanuatu Vatu
    • + *
    • VES - Venezuelan Bolívar
    • + *
    • VEB - Venezuelan Bolívar (1871–2008)
    • + *
    • VEF - Venezuelan Bolívar (2008–2018)
    • + *
    • VND - Vietnamese Dong
    • + *
    • VNN - Vietnamese Dong (1978–1985)
    • + *
    • CHE - WIR Euro
    • + *
    • CHW - WIR Franc
    • + *
    • XOF - West African CFA Franc
    • + *
    • YDD - Yemeni Dinar
    • + *
    • YER - Yemeni Rial
    • + *
    • YUN - Yugoslavian Convertible Dinar (1990–1992)
    • + *
    • YUD - Yugoslavian Hard Dinar (1966–1990)
    • + *
    • YUM - Yugoslavian New Dinar (1994–2002)
    • + *
    • YUR - Yugoslavian Reformed Dinar (1992–1993)
    • + *
    • ZWN - ZWN
    • + *
    • ZRN - Zairean New Zaire (1993–1998)
    • + *
    • ZRZ - Zairean Zaire (1971–1993)
    • + *
    • ZMW - Zambian Kwacha
    • + *
    • ZMK - Zambian Kwacha (1968–2012)
    • + *
    • ZWD - Zimbabwean Dollar (1980–2008)
    • + *
    • ZWR - Zimbabwean Dollar (2008)
    • + *
    • ZWL - Zimbabwean Dollar (2009)
    • + *
    + */ @JsonSetter(value = "currency", nulls = Nulls.SKIP) - public Builder currency(Optional currency) { + public Builder currency(Optional currency) { this.currency = currency; return this; } - public Builder currency(TransactionCurrencyEnum currency) { + public Builder currency(BankFeedAccountRequestCurrency currency) { this.currency = Optional.ofNullable(currency); return this; } + /** + *

    The status of the bank feed.

    + *
      + *
    • ACTIVE - ACTIVE
    • + *
    • INACTIVE - INACTIVE
    • + *
    + */ @JsonSetter(value = "feed_status", nulls = Nulls.SKIP) - public Builder feedStatus(Optional feedStatus) { + public Builder feedStatus(Optional feedStatus) { this.feedStatus = feedStatus; return this; } - public Builder feedStatus(FeedStatusEnum feedStatus) { + public Builder feedStatus(BankFeedAccountRequestFeedStatus feedStatus) { this.feedStatus = Optional.ofNullable(feedStatus); return this; } + /** + *

    The start date of the bank feed’s transactions.

    + */ @JsonSetter(value = "feed_start_date", nulls = Nulls.SKIP) public Builder feedStartDate(Optional feedStartDate) { this.feedStartDate = feedStartDate; @@ -670,6 +1006,9 @@ public Builder feedStartDate(OffsetDateTime feedStartDate) { return this; } + /** + *

    The current balance of funds in the source account.

    + */ @JsonSetter(value = "source_account_balance", nulls = Nulls.SKIP) public Builder sourceAccountBalance(Optional sourceAccountBalance) { this.sourceAccountBalance = sourceAccountBalance; @@ -681,13 +1020,20 @@ public Builder sourceAccountBalance(Double sourceAccountBalance) { return this; } + /** + *

    The type of the account.

    + *
      + *
    • BANK - BANK
    • + *
    • CREDIT_CARD - CREDIT_CARD
    • + *
    + */ @JsonSetter(value = "account_type", nulls = Nulls.SKIP) - public Builder accountType(Optional accountType) { + public Builder accountType(Optional accountType) { this.accountType = accountType; return this; } - public Builder accountType(BankFeedAccountAccountTypeEnum accountType) { + public Builder accountType(BankFeedAccountRequestAccountType accountType) { this.accountType = Optional.ofNullable(accountType); return this; } diff --git a/src/main/java/com/merge/api/accounting/types/BankFeedAccountRequestAccountType.java b/src/main/java/com/merge/api/accounting/types/BankFeedAccountRequestAccountType.java new file mode 100644 index 000000000..d3d731e83 --- /dev/null +++ b/src/main/java/com/merge/api/accounting/types/BankFeedAccountRequestAccountType.java @@ -0,0 +1,96 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.merge.api.accounting.types; + +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.databind.DeserializationContext; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.fasterxml.jackson.databind.deser.std.StdDeserializer; +import com.merge.api.core.ObjectMappers; +import java.io.IOException; +import java.util.Objects; + +@JsonDeserialize(using = BankFeedAccountRequestAccountType.Deserializer.class) +public final class BankFeedAccountRequestAccountType { + private final Object value; + + private final int type; + + private BankFeedAccountRequestAccountType(Object value, int type) { + this.value = value; + this.type = type; + } + + @JsonValue + public Object get() { + return this.value; + } + + @SuppressWarnings("unchecked") + public T visit(Visitor visitor) { + if (this.type == 0) { + return visitor.visit((BankFeedAccountAccountTypeEnum) this.value); + } else if (this.type == 1) { + return visitor.visit((String) this.value); + } + throw new IllegalStateException("Failed to visit value. This should never happen."); + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof BankFeedAccountRequestAccountType && equalTo((BankFeedAccountRequestAccountType) other); + } + + private boolean equalTo(BankFeedAccountRequestAccountType other) { + return value.equals(other.value); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.value); + } + + @java.lang.Override + public String toString() { + return this.value.toString(); + } + + public static BankFeedAccountRequestAccountType of(BankFeedAccountAccountTypeEnum value) { + return new BankFeedAccountRequestAccountType(value, 0); + } + + public static BankFeedAccountRequestAccountType of(String value) { + return new BankFeedAccountRequestAccountType(value, 1); + } + + public interface Visitor { + T visit(BankFeedAccountAccountTypeEnum value); + + T visit(String value); + } + + static final class Deserializer extends StdDeserializer { + Deserializer() { + super(BankFeedAccountRequestAccountType.class); + } + + @java.lang.Override + public BankFeedAccountRequestAccountType deserialize(JsonParser p, DeserializationContext context) + throws IOException { + Object value = p.readValueAs(Object.class); + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, BankFeedAccountAccountTypeEnum.class)); + } catch (IllegalArgumentException e) { + } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, String.class)); + } catch (IllegalArgumentException e) { + } + throw new JsonParseException(p, "Failed to deserialize"); + } + } +} diff --git a/src/main/java/com/merge/api/accounting/types/BankFeedAccountRequestCurrency.java b/src/main/java/com/merge/api/accounting/types/BankFeedAccountRequestCurrency.java new file mode 100644 index 000000000..10e350bb1 --- /dev/null +++ b/src/main/java/com/merge/api/accounting/types/BankFeedAccountRequestCurrency.java @@ -0,0 +1,96 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.merge.api.accounting.types; + +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.databind.DeserializationContext; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.fasterxml.jackson.databind.deser.std.StdDeserializer; +import com.merge.api.core.ObjectMappers; +import java.io.IOException; +import java.util.Objects; + +@JsonDeserialize(using = BankFeedAccountRequestCurrency.Deserializer.class) +public final class BankFeedAccountRequestCurrency { + private final Object value; + + private final int type; + + private BankFeedAccountRequestCurrency(Object value, int type) { + this.value = value; + this.type = type; + } + + @JsonValue + public Object get() { + return this.value; + } + + @SuppressWarnings("unchecked") + public T visit(Visitor visitor) { + if (this.type == 0) { + return visitor.visit((TransactionCurrencyEnum) this.value); + } else if (this.type == 1) { + return visitor.visit((String) this.value); + } + throw new IllegalStateException("Failed to visit value. This should never happen."); + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof BankFeedAccountRequestCurrency && equalTo((BankFeedAccountRequestCurrency) other); + } + + private boolean equalTo(BankFeedAccountRequestCurrency other) { + return value.equals(other.value); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.value); + } + + @java.lang.Override + public String toString() { + return this.value.toString(); + } + + public static BankFeedAccountRequestCurrency of(TransactionCurrencyEnum value) { + return new BankFeedAccountRequestCurrency(value, 0); + } + + public static BankFeedAccountRequestCurrency of(String value) { + return new BankFeedAccountRequestCurrency(value, 1); + } + + public interface Visitor { + T visit(TransactionCurrencyEnum value); + + T visit(String value); + } + + static final class Deserializer extends StdDeserializer { + Deserializer() { + super(BankFeedAccountRequestCurrency.class); + } + + @java.lang.Override + public BankFeedAccountRequestCurrency deserialize(JsonParser p, DeserializationContext context) + throws IOException { + Object value = p.readValueAs(Object.class); + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, TransactionCurrencyEnum.class)); + } catch (IllegalArgumentException e) { + } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, String.class)); + } catch (IllegalArgumentException e) { + } + throw new JsonParseException(p, "Failed to deserialize"); + } + } +} diff --git a/src/main/java/com/merge/api/accounting/types/BankFeedAccountRequestFeedStatus.java b/src/main/java/com/merge/api/accounting/types/BankFeedAccountRequestFeedStatus.java new file mode 100644 index 000000000..16fa95c8c --- /dev/null +++ b/src/main/java/com/merge/api/accounting/types/BankFeedAccountRequestFeedStatus.java @@ -0,0 +1,96 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.merge.api.accounting.types; + +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.databind.DeserializationContext; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.fasterxml.jackson.databind.deser.std.StdDeserializer; +import com.merge.api.core.ObjectMappers; +import java.io.IOException; +import java.util.Objects; + +@JsonDeserialize(using = BankFeedAccountRequestFeedStatus.Deserializer.class) +public final class BankFeedAccountRequestFeedStatus { + private final Object value; + + private final int type; + + private BankFeedAccountRequestFeedStatus(Object value, int type) { + this.value = value; + this.type = type; + } + + @JsonValue + public Object get() { + return this.value; + } + + @SuppressWarnings("unchecked") + public T visit(Visitor visitor) { + if (this.type == 0) { + return visitor.visit((FeedStatusEnum) this.value); + } else if (this.type == 1) { + return visitor.visit((String) this.value); + } + throw new IllegalStateException("Failed to visit value. This should never happen."); + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof BankFeedAccountRequestFeedStatus && equalTo((BankFeedAccountRequestFeedStatus) other); + } + + private boolean equalTo(BankFeedAccountRequestFeedStatus other) { + return value.equals(other.value); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.value); + } + + @java.lang.Override + public String toString() { + return this.value.toString(); + } + + public static BankFeedAccountRequestFeedStatus of(FeedStatusEnum value) { + return new BankFeedAccountRequestFeedStatus(value, 0); + } + + public static BankFeedAccountRequestFeedStatus of(String value) { + return new BankFeedAccountRequestFeedStatus(value, 1); + } + + public interface Visitor { + T visit(FeedStatusEnum value); + + T visit(String value); + } + + static final class Deserializer extends StdDeserializer { + Deserializer() { + super(BankFeedAccountRequestFeedStatus.class); + } + + @java.lang.Override + public BankFeedAccountRequestFeedStatus deserialize(JsonParser p, DeserializationContext context) + throws IOException { + Object value = p.readValueAs(Object.class); + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, FeedStatusEnum.class)); + } catch (IllegalArgumentException e) { + } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, String.class)); + } catch (IllegalArgumentException e) { + } + throw new JsonParseException(p, "Failed to deserialize"); + } + } +} diff --git a/src/main/java/com/merge/api/accounting/types/BankFeedAccountsListRequest.java b/src/main/java/com/merge/api/accounting/types/BankFeedAccountsListRequest.java index c3591eab5..0505039ae 100644 --- a/src/main/java/com/merge/api/accounting/types/BankFeedAccountsListRequest.java +++ b/src/main/java/com/merge/api/accounting/types/BankFeedAccountsListRequest.java @@ -147,6 +147,9 @@ public Builder from(BankFeedAccountsListRequest other) { return this; } + /** + *

    The pagination cursor value.

    + */ @JsonSetter(value = "cursor", nulls = Nulls.SKIP) public Builder cursor(Optional cursor) { this.cursor = cursor; @@ -158,6 +161,9 @@ public Builder cursor(String cursor) { return this; } + /** + *

    Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

    + */ @JsonSetter(value = "include_deleted_data", nulls = Nulls.SKIP) public Builder includeDeletedData(Optional includeDeletedData) { this.includeDeletedData = includeDeletedData; @@ -169,6 +175,9 @@ public Builder includeDeletedData(Boolean includeDeletedData) { return this; } + /** + *

    Whether to include the original data Merge fetched from the third-party to produce these models.

    + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -180,6 +189,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

    Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

    + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; @@ -191,6 +203,9 @@ public Builder includeShellData(Boolean includeShellData) { return this; } + /** + *

    Number of results to return per page.

    + */ @JsonSetter(value = "page_size", nulls = Nulls.SKIP) public Builder pageSize(Optional pageSize) { this.pageSize = pageSize; diff --git a/src/main/java/com/merge/api/accounting/types/BankFeedAccountsRetrieveRequest.java b/src/main/java/com/merge/api/accounting/types/BankFeedAccountsRetrieveRequest.java index 88326a7b1..d620af1ab 100644 --- a/src/main/java/com/merge/api/accounting/types/BankFeedAccountsRetrieveRequest.java +++ b/src/main/java/com/merge/api/accounting/types/BankFeedAccountsRetrieveRequest.java @@ -97,6 +97,9 @@ public Builder from(BankFeedAccountsRetrieveRequest other) { return this; } + /** + *

    Whether to include the original data Merge fetched from the third-party to produce these models.

    + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -108,6 +111,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

    Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

    + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; diff --git a/src/main/java/com/merge/api/accounting/types/BankFeedTransaction.java b/src/main/java/com/merge/api/accounting/types/BankFeedTransaction.java index 0b8a64bdd..9d6c0022a 100644 --- a/src/main/java/com/merge/api/accounting/types/BankFeedTransaction.java +++ b/src/main/java/com/merge/api/accounting/types/BankFeedTransaction.java @@ -43,7 +43,7 @@ public final class BankFeedTransaction { private final Optional payee; - private final Optional creditOrDebit; + private final Optional creditOrDebit; private final Optional sourceTransactionId; @@ -65,7 +65,7 @@ private BankFeedTransaction( Optional description, Optional transactionType, Optional payee, - Optional creditOrDebit, + Optional creditOrDebit, Optional sourceTransactionId, Optional remoteWasDeleted, Optional isProcessed, @@ -181,7 +181,7 @@ public Optional getPayee() { * */ @JsonProperty("credit_or_debit") - public Optional getCreditOrDebit() { + public Optional getCreditOrDebit() { return creditOrDebit; } @@ -291,7 +291,7 @@ public static final class Builder { private Optional payee = Optional.empty(); - private Optional creditOrDebit = Optional.empty(); + private Optional creditOrDebit = Optional.empty(); private Optional sourceTransactionId = Optional.empty(); @@ -334,6 +334,9 @@ public Builder id(String id) { return this; } + /** + *

    The third-party API ID of the matching object.

    + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; @@ -345,6 +348,9 @@ public Builder remoteId(String remoteId) { return this; } + /** + *

    The datetime that this object was created by Merge.

    + */ @JsonSetter(value = "created_at", nulls = Nulls.SKIP) public Builder createdAt(Optional createdAt) { this.createdAt = createdAt; @@ -356,6 +362,9 @@ public Builder createdAt(OffsetDateTime createdAt) { return this; } + /** + *

    The datetime that this object was modified by Merge.

    + */ @JsonSetter(value = "modified_at", nulls = Nulls.SKIP) public Builder modifiedAt(Optional modifiedAt) { this.modifiedAt = modifiedAt; @@ -367,6 +376,9 @@ public Builder modifiedAt(OffsetDateTime modifiedAt) { return this; } + /** + *

    The bank feed account associated with the transaction.

    + */ @JsonSetter(value = "bank_feed_account", nulls = Nulls.SKIP) public Builder bankFeedAccount(Optional bankFeedAccount) { this.bankFeedAccount = bankFeedAccount; @@ -378,6 +390,9 @@ public Builder bankFeedAccount(BankFeedTransactionBankFeedAccount bankFeedAccoun return this; } + /** + *

    The date that the transaction occurred.

    + */ @JsonSetter(value = "transaction_date", nulls = Nulls.SKIP) public Builder transactionDate(Optional transactionDate) { this.transactionDate = transactionDate; @@ -389,6 +404,9 @@ public Builder transactionDate(OffsetDateTime transactionDate) { return this; } + /** + *

    The date the transaction was posted to the bank account.

    + */ @JsonSetter(value = "posted_date", nulls = Nulls.SKIP) public Builder postedDate(Optional postedDate) { this.postedDate = postedDate; @@ -400,6 +418,9 @@ public Builder postedDate(OffsetDateTime postedDate) { return this; } + /** + *

    The amount of the transaction.

    + */ @JsonSetter(value = "amount", nulls = Nulls.SKIP) public Builder amount(Optional amount) { this.amount = amount; @@ -411,6 +432,9 @@ public Builder amount(Double amount) { return this; } + /** + *

    The description of the transaction.

    + */ @JsonSetter(value = "description", nulls = Nulls.SKIP) public Builder description(Optional description) { this.description = description; @@ -422,6 +446,9 @@ public Builder description(String description) { return this; } + /** + *

    The underlying type of the transaction.

    + */ @JsonSetter(value = "transaction_type", nulls = Nulls.SKIP) public Builder transactionType(Optional transactionType) { this.transactionType = transactionType; @@ -433,6 +460,9 @@ public Builder transactionType(String transactionType) { return this; } + /** + *

    The person or merchant who initiated the transaction, or alternatively, to whom the transaction was paid.

    + */ @JsonSetter(value = "payee", nulls = Nulls.SKIP) public Builder payee(Optional payee) { this.payee = payee; @@ -444,17 +474,27 @@ public Builder payee(String payee) { return this; } + /** + *

    If the transaction is of type debit or credit.

    + *
      + *
    • CREDIT - CREDIT
    • + *
    • DEBIT - DEBIT
    • + *
    + */ @JsonSetter(value = "credit_or_debit", nulls = Nulls.SKIP) - public Builder creditOrDebit(Optional creditOrDebit) { + public Builder creditOrDebit(Optional creditOrDebit) { this.creditOrDebit = creditOrDebit; return this; } - public Builder creditOrDebit(CreditOrDebitEnum creditOrDebit) { + public Builder creditOrDebit(BankFeedTransactionCreditOrDebit creditOrDebit) { this.creditOrDebit = Optional.ofNullable(creditOrDebit); return this; } + /** + *

    The customer’s identifier for the transaction.

    + */ @JsonSetter(value = "source_transaction_id", nulls = Nulls.SKIP) public Builder sourceTransactionId(Optional sourceTransactionId) { this.sourceTransactionId = sourceTransactionId; @@ -466,6 +506,9 @@ public Builder sourceTransactionId(String sourceTransactionId) { return this; } + /** + *

    Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

    + */ @JsonSetter(value = "remote_was_deleted", nulls = Nulls.SKIP) public Builder remoteWasDeleted(Optional remoteWasDeleted) { this.remoteWasDeleted = remoteWasDeleted; @@ -477,6 +520,9 @@ public Builder remoteWasDeleted(Boolean remoteWasDeleted) { return this; } + /** + *

    Whether or not this transaction has been processed by the external system. For example, NetSuite writes this field as True when the SuiteApp has processed the transaction.

    + */ @JsonSetter(value = "is_processed", nulls = Nulls.SKIP) public Builder isProcessed(Optional isProcessed) { this.isProcessed = isProcessed; diff --git a/src/main/java/com/merge/api/accounting/types/BankFeedTransactionCreditOrDebit.java b/src/main/java/com/merge/api/accounting/types/BankFeedTransactionCreditOrDebit.java new file mode 100644 index 000000000..bc644dfd7 --- /dev/null +++ b/src/main/java/com/merge/api/accounting/types/BankFeedTransactionCreditOrDebit.java @@ -0,0 +1,96 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.merge.api.accounting.types; + +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.databind.DeserializationContext; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.fasterxml.jackson.databind.deser.std.StdDeserializer; +import com.merge.api.core.ObjectMappers; +import java.io.IOException; +import java.util.Objects; + +@JsonDeserialize(using = BankFeedTransactionCreditOrDebit.Deserializer.class) +public final class BankFeedTransactionCreditOrDebit { + private final Object value; + + private final int type; + + private BankFeedTransactionCreditOrDebit(Object value, int type) { + this.value = value; + this.type = type; + } + + @JsonValue + public Object get() { + return this.value; + } + + @SuppressWarnings("unchecked") + public T visit(Visitor visitor) { + if (this.type == 0) { + return visitor.visit((CreditOrDebitEnum) this.value); + } else if (this.type == 1) { + return visitor.visit((String) this.value); + } + throw new IllegalStateException("Failed to visit value. This should never happen."); + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof BankFeedTransactionCreditOrDebit && equalTo((BankFeedTransactionCreditOrDebit) other); + } + + private boolean equalTo(BankFeedTransactionCreditOrDebit other) { + return value.equals(other.value); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.value); + } + + @java.lang.Override + public String toString() { + return this.value.toString(); + } + + public static BankFeedTransactionCreditOrDebit of(CreditOrDebitEnum value) { + return new BankFeedTransactionCreditOrDebit(value, 0); + } + + public static BankFeedTransactionCreditOrDebit of(String value) { + return new BankFeedTransactionCreditOrDebit(value, 1); + } + + public interface Visitor { + T visit(CreditOrDebitEnum value); + + T visit(String value); + } + + static final class Deserializer extends StdDeserializer { + Deserializer() { + super(BankFeedTransactionCreditOrDebit.class); + } + + @java.lang.Override + public BankFeedTransactionCreditOrDebit deserialize(JsonParser p, DeserializationContext context) + throws IOException { + Object value = p.readValueAs(Object.class); + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, CreditOrDebitEnum.class)); + } catch (IllegalArgumentException e) { + } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, String.class)); + } catch (IllegalArgumentException e) { + } + throw new JsonParseException(p, "Failed to deserialize"); + } + } +} diff --git a/src/main/java/com/merge/api/accounting/types/BankFeedTransactionEndpointRequest.java b/src/main/java/com/merge/api/accounting/types/BankFeedTransactionEndpointRequest.java index 4eead35cc..fb14fbcfc 100644 --- a/src/main/java/com/merge/api/accounting/types/BankFeedTransactionEndpointRequest.java +++ b/src/main/java/com/merge/api/accounting/types/BankFeedTransactionEndpointRequest.java @@ -100,10 +100,16 @@ public interface ModelStage { public interface _FinalStage { BankFeedTransactionEndpointRequest build(); + /** + *

    Whether to include debug fields (such as log file links) in the response.

    + */ _FinalStage isDebugMode(Optional isDebugMode); _FinalStage isDebugMode(Boolean isDebugMode); + /** + *

    Whether or not third-party updates should be run asynchronously.

    + */ _FinalStage runAsync(Optional runAsync); _FinalStage runAsync(Boolean runAsync); @@ -147,6 +153,9 @@ public _FinalStage runAsync(Boolean runAsync) { return this; } + /** + *

    Whether or not third-party updates should be run asynchronously.

    + */ @java.lang.Override @JsonSetter(value = "run_async", nulls = Nulls.SKIP) public _FinalStage runAsync(Optional runAsync) { @@ -164,6 +173,9 @@ public _FinalStage isDebugMode(Boolean isDebugMode) { return this; } + /** + *

    Whether to include debug fields (such as log file links) in the response.

    + */ @java.lang.Override @JsonSetter(value = "is_debug_mode", nulls = Nulls.SKIP) public _FinalStage isDebugMode(Optional isDebugMode) { diff --git a/src/main/java/com/merge/api/accounting/types/BankFeedTransactionRequestRequest.java b/src/main/java/com/merge/api/accounting/types/BankFeedTransactionRequestRequest.java index d5e58aac3..bea10f39c 100644 --- a/src/main/java/com/merge/api/accounting/types/BankFeedTransactionRequestRequest.java +++ b/src/main/java/com/merge/api/accounting/types/BankFeedTransactionRequestRequest.java @@ -36,7 +36,7 @@ public final class BankFeedTransactionRequestRequest { private final Optional payee; - private final Optional creditOrDebit; + private final Optional creditOrDebit; private final Optional sourceTransactionId; @@ -54,7 +54,7 @@ private BankFeedTransactionRequestRequest( Optional description, Optional transactionType, Optional payee, - Optional creditOrDebit, + Optional creditOrDebit, Optional sourceTransactionId, Optional> integrationParams, Optional> linkedAccountParams, @@ -137,7 +137,7 @@ public Optional getPayee() { * */ @JsonProperty("credit_or_debit") - public Optional getCreditOrDebit() { + public Optional getCreditOrDebit() { return creditOrDebit; } @@ -225,7 +225,7 @@ public static final class Builder { private Optional payee = Optional.empty(); - private Optional creditOrDebit = Optional.empty(); + private Optional creditOrDebit = Optional.empty(); private Optional sourceTransactionId = Optional.empty(); @@ -253,6 +253,9 @@ public Builder from(BankFeedTransactionRequestRequest other) { return this; } + /** + *

    The bank feed account associated with the transaction.

    + */ @JsonSetter(value = "bank_feed_account", nulls = Nulls.SKIP) public Builder bankFeedAccount(Optional bankFeedAccount) { this.bankFeedAccount = bankFeedAccount; @@ -264,6 +267,9 @@ public Builder bankFeedAccount(BankFeedTransactionRequestRequestBankFeedAccount return this; } + /** + *

    The date that the transaction occurred.

    + */ @JsonSetter(value = "transaction_date", nulls = Nulls.SKIP) public Builder transactionDate(Optional transactionDate) { this.transactionDate = transactionDate; @@ -275,6 +281,9 @@ public Builder transactionDate(OffsetDateTime transactionDate) { return this; } + /** + *

    The date the transaction was posted to the bank account.

    + */ @JsonSetter(value = "posted_date", nulls = Nulls.SKIP) public Builder postedDate(Optional postedDate) { this.postedDate = postedDate; @@ -286,6 +295,9 @@ public Builder postedDate(OffsetDateTime postedDate) { return this; } + /** + *

    The amount of the transaction.

    + */ @JsonSetter(value = "amount", nulls = Nulls.SKIP) public Builder amount(Optional amount) { this.amount = amount; @@ -297,6 +309,9 @@ public Builder amount(Double amount) { return this; } + /** + *

    The description of the transaction.

    + */ @JsonSetter(value = "description", nulls = Nulls.SKIP) public Builder description(Optional description) { this.description = description; @@ -308,6 +323,9 @@ public Builder description(String description) { return this; } + /** + *

    The underlying type of the transaction.

    + */ @JsonSetter(value = "transaction_type", nulls = Nulls.SKIP) public Builder transactionType(Optional transactionType) { this.transactionType = transactionType; @@ -319,6 +337,9 @@ public Builder transactionType(String transactionType) { return this; } + /** + *

    The person or merchant who initiated the transaction, or alternatively, to whom the transaction was paid.

    + */ @JsonSetter(value = "payee", nulls = Nulls.SKIP) public Builder payee(Optional payee) { this.payee = payee; @@ -330,17 +351,27 @@ public Builder payee(String payee) { return this; } + /** + *

    If the transaction is of type debit or credit.

    + *
      + *
    • CREDIT - CREDIT
    • + *
    • DEBIT - DEBIT
    • + *
    + */ @JsonSetter(value = "credit_or_debit", nulls = Nulls.SKIP) - public Builder creditOrDebit(Optional creditOrDebit) { + public Builder creditOrDebit(Optional creditOrDebit) { this.creditOrDebit = creditOrDebit; return this; } - public Builder creditOrDebit(CreditOrDebitEnum creditOrDebit) { + public Builder creditOrDebit(BankFeedTransactionRequestRequestCreditOrDebit creditOrDebit) { this.creditOrDebit = Optional.ofNullable(creditOrDebit); return this; } + /** + *

    The customer’s identifier for the transaction.

    + */ @JsonSetter(value = "source_transaction_id", nulls = Nulls.SKIP) public Builder sourceTransactionId(Optional sourceTransactionId) { this.sourceTransactionId = sourceTransactionId; diff --git a/src/main/java/com/merge/api/accounting/types/BankFeedTransactionRequestRequestCreditOrDebit.java b/src/main/java/com/merge/api/accounting/types/BankFeedTransactionRequestRequestCreditOrDebit.java new file mode 100644 index 000000000..5754b5530 --- /dev/null +++ b/src/main/java/com/merge/api/accounting/types/BankFeedTransactionRequestRequestCreditOrDebit.java @@ -0,0 +1,97 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.merge.api.accounting.types; + +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.databind.DeserializationContext; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.fasterxml.jackson.databind.deser.std.StdDeserializer; +import com.merge.api.core.ObjectMappers; +import java.io.IOException; +import java.util.Objects; + +@JsonDeserialize(using = BankFeedTransactionRequestRequestCreditOrDebit.Deserializer.class) +public final class BankFeedTransactionRequestRequestCreditOrDebit { + private final Object value; + + private final int type; + + private BankFeedTransactionRequestRequestCreditOrDebit(Object value, int type) { + this.value = value; + this.type = type; + } + + @JsonValue + public Object get() { + return this.value; + } + + @SuppressWarnings("unchecked") + public T visit(Visitor visitor) { + if (this.type == 0) { + return visitor.visit((CreditOrDebitEnum) this.value); + } else if (this.type == 1) { + return visitor.visit((String) this.value); + } + throw new IllegalStateException("Failed to visit value. This should never happen."); + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof BankFeedTransactionRequestRequestCreditOrDebit + && equalTo((BankFeedTransactionRequestRequestCreditOrDebit) other); + } + + private boolean equalTo(BankFeedTransactionRequestRequestCreditOrDebit other) { + return value.equals(other.value); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.value); + } + + @java.lang.Override + public String toString() { + return this.value.toString(); + } + + public static BankFeedTransactionRequestRequestCreditOrDebit of(CreditOrDebitEnum value) { + return new BankFeedTransactionRequestRequestCreditOrDebit(value, 0); + } + + public static BankFeedTransactionRequestRequestCreditOrDebit of(String value) { + return new BankFeedTransactionRequestRequestCreditOrDebit(value, 1); + } + + public interface Visitor { + T visit(CreditOrDebitEnum value); + + T visit(String value); + } + + static final class Deserializer extends StdDeserializer { + Deserializer() { + super(BankFeedTransactionRequestRequestCreditOrDebit.class); + } + + @java.lang.Override + public BankFeedTransactionRequestRequestCreditOrDebit deserialize(JsonParser p, DeserializationContext context) + throws IOException { + Object value = p.readValueAs(Object.class); + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, CreditOrDebitEnum.class)); + } catch (IllegalArgumentException e) { + } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, String.class)); + } catch (IllegalArgumentException e) { + } + throw new JsonParseException(p, "Failed to deserialize"); + } + } +} diff --git a/src/main/java/com/merge/api/accounting/types/BankFeedTransactionsListRequest.java b/src/main/java/com/merge/api/accounting/types/BankFeedTransactionsListRequest.java index 9cc70a337..1b6b95f25 100644 --- a/src/main/java/com/merge/api/accounting/types/BankFeedTransactionsListRequest.java +++ b/src/main/java/com/merge/api/accounting/types/BankFeedTransactionsListRequest.java @@ -273,6 +273,9 @@ public Builder from(BankFeedTransactionsListRequest other) { return this; } + /** + *

    Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.

    + */ @JsonSetter(value = "expand", nulls = Nulls.SKIP) public Builder expand(Optional> expand) { this.expand = expand; @@ -289,6 +292,9 @@ public Builder expand(String expand) { return this; } + /** + *

    If provided, will only return objects created after this datetime.

    + */ @JsonSetter(value = "created_after", nulls = Nulls.SKIP) public Builder createdAfter(Optional createdAfter) { this.createdAfter = createdAfter; @@ -300,6 +306,9 @@ public Builder createdAfter(OffsetDateTime createdAfter) { return this; } + /** + *

    If provided, will only return objects created before this datetime.

    + */ @JsonSetter(value = "created_before", nulls = Nulls.SKIP) public Builder createdBefore(Optional createdBefore) { this.createdBefore = createdBefore; @@ -311,6 +320,9 @@ public Builder createdBefore(OffsetDateTime createdBefore) { return this; } + /** + *

    The pagination cursor value.

    + */ @JsonSetter(value = "cursor", nulls = Nulls.SKIP) public Builder cursor(Optional cursor) { this.cursor = cursor; @@ -322,6 +334,9 @@ public Builder cursor(String cursor) { return this; } + /** + *

    Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

    + */ @JsonSetter(value = "include_deleted_data", nulls = Nulls.SKIP) public Builder includeDeletedData(Optional includeDeletedData) { this.includeDeletedData = includeDeletedData; @@ -333,6 +348,9 @@ public Builder includeDeletedData(Boolean includeDeletedData) { return this; } + /** + *

    Whether to include the original data Merge fetched from the third-party to produce these models.

    + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -344,6 +362,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

    Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

    + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; @@ -355,6 +376,9 @@ public Builder includeShellData(Boolean includeShellData) { return this; } + /** + *

    If provided, will only return bank feed transactions with this is_processed value

    + */ @JsonSetter(value = "is_processed", nulls = Nulls.SKIP) public Builder isProcessed(Optional isProcessed) { this.isProcessed = isProcessed; @@ -366,6 +390,9 @@ public Builder isProcessed(Boolean isProcessed) { return this; } + /** + *

    If provided, only objects synced by Merge after this date time will be returned.

    + */ @JsonSetter(value = "modified_after", nulls = Nulls.SKIP) public Builder modifiedAfter(Optional modifiedAfter) { this.modifiedAfter = modifiedAfter; @@ -377,6 +404,9 @@ public Builder modifiedAfter(OffsetDateTime modifiedAfter) { return this; } + /** + *

    If provided, only objects synced by Merge before this date time will be returned.

    + */ @JsonSetter(value = "modified_before", nulls = Nulls.SKIP) public Builder modifiedBefore(Optional modifiedBefore) { this.modifiedBefore = modifiedBefore; @@ -388,6 +418,9 @@ public Builder modifiedBefore(OffsetDateTime modifiedBefore) { return this; } + /** + *

    Number of results to return per page.

    + */ @JsonSetter(value = "page_size", nulls = Nulls.SKIP) public Builder pageSize(Optional pageSize) { this.pageSize = pageSize; @@ -399,6 +432,9 @@ public Builder pageSize(Integer pageSize) { return this; } + /** + *

    The API provider's ID for the given object.

    + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; diff --git a/src/main/java/com/merge/api/accounting/types/BankFeedTransactionsRetrieveRequest.java b/src/main/java/com/merge/api/accounting/types/BankFeedTransactionsRetrieveRequest.java index 864cb7fc7..601412edd 100644 --- a/src/main/java/com/merge/api/accounting/types/BankFeedTransactionsRetrieveRequest.java +++ b/src/main/java/com/merge/api/accounting/types/BankFeedTransactionsRetrieveRequest.java @@ -117,6 +117,9 @@ public Builder from(BankFeedTransactionsRetrieveRequest other) { return this; } + /** + *

    Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.

    + */ @JsonSetter(value = "expand", nulls = Nulls.SKIP) public Builder expand(Optional> expand) { this.expand = expand; @@ -133,6 +136,9 @@ public Builder expand(String expand) { return this; } + /** + *

    Whether to include the original data Merge fetched from the third-party to produce these models.

    + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -144,6 +150,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

    Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

    + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; diff --git a/src/main/java/com/merge/api/accounting/types/CashFlowStatement.java b/src/main/java/com/merge/api/accounting/types/CashFlowStatement.java index 5dc0e02f3..cfd45d633 100644 --- a/src/main/java/com/merge/api/accounting/types/CashFlowStatement.java +++ b/src/main/java/com/merge/api/accounting/types/CashFlowStatement.java @@ -33,7 +33,7 @@ public final class CashFlowStatement { private final Optional name; - private final Optional currency; + private final Optional currency; private final Optional company; @@ -67,7 +67,7 @@ private CashFlowStatement( Optional createdAt, Optional modifiedAt, Optional name, - Optional currency, + Optional currency, Optional company, Optional startPeriod, Optional endPeriod, @@ -451,7 +451,7 @@ public Optional getName() { * */ @JsonProperty("currency") - public Optional getCurrency() { + public Optional getCurrency() { return currency; } @@ -612,7 +612,7 @@ public static final class Builder { private Optional name = Optional.empty(); - private Optional currency = Optional.empty(); + private Optional currency = Optional.empty(); private Optional company = Optional.empty(); @@ -676,6 +676,9 @@ public Builder id(String id) { return this; } + /** + *

    The third-party API ID of the matching object.

    + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; @@ -687,6 +690,9 @@ public Builder remoteId(String remoteId) { return this; } + /** + *

    The datetime that this object was created by Merge.

    + */ @JsonSetter(value = "created_at", nulls = Nulls.SKIP) public Builder createdAt(Optional createdAt) { this.createdAt = createdAt; @@ -698,6 +704,9 @@ public Builder createdAt(OffsetDateTime createdAt) { return this; } + /** + *

    The datetime that this object was modified by Merge.

    + */ @JsonSetter(value = "modified_at", nulls = Nulls.SKIP) public Builder modifiedAt(Optional modifiedAt) { this.modifiedAt = modifiedAt; @@ -709,6 +718,9 @@ public Builder modifiedAt(OffsetDateTime modifiedAt) { return this; } + /** + *

    The cash flow statement's name.

    + */ @JsonSetter(value = "name", nulls = Nulls.SKIP) public Builder name(Optional name) { this.name = name; @@ -720,17 +732,331 @@ public Builder name(String name) { return this; } + /** + *

    The cash flow statement's currency.

    + *
      + *
    • XUA - ADB Unit of Account
    • + *
    • AFN - Afghan Afghani
    • + *
    • AFA - Afghan Afghani (1927–2002)
    • + *
    • ALL - Albanian Lek
    • + *
    • ALK - Albanian Lek (1946–1965)
    • + *
    • DZD - Algerian Dinar
    • + *
    • ADP - Andorran Peseta
    • + *
    • AOA - Angolan Kwanza
    • + *
    • AOK - Angolan Kwanza (1977–1991)
    • + *
    • AON - Angolan New Kwanza (1990–2000)
    • + *
    • AOR - Angolan Readjusted Kwanza (1995–1999)
    • + *
    • ARA - Argentine Austral
    • + *
    • ARS - Argentine Peso
    • + *
    • ARM - Argentine Peso (1881–1970)
    • + *
    • ARP - Argentine Peso (1983–1985)
    • + *
    • ARL - Argentine Peso Ley (1970–1983)
    • + *
    • AMD - Armenian Dram
    • + *
    • AWG - Aruban Florin
    • + *
    • AUD - Australian Dollar
    • + *
    • ATS - Austrian Schilling
    • + *
    • AZN - Azerbaijani Manat
    • + *
    • AZM - Azerbaijani Manat (1993–2006)
    • + *
    • BSD - Bahamian Dollar
    • + *
    • BHD - Bahraini Dinar
    • + *
    • BDT - Bangladeshi Taka
    • + *
    • BBD - Barbadian Dollar
    • + *
    • BYN - Belarusian Ruble
    • + *
    • BYB - Belarusian Ruble (1994–1999)
    • + *
    • BYR - Belarusian Ruble (2000–2016)
    • + *
    • BEF - Belgian Franc
    • + *
    • BEC - Belgian Franc (convertible)
    • + *
    • BEL - Belgian Franc (financial)
    • + *
    • BZD - Belize Dollar
    • + *
    • BMD - Bermudan Dollar
    • + *
    • BTN - Bhutanese Ngultrum
    • + *
    • BOB - Bolivian Boliviano
    • + *
    • BOL - Bolivian Boliviano (1863–1963)
    • + *
    • BOV - Bolivian Mvdol
    • + *
    • BOP - Bolivian Peso
    • + *
    • BAM - Bosnia-Herzegovina Convertible Mark
    • + *
    • BAD - Bosnia-Herzegovina Dinar (1992–1994)
    • + *
    • BAN - Bosnia-Herzegovina New Dinar (1994–1997)
    • + *
    • BWP - Botswanan Pula
    • + *
    • BRC - Brazilian Cruzado (1986–1989)
    • + *
    • BRZ - Brazilian Cruzeiro (1942–1967)
    • + *
    • BRE - Brazilian Cruzeiro (1990–1993)
    • + *
    • BRR - Brazilian Cruzeiro (1993–1994)
    • + *
    • BRN - Brazilian New Cruzado (1989–1990)
    • + *
    • BRB - Brazilian New Cruzeiro (1967–1986)
    • + *
    • BRL - Brazilian Real
    • + *
    • GBP - British Pound
    • + *
    • BND - Brunei Dollar
    • + *
    • BGL - Bulgarian Hard Lev
    • + *
    • BGN - Bulgarian Lev
    • + *
    • BGO - Bulgarian Lev (1879–1952)
    • + *
    • BGM - Bulgarian Socialist Lev
    • + *
    • BUK - Burmese Kyat
    • + *
    • BIF - Burundian Franc
    • + *
    • XPF - CFP Franc
    • + *
    • KHR - Cambodian Riel
    • + *
    • CAD - Canadian Dollar
    • + *
    • CVE - Cape Verdean Escudo
    • + *
    • KYD - Cayman Islands Dollar
    • + *
    • XAF - Central African CFA Franc
    • + *
    • CLE - Chilean Escudo
    • + *
    • CLP - Chilean Peso
    • + *
    • CLF - Chilean Unit of Account (UF)
    • + *
    • CNX - Chinese People’s Bank Dollar
    • + *
    • CNY - Chinese Yuan
    • + *
    • CNH - Chinese Yuan (offshore)
    • + *
    • COP - Colombian Peso
    • + *
    • COU - Colombian Real Value Unit
    • + *
    • KMF - Comorian Franc
    • + *
    • CDF - Congolese Franc
    • + *
    • CRC - Costa Rican Colón
    • + *
    • HRD - Croatian Dinar
    • + *
    • HRK - Croatian Kuna
    • + *
    • CUC - Cuban Convertible Peso
    • + *
    • CUP - Cuban Peso
    • + *
    • CYP - Cypriot Pound
    • + *
    • CZK - Czech Koruna
    • + *
    • CSK - Czechoslovak Hard Koruna
    • + *
    • DKK - Danish Krone
    • + *
    • DJF - Djiboutian Franc
    • + *
    • DOP - Dominican Peso
    • + *
    • NLG - Dutch Guilder
    • + *
    • XCD - East Caribbean Dollar
    • + *
    • DDM - East German Mark
    • + *
    • ECS - Ecuadorian Sucre
    • + *
    • ECV - Ecuadorian Unit of Constant Value
    • + *
    • EGP - Egyptian Pound
    • + *
    • GQE - Equatorial Guinean Ekwele
    • + *
    • ERN - Eritrean Nakfa
    • + *
    • EEK - Estonian Kroon
    • + *
    • ETB - Ethiopian Birr
    • + *
    • EUR - Euro
    • + *
    • XBA - European Composite Unit
    • + *
    • XEU - European Currency Unit
    • + *
    • XBB - European Monetary Unit
    • + *
    • XBC - European Unit of Account (XBC)
    • + *
    • XBD - European Unit of Account (XBD)
    • + *
    • FKP - Falkland Islands Pound
    • + *
    • FJD - Fijian Dollar
    • + *
    • FIM - Finnish Markka
    • + *
    • FRF - French Franc
    • + *
    • XFO - French Gold Franc
    • + *
    • XFU - French UIC-Franc
    • + *
    • GMD - Gambian Dalasi
    • + *
    • GEK - Georgian Kupon Larit
    • + *
    • GEL - Georgian Lari
    • + *
    • DEM - German Mark
    • + *
    • GHS - Ghanaian Cedi
    • + *
    • GHC - Ghanaian Cedi (1979–2007)
    • + *
    • GIP - Gibraltar Pound
    • + *
    • XAU - Gold
    • + *
    • GRD - Greek Drachma
    • + *
    • GTQ - Guatemalan Quetzal
    • + *
    • GWP - Guinea-Bissau Peso
    • + *
    • GNF - Guinean Franc
    • + *
    • GNS - Guinean Syli
    • + *
    • GYD - Guyanaese Dollar
    • + *
    • HTG - Haitian Gourde
    • + *
    • HNL - Honduran Lempira
    • + *
    • HKD - Hong Kong Dollar
    • + *
    • HUF - Hungarian Forint
    • + *
    • IMP - IMP
    • + *
    • ISK - Icelandic Króna
    • + *
    • ISJ - Icelandic Króna (1918–1981)
    • + *
    • INR - Indian Rupee
    • + *
    • IDR - Indonesian Rupiah
    • + *
    • IRR - Iranian Rial
    • + *
    • IQD - Iraqi Dinar
    • + *
    • IEP - Irish Pound
    • + *
    • ILS - Israeli New Shekel
    • + *
    • ILP - Israeli Pound
    • + *
    • ILR - Israeli Shekel (1980–1985)
    • + *
    • ITL - Italian Lira
    • + *
    • JMD - Jamaican Dollar
    • + *
    • JPY - Japanese Yen
    • + *
    • JOD - Jordanian Dinar
    • + *
    • KZT - Kazakhstani Tenge
    • + *
    • KES - Kenyan Shilling
    • + *
    • KWD - Kuwaiti Dinar
    • + *
    • KGS - Kyrgystani Som
    • + *
    • LAK - Laotian Kip
    • + *
    • LVL - Latvian Lats
    • + *
    • LVR - Latvian Ruble
    • + *
    • LBP - Lebanese Pound
    • + *
    • LSL - Lesotho Loti
    • + *
    • LRD - Liberian Dollar
    • + *
    • LYD - Libyan Dinar
    • + *
    • LTL - Lithuanian Litas
    • + *
    • LTT - Lithuanian Talonas
    • + *
    • LUL - Luxembourg Financial Franc
    • + *
    • LUC - Luxembourgian Convertible Franc
    • + *
    • LUF - Luxembourgian Franc
    • + *
    • MOP - Macanese Pataca
    • + *
    • MKD - Macedonian Denar
    • + *
    • MKN - Macedonian Denar (1992–1993)
    • + *
    • MGA - Malagasy Ariary
    • + *
    • MGF - Malagasy Franc
    • + *
    • MWK - Malawian Kwacha
    • + *
    • MYR - Malaysian Ringgit
    • + *
    • MVR - Maldivian Rufiyaa
    • + *
    • MVP - Maldivian Rupee (1947–1981)
    • + *
    • MLF - Malian Franc
    • + *
    • MTL - Maltese Lira
    • + *
    • MTP - Maltese Pound
    • + *
    • MRU - Mauritanian Ouguiya
    • + *
    • MRO - Mauritanian Ouguiya (1973–2017)
    • + *
    • MUR - Mauritian Rupee
    • + *
    • MXV - Mexican Investment Unit
    • + *
    • MXN - Mexican Peso
    • + *
    • MXP - Mexican Silver Peso (1861–1992)
    • + *
    • MDC - Moldovan Cupon
    • + *
    • MDL - Moldovan Leu
    • + *
    • MCF - Monegasque Franc
    • + *
    • MNT - Mongolian Tugrik
    • + *
    • MAD - Moroccan Dirham
    • + *
    • MAF - Moroccan Franc
    • + *
    • MZE - Mozambican Escudo
    • + *
    • MZN - Mozambican Metical
    • + *
    • MZM - Mozambican Metical (1980–2006)
    • + *
    • MMK - Myanmar Kyat
    • + *
    • NAD - Namibian Dollar
    • + *
    • NPR - Nepalese Rupee
    • + *
    • ANG - Netherlands Antillean Guilder
    • + *
    • TWD - New Taiwan Dollar
    • + *
    • NZD - New Zealand Dollar
    • + *
    • NIO - Nicaraguan Córdoba
    • + *
    • NIC - Nicaraguan Córdoba (1988–1991)
    • + *
    • NGN - Nigerian Naira
    • + *
    • KPW - North Korean Won
    • + *
    • NOK - Norwegian Krone
    • + *
    • OMR - Omani Rial
    • + *
    • PKR - Pakistani Rupee
    • + *
    • XPD - Palladium
    • + *
    • PAB - Panamanian Balboa
    • + *
    • PGK - Papua New Guinean Kina
    • + *
    • PYG - Paraguayan Guarani
    • + *
    • PEI - Peruvian Inti
    • + *
    • PEN - Peruvian Sol
    • + *
    • PES - Peruvian Sol (1863–1965)
    • + *
    • PHP - Philippine Peso
    • + *
    • XPT - Platinum
    • + *
    • PLN - Polish Zloty
    • + *
    • PLZ - Polish Zloty (1950–1995)
    • + *
    • PTE - Portuguese Escudo
    • + *
    • GWE - Portuguese Guinea Escudo
    • + *
    • QAR - Qatari Rial
    • + *
    • XRE - RINET Funds
    • + *
    • RHD - Rhodesian Dollar
    • + *
    • RON - Romanian Leu
    • + *
    • ROL - Romanian Leu (1952–2006)
    • + *
    • RUB - Russian Ruble
    • + *
    • RUR - Russian Ruble (1991–1998)
    • + *
    • RWF - Rwandan Franc
    • + *
    • SVC - Salvadoran Colón
    • + *
    • WST - Samoan Tala
    • + *
    • SAR - Saudi Riyal
    • + *
    • RSD - Serbian Dinar
    • + *
    • CSD - Serbian Dinar (2002–2006)
    • + *
    • SCR - Seychellois Rupee
    • + *
    • SLL - Sierra Leonean Leone
    • + *
    • XAG - Silver
    • + *
    • SGD - Singapore Dollar
    • + *
    • SKK - Slovak Koruna
    • + *
    • SIT - Slovenian Tolar
    • + *
    • SBD - Solomon Islands Dollar
    • + *
    • SOS - Somali Shilling
    • + *
    • ZAR - South African Rand
    • + *
    • ZAL - South African Rand (financial)
    • + *
    • KRH - South Korean Hwan (1953–1962)
    • + *
    • KRW - South Korean Won
    • + *
    • KRO - South Korean Won (1945–1953)
    • + *
    • SSP - South Sudanese Pound
    • + *
    • SUR - Soviet Rouble
    • + *
    • ESP - Spanish Peseta
    • + *
    • ESA - Spanish Peseta (A account)
    • + *
    • ESB - Spanish Peseta (convertible account)
    • + *
    • XDR - Special Drawing Rights
    • + *
    • LKR - Sri Lankan Rupee
    • + *
    • SHP - St. Helena Pound
    • + *
    • XSU - Sucre
    • + *
    • SDD - Sudanese Dinar (1992–2007)
    • + *
    • SDG - Sudanese Pound
    • + *
    • SDP - Sudanese Pound (1957–1998)
    • + *
    • SRD - Surinamese Dollar
    • + *
    • SRG - Surinamese Guilder
    • + *
    • SZL - Swazi Lilangeni
    • + *
    • SEK - Swedish Krona
    • + *
    • CHF - Swiss Franc
    • + *
    • SYP - Syrian Pound
    • + *
    • STN - São Tomé & Príncipe Dobra
    • + *
    • STD - São Tomé & Príncipe Dobra (1977–2017)
    • + *
    • TVD - TVD
    • + *
    • TJR - Tajikistani Ruble
    • + *
    • TJS - Tajikistani Somoni
    • + *
    • TZS - Tanzanian Shilling
    • + *
    • XTS - Testing Currency Code
    • + *
    • THB - Thai Baht
    • + *
    • XXX - The codes assigned for transactions where no currency is involved
    • + *
    • TPE - Timorese Escudo
    • + *
    • TOP - Tongan Paʻanga
    • + *
    • TTD - Trinidad & Tobago Dollar
    • + *
    • TND - Tunisian Dinar
    • + *
    • TRY - Turkish Lira
    • + *
    • TRL - Turkish Lira (1922–2005)
    • + *
    • TMT - Turkmenistani Manat
    • + *
    • TMM - Turkmenistani Manat (1993–2009)
    • + *
    • USD - US Dollar
    • + *
    • USN - US Dollar (Next day)
    • + *
    • USS - US Dollar (Same day)
    • + *
    • UGX - Ugandan Shilling
    • + *
    • UGS - Ugandan Shilling (1966–1987)
    • + *
    • UAH - Ukrainian Hryvnia
    • + *
    • UAK - Ukrainian Karbovanets
    • + *
    • AED - United Arab Emirates Dirham
    • + *
    • UYW - Uruguayan Nominal Wage Index Unit
    • + *
    • UYU - Uruguayan Peso
    • + *
    • UYP - Uruguayan Peso (1975–1993)
    • + *
    • UYI - Uruguayan Peso (Indexed Units)
    • + *
    • UZS - Uzbekistani Som
    • + *
    • VUV - Vanuatu Vatu
    • + *
    • VES - Venezuelan Bolívar
    • + *
    • VEB - Venezuelan Bolívar (1871–2008)
    • + *
    • VEF - Venezuelan Bolívar (2008–2018)
    • + *
    • VND - Vietnamese Dong
    • + *
    • VNN - Vietnamese Dong (1978–1985)
    • + *
    • CHE - WIR Euro
    • + *
    • CHW - WIR Franc
    • + *
    • XOF - West African CFA Franc
    • + *
    • YDD - Yemeni Dinar
    • + *
    • YER - Yemeni Rial
    • + *
    • YUN - Yugoslavian Convertible Dinar (1990–1992)
    • + *
    • YUD - Yugoslavian Hard Dinar (1966–1990)
    • + *
    • YUM - Yugoslavian New Dinar (1994–2002)
    • + *
    • YUR - Yugoslavian Reformed Dinar (1992–1993)
    • + *
    • ZWN - ZWN
    • + *
    • ZRN - Zairean New Zaire (1993–1998)
    • + *
    • ZRZ - Zairean Zaire (1971–1993)
    • + *
    • ZMW - Zambian Kwacha
    • + *
    • ZMK - Zambian Kwacha (1968–2012)
    • + *
    • ZWD - Zimbabwean Dollar (1980–2008)
    • + *
    • ZWR - Zimbabwean Dollar (2008)
    • + *
    • ZWL - Zimbabwean Dollar (2009)
    • + *
    + */ @JsonSetter(value = "currency", nulls = Nulls.SKIP) - public Builder currency(Optional currency) { + public Builder currency(Optional currency) { this.currency = currency; return this; } - public Builder currency(TransactionCurrencyEnum currency) { + public Builder currency(CashFlowStatementCurrency currency) { this.currency = Optional.ofNullable(currency); return this; } + /** + *

    The company the cash flow statement belongs to.

    + */ @JsonSetter(value = "company", nulls = Nulls.SKIP) public Builder company(Optional company) { this.company = company; @@ -742,6 +1068,9 @@ public Builder company(CashFlowStatementCompany company) { return this; } + /** + *

    The cash flow statement's start period.

    + */ @JsonSetter(value = "start_period", nulls = Nulls.SKIP) public Builder startPeriod(Optional startPeriod) { this.startPeriod = startPeriod; @@ -753,6 +1082,9 @@ public Builder startPeriod(OffsetDateTime startPeriod) { return this; } + /** + *

    The cash flow statement's end period.

    + */ @JsonSetter(value = "end_period", nulls = Nulls.SKIP) public Builder endPeriod(Optional endPeriod) { this.endPeriod = endPeriod; @@ -764,6 +1096,9 @@ public Builder endPeriod(OffsetDateTime endPeriod) { return this; } + /** + *

    Cash and cash equivalents at the beginning of the cash flow statement's period.

    + */ @JsonSetter(value = "cash_at_beginning_of_period", nulls = Nulls.SKIP) public Builder cashAtBeginningOfPeriod(Optional cashAtBeginningOfPeriod) { this.cashAtBeginningOfPeriod = cashAtBeginningOfPeriod; @@ -775,6 +1110,9 @@ public Builder cashAtBeginningOfPeriod(Double cashAtBeginningOfPeriod) { return this; } + /** + *

    Cash and cash equivalents at the beginning of the cash flow statement's period.

    + */ @JsonSetter(value = "cash_at_end_of_period", nulls = Nulls.SKIP) public Builder cashAtEndOfPeriod(Optional cashAtEndOfPeriod) { this.cashAtEndOfPeriod = cashAtEndOfPeriod; @@ -819,6 +1157,9 @@ public Builder financingActivities(List financingActivities) { return this; } + /** + *

    The time that cash flow statement was generated by the accounting system.

    + */ @JsonSetter(value = "remote_generated_at", nulls = Nulls.SKIP) public Builder remoteGeneratedAt(Optional remoteGeneratedAt) { this.remoteGeneratedAt = remoteGeneratedAt; @@ -830,6 +1171,9 @@ public Builder remoteGeneratedAt(OffsetDateTime remoteGeneratedAt) { return this; } + /** + *

    Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

    + */ @JsonSetter(value = "remote_was_deleted", nulls = Nulls.SKIP) public Builder remoteWasDeleted(Optional remoteWasDeleted) { this.remoteWasDeleted = remoteWasDeleted; diff --git a/src/main/java/com/merge/api/accounting/types/CashFlowStatementCurrency.java b/src/main/java/com/merge/api/accounting/types/CashFlowStatementCurrency.java new file mode 100644 index 000000000..579a6fd8b --- /dev/null +++ b/src/main/java/com/merge/api/accounting/types/CashFlowStatementCurrency.java @@ -0,0 +1,95 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.merge.api.accounting.types; + +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.databind.DeserializationContext; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.fasterxml.jackson.databind.deser.std.StdDeserializer; +import com.merge.api.core.ObjectMappers; +import java.io.IOException; +import java.util.Objects; + +@JsonDeserialize(using = CashFlowStatementCurrency.Deserializer.class) +public final class CashFlowStatementCurrency { + private final Object value; + + private final int type; + + private CashFlowStatementCurrency(Object value, int type) { + this.value = value; + this.type = type; + } + + @JsonValue + public Object get() { + return this.value; + } + + @SuppressWarnings("unchecked") + public T visit(Visitor visitor) { + if (this.type == 0) { + return visitor.visit((TransactionCurrencyEnum) this.value); + } else if (this.type == 1) { + return visitor.visit((String) this.value); + } + throw new IllegalStateException("Failed to visit value. This should never happen."); + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof CashFlowStatementCurrency && equalTo((CashFlowStatementCurrency) other); + } + + private boolean equalTo(CashFlowStatementCurrency other) { + return value.equals(other.value); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.value); + } + + @java.lang.Override + public String toString() { + return this.value.toString(); + } + + public static CashFlowStatementCurrency of(TransactionCurrencyEnum value) { + return new CashFlowStatementCurrency(value, 0); + } + + public static CashFlowStatementCurrency of(String value) { + return new CashFlowStatementCurrency(value, 1); + } + + public interface Visitor { + T visit(TransactionCurrencyEnum value); + + T visit(String value); + } + + static final class Deserializer extends StdDeserializer { + Deserializer() { + super(CashFlowStatementCurrency.class); + } + + @java.lang.Override + public CashFlowStatementCurrency deserialize(JsonParser p, DeserializationContext context) throws IOException { + Object value = p.readValueAs(Object.class); + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, TransactionCurrencyEnum.class)); + } catch (IllegalArgumentException e) { + } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, String.class)); + } catch (IllegalArgumentException e) { + } + throw new JsonParseException(p, "Failed to deserialize"); + } + } +} diff --git a/src/main/java/com/merge/api/accounting/types/CashFlowStatementsListRequest.java b/src/main/java/com/merge/api/accounting/types/CashFlowStatementsListRequest.java index 47606d30a..16101b25f 100644 --- a/src/main/java/com/merge/api/accounting/types/CashFlowStatementsListRequest.java +++ b/src/main/java/com/merge/api/accounting/types/CashFlowStatementsListRequest.java @@ -273,6 +273,9 @@ public Builder from(CashFlowStatementsListRequest other) { return this; } + /** + *

    Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.

    + */ @JsonSetter(value = "expand", nulls = Nulls.SKIP) public Builder expand(Optional> expand) { this.expand = expand; @@ -289,6 +292,9 @@ public Builder expand(String expand) { return this; } + /** + *

    If provided, will only return cash flow statements for this company.

    + */ @JsonSetter(value = "company_id", nulls = Nulls.SKIP) public Builder companyId(Optional companyId) { this.companyId = companyId; @@ -300,6 +306,9 @@ public Builder companyId(String companyId) { return this; } + /** + *

    If provided, will only return objects created after this datetime.

    + */ @JsonSetter(value = "created_after", nulls = Nulls.SKIP) public Builder createdAfter(Optional createdAfter) { this.createdAfter = createdAfter; @@ -311,6 +320,9 @@ public Builder createdAfter(OffsetDateTime createdAfter) { return this; } + /** + *

    If provided, will only return objects created before this datetime.

    + */ @JsonSetter(value = "created_before", nulls = Nulls.SKIP) public Builder createdBefore(Optional createdBefore) { this.createdBefore = createdBefore; @@ -322,6 +334,9 @@ public Builder createdBefore(OffsetDateTime createdBefore) { return this; } + /** + *

    The pagination cursor value.

    + */ @JsonSetter(value = "cursor", nulls = Nulls.SKIP) public Builder cursor(Optional cursor) { this.cursor = cursor; @@ -333,6 +348,9 @@ public Builder cursor(String cursor) { return this; } + /** + *

    Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

    + */ @JsonSetter(value = "include_deleted_data", nulls = Nulls.SKIP) public Builder includeDeletedData(Optional includeDeletedData) { this.includeDeletedData = includeDeletedData; @@ -344,6 +362,9 @@ public Builder includeDeletedData(Boolean includeDeletedData) { return this; } + /** + *

    Whether to include the original data Merge fetched from the third-party to produce these models.

    + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -355,6 +376,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

    Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

    + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; @@ -366,6 +390,9 @@ public Builder includeShellData(Boolean includeShellData) { return this; } + /** + *

    If provided, only objects synced by Merge after this date time will be returned.

    + */ @JsonSetter(value = "modified_after", nulls = Nulls.SKIP) public Builder modifiedAfter(Optional modifiedAfter) { this.modifiedAfter = modifiedAfter; @@ -377,6 +404,9 @@ public Builder modifiedAfter(OffsetDateTime modifiedAfter) { return this; } + /** + *

    If provided, only objects synced by Merge before this date time will be returned.

    + */ @JsonSetter(value = "modified_before", nulls = Nulls.SKIP) public Builder modifiedBefore(Optional modifiedBefore) { this.modifiedBefore = modifiedBefore; @@ -388,6 +418,9 @@ public Builder modifiedBefore(OffsetDateTime modifiedBefore) { return this; } + /** + *

    Number of results to return per page.

    + */ @JsonSetter(value = "page_size", nulls = Nulls.SKIP) public Builder pageSize(Optional pageSize) { this.pageSize = pageSize; @@ -399,6 +432,9 @@ public Builder pageSize(Integer pageSize) { return this; } + /** + *

    The API provider's ID for the given object.

    + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; diff --git a/src/main/java/com/merge/api/accounting/types/CashFlowStatementsRetrieveRequest.java b/src/main/java/com/merge/api/accounting/types/CashFlowStatementsRetrieveRequest.java index d07f57c16..0d8ccdfe8 100644 --- a/src/main/java/com/merge/api/accounting/types/CashFlowStatementsRetrieveRequest.java +++ b/src/main/java/com/merge/api/accounting/types/CashFlowStatementsRetrieveRequest.java @@ -116,6 +116,9 @@ public Builder from(CashFlowStatementsRetrieveRequest other) { return this; } + /** + *

    Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.

    + */ @JsonSetter(value = "expand", nulls = Nulls.SKIP) public Builder expand(Optional> expand) { this.expand = expand; @@ -132,6 +135,9 @@ public Builder expand(String expand) { return this; } + /** + *

    Whether to include the original data Merge fetched from the third-party to produce these models.

    + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -143,6 +149,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

    Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

    + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; diff --git a/src/main/java/com/merge/api/accounting/types/CommonModelScopeApi.java b/src/main/java/com/merge/api/accounting/types/CommonModelScopeApi.java index 94aaac58f..b4fbbc954 100644 --- a/src/main/java/com/merge/api/accounting/types/CommonModelScopeApi.java +++ b/src/main/java/com/merge/api/accounting/types/CommonModelScopeApi.java @@ -82,6 +82,9 @@ public Builder from(CommonModelScopeApi other) { return this; } + /** + *

    The common models you want to update the scopes for

    + */ @JsonSetter(value = "common_models", nulls = Nulls.SKIP) public Builder commonModels(List commonModels) { this.commonModels.clear(); diff --git a/src/main/java/com/merge/api/accounting/types/CompanyInfo.java b/src/main/java/com/merge/api/accounting/types/CompanyInfo.java index 1c85dca4d..1a963f04d 100644 --- a/src/main/java/com/merge/api/accounting/types/CompanyInfo.java +++ b/src/main/java/com/merge/api/accounting/types/CompanyInfo.java @@ -41,7 +41,7 @@ public final class CompanyInfo { private final Optional fiscalYearEndDay; - private final Optional currency; + private final Optional currency; private final Optional remoteCreatedAt; @@ -69,7 +69,7 @@ private CompanyInfo( Optional taxNumber, Optional fiscalYearEndMonth, Optional fiscalYearEndDay, - Optional currency, + Optional currency, Optional remoteCreatedAt, Optional>> urls, Optional> addresses, @@ -167,319 +167,8 @@ public Optional getFiscalYearEndDay() { return fiscalYearEndDay; } - /** - * @return The currency set in the company's accounting platform. - *
      - *
    • XUA - ADB Unit of Account
    • - *
    • AFN - Afghan Afghani
    • - *
    • AFA - Afghan Afghani (1927–2002)
    • - *
    • ALL - Albanian Lek
    • - *
    • ALK - Albanian Lek (1946–1965)
    • - *
    • DZD - Algerian Dinar
    • - *
    • ADP - Andorran Peseta
    • - *
    • AOA - Angolan Kwanza
    • - *
    • AOK - Angolan Kwanza (1977–1991)
    • - *
    • AON - Angolan New Kwanza (1990–2000)
    • - *
    • AOR - Angolan Readjusted Kwanza (1995–1999)
    • - *
    • ARA - Argentine Austral
    • - *
    • ARS - Argentine Peso
    • - *
    • ARM - Argentine Peso (1881–1970)
    • - *
    • ARP - Argentine Peso (1983–1985)
    • - *
    • ARL - Argentine Peso Ley (1970–1983)
    • - *
    • AMD - Armenian Dram
    • - *
    • AWG - Aruban Florin
    • - *
    • AUD - Australian Dollar
    • - *
    • ATS - Austrian Schilling
    • - *
    • AZN - Azerbaijani Manat
    • - *
    • AZM - Azerbaijani Manat (1993–2006)
    • - *
    • BSD - Bahamian Dollar
    • - *
    • BHD - Bahraini Dinar
    • - *
    • BDT - Bangladeshi Taka
    • - *
    • BBD - Barbadian Dollar
    • - *
    • BYN - Belarusian Ruble
    • - *
    • BYB - Belarusian Ruble (1994–1999)
    • - *
    • BYR - Belarusian Ruble (2000–2016)
    • - *
    • BEF - Belgian Franc
    • - *
    • BEC - Belgian Franc (convertible)
    • - *
    • BEL - Belgian Franc (financial)
    • - *
    • BZD - Belize Dollar
    • - *
    • BMD - Bermudan Dollar
    • - *
    • BTN - Bhutanese Ngultrum
    • - *
    • BOB - Bolivian Boliviano
    • - *
    • BOL - Bolivian Boliviano (1863–1963)
    • - *
    • BOV - Bolivian Mvdol
    • - *
    • BOP - Bolivian Peso
    • - *
    • BAM - Bosnia-Herzegovina Convertible Mark
    • - *
    • BAD - Bosnia-Herzegovina Dinar (1992–1994)
    • - *
    • BAN - Bosnia-Herzegovina New Dinar (1994–1997)
    • - *
    • BWP - Botswanan Pula
    • - *
    • BRC - Brazilian Cruzado (1986–1989)
    • - *
    • BRZ - Brazilian Cruzeiro (1942–1967)
    • - *
    • BRE - Brazilian Cruzeiro (1990–1993)
    • - *
    • BRR - Brazilian Cruzeiro (1993–1994)
    • - *
    • BRN - Brazilian New Cruzado (1989–1990)
    • - *
    • BRB - Brazilian New Cruzeiro (1967–1986)
    • - *
    • BRL - Brazilian Real
    • - *
    • GBP - British Pound
    • - *
    • BND - Brunei Dollar
    • - *
    • BGL - Bulgarian Hard Lev
    • - *
    • BGN - Bulgarian Lev
    • - *
    • BGO - Bulgarian Lev (1879–1952)
    • - *
    • BGM - Bulgarian Socialist Lev
    • - *
    • BUK - Burmese Kyat
    • - *
    • BIF - Burundian Franc
    • - *
    • XPF - CFP Franc
    • - *
    • KHR - Cambodian Riel
    • - *
    • CAD - Canadian Dollar
    • - *
    • CVE - Cape Verdean Escudo
    • - *
    • KYD - Cayman Islands Dollar
    • - *
    • XAF - Central African CFA Franc
    • - *
    • CLE - Chilean Escudo
    • - *
    • CLP - Chilean Peso
    • - *
    • CLF - Chilean Unit of Account (UF)
    • - *
    • CNX - Chinese People’s Bank Dollar
    • - *
    • CNY - Chinese Yuan
    • - *
    • CNH - Chinese Yuan (offshore)
    • - *
    • COP - Colombian Peso
    • - *
    • COU - Colombian Real Value Unit
    • - *
    • KMF - Comorian Franc
    • - *
    • CDF - Congolese Franc
    • - *
    • CRC - Costa Rican Colón
    • - *
    • HRD - Croatian Dinar
    • - *
    • HRK - Croatian Kuna
    • - *
    • CUC - Cuban Convertible Peso
    • - *
    • CUP - Cuban Peso
    • - *
    • CYP - Cypriot Pound
    • - *
    • CZK - Czech Koruna
    • - *
    • CSK - Czechoslovak Hard Koruna
    • - *
    • DKK - Danish Krone
    • - *
    • DJF - Djiboutian Franc
    • - *
    • DOP - Dominican Peso
    • - *
    • NLG - Dutch Guilder
    • - *
    • XCD - East Caribbean Dollar
    • - *
    • DDM - East German Mark
    • - *
    • ECS - Ecuadorian Sucre
    • - *
    • ECV - Ecuadorian Unit of Constant Value
    • - *
    • EGP - Egyptian Pound
    • - *
    • GQE - Equatorial Guinean Ekwele
    • - *
    • ERN - Eritrean Nakfa
    • - *
    • EEK - Estonian Kroon
    • - *
    • ETB - Ethiopian Birr
    • - *
    • EUR - Euro
    • - *
    • XBA - European Composite Unit
    • - *
    • XEU - European Currency Unit
    • - *
    • XBB - European Monetary Unit
    • - *
    • XBC - European Unit of Account (XBC)
    • - *
    • XBD - European Unit of Account (XBD)
    • - *
    • FKP - Falkland Islands Pound
    • - *
    • FJD - Fijian Dollar
    • - *
    • FIM - Finnish Markka
    • - *
    • FRF - French Franc
    • - *
    • XFO - French Gold Franc
    • - *
    • XFU - French UIC-Franc
    • - *
    • GMD - Gambian Dalasi
    • - *
    • GEK - Georgian Kupon Larit
    • - *
    • GEL - Georgian Lari
    • - *
    • DEM - German Mark
    • - *
    • GHS - Ghanaian Cedi
    • - *
    • GHC - Ghanaian Cedi (1979–2007)
    • - *
    • GIP - Gibraltar Pound
    • - *
    • XAU - Gold
    • - *
    • GRD - Greek Drachma
    • - *
    • GTQ - Guatemalan Quetzal
    • - *
    • GWP - Guinea-Bissau Peso
    • - *
    • GNF - Guinean Franc
    • - *
    • GNS - Guinean Syli
    • - *
    • GYD - Guyanaese Dollar
    • - *
    • HTG - Haitian Gourde
    • - *
    • HNL - Honduran Lempira
    • - *
    • HKD - Hong Kong Dollar
    • - *
    • HUF - Hungarian Forint
    • - *
    • IMP - IMP
    • - *
    • ISK - Icelandic Króna
    • - *
    • ISJ - Icelandic Króna (1918–1981)
    • - *
    • INR - Indian Rupee
    • - *
    • IDR - Indonesian Rupiah
    • - *
    • IRR - Iranian Rial
    • - *
    • IQD - Iraqi Dinar
    • - *
    • IEP - Irish Pound
    • - *
    • ILS - Israeli New Shekel
    • - *
    • ILP - Israeli Pound
    • - *
    • ILR - Israeli Shekel (1980–1985)
    • - *
    • ITL - Italian Lira
    • - *
    • JMD - Jamaican Dollar
    • - *
    • JPY - Japanese Yen
    • - *
    • JOD - Jordanian Dinar
    • - *
    • KZT - Kazakhstani Tenge
    • - *
    • KES - Kenyan Shilling
    • - *
    • KWD - Kuwaiti Dinar
    • - *
    • KGS - Kyrgystani Som
    • - *
    • LAK - Laotian Kip
    • - *
    • LVL - Latvian Lats
    • - *
    • LVR - Latvian Ruble
    • - *
    • LBP - Lebanese Pound
    • - *
    • LSL - Lesotho Loti
    • - *
    • LRD - Liberian Dollar
    • - *
    • LYD - Libyan Dinar
    • - *
    • LTL - Lithuanian Litas
    • - *
    • LTT - Lithuanian Talonas
    • - *
    • LUL - Luxembourg Financial Franc
    • - *
    • LUC - Luxembourgian Convertible Franc
    • - *
    • LUF - Luxembourgian Franc
    • - *
    • MOP - Macanese Pataca
    • - *
    • MKD - Macedonian Denar
    • - *
    • MKN - Macedonian Denar (1992–1993)
    • - *
    • MGA - Malagasy Ariary
    • - *
    • MGF - Malagasy Franc
    • - *
    • MWK - Malawian Kwacha
    • - *
    • MYR - Malaysian Ringgit
    • - *
    • MVR - Maldivian Rufiyaa
    • - *
    • MVP - Maldivian Rupee (1947–1981)
    • - *
    • MLF - Malian Franc
    • - *
    • MTL - Maltese Lira
    • - *
    • MTP - Maltese Pound
    • - *
    • MRU - Mauritanian Ouguiya
    • - *
    • MRO - Mauritanian Ouguiya (1973–2017)
    • - *
    • MUR - Mauritian Rupee
    • - *
    • MXV - Mexican Investment Unit
    • - *
    • MXN - Mexican Peso
    • - *
    • MXP - Mexican Silver Peso (1861–1992)
    • - *
    • MDC - Moldovan Cupon
    • - *
    • MDL - Moldovan Leu
    • - *
    • MCF - Monegasque Franc
    • - *
    • MNT - Mongolian Tugrik
    • - *
    • MAD - Moroccan Dirham
    • - *
    • MAF - Moroccan Franc
    • - *
    • MZE - Mozambican Escudo
    • - *
    • MZN - Mozambican Metical
    • - *
    • MZM - Mozambican Metical (1980–2006)
    • - *
    • MMK - Myanmar Kyat
    • - *
    • NAD - Namibian Dollar
    • - *
    • NPR - Nepalese Rupee
    • - *
    • ANG - Netherlands Antillean Guilder
    • - *
    • TWD - New Taiwan Dollar
    • - *
    • NZD - New Zealand Dollar
    • - *
    • NIO - Nicaraguan Córdoba
    • - *
    • NIC - Nicaraguan Córdoba (1988–1991)
    • - *
    • NGN - Nigerian Naira
    • - *
    • KPW - North Korean Won
    • - *
    • NOK - Norwegian Krone
    • - *
    • OMR - Omani Rial
    • - *
    • PKR - Pakistani Rupee
    • - *
    • XPD - Palladium
    • - *
    • PAB - Panamanian Balboa
    • - *
    • PGK - Papua New Guinean Kina
    • - *
    • PYG - Paraguayan Guarani
    • - *
    • PEI - Peruvian Inti
    • - *
    • PEN - Peruvian Sol
    • - *
    • PES - Peruvian Sol (1863–1965)
    • - *
    • PHP - Philippine Peso
    • - *
    • XPT - Platinum
    • - *
    • PLN - Polish Zloty
    • - *
    • PLZ - Polish Zloty (1950–1995)
    • - *
    • PTE - Portuguese Escudo
    • - *
    • GWE - Portuguese Guinea Escudo
    • - *
    • QAR - Qatari Rial
    • - *
    • XRE - RINET Funds
    • - *
    • RHD - Rhodesian Dollar
    • - *
    • RON - Romanian Leu
    • - *
    • ROL - Romanian Leu (1952–2006)
    • - *
    • RUB - Russian Ruble
    • - *
    • RUR - Russian Ruble (1991–1998)
    • - *
    • RWF - Rwandan Franc
    • - *
    • SVC - Salvadoran Colón
    • - *
    • WST - Samoan Tala
    • - *
    • SAR - Saudi Riyal
    • - *
    • RSD - Serbian Dinar
    • - *
    • CSD - Serbian Dinar (2002–2006)
    • - *
    • SCR - Seychellois Rupee
    • - *
    • SLL - Sierra Leonean Leone
    • - *
    • XAG - Silver
    • - *
    • SGD - Singapore Dollar
    • - *
    • SKK - Slovak Koruna
    • - *
    • SIT - Slovenian Tolar
    • - *
    • SBD - Solomon Islands Dollar
    • - *
    • SOS - Somali Shilling
    • - *
    • ZAR - South African Rand
    • - *
    • ZAL - South African Rand (financial)
    • - *
    • KRH - South Korean Hwan (1953–1962)
    • - *
    • KRW - South Korean Won
    • - *
    • KRO - South Korean Won (1945–1953)
    • - *
    • SSP - South Sudanese Pound
    • - *
    • SUR - Soviet Rouble
    • - *
    • ESP - Spanish Peseta
    • - *
    • ESA - Spanish Peseta (A account)
    • - *
    • ESB - Spanish Peseta (convertible account)
    • - *
    • XDR - Special Drawing Rights
    • - *
    • LKR - Sri Lankan Rupee
    • - *
    • SHP - St. Helena Pound
    • - *
    • XSU - Sucre
    • - *
    • SDD - Sudanese Dinar (1992–2007)
    • - *
    • SDG - Sudanese Pound
    • - *
    • SDP - Sudanese Pound (1957–1998)
    • - *
    • SRD - Surinamese Dollar
    • - *
    • SRG - Surinamese Guilder
    • - *
    • SZL - Swazi Lilangeni
    • - *
    • SEK - Swedish Krona
    • - *
    • CHF - Swiss Franc
    • - *
    • SYP - Syrian Pound
    • - *
    • STN - São Tomé & Príncipe Dobra
    • - *
    • STD - São Tomé & Príncipe Dobra (1977–2017)
    • - *
    • TVD - TVD
    • - *
    • TJR - Tajikistani Ruble
    • - *
    • TJS - Tajikistani Somoni
    • - *
    • TZS - Tanzanian Shilling
    • - *
    • XTS - Testing Currency Code
    • - *
    • THB - Thai Baht
    • - *
    • XXX - The codes assigned for transactions where no currency is involved
    • - *
    • TPE - Timorese Escudo
    • - *
    • TOP - Tongan Paʻanga
    • - *
    • TTD - Trinidad & Tobago Dollar
    • - *
    • TND - Tunisian Dinar
    • - *
    • TRY - Turkish Lira
    • - *
    • TRL - Turkish Lira (1922–2005)
    • - *
    • TMT - Turkmenistani Manat
    • - *
    • TMM - Turkmenistani Manat (1993–2009)
    • - *
    • USD - US Dollar
    • - *
    • USN - US Dollar (Next day)
    • - *
    • USS - US Dollar (Same day)
    • - *
    • UGX - Ugandan Shilling
    • - *
    • UGS - Ugandan Shilling (1966–1987)
    • - *
    • UAH - Ukrainian Hryvnia
    • - *
    • UAK - Ukrainian Karbovanets
    • - *
    • AED - United Arab Emirates Dirham
    • - *
    • UYW - Uruguayan Nominal Wage Index Unit
    • - *
    • UYU - Uruguayan Peso
    • - *
    • UYP - Uruguayan Peso (1975–1993)
    • - *
    • UYI - Uruguayan Peso (Indexed Units)
    • - *
    • UZS - Uzbekistani Som
    • - *
    • VUV - Vanuatu Vatu
    • - *
    • VES - Venezuelan Bolívar
    • - *
    • VEB - Venezuelan Bolívar (1871–2008)
    • - *
    • VEF - Venezuelan Bolívar (2008–2018)
    • - *
    • VND - Vietnamese Dong
    • - *
    • VNN - Vietnamese Dong (1978–1985)
    • - *
    • CHE - WIR Euro
    • - *
    • CHW - WIR Franc
    • - *
    • XOF - West African CFA Franc
    • - *
    • YDD - Yemeni Dinar
    • - *
    • YER - Yemeni Rial
    • - *
    • YUN - Yugoslavian Convertible Dinar (1990–1992)
    • - *
    • YUD - Yugoslavian Hard Dinar (1966–1990)
    • - *
    • YUM - Yugoslavian New Dinar (1994–2002)
    • - *
    • YUR - Yugoslavian Reformed Dinar (1992–1993)
    • - *
    • ZWN - ZWN
    • - *
    • ZRN - Zairean New Zaire (1993–1998)
    • - *
    • ZRZ - Zairean Zaire (1971–1993)
    • - *
    • ZMW - Zambian Kwacha
    • - *
    • ZMK - Zambian Kwacha (1968–2012)
    • - *
    • ZWD - Zimbabwean Dollar (1980–2008)
    • - *
    • ZWR - Zimbabwean Dollar (2008)
    • - *
    • ZWL - Zimbabwean Dollar (2009)
    • - *
    - */ @JsonProperty("currency") - public Optional getCurrency() { + public Optional getCurrency() { return currency; } @@ -609,7 +298,7 @@ public static final class Builder { private Optional fiscalYearEndDay = Optional.empty(); - private Optional currency = Optional.empty(); + private Optional currency = Optional.empty(); private Optional remoteCreatedAt = Optional.empty(); @@ -662,6 +351,9 @@ public Builder id(String id) { return this; } + /** + *

    The third-party API ID of the matching object.

    + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; @@ -673,6 +365,9 @@ public Builder remoteId(String remoteId) { return this; } + /** + *

    The datetime that this object was created by Merge.

    + */ @JsonSetter(value = "created_at", nulls = Nulls.SKIP) public Builder createdAt(Optional createdAt) { this.createdAt = createdAt; @@ -684,6 +379,9 @@ public Builder createdAt(OffsetDateTime createdAt) { return this; } + /** + *

    The datetime that this object was modified by Merge.

    + */ @JsonSetter(value = "modified_at", nulls = Nulls.SKIP) public Builder modifiedAt(Optional modifiedAt) { this.modifiedAt = modifiedAt; @@ -695,6 +393,9 @@ public Builder modifiedAt(OffsetDateTime modifiedAt) { return this; } + /** + *

    The company's name.

    + */ @JsonSetter(value = "name", nulls = Nulls.SKIP) public Builder name(Optional name) { this.name = name; @@ -706,6 +407,9 @@ public Builder name(String name) { return this; } + /** + *

    The company's legal name.

    + */ @JsonSetter(value = "legal_name", nulls = Nulls.SKIP) public Builder legalName(Optional legalName) { this.legalName = legalName; @@ -717,6 +421,9 @@ public Builder legalName(String legalName) { return this; } + /** + *

    The company's tax number.

    + */ @JsonSetter(value = "tax_number", nulls = Nulls.SKIP) public Builder taxNumber(Optional taxNumber) { this.taxNumber = taxNumber; @@ -728,6 +435,9 @@ public Builder taxNumber(String taxNumber) { return this; } + /** + *

    The company's fiscal year end month.

    + */ @JsonSetter(value = "fiscal_year_end_month", nulls = Nulls.SKIP) public Builder fiscalYearEndMonth(Optional fiscalYearEndMonth) { this.fiscalYearEndMonth = fiscalYearEndMonth; @@ -739,6 +449,9 @@ public Builder fiscalYearEndMonth(Integer fiscalYearEndMonth) { return this; } + /** + *

    The company's fiscal year end day.

    + */ @JsonSetter(value = "fiscal_year_end_day", nulls = Nulls.SKIP) public Builder fiscalYearEndDay(Optional fiscalYearEndDay) { this.fiscalYearEndDay = fiscalYearEndDay; @@ -751,16 +464,19 @@ public Builder fiscalYearEndDay(Integer fiscalYearEndDay) { } @JsonSetter(value = "currency", nulls = Nulls.SKIP) - public Builder currency(Optional currency) { + public Builder currency(Optional currency) { this.currency = currency; return this; } - public Builder currency(TransactionCurrencyEnum currency) { + public Builder currency(JsonNode currency) { this.currency = Optional.ofNullable(currency); return this; } + /** + *

    When the third party's company was created.

    + */ @JsonSetter(value = "remote_created_at", nulls = Nulls.SKIP) public Builder remoteCreatedAt(Optional remoteCreatedAt) { this.remoteCreatedAt = remoteCreatedAt; @@ -772,6 +488,9 @@ public Builder remoteCreatedAt(OffsetDateTime remoteCreatedAt) { return this; } + /** + *

    The company's urls.

    + */ @JsonSetter(value = "urls", nulls = Nulls.SKIP) public Builder urls(Optional>> urls) { this.urls = urls; @@ -805,6 +524,9 @@ public Builder phoneNumbers(List phoneNumbers) { return this; } + /** + *

    Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

    + */ @JsonSetter(value = "remote_was_deleted", nulls = Nulls.SKIP) public Builder remoteWasDeleted(Optional remoteWasDeleted) { this.remoteWasDeleted = remoteWasDeleted; diff --git a/src/main/java/com/merge/api/accounting/types/CompanyInfoListRequest.java b/src/main/java/com/merge/api/accounting/types/CompanyInfoListRequest.java index a0eb02b5a..6ba60196d 100644 --- a/src/main/java/com/merge/api/accounting/types/CompanyInfoListRequest.java +++ b/src/main/java/com/merge/api/accounting/types/CompanyInfoListRequest.java @@ -256,6 +256,9 @@ public Builder from(CompanyInfoListRequest other) { return this; } + /** + *

    Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.

    + */ @JsonSetter(value = "expand", nulls = Nulls.SKIP) public Builder expand(Optional> expand) { this.expand = expand; @@ -272,6 +275,9 @@ public Builder expand(CompanyInfoListRequestExpandItem expand) { return this; } + /** + *

    If provided, will only return objects created after this datetime.

    + */ @JsonSetter(value = "created_after", nulls = Nulls.SKIP) public Builder createdAfter(Optional createdAfter) { this.createdAfter = createdAfter; @@ -283,6 +289,9 @@ public Builder createdAfter(OffsetDateTime createdAfter) { return this; } + /** + *

    If provided, will only return objects created before this datetime.

    + */ @JsonSetter(value = "created_before", nulls = Nulls.SKIP) public Builder createdBefore(Optional createdBefore) { this.createdBefore = createdBefore; @@ -294,6 +303,9 @@ public Builder createdBefore(OffsetDateTime createdBefore) { return this; } + /** + *

    The pagination cursor value.

    + */ @JsonSetter(value = "cursor", nulls = Nulls.SKIP) public Builder cursor(Optional cursor) { this.cursor = cursor; @@ -305,6 +317,9 @@ public Builder cursor(String cursor) { return this; } + /** + *

    Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

    + */ @JsonSetter(value = "include_deleted_data", nulls = Nulls.SKIP) public Builder includeDeletedData(Optional includeDeletedData) { this.includeDeletedData = includeDeletedData; @@ -316,6 +331,9 @@ public Builder includeDeletedData(Boolean includeDeletedData) { return this; } + /** + *

    Whether to include the original data Merge fetched from the third-party to produce these models.

    + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -327,6 +345,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

    Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

    + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; @@ -338,6 +359,9 @@ public Builder includeShellData(Boolean includeShellData) { return this; } + /** + *

    If provided, only objects synced by Merge after this date time will be returned.

    + */ @JsonSetter(value = "modified_after", nulls = Nulls.SKIP) public Builder modifiedAfter(Optional modifiedAfter) { this.modifiedAfter = modifiedAfter; @@ -349,6 +373,9 @@ public Builder modifiedAfter(OffsetDateTime modifiedAfter) { return this; } + /** + *

    If provided, only objects synced by Merge before this date time will be returned.

    + */ @JsonSetter(value = "modified_before", nulls = Nulls.SKIP) public Builder modifiedBefore(Optional modifiedBefore) { this.modifiedBefore = modifiedBefore; @@ -360,6 +387,9 @@ public Builder modifiedBefore(OffsetDateTime modifiedBefore) { return this; } + /** + *

    Number of results to return per page.

    + */ @JsonSetter(value = "page_size", nulls = Nulls.SKIP) public Builder pageSize(Optional pageSize) { this.pageSize = pageSize; @@ -371,6 +401,9 @@ public Builder pageSize(Integer pageSize) { return this; } + /** + *

    The API provider's ID for the given object.

    + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; diff --git a/src/main/java/com/merge/api/accounting/types/CompanyInfoRetrieveRequest.java b/src/main/java/com/merge/api/accounting/types/CompanyInfoRetrieveRequest.java index 8fc1e5972..1bdf972db 100644 --- a/src/main/java/com/merge/api/accounting/types/CompanyInfoRetrieveRequest.java +++ b/src/main/java/com/merge/api/accounting/types/CompanyInfoRetrieveRequest.java @@ -116,6 +116,9 @@ public Builder from(CompanyInfoRetrieveRequest other) { return this; } + /** + *

    Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.

    + */ @JsonSetter(value = "expand", nulls = Nulls.SKIP) public Builder expand(Optional> expand) { this.expand = expand; @@ -132,6 +135,9 @@ public Builder expand(CompanyInfoRetrieveRequestExpandItem expand) { return this; } + /** + *

    Whether to include the original data Merge fetched from the third-party to produce these models.

    + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -143,6 +149,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

    Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

    + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; diff --git a/src/main/java/com/merge/api/accounting/types/Contact.java b/src/main/java/com/merge/api/accounting/types/Contact.java index 15c42ba4e..4bb10bc51 100644 --- a/src/main/java/com/merge/api/accounting/types/Contact.java +++ b/src/main/java/com/merge/api/accounting/types/Contact.java @@ -41,7 +41,7 @@ public final class Contact { private final Optional taxNumber; - private final Optional status; + private final Optional status; private final Optional currency; @@ -73,7 +73,7 @@ private Contact( Optional isCustomer, Optional emailAddress, Optional taxNumber, - Optional status, + Optional status, Optional currency, Optional remoteUpdatedAt, Optional company, @@ -183,7 +183,7 @@ public Optional getTaxNumber() { * */ @JsonProperty("status") - public Optional getStatus() { + public Optional getStatus() { return status; } @@ -336,7 +336,7 @@ public static final class Builder { private Optional taxNumber = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Optional currency = Optional.empty(); @@ -395,6 +395,9 @@ public Builder id(String id) { return this; } + /** + *

    The third-party API ID of the matching object.

    + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; @@ -406,6 +409,9 @@ public Builder remoteId(String remoteId) { return this; } + /** + *

    The datetime that this object was created by Merge.

    + */ @JsonSetter(value = "created_at", nulls = Nulls.SKIP) public Builder createdAt(Optional createdAt) { this.createdAt = createdAt; @@ -417,6 +423,9 @@ public Builder createdAt(OffsetDateTime createdAt) { return this; } + /** + *

    The datetime that this object was modified by Merge.

    + */ @JsonSetter(value = "modified_at", nulls = Nulls.SKIP) public Builder modifiedAt(Optional modifiedAt) { this.modifiedAt = modifiedAt; @@ -428,6 +437,9 @@ public Builder modifiedAt(OffsetDateTime modifiedAt) { return this; } + /** + *

    The contact's name.

    + */ @JsonSetter(value = "name", nulls = Nulls.SKIP) public Builder name(Optional name) { this.name = name; @@ -439,6 +451,9 @@ public Builder name(String name) { return this; } + /** + *

    Whether the contact is a supplier.

    + */ @JsonSetter(value = "is_supplier", nulls = Nulls.SKIP) public Builder isSupplier(Optional isSupplier) { this.isSupplier = isSupplier; @@ -450,6 +465,9 @@ public Builder isSupplier(Boolean isSupplier) { return this; } + /** + *

    Whether the contact is a customer.

    + */ @JsonSetter(value = "is_customer", nulls = Nulls.SKIP) public Builder isCustomer(Optional isCustomer) { this.isCustomer = isCustomer; @@ -461,6 +479,9 @@ public Builder isCustomer(Boolean isCustomer) { return this; } + /** + *

    The contact's email address.

    + */ @JsonSetter(value = "email_address", nulls = Nulls.SKIP) public Builder emailAddress(Optional emailAddress) { this.emailAddress = emailAddress; @@ -472,6 +493,9 @@ public Builder emailAddress(String emailAddress) { return this; } + /** + *

    The contact's tax number.

    + */ @JsonSetter(value = "tax_number", nulls = Nulls.SKIP) public Builder taxNumber(Optional taxNumber) { this.taxNumber = taxNumber; @@ -483,17 +507,27 @@ public Builder taxNumber(String taxNumber) { return this; } + /** + *

    The contact's status

    + *
      + *
    • ACTIVE - ACTIVE
    • + *
    • ARCHIVED - ARCHIVED
    • + *
    + */ @JsonSetter(value = "status", nulls = Nulls.SKIP) - public Builder status(Optional status) { + public Builder status(Optional status) { this.status = status; return this; } - public Builder status(Status7D1Enum status) { + public Builder status(ContactStatus status) { this.status = Optional.ofNullable(status); return this; } + /** + *

    The currency the contact's transactions are in.

    + */ @JsonSetter(value = "currency", nulls = Nulls.SKIP) public Builder currency(Optional currency) { this.currency = currency; @@ -505,6 +539,9 @@ public Builder currency(String currency) { return this; } + /** + *

    When the third party's contact was updated.

    + */ @JsonSetter(value = "remote_updated_at", nulls = Nulls.SKIP) public Builder remoteUpdatedAt(Optional remoteUpdatedAt) { this.remoteUpdatedAt = remoteUpdatedAt; @@ -516,6 +553,9 @@ public Builder remoteUpdatedAt(OffsetDateTime remoteUpdatedAt) { return this; } + /** + *

    The company the contact belongs to.

    + */ @JsonSetter(value = "company", nulls = Nulls.SKIP) public Builder company(Optional company) { this.company = company; @@ -527,6 +567,9 @@ public Builder company(String company) { return this; } + /** + *

    Address object IDs for the given Contacts object.

    + */ @JsonSetter(value = "addresses", nulls = Nulls.SKIP) public Builder addresses(Optional>> addresses) { this.addresses = addresses; @@ -538,6 +581,9 @@ public Builder addresses(List> addresses) { return this; } + /** + *

    AccountingPhoneNumber object for the given Contacts object.

    + */ @JsonSetter(value = "phone_numbers", nulls = Nulls.SKIP) public Builder phoneNumbers(Optional> phoneNumbers) { this.phoneNumbers = phoneNumbers; @@ -549,6 +595,9 @@ public Builder phoneNumbers(List phoneNumbers) { return this; } + /** + *

    Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

    + */ @JsonSetter(value = "remote_was_deleted", nulls = Nulls.SKIP) public Builder remoteWasDeleted(Optional remoteWasDeleted) { this.remoteWasDeleted = remoteWasDeleted; diff --git a/src/main/java/com/merge/api/accounting/types/ContactEndpointRequest.java b/src/main/java/com/merge/api/accounting/types/ContactEndpointRequest.java index d88cc0610..c34b65afc 100644 --- a/src/main/java/com/merge/api/accounting/types/ContactEndpointRequest.java +++ b/src/main/java/com/merge/api/accounting/types/ContactEndpointRequest.java @@ -99,10 +99,16 @@ public interface ModelStage { public interface _FinalStage { ContactEndpointRequest build(); + /** + *

    Whether to include debug fields (such as log file links) in the response.

    + */ _FinalStage isDebugMode(Optional isDebugMode); _FinalStage isDebugMode(Boolean isDebugMode); + /** + *

    Whether or not third-party updates should be run asynchronously.

    + */ _FinalStage runAsync(Optional runAsync); _FinalStage runAsync(Boolean runAsync); @@ -146,6 +152,9 @@ public _FinalStage runAsync(Boolean runAsync) { return this; } + /** + *

    Whether or not third-party updates should be run asynchronously.

    + */ @java.lang.Override @JsonSetter(value = "run_async", nulls = Nulls.SKIP) public _FinalStage runAsync(Optional runAsync) { @@ -163,6 +172,9 @@ public _FinalStage isDebugMode(Boolean isDebugMode) { return this; } + /** + *

    Whether to include debug fields (such as log file links) in the response.

    + */ @java.lang.Override @JsonSetter(value = "is_debug_mode", nulls = Nulls.SKIP) public _FinalStage isDebugMode(Optional isDebugMode) { diff --git a/src/main/java/com/merge/api/accounting/types/ContactRequest.java b/src/main/java/com/merge/api/accounting/types/ContactRequest.java index 568fb1bbb..b7fc0a8fc 100644 --- a/src/main/java/com/merge/api/accounting/types/ContactRequest.java +++ b/src/main/java/com/merge/api/accounting/types/ContactRequest.java @@ -32,7 +32,7 @@ public final class ContactRequest { private final Optional taxNumber; - private final Optional status; + private final Optional status; private final Optional currency; @@ -56,7 +56,7 @@ private ContactRequest( Optional isCustomer, Optional emailAddress, Optional taxNumber, - Optional status, + Optional status, Optional currency, Optional company, Optional>> addresses, @@ -129,7 +129,7 @@ public Optional getTaxNumber() { * */ @JsonProperty("status") - public Optional getStatus() { + public Optional getStatus() { return status; } @@ -246,7 +246,7 @@ public static final class Builder { private Optional taxNumber = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Optional currency = Optional.empty(); @@ -284,6 +284,9 @@ public Builder from(ContactRequest other) { return this; } + /** + *

    The contact's name.

    + */ @JsonSetter(value = "name", nulls = Nulls.SKIP) public Builder name(Optional name) { this.name = name; @@ -295,6 +298,9 @@ public Builder name(String name) { return this; } + /** + *

    Whether the contact is a supplier.

    + */ @JsonSetter(value = "is_supplier", nulls = Nulls.SKIP) public Builder isSupplier(Optional isSupplier) { this.isSupplier = isSupplier; @@ -306,6 +312,9 @@ public Builder isSupplier(Boolean isSupplier) { return this; } + /** + *

    Whether the contact is a customer.

    + */ @JsonSetter(value = "is_customer", nulls = Nulls.SKIP) public Builder isCustomer(Optional isCustomer) { this.isCustomer = isCustomer; @@ -317,6 +326,9 @@ public Builder isCustomer(Boolean isCustomer) { return this; } + /** + *

    The contact's email address.

    + */ @JsonSetter(value = "email_address", nulls = Nulls.SKIP) public Builder emailAddress(Optional emailAddress) { this.emailAddress = emailAddress; @@ -328,6 +340,9 @@ public Builder emailAddress(String emailAddress) { return this; } + /** + *

    The contact's tax number.

    + */ @JsonSetter(value = "tax_number", nulls = Nulls.SKIP) public Builder taxNumber(Optional taxNumber) { this.taxNumber = taxNumber; @@ -339,17 +354,27 @@ public Builder taxNumber(String taxNumber) { return this; } + /** + *

    The contact's status

    + *
      + *
    • ACTIVE - ACTIVE
    • + *
    • ARCHIVED - ARCHIVED
    • + *
    + */ @JsonSetter(value = "status", nulls = Nulls.SKIP) - public Builder status(Optional status) { + public Builder status(Optional status) { this.status = status; return this; } - public Builder status(Status7D1Enum status) { + public Builder status(ContactRequestStatus status) { this.status = Optional.ofNullable(status); return this; } + /** + *

    The currency the contact's transactions are in.

    + */ @JsonSetter(value = "currency", nulls = Nulls.SKIP) public Builder currency(Optional currency) { this.currency = currency; @@ -361,6 +386,9 @@ public Builder currency(String currency) { return this; } + /** + *

    The company the contact belongs to.

    + */ @JsonSetter(value = "company", nulls = Nulls.SKIP) public Builder company(Optional company) { this.company = company; @@ -372,6 +400,9 @@ public Builder company(String company) { return this; } + /** + *

    Address object IDs for the given Contacts object.

    + */ @JsonSetter(value = "addresses", nulls = Nulls.SKIP) public Builder addresses(Optional>> addresses) { this.addresses = addresses; @@ -383,6 +414,9 @@ public Builder addresses(List> addresses) return this; } + /** + *

    AccountingPhoneNumber object for the given Contacts object.

    + */ @JsonSetter(value = "phone_numbers", nulls = Nulls.SKIP) public Builder phoneNumbers(Optional> phoneNumbers) { this.phoneNumbers = phoneNumbers; diff --git a/src/main/java/com/merge/api/accounting/types/ContactRequestStatus.java b/src/main/java/com/merge/api/accounting/types/ContactRequestStatus.java new file mode 100644 index 000000000..09b599023 --- /dev/null +++ b/src/main/java/com/merge/api/accounting/types/ContactRequestStatus.java @@ -0,0 +1,95 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.merge.api.accounting.types; + +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.databind.DeserializationContext; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.fasterxml.jackson.databind.deser.std.StdDeserializer; +import com.merge.api.core.ObjectMappers; +import java.io.IOException; +import java.util.Objects; + +@JsonDeserialize(using = ContactRequestStatus.Deserializer.class) +public final class ContactRequestStatus { + private final Object value; + + private final int type; + + private ContactRequestStatus(Object value, int type) { + this.value = value; + this.type = type; + } + + @JsonValue + public Object get() { + return this.value; + } + + @SuppressWarnings("unchecked") + public T visit(Visitor visitor) { + if (this.type == 0) { + return visitor.visit((Status7D1Enum) this.value); + } else if (this.type == 1) { + return visitor.visit((String) this.value); + } + throw new IllegalStateException("Failed to visit value. This should never happen."); + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof ContactRequestStatus && equalTo((ContactRequestStatus) other); + } + + private boolean equalTo(ContactRequestStatus other) { + return value.equals(other.value); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.value); + } + + @java.lang.Override + public String toString() { + return this.value.toString(); + } + + public static ContactRequestStatus of(Status7D1Enum value) { + return new ContactRequestStatus(value, 0); + } + + public static ContactRequestStatus of(String value) { + return new ContactRequestStatus(value, 1); + } + + public interface Visitor { + T visit(Status7D1Enum value); + + T visit(String value); + } + + static final class Deserializer extends StdDeserializer { + Deserializer() { + super(ContactRequestStatus.class); + } + + @java.lang.Override + public ContactRequestStatus deserialize(JsonParser p, DeserializationContext context) throws IOException { + Object value = p.readValueAs(Object.class); + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, Status7D1Enum.class)); + } catch (IllegalArgumentException e) { + } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, String.class)); + } catch (IllegalArgumentException e) { + } + throw new JsonParseException(p, "Failed to deserialize"); + } + } +} diff --git a/src/main/java/com/merge/api/accounting/types/ContactStatus.java b/src/main/java/com/merge/api/accounting/types/ContactStatus.java new file mode 100644 index 000000000..86ac199eb --- /dev/null +++ b/src/main/java/com/merge/api/accounting/types/ContactStatus.java @@ -0,0 +1,95 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.merge.api.accounting.types; + +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.databind.DeserializationContext; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.fasterxml.jackson.databind.deser.std.StdDeserializer; +import com.merge.api.core.ObjectMappers; +import java.io.IOException; +import java.util.Objects; + +@JsonDeserialize(using = ContactStatus.Deserializer.class) +public final class ContactStatus { + private final Object value; + + private final int type; + + private ContactStatus(Object value, int type) { + this.value = value; + this.type = type; + } + + @JsonValue + public Object get() { + return this.value; + } + + @SuppressWarnings("unchecked") + public T visit(Visitor visitor) { + if (this.type == 0) { + return visitor.visit((Status7D1Enum) this.value); + } else if (this.type == 1) { + return visitor.visit((String) this.value); + } + throw new IllegalStateException("Failed to visit value. This should never happen."); + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof ContactStatus && equalTo((ContactStatus) other); + } + + private boolean equalTo(ContactStatus other) { + return value.equals(other.value); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.value); + } + + @java.lang.Override + public String toString() { + return this.value.toString(); + } + + public static ContactStatus of(Status7D1Enum value) { + return new ContactStatus(value, 0); + } + + public static ContactStatus of(String value) { + return new ContactStatus(value, 1); + } + + public interface Visitor { + T visit(Status7D1Enum value); + + T visit(String value); + } + + static final class Deserializer extends StdDeserializer { + Deserializer() { + super(ContactStatus.class); + } + + @java.lang.Override + public ContactStatus deserialize(JsonParser p, DeserializationContext context) throws IOException { + Object value = p.readValueAs(Object.class); + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, Status7D1Enum.class)); + } catch (IllegalArgumentException e) { + } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, String.class)); + } catch (IllegalArgumentException e) { + } + throw new JsonParseException(p, "Failed to deserialize"); + } + } +} diff --git a/src/main/java/com/merge/api/accounting/types/ContactsListRequest.java b/src/main/java/com/merge/api/accounting/types/ContactsListRequest.java index c1cc6e056..c87610dc3 100644 --- a/src/main/java/com/merge/api/accounting/types/ContactsListRequest.java +++ b/src/main/java/com/merge/api/accounting/types/ContactsListRequest.java @@ -409,6 +409,9 @@ public Builder from(ContactsListRequest other) { return this; } + /** + *

    Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.

    + */ @JsonSetter(value = "expand", nulls = Nulls.SKIP) public Builder expand(Optional> expand) { this.expand = expand; @@ -425,6 +428,9 @@ public Builder expand(ContactsListRequestExpandItem expand) { return this; } + /** + *

    If provided, will only return contacts for this company.

    + */ @JsonSetter(value = "company_id", nulls = Nulls.SKIP) public Builder companyId(Optional companyId) { this.companyId = companyId; @@ -436,6 +442,9 @@ public Builder companyId(String companyId) { return this; } + /** + *

    If provided, will only return objects created after this datetime.

    + */ @JsonSetter(value = "created_after", nulls = Nulls.SKIP) public Builder createdAfter(Optional createdAfter) { this.createdAfter = createdAfter; @@ -447,6 +456,9 @@ public Builder createdAfter(OffsetDateTime createdAfter) { return this; } + /** + *

    If provided, will only return objects created before this datetime.

    + */ @JsonSetter(value = "created_before", nulls = Nulls.SKIP) public Builder createdBefore(Optional createdBefore) { this.createdBefore = createdBefore; @@ -458,6 +470,9 @@ public Builder createdBefore(OffsetDateTime createdBefore) { return this; } + /** + *

    The pagination cursor value.

    + */ @JsonSetter(value = "cursor", nulls = Nulls.SKIP) public Builder cursor(Optional cursor) { this.cursor = cursor; @@ -469,6 +484,9 @@ public Builder cursor(String cursor) { return this; } + /** + *

    If provided, will only return Contacts that match this email.

    + */ @JsonSetter(value = "email_address", nulls = Nulls.SKIP) public Builder emailAddress(Optional emailAddress) { this.emailAddress = emailAddress; @@ -480,6 +498,9 @@ public Builder emailAddress(String emailAddress) { return this; } + /** + *

    Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

    + */ @JsonSetter(value = "include_deleted_data", nulls = Nulls.SKIP) public Builder includeDeletedData(Optional includeDeletedData) { this.includeDeletedData = includeDeletedData; @@ -491,6 +512,9 @@ public Builder includeDeletedData(Boolean includeDeletedData) { return this; } + /** + *

    Whether to include the original data Merge fetched from the third-party to produce these models.

    + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -502,6 +526,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

    Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format.

    + */ @JsonSetter(value = "include_remote_fields", nulls = Nulls.SKIP) public Builder includeRemoteFields(Optional includeRemoteFields) { this.includeRemoteFields = includeRemoteFields; @@ -513,6 +540,9 @@ public Builder includeRemoteFields(Boolean includeRemoteFields) { return this; } + /** + *

    Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

    + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; @@ -524,6 +554,9 @@ public Builder includeShellData(Boolean includeShellData) { return this; } + /** + *

    If provided, will only return Contacts that are denoted as customers.

    + */ @JsonSetter(value = "is_customer", nulls = Nulls.SKIP) public Builder isCustomer(Optional isCustomer) { this.isCustomer = isCustomer; @@ -535,6 +568,9 @@ public Builder isCustomer(String isCustomer) { return this; } + /** + *

    If provided, will only return Contacts that are denoted as suppliers.

    + */ @JsonSetter(value = "is_supplier", nulls = Nulls.SKIP) public Builder isSupplier(Optional isSupplier) { this.isSupplier = isSupplier; @@ -546,6 +582,9 @@ public Builder isSupplier(String isSupplier) { return this; } + /** + *

    If provided, only objects synced by Merge after this date time will be returned.

    + */ @JsonSetter(value = "modified_after", nulls = Nulls.SKIP) public Builder modifiedAfter(Optional modifiedAfter) { this.modifiedAfter = modifiedAfter; @@ -557,6 +596,9 @@ public Builder modifiedAfter(OffsetDateTime modifiedAfter) { return this; } + /** + *

    If provided, only objects synced by Merge before this date time will be returned.

    + */ @JsonSetter(value = "modified_before", nulls = Nulls.SKIP) public Builder modifiedBefore(Optional modifiedBefore) { this.modifiedBefore = modifiedBefore; @@ -568,6 +610,9 @@ public Builder modifiedBefore(OffsetDateTime modifiedBefore) { return this; } + /** + *

    If provided, will only return Contacts that match this name.

    + */ @JsonSetter(value = "name", nulls = Nulls.SKIP) public Builder name(Optional name) { this.name = name; @@ -579,6 +624,9 @@ public Builder name(String name) { return this; } + /** + *

    Number of results to return per page.

    + */ @JsonSetter(value = "page_size", nulls = Nulls.SKIP) public Builder pageSize(Optional pageSize) { this.pageSize = pageSize; @@ -590,6 +638,9 @@ public Builder pageSize(Integer pageSize) { return this; } + /** + *

    Deprecated. Use show_enum_origins.

    + */ @JsonSetter(value = "remote_fields", nulls = Nulls.SKIP) public Builder remoteFields(Optional remoteFields) { this.remoteFields = remoteFields; @@ -601,6 +652,9 @@ public Builder remoteFields(String remoteFields) { return this; } + /** + *

    The API provider's ID for the given object.

    + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; @@ -612,6 +666,9 @@ public Builder remoteId(String remoteId) { return this; } + /** + *

    A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. Learn more

    + */ @JsonSetter(value = "show_enum_origins", nulls = Nulls.SKIP) public Builder showEnumOrigins(Optional showEnumOrigins) { this.showEnumOrigins = showEnumOrigins; @@ -623,6 +680,9 @@ public Builder showEnumOrigins(String showEnumOrigins) { return this; } + /** + *

    If provided, will only return Contacts that match this status.

    + */ @JsonSetter(value = "status", nulls = Nulls.SKIP) public Builder status(Optional status) { this.status = status; diff --git a/src/main/java/com/merge/api/accounting/types/ContactsRemoteFieldClassesListRequest.java b/src/main/java/com/merge/api/accounting/types/ContactsRemoteFieldClassesListRequest.java index 2f98b6c1b..628a16ad6 100644 --- a/src/main/java/com/merge/api/accounting/types/ContactsRemoteFieldClassesListRequest.java +++ b/src/main/java/com/merge/api/accounting/types/ContactsRemoteFieldClassesListRequest.java @@ -30,6 +30,8 @@ public final class ContactsRemoteFieldClassesListRequest { private final Optional isCommonModelField; + private final Optional isCustom; + private final Optional pageSize; private final Map additionalProperties; @@ -40,6 +42,7 @@ private ContactsRemoteFieldClassesListRequest( Optional includeRemoteData, Optional includeShellData, Optional isCommonModelField, + Optional isCustom, Optional pageSize, Map additionalProperties) { this.cursor = cursor; @@ -47,6 +50,7 @@ private ContactsRemoteFieldClassesListRequest( this.includeRemoteData = includeRemoteData; this.includeShellData = includeShellData; this.isCommonModelField = isCommonModelField; + this.isCustom = isCustom; this.pageSize = pageSize; this.additionalProperties = additionalProperties; } @@ -91,6 +95,14 @@ public Optional getIsCommonModelField() { return isCommonModelField; } + /** + * @return If provided, will only return remote fields classes with this is_custom value + */ + @JsonProperty("is_custom") + public Optional getIsCustom() { + return isCustom; + } + /** * @return Number of results to return per page. */ @@ -117,6 +129,7 @@ private boolean equalTo(ContactsRemoteFieldClassesListRequest other) { && includeRemoteData.equals(other.includeRemoteData) && includeShellData.equals(other.includeShellData) && isCommonModelField.equals(other.isCommonModelField) + && isCustom.equals(other.isCustom) && pageSize.equals(other.pageSize); } @@ -128,6 +141,7 @@ public int hashCode() { this.includeRemoteData, this.includeShellData, this.isCommonModelField, + this.isCustom, this.pageSize); } @@ -152,6 +166,8 @@ public static final class Builder { private Optional isCommonModelField = Optional.empty(); + private Optional isCustom = Optional.empty(); + private Optional pageSize = Optional.empty(); @JsonAnySetter @@ -165,10 +181,14 @@ public Builder from(ContactsRemoteFieldClassesListRequest other) { includeRemoteData(other.getIncludeRemoteData()); includeShellData(other.getIncludeShellData()); isCommonModelField(other.getIsCommonModelField()); + isCustom(other.getIsCustom()); pageSize(other.getPageSize()); return this; } + /** + *

    The pagination cursor value.

    + */ @JsonSetter(value = "cursor", nulls = Nulls.SKIP) public Builder cursor(Optional cursor) { this.cursor = cursor; @@ -180,6 +200,9 @@ public Builder cursor(String cursor) { return this; } + /** + *

    Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

    + */ @JsonSetter(value = "include_deleted_data", nulls = Nulls.SKIP) public Builder includeDeletedData(Optional includeDeletedData) { this.includeDeletedData = includeDeletedData; @@ -191,6 +214,9 @@ public Builder includeDeletedData(Boolean includeDeletedData) { return this; } + /** + *

    Whether to include the original data Merge fetched from the third-party to produce these models.

    + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -202,6 +228,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

    Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

    + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; @@ -213,6 +242,9 @@ public Builder includeShellData(Boolean includeShellData) { return this; } + /** + *

    If provided, will only return remote field classes with this is_common_model_field value

    + */ @JsonSetter(value = "is_common_model_field", nulls = Nulls.SKIP) public Builder isCommonModelField(Optional isCommonModelField) { this.isCommonModelField = isCommonModelField; @@ -224,6 +256,23 @@ public Builder isCommonModelField(Boolean isCommonModelField) { return this; } + /** + *

    If provided, will only return remote fields classes with this is_custom value

    + */ + @JsonSetter(value = "is_custom", nulls = Nulls.SKIP) + public Builder isCustom(Optional isCustom) { + this.isCustom = isCustom; + return this; + } + + public Builder isCustom(Boolean isCustom) { + this.isCustom = Optional.ofNullable(isCustom); + return this; + } + + /** + *

    Number of results to return per page.

    + */ @JsonSetter(value = "page_size", nulls = Nulls.SKIP) public Builder pageSize(Optional pageSize) { this.pageSize = pageSize; @@ -242,6 +291,7 @@ public ContactsRemoteFieldClassesListRequest build() { includeRemoteData, includeShellData, isCommonModelField, + isCustom, pageSize, additionalProperties); } diff --git a/src/main/java/com/merge/api/accounting/types/ContactsRetrieveRequest.java b/src/main/java/com/merge/api/accounting/types/ContactsRetrieveRequest.java index 74cfa0926..995d67fc7 100644 --- a/src/main/java/com/merge/api/accounting/types/ContactsRetrieveRequest.java +++ b/src/main/java/com/merge/api/accounting/types/ContactsRetrieveRequest.java @@ -170,6 +170,9 @@ public Builder from(ContactsRetrieveRequest other) { return this; } + /** + *

    Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.

    + */ @JsonSetter(value = "expand", nulls = Nulls.SKIP) public Builder expand(Optional> expand) { this.expand = expand; @@ -186,6 +189,9 @@ public Builder expand(ContactsRetrieveRequestExpandItem expand) { return this; } + /** + *

    Whether to include the original data Merge fetched from the third-party to produce these models.

    + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -197,6 +203,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

    Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format.

    + */ @JsonSetter(value = "include_remote_fields", nulls = Nulls.SKIP) public Builder includeRemoteFields(Optional includeRemoteFields) { this.includeRemoteFields = includeRemoteFields; @@ -208,6 +217,9 @@ public Builder includeRemoteFields(Boolean includeRemoteFields) { return this; } + /** + *

    Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

    + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; @@ -219,6 +231,9 @@ public Builder includeShellData(Boolean includeShellData) { return this; } + /** + *

    Deprecated. Use show_enum_origins.

    + */ @JsonSetter(value = "remote_fields", nulls = Nulls.SKIP) public Builder remoteFields(Optional remoteFields) { this.remoteFields = remoteFields; @@ -230,6 +245,9 @@ public Builder remoteFields(String remoteFields) { return this; } + /** + *

    A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. Learn more

    + */ @JsonSetter(value = "show_enum_origins", nulls = Nulls.SKIP) public Builder showEnumOrigins(Optional showEnumOrigins) { this.showEnumOrigins = showEnumOrigins; diff --git a/src/main/java/com/merge/api/accounting/types/CreateFieldMappingRequest.java b/src/main/java/com/merge/api/accounting/types/CreateFieldMappingRequest.java index 0dfd29e64..9d2fe8d59 100644 --- a/src/main/java/com/merge/api/accounting/types/CreateFieldMappingRequest.java +++ b/src/main/java/com/merge/api/accounting/types/CreateFieldMappingRequest.java @@ -158,34 +158,55 @@ public static TargetFieldNameStage builder() { } public interface TargetFieldNameStage { + /** + * The name of the target field you want this remote field to map to. + */ TargetFieldDescriptionStage targetFieldName(@NotNull String targetFieldName); Builder from(CreateFieldMappingRequest other); } public interface TargetFieldDescriptionStage { + /** + * The description of the target field you want this remote field to map to. + */ RemoteMethodStage targetFieldDescription(@NotNull String targetFieldDescription); } public interface RemoteMethodStage { + /** + * The method of the remote endpoint where the remote field is coming from. + */ RemoteUrlPathStage remoteMethod(@NotNull String remoteMethod); } public interface RemoteUrlPathStage { + /** + * The path of the remote endpoint where the remote field is coming from. + */ CommonModelNameStage remoteUrlPath(@NotNull String remoteUrlPath); } public interface CommonModelNameStage { + /** + * The name of the Common Model that the remote field corresponds to in a given category. + */ _FinalStage commonModelName(@NotNull String commonModelName); } public interface _FinalStage { CreateFieldMappingRequest build(); + /** + *

    If true, remote fields metadata is excluded from each field mapping instance (i.e. remote_fields.remote_key_name and remote_fields.schema will be null). This will increase the speed of the request since these fields require some calculations.

    + */ _FinalStage excludeRemoteFieldMetadata(Optional excludeRemoteFieldMetadata); _FinalStage excludeRemoteFieldMetadata(Boolean excludeRemoteFieldMetadata); + /** + *

    The field traversal path of the remote field listed when you hit the GET /remote-fields endpoint.

    + */ _FinalStage remoteFieldTraversalPath(List remoteFieldTraversalPath); _FinalStage addRemoteFieldTraversalPath(JsonNode remoteFieldTraversalPath); @@ -233,7 +254,7 @@ public Builder from(CreateFieldMappingRequest other) { } /** - *

    The name of the target field you want this remote field to map to.

    + * The name of the target field you want this remote field to map to.

    The name of the target field you want this remote field to map to.

    * @return Reference to {@code this} so that method calls can be chained together. */ @java.lang.Override @@ -244,7 +265,7 @@ public TargetFieldDescriptionStage targetFieldName(@NotNull String targetFieldNa } /** - *

    The description of the target field you want this remote field to map to.

    + * The description of the target field you want this remote field to map to.

    The description of the target field you want this remote field to map to.

    * @return Reference to {@code this} so that method calls can be chained together. */ @java.lang.Override @@ -255,7 +276,7 @@ public RemoteMethodStage targetFieldDescription(@NotNull String targetFieldDescr } /** - *

    The method of the remote endpoint where the remote field is coming from.

    + * The method of the remote endpoint where the remote field is coming from.

    The method of the remote endpoint where the remote field is coming from.

    * @return Reference to {@code this} so that method calls can be chained together. */ @java.lang.Override @@ -266,7 +287,7 @@ public RemoteUrlPathStage remoteMethod(@NotNull String remoteMethod) { } /** - *

    The path of the remote endpoint where the remote field is coming from.

    + * The path of the remote endpoint where the remote field is coming from.

    The path of the remote endpoint where the remote field is coming from.

    * @return Reference to {@code this} so that method calls can be chained together. */ @java.lang.Override @@ -277,7 +298,7 @@ public CommonModelNameStage remoteUrlPath(@NotNull String remoteUrlPath) { } /** - *

    The name of the Common Model that the remote field corresponds to in a given category.

    + * The name of the Common Model that the remote field corresponds to in a given category.

    The name of the Common Model that the remote field corresponds to in a given category.

    * @return Reference to {@code this} so that method calls can be chained together. */ @java.lang.Override @@ -307,6 +328,9 @@ public _FinalStage addRemoteFieldTraversalPath(JsonNode remoteFieldTraversalPath return this; } + /** + *

    The field traversal path of the remote field listed when you hit the GET /remote-fields endpoint.

    + */ @java.lang.Override @JsonSetter(value = "remote_field_traversal_path", nulls = Nulls.SKIP) public _FinalStage remoteFieldTraversalPath(List remoteFieldTraversalPath) { @@ -325,6 +349,9 @@ public _FinalStage excludeRemoteFieldMetadata(Boolean excludeRemoteFieldMetadata return this; } + /** + *

    If true, remote fields metadata is excluded from each field mapping instance (i.e. remote_fields.remote_key_name and remote_fields.schema will be null). This will increase the speed of the request since these fields require some calculations.

    + */ @java.lang.Override @JsonSetter(value = "exclude_remote_field_metadata", nulls = Nulls.SKIP) public _FinalStage excludeRemoteFieldMetadata(Optional excludeRemoteFieldMetadata) { diff --git a/src/main/java/com/merge/api/accounting/types/CreditNote.java b/src/main/java/com/merge/api/accounting/types/CreditNote.java index 1a304dc7f..9d990f8df 100644 --- a/src/main/java/com/merge/api/accounting/types/CreditNote.java +++ b/src/main/java/com/merge/api/accounting/types/CreditNote.java @@ -33,7 +33,7 @@ public final class CreditNote { private final Optional transactionDate; - private final Optional status; + private final Optional status; private final Optional number; @@ -53,7 +53,7 @@ public final class CreditNote { private final Optional>> trackingCategories; - private final Optional currency; + private final Optional currency; private final Optional remoteCreatedAt; @@ -81,7 +81,7 @@ private CreditNote( Optional createdAt, Optional modifiedAt, Optional transactionDate, - Optional status, + Optional status, Optional number, Optional contact, Optional company, @@ -91,7 +91,7 @@ private CreditNote( Optional inclusiveOfTax, Optional> lineItems, Optional>> trackingCategories, - Optional currency, + Optional currency, Optional remoteCreatedAt, Optional remoteUpdatedAt, Optional>> payments, @@ -176,7 +176,7 @@ public Optional getTransactionDate() { * */ @JsonProperty("status") - public Optional getStatus() { + public Optional getStatus() { return status; } @@ -558,7 +558,7 @@ public Optional>> getTrackingCat * */ @JsonProperty("currency") - public Optional getCurrency() { + public Optional getCurrency() { return currency; } @@ -718,7 +718,7 @@ public static final class Builder { private Optional transactionDate = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Optional number = Optional.empty(); @@ -738,7 +738,7 @@ public static final class Builder { private Optional>> trackingCategories = Optional.empty(); - private Optional currency = Optional.empty(); + private Optional currency = Optional.empty(); private Optional remoteCreatedAt = Optional.empty(); @@ -803,6 +803,9 @@ public Builder id(String id) { return this; } + /** + *

    The third-party API ID of the matching object.

    + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; @@ -814,6 +817,9 @@ public Builder remoteId(String remoteId) { return this; } + /** + *

    The datetime that this object was created by Merge.

    + */ @JsonSetter(value = "created_at", nulls = Nulls.SKIP) public Builder createdAt(Optional createdAt) { this.createdAt = createdAt; @@ -825,6 +831,9 @@ public Builder createdAt(OffsetDateTime createdAt) { return this; } + /** + *

    The datetime that this object was modified by Merge.

    + */ @JsonSetter(value = "modified_at", nulls = Nulls.SKIP) public Builder modifiedAt(Optional modifiedAt) { this.modifiedAt = modifiedAt; @@ -836,6 +845,9 @@ public Builder modifiedAt(OffsetDateTime modifiedAt) { return this; } + /** + *

    The credit note's transaction date.

    + */ @JsonSetter(value = "transaction_date", nulls = Nulls.SKIP) public Builder transactionDate(Optional transactionDate) { this.transactionDate = transactionDate; @@ -847,17 +859,28 @@ public Builder transactionDate(OffsetDateTime transactionDate) { return this; } + /** + *

    The credit note's status.

    + *
      + *
    • SUBMITTED - SUBMITTED
    • + *
    • AUTHORIZED - AUTHORIZED
    • + *
    • PAID - PAID
    • + *
    + */ @JsonSetter(value = "status", nulls = Nulls.SKIP) - public Builder status(Optional status) { + public Builder status(Optional status) { this.status = status; return this; } - public Builder status(CreditNoteStatusEnum status) { + public Builder status(CreditNoteStatus status) { this.status = Optional.ofNullable(status); return this; } + /** + *

    The credit note's number.

    + */ @JsonSetter(value = "number", nulls = Nulls.SKIP) public Builder number(Optional number) { this.number = number; @@ -869,6 +892,9 @@ public Builder number(String number) { return this; } + /** + *

    The credit note's contact.

    + */ @JsonSetter(value = "contact", nulls = Nulls.SKIP) public Builder contact(Optional contact) { this.contact = contact; @@ -880,6 +906,9 @@ public Builder contact(CreditNoteContact contact) { return this; } + /** + *

    The company the credit note belongs to.

    + */ @JsonSetter(value = "company", nulls = Nulls.SKIP) public Builder company(Optional company) { this.company = company; @@ -891,6 +920,9 @@ public Builder company(CreditNoteCompany company) { return this; } + /** + *

    The credit note's exchange rate.

    + */ @JsonSetter(value = "exchange_rate", nulls = Nulls.SKIP) public Builder exchangeRate(Optional exchangeRate) { this.exchangeRate = exchangeRate; @@ -902,6 +934,9 @@ public Builder exchangeRate(String exchangeRate) { return this; } + /** + *

    The credit note's total amount.

    + */ @JsonSetter(value = "total_amount", nulls = Nulls.SKIP) public Builder totalAmount(Optional totalAmount) { this.totalAmount = totalAmount; @@ -913,6 +948,9 @@ public Builder totalAmount(Double totalAmount) { return this; } + /** + *

    The amount of value remaining in the credit note that the customer can use.

    + */ @JsonSetter(value = "remaining_credit", nulls = Nulls.SKIP) public Builder remainingCredit(Optional remainingCredit) { this.remainingCredit = remainingCredit; @@ -924,6 +962,9 @@ public Builder remainingCredit(Double remainingCredit) { return this; } + /** + *

    If the transaction is inclusive or exclusive of tax. True if inclusive, False if exclusive.

    + */ @JsonSetter(value = "inclusive_of_tax", nulls = Nulls.SKIP) public Builder inclusiveOfTax(Optional inclusiveOfTax) { this.inclusiveOfTax = inclusiveOfTax; @@ -958,17 +999,331 @@ public Builder trackingCategories(ListThe credit note's currency.

    + *
      + *
    • XUA - ADB Unit of Account
    • + *
    • AFN - Afghan Afghani
    • + *
    • AFA - Afghan Afghani (1927–2002)
    • + *
    • ALL - Albanian Lek
    • + *
    • ALK - Albanian Lek (1946–1965)
    • + *
    • DZD - Algerian Dinar
    • + *
    • ADP - Andorran Peseta
    • + *
    • AOA - Angolan Kwanza
    • + *
    • AOK - Angolan Kwanza (1977–1991)
    • + *
    • AON - Angolan New Kwanza (1990–2000)
    • + *
    • AOR - Angolan Readjusted Kwanza (1995–1999)
    • + *
    • ARA - Argentine Austral
    • + *
    • ARS - Argentine Peso
    • + *
    • ARM - Argentine Peso (1881–1970)
    • + *
    • ARP - Argentine Peso (1983–1985)
    • + *
    • ARL - Argentine Peso Ley (1970–1983)
    • + *
    • AMD - Armenian Dram
    • + *
    • AWG - Aruban Florin
    • + *
    • AUD - Australian Dollar
    • + *
    • ATS - Austrian Schilling
    • + *
    • AZN - Azerbaijani Manat
    • + *
    • AZM - Azerbaijani Manat (1993–2006)
    • + *
    • BSD - Bahamian Dollar
    • + *
    • BHD - Bahraini Dinar
    • + *
    • BDT - Bangladeshi Taka
    • + *
    • BBD - Barbadian Dollar
    • + *
    • BYN - Belarusian Ruble
    • + *
    • BYB - Belarusian Ruble (1994–1999)
    • + *
    • BYR - Belarusian Ruble (2000–2016)
    • + *
    • BEF - Belgian Franc
    • + *
    • BEC - Belgian Franc (convertible)
    • + *
    • BEL - Belgian Franc (financial)
    • + *
    • BZD - Belize Dollar
    • + *
    • BMD - Bermudan Dollar
    • + *
    • BTN - Bhutanese Ngultrum
    • + *
    • BOB - Bolivian Boliviano
    • + *
    • BOL - Bolivian Boliviano (1863–1963)
    • + *
    • BOV - Bolivian Mvdol
    • + *
    • BOP - Bolivian Peso
    • + *
    • BAM - Bosnia-Herzegovina Convertible Mark
    • + *
    • BAD - Bosnia-Herzegovina Dinar (1992–1994)
    • + *
    • BAN - Bosnia-Herzegovina New Dinar (1994–1997)
    • + *
    • BWP - Botswanan Pula
    • + *
    • BRC - Brazilian Cruzado (1986–1989)
    • + *
    • BRZ - Brazilian Cruzeiro (1942–1967)
    • + *
    • BRE - Brazilian Cruzeiro (1990–1993)
    • + *
    • BRR - Brazilian Cruzeiro (1993–1994)
    • + *
    • BRN - Brazilian New Cruzado (1989–1990)
    • + *
    • BRB - Brazilian New Cruzeiro (1967–1986)
    • + *
    • BRL - Brazilian Real
    • + *
    • GBP - British Pound
    • + *
    • BND - Brunei Dollar
    • + *
    • BGL - Bulgarian Hard Lev
    • + *
    • BGN - Bulgarian Lev
    • + *
    • BGO - Bulgarian Lev (1879–1952)
    • + *
    • BGM - Bulgarian Socialist Lev
    • + *
    • BUK - Burmese Kyat
    • + *
    • BIF - Burundian Franc
    • + *
    • XPF - CFP Franc
    • + *
    • KHR - Cambodian Riel
    • + *
    • CAD - Canadian Dollar
    • + *
    • CVE - Cape Verdean Escudo
    • + *
    • KYD - Cayman Islands Dollar
    • + *
    • XAF - Central African CFA Franc
    • + *
    • CLE - Chilean Escudo
    • + *
    • CLP - Chilean Peso
    • + *
    • CLF - Chilean Unit of Account (UF)
    • + *
    • CNX - Chinese People’s Bank Dollar
    • + *
    • CNY - Chinese Yuan
    • + *
    • CNH - Chinese Yuan (offshore)
    • + *
    • COP - Colombian Peso
    • + *
    • COU - Colombian Real Value Unit
    • + *
    • KMF - Comorian Franc
    • + *
    • CDF - Congolese Franc
    • + *
    • CRC - Costa Rican Colón
    • + *
    • HRD - Croatian Dinar
    • + *
    • HRK - Croatian Kuna
    • + *
    • CUC - Cuban Convertible Peso
    • + *
    • CUP - Cuban Peso
    • + *
    • CYP - Cypriot Pound
    • + *
    • CZK - Czech Koruna
    • + *
    • CSK - Czechoslovak Hard Koruna
    • + *
    • DKK - Danish Krone
    • + *
    • DJF - Djiboutian Franc
    • + *
    • DOP - Dominican Peso
    • + *
    • NLG - Dutch Guilder
    • + *
    • XCD - East Caribbean Dollar
    • + *
    • DDM - East German Mark
    • + *
    • ECS - Ecuadorian Sucre
    • + *
    • ECV - Ecuadorian Unit of Constant Value
    • + *
    • EGP - Egyptian Pound
    • + *
    • GQE - Equatorial Guinean Ekwele
    • + *
    • ERN - Eritrean Nakfa
    • + *
    • EEK - Estonian Kroon
    • + *
    • ETB - Ethiopian Birr
    • + *
    • EUR - Euro
    • + *
    • XBA - European Composite Unit
    • + *
    • XEU - European Currency Unit
    • + *
    • XBB - European Monetary Unit
    • + *
    • XBC - European Unit of Account (XBC)
    • + *
    • XBD - European Unit of Account (XBD)
    • + *
    • FKP - Falkland Islands Pound
    • + *
    • FJD - Fijian Dollar
    • + *
    • FIM - Finnish Markka
    • + *
    • FRF - French Franc
    • + *
    • XFO - French Gold Franc
    • + *
    • XFU - French UIC-Franc
    • + *
    • GMD - Gambian Dalasi
    • + *
    • GEK - Georgian Kupon Larit
    • + *
    • GEL - Georgian Lari
    • + *
    • DEM - German Mark
    • + *
    • GHS - Ghanaian Cedi
    • + *
    • GHC - Ghanaian Cedi (1979–2007)
    • + *
    • GIP - Gibraltar Pound
    • + *
    • XAU - Gold
    • + *
    • GRD - Greek Drachma
    • + *
    • GTQ - Guatemalan Quetzal
    • + *
    • GWP - Guinea-Bissau Peso
    • + *
    • GNF - Guinean Franc
    • + *
    • GNS - Guinean Syli
    • + *
    • GYD - Guyanaese Dollar
    • + *
    • HTG - Haitian Gourde
    • + *
    • HNL - Honduran Lempira
    • + *
    • HKD - Hong Kong Dollar
    • + *
    • HUF - Hungarian Forint
    • + *
    • IMP - IMP
    • + *
    • ISK - Icelandic Króna
    • + *
    • ISJ - Icelandic Króna (1918–1981)
    • + *
    • INR - Indian Rupee
    • + *
    • IDR - Indonesian Rupiah
    • + *
    • IRR - Iranian Rial
    • + *
    • IQD - Iraqi Dinar
    • + *
    • IEP - Irish Pound
    • + *
    • ILS - Israeli New Shekel
    • + *
    • ILP - Israeli Pound
    • + *
    • ILR - Israeli Shekel (1980–1985)
    • + *
    • ITL - Italian Lira
    • + *
    • JMD - Jamaican Dollar
    • + *
    • JPY - Japanese Yen
    • + *
    • JOD - Jordanian Dinar
    • + *
    • KZT - Kazakhstani Tenge
    • + *
    • KES - Kenyan Shilling
    • + *
    • KWD - Kuwaiti Dinar
    • + *
    • KGS - Kyrgystani Som
    • + *
    • LAK - Laotian Kip
    • + *
    • LVL - Latvian Lats
    • + *
    • LVR - Latvian Ruble
    • + *
    • LBP - Lebanese Pound
    • + *
    • LSL - Lesotho Loti
    • + *
    • LRD - Liberian Dollar
    • + *
    • LYD - Libyan Dinar
    • + *
    • LTL - Lithuanian Litas
    • + *
    • LTT - Lithuanian Talonas
    • + *
    • LUL - Luxembourg Financial Franc
    • + *
    • LUC - Luxembourgian Convertible Franc
    • + *
    • LUF - Luxembourgian Franc
    • + *
    • MOP - Macanese Pataca
    • + *
    • MKD - Macedonian Denar
    • + *
    • MKN - Macedonian Denar (1992–1993)
    • + *
    • MGA - Malagasy Ariary
    • + *
    • MGF - Malagasy Franc
    • + *
    • MWK - Malawian Kwacha
    • + *
    • MYR - Malaysian Ringgit
    • + *
    • MVR - Maldivian Rufiyaa
    • + *
    • MVP - Maldivian Rupee (1947–1981)
    • + *
    • MLF - Malian Franc
    • + *
    • MTL - Maltese Lira
    • + *
    • MTP - Maltese Pound
    • + *
    • MRU - Mauritanian Ouguiya
    • + *
    • MRO - Mauritanian Ouguiya (1973–2017)
    • + *
    • MUR - Mauritian Rupee
    • + *
    • MXV - Mexican Investment Unit
    • + *
    • MXN - Mexican Peso
    • + *
    • MXP - Mexican Silver Peso (1861–1992)
    • + *
    • MDC - Moldovan Cupon
    • + *
    • MDL - Moldovan Leu
    • + *
    • MCF - Monegasque Franc
    • + *
    • MNT - Mongolian Tugrik
    • + *
    • MAD - Moroccan Dirham
    • + *
    • MAF - Moroccan Franc
    • + *
    • MZE - Mozambican Escudo
    • + *
    • MZN - Mozambican Metical
    • + *
    • MZM - Mozambican Metical (1980–2006)
    • + *
    • MMK - Myanmar Kyat
    • + *
    • NAD - Namibian Dollar
    • + *
    • NPR - Nepalese Rupee
    • + *
    • ANG - Netherlands Antillean Guilder
    • + *
    • TWD - New Taiwan Dollar
    • + *
    • NZD - New Zealand Dollar
    • + *
    • NIO - Nicaraguan Córdoba
    • + *
    • NIC - Nicaraguan Córdoba (1988–1991)
    • + *
    • NGN - Nigerian Naira
    • + *
    • KPW - North Korean Won
    • + *
    • NOK - Norwegian Krone
    • + *
    • OMR - Omani Rial
    • + *
    • PKR - Pakistani Rupee
    • + *
    • XPD - Palladium
    • + *
    • PAB - Panamanian Balboa
    • + *
    • PGK - Papua New Guinean Kina
    • + *
    • PYG - Paraguayan Guarani
    • + *
    • PEI - Peruvian Inti
    • + *
    • PEN - Peruvian Sol
    • + *
    • PES - Peruvian Sol (1863–1965)
    • + *
    • PHP - Philippine Peso
    • + *
    • XPT - Platinum
    • + *
    • PLN - Polish Zloty
    • + *
    • PLZ - Polish Zloty (1950–1995)
    • + *
    • PTE - Portuguese Escudo
    • + *
    • GWE - Portuguese Guinea Escudo
    • + *
    • QAR - Qatari Rial
    • + *
    • XRE - RINET Funds
    • + *
    • RHD - Rhodesian Dollar
    • + *
    • RON - Romanian Leu
    • + *
    • ROL - Romanian Leu (1952–2006)
    • + *
    • RUB - Russian Ruble
    • + *
    • RUR - Russian Ruble (1991–1998)
    • + *
    • RWF - Rwandan Franc
    • + *
    • SVC - Salvadoran Colón
    • + *
    • WST - Samoan Tala
    • + *
    • SAR - Saudi Riyal
    • + *
    • RSD - Serbian Dinar
    • + *
    • CSD - Serbian Dinar (2002–2006)
    • + *
    • SCR - Seychellois Rupee
    • + *
    • SLL - Sierra Leonean Leone
    • + *
    • XAG - Silver
    • + *
    • SGD - Singapore Dollar
    • + *
    • SKK - Slovak Koruna
    • + *
    • SIT - Slovenian Tolar
    • + *
    • SBD - Solomon Islands Dollar
    • + *
    • SOS - Somali Shilling
    • + *
    • ZAR - South African Rand
    • + *
    • ZAL - South African Rand (financial)
    • + *
    • KRH - South Korean Hwan (1953–1962)
    • + *
    • KRW - South Korean Won
    • + *
    • KRO - South Korean Won (1945–1953)
    • + *
    • SSP - South Sudanese Pound
    • + *
    • SUR - Soviet Rouble
    • + *
    • ESP - Spanish Peseta
    • + *
    • ESA - Spanish Peseta (A account)
    • + *
    • ESB - Spanish Peseta (convertible account)
    • + *
    • XDR - Special Drawing Rights
    • + *
    • LKR - Sri Lankan Rupee
    • + *
    • SHP - St. Helena Pound
    • + *
    • XSU - Sucre
    • + *
    • SDD - Sudanese Dinar (1992–2007)
    • + *
    • SDG - Sudanese Pound
    • + *
    • SDP - Sudanese Pound (1957–1998)
    • + *
    • SRD - Surinamese Dollar
    • + *
    • SRG - Surinamese Guilder
    • + *
    • SZL - Swazi Lilangeni
    • + *
    • SEK - Swedish Krona
    • + *
    • CHF - Swiss Franc
    • + *
    • SYP - Syrian Pound
    • + *
    • STN - São Tomé & Príncipe Dobra
    • + *
    • STD - São Tomé & Príncipe Dobra (1977–2017)
    • + *
    • TVD - TVD
    • + *
    • TJR - Tajikistani Ruble
    • + *
    • TJS - Tajikistani Somoni
    • + *
    • TZS - Tanzanian Shilling
    • + *
    • XTS - Testing Currency Code
    • + *
    • THB - Thai Baht
    • + *
    • XXX - The codes assigned for transactions where no currency is involved
    • + *
    • TPE - Timorese Escudo
    • + *
    • TOP - Tongan Paʻanga
    • + *
    • TTD - Trinidad & Tobago Dollar
    • + *
    • TND - Tunisian Dinar
    • + *
    • TRY - Turkish Lira
    • + *
    • TRL - Turkish Lira (1922–2005)
    • + *
    • TMT - Turkmenistani Manat
    • + *
    • TMM - Turkmenistani Manat (1993–2009)
    • + *
    • USD - US Dollar
    • + *
    • USN - US Dollar (Next day)
    • + *
    • USS - US Dollar (Same day)
    • + *
    • UGX - Ugandan Shilling
    • + *
    • UGS - Ugandan Shilling (1966–1987)
    • + *
    • UAH - Ukrainian Hryvnia
    • + *
    • UAK - Ukrainian Karbovanets
    • + *
    • AED - United Arab Emirates Dirham
    • + *
    • UYW - Uruguayan Nominal Wage Index Unit
    • + *
    • UYU - Uruguayan Peso
    • + *
    • UYP - Uruguayan Peso (1975–1993)
    • + *
    • UYI - Uruguayan Peso (Indexed Units)
    • + *
    • UZS - Uzbekistani Som
    • + *
    • VUV - Vanuatu Vatu
    • + *
    • VES - Venezuelan Bolívar
    • + *
    • VEB - Venezuelan Bolívar (1871–2008)
    • + *
    • VEF - Venezuelan Bolívar (2008–2018)
    • + *
    • VND - Vietnamese Dong
    • + *
    • VNN - Vietnamese Dong (1978–1985)
    • + *
    • CHE - WIR Euro
    • + *
    • CHW - WIR Franc
    • + *
    • XOF - West African CFA Franc
    • + *
    • YDD - Yemeni Dinar
    • + *
    • YER - Yemeni Rial
    • + *
    • YUN - Yugoslavian Convertible Dinar (1990–1992)
    • + *
    • YUD - Yugoslavian Hard Dinar (1966–1990)
    • + *
    • YUM - Yugoslavian New Dinar (1994–2002)
    • + *
    • YUR - Yugoslavian Reformed Dinar (1992–1993)
    • + *
    • ZWN - ZWN
    • + *
    • ZRN - Zairean New Zaire (1993–1998)
    • + *
    • ZRZ - Zairean Zaire (1971–1993)
    • + *
    • ZMW - Zambian Kwacha
    • + *
    • ZMK - Zambian Kwacha (1968–2012)
    • + *
    • ZWD - Zimbabwean Dollar (1980–2008)
    • + *
    • ZWR - Zimbabwean Dollar (2008)
    • + *
    • ZWL - Zimbabwean Dollar (2009)
    • + *
    + */ @JsonSetter(value = "currency", nulls = Nulls.SKIP) - public Builder currency(Optional currency) { + public Builder currency(Optional currency) { this.currency = currency; return this; } - public Builder currency(TransactionCurrencyEnum currency) { + public Builder currency(CreditNoteCurrency currency) { this.currency = Optional.ofNullable(currency); return this; } + /** + *

    When the third party's credit note was created.

    + */ @JsonSetter(value = "remote_created_at", nulls = Nulls.SKIP) public Builder remoteCreatedAt(Optional remoteCreatedAt) { this.remoteCreatedAt = remoteCreatedAt; @@ -980,6 +1335,9 @@ public Builder remoteCreatedAt(OffsetDateTime remoteCreatedAt) { return this; } + /** + *

    When the third party's credit note was updated.

    + */ @JsonSetter(value = "remote_updated_at", nulls = Nulls.SKIP) public Builder remoteUpdatedAt(Optional remoteUpdatedAt) { this.remoteUpdatedAt = remoteUpdatedAt; @@ -991,6 +1349,9 @@ public Builder remoteUpdatedAt(OffsetDateTime remoteUpdatedAt) { return this; } + /** + *

    Array of Payment object IDs

    + */ @JsonSetter(value = "payments", nulls = Nulls.SKIP) public Builder payments(Optional>> payments) { this.payments = payments; @@ -1002,6 +1363,9 @@ public Builder payments(List> payments) { return this; } + /** + *

    A list of the Payment Applied to Lines common models related to a given Invoice, Credit Note, or Journal Entry.

    + */ @JsonSetter(value = "applied_payments", nulls = Nulls.SKIP) public Builder appliedPayments(Optional>> appliedPayments) { this.appliedPayments = appliedPayments; @@ -1013,6 +1377,9 @@ public Builder appliedPayments(List> app return this; } + /** + *

    The accounting period that the CreditNote was generated in.

    + */ @JsonSetter(value = "accounting_period", nulls = Nulls.SKIP) public Builder accountingPeriod(Optional accountingPeriod) { this.accountingPeriod = accountingPeriod; @@ -1024,6 +1391,9 @@ public Builder accountingPeriod(CreditNoteAccountingPeriod accountingPeriod) { return this; } + /** + *

    A list of the CreditNote Applied to Lines common models related to a given Credit Note

    + */ @JsonSetter(value = "applied_to_lines", nulls = Nulls.SKIP) public Builder appliedToLines(Optional> appliedToLines) { this.appliedToLines = appliedToLines; @@ -1035,6 +1405,9 @@ public Builder appliedToLines(List appliedToLi return this; } + /** + *

    Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

    + */ @JsonSetter(value = "remote_was_deleted", nulls = Nulls.SKIP) public Builder remoteWasDeleted(Optional remoteWasDeleted) { this.remoteWasDeleted = remoteWasDeleted; diff --git a/src/main/java/com/merge/api/accounting/types/CreditNoteApplyLineForCreditNote.java b/src/main/java/com/merge/api/accounting/types/CreditNoteApplyLineForCreditNote.java index 665fe545a..23fa7d11e 100644 --- a/src/main/java/com/merge/api/accounting/types/CreditNoteApplyLineForCreditNote.java +++ b/src/main/java/com/merge/api/accounting/types/CreditNoteApplyLineForCreditNote.java @@ -183,6 +183,9 @@ public Builder from(CreditNoteApplyLineForCreditNote other) { return this; } + /** + *

    The third-party API ID of the matching object.

    + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; @@ -194,6 +197,9 @@ public Builder remoteId(String remoteId) { return this; } + /** + *

    The datetime that this object was created by Merge.

    + */ @JsonSetter(value = "created_at", nulls = Nulls.SKIP) public Builder createdAt(Optional createdAt) { this.createdAt = createdAt; @@ -205,6 +211,9 @@ public Builder createdAt(OffsetDateTime createdAt) { return this; } + /** + *

    The datetime that this object was modified by Merge.

    + */ @JsonSetter(value = "modified_at", nulls = Nulls.SKIP) public Builder modifiedAt(Optional modifiedAt) { this.modifiedAt = modifiedAt; @@ -227,6 +236,9 @@ public Builder invoice(CreditNoteApplyLineForCreditNoteInvoice invoice) { return this; } + /** + *

    Date that the credit note is applied to the invoice.

    + */ @JsonSetter(value = "applied_date", nulls = Nulls.SKIP) public Builder appliedDate(Optional appliedDate) { this.appliedDate = appliedDate; @@ -238,6 +250,9 @@ public Builder appliedDate(OffsetDateTime appliedDate) { return this; } + /** + *

    The amount of the Credit Note applied to the invoice.

    + */ @JsonSetter(value = "applied_amount", nulls = Nulls.SKIP) public Builder appliedAmount(Optional appliedAmount) { this.appliedAmount = appliedAmount; @@ -249,6 +264,9 @@ public Builder appliedAmount(String appliedAmount) { return this; } + /** + *

    Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

    + */ @JsonSetter(value = "remote_was_deleted", nulls = Nulls.SKIP) public Builder remoteWasDeleted(Optional remoteWasDeleted) { this.remoteWasDeleted = remoteWasDeleted; diff --git a/src/main/java/com/merge/api/accounting/types/CreditNoteApplyLineForCreditNoteRequest.java b/src/main/java/com/merge/api/accounting/types/CreditNoteApplyLineForCreditNoteRequest.java index 719aafd36..f256595b0 100644 --- a/src/main/java/com/merge/api/accounting/types/CreditNoteApplyLineForCreditNoteRequest.java +++ b/src/main/java/com/merge/api/accounting/types/CreditNoteApplyLineForCreditNoteRequest.java @@ -162,6 +162,9 @@ public Builder from(CreditNoteApplyLineForCreditNoteRequest other) { return this; } + /** + *

    The third-party API ID of the matching object.

    + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; @@ -184,6 +187,9 @@ public Builder invoice(CreditNoteApplyLineForCreditNoteRequestInvoice invoice) { return this; } + /** + *

    Date that the credit note is applied to the invoice.

    + */ @JsonSetter(value = "applied_date", nulls = Nulls.SKIP) public Builder appliedDate(Optional appliedDate) { this.appliedDate = appliedDate; @@ -195,6 +201,9 @@ public Builder appliedDate(OffsetDateTime appliedDate) { return this; } + /** + *

    The amount of the Credit Note applied to the invoice.

    + */ @JsonSetter(value = "applied_amount", nulls = Nulls.SKIP) public Builder appliedAmount(Optional appliedAmount) { this.appliedAmount = appliedAmount; diff --git a/src/main/java/com/merge/api/accounting/types/CreditNoteApplyLineForInvoice.java b/src/main/java/com/merge/api/accounting/types/CreditNoteApplyLineForInvoice.java index 4dfb677cd..7b6228362 100644 --- a/src/main/java/com/merge/api/accounting/types/CreditNoteApplyLineForInvoice.java +++ b/src/main/java/com/merge/api/accounting/types/CreditNoteApplyLineForInvoice.java @@ -183,6 +183,9 @@ public Builder from(CreditNoteApplyLineForInvoice other) { return this; } + /** + *

    The third-party API ID of the matching object.

    + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; @@ -194,6 +197,9 @@ public Builder remoteId(String remoteId) { return this; } + /** + *

    The datetime that this object was created by Merge.

    + */ @JsonSetter(value = "created_at", nulls = Nulls.SKIP) public Builder createdAt(Optional createdAt) { this.createdAt = createdAt; @@ -205,6 +211,9 @@ public Builder createdAt(OffsetDateTime createdAt) { return this; } + /** + *

    The datetime that this object was modified by Merge.

    + */ @JsonSetter(value = "modified_at", nulls = Nulls.SKIP) public Builder modifiedAt(Optional modifiedAt) { this.modifiedAt = modifiedAt; @@ -227,6 +236,9 @@ public Builder creditNote(CreditNoteApplyLineForInvoiceCreditNote creditNote) { return this; } + /** + *

    Date that the credit note is applied to the invoice.

    + */ @JsonSetter(value = "applied_date", nulls = Nulls.SKIP) public Builder appliedDate(Optional appliedDate) { this.appliedDate = appliedDate; @@ -238,6 +250,9 @@ public Builder appliedDate(OffsetDateTime appliedDate) { return this; } + /** + *

    The amount of the Credit Note applied to the invoice.

    + */ @JsonSetter(value = "applied_amount", nulls = Nulls.SKIP) public Builder appliedAmount(Optional appliedAmount) { this.appliedAmount = appliedAmount; @@ -249,6 +264,9 @@ public Builder appliedAmount(String appliedAmount) { return this; } + /** + *

    Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

    + */ @JsonSetter(value = "remote_was_deleted", nulls = Nulls.SKIP) public Builder remoteWasDeleted(Optional remoteWasDeleted) { this.remoteWasDeleted = remoteWasDeleted; diff --git a/src/main/java/com/merge/api/accounting/types/CreditNoteCurrency.java b/src/main/java/com/merge/api/accounting/types/CreditNoteCurrency.java new file mode 100644 index 000000000..11ad73567 --- /dev/null +++ b/src/main/java/com/merge/api/accounting/types/CreditNoteCurrency.java @@ -0,0 +1,95 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.merge.api.accounting.types; + +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.databind.DeserializationContext; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.fasterxml.jackson.databind.deser.std.StdDeserializer; +import com.merge.api.core.ObjectMappers; +import java.io.IOException; +import java.util.Objects; + +@JsonDeserialize(using = CreditNoteCurrency.Deserializer.class) +public final class CreditNoteCurrency { + private final Object value; + + private final int type; + + private CreditNoteCurrency(Object value, int type) { + this.value = value; + this.type = type; + } + + @JsonValue + public Object get() { + return this.value; + } + + @SuppressWarnings("unchecked") + public T visit(Visitor visitor) { + if (this.type == 0) { + return visitor.visit((TransactionCurrencyEnum) this.value); + } else if (this.type == 1) { + return visitor.visit((String) this.value); + } + throw new IllegalStateException("Failed to visit value. This should never happen."); + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof CreditNoteCurrency && equalTo((CreditNoteCurrency) other); + } + + private boolean equalTo(CreditNoteCurrency other) { + return value.equals(other.value); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.value); + } + + @java.lang.Override + public String toString() { + return this.value.toString(); + } + + public static CreditNoteCurrency of(TransactionCurrencyEnum value) { + return new CreditNoteCurrency(value, 0); + } + + public static CreditNoteCurrency of(String value) { + return new CreditNoteCurrency(value, 1); + } + + public interface Visitor { + T visit(TransactionCurrencyEnum value); + + T visit(String value); + } + + static final class Deserializer extends StdDeserializer { + Deserializer() { + super(CreditNoteCurrency.class); + } + + @java.lang.Override + public CreditNoteCurrency deserialize(JsonParser p, DeserializationContext context) throws IOException { + Object value = p.readValueAs(Object.class); + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, TransactionCurrencyEnum.class)); + } catch (IllegalArgumentException e) { + } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, String.class)); + } catch (IllegalArgumentException e) { + } + throw new JsonParseException(p, "Failed to deserialize"); + } + } +} diff --git a/src/main/java/com/merge/api/accounting/types/CreditNoteEndpointRequest.java b/src/main/java/com/merge/api/accounting/types/CreditNoteEndpointRequest.java index f7e405ca6..99cc332f1 100644 --- a/src/main/java/com/merge/api/accounting/types/CreditNoteEndpointRequest.java +++ b/src/main/java/com/merge/api/accounting/types/CreditNoteEndpointRequest.java @@ -99,10 +99,16 @@ public interface ModelStage { public interface _FinalStage { CreditNoteEndpointRequest build(); + /** + *

    Whether to include debug fields (such as log file links) in the response.

    + */ _FinalStage isDebugMode(Optional isDebugMode); _FinalStage isDebugMode(Boolean isDebugMode); + /** + *

    Whether or not third-party updates should be run asynchronously.

    + */ _FinalStage runAsync(Optional runAsync); _FinalStage runAsync(Boolean runAsync); @@ -146,6 +152,9 @@ public _FinalStage runAsync(Boolean runAsync) { return this; } + /** + *

    Whether or not third-party updates should be run asynchronously.

    + */ @java.lang.Override @JsonSetter(value = "run_async", nulls = Nulls.SKIP) public _FinalStage runAsync(Optional runAsync) { @@ -163,6 +172,9 @@ public _FinalStage isDebugMode(Boolean isDebugMode) { return this; } + /** + *

    Whether to include debug fields (such as log file links) in the response.

    + */ @java.lang.Override @JsonSetter(value = "is_debug_mode", nulls = Nulls.SKIP) public _FinalStage isDebugMode(Optional isDebugMode) { diff --git a/src/main/java/com/merge/api/accounting/types/CreditNoteLineItem.java b/src/main/java/com/merge/api/accounting/types/CreditNoteLineItem.java index 285a81daa..d189295d6 100644 --- a/src/main/java/com/merge/api/accounting/types/CreditNoteLineItem.java +++ b/src/main/java/com/merge/api/accounting/types/CreditNoteLineItem.java @@ -54,6 +54,10 @@ public final class CreditNoteLineItem { private final Optional company; + private final Optional contact; + + private final Optional project; + private final Optional remoteWasDeleted; private final Map additionalProperties; @@ -75,6 +79,8 @@ private CreditNoteLineItem( Optional>> trackingCategories, Optional account, Optional company, + Optional contact, + Optional project, Optional remoteWasDeleted, Map additionalProperties) { this.id = id; @@ -93,6 +99,8 @@ private CreditNoteLineItem( this.trackingCategories = trackingCategories; this.account = account; this.company = company; + this.contact = contact; + this.project = project; this.remoteWasDeleted = remoteWasDeleted; this.additionalProperties = additionalProperties; } @@ -219,6 +227,19 @@ public Optional getCompany() { return company; } + /** + * @return The credit note's contact. + */ + @JsonProperty("contact") + public Optional getContact() { + return contact; + } + + @JsonProperty("project") + public Optional getProject() { + return project; + } + /** * @return Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more. */ @@ -255,6 +276,8 @@ private boolean equalTo(CreditNoteLineItem other) { && trackingCategories.equals(other.trackingCategories) && account.equals(other.account) && company.equals(other.company) + && contact.equals(other.contact) + && project.equals(other.project) && remoteWasDeleted.equals(other.remoteWasDeleted); } @@ -277,6 +300,8 @@ public int hashCode() { this.trackingCategories, this.account, this.company, + this.contact, + this.project, this.remoteWasDeleted); } @@ -323,6 +348,10 @@ public static final class Builder { private Optional company = Optional.empty(); + private Optional contact = Optional.empty(); + + private Optional project = Optional.empty(); + private Optional remoteWasDeleted = Optional.empty(); @JsonAnySetter @@ -347,6 +376,8 @@ public Builder from(CreditNoteLineItem other) { trackingCategories(other.getTrackingCategories()); account(other.getAccount()); company(other.getCompany()); + contact(other.getContact()); + project(other.getProject()); remoteWasDeleted(other.getRemoteWasDeleted()); return this; } @@ -362,6 +393,9 @@ public Builder id(String id) { return this; } + /** + *

    The third-party API ID of the matching object.

    + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; @@ -373,6 +407,9 @@ public Builder remoteId(String remoteId) { return this; } + /** + *

    The datetime that this object was created by Merge.

    + */ @JsonSetter(value = "created_at", nulls = Nulls.SKIP) public Builder createdAt(Optional createdAt) { this.createdAt = createdAt; @@ -384,6 +421,9 @@ public Builder createdAt(OffsetDateTime createdAt) { return this; } + /** + *

    The datetime that this object was modified by Merge.

    + */ @JsonSetter(value = "modified_at", nulls = Nulls.SKIP) public Builder modifiedAt(Optional modifiedAt) { this.modifiedAt = modifiedAt; @@ -406,6 +446,9 @@ public Builder item(CreditNoteLineItemItem item) { return this; } + /** + *

    The credit note line item's name.

    + */ @JsonSetter(value = "name", nulls = Nulls.SKIP) public Builder name(Optional name) { this.name = name; @@ -417,6 +460,9 @@ public Builder name(String name) { return this; } + /** + *

    The description of the item that is owed.

    + */ @JsonSetter(value = "description", nulls = Nulls.SKIP) public Builder description(Optional description) { this.description = description; @@ -428,6 +474,9 @@ public Builder description(String description) { return this; } + /** + *

    The credit note line item's quantity.

    + */ @JsonSetter(value = "quantity", nulls = Nulls.SKIP) public Builder quantity(Optional quantity) { this.quantity = quantity; @@ -439,6 +488,9 @@ public Builder quantity(String quantity) { return this; } + /** + *

    The credit note line item's memo.

    + */ @JsonSetter(value = "memo", nulls = Nulls.SKIP) public Builder memo(Optional memo) { this.memo = memo; @@ -450,6 +502,9 @@ public Builder memo(String memo) { return this; } + /** + *

    The credit note line item's unit price.

    + */ @JsonSetter(value = "unit_price", nulls = Nulls.SKIP) public Builder unitPrice(Optional unitPrice) { this.unitPrice = unitPrice; @@ -461,6 +516,9 @@ public Builder unitPrice(String unitPrice) { return this; } + /** + *

    The tax rate that applies to this line item.

    + */ @JsonSetter(value = "tax_rate", nulls = Nulls.SKIP) public Builder taxRate(Optional taxRate) { this.taxRate = taxRate; @@ -472,6 +530,9 @@ public Builder taxRate(String taxRate) { return this; } + /** + *

    The credit note line item's total.

    + */ @JsonSetter(value = "total_line_amount", nulls = Nulls.SKIP) public Builder totalLineAmount(Optional totalLineAmount) { this.totalLineAmount = totalLineAmount; @@ -483,6 +544,9 @@ public Builder totalLineAmount(String totalLineAmount) { return this; } + /** + *

    The credit note line item's associated tracking category.

    + */ @JsonSetter(value = "tracking_category", nulls = Nulls.SKIP) public Builder trackingCategory(Optional trackingCategory) { this.trackingCategory = trackingCategory; @@ -494,6 +558,9 @@ public Builder trackingCategory(String trackingCategory) { return this; } + /** + *

    The credit note line item's associated tracking categories.

    + */ @JsonSetter(value = "tracking_categories", nulls = Nulls.SKIP) public Builder trackingCategories(Optional>> trackingCategories) { this.trackingCategories = trackingCategories; @@ -505,6 +572,9 @@ public Builder trackingCategories(List> trackingCategories) { return this; } + /** + *

    The credit note line item's account.

    + */ @JsonSetter(value = "account", nulls = Nulls.SKIP) public Builder account(Optional account) { this.account = account; @@ -516,6 +586,9 @@ public Builder account(String account) { return this; } + /** + *

    The company the credit note belongs to.

    + */ @JsonSetter(value = "company", nulls = Nulls.SKIP) public Builder company(Optional company) { this.company = company; @@ -527,6 +600,34 @@ public Builder company(CreditNoteLineItemCompany company) { return this; } + /** + *

    The credit note's contact.

    + */ + @JsonSetter(value = "contact", nulls = Nulls.SKIP) + public Builder contact(Optional contact) { + this.contact = contact; + return this; + } + + public Builder contact(CreditNoteLineItemContact contact) { + this.contact = Optional.ofNullable(contact); + return this; + } + + @JsonSetter(value = "project", nulls = Nulls.SKIP) + public Builder project(Optional project) { + this.project = project; + return this; + } + + public Builder project(CreditNoteLineItemProject project) { + this.project = Optional.ofNullable(project); + return this; + } + + /** + *

    Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

    + */ @JsonSetter(value = "remote_was_deleted", nulls = Nulls.SKIP) public Builder remoteWasDeleted(Optional remoteWasDeleted) { this.remoteWasDeleted = remoteWasDeleted; @@ -556,6 +657,8 @@ public CreditNoteLineItem build() { trackingCategories, account, company, + contact, + project, remoteWasDeleted, additionalProperties); } diff --git a/src/main/java/com/merge/api/accounting/types/CreditNoteLineItemContact.java b/src/main/java/com/merge/api/accounting/types/CreditNoteLineItemContact.java new file mode 100644 index 000000000..c844a4745 --- /dev/null +++ b/src/main/java/com/merge/api/accounting/types/CreditNoteLineItemContact.java @@ -0,0 +1,95 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.merge.api.accounting.types; + +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.databind.DeserializationContext; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.fasterxml.jackson.databind.deser.std.StdDeserializer; +import com.merge.api.core.ObjectMappers; +import java.io.IOException; +import java.util.Objects; + +@JsonDeserialize(using = CreditNoteLineItemContact.Deserializer.class) +public final class CreditNoteLineItemContact { + private final Object value; + + private final int type; + + private CreditNoteLineItemContact(Object value, int type) { + this.value = value; + this.type = type; + } + + @JsonValue + public Object get() { + return this.value; + } + + @SuppressWarnings("unchecked") + public T visit(Visitor visitor) { + if (this.type == 0) { + return visitor.visit((String) this.value); + } else if (this.type == 1) { + return visitor.visit((Contact) this.value); + } + throw new IllegalStateException("Failed to visit value. This should never happen."); + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof CreditNoteLineItemContact && equalTo((CreditNoteLineItemContact) other); + } + + private boolean equalTo(CreditNoteLineItemContact other) { + return value.equals(other.value); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.value); + } + + @java.lang.Override + public String toString() { + return this.value.toString(); + } + + public static CreditNoteLineItemContact of(String value) { + return new CreditNoteLineItemContact(value, 0); + } + + public static CreditNoteLineItemContact of(Contact value) { + return new CreditNoteLineItemContact(value, 1); + } + + public interface Visitor { + T visit(String value); + + T visit(Contact value); + } + + static final class Deserializer extends StdDeserializer { + Deserializer() { + super(CreditNoteLineItemContact.class); + } + + @java.lang.Override + public CreditNoteLineItemContact deserialize(JsonParser p, DeserializationContext context) throws IOException { + Object value = p.readValueAs(Object.class); + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, String.class)); + } catch (IllegalArgumentException e) { + } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, Contact.class)); + } catch (IllegalArgumentException e) { + } + throw new JsonParseException(p, "Failed to deserialize"); + } + } +} diff --git a/src/main/java/com/merge/api/accounting/types/CreditNoteLineItemProject.java b/src/main/java/com/merge/api/accounting/types/CreditNoteLineItemProject.java new file mode 100644 index 000000000..fe0ddeb6b --- /dev/null +++ b/src/main/java/com/merge/api/accounting/types/CreditNoteLineItemProject.java @@ -0,0 +1,95 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.merge.api.accounting.types; + +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.databind.DeserializationContext; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.fasterxml.jackson.databind.deser.std.StdDeserializer; +import com.merge.api.core.ObjectMappers; +import java.io.IOException; +import java.util.Objects; + +@JsonDeserialize(using = CreditNoteLineItemProject.Deserializer.class) +public final class CreditNoteLineItemProject { + private final Object value; + + private final int type; + + private CreditNoteLineItemProject(Object value, int type) { + this.value = value; + this.type = type; + } + + @JsonValue + public Object get() { + return this.value; + } + + @SuppressWarnings("unchecked") + public T visit(Visitor visitor) { + if (this.type == 0) { + return visitor.visit((String) this.value); + } else if (this.type == 1) { + return visitor.visit((Project) this.value); + } + throw new IllegalStateException("Failed to visit value. This should never happen."); + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof CreditNoteLineItemProject && equalTo((CreditNoteLineItemProject) other); + } + + private boolean equalTo(CreditNoteLineItemProject other) { + return value.equals(other.value); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.value); + } + + @java.lang.Override + public String toString() { + return this.value.toString(); + } + + public static CreditNoteLineItemProject of(String value) { + return new CreditNoteLineItemProject(value, 0); + } + + public static CreditNoteLineItemProject of(Project value) { + return new CreditNoteLineItemProject(value, 1); + } + + public interface Visitor { + T visit(String value); + + T visit(Project value); + } + + static final class Deserializer extends StdDeserializer { + Deserializer() { + super(CreditNoteLineItemProject.class); + } + + @java.lang.Override + public CreditNoteLineItemProject deserialize(JsonParser p, DeserializationContext context) throws IOException { + Object value = p.readValueAs(Object.class); + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, String.class)); + } catch (IllegalArgumentException e) { + } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, Project.class)); + } catch (IllegalArgumentException e) { + } + throw new JsonParseException(p, "Failed to deserialize"); + } + } +} diff --git a/src/main/java/com/merge/api/accounting/types/CreditNoteLineItemRequest.java b/src/main/java/com/merge/api/accounting/types/CreditNoteLineItemRequest.java index d5b61b15a..485ca5d1c 100644 --- a/src/main/java/com/merge/api/accounting/types/CreditNoteLineItemRequest.java +++ b/src/main/java/com/merge/api/accounting/types/CreditNoteLineItemRequest.java @@ -48,6 +48,10 @@ public final class CreditNoteLineItemRequest { private final Optional company; + private final Optional contact; + + private final Optional project; + private final Optional> integrationParams; private final Optional> linkedAccountParams; @@ -68,6 +72,8 @@ private CreditNoteLineItemRequest( Optional>> trackingCategories, Optional account, Optional company, + Optional contact, + Optional project, Optional> integrationParams, Optional> linkedAccountParams, Map additionalProperties) { @@ -84,6 +90,8 @@ private CreditNoteLineItemRequest( this.trackingCategories = trackingCategories; this.account = account; this.company = company; + this.contact = contact; + this.project = project; this.integrationParams = integrationParams; this.linkedAccountParams = linkedAccountParams; this.additionalProperties = additionalProperties; @@ -190,6 +198,19 @@ public Optional getCompany() { return company; } + /** + * @return The credit note's contact. + */ + @JsonProperty("contact") + public Optional getContact() { + return contact; + } + + @JsonProperty("project") + public Optional getProject() { + return project; + } + @JsonProperty("integration_params") public Optional> getIntegrationParams() { return integrationParams; @@ -225,6 +246,8 @@ private boolean equalTo(CreditNoteLineItemRequest other) { && trackingCategories.equals(other.trackingCategories) && account.equals(other.account) && company.equals(other.company) + && contact.equals(other.contact) + && project.equals(other.project) && integrationParams.equals(other.integrationParams) && linkedAccountParams.equals(other.linkedAccountParams); } @@ -245,6 +268,8 @@ public int hashCode() { this.trackingCategories, this.account, this.company, + this.contact, + this.project, this.integrationParams, this.linkedAccountParams); } @@ -286,6 +311,10 @@ public static final class Builder { private Optional company = Optional.empty(); + private Optional contact = Optional.empty(); + + private Optional project = Optional.empty(); + private Optional> integrationParams = Optional.empty(); private Optional> linkedAccountParams = Optional.empty(); @@ -309,11 +338,16 @@ public Builder from(CreditNoteLineItemRequest other) { trackingCategories(other.getTrackingCategories()); account(other.getAccount()); company(other.getCompany()); + contact(other.getContact()); + project(other.getProject()); integrationParams(other.getIntegrationParams()); linkedAccountParams(other.getLinkedAccountParams()); return this; } + /** + *

    The third-party API ID of the matching object.

    + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; @@ -336,6 +370,9 @@ public Builder item(CreditNoteLineItemRequestItem item) { return this; } + /** + *

    The credit note line item's name.

    + */ @JsonSetter(value = "name", nulls = Nulls.SKIP) public Builder name(Optional name) { this.name = name; @@ -347,6 +384,9 @@ public Builder name(String name) { return this; } + /** + *

    The description of the item that is owed.

    + */ @JsonSetter(value = "description", nulls = Nulls.SKIP) public Builder description(Optional description) { this.description = description; @@ -358,6 +398,9 @@ public Builder description(String description) { return this; } + /** + *

    The credit note line item's quantity.

    + */ @JsonSetter(value = "quantity", nulls = Nulls.SKIP) public Builder quantity(Optional quantity) { this.quantity = quantity; @@ -369,6 +412,9 @@ public Builder quantity(String quantity) { return this; } + /** + *

    The credit note line item's memo.

    + */ @JsonSetter(value = "memo", nulls = Nulls.SKIP) public Builder memo(Optional memo) { this.memo = memo; @@ -380,6 +426,9 @@ public Builder memo(String memo) { return this; } + /** + *

    The credit note line item's unit price.

    + */ @JsonSetter(value = "unit_price", nulls = Nulls.SKIP) public Builder unitPrice(Optional unitPrice) { this.unitPrice = unitPrice; @@ -391,6 +440,9 @@ public Builder unitPrice(String unitPrice) { return this; } + /** + *

    The tax rate that applies to this line item.

    + */ @JsonSetter(value = "tax_rate", nulls = Nulls.SKIP) public Builder taxRate(Optional taxRate) { this.taxRate = taxRate; @@ -402,6 +454,9 @@ public Builder taxRate(String taxRate) { return this; } + /** + *

    The credit note line item's total.

    + */ @JsonSetter(value = "total_line_amount", nulls = Nulls.SKIP) public Builder totalLineAmount(Optional totalLineAmount) { this.totalLineAmount = totalLineAmount; @@ -413,6 +468,9 @@ public Builder totalLineAmount(String totalLineAmount) { return this; } + /** + *

    The credit note line item's associated tracking category.

    + */ @JsonSetter(value = "tracking_category", nulls = Nulls.SKIP) public Builder trackingCategory(Optional trackingCategory) { this.trackingCategory = trackingCategory; @@ -424,6 +482,9 @@ public Builder trackingCategory(String trackingCategory) { return this; } + /** + *

    The credit note line item's associated tracking categories.

    + */ @JsonSetter(value = "tracking_categories", nulls = Nulls.SKIP) public Builder trackingCategories(Optional>> trackingCategories) { this.trackingCategories = trackingCategories; @@ -435,6 +496,9 @@ public Builder trackingCategories(List> trackingCategories) { return this; } + /** + *

    The credit note line item's account.

    + */ @JsonSetter(value = "account", nulls = Nulls.SKIP) public Builder account(Optional account) { this.account = account; @@ -446,6 +510,9 @@ public Builder account(String account) { return this; } + /** + *

    The company the credit note belongs to.

    + */ @JsonSetter(value = "company", nulls = Nulls.SKIP) public Builder company(Optional company) { this.company = company; @@ -457,6 +524,31 @@ public Builder company(CreditNoteLineItemRequestCompany company) { return this; } + /** + *

    The credit note's contact.

    + */ + @JsonSetter(value = "contact", nulls = Nulls.SKIP) + public Builder contact(Optional contact) { + this.contact = contact; + return this; + } + + public Builder contact(CreditNoteLineItemRequestContact contact) { + this.contact = Optional.ofNullable(contact); + return this; + } + + @JsonSetter(value = "project", nulls = Nulls.SKIP) + public Builder project(Optional project) { + this.project = project; + return this; + } + + public Builder project(CreditNoteLineItemRequestProject project) { + this.project = Optional.ofNullable(project); + return this; + } + @JsonSetter(value = "integration_params", nulls = Nulls.SKIP) public Builder integrationParams(Optional> integrationParams) { this.integrationParams = integrationParams; @@ -494,6 +586,8 @@ public CreditNoteLineItemRequest build() { trackingCategories, account, company, + contact, + project, integrationParams, linkedAccountParams, additionalProperties); diff --git a/src/main/java/com/merge/api/accounting/types/CreditNoteLineItemRequestContact.java b/src/main/java/com/merge/api/accounting/types/CreditNoteLineItemRequestContact.java new file mode 100644 index 000000000..a7b5f9a97 --- /dev/null +++ b/src/main/java/com/merge/api/accounting/types/CreditNoteLineItemRequestContact.java @@ -0,0 +1,96 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.merge.api.accounting.types; + +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.databind.DeserializationContext; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.fasterxml.jackson.databind.deser.std.StdDeserializer; +import com.merge.api.core.ObjectMappers; +import java.io.IOException; +import java.util.Objects; + +@JsonDeserialize(using = CreditNoteLineItemRequestContact.Deserializer.class) +public final class CreditNoteLineItemRequestContact { + private final Object value; + + private final int type; + + private CreditNoteLineItemRequestContact(Object value, int type) { + this.value = value; + this.type = type; + } + + @JsonValue + public Object get() { + return this.value; + } + + @SuppressWarnings("unchecked") + public T visit(Visitor visitor) { + if (this.type == 0) { + return visitor.visit((String) this.value); + } else if (this.type == 1) { + return visitor.visit((Contact) this.value); + } + throw new IllegalStateException("Failed to visit value. This should never happen."); + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof CreditNoteLineItemRequestContact && equalTo((CreditNoteLineItemRequestContact) other); + } + + private boolean equalTo(CreditNoteLineItemRequestContact other) { + return value.equals(other.value); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.value); + } + + @java.lang.Override + public String toString() { + return this.value.toString(); + } + + public static CreditNoteLineItemRequestContact of(String value) { + return new CreditNoteLineItemRequestContact(value, 0); + } + + public static CreditNoteLineItemRequestContact of(Contact value) { + return new CreditNoteLineItemRequestContact(value, 1); + } + + public interface Visitor { + T visit(String value); + + T visit(Contact value); + } + + static final class Deserializer extends StdDeserializer { + Deserializer() { + super(CreditNoteLineItemRequestContact.class); + } + + @java.lang.Override + public CreditNoteLineItemRequestContact deserialize(JsonParser p, DeserializationContext context) + throws IOException { + Object value = p.readValueAs(Object.class); + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, String.class)); + } catch (IllegalArgumentException e) { + } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, Contact.class)); + } catch (IllegalArgumentException e) { + } + throw new JsonParseException(p, "Failed to deserialize"); + } + } +} diff --git a/src/main/java/com/merge/api/accounting/types/CreditNoteLineItemRequestProject.java b/src/main/java/com/merge/api/accounting/types/CreditNoteLineItemRequestProject.java new file mode 100644 index 000000000..ff50af455 --- /dev/null +++ b/src/main/java/com/merge/api/accounting/types/CreditNoteLineItemRequestProject.java @@ -0,0 +1,96 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.merge.api.accounting.types; + +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.databind.DeserializationContext; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.fasterxml.jackson.databind.deser.std.StdDeserializer; +import com.merge.api.core.ObjectMappers; +import java.io.IOException; +import java.util.Objects; + +@JsonDeserialize(using = CreditNoteLineItemRequestProject.Deserializer.class) +public final class CreditNoteLineItemRequestProject { + private final Object value; + + private final int type; + + private CreditNoteLineItemRequestProject(Object value, int type) { + this.value = value; + this.type = type; + } + + @JsonValue + public Object get() { + return this.value; + } + + @SuppressWarnings("unchecked") + public T visit(Visitor visitor) { + if (this.type == 0) { + return visitor.visit((String) this.value); + } else if (this.type == 1) { + return visitor.visit((Project) this.value); + } + throw new IllegalStateException("Failed to visit value. This should never happen."); + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof CreditNoteLineItemRequestProject && equalTo((CreditNoteLineItemRequestProject) other); + } + + private boolean equalTo(CreditNoteLineItemRequestProject other) { + return value.equals(other.value); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.value); + } + + @java.lang.Override + public String toString() { + return this.value.toString(); + } + + public static CreditNoteLineItemRequestProject of(String value) { + return new CreditNoteLineItemRequestProject(value, 0); + } + + public static CreditNoteLineItemRequestProject of(Project value) { + return new CreditNoteLineItemRequestProject(value, 1); + } + + public interface Visitor { + T visit(String value); + + T visit(Project value); + } + + static final class Deserializer extends StdDeserializer { + Deserializer() { + super(CreditNoteLineItemRequestProject.class); + } + + @java.lang.Override + public CreditNoteLineItemRequestProject deserialize(JsonParser p, DeserializationContext context) + throws IOException { + Object value = p.readValueAs(Object.class); + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, String.class)); + } catch (IllegalArgumentException e) { + } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, Project.class)); + } catch (IllegalArgumentException e) { + } + throw new JsonParseException(p, "Failed to deserialize"); + } + } +} diff --git a/src/main/java/com/merge/api/accounting/types/CreditNoteRequest.java b/src/main/java/com/merge/api/accounting/types/CreditNoteRequest.java index 45ea67f1d..46176b432 100644 --- a/src/main/java/com/merge/api/accounting/types/CreditNoteRequest.java +++ b/src/main/java/com/merge/api/accounting/types/CreditNoteRequest.java @@ -25,7 +25,7 @@ public final class CreditNoteRequest { private final Optional transactionDate; - private final Optional status; + private final Optional status; private final Optional number; @@ -45,7 +45,7 @@ public final class CreditNoteRequest { private final Optional>> trackingCategories; - private final Optional currency; + private final Optional currency; private final Optional>> payments; @@ -63,7 +63,7 @@ public final class CreditNoteRequest { private CreditNoteRequest( Optional transactionDate, - Optional status, + Optional status, Optional number, Optional contact, Optional company, @@ -73,7 +73,7 @@ private CreditNoteRequest( Optional inclusiveOfTax, Optional> lineItems, Optional>> trackingCategories, - Optional currency, + Optional currency, Optional>> payments, Optional>> appliedPayments, Optional accountingPeriod, @@ -119,7 +119,7 @@ public Optional getTransactionDate() { * */ @JsonProperty("status") - public Optional getStatus() { + public Optional getStatus() { return status; } @@ -501,7 +501,7 @@ public Optional>> getTrac * */ @JsonProperty("currency") - public Optional getCurrency() { + public Optional getCurrency() { return currency; } @@ -615,7 +615,7 @@ public static Builder builder() { public static final class Builder { private Optional transactionDate = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Optional number = Optional.empty(); @@ -635,7 +635,7 @@ public static final class Builder { private Optional>> trackingCategories = Optional.empty(); - private Optional currency = Optional.empty(); + private Optional currency = Optional.empty(); private Optional>> payments = Optional.empty(); @@ -676,6 +676,9 @@ public Builder from(CreditNoteRequest other) { return this; } + /** + *

    The credit note's transaction date.

    + */ @JsonSetter(value = "transaction_date", nulls = Nulls.SKIP) public Builder transactionDate(Optional transactionDate) { this.transactionDate = transactionDate; @@ -687,17 +690,28 @@ public Builder transactionDate(OffsetDateTime transactionDate) { return this; } + /** + *

    The credit note's status.

    + *
      + *
    • SUBMITTED - SUBMITTED
    • + *
    • AUTHORIZED - AUTHORIZED
    • + *
    • PAID - PAID
    • + *
    + */ @JsonSetter(value = "status", nulls = Nulls.SKIP) - public Builder status(Optional status) { + public Builder status(Optional status) { this.status = status; return this; } - public Builder status(CreditNoteStatusEnum status) { + public Builder status(CreditNoteRequestStatus status) { this.status = Optional.ofNullable(status); return this; } + /** + *

    The credit note's number.

    + */ @JsonSetter(value = "number", nulls = Nulls.SKIP) public Builder number(Optional number) { this.number = number; @@ -709,6 +723,9 @@ public Builder number(String number) { return this; } + /** + *

    The credit note's contact.

    + */ @JsonSetter(value = "contact", nulls = Nulls.SKIP) public Builder contact(Optional contact) { this.contact = contact; @@ -720,6 +737,9 @@ public Builder contact(CreditNoteRequestContact contact) { return this; } + /** + *

    The company the credit note belongs to.

    + */ @JsonSetter(value = "company", nulls = Nulls.SKIP) public Builder company(Optional company) { this.company = company; @@ -731,6 +751,9 @@ public Builder company(CreditNoteRequestCompany company) { return this; } + /** + *

    The credit note's exchange rate.

    + */ @JsonSetter(value = "exchange_rate", nulls = Nulls.SKIP) public Builder exchangeRate(Optional exchangeRate) { this.exchangeRate = exchangeRate; @@ -742,6 +765,9 @@ public Builder exchangeRate(String exchangeRate) { return this; } + /** + *

    The credit note's total amount.

    + */ @JsonSetter(value = "total_amount", nulls = Nulls.SKIP) public Builder totalAmount(Optional totalAmount) { this.totalAmount = totalAmount; @@ -753,6 +779,9 @@ public Builder totalAmount(Double totalAmount) { return this; } + /** + *

    The amount of value remaining in the credit note that the customer can use.

    + */ @JsonSetter(value = "remaining_credit", nulls = Nulls.SKIP) public Builder remainingCredit(Optional remainingCredit) { this.remainingCredit = remainingCredit; @@ -764,6 +793,9 @@ public Builder remainingCredit(Double remainingCredit) { return this; } + /** + *

    If the transaction is inclusive or exclusive of tax. True if inclusive, False if exclusive.

    + */ @JsonSetter(value = "inclusive_of_tax", nulls = Nulls.SKIP) public Builder inclusiveOfTax(Optional inclusiveOfTax) { this.inclusiveOfTax = inclusiveOfTax; @@ -798,17 +830,331 @@ public Builder trackingCategories(ListThe credit note's currency.

    + *
      + *
    • XUA - ADB Unit of Account
    • + *
    • AFN - Afghan Afghani
    • + *
    • AFA - Afghan Afghani (1927–2002)
    • + *
    • ALL - Albanian Lek
    • + *
    • ALK - Albanian Lek (1946–1965)
    • + *
    • DZD - Algerian Dinar
    • + *
    • ADP - Andorran Peseta
    • + *
    • AOA - Angolan Kwanza
    • + *
    • AOK - Angolan Kwanza (1977–1991)
    • + *
    • AON - Angolan New Kwanza (1990–2000)
    • + *
    • AOR - Angolan Readjusted Kwanza (1995–1999)
    • + *
    • ARA - Argentine Austral
    • + *
    • ARS - Argentine Peso
    • + *
    • ARM - Argentine Peso (1881–1970)
    • + *
    • ARP - Argentine Peso (1983–1985)
    • + *
    • ARL - Argentine Peso Ley (1970–1983)
    • + *
    • AMD - Armenian Dram
    • + *
    • AWG - Aruban Florin
    • + *
    • AUD - Australian Dollar
    • + *
    • ATS - Austrian Schilling
    • + *
    • AZN - Azerbaijani Manat
    • + *
    • AZM - Azerbaijani Manat (1993–2006)
    • + *
    • BSD - Bahamian Dollar
    • + *
    • BHD - Bahraini Dinar
    • + *
    • BDT - Bangladeshi Taka
    • + *
    • BBD - Barbadian Dollar
    • + *
    • BYN - Belarusian Ruble
    • + *
    • BYB - Belarusian Ruble (1994–1999)
    • + *
    • BYR - Belarusian Ruble (2000–2016)
    • + *
    • BEF - Belgian Franc
    • + *
    • BEC - Belgian Franc (convertible)
    • + *
    • BEL - Belgian Franc (financial)
    • + *
    • BZD - Belize Dollar
    • + *
    • BMD - Bermudan Dollar
    • + *
    • BTN - Bhutanese Ngultrum
    • + *
    • BOB - Bolivian Boliviano
    • + *
    • BOL - Bolivian Boliviano (1863–1963)
    • + *
    • BOV - Bolivian Mvdol
    • + *
    • BOP - Bolivian Peso
    • + *
    • BAM - Bosnia-Herzegovina Convertible Mark
    • + *
    • BAD - Bosnia-Herzegovina Dinar (1992–1994)
    • + *
    • BAN - Bosnia-Herzegovina New Dinar (1994–1997)
    • + *
    • BWP - Botswanan Pula
    • + *
    • BRC - Brazilian Cruzado (1986–1989)
    • + *
    • BRZ - Brazilian Cruzeiro (1942–1967)
    • + *
    • BRE - Brazilian Cruzeiro (1990–1993)
    • + *
    • BRR - Brazilian Cruzeiro (1993–1994)
    • + *
    • BRN - Brazilian New Cruzado (1989–1990)
    • + *
    • BRB - Brazilian New Cruzeiro (1967–1986)
    • + *
    • BRL - Brazilian Real
    • + *
    • GBP - British Pound
    • + *
    • BND - Brunei Dollar
    • + *
    • BGL - Bulgarian Hard Lev
    • + *
    • BGN - Bulgarian Lev
    • + *
    • BGO - Bulgarian Lev (1879–1952)
    • + *
    • BGM - Bulgarian Socialist Lev
    • + *
    • BUK - Burmese Kyat
    • + *
    • BIF - Burundian Franc
    • + *
    • XPF - CFP Franc
    • + *
    • KHR - Cambodian Riel
    • + *
    • CAD - Canadian Dollar
    • + *
    • CVE - Cape Verdean Escudo
    • + *
    • KYD - Cayman Islands Dollar
    • + *
    • XAF - Central African CFA Franc
    • + *
    • CLE - Chilean Escudo
    • + *
    • CLP - Chilean Peso
    • + *
    • CLF - Chilean Unit of Account (UF)
    • + *
    • CNX - Chinese People’s Bank Dollar
    • + *
    • CNY - Chinese Yuan
    • + *
    • CNH - Chinese Yuan (offshore)
    • + *
    • COP - Colombian Peso
    • + *
    • COU - Colombian Real Value Unit
    • + *
    • KMF - Comorian Franc
    • + *
    • CDF - Congolese Franc
    • + *
    • CRC - Costa Rican Colón
    • + *
    • HRD - Croatian Dinar
    • + *
    • HRK - Croatian Kuna
    • + *
    • CUC - Cuban Convertible Peso
    • + *
    • CUP - Cuban Peso
    • + *
    • CYP - Cypriot Pound
    • + *
    • CZK - Czech Koruna
    • + *
    • CSK - Czechoslovak Hard Koruna
    • + *
    • DKK - Danish Krone
    • + *
    • DJF - Djiboutian Franc
    • + *
    • DOP - Dominican Peso
    • + *
    • NLG - Dutch Guilder
    • + *
    • XCD - East Caribbean Dollar
    • + *
    • DDM - East German Mark
    • + *
    • ECS - Ecuadorian Sucre
    • + *
    • ECV - Ecuadorian Unit of Constant Value
    • + *
    • EGP - Egyptian Pound
    • + *
    • GQE - Equatorial Guinean Ekwele
    • + *
    • ERN - Eritrean Nakfa
    • + *
    • EEK - Estonian Kroon
    • + *
    • ETB - Ethiopian Birr
    • + *
    • EUR - Euro
    • + *
    • XBA - European Composite Unit
    • + *
    • XEU - European Currency Unit
    • + *
    • XBB - European Monetary Unit
    • + *
    • XBC - European Unit of Account (XBC)
    • + *
    • XBD - European Unit of Account (XBD)
    • + *
    • FKP - Falkland Islands Pound
    • + *
    • FJD - Fijian Dollar
    • + *
    • FIM - Finnish Markka
    • + *
    • FRF - French Franc
    • + *
    • XFO - French Gold Franc
    • + *
    • XFU - French UIC-Franc
    • + *
    • GMD - Gambian Dalasi
    • + *
    • GEK - Georgian Kupon Larit
    • + *
    • GEL - Georgian Lari
    • + *
    • DEM - German Mark
    • + *
    • GHS - Ghanaian Cedi
    • + *
    • GHC - Ghanaian Cedi (1979–2007)
    • + *
    • GIP - Gibraltar Pound
    • + *
    • XAU - Gold
    • + *
    • GRD - Greek Drachma
    • + *
    • GTQ - Guatemalan Quetzal
    • + *
    • GWP - Guinea-Bissau Peso
    • + *
    • GNF - Guinean Franc
    • + *
    • GNS - Guinean Syli
    • + *
    • GYD - Guyanaese Dollar
    • + *
    • HTG - Haitian Gourde
    • + *
    • HNL - Honduran Lempira
    • + *
    • HKD - Hong Kong Dollar
    • + *
    • HUF - Hungarian Forint
    • + *
    • IMP - IMP
    • + *
    • ISK - Icelandic Króna
    • + *
    • ISJ - Icelandic Króna (1918–1981)
    • + *
    • INR - Indian Rupee
    • + *
    • IDR - Indonesian Rupiah
    • + *
    • IRR - Iranian Rial
    • + *
    • IQD - Iraqi Dinar
    • + *
    • IEP - Irish Pound
    • + *
    • ILS - Israeli New Shekel
    • + *
    • ILP - Israeli Pound
    • + *
    • ILR - Israeli Shekel (1980–1985)
    • + *
    • ITL - Italian Lira
    • + *
    • JMD - Jamaican Dollar
    • + *
    • JPY - Japanese Yen
    • + *
    • JOD - Jordanian Dinar
    • + *
    • KZT - Kazakhstani Tenge
    • + *
    • KES - Kenyan Shilling
    • + *
    • KWD - Kuwaiti Dinar
    • + *
    • KGS - Kyrgystani Som
    • + *
    • LAK - Laotian Kip
    • + *
    • LVL - Latvian Lats
    • + *
    • LVR - Latvian Ruble
    • + *
    • LBP - Lebanese Pound
    • + *
    • LSL - Lesotho Loti
    • + *
    • LRD - Liberian Dollar
    • + *
    • LYD - Libyan Dinar
    • + *
    • LTL - Lithuanian Litas
    • + *
    • LTT - Lithuanian Talonas
    • + *
    • LUL - Luxembourg Financial Franc
    • + *
    • LUC - Luxembourgian Convertible Franc
    • + *
    • LUF - Luxembourgian Franc
    • + *
    • MOP - Macanese Pataca
    • + *
    • MKD - Macedonian Denar
    • + *
    • MKN - Macedonian Denar (1992–1993)
    • + *
    • MGA - Malagasy Ariary
    • + *
    • MGF - Malagasy Franc
    • + *
    • MWK - Malawian Kwacha
    • + *
    • MYR - Malaysian Ringgit
    • + *
    • MVR - Maldivian Rufiyaa
    • + *
    • MVP - Maldivian Rupee (1947–1981)
    • + *
    • MLF - Malian Franc
    • + *
    • MTL - Maltese Lira
    • + *
    • MTP - Maltese Pound
    • + *
    • MRU - Mauritanian Ouguiya
    • + *
    • MRO - Mauritanian Ouguiya (1973–2017)
    • + *
    • MUR - Mauritian Rupee
    • + *
    • MXV - Mexican Investment Unit
    • + *
    • MXN - Mexican Peso
    • + *
    • MXP - Mexican Silver Peso (1861–1992)
    • + *
    • MDC - Moldovan Cupon
    • + *
    • MDL - Moldovan Leu
    • + *
    • MCF - Monegasque Franc
    • + *
    • MNT - Mongolian Tugrik
    • + *
    • MAD - Moroccan Dirham
    • + *
    • MAF - Moroccan Franc
    • + *
    • MZE - Mozambican Escudo
    • + *
    • MZN - Mozambican Metical
    • + *
    • MZM - Mozambican Metical (1980–2006)
    • + *
    • MMK - Myanmar Kyat
    • + *
    • NAD - Namibian Dollar
    • + *
    • NPR - Nepalese Rupee
    • + *
    • ANG - Netherlands Antillean Guilder
    • + *
    • TWD - New Taiwan Dollar
    • + *
    • NZD - New Zealand Dollar
    • + *
    • NIO - Nicaraguan Córdoba
    • + *
    • NIC - Nicaraguan Córdoba (1988–1991)
    • + *
    • NGN - Nigerian Naira
    • + *
    • KPW - North Korean Won
    • + *
    • NOK - Norwegian Krone
    • + *
    • OMR - Omani Rial
    • + *
    • PKR - Pakistani Rupee
    • + *
    • XPD - Palladium
    • + *
    • PAB - Panamanian Balboa
    • + *
    • PGK - Papua New Guinean Kina
    • + *
    • PYG - Paraguayan Guarani
    • + *
    • PEI - Peruvian Inti
    • + *
    • PEN - Peruvian Sol
    • + *
    • PES - Peruvian Sol (1863–1965)
    • + *
    • PHP - Philippine Peso
    • + *
    • XPT - Platinum
    • + *
    • PLN - Polish Zloty
    • + *
    • PLZ - Polish Zloty (1950–1995)
    • + *
    • PTE - Portuguese Escudo
    • + *
    • GWE - Portuguese Guinea Escudo
    • + *
    • QAR - Qatari Rial
    • + *
    • XRE - RINET Funds
    • + *
    • RHD - Rhodesian Dollar
    • + *
    • RON - Romanian Leu
    • + *
    • ROL - Romanian Leu (1952–2006)
    • + *
    • RUB - Russian Ruble
    • + *
    • RUR - Russian Ruble (1991–1998)
    • + *
    • RWF - Rwandan Franc
    • + *
    • SVC - Salvadoran Colón
    • + *
    • WST - Samoan Tala
    • + *
    • SAR - Saudi Riyal
    • + *
    • RSD - Serbian Dinar
    • + *
    • CSD - Serbian Dinar (2002–2006)
    • + *
    • SCR - Seychellois Rupee
    • + *
    • SLL - Sierra Leonean Leone
    • + *
    • XAG - Silver
    • + *
    • SGD - Singapore Dollar
    • + *
    • SKK - Slovak Koruna
    • + *
    • SIT - Slovenian Tolar
    • + *
    • SBD - Solomon Islands Dollar
    • + *
    • SOS - Somali Shilling
    • + *
    • ZAR - South African Rand
    • + *
    • ZAL - South African Rand (financial)
    • + *
    • KRH - South Korean Hwan (1953–1962)
    • + *
    • KRW - South Korean Won
    • + *
    • KRO - South Korean Won (1945–1953)
    • + *
    • SSP - South Sudanese Pound
    • + *
    • SUR - Soviet Rouble
    • + *
    • ESP - Spanish Peseta
    • + *
    • ESA - Spanish Peseta (A account)
    • + *
    • ESB - Spanish Peseta (convertible account)
    • + *
    • XDR - Special Drawing Rights
    • + *
    • LKR - Sri Lankan Rupee
    • + *
    • SHP - St. Helena Pound
    • + *
    • XSU - Sucre
    • + *
    • SDD - Sudanese Dinar (1992–2007)
    • + *
    • SDG - Sudanese Pound
    • + *
    • SDP - Sudanese Pound (1957–1998)
    • + *
    • SRD - Surinamese Dollar
    • + *
    • SRG - Surinamese Guilder
    • + *
    • SZL - Swazi Lilangeni
    • + *
    • SEK - Swedish Krona
    • + *
    • CHF - Swiss Franc
    • + *
    • SYP - Syrian Pound
    • + *
    • STN - São Tomé & Príncipe Dobra
    • + *
    • STD - São Tomé & Príncipe Dobra (1977–2017)
    • + *
    • TVD - TVD
    • + *
    • TJR - Tajikistani Ruble
    • + *
    • TJS - Tajikistani Somoni
    • + *
    • TZS - Tanzanian Shilling
    • + *
    • XTS - Testing Currency Code
    • + *
    • THB - Thai Baht
    • + *
    • XXX - The codes assigned for transactions where no currency is involved
    • + *
    • TPE - Timorese Escudo
    • + *
    • TOP - Tongan Paʻanga
    • + *
    • TTD - Trinidad & Tobago Dollar
    • + *
    • TND - Tunisian Dinar
    • + *
    • TRY - Turkish Lira
    • + *
    • TRL - Turkish Lira (1922–2005)
    • + *
    • TMT - Turkmenistani Manat
    • + *
    • TMM - Turkmenistani Manat (1993–2009)
    • + *
    • USD - US Dollar
    • + *
    • USN - US Dollar (Next day)
    • + *
    • USS - US Dollar (Same day)
    • + *
    • UGX - Ugandan Shilling
    • + *
    • UGS - Ugandan Shilling (1966–1987)
    • + *
    • UAH - Ukrainian Hryvnia
    • + *
    • UAK - Ukrainian Karbovanets
    • + *
    • AED - United Arab Emirates Dirham
    • + *
    • UYW - Uruguayan Nominal Wage Index Unit
    • + *
    • UYU - Uruguayan Peso
    • + *
    • UYP - Uruguayan Peso (1975–1993)
    • + *
    • UYI - Uruguayan Peso (Indexed Units)
    • + *
    • UZS - Uzbekistani Som
    • + *
    • VUV - Vanuatu Vatu
    • + *
    • VES - Venezuelan Bolívar
    • + *
    • VEB - Venezuelan Bolívar (1871–2008)
    • + *
    • VEF - Venezuelan Bolívar (2008–2018)
    • + *
    • VND - Vietnamese Dong
    • + *
    • VNN - Vietnamese Dong (1978–1985)
    • + *
    • CHE - WIR Euro
    • + *
    • CHW - WIR Franc
    • + *
    • XOF - West African CFA Franc
    • + *
    • YDD - Yemeni Dinar
    • + *
    • YER - Yemeni Rial
    • + *
    • YUN - Yugoslavian Convertible Dinar (1990–1992)
    • + *
    • YUD - Yugoslavian Hard Dinar (1966–1990)
    • + *
    • YUM - Yugoslavian New Dinar (1994–2002)
    • + *
    • YUR - Yugoslavian Reformed Dinar (1992–1993)
    • + *
    • ZWN - ZWN
    • + *
    • ZRN - Zairean New Zaire (1993–1998)
    • + *
    • ZRZ - Zairean Zaire (1971–1993)
    • + *
    • ZMW - Zambian Kwacha
    • + *
    • ZMK - Zambian Kwacha (1968–2012)
    • + *
    • ZWD - Zimbabwean Dollar (1980–2008)
    • + *
    • ZWR - Zimbabwean Dollar (2008)
    • + *
    • ZWL - Zimbabwean Dollar (2009)
    • + *
    + */ @JsonSetter(value = "currency", nulls = Nulls.SKIP) - public Builder currency(Optional currency) { + public Builder currency(Optional currency) { this.currency = currency; return this; } - public Builder currency(TransactionCurrencyEnum currency) { + public Builder currency(CreditNoteRequestCurrency currency) { this.currency = Optional.ofNullable(currency); return this; } + /** + *

    Array of Payment object IDs

    + */ @JsonSetter(value = "payments", nulls = Nulls.SKIP) public Builder payments(Optional>> payments) { this.payments = payments; @@ -820,6 +1166,9 @@ public Builder payments(List> payments) return this; } + /** + *

    A list of the Payment Applied to Lines common models related to a given Invoice, Credit Note, or Journal Entry.

    + */ @JsonSetter(value = "applied_payments", nulls = Nulls.SKIP) public Builder appliedPayments(Optional>> appliedPayments) { this.appliedPayments = appliedPayments; @@ -831,6 +1180,9 @@ public Builder appliedPayments(ListThe accounting period that the CreditNote was generated in.

    + */ @JsonSetter(value = "accounting_period", nulls = Nulls.SKIP) public Builder accountingPeriod(Optional accountingPeriod) { this.accountingPeriod = accountingPeriod; @@ -842,6 +1194,9 @@ public Builder accountingPeriod(CreditNoteRequestAccountingPeriod accountingPeri return this; } + /** + *

    A list of the CreditNote Applied to Lines common models related to a given Credit Note

    + */ @JsonSetter(value = "applied_to_lines", nulls = Nulls.SKIP) public Builder appliedToLines(Optional> appliedToLines) { this.appliedToLines = appliedToLines; diff --git a/src/main/java/com/merge/api/accounting/types/CreditNoteRequestCurrency.java b/src/main/java/com/merge/api/accounting/types/CreditNoteRequestCurrency.java new file mode 100644 index 000000000..742cdb9e0 --- /dev/null +++ b/src/main/java/com/merge/api/accounting/types/CreditNoteRequestCurrency.java @@ -0,0 +1,95 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.merge.api.accounting.types; + +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.databind.DeserializationContext; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.fasterxml.jackson.databind.deser.std.StdDeserializer; +import com.merge.api.core.ObjectMappers; +import java.io.IOException; +import java.util.Objects; + +@JsonDeserialize(using = CreditNoteRequestCurrency.Deserializer.class) +public final class CreditNoteRequestCurrency { + private final Object value; + + private final int type; + + private CreditNoteRequestCurrency(Object value, int type) { + this.value = value; + this.type = type; + } + + @JsonValue + public Object get() { + return this.value; + } + + @SuppressWarnings("unchecked") + public T visit(Visitor visitor) { + if (this.type == 0) { + return visitor.visit((TransactionCurrencyEnum) this.value); + } else if (this.type == 1) { + return visitor.visit((String) this.value); + } + throw new IllegalStateException("Failed to visit value. This should never happen."); + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof CreditNoteRequestCurrency && equalTo((CreditNoteRequestCurrency) other); + } + + private boolean equalTo(CreditNoteRequestCurrency other) { + return value.equals(other.value); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.value); + } + + @java.lang.Override + public String toString() { + return this.value.toString(); + } + + public static CreditNoteRequestCurrency of(TransactionCurrencyEnum value) { + return new CreditNoteRequestCurrency(value, 0); + } + + public static CreditNoteRequestCurrency of(String value) { + return new CreditNoteRequestCurrency(value, 1); + } + + public interface Visitor { + T visit(TransactionCurrencyEnum value); + + T visit(String value); + } + + static final class Deserializer extends StdDeserializer { + Deserializer() { + super(CreditNoteRequestCurrency.class); + } + + @java.lang.Override + public CreditNoteRequestCurrency deserialize(JsonParser p, DeserializationContext context) throws IOException { + Object value = p.readValueAs(Object.class); + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, TransactionCurrencyEnum.class)); + } catch (IllegalArgumentException e) { + } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, String.class)); + } catch (IllegalArgumentException e) { + } + throw new JsonParseException(p, "Failed to deserialize"); + } + } +} diff --git a/src/main/java/com/merge/api/accounting/types/CreditNoteRequestStatus.java b/src/main/java/com/merge/api/accounting/types/CreditNoteRequestStatus.java new file mode 100644 index 000000000..66b7063ef --- /dev/null +++ b/src/main/java/com/merge/api/accounting/types/CreditNoteRequestStatus.java @@ -0,0 +1,95 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.merge.api.accounting.types; + +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.databind.DeserializationContext; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.fasterxml.jackson.databind.deser.std.StdDeserializer; +import com.merge.api.core.ObjectMappers; +import java.io.IOException; +import java.util.Objects; + +@JsonDeserialize(using = CreditNoteRequestStatus.Deserializer.class) +public final class CreditNoteRequestStatus { + private final Object value; + + private final int type; + + private CreditNoteRequestStatus(Object value, int type) { + this.value = value; + this.type = type; + } + + @JsonValue + public Object get() { + return this.value; + } + + @SuppressWarnings("unchecked") + public T visit(Visitor visitor) { + if (this.type == 0) { + return visitor.visit((CreditNoteStatusEnum) this.value); + } else if (this.type == 1) { + return visitor.visit((String) this.value); + } + throw new IllegalStateException("Failed to visit value. This should never happen."); + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof CreditNoteRequestStatus && equalTo((CreditNoteRequestStatus) other); + } + + private boolean equalTo(CreditNoteRequestStatus other) { + return value.equals(other.value); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.value); + } + + @java.lang.Override + public String toString() { + return this.value.toString(); + } + + public static CreditNoteRequestStatus of(CreditNoteStatusEnum value) { + return new CreditNoteRequestStatus(value, 0); + } + + public static CreditNoteRequestStatus of(String value) { + return new CreditNoteRequestStatus(value, 1); + } + + public interface Visitor { + T visit(CreditNoteStatusEnum value); + + T visit(String value); + } + + static final class Deserializer extends StdDeserializer { + Deserializer() { + super(CreditNoteRequestStatus.class); + } + + @java.lang.Override + public CreditNoteRequestStatus deserialize(JsonParser p, DeserializationContext context) throws IOException { + Object value = p.readValueAs(Object.class); + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, CreditNoteStatusEnum.class)); + } catch (IllegalArgumentException e) { + } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, String.class)); + } catch (IllegalArgumentException e) { + } + throw new JsonParseException(p, "Failed to deserialize"); + } + } +} diff --git a/src/main/java/com/merge/api/accounting/types/CreditNoteStatus.java b/src/main/java/com/merge/api/accounting/types/CreditNoteStatus.java new file mode 100644 index 000000000..3eabf72f7 --- /dev/null +++ b/src/main/java/com/merge/api/accounting/types/CreditNoteStatus.java @@ -0,0 +1,95 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.merge.api.accounting.types; + +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.databind.DeserializationContext; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.fasterxml.jackson.databind.deser.std.StdDeserializer; +import com.merge.api.core.ObjectMappers; +import java.io.IOException; +import java.util.Objects; + +@JsonDeserialize(using = CreditNoteStatus.Deserializer.class) +public final class CreditNoteStatus { + private final Object value; + + private final int type; + + private CreditNoteStatus(Object value, int type) { + this.value = value; + this.type = type; + } + + @JsonValue + public Object get() { + return this.value; + } + + @SuppressWarnings("unchecked") + public T visit(Visitor visitor) { + if (this.type == 0) { + return visitor.visit((CreditNoteStatusEnum) this.value); + } else if (this.type == 1) { + return visitor.visit((String) this.value); + } + throw new IllegalStateException("Failed to visit value. This should never happen."); + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof CreditNoteStatus && equalTo((CreditNoteStatus) other); + } + + private boolean equalTo(CreditNoteStatus other) { + return value.equals(other.value); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.value); + } + + @java.lang.Override + public String toString() { + return this.value.toString(); + } + + public static CreditNoteStatus of(CreditNoteStatusEnum value) { + return new CreditNoteStatus(value, 0); + } + + public static CreditNoteStatus of(String value) { + return new CreditNoteStatus(value, 1); + } + + public interface Visitor { + T visit(CreditNoteStatusEnum value); + + T visit(String value); + } + + static final class Deserializer extends StdDeserializer { + Deserializer() { + super(CreditNoteStatus.class); + } + + @java.lang.Override + public CreditNoteStatus deserialize(JsonParser p, DeserializationContext context) throws IOException { + Object value = p.readValueAs(Object.class); + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, CreditNoteStatusEnum.class)); + } catch (IllegalArgumentException e) { + } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, String.class)); + } catch (IllegalArgumentException e) { + } + throw new JsonParseException(p, "Failed to deserialize"); + } + } +} diff --git a/src/main/java/com/merge/api/accounting/types/CreditNotesListRequest.java b/src/main/java/com/merge/api/accounting/types/CreditNotesListRequest.java index b3c97fc77..99bb157a2 100644 --- a/src/main/java/com/merge/api/accounting/types/CreditNotesListRequest.java +++ b/src/main/java/com/merge/api/accounting/types/CreditNotesListRequest.java @@ -341,6 +341,9 @@ public Builder from(CreditNotesListRequest other) { return this; } + /** + *

    Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.

    + */ @JsonSetter(value = "expand", nulls = Nulls.SKIP) public Builder expand(Optional> expand) { this.expand = expand; @@ -357,6 +360,9 @@ public Builder expand(CreditNotesListRequestExpandItem expand) { return this; } + /** + *

    If provided, will only return credit notes for this company.

    + */ @JsonSetter(value = "company_id", nulls = Nulls.SKIP) public Builder companyId(Optional companyId) { this.companyId = companyId; @@ -368,6 +374,9 @@ public Builder companyId(String companyId) { return this; } + /** + *

    If provided, will only return objects created after this datetime.

    + */ @JsonSetter(value = "created_after", nulls = Nulls.SKIP) public Builder createdAfter(Optional createdAfter) { this.createdAfter = createdAfter; @@ -379,6 +388,9 @@ public Builder createdAfter(OffsetDateTime createdAfter) { return this; } + /** + *

    If provided, will only return objects created before this datetime.

    + */ @JsonSetter(value = "created_before", nulls = Nulls.SKIP) public Builder createdBefore(Optional createdBefore) { this.createdBefore = createdBefore; @@ -390,6 +402,9 @@ public Builder createdBefore(OffsetDateTime createdBefore) { return this; } + /** + *

    The pagination cursor value.

    + */ @JsonSetter(value = "cursor", nulls = Nulls.SKIP) public Builder cursor(Optional cursor) { this.cursor = cursor; @@ -401,6 +416,9 @@ public Builder cursor(String cursor) { return this; } + /** + *

    Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

    + */ @JsonSetter(value = "include_deleted_data", nulls = Nulls.SKIP) public Builder includeDeletedData(Optional includeDeletedData) { this.includeDeletedData = includeDeletedData; @@ -412,6 +430,9 @@ public Builder includeDeletedData(Boolean includeDeletedData) { return this; } + /** + *

    Whether to include the original data Merge fetched from the third-party to produce these models.

    + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -423,6 +444,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

    Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

    + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; @@ -434,6 +458,9 @@ public Builder includeShellData(Boolean includeShellData) { return this; } + /** + *

    If provided, only objects synced by Merge after this date time will be returned.

    + */ @JsonSetter(value = "modified_after", nulls = Nulls.SKIP) public Builder modifiedAfter(Optional modifiedAfter) { this.modifiedAfter = modifiedAfter; @@ -445,6 +472,9 @@ public Builder modifiedAfter(OffsetDateTime modifiedAfter) { return this; } + /** + *

    If provided, only objects synced by Merge before this date time will be returned.

    + */ @JsonSetter(value = "modified_before", nulls = Nulls.SKIP) public Builder modifiedBefore(Optional modifiedBefore) { this.modifiedBefore = modifiedBefore; @@ -456,6 +486,9 @@ public Builder modifiedBefore(OffsetDateTime modifiedBefore) { return this; } + /** + *

    Number of results to return per page.

    + */ @JsonSetter(value = "page_size", nulls = Nulls.SKIP) public Builder pageSize(Optional pageSize) { this.pageSize = pageSize; @@ -467,6 +500,9 @@ public Builder pageSize(Integer pageSize) { return this; } + /** + *

    Deprecated. Use show_enum_origins.

    + */ @JsonSetter(value = "remote_fields", nulls = Nulls.SKIP) public Builder remoteFields(Optional remoteFields) { this.remoteFields = remoteFields; @@ -478,6 +514,9 @@ public Builder remoteFields(CreditNotesListRequestRemoteFields remoteFields) { return this; } + /** + *

    The API provider's ID for the given object.

    + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; @@ -489,6 +528,9 @@ public Builder remoteId(String remoteId) { return this; } + /** + *

    A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. Learn more

    + */ @JsonSetter(value = "show_enum_origins", nulls = Nulls.SKIP) public Builder showEnumOrigins(Optional showEnumOrigins) { this.showEnumOrigins = showEnumOrigins; @@ -500,6 +542,9 @@ public Builder showEnumOrigins(CreditNotesListRequestShowEnumOrigins showEnumOri return this; } + /** + *

    If provided, will only return objects created after this datetime.

    + */ @JsonSetter(value = "transaction_date_after", nulls = Nulls.SKIP) public Builder transactionDateAfter(Optional transactionDateAfter) { this.transactionDateAfter = transactionDateAfter; @@ -511,6 +556,9 @@ public Builder transactionDateAfter(OffsetDateTime transactionDateAfter) { return this; } + /** + *

    If provided, will only return objects created before this datetime.

    + */ @JsonSetter(value = "transaction_date_before", nulls = Nulls.SKIP) public Builder transactionDateBefore(Optional transactionDateBefore) { this.transactionDateBefore = transactionDateBefore; diff --git a/src/main/java/com/merge/api/accounting/types/CreditNotesRetrieveRequest.java b/src/main/java/com/merge/api/accounting/types/CreditNotesRetrieveRequest.java index ffecba3e3..3cda6901a 100644 --- a/src/main/java/com/merge/api/accounting/types/CreditNotesRetrieveRequest.java +++ b/src/main/java/com/merge/api/accounting/types/CreditNotesRetrieveRequest.java @@ -149,6 +149,9 @@ public Builder from(CreditNotesRetrieveRequest other) { return this; } + /** + *

    Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.

    + */ @JsonSetter(value = "expand", nulls = Nulls.SKIP) public Builder expand(Optional> expand) { this.expand = expand; @@ -165,6 +168,9 @@ public Builder expand(CreditNotesRetrieveRequestExpandItem expand) { return this; } + /** + *

    Whether to include the original data Merge fetched from the third-party to produce these models.

    + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -176,6 +182,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

    Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

    + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; @@ -187,6 +196,9 @@ public Builder includeShellData(Boolean includeShellData) { return this; } + /** + *

    Deprecated. Use show_enum_origins.

    + */ @JsonSetter(value = "remote_fields", nulls = Nulls.SKIP) public Builder remoteFields(Optional remoteFields) { this.remoteFields = remoteFields; @@ -198,6 +210,9 @@ public Builder remoteFields(CreditNotesRetrieveRequestRemoteFields remoteFields) return this; } + /** + *

    A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. Learn more

    + */ @JsonSetter(value = "show_enum_origins", nulls = Nulls.SKIP) public Builder showEnumOrigins(Optional showEnumOrigins) { this.showEnumOrigins = showEnumOrigins; diff --git a/src/main/java/com/merge/api/accounting/types/DataPassthroughRequest.java b/src/main/java/com/merge/api/accounting/types/DataPassthroughRequest.java index 05b1d0ecb..29af16a0e 100644 --- a/src/main/java/com/merge/api/accounting/types/DataPassthroughRequest.java +++ b/src/main/java/com/merge/api/accounting/types/DataPassthroughRequest.java @@ -171,24 +171,39 @@ public interface MethodStage { } public interface PathStage { + /** + * The path of the request in the third party's platform. + */ _FinalStage path(@NotNull String path); } public interface _FinalStage { DataPassthroughRequest build(); + /** + *

    An optional override of the third party's base url for the request.

    + */ _FinalStage baseUrlOverride(Optional baseUrlOverride); _FinalStage baseUrlOverride(String baseUrlOverride); + /** + *

    The data with the request. You must include a request_format parameter matching the data's format

    + */ _FinalStage data(Optional data); _FinalStage data(String data); + /** + *

    Pass an array of MultipartFormField objects in here instead of using the data param if request_format is set to MULTIPART.

    + */ _FinalStage multipartFormData(Optional> multipartFormData); _FinalStage multipartFormData(List multipartFormData); + /** + *

    The headers to use for the request (Merge will handle the account's authorization headers). Content-Type header is required for passthrough. Choose content type corresponding to expected format of receiving server.

    + */ _FinalStage headers(Optional> headers); _FinalStage headers(Map headers); @@ -197,6 +212,9 @@ public interface _FinalStage { _FinalStage requestFormat(RequestFormatEnum requestFormat); + /** + *

    Optional. If true, the response will always be an object of the form {"type": T, "value": ...} where T will be one of string, boolean, number, null, array, object.

    + */ _FinalStage normalizeResponse(Optional normalizeResponse); _FinalStage normalizeResponse(Boolean normalizeResponse); @@ -246,7 +264,7 @@ public PathStage method(@NotNull MethodEnum method) { } /** - *

    The path of the request in the third party's platform.

    + * The path of the request in the third party's platform.

    The path of the request in the third party's platform.

    * @return Reference to {@code this} so that method calls can be chained together. */ @java.lang.Override @@ -266,6 +284,9 @@ public _FinalStage normalizeResponse(Boolean normalizeResponse) { return this; } + /** + *

    Optional. If true, the response will always be an object of the form {"type": T, "value": ...} where T will be one of string, boolean, number, null, array, object.

    + */ @java.lang.Override @JsonSetter(value = "normalize_response", nulls = Nulls.SKIP) public _FinalStage normalizeResponse(Optional normalizeResponse) { @@ -296,6 +317,9 @@ public _FinalStage headers(Map headers) { return this; } + /** + *

    The headers to use for the request (Merge will handle the account's authorization headers). Content-Type header is required for passthrough. Choose content type corresponding to expected format of receiving server.

    + */ @java.lang.Override @JsonSetter(value = "headers", nulls = Nulls.SKIP) public _FinalStage headers(Optional> headers) { @@ -313,6 +337,9 @@ public _FinalStage multipartFormData(List multipartFo return this; } + /** + *

    Pass an array of MultipartFormField objects in here instead of using the data param if request_format is set to MULTIPART.

    + */ @java.lang.Override @JsonSetter(value = "multipart_form_data", nulls = Nulls.SKIP) public _FinalStage multipartFormData(Optional> multipartFormData) { @@ -330,6 +357,9 @@ public _FinalStage data(String data) { return this; } + /** + *

    The data with the request. You must include a request_format parameter matching the data's format

    + */ @java.lang.Override @JsonSetter(value = "data", nulls = Nulls.SKIP) public _FinalStage data(Optional data) { @@ -347,6 +377,9 @@ public _FinalStage baseUrlOverride(String baseUrlOverride) { return this; } + /** + *

    An optional override of the third party's base url for the request.

    + */ @java.lang.Override @JsonSetter(value = "base_url_override", nulls = Nulls.SKIP) public _FinalStage baseUrlOverride(Optional baseUrlOverride) { diff --git a/src/main/java/com/merge/api/accounting/types/Employee.java b/src/main/java/com/merge/api/accounting/types/Employee.java index 441ff987e..2580563fa 100644 --- a/src/main/java/com/merge/api/accounting/types/Employee.java +++ b/src/main/java/com/merge/api/accounting/types/Employee.java @@ -44,7 +44,7 @@ public final class Employee { private final Optional company; - private final Status895Enum status; + private final EmployeeStatus status; private final Optional remoteWasDeleted; @@ -65,7 +65,7 @@ private Employee( Optional employeeNumber, Optional emailAddress, Optional company, - Status895Enum status, + EmployeeStatus status, Optional remoteWasDeleted, Optional> fieldMappings, Optional> remoteData, @@ -172,7 +172,7 @@ public Optional getCompany() { * */ @JsonProperty("status") - public Status895Enum getStatus() { + public EmployeeStatus getStatus() { return status; } @@ -251,7 +251,13 @@ public static StatusStage builder() { } public interface StatusStage { - _FinalStage status(@NotNull Status895Enum status); + /** + * The employee's status in the accounting system. + * + * * `ACTIVE` - ACTIVE + * * `INACTIVE` - INACTIVE + */ + _FinalStage status(@NotNull EmployeeStatus status); Builder from(Employee other); } @@ -263,42 +269,72 @@ public interface _FinalStage { _FinalStage id(String id); + /** + *

    The third-party API ID of the matching object.

    + */ _FinalStage remoteId(Optional remoteId); _FinalStage remoteId(String remoteId); + /** + *

    The datetime that this object was created by Merge.

    + */ _FinalStage createdAt(Optional createdAt); _FinalStage createdAt(OffsetDateTime createdAt); + /** + *

    The datetime that this object was modified by Merge.

    + */ _FinalStage modifiedAt(Optional modifiedAt); _FinalStage modifiedAt(OffsetDateTime modifiedAt); + /** + *

    The employee's first name.

    + */ _FinalStage firstName(Optional firstName); _FinalStage firstName(String firstName); + /** + *

    The employee's last name.

    + */ _FinalStage lastName(Optional lastName); _FinalStage lastName(String lastName); + /** + *

    True if the employee is a contractor, False if not.

    + */ _FinalStage isContractor(Optional isContractor); _FinalStage isContractor(Boolean isContractor); + /** + *

    The employee's internal identification number.

    + */ _FinalStage employeeNumber(Optional employeeNumber); _FinalStage employeeNumber(String employeeNumber); + /** + *

    The employee's email address.

    + */ _FinalStage emailAddress(Optional emailAddress); _FinalStage emailAddress(String emailAddress); + /** + *

    The subsidiary that the employee belongs to.

    + */ _FinalStage company(Optional company); _FinalStage company(EmployeeCompany company); + /** + *

    Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

    + */ _FinalStage remoteWasDeleted(Optional remoteWasDeleted); _FinalStage remoteWasDeleted(Boolean remoteWasDeleted); @@ -314,7 +350,7 @@ public interface _FinalStage { @JsonIgnoreProperties(ignoreUnknown = true) public static final class Builder implements StatusStage, _FinalStage { - private Status895Enum status; + private EmployeeStatus status; private Optional> remoteData = Optional.empty(); @@ -367,7 +403,10 @@ public Builder from(Employee other) { } /** - *

    The employee's status in the accounting system.

    + * The employee's status in the accounting system. + * + * * `ACTIVE` - ACTIVE + * * `INACTIVE` - INACTIVE

    The employee's status in the accounting system.

    *
      *
    • ACTIVE - ACTIVE
    • *
    • INACTIVE - INACTIVE
    • @@ -376,7 +415,7 @@ public Builder from(Employee other) { */ @java.lang.Override @JsonSetter("status") - public _FinalStage status(@NotNull Status895Enum status) { + public _FinalStage status(@NotNull EmployeeStatus status) { this.status = status; return this; } @@ -417,6 +456,9 @@ public _FinalStage remoteWasDeleted(Boolean remoteWasDeleted) { return this; } + /** + *

      Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

      + */ @java.lang.Override @JsonSetter(value = "remote_was_deleted", nulls = Nulls.SKIP) public _FinalStage remoteWasDeleted(Optional remoteWasDeleted) { @@ -434,6 +476,9 @@ public _FinalStage company(EmployeeCompany company) { return this; } + /** + *

      The subsidiary that the employee belongs to.

      + */ @java.lang.Override @JsonSetter(value = "company", nulls = Nulls.SKIP) public _FinalStage company(Optional company) { @@ -451,6 +496,9 @@ public _FinalStage emailAddress(String emailAddress) { return this; } + /** + *

      The employee's email address.

      + */ @java.lang.Override @JsonSetter(value = "email_address", nulls = Nulls.SKIP) public _FinalStage emailAddress(Optional emailAddress) { @@ -468,6 +516,9 @@ public _FinalStage employeeNumber(String employeeNumber) { return this; } + /** + *

      The employee's internal identification number.

      + */ @java.lang.Override @JsonSetter(value = "employee_number", nulls = Nulls.SKIP) public _FinalStage employeeNumber(Optional employeeNumber) { @@ -485,6 +536,9 @@ public _FinalStage isContractor(Boolean isContractor) { return this; } + /** + *

      True if the employee is a contractor, False if not.

      + */ @java.lang.Override @JsonSetter(value = "is_contractor", nulls = Nulls.SKIP) public _FinalStage isContractor(Optional isContractor) { @@ -502,6 +556,9 @@ public _FinalStage lastName(String lastName) { return this; } + /** + *

      The employee's last name.

      + */ @java.lang.Override @JsonSetter(value = "last_name", nulls = Nulls.SKIP) public _FinalStage lastName(Optional lastName) { @@ -519,6 +576,9 @@ public _FinalStage firstName(String firstName) { return this; } + /** + *

      The employee's first name.

      + */ @java.lang.Override @JsonSetter(value = "first_name", nulls = Nulls.SKIP) public _FinalStage firstName(Optional firstName) { @@ -536,6 +596,9 @@ public _FinalStage modifiedAt(OffsetDateTime modifiedAt) { return this; } + /** + *

      The datetime that this object was modified by Merge.

      + */ @java.lang.Override @JsonSetter(value = "modified_at", nulls = Nulls.SKIP) public _FinalStage modifiedAt(Optional modifiedAt) { @@ -553,6 +616,9 @@ public _FinalStage createdAt(OffsetDateTime createdAt) { return this; } + /** + *

      The datetime that this object was created by Merge.

      + */ @java.lang.Override @JsonSetter(value = "created_at", nulls = Nulls.SKIP) public _FinalStage createdAt(Optional createdAt) { @@ -570,6 +636,9 @@ public _FinalStage remoteId(String remoteId) { return this; } + /** + *

      The third-party API ID of the matching object.

      + */ @java.lang.Override @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public _FinalStage remoteId(Optional remoteId) { diff --git a/src/main/java/com/merge/api/accounting/types/EmployeeStatus.java b/src/main/java/com/merge/api/accounting/types/EmployeeStatus.java new file mode 100644 index 000000000..f8f5101a3 --- /dev/null +++ b/src/main/java/com/merge/api/accounting/types/EmployeeStatus.java @@ -0,0 +1,95 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.merge.api.accounting.types; + +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.databind.DeserializationContext; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.fasterxml.jackson.databind.deser.std.StdDeserializer; +import com.merge.api.core.ObjectMappers; +import java.io.IOException; +import java.util.Objects; + +@JsonDeserialize(using = EmployeeStatus.Deserializer.class) +public final class EmployeeStatus { + private final Object value; + + private final int type; + + private EmployeeStatus(Object value, int type) { + this.value = value; + this.type = type; + } + + @JsonValue + public Object get() { + return this.value; + } + + @SuppressWarnings("unchecked") + public T visit(Visitor visitor) { + if (this.type == 0) { + return visitor.visit((Status895Enum) this.value); + } else if (this.type == 1) { + return visitor.visit((String) this.value); + } + throw new IllegalStateException("Failed to visit value. This should never happen."); + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EmployeeStatus && equalTo((EmployeeStatus) other); + } + + private boolean equalTo(EmployeeStatus other) { + return value.equals(other.value); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.value); + } + + @java.lang.Override + public String toString() { + return this.value.toString(); + } + + public static EmployeeStatus of(Status895Enum value) { + return new EmployeeStatus(value, 0); + } + + public static EmployeeStatus of(String value) { + return new EmployeeStatus(value, 1); + } + + public interface Visitor { + T visit(Status895Enum value); + + T visit(String value); + } + + static final class Deserializer extends StdDeserializer { + Deserializer() { + super(EmployeeStatus.class); + } + + @java.lang.Override + public EmployeeStatus deserialize(JsonParser p, DeserializationContext context) throws IOException { + Object value = p.readValueAs(Object.class); + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, Status895Enum.class)); + } catch (IllegalArgumentException e) { + } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, String.class)); + } catch (IllegalArgumentException e) { + } + throw new JsonParseException(p, "Failed to deserialize"); + } + } +} diff --git a/src/main/java/com/merge/api/accounting/types/EmployeesListRequest.java b/src/main/java/com/merge/api/accounting/types/EmployeesListRequest.java index fdad31887..f8a8d7165 100644 --- a/src/main/java/com/merge/api/accounting/types/EmployeesListRequest.java +++ b/src/main/java/com/merge/api/accounting/types/EmployeesListRequest.java @@ -170,6 +170,9 @@ public Builder from(EmployeesListRequest other) { return this; } + /** + *

      Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.

      + */ @JsonSetter(value = "expand", nulls = Nulls.SKIP) public Builder expand(Optional> expand) { this.expand = expand; @@ -186,6 +189,9 @@ public Builder expand(String expand) { return this; } + /** + *

      The pagination cursor value.

      + */ @JsonSetter(value = "cursor", nulls = Nulls.SKIP) public Builder cursor(Optional cursor) { this.cursor = cursor; @@ -197,6 +203,9 @@ public Builder cursor(String cursor) { return this; } + /** + *

      Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

      + */ @JsonSetter(value = "include_deleted_data", nulls = Nulls.SKIP) public Builder includeDeletedData(Optional includeDeletedData) { this.includeDeletedData = includeDeletedData; @@ -208,6 +217,9 @@ public Builder includeDeletedData(Boolean includeDeletedData) { return this; } + /** + *

      Whether to include the original data Merge fetched from the third-party to produce these models.

      + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -219,6 +231,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

      Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

      + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; @@ -230,6 +245,9 @@ public Builder includeShellData(Boolean includeShellData) { return this; } + /** + *

      Number of results to return per page.

      + */ @JsonSetter(value = "page_size", nulls = Nulls.SKIP) public Builder pageSize(Optional pageSize) { this.pageSize = pageSize; diff --git a/src/main/java/com/merge/api/accounting/types/EmployeesRetrieveRequest.java b/src/main/java/com/merge/api/accounting/types/EmployeesRetrieveRequest.java index ac3f394e8..cce06cf03 100644 --- a/src/main/java/com/merge/api/accounting/types/EmployeesRetrieveRequest.java +++ b/src/main/java/com/merge/api/accounting/types/EmployeesRetrieveRequest.java @@ -116,6 +116,9 @@ public Builder from(EmployeesRetrieveRequest other) { return this; } + /** + *

      Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.

      + */ @JsonSetter(value = "expand", nulls = Nulls.SKIP) public Builder expand(Optional> expand) { this.expand = expand; @@ -132,6 +135,9 @@ public Builder expand(String expand) { return this; } + /** + *

      Whether to include the original data Merge fetched from the third-party to produce these models.

      + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -143,6 +149,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

      Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

      + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; diff --git a/src/main/java/com/merge/api/accounting/types/EndUserDetailsRequest.java b/src/main/java/com/merge/api/accounting/types/EndUserDetailsRequest.java index 5d47f45a5..eca586be6 100644 --- a/src/main/java/com/merge/api/accounting/types/EndUserDetailsRequest.java +++ b/src/main/java/com/merge/api/accounting/types/EndUserDetailsRequest.java @@ -249,48 +249,78 @@ public static EndUserEmailAddressStage builder() { } public interface EndUserEmailAddressStage { + /** + * Your end user's email address. This is purely for identification purposes - setting this value will not cause any emails to be sent. + */ EndUserOrganizationNameStage endUserEmailAddress(@NotNull String endUserEmailAddress); Builder from(EndUserDetailsRequest other); } public interface EndUserOrganizationNameStage { + /** + * Your end user's organization. + */ EndUserOriginIdStage endUserOrganizationName(@NotNull String endUserOrganizationName); } public interface EndUserOriginIdStage { + /** + * This unique identifier typically represents the ID for your end user in your product's database. This value must be distinct from other Linked Accounts' unique identifiers. + */ _FinalStage endUserOriginId(@NotNull String endUserOriginId); } public interface _FinalStage { EndUserDetailsRequest build(); + /** + *

      The integration categories to show in Merge Link.

      + */ _FinalStage categories(List categories); _FinalStage addCategories(CategoriesEnum categories); _FinalStage addAllCategories(List categories); + /** + *

      The slug of a specific pre-selected integration for this linking flow token. For examples of slugs, see https://docs.merge.dev/guides/merge-link/single-integration/.

      + */ _FinalStage integration(Optional integration); _FinalStage integration(String integration); + /** + *

      An integer number of minutes between [30, 720 or 10080 if for a Magic Link URL] for how long this token is valid. Defaults to 30.

      + */ _FinalStage linkExpiryMins(Optional linkExpiryMins); _FinalStage linkExpiryMins(Integer linkExpiryMins); + /** + *

      Whether to generate a Magic Link URL. Defaults to false. For more information on Magic Link, see https://merge.dev/blog/integrations-fast-say-hello-to-magic-link.

      + */ _FinalStage shouldCreateMagicLinkUrl(Optional shouldCreateMagicLinkUrl); _FinalStage shouldCreateMagicLinkUrl(Boolean shouldCreateMagicLinkUrl); + /** + *

      Whether to generate a Magic Link URL on the Admin Needed screen during the linking flow. Defaults to false. For more information on Magic Link, see https://merge.dev/blog/integrations-fast-say-hello-to-magic-link.

      + */ _FinalStage hideAdminMagicLink(Optional hideAdminMagicLink); _FinalStage hideAdminMagicLink(Boolean hideAdminMagicLink); + /** + *

      An array of objects to specify the models and fields that will be disabled for a given Linked Account. Each object uses model_id, enabled_actions, and disabled_fields to specify the model, method, and fields that are scoped for a given Linked Account.

      + */ _FinalStage commonModels(Optional> commonModels); _FinalStage commonModels(List commonModels); + /** + *

      When creating a Link Token, you can set permissions for Common Models that will apply to the account that is going to be linked. Any model or field not specified in link token payload will default to existing settings.

      + */ _FinalStage categoryCommonModelScopes( Optional>>> categoryCommonModelScopes); @@ -298,14 +328,27 @@ _FinalStage categoryCommonModelScopes( _FinalStage categoryCommonModelScopes( Map>> categoryCommonModelScopes); + /** + *

      The following subset of IETF language tags can be used to configure localization.

      + *
        + *
      • en - en
      • + *
      • de - de
      • + *
      + */ _FinalStage language(Optional language); _FinalStage language(LanguageEnum language); + /** + *

      The boolean that indicates whether initial, periodic, and force syncs will be disabled.

      + */ _FinalStage areSyncsDisabled(Optional areSyncsDisabled); _FinalStage areSyncsDisabled(Boolean areSyncsDisabled); + /** + *

      A JSON object containing integration-specific configuration options.

      + */ _FinalStage integrationSpecificConfig(Optional> integrationSpecificConfig); _FinalStage integrationSpecificConfig(Map integrationSpecificConfig); @@ -365,7 +408,7 @@ public Builder from(EndUserDetailsRequest other) { } /** - *

      Your end user's email address. This is purely for identification purposes - setting this value will not cause any emails to be sent.

      + * Your end user's email address. This is purely for identification purposes - setting this value will not cause any emails to be sent.

      Your end user's email address. This is purely for identification purposes - setting this value will not cause any emails to be sent.

      * @return Reference to {@code this} so that method calls can be chained together. */ @java.lang.Override @@ -376,7 +419,7 @@ public EndUserOrganizationNameStage endUserEmailAddress(@NotNull String endUserE } /** - *

      Your end user's organization.

      + * Your end user's organization.

      Your end user's organization.

      * @return Reference to {@code this} so that method calls can be chained together. */ @java.lang.Override @@ -387,7 +430,7 @@ public EndUserOriginIdStage endUserOrganizationName(@NotNull String endUserOrgan } /** - *

      This unique identifier typically represents the ID for your end user in your product's database. This value must be distinct from other Linked Accounts' unique identifiers.

      + * This unique identifier typically represents the ID for your end user in your product's database. This value must be distinct from other Linked Accounts' unique identifiers.

      This unique identifier typically represents the ID for your end user in your product's database. This value must be distinct from other Linked Accounts' unique identifiers.

      * @return Reference to {@code this} so that method calls can be chained together. */ @java.lang.Override @@ -407,6 +450,9 @@ public _FinalStage integrationSpecificConfig(Map integrationSp return this; } + /** + *

      A JSON object containing integration-specific configuration options.

      + */ @java.lang.Override @JsonSetter(value = "integration_specific_config", nulls = Nulls.SKIP) public _FinalStage integrationSpecificConfig(Optional> integrationSpecificConfig) { @@ -424,6 +470,9 @@ public _FinalStage areSyncsDisabled(Boolean areSyncsDisabled) { return this; } + /** + *

      The boolean that indicates whether initial, periodic, and force syncs will be disabled.

      + */ @java.lang.Override @JsonSetter(value = "are_syncs_disabled", nulls = Nulls.SKIP) public _FinalStage areSyncsDisabled(Optional areSyncsDisabled) { @@ -445,6 +494,13 @@ public _FinalStage language(LanguageEnum language) { return this; } + /** + *

      The following subset of IETF language tags can be used to configure localization.

      + *
        + *
      • en - en
      • + *
      • de - de
      • + *
      + */ @java.lang.Override @JsonSetter(value = "language", nulls = Nulls.SKIP) public _FinalStage language(Optional language) { @@ -463,6 +519,9 @@ public _FinalStage categoryCommonModelScopes( return this; } + /** + *

      When creating a Link Token, you can set permissions for Common Models that will apply to the account that is going to be linked. Any model or field not specified in link token payload will default to existing settings.

      + */ @java.lang.Override @JsonSetter(value = "category_common_model_scopes", nulls = Nulls.SKIP) public _FinalStage categoryCommonModelScopes( @@ -482,6 +541,9 @@ public _FinalStage commonModels(List commonModels) return this; } + /** + *

      An array of objects to specify the models and fields that will be disabled for a given Linked Account. Each object uses model_id, enabled_actions, and disabled_fields to specify the model, method, and fields that are scoped for a given Linked Account.

      + */ @java.lang.Override @JsonSetter(value = "common_models", nulls = Nulls.SKIP) public _FinalStage commonModels(Optional> commonModels) { @@ -499,6 +561,9 @@ public _FinalStage hideAdminMagicLink(Boolean hideAdminMagicLink) { return this; } + /** + *

      Whether to generate a Magic Link URL on the Admin Needed screen during the linking flow. Defaults to false. For more information on Magic Link, see https://merge.dev/blog/integrations-fast-say-hello-to-magic-link.

      + */ @java.lang.Override @JsonSetter(value = "hide_admin_magic_link", nulls = Nulls.SKIP) public _FinalStage hideAdminMagicLink(Optional hideAdminMagicLink) { @@ -516,6 +581,9 @@ public _FinalStage shouldCreateMagicLinkUrl(Boolean shouldCreateMagicLinkUrl) { return this; } + /** + *

      Whether to generate a Magic Link URL. Defaults to false. For more information on Magic Link, see https://merge.dev/blog/integrations-fast-say-hello-to-magic-link.

      + */ @java.lang.Override @JsonSetter(value = "should_create_magic_link_url", nulls = Nulls.SKIP) public _FinalStage shouldCreateMagicLinkUrl(Optional shouldCreateMagicLinkUrl) { @@ -533,6 +601,9 @@ public _FinalStage linkExpiryMins(Integer linkExpiryMins) { return this; } + /** + *

      An integer number of minutes between [30, 720 or 10080 if for a Magic Link URL] for how long this token is valid. Defaults to 30.

      + */ @java.lang.Override @JsonSetter(value = "link_expiry_mins", nulls = Nulls.SKIP) public _FinalStage linkExpiryMins(Optional linkExpiryMins) { @@ -550,6 +621,9 @@ public _FinalStage integration(String integration) { return this; } + /** + *

      The slug of a specific pre-selected integration for this linking flow token. For examples of slugs, see https://docs.merge.dev/guides/merge-link/single-integration/.

      + */ @java.lang.Override @JsonSetter(value = "integration", nulls = Nulls.SKIP) public _FinalStage integration(Optional integration) { @@ -577,6 +651,9 @@ public _FinalStage addCategories(CategoriesEnum categories) { return this; } + /** + *

      The integration categories to show in Merge Link.

      + */ @java.lang.Override @JsonSetter(value = "categories", nulls = Nulls.SKIP) public _FinalStage categories(List categories) { diff --git a/src/main/java/com/merge/api/accounting/types/EventTypeEnum.java b/src/main/java/com/merge/api/accounting/types/EventTypeEnum.java index 3d5291644..7a3a81899 100644 --- a/src/main/java/com/merge/api/accounting/types/EventTypeEnum.java +++ b/src/main/java/com/merge/api/accounting/types/EventTypeEnum.java @@ -16,6 +16,8 @@ public enum EventTypeEnum { REGENERATED_PRODUCTION_API_KEY("REGENERATED_PRODUCTION_API_KEY"), + REGENERATED_WEBHOOK_SIGNATURE("REGENERATED_WEBHOOK_SIGNATURE"), + INVITED_USER("INVITED_USER"), TWO_FACTOR_AUTH_ENABLED("TWO_FACTOR_AUTH_ENABLED"), diff --git a/src/main/java/com/merge/api/accounting/types/Expense.java b/src/main/java/com/merge/api/accounting/types/Expense.java index 16b9ba32e..3c386a556 100644 --- a/src/main/java/com/merge/api/accounting/types/Expense.java +++ b/src/main/java/com/merge/api/accounting/types/Expense.java @@ -45,7 +45,7 @@ public final class Expense { private final Optional totalTaxAmount; - private final Optional currency; + private final Optional currency; private final Optional exchangeRate; @@ -85,7 +85,7 @@ private Expense( Optional totalAmount, Optional subTotal, Optional totalTaxAmount, - Optional currency, + Optional currency, Optional exchangeRate, Optional inclusiveOfTax, Optional company, @@ -523,7 +523,7 @@ public Optional getTotalTaxAmount() { *
    */ @JsonProperty("currency") - public Optional getCurrency() { + public Optional getCurrency() { return currency; } @@ -708,7 +708,7 @@ public static final class Builder { private Optional totalTaxAmount = Optional.empty(); - private Optional currency = Optional.empty(); + private Optional currency = Optional.empty(); private Optional exchangeRate = Optional.empty(); @@ -778,6 +778,9 @@ public Builder id(String id) { return this; } + /** + *

    The third-party API ID of the matching object.

    + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; @@ -789,6 +792,9 @@ public Builder remoteId(String remoteId) { return this; } + /** + *

    The datetime that this object was created by Merge.

    + */ @JsonSetter(value = "created_at", nulls = Nulls.SKIP) public Builder createdAt(Optional createdAt) { this.createdAt = createdAt; @@ -800,6 +806,9 @@ public Builder createdAt(OffsetDateTime createdAt) { return this; } + /** + *

    The datetime that this object was modified by Merge.

    + */ @JsonSetter(value = "modified_at", nulls = Nulls.SKIP) public Builder modifiedAt(Optional modifiedAt) { this.modifiedAt = modifiedAt; @@ -811,6 +820,9 @@ public Builder modifiedAt(OffsetDateTime modifiedAt) { return this; } + /** + *

    When the transaction occurred.

    + */ @JsonSetter(value = "transaction_date", nulls = Nulls.SKIP) public Builder transactionDate(Optional transactionDate) { this.transactionDate = transactionDate; @@ -822,6 +834,9 @@ public Builder transactionDate(OffsetDateTime transactionDate) { return this; } + /** + *

    When the expense was created.

    + */ @JsonSetter(value = "remote_created_at", nulls = Nulls.SKIP) public Builder remoteCreatedAt(Optional remoteCreatedAt) { this.remoteCreatedAt = remoteCreatedAt; @@ -833,6 +848,9 @@ public Builder remoteCreatedAt(OffsetDateTime remoteCreatedAt) { return this; } + /** + *

    The expense's payment account.

    + */ @JsonSetter(value = "account", nulls = Nulls.SKIP) public Builder account(Optional account) { this.account = account; @@ -844,6 +862,9 @@ public Builder account(ExpenseAccount account) { return this; } + /** + *

    The expense's contact.

    + */ @JsonSetter(value = "contact", nulls = Nulls.SKIP) public Builder contact(Optional contact) { this.contact = contact; @@ -855,6 +876,9 @@ public Builder contact(ExpenseContact contact) { return this; } + /** + *

    The expense's total amount.

    + */ @JsonSetter(value = "total_amount", nulls = Nulls.SKIP) public Builder totalAmount(Optional totalAmount) { this.totalAmount = totalAmount; @@ -866,6 +890,9 @@ public Builder totalAmount(Double totalAmount) { return this; } + /** + *

    The expense's total amount before tax.

    + */ @JsonSetter(value = "sub_total", nulls = Nulls.SKIP) public Builder subTotal(Optional subTotal) { this.subTotal = subTotal; @@ -877,6 +904,9 @@ public Builder subTotal(Double subTotal) { return this; } + /** + *

    The expense's total tax amount.

    + */ @JsonSetter(value = "total_tax_amount", nulls = Nulls.SKIP) public Builder totalTaxAmount(Optional totalTaxAmount) { this.totalTaxAmount = totalTaxAmount; @@ -888,17 +918,331 @@ public Builder totalTaxAmount(Double totalTaxAmount) { return this; } + /** + *

    The expense's currency.

    + *
      + *
    • XUA - ADB Unit of Account
    • + *
    • AFN - Afghan Afghani
    • + *
    • AFA - Afghan Afghani (1927–2002)
    • + *
    • ALL - Albanian Lek
    • + *
    • ALK - Albanian Lek (1946–1965)
    • + *
    • DZD - Algerian Dinar
    • + *
    • ADP - Andorran Peseta
    • + *
    • AOA - Angolan Kwanza
    • + *
    • AOK - Angolan Kwanza (1977–1991)
    • + *
    • AON - Angolan New Kwanza (1990–2000)
    • + *
    • AOR - Angolan Readjusted Kwanza (1995–1999)
    • + *
    • ARA - Argentine Austral
    • + *
    • ARS - Argentine Peso
    • + *
    • ARM - Argentine Peso (1881–1970)
    • + *
    • ARP - Argentine Peso (1983–1985)
    • + *
    • ARL - Argentine Peso Ley (1970–1983)
    • + *
    • AMD - Armenian Dram
    • + *
    • AWG - Aruban Florin
    • + *
    • AUD - Australian Dollar
    • + *
    • ATS - Austrian Schilling
    • + *
    • AZN - Azerbaijani Manat
    • + *
    • AZM - Azerbaijani Manat (1993–2006)
    • + *
    • BSD - Bahamian Dollar
    • + *
    • BHD - Bahraini Dinar
    • + *
    • BDT - Bangladeshi Taka
    • + *
    • BBD - Barbadian Dollar
    • + *
    • BYN - Belarusian Ruble
    • + *
    • BYB - Belarusian Ruble (1994–1999)
    • + *
    • BYR - Belarusian Ruble (2000–2016)
    • + *
    • BEF - Belgian Franc
    • + *
    • BEC - Belgian Franc (convertible)
    • + *
    • BEL - Belgian Franc (financial)
    • + *
    • BZD - Belize Dollar
    • + *
    • BMD - Bermudan Dollar
    • + *
    • BTN - Bhutanese Ngultrum
    • + *
    • BOB - Bolivian Boliviano
    • + *
    • BOL - Bolivian Boliviano (1863–1963)
    • + *
    • BOV - Bolivian Mvdol
    • + *
    • BOP - Bolivian Peso
    • + *
    • BAM - Bosnia-Herzegovina Convertible Mark
    • + *
    • BAD - Bosnia-Herzegovina Dinar (1992–1994)
    • + *
    • BAN - Bosnia-Herzegovina New Dinar (1994–1997)
    • + *
    • BWP - Botswanan Pula
    • + *
    • BRC - Brazilian Cruzado (1986–1989)
    • + *
    • BRZ - Brazilian Cruzeiro (1942–1967)
    • + *
    • BRE - Brazilian Cruzeiro (1990–1993)
    • + *
    • BRR - Brazilian Cruzeiro (1993–1994)
    • + *
    • BRN - Brazilian New Cruzado (1989–1990)
    • + *
    • BRB - Brazilian New Cruzeiro (1967–1986)
    • + *
    • BRL - Brazilian Real
    • + *
    • GBP - British Pound
    • + *
    • BND - Brunei Dollar
    • + *
    • BGL - Bulgarian Hard Lev
    • + *
    • BGN - Bulgarian Lev
    • + *
    • BGO - Bulgarian Lev (1879–1952)
    • + *
    • BGM - Bulgarian Socialist Lev
    • + *
    • BUK - Burmese Kyat
    • + *
    • BIF - Burundian Franc
    • + *
    • XPF - CFP Franc
    • + *
    • KHR - Cambodian Riel
    • + *
    • CAD - Canadian Dollar
    • + *
    • CVE - Cape Verdean Escudo
    • + *
    • KYD - Cayman Islands Dollar
    • + *
    • XAF - Central African CFA Franc
    • + *
    • CLE - Chilean Escudo
    • + *
    • CLP - Chilean Peso
    • + *
    • CLF - Chilean Unit of Account (UF)
    • + *
    • CNX - Chinese People’s Bank Dollar
    • + *
    • CNY - Chinese Yuan
    • + *
    • CNH - Chinese Yuan (offshore)
    • + *
    • COP - Colombian Peso
    • + *
    • COU - Colombian Real Value Unit
    • + *
    • KMF - Comorian Franc
    • + *
    • CDF - Congolese Franc
    • + *
    • CRC - Costa Rican Colón
    • + *
    • HRD - Croatian Dinar
    • + *
    • HRK - Croatian Kuna
    • + *
    • CUC - Cuban Convertible Peso
    • + *
    • CUP - Cuban Peso
    • + *
    • CYP - Cypriot Pound
    • + *
    • CZK - Czech Koruna
    • + *
    • CSK - Czechoslovak Hard Koruna
    • + *
    • DKK - Danish Krone
    • + *
    • DJF - Djiboutian Franc
    • + *
    • DOP - Dominican Peso
    • + *
    • NLG - Dutch Guilder
    • + *
    • XCD - East Caribbean Dollar
    • + *
    • DDM - East German Mark
    • + *
    • ECS - Ecuadorian Sucre
    • + *
    • ECV - Ecuadorian Unit of Constant Value
    • + *
    • EGP - Egyptian Pound
    • + *
    • GQE - Equatorial Guinean Ekwele
    • + *
    • ERN - Eritrean Nakfa
    • + *
    • EEK - Estonian Kroon
    • + *
    • ETB - Ethiopian Birr
    • + *
    • EUR - Euro
    • + *
    • XBA - European Composite Unit
    • + *
    • XEU - European Currency Unit
    • + *
    • XBB - European Monetary Unit
    • + *
    • XBC - European Unit of Account (XBC)
    • + *
    • XBD - European Unit of Account (XBD)
    • + *
    • FKP - Falkland Islands Pound
    • + *
    • FJD - Fijian Dollar
    • + *
    • FIM - Finnish Markka
    • + *
    • FRF - French Franc
    • + *
    • XFO - French Gold Franc
    • + *
    • XFU - French UIC-Franc
    • + *
    • GMD - Gambian Dalasi
    • + *
    • GEK - Georgian Kupon Larit
    • + *
    • GEL - Georgian Lari
    • + *
    • DEM - German Mark
    • + *
    • GHS - Ghanaian Cedi
    • + *
    • GHC - Ghanaian Cedi (1979–2007)
    • + *
    • GIP - Gibraltar Pound
    • + *
    • XAU - Gold
    • + *
    • GRD - Greek Drachma
    • + *
    • GTQ - Guatemalan Quetzal
    • + *
    • GWP - Guinea-Bissau Peso
    • + *
    • GNF - Guinean Franc
    • + *
    • GNS - Guinean Syli
    • + *
    • GYD - Guyanaese Dollar
    • + *
    • HTG - Haitian Gourde
    • + *
    • HNL - Honduran Lempira
    • + *
    • HKD - Hong Kong Dollar
    • + *
    • HUF - Hungarian Forint
    • + *
    • IMP - IMP
    • + *
    • ISK - Icelandic Króna
    • + *
    • ISJ - Icelandic Króna (1918–1981)
    • + *
    • INR - Indian Rupee
    • + *
    • IDR - Indonesian Rupiah
    • + *
    • IRR - Iranian Rial
    • + *
    • IQD - Iraqi Dinar
    • + *
    • IEP - Irish Pound
    • + *
    • ILS - Israeli New Shekel
    • + *
    • ILP - Israeli Pound
    • + *
    • ILR - Israeli Shekel (1980–1985)
    • + *
    • ITL - Italian Lira
    • + *
    • JMD - Jamaican Dollar
    • + *
    • JPY - Japanese Yen
    • + *
    • JOD - Jordanian Dinar
    • + *
    • KZT - Kazakhstani Tenge
    • + *
    • KES - Kenyan Shilling
    • + *
    • KWD - Kuwaiti Dinar
    • + *
    • KGS - Kyrgystani Som
    • + *
    • LAK - Laotian Kip
    • + *
    • LVL - Latvian Lats
    • + *
    • LVR - Latvian Ruble
    • + *
    • LBP - Lebanese Pound
    • + *
    • LSL - Lesotho Loti
    • + *
    • LRD - Liberian Dollar
    • + *
    • LYD - Libyan Dinar
    • + *
    • LTL - Lithuanian Litas
    • + *
    • LTT - Lithuanian Talonas
    • + *
    • LUL - Luxembourg Financial Franc
    • + *
    • LUC - Luxembourgian Convertible Franc
    • + *
    • LUF - Luxembourgian Franc
    • + *
    • MOP - Macanese Pataca
    • + *
    • MKD - Macedonian Denar
    • + *
    • MKN - Macedonian Denar (1992–1993)
    • + *
    • MGA - Malagasy Ariary
    • + *
    • MGF - Malagasy Franc
    • + *
    • MWK - Malawian Kwacha
    • + *
    • MYR - Malaysian Ringgit
    • + *
    • MVR - Maldivian Rufiyaa
    • + *
    • MVP - Maldivian Rupee (1947–1981)
    • + *
    • MLF - Malian Franc
    • + *
    • MTL - Maltese Lira
    • + *
    • MTP - Maltese Pound
    • + *
    • MRU - Mauritanian Ouguiya
    • + *
    • MRO - Mauritanian Ouguiya (1973–2017)
    • + *
    • MUR - Mauritian Rupee
    • + *
    • MXV - Mexican Investment Unit
    • + *
    • MXN - Mexican Peso
    • + *
    • MXP - Mexican Silver Peso (1861–1992)
    • + *
    • MDC - Moldovan Cupon
    • + *
    • MDL - Moldovan Leu
    • + *
    • MCF - Monegasque Franc
    • + *
    • MNT - Mongolian Tugrik
    • + *
    • MAD - Moroccan Dirham
    • + *
    • MAF - Moroccan Franc
    • + *
    • MZE - Mozambican Escudo
    • + *
    • MZN - Mozambican Metical
    • + *
    • MZM - Mozambican Metical (1980–2006)
    • + *
    • MMK - Myanmar Kyat
    • + *
    • NAD - Namibian Dollar
    • + *
    • NPR - Nepalese Rupee
    • + *
    • ANG - Netherlands Antillean Guilder
    • + *
    • TWD - New Taiwan Dollar
    • + *
    • NZD - New Zealand Dollar
    • + *
    • NIO - Nicaraguan Córdoba
    • + *
    • NIC - Nicaraguan Córdoba (1988–1991)
    • + *
    • NGN - Nigerian Naira
    • + *
    • KPW - North Korean Won
    • + *
    • NOK - Norwegian Krone
    • + *
    • OMR - Omani Rial
    • + *
    • PKR - Pakistani Rupee
    • + *
    • XPD - Palladium
    • + *
    • PAB - Panamanian Balboa
    • + *
    • PGK - Papua New Guinean Kina
    • + *
    • PYG - Paraguayan Guarani
    • + *
    • PEI - Peruvian Inti
    • + *
    • PEN - Peruvian Sol
    • + *
    • PES - Peruvian Sol (1863–1965)
    • + *
    • PHP - Philippine Peso
    • + *
    • XPT - Platinum
    • + *
    • PLN - Polish Zloty
    • + *
    • PLZ - Polish Zloty (1950–1995)
    • + *
    • PTE - Portuguese Escudo
    • + *
    • GWE - Portuguese Guinea Escudo
    • + *
    • QAR - Qatari Rial
    • + *
    • XRE - RINET Funds
    • + *
    • RHD - Rhodesian Dollar
    • + *
    • RON - Romanian Leu
    • + *
    • ROL - Romanian Leu (1952–2006)
    • + *
    • RUB - Russian Ruble
    • + *
    • RUR - Russian Ruble (1991–1998)
    • + *
    • RWF - Rwandan Franc
    • + *
    • SVC - Salvadoran Colón
    • + *
    • WST - Samoan Tala
    • + *
    • SAR - Saudi Riyal
    • + *
    • RSD - Serbian Dinar
    • + *
    • CSD - Serbian Dinar (2002–2006)
    • + *
    • SCR - Seychellois Rupee
    • + *
    • SLL - Sierra Leonean Leone
    • + *
    • XAG - Silver
    • + *
    • SGD - Singapore Dollar
    • + *
    • SKK - Slovak Koruna
    • + *
    • SIT - Slovenian Tolar
    • + *
    • SBD - Solomon Islands Dollar
    • + *
    • SOS - Somali Shilling
    • + *
    • ZAR - South African Rand
    • + *
    • ZAL - South African Rand (financial)
    • + *
    • KRH - South Korean Hwan (1953–1962)
    • + *
    • KRW - South Korean Won
    • + *
    • KRO - South Korean Won (1945–1953)
    • + *
    • SSP - South Sudanese Pound
    • + *
    • SUR - Soviet Rouble
    • + *
    • ESP - Spanish Peseta
    • + *
    • ESA - Spanish Peseta (A account)
    • + *
    • ESB - Spanish Peseta (convertible account)
    • + *
    • XDR - Special Drawing Rights
    • + *
    • LKR - Sri Lankan Rupee
    • + *
    • SHP - St. Helena Pound
    • + *
    • XSU - Sucre
    • + *
    • SDD - Sudanese Dinar (1992–2007)
    • + *
    • SDG - Sudanese Pound
    • + *
    • SDP - Sudanese Pound (1957–1998)
    • + *
    • SRD - Surinamese Dollar
    • + *
    • SRG - Surinamese Guilder
    • + *
    • SZL - Swazi Lilangeni
    • + *
    • SEK - Swedish Krona
    • + *
    • CHF - Swiss Franc
    • + *
    • SYP - Syrian Pound
    • + *
    • STN - São Tomé & Príncipe Dobra
    • + *
    • STD - São Tomé & Príncipe Dobra (1977–2017)
    • + *
    • TVD - TVD
    • + *
    • TJR - Tajikistani Ruble
    • + *
    • TJS - Tajikistani Somoni
    • + *
    • TZS - Tanzanian Shilling
    • + *
    • XTS - Testing Currency Code
    • + *
    • THB - Thai Baht
    • + *
    • XXX - The codes assigned for transactions where no currency is involved
    • + *
    • TPE - Timorese Escudo
    • + *
    • TOP - Tongan Paʻanga
    • + *
    • TTD - Trinidad & Tobago Dollar
    • + *
    • TND - Tunisian Dinar
    • + *
    • TRY - Turkish Lira
    • + *
    • TRL - Turkish Lira (1922–2005)
    • + *
    • TMT - Turkmenistani Manat
    • + *
    • TMM - Turkmenistani Manat (1993–2009)
    • + *
    • USD - US Dollar
    • + *
    • USN - US Dollar (Next day)
    • + *
    • USS - US Dollar (Same day)
    • + *
    • UGX - Ugandan Shilling
    • + *
    • UGS - Ugandan Shilling (1966–1987)
    • + *
    • UAH - Ukrainian Hryvnia
    • + *
    • UAK - Ukrainian Karbovanets
    • + *
    • AED - United Arab Emirates Dirham
    • + *
    • UYW - Uruguayan Nominal Wage Index Unit
    • + *
    • UYU - Uruguayan Peso
    • + *
    • UYP - Uruguayan Peso (1975–1993)
    • + *
    • UYI - Uruguayan Peso (Indexed Units)
    • + *
    • UZS - Uzbekistani Som
    • + *
    • VUV - Vanuatu Vatu
    • + *
    • VES - Venezuelan Bolívar
    • + *
    • VEB - Venezuelan Bolívar (1871–2008)
    • + *
    • VEF - Venezuelan Bolívar (2008–2018)
    • + *
    • VND - Vietnamese Dong
    • + *
    • VNN - Vietnamese Dong (1978–1985)
    • + *
    • CHE - WIR Euro
    • + *
    • CHW - WIR Franc
    • + *
    • XOF - West African CFA Franc
    • + *
    • YDD - Yemeni Dinar
    • + *
    • YER - Yemeni Rial
    • + *
    • YUN - Yugoslavian Convertible Dinar (1990–1992)
    • + *
    • YUD - Yugoslavian Hard Dinar (1966–1990)
    • + *
    • YUM - Yugoslavian New Dinar (1994–2002)
    • + *
    • YUR - Yugoslavian Reformed Dinar (1992–1993)
    • + *
    • ZWN - ZWN
    • + *
    • ZRN - Zairean New Zaire (1993–1998)
    • + *
    • ZRZ - Zairean Zaire (1971–1993)
    • + *
    • ZMW - Zambian Kwacha
    • + *
    • ZMK - Zambian Kwacha (1968–2012)
    • + *
    • ZWD - Zimbabwean Dollar (1980–2008)
    • + *
    • ZWR - Zimbabwean Dollar (2008)
    • + *
    • ZWL - Zimbabwean Dollar (2009)
    • + *
    + */ @JsonSetter(value = "currency", nulls = Nulls.SKIP) - public Builder currency(Optional currency) { + public Builder currency(Optional currency) { this.currency = currency; return this; } - public Builder currency(TransactionCurrencyEnum currency) { + public Builder currency(ExpenseCurrency currency) { this.currency = Optional.ofNullable(currency); return this; } + /** + *

    The expense's exchange rate.

    + */ @JsonSetter(value = "exchange_rate", nulls = Nulls.SKIP) public Builder exchangeRate(Optional exchangeRate) { this.exchangeRate = exchangeRate; @@ -910,6 +1254,9 @@ public Builder exchangeRate(String exchangeRate) { return this; } + /** + *

    If the transaction is inclusive or exclusive of tax. True if inclusive, False if exclusive.

    + */ @JsonSetter(value = "inclusive_of_tax", nulls = Nulls.SKIP) public Builder inclusiveOfTax(Optional inclusiveOfTax) { this.inclusiveOfTax = inclusiveOfTax; @@ -921,6 +1268,9 @@ public Builder inclusiveOfTax(Boolean inclusiveOfTax) { return this; } + /** + *

    The company the expense belongs to.

    + */ @JsonSetter(value = "company", nulls = Nulls.SKIP) public Builder company(Optional company) { this.company = company; @@ -932,6 +1282,9 @@ public Builder company(ExpenseCompany company) { return this; } + /** + *

    The employee this overall transaction relates to.

    + */ @JsonSetter(value = "employee", nulls = Nulls.SKIP) public Builder employee(Optional employee) { this.employee = employee; @@ -943,6 +1296,9 @@ public Builder employee(ExpenseEmployee employee) { return this; } + /** + *

    The expense's private note.

    + */ @JsonSetter(value = "memo", nulls = Nulls.SKIP) public Builder memo(Optional memo) { this.memo = memo; @@ -976,6 +1332,9 @@ public Builder trackingCategories(List> return this; } + /** + *

    Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

    + */ @JsonSetter(value = "remote_was_deleted", nulls = Nulls.SKIP) public Builder remoteWasDeleted(Optional remoteWasDeleted) { this.remoteWasDeleted = remoteWasDeleted; @@ -987,6 +1346,9 @@ public Builder remoteWasDeleted(Boolean remoteWasDeleted) { return this; } + /** + *

    The accounting period that the Expense was generated in.

    + */ @JsonSetter(value = "accounting_period", nulls = Nulls.SKIP) public Builder accountingPeriod(Optional accountingPeriod) { this.accountingPeriod = accountingPeriod; diff --git a/src/main/java/com/merge/api/accounting/types/ExpenseCurrency.java b/src/main/java/com/merge/api/accounting/types/ExpenseCurrency.java new file mode 100644 index 000000000..13b6498ee --- /dev/null +++ b/src/main/java/com/merge/api/accounting/types/ExpenseCurrency.java @@ -0,0 +1,95 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.merge.api.accounting.types; + +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.databind.DeserializationContext; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.fasterxml.jackson.databind.deser.std.StdDeserializer; +import com.merge.api.core.ObjectMappers; +import java.io.IOException; +import java.util.Objects; + +@JsonDeserialize(using = ExpenseCurrency.Deserializer.class) +public final class ExpenseCurrency { + private final Object value; + + private final int type; + + private ExpenseCurrency(Object value, int type) { + this.value = value; + this.type = type; + } + + @JsonValue + public Object get() { + return this.value; + } + + @SuppressWarnings("unchecked") + public T visit(Visitor visitor) { + if (this.type == 0) { + return visitor.visit((TransactionCurrencyEnum) this.value); + } else if (this.type == 1) { + return visitor.visit((String) this.value); + } + throw new IllegalStateException("Failed to visit value. This should never happen."); + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof ExpenseCurrency && equalTo((ExpenseCurrency) other); + } + + private boolean equalTo(ExpenseCurrency other) { + return value.equals(other.value); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.value); + } + + @java.lang.Override + public String toString() { + return this.value.toString(); + } + + public static ExpenseCurrency of(TransactionCurrencyEnum value) { + return new ExpenseCurrency(value, 0); + } + + public static ExpenseCurrency of(String value) { + return new ExpenseCurrency(value, 1); + } + + public interface Visitor { + T visit(TransactionCurrencyEnum value); + + T visit(String value); + } + + static final class Deserializer extends StdDeserializer { + Deserializer() { + super(ExpenseCurrency.class); + } + + @java.lang.Override + public ExpenseCurrency deserialize(JsonParser p, DeserializationContext context) throws IOException { + Object value = p.readValueAs(Object.class); + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, TransactionCurrencyEnum.class)); + } catch (IllegalArgumentException e) { + } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, String.class)); + } catch (IllegalArgumentException e) { + } + throw new JsonParseException(p, "Failed to deserialize"); + } + } +} diff --git a/src/main/java/com/merge/api/accounting/types/ExpenseEndpointRequest.java b/src/main/java/com/merge/api/accounting/types/ExpenseEndpointRequest.java index 4b5051148..a669571af 100644 --- a/src/main/java/com/merge/api/accounting/types/ExpenseEndpointRequest.java +++ b/src/main/java/com/merge/api/accounting/types/ExpenseEndpointRequest.java @@ -99,10 +99,16 @@ public interface ModelStage { public interface _FinalStage { ExpenseEndpointRequest build(); + /** + *

    Whether to include debug fields (such as log file links) in the response.

    + */ _FinalStage isDebugMode(Optional isDebugMode); _FinalStage isDebugMode(Boolean isDebugMode); + /** + *

    Whether or not third-party updates should be run asynchronously.

    + */ _FinalStage runAsync(Optional runAsync); _FinalStage runAsync(Boolean runAsync); @@ -146,6 +152,9 @@ public _FinalStage runAsync(Boolean runAsync) { return this; } + /** + *

    Whether or not third-party updates should be run asynchronously.

    + */ @java.lang.Override @JsonSetter(value = "run_async", nulls = Nulls.SKIP) public _FinalStage runAsync(Optional runAsync) { @@ -163,6 +172,9 @@ public _FinalStage isDebugMode(Boolean isDebugMode) { return this; } + /** + *

    Whether to include debug fields (such as log file links) in the response.

    + */ @java.lang.Override @JsonSetter(value = "is_debug_mode", nulls = Nulls.SKIP) public _FinalStage isDebugMode(Optional isDebugMode) { diff --git a/src/main/java/com/merge/api/accounting/types/ExpenseLine.java b/src/main/java/com/merge/api/accounting/types/ExpenseLine.java index 08197ec9b..45d40fbd7 100644 --- a/src/main/java/com/merge/api/accounting/types/ExpenseLine.java +++ b/src/main/java/com/merge/api/accounting/types/ExpenseLine.java @@ -48,6 +48,8 @@ public final class ExpenseLine { private final Optional contact; + private final Optional project; + private final Optional description; private final Optional exchangeRate; @@ -72,6 +74,7 @@ private ExpenseLine( Optional currency, Optional account, Optional contact, + Optional project, Optional description, Optional exchangeRate, Optional taxRate, @@ -90,6 +93,7 @@ private ExpenseLine( this.currency = currency; this.account = account; this.contact = contact; + this.project = project; this.description = description; this.exchangeRate = exchangeRate; this.taxRate = taxRate; @@ -503,6 +507,11 @@ public Optional getContact() { return contact; } + @JsonProperty("project") + public Optional getProject() { + return project; + } + /** * @return The description of the item that was purchased by the company. */ @@ -560,6 +569,7 @@ private boolean equalTo(ExpenseLine other) { && currency.equals(other.currency) && account.equals(other.account) && contact.equals(other.contact) + && project.equals(other.project) && description.equals(other.description) && exchangeRate.equals(other.exchangeRate) && taxRate.equals(other.taxRate) @@ -582,6 +592,7 @@ public int hashCode() { this.currency, this.account, this.contact, + this.project, this.description, this.exchangeRate, this.taxRate, @@ -625,6 +636,8 @@ public static final class Builder { private Optional contact = Optional.empty(); + private Optional project = Optional.empty(); + private Optional description = Optional.empty(); private Optional exchangeRate = Optional.empty(); @@ -652,6 +665,7 @@ public Builder from(ExpenseLine other) { currency(other.getCurrency()); account(other.getAccount()); contact(other.getContact()); + project(other.getProject()); description(other.getDescription()); exchangeRate(other.getExchangeRate()); taxRate(other.getTaxRate()); @@ -670,6 +684,9 @@ public Builder id(String id) { return this; } + /** + *

    The third-party API ID of the matching object.

    + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; @@ -681,6 +698,9 @@ public Builder remoteId(String remoteId) { return this; } + /** + *

    The datetime that this object was created by Merge.

    + */ @JsonSetter(value = "created_at", nulls = Nulls.SKIP) public Builder createdAt(Optional createdAt) { this.createdAt = createdAt; @@ -692,6 +712,9 @@ public Builder createdAt(OffsetDateTime createdAt) { return this; } + /** + *

    The datetime that this object was modified by Merge.

    + */ @JsonSetter(value = "modified_at", nulls = Nulls.SKIP) public Builder modifiedAt(Optional modifiedAt) { this.modifiedAt = modifiedAt; @@ -703,6 +726,9 @@ public Builder modifiedAt(OffsetDateTime modifiedAt) { return this; } + /** + *

    The line's item.

    + */ @JsonSetter(value = "item", nulls = Nulls.SKIP) public Builder item(Optional item) { this.item = item; @@ -714,6 +740,9 @@ public Builder item(ExpenseLineItem item) { return this; } + /** + *

    The line's net amount.

    + */ @JsonSetter(value = "net_amount", nulls = Nulls.SKIP) public Builder netAmount(Optional netAmount) { this.netAmount = netAmount; @@ -736,6 +765,9 @@ public Builder trackingCategory(ExpenseLineTrackingCategory trackingCategory) { return this; } + /** + *

    The expense line item's associated tracking categories.

    + */ @JsonSetter(value = "tracking_categories", nulls = Nulls.SKIP) public Builder trackingCategories( Optional>> trackingCategories) { @@ -748,6 +780,9 @@ public Builder trackingCategories(ListThe company the expense belongs to.

    + */ @JsonSetter(value = "company", nulls = Nulls.SKIP) public Builder company(Optional company) { this.company = company; @@ -759,6 +794,9 @@ public Builder company(String company) { return this; } + /** + *

    The employee this overall transaction relates to.

    + */ @JsonSetter(value = "employee", nulls = Nulls.SKIP) public Builder employee(Optional employee) { this.employee = employee; @@ -770,6 +808,317 @@ public Builder employee(ExpenseLineEmployee employee) { return this; } + /** + *

    The expense line item's currency.

    + *
      + *
    • XUA - ADB Unit of Account
    • + *
    • AFN - Afghan Afghani
    • + *
    • AFA - Afghan Afghani (1927–2002)
    • + *
    • ALL - Albanian Lek
    • + *
    • ALK - Albanian Lek (1946–1965)
    • + *
    • DZD - Algerian Dinar
    • + *
    • ADP - Andorran Peseta
    • + *
    • AOA - Angolan Kwanza
    • + *
    • AOK - Angolan Kwanza (1977–1991)
    • + *
    • AON - Angolan New Kwanza (1990–2000)
    • + *
    • AOR - Angolan Readjusted Kwanza (1995–1999)
    • + *
    • ARA - Argentine Austral
    • + *
    • ARS - Argentine Peso
    • + *
    • ARM - Argentine Peso (1881–1970)
    • + *
    • ARP - Argentine Peso (1983–1985)
    • + *
    • ARL - Argentine Peso Ley (1970–1983)
    • + *
    • AMD - Armenian Dram
    • + *
    • AWG - Aruban Florin
    • + *
    • AUD - Australian Dollar
    • + *
    • ATS - Austrian Schilling
    • + *
    • AZN - Azerbaijani Manat
    • + *
    • AZM - Azerbaijani Manat (1993–2006)
    • + *
    • BSD - Bahamian Dollar
    • + *
    • BHD - Bahraini Dinar
    • + *
    • BDT - Bangladeshi Taka
    • + *
    • BBD - Barbadian Dollar
    • + *
    • BYN - Belarusian Ruble
    • + *
    • BYB - Belarusian Ruble (1994–1999)
    • + *
    • BYR - Belarusian Ruble (2000–2016)
    • + *
    • BEF - Belgian Franc
    • + *
    • BEC - Belgian Franc (convertible)
    • + *
    • BEL - Belgian Franc (financial)
    • + *
    • BZD - Belize Dollar
    • + *
    • BMD - Bermudan Dollar
    • + *
    • BTN - Bhutanese Ngultrum
    • + *
    • BOB - Bolivian Boliviano
    • + *
    • BOL - Bolivian Boliviano (1863–1963)
    • + *
    • BOV - Bolivian Mvdol
    • + *
    • BOP - Bolivian Peso
    • + *
    • BAM - Bosnia-Herzegovina Convertible Mark
    • + *
    • BAD - Bosnia-Herzegovina Dinar (1992–1994)
    • + *
    • BAN - Bosnia-Herzegovina New Dinar (1994–1997)
    • + *
    • BWP - Botswanan Pula
    • + *
    • BRC - Brazilian Cruzado (1986–1989)
    • + *
    • BRZ - Brazilian Cruzeiro (1942–1967)
    • + *
    • BRE - Brazilian Cruzeiro (1990–1993)
    • + *
    • BRR - Brazilian Cruzeiro (1993–1994)
    • + *
    • BRN - Brazilian New Cruzado (1989–1990)
    • + *
    • BRB - Brazilian New Cruzeiro (1967–1986)
    • + *
    • BRL - Brazilian Real
    • + *
    • GBP - British Pound
    • + *
    • BND - Brunei Dollar
    • + *
    • BGL - Bulgarian Hard Lev
    • + *
    • BGN - Bulgarian Lev
    • + *
    • BGO - Bulgarian Lev (1879–1952)
    • + *
    • BGM - Bulgarian Socialist Lev
    • + *
    • BUK - Burmese Kyat
    • + *
    • BIF - Burundian Franc
    • + *
    • XPF - CFP Franc
    • + *
    • KHR - Cambodian Riel
    • + *
    • CAD - Canadian Dollar
    • + *
    • CVE - Cape Verdean Escudo
    • + *
    • KYD - Cayman Islands Dollar
    • + *
    • XAF - Central African CFA Franc
    • + *
    • CLE - Chilean Escudo
    • + *
    • CLP - Chilean Peso
    • + *
    • CLF - Chilean Unit of Account (UF)
    • + *
    • CNX - Chinese People’s Bank Dollar
    • + *
    • CNY - Chinese Yuan
    • + *
    • CNH - Chinese Yuan (offshore)
    • + *
    • COP - Colombian Peso
    • + *
    • COU - Colombian Real Value Unit
    • + *
    • KMF - Comorian Franc
    • + *
    • CDF - Congolese Franc
    • + *
    • CRC - Costa Rican Colón
    • + *
    • HRD - Croatian Dinar
    • + *
    • HRK - Croatian Kuna
    • + *
    • CUC - Cuban Convertible Peso
    • + *
    • CUP - Cuban Peso
    • + *
    • CYP - Cypriot Pound
    • + *
    • CZK - Czech Koruna
    • + *
    • CSK - Czechoslovak Hard Koruna
    • + *
    • DKK - Danish Krone
    • + *
    • DJF - Djiboutian Franc
    • + *
    • DOP - Dominican Peso
    • + *
    • NLG - Dutch Guilder
    • + *
    • XCD - East Caribbean Dollar
    • + *
    • DDM - East German Mark
    • + *
    • ECS - Ecuadorian Sucre
    • + *
    • ECV - Ecuadorian Unit of Constant Value
    • + *
    • EGP - Egyptian Pound
    • + *
    • GQE - Equatorial Guinean Ekwele
    • + *
    • ERN - Eritrean Nakfa
    • + *
    • EEK - Estonian Kroon
    • + *
    • ETB - Ethiopian Birr
    • + *
    • EUR - Euro
    • + *
    • XBA - European Composite Unit
    • + *
    • XEU - European Currency Unit
    • + *
    • XBB - European Monetary Unit
    • + *
    • XBC - European Unit of Account (XBC)
    • + *
    • XBD - European Unit of Account (XBD)
    • + *
    • FKP - Falkland Islands Pound
    • + *
    • FJD - Fijian Dollar
    • + *
    • FIM - Finnish Markka
    • + *
    • FRF - French Franc
    • + *
    • XFO - French Gold Franc
    • + *
    • XFU - French UIC-Franc
    • + *
    • GMD - Gambian Dalasi
    • + *
    • GEK - Georgian Kupon Larit
    • + *
    • GEL - Georgian Lari
    • + *
    • DEM - German Mark
    • + *
    • GHS - Ghanaian Cedi
    • + *
    • GHC - Ghanaian Cedi (1979–2007)
    • + *
    • GIP - Gibraltar Pound
    • + *
    • XAU - Gold
    • + *
    • GRD - Greek Drachma
    • + *
    • GTQ - Guatemalan Quetzal
    • + *
    • GWP - Guinea-Bissau Peso
    • + *
    • GNF - Guinean Franc
    • + *
    • GNS - Guinean Syli
    • + *
    • GYD - Guyanaese Dollar
    • + *
    • HTG - Haitian Gourde
    • + *
    • HNL - Honduran Lempira
    • + *
    • HKD - Hong Kong Dollar
    • + *
    • HUF - Hungarian Forint
    • + *
    • IMP - IMP
    • + *
    • ISK - Icelandic Króna
    • + *
    • ISJ - Icelandic Króna (1918–1981)
    • + *
    • INR - Indian Rupee
    • + *
    • IDR - Indonesian Rupiah
    • + *
    • IRR - Iranian Rial
    • + *
    • IQD - Iraqi Dinar
    • + *
    • IEP - Irish Pound
    • + *
    • ILS - Israeli New Shekel
    • + *
    • ILP - Israeli Pound
    • + *
    • ILR - Israeli Shekel (1980–1985)
    • + *
    • ITL - Italian Lira
    • + *
    • JMD - Jamaican Dollar
    • + *
    • JPY - Japanese Yen
    • + *
    • JOD - Jordanian Dinar
    • + *
    • KZT - Kazakhstani Tenge
    • + *
    • KES - Kenyan Shilling
    • + *
    • KWD - Kuwaiti Dinar
    • + *
    • KGS - Kyrgystani Som
    • + *
    • LAK - Laotian Kip
    • + *
    • LVL - Latvian Lats
    • + *
    • LVR - Latvian Ruble
    • + *
    • LBP - Lebanese Pound
    • + *
    • LSL - Lesotho Loti
    • + *
    • LRD - Liberian Dollar
    • + *
    • LYD - Libyan Dinar
    • + *
    • LTL - Lithuanian Litas
    • + *
    • LTT - Lithuanian Talonas
    • + *
    • LUL - Luxembourg Financial Franc
    • + *
    • LUC - Luxembourgian Convertible Franc
    • + *
    • LUF - Luxembourgian Franc
    • + *
    • MOP - Macanese Pataca
    • + *
    • MKD - Macedonian Denar
    • + *
    • MKN - Macedonian Denar (1992–1993)
    • + *
    • MGA - Malagasy Ariary
    • + *
    • MGF - Malagasy Franc
    • + *
    • MWK - Malawian Kwacha
    • + *
    • MYR - Malaysian Ringgit
    • + *
    • MVR - Maldivian Rufiyaa
    • + *
    • MVP - Maldivian Rupee (1947–1981)
    • + *
    • MLF - Malian Franc
    • + *
    • MTL - Maltese Lira
    • + *
    • MTP - Maltese Pound
    • + *
    • MRU - Mauritanian Ouguiya
    • + *
    • MRO - Mauritanian Ouguiya (1973–2017)
    • + *
    • MUR - Mauritian Rupee
    • + *
    • MXV - Mexican Investment Unit
    • + *
    • MXN - Mexican Peso
    • + *
    • MXP - Mexican Silver Peso (1861–1992)
    • + *
    • MDC - Moldovan Cupon
    • + *
    • MDL - Moldovan Leu
    • + *
    • MCF - Monegasque Franc
    • + *
    • MNT - Mongolian Tugrik
    • + *
    • MAD - Moroccan Dirham
    • + *
    • MAF - Moroccan Franc
    • + *
    • MZE - Mozambican Escudo
    • + *
    • MZN - Mozambican Metical
    • + *
    • MZM - Mozambican Metical (1980–2006)
    • + *
    • MMK - Myanmar Kyat
    • + *
    • NAD - Namibian Dollar
    • + *
    • NPR - Nepalese Rupee
    • + *
    • ANG - Netherlands Antillean Guilder
    • + *
    • TWD - New Taiwan Dollar
    • + *
    • NZD - New Zealand Dollar
    • + *
    • NIO - Nicaraguan Córdoba
    • + *
    • NIC - Nicaraguan Córdoba (1988–1991)
    • + *
    • NGN - Nigerian Naira
    • + *
    • KPW - North Korean Won
    • + *
    • NOK - Norwegian Krone
    • + *
    • OMR - Omani Rial
    • + *
    • PKR - Pakistani Rupee
    • + *
    • XPD - Palladium
    • + *
    • PAB - Panamanian Balboa
    • + *
    • PGK - Papua New Guinean Kina
    • + *
    • PYG - Paraguayan Guarani
    • + *
    • PEI - Peruvian Inti
    • + *
    • PEN - Peruvian Sol
    • + *
    • PES - Peruvian Sol (1863–1965)
    • + *
    • PHP - Philippine Peso
    • + *
    • XPT - Platinum
    • + *
    • PLN - Polish Zloty
    • + *
    • PLZ - Polish Zloty (1950–1995)
    • + *
    • PTE - Portuguese Escudo
    • + *
    • GWE - Portuguese Guinea Escudo
    • + *
    • QAR - Qatari Rial
    • + *
    • XRE - RINET Funds
    • + *
    • RHD - Rhodesian Dollar
    • + *
    • RON - Romanian Leu
    • + *
    • ROL - Romanian Leu (1952–2006)
    • + *
    • RUB - Russian Ruble
    • + *
    • RUR - Russian Ruble (1991–1998)
    • + *
    • RWF - Rwandan Franc
    • + *
    • SVC - Salvadoran Colón
    • + *
    • WST - Samoan Tala
    • + *
    • SAR - Saudi Riyal
    • + *
    • RSD - Serbian Dinar
    • + *
    • CSD - Serbian Dinar (2002–2006)
    • + *
    • SCR - Seychellois Rupee
    • + *
    • SLL - Sierra Leonean Leone
    • + *
    • XAG - Silver
    • + *
    • SGD - Singapore Dollar
    • + *
    • SKK - Slovak Koruna
    • + *
    • SIT - Slovenian Tolar
    • + *
    • SBD - Solomon Islands Dollar
    • + *
    • SOS - Somali Shilling
    • + *
    • ZAR - South African Rand
    • + *
    • ZAL - South African Rand (financial)
    • + *
    • KRH - South Korean Hwan (1953–1962)
    • + *
    • KRW - South Korean Won
    • + *
    • KRO - South Korean Won (1945–1953)
    • + *
    • SSP - South Sudanese Pound
    • + *
    • SUR - Soviet Rouble
    • + *
    • ESP - Spanish Peseta
    • + *
    • ESA - Spanish Peseta (A account)
    • + *
    • ESB - Spanish Peseta (convertible account)
    • + *
    • XDR - Special Drawing Rights
    • + *
    • LKR - Sri Lankan Rupee
    • + *
    • SHP - St. Helena Pound
    • + *
    • XSU - Sucre
    • + *
    • SDD - Sudanese Dinar (1992–2007)
    • + *
    • SDG - Sudanese Pound
    • + *
    • SDP - Sudanese Pound (1957–1998)
    • + *
    • SRD - Surinamese Dollar
    • + *
    • SRG - Surinamese Guilder
    • + *
    • SZL - Swazi Lilangeni
    • + *
    • SEK - Swedish Krona
    • + *
    • CHF - Swiss Franc
    • + *
    • SYP - Syrian Pound
    • + *
    • STN - São Tomé & Príncipe Dobra
    • + *
    • STD - São Tomé & Príncipe Dobra (1977–2017)
    • + *
    • TVD - TVD
    • + *
    • TJR - Tajikistani Ruble
    • + *
    • TJS - Tajikistani Somoni
    • + *
    • TZS - Tanzanian Shilling
    • + *
    • XTS - Testing Currency Code
    • + *
    • THB - Thai Baht
    • + *
    • XXX - The codes assigned for transactions where no currency is involved
    • + *
    • TPE - Timorese Escudo
    • + *
    • TOP - Tongan Paʻanga
    • + *
    • TTD - Trinidad & Tobago Dollar
    • + *
    • TND - Tunisian Dinar
    • + *
    • TRY - Turkish Lira
    • + *
    • TRL - Turkish Lira (1922–2005)
    • + *
    • TMT - Turkmenistani Manat
    • + *
    • TMM - Turkmenistani Manat (1993–2009)
    • + *
    • USD - US Dollar
    • + *
    • USN - US Dollar (Next day)
    • + *
    • USS - US Dollar (Same day)
    • + *
    • UGX - Ugandan Shilling
    • + *
    • UGS - Ugandan Shilling (1966–1987)
    • + *
    • UAH - Ukrainian Hryvnia
    • + *
    • UAK - Ukrainian Karbovanets
    • + *
    • AED - United Arab Emirates Dirham
    • + *
    • UYW - Uruguayan Nominal Wage Index Unit
    • + *
    • UYU - Uruguayan Peso
    • + *
    • UYP - Uruguayan Peso (1975–1993)
    • + *
    • UYI - Uruguayan Peso (Indexed Units)
    • + *
    • UZS - Uzbekistani Som
    • + *
    • VUV - Vanuatu Vatu
    • + *
    • VES - Venezuelan Bolívar
    • + *
    • VEB - Venezuelan Bolívar (1871–2008)
    • + *
    • VEF - Venezuelan Bolívar (2008–2018)
    • + *
    • VND - Vietnamese Dong
    • + *
    • VNN - Vietnamese Dong (1978–1985)
    • + *
    • CHE - WIR Euro
    • + *
    • CHW - WIR Franc
    • + *
    • XOF - West African CFA Franc
    • + *
    • YDD - Yemeni Dinar
    • + *
    • YER - Yemeni Rial
    • + *
    • YUN - Yugoslavian Convertible Dinar (1990–1992)
    • + *
    • YUD - Yugoslavian Hard Dinar (1966–1990)
    • + *
    • YUM - Yugoslavian New Dinar (1994–2002)
    • + *
    • YUR - Yugoslavian Reformed Dinar (1992–1993)
    • + *
    • ZWN - ZWN
    • + *
    • ZRN - Zairean New Zaire (1993–1998)
    • + *
    • ZRZ - Zairean Zaire (1971–1993)
    • + *
    • ZMW - Zambian Kwacha
    • + *
    • ZMK - Zambian Kwacha (1968–2012)
    • + *
    • ZWD - Zimbabwean Dollar (1980–2008)
    • + *
    • ZWR - Zimbabwean Dollar (2008)
    • + *
    • ZWL - Zimbabwean Dollar (2009)
    • + *
    + */ @JsonSetter(value = "currency", nulls = Nulls.SKIP) public Builder currency(Optional currency) { this.currency = currency; @@ -781,6 +1130,9 @@ public Builder currency(TransactionCurrencyEnum currency) { return this; } + /** + *

    The expense's payment account.

    + */ @JsonSetter(value = "account", nulls = Nulls.SKIP) public Builder account(Optional account) { this.account = account; @@ -792,6 +1144,9 @@ public Builder account(ExpenseLineAccount account) { return this; } + /** + *

    The expense's contact.

    + */ @JsonSetter(value = "contact", nulls = Nulls.SKIP) public Builder contact(Optional contact) { this.contact = contact; @@ -803,6 +1158,20 @@ public Builder contact(ExpenseLineContact contact) { return this; } + @JsonSetter(value = "project", nulls = Nulls.SKIP) + public Builder project(Optional project) { + this.project = project; + return this; + } + + public Builder project(ExpenseLineProject project) { + this.project = Optional.ofNullable(project); + return this; + } + + /** + *

    The description of the item that was purchased by the company.

    + */ @JsonSetter(value = "description", nulls = Nulls.SKIP) public Builder description(Optional description) { this.description = description; @@ -814,6 +1183,9 @@ public Builder description(String description) { return this; } + /** + *

    The expense line item's exchange rate.

    + */ @JsonSetter(value = "exchange_rate", nulls = Nulls.SKIP) public Builder exchangeRate(Optional exchangeRate) { this.exchangeRate = exchangeRate; @@ -825,6 +1197,9 @@ public Builder exchangeRate(String exchangeRate) { return this; } + /** + *

    The tax rate that applies to this line item.

    + */ @JsonSetter(value = "tax_rate", nulls = Nulls.SKIP) public Builder taxRate(Optional taxRate) { this.taxRate = taxRate; @@ -836,6 +1211,9 @@ public Builder taxRate(String taxRate) { return this; } + /** + *

    Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

    + */ @JsonSetter(value = "remote_was_deleted", nulls = Nulls.SKIP) public Builder remoteWasDeleted(Optional remoteWasDeleted) { this.remoteWasDeleted = remoteWasDeleted; @@ -862,6 +1240,7 @@ public ExpenseLine build() { currency, account, contact, + project, description, exchangeRate, taxRate, diff --git a/src/main/java/com/merge/api/accounting/types/ExpenseLineProject.java b/src/main/java/com/merge/api/accounting/types/ExpenseLineProject.java new file mode 100644 index 000000000..3659a1be8 --- /dev/null +++ b/src/main/java/com/merge/api/accounting/types/ExpenseLineProject.java @@ -0,0 +1,95 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.merge.api.accounting.types; + +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.databind.DeserializationContext; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.fasterxml.jackson.databind.deser.std.StdDeserializer; +import com.merge.api.core.ObjectMappers; +import java.io.IOException; +import java.util.Objects; + +@JsonDeserialize(using = ExpenseLineProject.Deserializer.class) +public final class ExpenseLineProject { + private final Object value; + + private final int type; + + private ExpenseLineProject(Object value, int type) { + this.value = value; + this.type = type; + } + + @JsonValue + public Object get() { + return this.value; + } + + @SuppressWarnings("unchecked") + public T visit(Visitor visitor) { + if (this.type == 0) { + return visitor.visit((String) this.value); + } else if (this.type == 1) { + return visitor.visit((Project) this.value); + } + throw new IllegalStateException("Failed to visit value. This should never happen."); + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof ExpenseLineProject && equalTo((ExpenseLineProject) other); + } + + private boolean equalTo(ExpenseLineProject other) { + return value.equals(other.value); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.value); + } + + @java.lang.Override + public String toString() { + return this.value.toString(); + } + + public static ExpenseLineProject of(String value) { + return new ExpenseLineProject(value, 0); + } + + public static ExpenseLineProject of(Project value) { + return new ExpenseLineProject(value, 1); + } + + public interface Visitor { + T visit(String value); + + T visit(Project value); + } + + static final class Deserializer extends StdDeserializer { + Deserializer() { + super(ExpenseLineProject.class); + } + + @java.lang.Override + public ExpenseLineProject deserialize(JsonParser p, DeserializationContext context) throws IOException { + Object value = p.readValueAs(Object.class); + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, String.class)); + } catch (IllegalArgumentException e) { + } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, Project.class)); + } catch (IllegalArgumentException e) { + } + throw new JsonParseException(p, "Failed to deserialize"); + } + } +} diff --git a/src/main/java/com/merge/api/accounting/types/ExpenseLineRequest.java b/src/main/java/com/merge/api/accounting/types/ExpenseLineRequest.java index fc36c329e..85bc8ad6d 100644 --- a/src/main/java/com/merge/api/accounting/types/ExpenseLineRequest.java +++ b/src/main/java/com/merge/api/accounting/types/ExpenseLineRequest.java @@ -36,12 +36,14 @@ public final class ExpenseLineRequest { private final Optional employee; - private final Optional currency; + private final Optional currency; private final Optional account; private final Optional contact; + private final Optional project; + private final Optional description; private final Optional exchangeRate; @@ -64,9 +66,10 @@ private ExpenseLineRequest( Optional>> trackingCategories, Optional company, Optional employee, - Optional currency, + Optional currency, Optional account, Optional contact, + Optional project, Optional description, Optional exchangeRate, Optional taxRate, @@ -84,6 +87,7 @@ private ExpenseLineRequest( this.currency = currency; this.account = account; this.contact = contact; + this.project = project; this.description = description; this.exchangeRate = exchangeRate; this.taxRate = taxRate; @@ -458,7 +462,7 @@ public Optional getEmployee() { * */ @JsonProperty("currency") - public Optional getCurrency() { + public Optional getCurrency() { return currency; } @@ -478,6 +482,11 @@ public Optional getContact() { return contact; } + @JsonProperty("project") + public Optional getProject() { + return project; + } + /** * @return The description of the item that was purchased by the company. */ @@ -539,6 +548,7 @@ private boolean equalTo(ExpenseLineRequest other) { && currency.equals(other.currency) && account.equals(other.account) && contact.equals(other.contact) + && project.equals(other.project) && description.equals(other.description) && exchangeRate.equals(other.exchangeRate) && taxRate.equals(other.taxRate) @@ -560,6 +570,7 @@ public int hashCode() { this.currency, this.account, this.contact, + this.project, this.description, this.exchangeRate, this.taxRate, @@ -594,12 +605,14 @@ public static final class Builder { private Optional employee = Optional.empty(); - private Optional currency = Optional.empty(); + private Optional currency = Optional.empty(); private Optional account = Optional.empty(); private Optional contact = Optional.empty(); + private Optional project = Optional.empty(); + private Optional description = Optional.empty(); private Optional exchangeRate = Optional.empty(); @@ -628,6 +641,7 @@ public Builder from(ExpenseLineRequest other) { currency(other.getCurrency()); account(other.getAccount()); contact(other.getContact()); + project(other.getProject()); description(other.getDescription()); exchangeRate(other.getExchangeRate()); taxRate(other.getTaxRate()); @@ -637,6 +651,9 @@ public Builder from(ExpenseLineRequest other) { return this; } + /** + *

    The third-party API ID of the matching object.

    + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; @@ -648,6 +665,9 @@ public Builder remoteId(String remoteId) { return this; } + /** + *

    The line's item.

    + */ @JsonSetter(value = "item", nulls = Nulls.SKIP) public Builder item(Optional item) { this.item = item; @@ -659,6 +679,9 @@ public Builder item(ExpenseLineRequestItem item) { return this; } + /** + *

    The line's net amount.

    + */ @JsonSetter(value = "net_amount", nulls = Nulls.SKIP) public Builder netAmount(Optional netAmount) { this.netAmount = netAmount; @@ -681,6 +704,9 @@ public Builder trackingCategory(ExpenseLineRequestTrackingCategory trackingCateg return this; } + /** + *

    The expense line item's associated tracking categories.

    + */ @JsonSetter(value = "tracking_categories", nulls = Nulls.SKIP) public Builder trackingCategories( Optional>> trackingCategories) { @@ -693,6 +719,9 @@ public Builder trackingCategories(ListThe company the expense belongs to.

    + */ @JsonSetter(value = "company", nulls = Nulls.SKIP) public Builder company(Optional company) { this.company = company; @@ -704,6 +733,9 @@ public Builder company(String company) { return this; } + /** + *

    The employee this overall transaction relates to.

    + */ @JsonSetter(value = "employee", nulls = Nulls.SKIP) public Builder employee(Optional employee) { this.employee = employee; @@ -715,17 +747,331 @@ public Builder employee(ExpenseLineRequestEmployee employee) { return this; } + /** + *

    The expense line item's currency.

    + *
      + *
    • XUA - ADB Unit of Account
    • + *
    • AFN - Afghan Afghani
    • + *
    • AFA - Afghan Afghani (1927–2002)
    • + *
    • ALL - Albanian Lek
    • + *
    • ALK - Albanian Lek (1946–1965)
    • + *
    • DZD - Algerian Dinar
    • + *
    • ADP - Andorran Peseta
    • + *
    • AOA - Angolan Kwanza
    • + *
    • AOK - Angolan Kwanza (1977–1991)
    • + *
    • AON - Angolan New Kwanza (1990–2000)
    • + *
    • AOR - Angolan Readjusted Kwanza (1995–1999)
    • + *
    • ARA - Argentine Austral
    • + *
    • ARS - Argentine Peso
    • + *
    • ARM - Argentine Peso (1881–1970)
    • + *
    • ARP - Argentine Peso (1983–1985)
    • + *
    • ARL - Argentine Peso Ley (1970–1983)
    • + *
    • AMD - Armenian Dram
    • + *
    • AWG - Aruban Florin
    • + *
    • AUD - Australian Dollar
    • + *
    • ATS - Austrian Schilling
    • + *
    • AZN - Azerbaijani Manat
    • + *
    • AZM - Azerbaijani Manat (1993–2006)
    • + *
    • BSD - Bahamian Dollar
    • + *
    • BHD - Bahraini Dinar
    • + *
    • BDT - Bangladeshi Taka
    • + *
    • BBD - Barbadian Dollar
    • + *
    • BYN - Belarusian Ruble
    • + *
    • BYB - Belarusian Ruble (1994–1999)
    • + *
    • BYR - Belarusian Ruble (2000–2016)
    • + *
    • BEF - Belgian Franc
    • + *
    • BEC - Belgian Franc (convertible)
    • + *
    • BEL - Belgian Franc (financial)
    • + *
    • BZD - Belize Dollar
    • + *
    • BMD - Bermudan Dollar
    • + *
    • BTN - Bhutanese Ngultrum
    • + *
    • BOB - Bolivian Boliviano
    • + *
    • BOL - Bolivian Boliviano (1863–1963)
    • + *
    • BOV - Bolivian Mvdol
    • + *
    • BOP - Bolivian Peso
    • + *
    • BAM - Bosnia-Herzegovina Convertible Mark
    • + *
    • BAD - Bosnia-Herzegovina Dinar (1992–1994)
    • + *
    • BAN - Bosnia-Herzegovina New Dinar (1994–1997)
    • + *
    • BWP - Botswanan Pula
    • + *
    • BRC - Brazilian Cruzado (1986–1989)
    • + *
    • BRZ - Brazilian Cruzeiro (1942–1967)
    • + *
    • BRE - Brazilian Cruzeiro (1990–1993)
    • + *
    • BRR - Brazilian Cruzeiro (1993–1994)
    • + *
    • BRN - Brazilian New Cruzado (1989–1990)
    • + *
    • BRB - Brazilian New Cruzeiro (1967–1986)
    • + *
    • BRL - Brazilian Real
    • + *
    • GBP - British Pound
    • + *
    • BND - Brunei Dollar
    • + *
    • BGL - Bulgarian Hard Lev
    • + *
    • BGN - Bulgarian Lev
    • + *
    • BGO - Bulgarian Lev (1879–1952)
    • + *
    • BGM - Bulgarian Socialist Lev
    • + *
    • BUK - Burmese Kyat
    • + *
    • BIF - Burundian Franc
    • + *
    • XPF - CFP Franc
    • + *
    • KHR - Cambodian Riel
    • + *
    • CAD - Canadian Dollar
    • + *
    • CVE - Cape Verdean Escudo
    • + *
    • KYD - Cayman Islands Dollar
    • + *
    • XAF - Central African CFA Franc
    • + *
    • CLE - Chilean Escudo
    • + *
    • CLP - Chilean Peso
    • + *
    • CLF - Chilean Unit of Account (UF)
    • + *
    • CNX - Chinese People’s Bank Dollar
    • + *
    • CNY - Chinese Yuan
    • + *
    • CNH - Chinese Yuan (offshore)
    • + *
    • COP - Colombian Peso
    • + *
    • COU - Colombian Real Value Unit
    • + *
    • KMF - Comorian Franc
    • + *
    • CDF - Congolese Franc
    • + *
    • CRC - Costa Rican Colón
    • + *
    • HRD - Croatian Dinar
    • + *
    • HRK - Croatian Kuna
    • + *
    • CUC - Cuban Convertible Peso
    • + *
    • CUP - Cuban Peso
    • + *
    • CYP - Cypriot Pound
    • + *
    • CZK - Czech Koruna
    • + *
    • CSK - Czechoslovak Hard Koruna
    • + *
    • DKK - Danish Krone
    • + *
    • DJF - Djiboutian Franc
    • + *
    • DOP - Dominican Peso
    • + *
    • NLG - Dutch Guilder
    • + *
    • XCD - East Caribbean Dollar
    • + *
    • DDM - East German Mark
    • + *
    • ECS - Ecuadorian Sucre
    • + *
    • ECV - Ecuadorian Unit of Constant Value
    • + *
    • EGP - Egyptian Pound
    • + *
    • GQE - Equatorial Guinean Ekwele
    • + *
    • ERN - Eritrean Nakfa
    • + *
    • EEK - Estonian Kroon
    • + *
    • ETB - Ethiopian Birr
    • + *
    • EUR - Euro
    • + *
    • XBA - European Composite Unit
    • + *
    • XEU - European Currency Unit
    • + *
    • XBB - European Monetary Unit
    • + *
    • XBC - European Unit of Account (XBC)
    • + *
    • XBD - European Unit of Account (XBD)
    • + *
    • FKP - Falkland Islands Pound
    • + *
    • FJD - Fijian Dollar
    • + *
    • FIM - Finnish Markka
    • + *
    • FRF - French Franc
    • + *
    • XFO - French Gold Franc
    • + *
    • XFU - French UIC-Franc
    • + *
    • GMD - Gambian Dalasi
    • + *
    • GEK - Georgian Kupon Larit
    • + *
    • GEL - Georgian Lari
    • + *
    • DEM - German Mark
    • + *
    • GHS - Ghanaian Cedi
    • + *
    • GHC - Ghanaian Cedi (1979–2007)
    • + *
    • GIP - Gibraltar Pound
    • + *
    • XAU - Gold
    • + *
    • GRD - Greek Drachma
    • + *
    • GTQ - Guatemalan Quetzal
    • + *
    • GWP - Guinea-Bissau Peso
    • + *
    • GNF - Guinean Franc
    • + *
    • GNS - Guinean Syli
    • + *
    • GYD - Guyanaese Dollar
    • + *
    • HTG - Haitian Gourde
    • + *
    • HNL - Honduran Lempira
    • + *
    • HKD - Hong Kong Dollar
    • + *
    • HUF - Hungarian Forint
    • + *
    • IMP - IMP
    • + *
    • ISK - Icelandic Króna
    • + *
    • ISJ - Icelandic Króna (1918–1981)
    • + *
    • INR - Indian Rupee
    • + *
    • IDR - Indonesian Rupiah
    • + *
    • IRR - Iranian Rial
    • + *
    • IQD - Iraqi Dinar
    • + *
    • IEP - Irish Pound
    • + *
    • ILS - Israeli New Shekel
    • + *
    • ILP - Israeli Pound
    • + *
    • ILR - Israeli Shekel (1980–1985)
    • + *
    • ITL - Italian Lira
    • + *
    • JMD - Jamaican Dollar
    • + *
    • JPY - Japanese Yen
    • + *
    • JOD - Jordanian Dinar
    • + *
    • KZT - Kazakhstani Tenge
    • + *
    • KES - Kenyan Shilling
    • + *
    • KWD - Kuwaiti Dinar
    • + *
    • KGS - Kyrgystani Som
    • + *
    • LAK - Laotian Kip
    • + *
    • LVL - Latvian Lats
    • + *
    • LVR - Latvian Ruble
    • + *
    • LBP - Lebanese Pound
    • + *
    • LSL - Lesotho Loti
    • + *
    • LRD - Liberian Dollar
    • + *
    • LYD - Libyan Dinar
    • + *
    • LTL - Lithuanian Litas
    • + *
    • LTT - Lithuanian Talonas
    • + *
    • LUL - Luxembourg Financial Franc
    • + *
    • LUC - Luxembourgian Convertible Franc
    • + *
    • LUF - Luxembourgian Franc
    • + *
    • MOP - Macanese Pataca
    • + *
    • MKD - Macedonian Denar
    • + *
    • MKN - Macedonian Denar (1992–1993)
    • + *
    • MGA - Malagasy Ariary
    • + *
    • MGF - Malagasy Franc
    • + *
    • MWK - Malawian Kwacha
    • + *
    • MYR - Malaysian Ringgit
    • + *
    • MVR - Maldivian Rufiyaa
    • + *
    • MVP - Maldivian Rupee (1947–1981)
    • + *
    • MLF - Malian Franc
    • + *
    • MTL - Maltese Lira
    • + *
    • MTP - Maltese Pound
    • + *
    • MRU - Mauritanian Ouguiya
    • + *
    • MRO - Mauritanian Ouguiya (1973–2017)
    • + *
    • MUR - Mauritian Rupee
    • + *
    • MXV - Mexican Investment Unit
    • + *
    • MXN - Mexican Peso
    • + *
    • MXP - Mexican Silver Peso (1861–1992)
    • + *
    • MDC - Moldovan Cupon
    • + *
    • MDL - Moldovan Leu
    • + *
    • MCF - Monegasque Franc
    • + *
    • MNT - Mongolian Tugrik
    • + *
    • MAD - Moroccan Dirham
    • + *
    • MAF - Moroccan Franc
    • + *
    • MZE - Mozambican Escudo
    • + *
    • MZN - Mozambican Metical
    • + *
    • MZM - Mozambican Metical (1980–2006)
    • + *
    • MMK - Myanmar Kyat
    • + *
    • NAD - Namibian Dollar
    • + *
    • NPR - Nepalese Rupee
    • + *
    • ANG - Netherlands Antillean Guilder
    • + *
    • TWD - New Taiwan Dollar
    • + *
    • NZD - New Zealand Dollar
    • + *
    • NIO - Nicaraguan Córdoba
    • + *
    • NIC - Nicaraguan Córdoba (1988–1991)
    • + *
    • NGN - Nigerian Naira
    • + *
    • KPW - North Korean Won
    • + *
    • NOK - Norwegian Krone
    • + *
    • OMR - Omani Rial
    • + *
    • PKR - Pakistani Rupee
    • + *
    • XPD - Palladium
    • + *
    • PAB - Panamanian Balboa
    • + *
    • PGK - Papua New Guinean Kina
    • + *
    • PYG - Paraguayan Guarani
    • + *
    • PEI - Peruvian Inti
    • + *
    • PEN - Peruvian Sol
    • + *
    • PES - Peruvian Sol (1863–1965)
    • + *
    • PHP - Philippine Peso
    • + *
    • XPT - Platinum
    • + *
    • PLN - Polish Zloty
    • + *
    • PLZ - Polish Zloty (1950–1995)
    • + *
    • PTE - Portuguese Escudo
    • + *
    • GWE - Portuguese Guinea Escudo
    • + *
    • QAR - Qatari Rial
    • + *
    • XRE - RINET Funds
    • + *
    • RHD - Rhodesian Dollar
    • + *
    • RON - Romanian Leu
    • + *
    • ROL - Romanian Leu (1952–2006)
    • + *
    • RUB - Russian Ruble
    • + *
    • RUR - Russian Ruble (1991–1998)
    • + *
    • RWF - Rwandan Franc
    • + *
    • SVC - Salvadoran Colón
    • + *
    • WST - Samoan Tala
    • + *
    • SAR - Saudi Riyal
    • + *
    • RSD - Serbian Dinar
    • + *
    • CSD - Serbian Dinar (2002–2006)
    • + *
    • SCR - Seychellois Rupee
    • + *
    • SLL - Sierra Leonean Leone
    • + *
    • XAG - Silver
    • + *
    • SGD - Singapore Dollar
    • + *
    • SKK - Slovak Koruna
    • + *
    • SIT - Slovenian Tolar
    • + *
    • SBD - Solomon Islands Dollar
    • + *
    • SOS - Somali Shilling
    • + *
    • ZAR - South African Rand
    • + *
    • ZAL - South African Rand (financial)
    • + *
    • KRH - South Korean Hwan (1953–1962)
    • + *
    • KRW - South Korean Won
    • + *
    • KRO - South Korean Won (1945–1953)
    • + *
    • SSP - South Sudanese Pound
    • + *
    • SUR - Soviet Rouble
    • + *
    • ESP - Spanish Peseta
    • + *
    • ESA - Spanish Peseta (A account)
    • + *
    • ESB - Spanish Peseta (convertible account)
    • + *
    • XDR - Special Drawing Rights
    • + *
    • LKR - Sri Lankan Rupee
    • + *
    • SHP - St. Helena Pound
    • + *
    • XSU - Sucre
    • + *
    • SDD - Sudanese Dinar (1992–2007)
    • + *
    • SDG - Sudanese Pound
    • + *
    • SDP - Sudanese Pound (1957–1998)
    • + *
    • SRD - Surinamese Dollar
    • + *
    • SRG - Surinamese Guilder
    • + *
    • SZL - Swazi Lilangeni
    • + *
    • SEK - Swedish Krona
    • + *
    • CHF - Swiss Franc
    • + *
    • SYP - Syrian Pound
    • + *
    • STN - São Tomé & Príncipe Dobra
    • + *
    • STD - São Tomé & Príncipe Dobra (1977–2017)
    • + *
    • TVD - TVD
    • + *
    • TJR - Tajikistani Ruble
    • + *
    • TJS - Tajikistani Somoni
    • + *
    • TZS - Tanzanian Shilling
    • + *
    • XTS - Testing Currency Code
    • + *
    • THB - Thai Baht
    • + *
    • XXX - The codes assigned for transactions where no currency is involved
    • + *
    • TPE - Timorese Escudo
    • + *
    • TOP - Tongan Paʻanga
    • + *
    • TTD - Trinidad & Tobago Dollar
    • + *
    • TND - Tunisian Dinar
    • + *
    • TRY - Turkish Lira
    • + *
    • TRL - Turkish Lira (1922–2005)
    • + *
    • TMT - Turkmenistani Manat
    • + *
    • TMM - Turkmenistani Manat (1993–2009)
    • + *
    • USD - US Dollar
    • + *
    • USN - US Dollar (Next day)
    • + *
    • USS - US Dollar (Same day)
    • + *
    • UGX - Ugandan Shilling
    • + *
    • UGS - Ugandan Shilling (1966–1987)
    • + *
    • UAH - Ukrainian Hryvnia
    • + *
    • UAK - Ukrainian Karbovanets
    • + *
    • AED - United Arab Emirates Dirham
    • + *
    • UYW - Uruguayan Nominal Wage Index Unit
    • + *
    • UYU - Uruguayan Peso
    • + *
    • UYP - Uruguayan Peso (1975–1993)
    • + *
    • UYI - Uruguayan Peso (Indexed Units)
    • + *
    • UZS - Uzbekistani Som
    • + *
    • VUV - Vanuatu Vatu
    • + *
    • VES - Venezuelan Bolívar
    • + *
    • VEB - Venezuelan Bolívar (1871–2008)
    • + *
    • VEF - Venezuelan Bolívar (2008–2018)
    • + *
    • VND - Vietnamese Dong
    • + *
    • VNN - Vietnamese Dong (1978–1985)
    • + *
    • CHE - WIR Euro
    • + *
    • CHW - WIR Franc
    • + *
    • XOF - West African CFA Franc
    • + *
    • YDD - Yemeni Dinar
    • + *
    • YER - Yemeni Rial
    • + *
    • YUN - Yugoslavian Convertible Dinar (1990–1992)
    • + *
    • YUD - Yugoslavian Hard Dinar (1966–1990)
    • + *
    • YUM - Yugoslavian New Dinar (1994–2002)
    • + *
    • YUR - Yugoslavian Reformed Dinar (1992–1993)
    • + *
    • ZWN - ZWN
    • + *
    • ZRN - Zairean New Zaire (1993–1998)
    • + *
    • ZRZ - Zairean Zaire (1971–1993)
    • + *
    • ZMW - Zambian Kwacha
    • + *
    • ZMK - Zambian Kwacha (1968–2012)
    • + *
    • ZWD - Zimbabwean Dollar (1980–2008)
    • + *
    • ZWR - Zimbabwean Dollar (2008)
    • + *
    • ZWL - Zimbabwean Dollar (2009)
    • + *
    + */ @JsonSetter(value = "currency", nulls = Nulls.SKIP) - public Builder currency(Optional currency) { + public Builder currency(Optional currency) { this.currency = currency; return this; } - public Builder currency(TransactionCurrencyEnum currency) { + public Builder currency(ExpenseLineRequestCurrency currency) { this.currency = Optional.ofNullable(currency); return this; } + /** + *

    The expense's payment account.

    + */ @JsonSetter(value = "account", nulls = Nulls.SKIP) public Builder account(Optional account) { this.account = account; @@ -737,6 +1083,9 @@ public Builder account(ExpenseLineRequestAccount account) { return this; } + /** + *

    The expense's contact.

    + */ @JsonSetter(value = "contact", nulls = Nulls.SKIP) public Builder contact(Optional contact) { this.contact = contact; @@ -748,6 +1097,20 @@ public Builder contact(ExpenseLineRequestContact contact) { return this; } + @JsonSetter(value = "project", nulls = Nulls.SKIP) + public Builder project(Optional project) { + this.project = project; + return this; + } + + public Builder project(ExpenseLineRequestProject project) { + this.project = Optional.ofNullable(project); + return this; + } + + /** + *

    The description of the item that was purchased by the company.

    + */ @JsonSetter(value = "description", nulls = Nulls.SKIP) public Builder description(Optional description) { this.description = description; @@ -759,6 +1122,9 @@ public Builder description(String description) { return this; } + /** + *

    The expense line item's exchange rate.

    + */ @JsonSetter(value = "exchange_rate", nulls = Nulls.SKIP) public Builder exchangeRate(Optional exchangeRate) { this.exchangeRate = exchangeRate; @@ -770,6 +1136,9 @@ public Builder exchangeRate(String exchangeRate) { return this; } + /** + *

    The tax rate that applies to this line item.

    + */ @JsonSetter(value = "tax_rate", nulls = Nulls.SKIP) public Builder taxRate(Optional taxRate) { this.taxRate = taxRate; @@ -826,6 +1195,7 @@ public ExpenseLineRequest build() { currency, account, contact, + project, description, exchangeRate, taxRate, diff --git a/src/main/java/com/merge/api/accounting/types/ExpenseLineRequestCurrency.java b/src/main/java/com/merge/api/accounting/types/ExpenseLineRequestCurrency.java new file mode 100644 index 000000000..bcded0b69 --- /dev/null +++ b/src/main/java/com/merge/api/accounting/types/ExpenseLineRequestCurrency.java @@ -0,0 +1,95 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.merge.api.accounting.types; + +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.databind.DeserializationContext; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.fasterxml.jackson.databind.deser.std.StdDeserializer; +import com.merge.api.core.ObjectMappers; +import java.io.IOException; +import java.util.Objects; + +@JsonDeserialize(using = ExpenseLineRequestCurrency.Deserializer.class) +public final class ExpenseLineRequestCurrency { + private final Object value; + + private final int type; + + private ExpenseLineRequestCurrency(Object value, int type) { + this.value = value; + this.type = type; + } + + @JsonValue + public Object get() { + return this.value; + } + + @SuppressWarnings("unchecked") + public T visit(Visitor visitor) { + if (this.type == 0) { + return visitor.visit((TransactionCurrencyEnum) this.value); + } else if (this.type == 1) { + return visitor.visit((String) this.value); + } + throw new IllegalStateException("Failed to visit value. This should never happen."); + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof ExpenseLineRequestCurrency && equalTo((ExpenseLineRequestCurrency) other); + } + + private boolean equalTo(ExpenseLineRequestCurrency other) { + return value.equals(other.value); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.value); + } + + @java.lang.Override + public String toString() { + return this.value.toString(); + } + + public static ExpenseLineRequestCurrency of(TransactionCurrencyEnum value) { + return new ExpenseLineRequestCurrency(value, 0); + } + + public static ExpenseLineRequestCurrency of(String value) { + return new ExpenseLineRequestCurrency(value, 1); + } + + public interface Visitor { + T visit(TransactionCurrencyEnum value); + + T visit(String value); + } + + static final class Deserializer extends StdDeserializer { + Deserializer() { + super(ExpenseLineRequestCurrency.class); + } + + @java.lang.Override + public ExpenseLineRequestCurrency deserialize(JsonParser p, DeserializationContext context) throws IOException { + Object value = p.readValueAs(Object.class); + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, TransactionCurrencyEnum.class)); + } catch (IllegalArgumentException e) { + } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, String.class)); + } catch (IllegalArgumentException e) { + } + throw new JsonParseException(p, "Failed to deserialize"); + } + } +} diff --git a/src/main/java/com/merge/api/accounting/types/ExpenseLineRequestProject.java b/src/main/java/com/merge/api/accounting/types/ExpenseLineRequestProject.java new file mode 100644 index 000000000..daa284eb8 --- /dev/null +++ b/src/main/java/com/merge/api/accounting/types/ExpenseLineRequestProject.java @@ -0,0 +1,95 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.merge.api.accounting.types; + +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.databind.DeserializationContext; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.fasterxml.jackson.databind.deser.std.StdDeserializer; +import com.merge.api.core.ObjectMappers; +import java.io.IOException; +import java.util.Objects; + +@JsonDeserialize(using = ExpenseLineRequestProject.Deserializer.class) +public final class ExpenseLineRequestProject { + private final Object value; + + private final int type; + + private ExpenseLineRequestProject(Object value, int type) { + this.value = value; + this.type = type; + } + + @JsonValue + public Object get() { + return this.value; + } + + @SuppressWarnings("unchecked") + public T visit(Visitor visitor) { + if (this.type == 0) { + return visitor.visit((String) this.value); + } else if (this.type == 1) { + return visitor.visit((Project) this.value); + } + throw new IllegalStateException("Failed to visit value. This should never happen."); + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof ExpenseLineRequestProject && equalTo((ExpenseLineRequestProject) other); + } + + private boolean equalTo(ExpenseLineRequestProject other) { + return value.equals(other.value); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.value); + } + + @java.lang.Override + public String toString() { + return this.value.toString(); + } + + public static ExpenseLineRequestProject of(String value) { + return new ExpenseLineRequestProject(value, 0); + } + + public static ExpenseLineRequestProject of(Project value) { + return new ExpenseLineRequestProject(value, 1); + } + + public interface Visitor { + T visit(String value); + + T visit(Project value); + } + + static final class Deserializer extends StdDeserializer { + Deserializer() { + super(ExpenseLineRequestProject.class); + } + + @java.lang.Override + public ExpenseLineRequestProject deserialize(JsonParser p, DeserializationContext context) throws IOException { + Object value = p.readValueAs(Object.class); + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, String.class)); + } catch (IllegalArgumentException e) { + } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, Project.class)); + } catch (IllegalArgumentException e) { + } + throw new JsonParseException(p, "Failed to deserialize"); + } + } +} diff --git a/src/main/java/com/merge/api/accounting/types/ExpenseRequest.java b/src/main/java/com/merge/api/accounting/types/ExpenseRequest.java index 7ce13c93a..166c64509 100644 --- a/src/main/java/com/merge/api/accounting/types/ExpenseRequest.java +++ b/src/main/java/com/merge/api/accounting/types/ExpenseRequest.java @@ -668,6 +668,9 @@ public Builder from(ExpenseRequest other) { return this; } + /** + *

    When the transaction occurred.

    + */ @JsonSetter(value = "transaction_date", nulls = Nulls.SKIP) public Builder transactionDate(Optional transactionDate) { this.transactionDate = transactionDate; @@ -679,6 +682,9 @@ public Builder transactionDate(OffsetDateTime transactionDate) { return this; } + /** + *

    The expense's payment account.

    + */ @JsonSetter(value = "account", nulls = Nulls.SKIP) public Builder account(Optional account) { this.account = account; @@ -690,6 +696,9 @@ public Builder account(ExpenseRequestAccount account) { return this; } + /** + *

    The expense's contact.

    + */ @JsonSetter(value = "contact", nulls = Nulls.SKIP) public Builder contact(Optional contact) { this.contact = contact; @@ -701,6 +710,9 @@ public Builder contact(ExpenseRequestContact contact) { return this; } + /** + *

    The expense's total amount.

    + */ @JsonSetter(value = "total_amount", nulls = Nulls.SKIP) public Builder totalAmount(Optional totalAmount) { this.totalAmount = totalAmount; @@ -712,6 +724,9 @@ public Builder totalAmount(Double totalAmount) { return this; } + /** + *

    The expense's total amount before tax.

    + */ @JsonSetter(value = "sub_total", nulls = Nulls.SKIP) public Builder subTotal(Optional subTotal) { this.subTotal = subTotal; @@ -723,6 +738,9 @@ public Builder subTotal(Double subTotal) { return this; } + /** + *

    The expense's total tax amount.

    + */ @JsonSetter(value = "total_tax_amount", nulls = Nulls.SKIP) public Builder totalTaxAmount(Optional totalTaxAmount) { this.totalTaxAmount = totalTaxAmount; @@ -734,6 +752,317 @@ public Builder totalTaxAmount(Double totalTaxAmount) { return this; } + /** + *

    The expense's currency.

    + *
      + *
    • XUA - ADB Unit of Account
    • + *
    • AFN - Afghan Afghani
    • + *
    • AFA - Afghan Afghani (1927–2002)
    • + *
    • ALL - Albanian Lek
    • + *
    • ALK - Albanian Lek (1946–1965)
    • + *
    • DZD - Algerian Dinar
    • + *
    • ADP - Andorran Peseta
    • + *
    • AOA - Angolan Kwanza
    • + *
    • AOK - Angolan Kwanza (1977–1991)
    • + *
    • AON - Angolan New Kwanza (1990–2000)
    • + *
    • AOR - Angolan Readjusted Kwanza (1995–1999)
    • + *
    • ARA - Argentine Austral
    • + *
    • ARS - Argentine Peso
    • + *
    • ARM - Argentine Peso (1881–1970)
    • + *
    • ARP - Argentine Peso (1983–1985)
    • + *
    • ARL - Argentine Peso Ley (1970–1983)
    • + *
    • AMD - Armenian Dram
    • + *
    • AWG - Aruban Florin
    • + *
    • AUD - Australian Dollar
    • + *
    • ATS - Austrian Schilling
    • + *
    • AZN - Azerbaijani Manat
    • + *
    • AZM - Azerbaijani Manat (1993–2006)
    • + *
    • BSD - Bahamian Dollar
    • + *
    • BHD - Bahraini Dinar
    • + *
    • BDT - Bangladeshi Taka
    • + *
    • BBD - Barbadian Dollar
    • + *
    • BYN - Belarusian Ruble
    • + *
    • BYB - Belarusian Ruble (1994–1999)
    • + *
    • BYR - Belarusian Ruble (2000–2016)
    • + *
    • BEF - Belgian Franc
    • + *
    • BEC - Belgian Franc (convertible)
    • + *
    • BEL - Belgian Franc (financial)
    • + *
    • BZD - Belize Dollar
    • + *
    • BMD - Bermudan Dollar
    • + *
    • BTN - Bhutanese Ngultrum
    • + *
    • BOB - Bolivian Boliviano
    • + *
    • BOL - Bolivian Boliviano (1863–1963)
    • + *
    • BOV - Bolivian Mvdol
    • + *
    • BOP - Bolivian Peso
    • + *
    • BAM - Bosnia-Herzegovina Convertible Mark
    • + *
    • BAD - Bosnia-Herzegovina Dinar (1992–1994)
    • + *
    • BAN - Bosnia-Herzegovina New Dinar (1994–1997)
    • + *
    • BWP - Botswanan Pula
    • + *
    • BRC - Brazilian Cruzado (1986–1989)
    • + *
    • BRZ - Brazilian Cruzeiro (1942–1967)
    • + *
    • BRE - Brazilian Cruzeiro (1990–1993)
    • + *
    • BRR - Brazilian Cruzeiro (1993–1994)
    • + *
    • BRN - Brazilian New Cruzado (1989–1990)
    • + *
    • BRB - Brazilian New Cruzeiro (1967–1986)
    • + *
    • BRL - Brazilian Real
    • + *
    • GBP - British Pound
    • + *
    • BND - Brunei Dollar
    • + *
    • BGL - Bulgarian Hard Lev
    • + *
    • BGN - Bulgarian Lev
    • + *
    • BGO - Bulgarian Lev (1879–1952)
    • + *
    • BGM - Bulgarian Socialist Lev
    • + *
    • BUK - Burmese Kyat
    • + *
    • BIF - Burundian Franc
    • + *
    • XPF - CFP Franc
    • + *
    • KHR - Cambodian Riel
    • + *
    • CAD - Canadian Dollar
    • + *
    • CVE - Cape Verdean Escudo
    • + *
    • KYD - Cayman Islands Dollar
    • + *
    • XAF - Central African CFA Franc
    • + *
    • CLE - Chilean Escudo
    • + *
    • CLP - Chilean Peso
    • + *
    • CLF - Chilean Unit of Account (UF)
    • + *
    • CNX - Chinese People’s Bank Dollar
    • + *
    • CNY - Chinese Yuan
    • + *
    • CNH - Chinese Yuan (offshore)
    • + *
    • COP - Colombian Peso
    • + *
    • COU - Colombian Real Value Unit
    • + *
    • KMF - Comorian Franc
    • + *
    • CDF - Congolese Franc
    • + *
    • CRC - Costa Rican Colón
    • + *
    • HRD - Croatian Dinar
    • + *
    • HRK - Croatian Kuna
    • + *
    • CUC - Cuban Convertible Peso
    • + *
    • CUP - Cuban Peso
    • + *
    • CYP - Cypriot Pound
    • + *
    • CZK - Czech Koruna
    • + *
    • CSK - Czechoslovak Hard Koruna
    • + *
    • DKK - Danish Krone
    • + *
    • DJF - Djiboutian Franc
    • + *
    • DOP - Dominican Peso
    • + *
    • NLG - Dutch Guilder
    • + *
    • XCD - East Caribbean Dollar
    • + *
    • DDM - East German Mark
    • + *
    • ECS - Ecuadorian Sucre
    • + *
    • ECV - Ecuadorian Unit of Constant Value
    • + *
    • EGP - Egyptian Pound
    • + *
    • GQE - Equatorial Guinean Ekwele
    • + *
    • ERN - Eritrean Nakfa
    • + *
    • EEK - Estonian Kroon
    • + *
    • ETB - Ethiopian Birr
    • + *
    • EUR - Euro
    • + *
    • XBA - European Composite Unit
    • + *
    • XEU - European Currency Unit
    • + *
    • XBB - European Monetary Unit
    • + *
    • XBC - European Unit of Account (XBC)
    • + *
    • XBD - European Unit of Account (XBD)
    • + *
    • FKP - Falkland Islands Pound
    • + *
    • FJD - Fijian Dollar
    • + *
    • FIM - Finnish Markka
    • + *
    • FRF - French Franc
    • + *
    • XFO - French Gold Franc
    • + *
    • XFU - French UIC-Franc
    • + *
    • GMD - Gambian Dalasi
    • + *
    • GEK - Georgian Kupon Larit
    • + *
    • GEL - Georgian Lari
    • + *
    • DEM - German Mark
    • + *
    • GHS - Ghanaian Cedi
    • + *
    • GHC - Ghanaian Cedi (1979–2007)
    • + *
    • GIP - Gibraltar Pound
    • + *
    • XAU - Gold
    • + *
    • GRD - Greek Drachma
    • + *
    • GTQ - Guatemalan Quetzal
    • + *
    • GWP - Guinea-Bissau Peso
    • + *
    • GNF - Guinean Franc
    • + *
    • GNS - Guinean Syli
    • + *
    • GYD - Guyanaese Dollar
    • + *
    • HTG - Haitian Gourde
    • + *
    • HNL - Honduran Lempira
    • + *
    • HKD - Hong Kong Dollar
    • + *
    • HUF - Hungarian Forint
    • + *
    • IMP - IMP
    • + *
    • ISK - Icelandic Króna
    • + *
    • ISJ - Icelandic Króna (1918–1981)
    • + *
    • INR - Indian Rupee
    • + *
    • IDR - Indonesian Rupiah
    • + *
    • IRR - Iranian Rial
    • + *
    • IQD - Iraqi Dinar
    • + *
    • IEP - Irish Pound
    • + *
    • ILS - Israeli New Shekel
    • + *
    • ILP - Israeli Pound
    • + *
    • ILR - Israeli Shekel (1980–1985)
    • + *
    • ITL - Italian Lira
    • + *
    • JMD - Jamaican Dollar
    • + *
    • JPY - Japanese Yen
    • + *
    • JOD - Jordanian Dinar
    • + *
    • KZT - Kazakhstani Tenge
    • + *
    • KES - Kenyan Shilling
    • + *
    • KWD - Kuwaiti Dinar
    • + *
    • KGS - Kyrgystani Som
    • + *
    • LAK - Laotian Kip
    • + *
    • LVL - Latvian Lats
    • + *
    • LVR - Latvian Ruble
    • + *
    • LBP - Lebanese Pound
    • + *
    • LSL - Lesotho Loti
    • + *
    • LRD - Liberian Dollar
    • + *
    • LYD - Libyan Dinar
    • + *
    • LTL - Lithuanian Litas
    • + *
    • LTT - Lithuanian Talonas
    • + *
    • LUL - Luxembourg Financial Franc
    • + *
    • LUC - Luxembourgian Convertible Franc
    • + *
    • LUF - Luxembourgian Franc
    • + *
    • MOP - Macanese Pataca
    • + *
    • MKD - Macedonian Denar
    • + *
    • MKN - Macedonian Denar (1992–1993)
    • + *
    • MGA - Malagasy Ariary
    • + *
    • MGF - Malagasy Franc
    • + *
    • MWK - Malawian Kwacha
    • + *
    • MYR - Malaysian Ringgit
    • + *
    • MVR - Maldivian Rufiyaa
    • + *
    • MVP - Maldivian Rupee (1947–1981)
    • + *
    • MLF - Malian Franc
    • + *
    • MTL - Maltese Lira
    • + *
    • MTP - Maltese Pound
    • + *
    • MRU - Mauritanian Ouguiya
    • + *
    • MRO - Mauritanian Ouguiya (1973–2017)
    • + *
    • MUR - Mauritian Rupee
    • + *
    • MXV - Mexican Investment Unit
    • + *
    • MXN - Mexican Peso
    • + *
    • MXP - Mexican Silver Peso (1861–1992)
    • + *
    • MDC - Moldovan Cupon
    • + *
    • MDL - Moldovan Leu
    • + *
    • MCF - Monegasque Franc
    • + *
    • MNT - Mongolian Tugrik
    • + *
    • MAD - Moroccan Dirham
    • + *
    • MAF - Moroccan Franc
    • + *
    • MZE - Mozambican Escudo
    • + *
    • MZN - Mozambican Metical
    • + *
    • MZM - Mozambican Metical (1980–2006)
    • + *
    • MMK - Myanmar Kyat
    • + *
    • NAD - Namibian Dollar
    • + *
    • NPR - Nepalese Rupee
    • + *
    • ANG - Netherlands Antillean Guilder
    • + *
    • TWD - New Taiwan Dollar
    • + *
    • NZD - New Zealand Dollar
    • + *
    • NIO - Nicaraguan Córdoba
    • + *
    • NIC - Nicaraguan Córdoba (1988–1991)
    • + *
    • NGN - Nigerian Naira
    • + *
    • KPW - North Korean Won
    • + *
    • NOK - Norwegian Krone
    • + *
    • OMR - Omani Rial
    • + *
    • PKR - Pakistani Rupee
    • + *
    • XPD - Palladium
    • + *
    • PAB - Panamanian Balboa
    • + *
    • PGK - Papua New Guinean Kina
    • + *
    • PYG - Paraguayan Guarani
    • + *
    • PEI - Peruvian Inti
    • + *
    • PEN - Peruvian Sol
    • + *
    • PES - Peruvian Sol (1863–1965)
    • + *
    • PHP - Philippine Peso
    • + *
    • XPT - Platinum
    • + *
    • PLN - Polish Zloty
    • + *
    • PLZ - Polish Zloty (1950–1995)
    • + *
    • PTE - Portuguese Escudo
    • + *
    • GWE - Portuguese Guinea Escudo
    • + *
    • QAR - Qatari Rial
    • + *
    • XRE - RINET Funds
    • + *
    • RHD - Rhodesian Dollar
    • + *
    • RON - Romanian Leu
    • + *
    • ROL - Romanian Leu (1952–2006)
    • + *
    • RUB - Russian Ruble
    • + *
    • RUR - Russian Ruble (1991–1998)
    • + *
    • RWF - Rwandan Franc
    • + *
    • SVC - Salvadoran Colón
    • + *
    • WST - Samoan Tala
    • + *
    • SAR - Saudi Riyal
    • + *
    • RSD - Serbian Dinar
    • + *
    • CSD - Serbian Dinar (2002–2006)
    • + *
    • SCR - Seychellois Rupee
    • + *
    • SLL - Sierra Leonean Leone
    • + *
    • XAG - Silver
    • + *
    • SGD - Singapore Dollar
    • + *
    • SKK - Slovak Koruna
    • + *
    • SIT - Slovenian Tolar
    • + *
    • SBD - Solomon Islands Dollar
    • + *
    • SOS - Somali Shilling
    • + *
    • ZAR - South African Rand
    • + *
    • ZAL - South African Rand (financial)
    • + *
    • KRH - South Korean Hwan (1953–1962)
    • + *
    • KRW - South Korean Won
    • + *
    • KRO - South Korean Won (1945–1953)
    • + *
    • SSP - South Sudanese Pound
    • + *
    • SUR - Soviet Rouble
    • + *
    • ESP - Spanish Peseta
    • + *
    • ESA - Spanish Peseta (A account)
    • + *
    • ESB - Spanish Peseta (convertible account)
    • + *
    • XDR - Special Drawing Rights
    • + *
    • LKR - Sri Lankan Rupee
    • + *
    • SHP - St. Helena Pound
    • + *
    • XSU - Sucre
    • + *
    • SDD - Sudanese Dinar (1992–2007)
    • + *
    • SDG - Sudanese Pound
    • + *
    • SDP - Sudanese Pound (1957–1998)
    • + *
    • SRD - Surinamese Dollar
    • + *
    • SRG - Surinamese Guilder
    • + *
    • SZL - Swazi Lilangeni
    • + *
    • SEK - Swedish Krona
    • + *
    • CHF - Swiss Franc
    • + *
    • SYP - Syrian Pound
    • + *
    • STN - São Tomé & Príncipe Dobra
    • + *
    • STD - São Tomé & Príncipe Dobra (1977–2017)
    • + *
    • TVD - TVD
    • + *
    • TJR - Tajikistani Ruble
    • + *
    • TJS - Tajikistani Somoni
    • + *
    • TZS - Tanzanian Shilling
    • + *
    • XTS - Testing Currency Code
    • + *
    • THB - Thai Baht
    • + *
    • XXX - The codes assigned for transactions where no currency is involved
    • + *
    • TPE - Timorese Escudo
    • + *
    • TOP - Tongan Paʻanga
    • + *
    • TTD - Trinidad & Tobago Dollar
    • + *
    • TND - Tunisian Dinar
    • + *
    • TRY - Turkish Lira
    • + *
    • TRL - Turkish Lira (1922–2005)
    • + *
    • TMT - Turkmenistani Manat
    • + *
    • TMM - Turkmenistani Manat (1993–2009)
    • + *
    • USD - US Dollar
    • + *
    • USN - US Dollar (Next day)
    • + *
    • USS - US Dollar (Same day)
    • + *
    • UGX - Ugandan Shilling
    • + *
    • UGS - Ugandan Shilling (1966–1987)
    • + *
    • UAH - Ukrainian Hryvnia
    • + *
    • UAK - Ukrainian Karbovanets
    • + *
    • AED - United Arab Emirates Dirham
    • + *
    • UYW - Uruguayan Nominal Wage Index Unit
    • + *
    • UYU - Uruguayan Peso
    • + *
    • UYP - Uruguayan Peso (1975–1993)
    • + *
    • UYI - Uruguayan Peso (Indexed Units)
    • + *
    • UZS - Uzbekistani Som
    • + *
    • VUV - Vanuatu Vatu
    • + *
    • VES - Venezuelan Bolívar
    • + *
    • VEB - Venezuelan Bolívar (1871–2008)
    • + *
    • VEF - Venezuelan Bolívar (2008–2018)
    • + *
    • VND - Vietnamese Dong
    • + *
    • VNN - Vietnamese Dong (1978–1985)
    • + *
    • CHE - WIR Euro
    • + *
    • CHW - WIR Franc
    • + *
    • XOF - West African CFA Franc
    • + *
    • YDD - Yemeni Dinar
    • + *
    • YER - Yemeni Rial
    • + *
    • YUN - Yugoslavian Convertible Dinar (1990–1992)
    • + *
    • YUD - Yugoslavian Hard Dinar (1966–1990)
    • + *
    • YUM - Yugoslavian New Dinar (1994–2002)
    • + *
    • YUR - Yugoslavian Reformed Dinar (1992–1993)
    • + *
    • ZWN - ZWN
    • + *
    • ZRN - Zairean New Zaire (1993–1998)
    • + *
    • ZRZ - Zairean Zaire (1971–1993)
    • + *
    • ZMW - Zambian Kwacha
    • + *
    • ZMK - Zambian Kwacha (1968–2012)
    • + *
    • ZWD - Zimbabwean Dollar (1980–2008)
    • + *
    • ZWR - Zimbabwean Dollar (2008)
    • + *
    • ZWL - Zimbabwean Dollar (2009)
    • + *
    + */ @JsonSetter(value = "currency", nulls = Nulls.SKIP) public Builder currency(Optional currency) { this.currency = currency; @@ -745,6 +1074,9 @@ public Builder currency(TransactionCurrencyEnum currency) { return this; } + /** + *

    The expense's exchange rate.

    + */ @JsonSetter(value = "exchange_rate", nulls = Nulls.SKIP) public Builder exchangeRate(Optional exchangeRate) { this.exchangeRate = exchangeRate; @@ -756,6 +1088,9 @@ public Builder exchangeRate(String exchangeRate) { return this; } + /** + *

    If the transaction is inclusive or exclusive of tax. True if inclusive, False if exclusive.

    + */ @JsonSetter(value = "inclusive_of_tax", nulls = Nulls.SKIP) public Builder inclusiveOfTax(Optional inclusiveOfTax) { this.inclusiveOfTax = inclusiveOfTax; @@ -767,6 +1102,9 @@ public Builder inclusiveOfTax(Boolean inclusiveOfTax) { return this; } + /** + *

    The company the expense belongs to.

    + */ @JsonSetter(value = "company", nulls = Nulls.SKIP) public Builder company(Optional company) { this.company = company; @@ -778,6 +1116,9 @@ public Builder company(ExpenseRequestCompany company) { return this; } + /** + *

    The employee this overall transaction relates to.

    + */ @JsonSetter(value = "employee", nulls = Nulls.SKIP) public Builder employee(Optional employee) { this.employee = employee; @@ -789,6 +1130,9 @@ public Builder employee(ExpenseRequestEmployee employee) { return this; } + /** + *

    The expense's private note.

    + */ @JsonSetter(value = "memo", nulls = Nulls.SKIP) public Builder memo(Optional memo) { this.memo = memo; @@ -823,6 +1167,9 @@ public Builder trackingCategories(ListThe accounting period that the Expense was generated in.

    + */ @JsonSetter(value = "accounting_period", nulls = Nulls.SKIP) public Builder accountingPeriod(Optional accountingPeriod) { this.accountingPeriod = accountingPeriod; diff --git a/src/main/java/com/merge/api/accounting/types/ExpensesLinesRemoteFieldClassesListRequest.java b/src/main/java/com/merge/api/accounting/types/ExpensesLinesRemoteFieldClassesListRequest.java index a88d2ea57..75c1e7290 100644 --- a/src/main/java/com/merge/api/accounting/types/ExpensesLinesRemoteFieldClassesListRequest.java +++ b/src/main/java/com/merge/api/accounting/types/ExpensesLinesRemoteFieldClassesListRequest.java @@ -30,6 +30,8 @@ public final class ExpensesLinesRemoteFieldClassesListRequest { private final Optional isCommonModelField; + private final Optional isCustom; + private final Optional pageSize; private final Map additionalProperties; @@ -40,6 +42,7 @@ private ExpensesLinesRemoteFieldClassesListRequest( Optional includeRemoteData, Optional includeShellData, Optional isCommonModelField, + Optional isCustom, Optional pageSize, Map additionalProperties) { this.cursor = cursor; @@ -47,6 +50,7 @@ private ExpensesLinesRemoteFieldClassesListRequest( this.includeRemoteData = includeRemoteData; this.includeShellData = includeShellData; this.isCommonModelField = isCommonModelField; + this.isCustom = isCustom; this.pageSize = pageSize; this.additionalProperties = additionalProperties; } @@ -91,6 +95,14 @@ public Optional getIsCommonModelField() { return isCommonModelField; } + /** + * @return If provided, will only return remote fields classes with this is_custom value + */ + @JsonProperty("is_custom") + public Optional getIsCustom() { + return isCustom; + } + /** * @return Number of results to return per page. */ @@ -117,6 +129,7 @@ private boolean equalTo(ExpensesLinesRemoteFieldClassesListRequest other) { && includeRemoteData.equals(other.includeRemoteData) && includeShellData.equals(other.includeShellData) && isCommonModelField.equals(other.isCommonModelField) + && isCustom.equals(other.isCustom) && pageSize.equals(other.pageSize); } @@ -128,6 +141,7 @@ public int hashCode() { this.includeRemoteData, this.includeShellData, this.isCommonModelField, + this.isCustom, this.pageSize); } @@ -152,6 +166,8 @@ public static final class Builder { private Optional isCommonModelField = Optional.empty(); + private Optional isCustom = Optional.empty(); + private Optional pageSize = Optional.empty(); @JsonAnySetter @@ -165,10 +181,14 @@ public Builder from(ExpensesLinesRemoteFieldClassesListRequest other) { includeRemoteData(other.getIncludeRemoteData()); includeShellData(other.getIncludeShellData()); isCommonModelField(other.getIsCommonModelField()); + isCustom(other.getIsCustom()); pageSize(other.getPageSize()); return this; } + /** + *

    The pagination cursor value.

    + */ @JsonSetter(value = "cursor", nulls = Nulls.SKIP) public Builder cursor(Optional cursor) { this.cursor = cursor; @@ -180,6 +200,9 @@ public Builder cursor(String cursor) { return this; } + /** + *

    Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

    + */ @JsonSetter(value = "include_deleted_data", nulls = Nulls.SKIP) public Builder includeDeletedData(Optional includeDeletedData) { this.includeDeletedData = includeDeletedData; @@ -191,6 +214,9 @@ public Builder includeDeletedData(Boolean includeDeletedData) { return this; } + /** + *

    Whether to include the original data Merge fetched from the third-party to produce these models.

    + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -202,6 +228,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

    Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

    + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; @@ -213,6 +242,9 @@ public Builder includeShellData(Boolean includeShellData) { return this; } + /** + *

    If provided, will only return remote field classes with this is_common_model_field value

    + */ @JsonSetter(value = "is_common_model_field", nulls = Nulls.SKIP) public Builder isCommonModelField(Optional isCommonModelField) { this.isCommonModelField = isCommonModelField; @@ -224,6 +256,23 @@ public Builder isCommonModelField(Boolean isCommonModelField) { return this; } + /** + *

    If provided, will only return remote fields classes with this is_custom value

    + */ + @JsonSetter(value = "is_custom", nulls = Nulls.SKIP) + public Builder isCustom(Optional isCustom) { + this.isCustom = isCustom; + return this; + } + + public Builder isCustom(Boolean isCustom) { + this.isCustom = Optional.ofNullable(isCustom); + return this; + } + + /** + *

    Number of results to return per page.

    + */ @JsonSetter(value = "page_size", nulls = Nulls.SKIP) public Builder pageSize(Optional pageSize) { this.pageSize = pageSize; @@ -242,6 +291,7 @@ public ExpensesLinesRemoteFieldClassesListRequest build() { includeRemoteData, includeShellData, isCommonModelField, + isCustom, pageSize, additionalProperties); } diff --git a/src/main/java/com/merge/api/accounting/types/ExpensesListRequest.java b/src/main/java/com/merge/api/accounting/types/ExpensesListRequest.java index a47059e43..071444b9d 100644 --- a/src/main/java/com/merge/api/accounting/types/ExpensesListRequest.java +++ b/src/main/java/com/merge/api/accounting/types/ExpensesListRequest.java @@ -324,6 +324,9 @@ public Builder from(ExpensesListRequest other) { return this; } + /** + *

    Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.

    + */ @JsonSetter(value = "expand", nulls = Nulls.SKIP) public Builder expand(Optional> expand) { this.expand = expand; @@ -340,6 +343,9 @@ public Builder expand(ExpensesListRequestExpandItem expand) { return this; } + /** + *

    If provided, will only return expenses for this company.

    + */ @JsonSetter(value = "company_id", nulls = Nulls.SKIP) public Builder companyId(Optional companyId) { this.companyId = companyId; @@ -351,6 +357,9 @@ public Builder companyId(String companyId) { return this; } + /** + *

    If provided, will only return objects created after this datetime.

    + */ @JsonSetter(value = "created_after", nulls = Nulls.SKIP) public Builder createdAfter(Optional createdAfter) { this.createdAfter = createdAfter; @@ -362,6 +371,9 @@ public Builder createdAfter(OffsetDateTime createdAfter) { return this; } + /** + *

    If provided, will only return objects created before this datetime.

    + */ @JsonSetter(value = "created_before", nulls = Nulls.SKIP) public Builder createdBefore(Optional createdBefore) { this.createdBefore = createdBefore; @@ -373,6 +385,9 @@ public Builder createdBefore(OffsetDateTime createdBefore) { return this; } + /** + *

    The pagination cursor value.

    + */ @JsonSetter(value = "cursor", nulls = Nulls.SKIP) public Builder cursor(Optional cursor) { this.cursor = cursor; @@ -384,6 +399,9 @@ public Builder cursor(String cursor) { return this; } + /** + *

    Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

    + */ @JsonSetter(value = "include_deleted_data", nulls = Nulls.SKIP) public Builder includeDeletedData(Optional includeDeletedData) { this.includeDeletedData = includeDeletedData; @@ -395,6 +413,9 @@ public Builder includeDeletedData(Boolean includeDeletedData) { return this; } + /** + *

    Whether to include the original data Merge fetched from the third-party to produce these models.

    + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -406,6 +427,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

    Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format.

    + */ @JsonSetter(value = "include_remote_fields", nulls = Nulls.SKIP) public Builder includeRemoteFields(Optional includeRemoteFields) { this.includeRemoteFields = includeRemoteFields; @@ -417,6 +441,9 @@ public Builder includeRemoteFields(Boolean includeRemoteFields) { return this; } + /** + *

    Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

    + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; @@ -428,6 +455,9 @@ public Builder includeShellData(Boolean includeShellData) { return this; } + /** + *

    If provided, only objects synced by Merge after this date time will be returned.

    + */ @JsonSetter(value = "modified_after", nulls = Nulls.SKIP) public Builder modifiedAfter(Optional modifiedAfter) { this.modifiedAfter = modifiedAfter; @@ -439,6 +469,9 @@ public Builder modifiedAfter(OffsetDateTime modifiedAfter) { return this; } + /** + *

    If provided, only objects synced by Merge before this date time will be returned.

    + */ @JsonSetter(value = "modified_before", nulls = Nulls.SKIP) public Builder modifiedBefore(Optional modifiedBefore) { this.modifiedBefore = modifiedBefore; @@ -450,6 +483,9 @@ public Builder modifiedBefore(OffsetDateTime modifiedBefore) { return this; } + /** + *

    Number of results to return per page.

    + */ @JsonSetter(value = "page_size", nulls = Nulls.SKIP) public Builder pageSize(Optional pageSize) { this.pageSize = pageSize; @@ -461,6 +497,9 @@ public Builder pageSize(Integer pageSize) { return this; } + /** + *

    The API provider's ID for the given object.

    + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; @@ -472,6 +511,9 @@ public Builder remoteId(String remoteId) { return this; } + /** + *

    If provided, will only return objects created after this datetime.

    + */ @JsonSetter(value = "transaction_date_after", nulls = Nulls.SKIP) public Builder transactionDateAfter(Optional transactionDateAfter) { this.transactionDateAfter = transactionDateAfter; @@ -483,6 +525,9 @@ public Builder transactionDateAfter(OffsetDateTime transactionDateAfter) { return this; } + /** + *

    If provided, will only return objects created before this datetime.

    + */ @JsonSetter(value = "transaction_date_before", nulls = Nulls.SKIP) public Builder transactionDateBefore(Optional transactionDateBefore) { this.transactionDateBefore = transactionDateBefore; diff --git a/src/main/java/com/merge/api/accounting/types/ExpensesRemoteFieldClassesListRequest.java b/src/main/java/com/merge/api/accounting/types/ExpensesRemoteFieldClassesListRequest.java index 99e805c69..996d7ebaf 100644 --- a/src/main/java/com/merge/api/accounting/types/ExpensesRemoteFieldClassesListRequest.java +++ b/src/main/java/com/merge/api/accounting/types/ExpensesRemoteFieldClassesListRequest.java @@ -30,6 +30,8 @@ public final class ExpensesRemoteFieldClassesListRequest { private final Optional isCommonModelField; + private final Optional isCustom; + private final Optional pageSize; private final Map additionalProperties; @@ -40,6 +42,7 @@ private ExpensesRemoteFieldClassesListRequest( Optional includeRemoteData, Optional includeShellData, Optional isCommonModelField, + Optional isCustom, Optional pageSize, Map additionalProperties) { this.cursor = cursor; @@ -47,6 +50,7 @@ private ExpensesRemoteFieldClassesListRequest( this.includeRemoteData = includeRemoteData; this.includeShellData = includeShellData; this.isCommonModelField = isCommonModelField; + this.isCustom = isCustom; this.pageSize = pageSize; this.additionalProperties = additionalProperties; } @@ -91,6 +95,14 @@ public Optional getIsCommonModelField() { return isCommonModelField; } + /** + * @return If provided, will only return remote fields classes with this is_custom value + */ + @JsonProperty("is_custom") + public Optional getIsCustom() { + return isCustom; + } + /** * @return Number of results to return per page. */ @@ -117,6 +129,7 @@ private boolean equalTo(ExpensesRemoteFieldClassesListRequest other) { && includeRemoteData.equals(other.includeRemoteData) && includeShellData.equals(other.includeShellData) && isCommonModelField.equals(other.isCommonModelField) + && isCustom.equals(other.isCustom) && pageSize.equals(other.pageSize); } @@ -128,6 +141,7 @@ public int hashCode() { this.includeRemoteData, this.includeShellData, this.isCommonModelField, + this.isCustom, this.pageSize); } @@ -152,6 +166,8 @@ public static final class Builder { private Optional isCommonModelField = Optional.empty(); + private Optional isCustom = Optional.empty(); + private Optional pageSize = Optional.empty(); @JsonAnySetter @@ -165,10 +181,14 @@ public Builder from(ExpensesRemoteFieldClassesListRequest other) { includeRemoteData(other.getIncludeRemoteData()); includeShellData(other.getIncludeShellData()); isCommonModelField(other.getIsCommonModelField()); + isCustom(other.getIsCustom()); pageSize(other.getPageSize()); return this; } + /** + *

    The pagination cursor value.

    + */ @JsonSetter(value = "cursor", nulls = Nulls.SKIP) public Builder cursor(Optional cursor) { this.cursor = cursor; @@ -180,6 +200,9 @@ public Builder cursor(String cursor) { return this; } + /** + *

    Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

    + */ @JsonSetter(value = "include_deleted_data", nulls = Nulls.SKIP) public Builder includeDeletedData(Optional includeDeletedData) { this.includeDeletedData = includeDeletedData; @@ -191,6 +214,9 @@ public Builder includeDeletedData(Boolean includeDeletedData) { return this; } + /** + *

    Whether to include the original data Merge fetched from the third-party to produce these models.

    + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -202,6 +228,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

    Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

    + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; @@ -213,6 +242,9 @@ public Builder includeShellData(Boolean includeShellData) { return this; } + /** + *

    If provided, will only return remote field classes with this is_common_model_field value

    + */ @JsonSetter(value = "is_common_model_field", nulls = Nulls.SKIP) public Builder isCommonModelField(Optional isCommonModelField) { this.isCommonModelField = isCommonModelField; @@ -224,6 +256,23 @@ public Builder isCommonModelField(Boolean isCommonModelField) { return this; } + /** + *

    If provided, will only return remote fields classes with this is_custom value

    + */ + @JsonSetter(value = "is_custom", nulls = Nulls.SKIP) + public Builder isCustom(Optional isCustom) { + this.isCustom = isCustom; + return this; + } + + public Builder isCustom(Boolean isCustom) { + this.isCustom = Optional.ofNullable(isCustom); + return this; + } + + /** + *

    Number of results to return per page.

    + */ @JsonSetter(value = "page_size", nulls = Nulls.SKIP) public Builder pageSize(Optional pageSize) { this.pageSize = pageSize; @@ -242,6 +291,7 @@ public ExpensesRemoteFieldClassesListRequest build() { includeRemoteData, includeShellData, isCommonModelField, + isCustom, pageSize, additionalProperties); } diff --git a/src/main/java/com/merge/api/accounting/types/ExpensesRetrieveRequest.java b/src/main/java/com/merge/api/accounting/types/ExpensesRetrieveRequest.java index cd89ed3a6..5d9186704 100644 --- a/src/main/java/com/merge/api/accounting/types/ExpensesRetrieveRequest.java +++ b/src/main/java/com/merge/api/accounting/types/ExpensesRetrieveRequest.java @@ -132,6 +132,9 @@ public Builder from(ExpensesRetrieveRequest other) { return this; } + /** + *

    Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.

    + */ @JsonSetter(value = "expand", nulls = Nulls.SKIP) public Builder expand(Optional> expand) { this.expand = expand; @@ -148,6 +151,9 @@ public Builder expand(ExpensesRetrieveRequestExpandItem expand) { return this; } + /** + *

    Whether to include the original data Merge fetched from the third-party to produce these models.

    + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -159,6 +165,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

    Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format.

    + */ @JsonSetter(value = "include_remote_fields", nulls = Nulls.SKIP) public Builder includeRemoteFields(Optional includeRemoteFields) { this.includeRemoteFields = includeRemoteFields; @@ -170,6 +179,9 @@ public Builder includeRemoteFields(Boolean includeRemoteFields) { return this; } + /** + *

    Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

    + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; diff --git a/src/main/java/com/merge/api/accounting/types/ExternalTargetFieldApiResponse.java b/src/main/java/com/merge/api/accounting/types/ExternalTargetFieldApiResponse.java index bb23365c4..4ba80d12e 100644 --- a/src/main/java/com/merge/api/accounting/types/ExternalTargetFieldApiResponse.java +++ b/src/main/java/com/merge/api/accounting/types/ExternalTargetFieldApiResponse.java @@ -67,6 +67,8 @@ public final class ExternalTargetFieldApiResponse { private final Optional> paymentMethod; + private final Optional> project; + private final Optional> paymentTerm; private final Map additionalProperties; @@ -95,6 +97,7 @@ private ExternalTargetFieldApiResponse( Optional> bankFeedAccount, Optional> employee, Optional> paymentMethod, + Optional> project, Optional> paymentTerm, Map additionalProperties) { this.account = account; @@ -120,6 +123,7 @@ private ExternalTargetFieldApiResponse( this.bankFeedAccount = bankFeedAccount; this.employee = employee; this.paymentMethod = paymentMethod; + this.project = project; this.paymentTerm = paymentTerm; this.additionalProperties = additionalProperties; } @@ -239,6 +243,11 @@ public Optional> getPaymentMethod() { return paymentMethod; } + @JsonProperty("Project") + public Optional> getProject() { + return project; + } + @JsonProperty("PaymentTerm") public Optional> getPaymentTerm() { return paymentTerm; @@ -279,6 +288,7 @@ private boolean equalTo(ExternalTargetFieldApiResponse other) { && bankFeedAccount.equals(other.bankFeedAccount) && employee.equals(other.employee) && paymentMethod.equals(other.paymentMethod) + && project.equals(other.project) && paymentTerm.equals(other.paymentTerm); } @@ -308,6 +318,7 @@ public int hashCode() { this.bankFeedAccount, this.employee, this.paymentMethod, + this.project, this.paymentTerm); } @@ -368,6 +379,8 @@ public static final class Builder { private Optional> paymentMethod = Optional.empty(); + private Optional> project = Optional.empty(); + private Optional> paymentTerm = Optional.empty(); @JsonAnySetter @@ -399,6 +412,7 @@ public Builder from(ExternalTargetFieldApiResponse other) { bankFeedAccount(other.getBankFeedAccount()); employee(other.getEmployee()); paymentMethod(other.getPaymentMethod()); + project(other.getProject()); paymentTerm(other.getPaymentTerm()); return this; } @@ -656,6 +670,17 @@ public Builder paymentMethod(List paymentMethod) { return this; } + @JsonSetter(value = "Project", nulls = Nulls.SKIP) + public Builder project(Optional> project) { + this.project = project; + return this; + } + + public Builder project(List project) { + this.project = Optional.ofNullable(project); + return this; + } + @JsonSetter(value = "PaymentTerm", nulls = Nulls.SKIP) public Builder paymentTerm(Optional> paymentTerm) { this.paymentTerm = paymentTerm; @@ -692,6 +717,7 @@ public ExternalTargetFieldApiResponse build() { bankFeedAccount, employee, paymentMethod, + project, paymentTerm, additionalProperties); } diff --git a/src/main/java/com/merge/api/accounting/types/FieldMappingApiInstanceResponse.java b/src/main/java/com/merge/api/accounting/types/FieldMappingApiInstanceResponse.java index 9274392d8..a2117d62b 100644 --- a/src/main/java/com/merge/api/accounting/types/FieldMappingApiInstanceResponse.java +++ b/src/main/java/com/merge/api/accounting/types/FieldMappingApiInstanceResponse.java @@ -67,6 +67,8 @@ public final class FieldMappingApiInstanceResponse { private final Optional> paymentMethod; + private final Optional> project; + private final Optional> paymentTerm; private final Map additionalProperties; @@ -95,6 +97,7 @@ private FieldMappingApiInstanceResponse( Optional> bankFeedAccount, Optional> employee, Optional> paymentMethod, + Optional> project, Optional> paymentTerm, Map additionalProperties) { this.account = account; @@ -120,6 +123,7 @@ private FieldMappingApiInstanceResponse( this.bankFeedAccount = bankFeedAccount; this.employee = employee; this.paymentMethod = paymentMethod; + this.project = project; this.paymentTerm = paymentTerm; this.additionalProperties = additionalProperties; } @@ -239,6 +243,11 @@ public Optional> getPaymentMethod() { return paymentMethod; } + @JsonProperty("Project") + public Optional> getProject() { + return project; + } + @JsonProperty("PaymentTerm") public Optional> getPaymentTerm() { return paymentTerm; @@ -279,6 +288,7 @@ private boolean equalTo(FieldMappingApiInstanceResponse other) { && bankFeedAccount.equals(other.bankFeedAccount) && employee.equals(other.employee) && paymentMethod.equals(other.paymentMethod) + && project.equals(other.project) && paymentTerm.equals(other.paymentTerm); } @@ -308,6 +318,7 @@ public int hashCode() { this.bankFeedAccount, this.employee, this.paymentMethod, + this.project, this.paymentTerm); } @@ -368,6 +379,8 @@ public static final class Builder { private Optional> paymentMethod = Optional.empty(); + private Optional> project = Optional.empty(); + private Optional> paymentTerm = Optional.empty(); @JsonAnySetter @@ -399,6 +412,7 @@ public Builder from(FieldMappingApiInstanceResponse other) { bankFeedAccount(other.getBankFeedAccount()); employee(other.getEmployee()); paymentMethod(other.getPaymentMethod()); + project(other.getProject()); paymentTerm(other.getPaymentTerm()); return this; } @@ -656,6 +670,17 @@ public Builder paymentMethod(List paymentMethod) { return this; } + @JsonSetter(value = "Project", nulls = Nulls.SKIP) + public Builder project(Optional> project) { + this.project = project; + return this; + } + + public Builder project(List project) { + this.project = Optional.ofNullable(project); + return this; + } + @JsonSetter(value = "PaymentTerm", nulls = Nulls.SKIP) public Builder paymentTerm(Optional> paymentTerm) { this.paymentTerm = paymentTerm; @@ -692,6 +717,7 @@ public FieldMappingApiInstanceResponse build() { bankFeedAccount, employee, paymentMethod, + project, paymentTerm, additionalProperties); } diff --git a/src/main/java/com/merge/api/accounting/types/FieldMappingsRetrieveRequest.java b/src/main/java/com/merge/api/accounting/types/FieldMappingsRetrieveRequest.java index fd1742ce3..1c60fc94b 100644 --- a/src/main/java/com/merge/api/accounting/types/FieldMappingsRetrieveRequest.java +++ b/src/main/java/com/merge/api/accounting/types/FieldMappingsRetrieveRequest.java @@ -81,6 +81,9 @@ public Builder from(FieldMappingsRetrieveRequest other) { return this; } + /** + *

    If true, remote fields metadata is excluded from each field mapping instance (i.e. remote_fields.remote_key_name and remote_fields.schema will be null). This will increase the speed of the request since these fields require some calculations.

    + */ @JsonSetter(value = "exclude_remote_field_metadata", nulls = Nulls.SKIP) public Builder excludeRemoteFieldMetadata(Optional excludeRemoteFieldMetadata) { this.excludeRemoteFieldMetadata = excludeRemoteFieldMetadata; diff --git a/src/main/java/com/merge/api/accounting/types/GeneralLedgerTransaction.java b/src/main/java/com/merge/api/accounting/types/GeneralLedgerTransaction.java index 3ef22868d..bf3c4003a 100644 --- a/src/main/java/com/merge/api/accounting/types/GeneralLedgerTransaction.java +++ b/src/main/java/com/merge/api/accounting/types/GeneralLedgerTransaction.java @@ -33,7 +33,7 @@ public final class GeneralLedgerTransaction { private final Optional underlyingTransactionRemoteId; - private final Optional underlyingTransactionType; + private final Optional underlyingTransactionType; private final Optional accountingPeriod; @@ -64,7 +64,7 @@ private GeneralLedgerTransaction( Optional createdAt, Optional modifiedAt, Optional underlyingTransactionRemoteId, - Optional underlyingTransactionType, + Optional underlyingTransactionType, Optional accountingPeriod, Optional company, Optional remoteUpdatedAt, @@ -145,7 +145,7 @@ public Optional getUnderlyingTransactionRemoteId() { * */ @JsonProperty("underlying_transaction_type") - public Optional getUnderlyingTransactionType() { + public Optional getUnderlyingTransactionType() { return underlyingTransactionType; } @@ -293,7 +293,8 @@ public static final class Builder { private Optional underlyingTransactionRemoteId = Optional.empty(); - private Optional underlyingTransactionType = Optional.empty(); + private Optional underlyingTransactionType = + Optional.empty(); private Optional accountingPeriod = Optional.empty(); @@ -353,6 +354,9 @@ public Builder id(String id) { return this; } + /** + *

    The third-party API ID of the matching object.

    + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; @@ -364,6 +368,9 @@ public Builder remoteId(String remoteId) { return this; } + /** + *

    The datetime that this object was created by Merge.

    + */ @JsonSetter(value = "created_at", nulls = Nulls.SKIP) public Builder createdAt(Optional createdAt) { this.createdAt = createdAt; @@ -375,6 +382,9 @@ public Builder createdAt(OffsetDateTime createdAt) { return this; } + /** + *

    The datetime that this object was modified by Merge.

    + */ @JsonSetter(value = "modified_at", nulls = Nulls.SKIP) public Builder modifiedAt(Optional modifiedAt) { this.modifiedAt = modifiedAt; @@ -386,6 +396,9 @@ public Builder modifiedAt(OffsetDateTime modifiedAt) { return this; } + /** + *

    The third party remote ID of the underlying transaction.

    + */ @JsonSetter(value = "underlying_transaction_remote_id", nulls = Nulls.SKIP) public Builder underlyingTransactionRemoteId(Optional underlyingTransactionRemoteId) { this.underlyingTransactionRemoteId = underlyingTransactionRemoteId; @@ -397,17 +410,34 @@ public Builder underlyingTransactionRemoteId(String underlyingTransactionRemoteI return this; } + /** + *

    The type of the underlying transaction.

    + *
      + *
    • INVOICE - INVOICE
    • + *
    • EXPENSE - EXPENSE
    • + *
    • TRANSACTION - TRANSACTION
    • + *
    • JOURNAL_ENTRY - JOURNAL_ENTRY
    • + *
    • PAYMENT - PAYMENT
    • + *
    • VENDOR_CREDIT - VENDOR_CREDIT
    • + *
    • CREDIT_NOTE - CREDIT_NOTE
    • + *
    + */ @JsonSetter(value = "underlying_transaction_type", nulls = Nulls.SKIP) - public Builder underlyingTransactionType(Optional underlyingTransactionType) { + public Builder underlyingTransactionType( + Optional underlyingTransactionType) { this.underlyingTransactionType = underlyingTransactionType; return this; } - public Builder underlyingTransactionType(UnderlyingTransactionTypeEnum underlyingTransactionType) { + public Builder underlyingTransactionType( + GeneralLedgerTransactionUnderlyingTransactionType underlyingTransactionType) { this.underlyingTransactionType = Optional.ofNullable(underlyingTransactionType); return this; } + /** + *

    The accounting period that the GeneralLedgerTransaction was generated in.

    + */ @JsonSetter(value = "accounting_period", nulls = Nulls.SKIP) public Builder accountingPeriod(Optional accountingPeriod) { this.accountingPeriod = accountingPeriod; @@ -419,6 +449,9 @@ public Builder accountingPeriod(GeneralLedgerTransactionAccountingPeriod account return this; } + /** + *

    The company the GeneralLedgerTransaction belongs to.

    + */ @JsonSetter(value = "company", nulls = Nulls.SKIP) public Builder company(Optional company) { this.company = company; @@ -430,6 +463,9 @@ public Builder company(GeneralLedgerTransactionCompany company) { return this; } + /** + *

    When the third party's GeneralLedgerTransaction entry was updated.

    + */ @JsonSetter(value = "remote_updated_at", nulls = Nulls.SKIP) public Builder remoteUpdatedAt(Optional remoteUpdatedAt) { this.remoteUpdatedAt = remoteUpdatedAt; @@ -441,6 +477,9 @@ public Builder remoteUpdatedAt(OffsetDateTime remoteUpdatedAt) { return this; } + /** + *

    When the third party's GeneralLedgerTransaction entry was created.

    + */ @JsonSetter(value = "remote_created_at", nulls = Nulls.SKIP) public Builder remoteCreatedAt(Optional remoteCreatedAt) { this.remoteCreatedAt = remoteCreatedAt; @@ -465,6 +504,9 @@ public Builder trackingCategories( return this; } + /** + *

    The date that the transaction was posted to the general ledger.

    + */ @JsonSetter(value = "posting_date", nulls = Nulls.SKIP) public Builder postingDate(Optional postingDate) { this.postingDate = postingDate; @@ -476,6 +518,9 @@ public Builder postingDate(OffsetDateTime postingDate) { return this; } + /** + *

    A list of “General Ledger Transaction Applied to Lines” objects.

    + */ @JsonSetter(value = "general_ledger_transaction_lines", nulls = Nulls.SKIP) public Builder generalLedgerTransactionLines( Optional> @@ -490,6 +535,9 @@ public Builder generalLedgerTransactionLines( return this; } + /** + *

    Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

    + */ @JsonSetter(value = "remote_was_deleted", nulls = Nulls.SKIP) public Builder remoteWasDeleted(Optional remoteWasDeleted) { this.remoteWasDeleted = remoteWasDeleted; diff --git a/src/main/java/com/merge/api/accounting/types/GeneralLedgerTransactionLine.java b/src/main/java/com/merge/api/accounting/types/GeneralLedgerTransactionLine.java index 93e2ce94c..6c2095e53 100644 --- a/src/main/java/com/merge/api/accounting/types/GeneralLedgerTransactionLine.java +++ b/src/main/java/com/merge/api/accounting/types/GeneralLedgerTransactionLine.java @@ -40,9 +40,11 @@ public final class GeneralLedgerTransactionLine { private final Optional contact; + private final Optional project; + private final Optional baseCurrency; - private final Optional transactionCurrency; + private final Optional transactionCurrency; private final Optional exchangeRate; @@ -75,8 +77,9 @@ private GeneralLedgerTransactionLine( Optional company, Optional employee, Optional contact, + Optional project, Optional baseCurrency, - Optional transactionCurrency, + Optional transactionCurrency, Optional exchangeRate, Optional description, Optional> trackingCategories, @@ -96,6 +99,7 @@ private GeneralLedgerTransactionLine( this.company = company; this.employee = employee; this.contact = contact; + this.project = project; this.baseCurrency = baseCurrency; this.transactionCurrency = transactionCurrency; this.exchangeRate = exchangeRate; @@ -163,6 +167,11 @@ public Optional getContact() { return contact; } + @JsonProperty("project") + public Optional getProject() { + return project; + } + /** * @return The base currency of the transaction *
      @@ -791,7 +800,7 @@ public Optional getBaseCurrency() { *
    */ @JsonProperty("transaction_currency") - public Optional getTransactionCurrency() { + public Optional getTransactionCurrency() { return transactionCurrency; } @@ -874,6 +883,7 @@ private boolean equalTo(GeneralLedgerTransactionLine other) { && company.equals(other.company) && employee.equals(other.employee) && contact.equals(other.contact) + && project.equals(other.project) && baseCurrency.equals(other.baseCurrency) && transactionCurrency.equals(other.transactionCurrency) && exchangeRate.equals(other.exchangeRate) @@ -899,6 +909,7 @@ public int hashCode() { this.company, this.employee, this.contact, + this.project, this.baseCurrency, this.transactionCurrency, this.exchangeRate, @@ -947,14 +958,23 @@ public interface _FinalStage { _FinalStage id(String id); + /** + *

    The third-party API ID of the matching object.

    + */ _FinalStage remoteId(Optional remoteId); _FinalStage remoteId(String remoteId); + /** + *

    The datetime that this object was created by Merge.

    + */ _FinalStage createdAt(Optional createdAt); _FinalStage createdAt(OffsetDateTime createdAt); + /** + *

    The datetime that this object was modified by Merge.

    + */ _FinalStage modifiedAt(Optional modifiedAt); _FinalStage modifiedAt(OffsetDateTime modifiedAt); @@ -963,6 +983,9 @@ public interface _FinalStage { _FinalStage account(GeneralLedgerTransactionLineAccount account); + /** + *

    The company the GeneralLedgerTransaction belongs to.

    + */ _FinalStage company(Optional company); _FinalStage company(GeneralLedgerTransactionLineCompany company); @@ -975,240 +998,12 @@ public interface _FinalStage { _FinalStage contact(GeneralLedgerTransactionLineContact contact); - _FinalStage baseCurrency(Optional baseCurrency); - - _FinalStage baseCurrency(TransactionCurrencyEnum baseCurrency); - - _FinalStage transactionCurrency(Optional transactionCurrency); - - _FinalStage transactionCurrency(TransactionCurrencyEnum transactionCurrency); - - _FinalStage exchangeRate(Optional exchangeRate); - - _FinalStage exchangeRate(String exchangeRate); - - _FinalStage description(Optional description); - - _FinalStage description(String description); - - _FinalStage trackingCategories( - Optional> trackingCategories); - - _FinalStage trackingCategories(List trackingCategories); - - _FinalStage item(Optional item); - - _FinalStage item(GeneralLedgerTransactionLineItem item); - - _FinalStage remoteWasDeleted(Optional remoteWasDeleted); - - _FinalStage remoteWasDeleted(Boolean remoteWasDeleted); - - _FinalStage fieldMappings(Optional> fieldMappings); - - _FinalStage fieldMappings(Map fieldMappings); - } - - @JsonIgnoreProperties(ignoreUnknown = true) - public static final class Builder - implements DebitAmountStage, - CreditAmountStage, - ForeignDebitAmountStage, - ForeignCreditAmountStage, - _FinalStage { - private String debitAmount; - - private String creditAmount; - - private String foreignDebitAmount; - - private String foreignCreditAmount; - - private Optional> fieldMappings = Optional.empty(); - - private Optional remoteWasDeleted = Optional.empty(); - - private Optional item = Optional.empty(); - - private Optional> trackingCategories = - Optional.empty(); - - private Optional description = Optional.empty(); - - private Optional exchangeRate = Optional.empty(); - - private Optional transactionCurrency = Optional.empty(); - - private Optional baseCurrency = Optional.empty(); - - private Optional contact = Optional.empty(); - - private Optional employee = Optional.empty(); - - private Optional company = Optional.empty(); - - private Optional account = Optional.empty(); - - private Optional modifiedAt = Optional.empty(); - - private Optional createdAt = Optional.empty(); - - private Optional remoteId = Optional.empty(); - - private Optional id = Optional.empty(); - - @JsonAnySetter - private Map additionalProperties = new HashMap<>(); - - private Builder() {} - - @java.lang.Override - public Builder from(GeneralLedgerTransactionLine other) { - id(other.getId()); - remoteId(other.getRemoteId()); - createdAt(other.getCreatedAt()); - modifiedAt(other.getModifiedAt()); - account(other.getAccount()); - company(other.getCompany()); - employee(other.getEmployee()); - contact(other.getContact()); - baseCurrency(other.getBaseCurrency()); - transactionCurrency(other.getTransactionCurrency()); - exchangeRate(other.getExchangeRate()); - description(other.getDescription()); - trackingCategories(other.getTrackingCategories()); - debitAmount(other.getDebitAmount()); - creditAmount(other.getCreditAmount()); - item(other.getItem()); - foreignDebitAmount(other.getForeignDebitAmount()); - foreignCreditAmount(other.getForeignCreditAmount()); - remoteWasDeleted(other.getRemoteWasDeleted()); - fieldMappings(other.getFieldMappings()); - return this; - } - - @java.lang.Override - @JsonSetter("debit_amount") - public CreditAmountStage debitAmount(@NotNull String debitAmount) { - this.debitAmount = debitAmount; - return this; - } - - @java.lang.Override - @JsonSetter("credit_amount") - public ForeignDebitAmountStage creditAmount(@NotNull String creditAmount) { - this.creditAmount = creditAmount; - return this; - } - - @java.lang.Override - @JsonSetter("foreign_debit_amount") - public ForeignCreditAmountStage foreignDebitAmount(@NotNull String foreignDebitAmount) { - this.foreignDebitAmount = foreignDebitAmount; - return this; - } - - @java.lang.Override - @JsonSetter("foreign_credit_amount") - public _FinalStage foreignCreditAmount(@NotNull String foreignCreditAmount) { - this.foreignCreditAmount = foreignCreditAmount; - return this; - } - - @java.lang.Override - public _FinalStage fieldMappings(Map fieldMappings) { - this.fieldMappings = Optional.ofNullable(fieldMappings); - return this; - } - - @java.lang.Override - @JsonSetter(value = "field_mappings", nulls = Nulls.SKIP) - public _FinalStage fieldMappings(Optional> fieldMappings) { - this.fieldMappings = fieldMappings; - return this; - } - - /** - *

    Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

    - * @return Reference to {@code this} so that method calls can be chained together. - */ - @java.lang.Override - public _FinalStage remoteWasDeleted(Boolean remoteWasDeleted) { - this.remoteWasDeleted = Optional.ofNullable(remoteWasDeleted); - return this; - } - - @java.lang.Override - @JsonSetter(value = "remote_was_deleted", nulls = Nulls.SKIP) - public _FinalStage remoteWasDeleted(Optional remoteWasDeleted) { - this.remoteWasDeleted = remoteWasDeleted; - return this; - } - - @java.lang.Override - public _FinalStage item(GeneralLedgerTransactionLineItem item) { - this.item = Optional.ofNullable(item); - return this; - } - - @java.lang.Override - @JsonSetter(value = "item", nulls = Nulls.SKIP) - public _FinalStage item(Optional item) { - this.item = item; - return this; - } - - @java.lang.Override - public _FinalStage trackingCategories( - List trackingCategories) { - this.trackingCategories = Optional.ofNullable(trackingCategories); - return this; - } - - @java.lang.Override - @JsonSetter(value = "tracking_categories", nulls = Nulls.SKIP) - public _FinalStage trackingCategories( - Optional> trackingCategories) { - this.trackingCategories = trackingCategories; - return this; - } - - /** - *

    A description of the line item.

    - * @return Reference to {@code this} so that method calls can be chained together. - */ - @java.lang.Override - public _FinalStage description(String description) { - this.description = Optional.ofNullable(description); - return this; - } - - @java.lang.Override - @JsonSetter(value = "description", nulls = Nulls.SKIP) - public _FinalStage description(Optional description) { - this.description = description; - return this; - } - - /** - *

    The exchange rate between the base currency and the transaction currency.

    - * @return Reference to {@code this} so that method calls can be chained together. - */ - @java.lang.Override - public _FinalStage exchangeRate(String exchangeRate) { - this.exchangeRate = Optional.ofNullable(exchangeRate); - return this; - } + _FinalStage project(Optional project); - @java.lang.Override - @JsonSetter(value = "exchange_rate", nulls = Nulls.SKIP) - public _FinalStage exchangeRate(Optional exchangeRate) { - this.exchangeRate = exchangeRate; - return this; - } + _FinalStage project(GeneralLedgerTransactionLineProject project); /** - *

    The transaction currency that the transaction is made in.

    + *

    The base currency of the transaction

    *
      *
    • XUA - ADB Unit of Account
    • *
    • AFN - Afghan Afghani
    • @@ -1517,20 +1312,1525 @@ public _FinalStage exchangeRate(Optional exchangeRate) { *
    • ZWR - Zimbabwean Dollar (2008)
    • *
    • ZWL - Zimbabwean Dollar (2009)
    • *
    - * @return Reference to {@code this} so that method calls can be chained together. */ - @java.lang.Override - public _FinalStage transactionCurrency(TransactionCurrencyEnum transactionCurrency) { - this.transactionCurrency = Optional.ofNullable(transactionCurrency); - return this; - } + _FinalStage baseCurrency(Optional baseCurrency); - @java.lang.Override - @JsonSetter(value = "transaction_currency", nulls = Nulls.SKIP) - public _FinalStage transactionCurrency(Optional transactionCurrency) { - this.transactionCurrency = transactionCurrency; - return this; - } + _FinalStage baseCurrency(TransactionCurrencyEnum baseCurrency); + + /** + *

    The transaction currency that the transaction is made in.

    + *
      + *
    • XUA - ADB Unit of Account
    • + *
    • AFN - Afghan Afghani
    • + *
    • AFA - Afghan Afghani (1927–2002)
    • + *
    • ALL - Albanian Lek
    • + *
    • ALK - Albanian Lek (1946–1965)
    • + *
    • DZD - Algerian Dinar
    • + *
    • ADP - Andorran Peseta
    • + *
    • AOA - Angolan Kwanza
    • + *
    • AOK - Angolan Kwanza (1977–1991)
    • + *
    • AON - Angolan New Kwanza (1990–2000)
    • + *
    • AOR - Angolan Readjusted Kwanza (1995–1999)
    • + *
    • ARA - Argentine Austral
    • + *
    • ARS - Argentine Peso
    • + *
    • ARM - Argentine Peso (1881–1970)
    • + *
    • ARP - Argentine Peso (1983–1985)
    • + *
    • ARL - Argentine Peso Ley (1970–1983)
    • + *
    • AMD - Armenian Dram
    • + *
    • AWG - Aruban Florin
    • + *
    • AUD - Australian Dollar
    • + *
    • ATS - Austrian Schilling
    • + *
    • AZN - Azerbaijani Manat
    • + *
    • AZM - Azerbaijani Manat (1993–2006)
    • + *
    • BSD - Bahamian Dollar
    • + *
    • BHD - Bahraini Dinar
    • + *
    • BDT - Bangladeshi Taka
    • + *
    • BBD - Barbadian Dollar
    • + *
    • BYN - Belarusian Ruble
    • + *
    • BYB - Belarusian Ruble (1994–1999)
    • + *
    • BYR - Belarusian Ruble (2000–2016)
    • + *
    • BEF - Belgian Franc
    • + *
    • BEC - Belgian Franc (convertible)
    • + *
    • BEL - Belgian Franc (financial)
    • + *
    • BZD - Belize Dollar
    • + *
    • BMD - Bermudan Dollar
    • + *
    • BTN - Bhutanese Ngultrum
    • + *
    • BOB - Bolivian Boliviano
    • + *
    • BOL - Bolivian Boliviano (1863–1963)
    • + *
    • BOV - Bolivian Mvdol
    • + *
    • BOP - Bolivian Peso
    • + *
    • BAM - Bosnia-Herzegovina Convertible Mark
    • + *
    • BAD - Bosnia-Herzegovina Dinar (1992–1994)
    • + *
    • BAN - Bosnia-Herzegovina New Dinar (1994–1997)
    • + *
    • BWP - Botswanan Pula
    • + *
    • BRC - Brazilian Cruzado (1986–1989)
    • + *
    • BRZ - Brazilian Cruzeiro (1942–1967)
    • + *
    • BRE - Brazilian Cruzeiro (1990–1993)
    • + *
    • BRR - Brazilian Cruzeiro (1993–1994)
    • + *
    • BRN - Brazilian New Cruzado (1989–1990)
    • + *
    • BRB - Brazilian New Cruzeiro (1967–1986)
    • + *
    • BRL - Brazilian Real
    • + *
    • GBP - British Pound
    • + *
    • BND - Brunei Dollar
    • + *
    • BGL - Bulgarian Hard Lev
    • + *
    • BGN - Bulgarian Lev
    • + *
    • BGO - Bulgarian Lev (1879–1952)
    • + *
    • BGM - Bulgarian Socialist Lev
    • + *
    • BUK - Burmese Kyat
    • + *
    • BIF - Burundian Franc
    • + *
    • XPF - CFP Franc
    • + *
    • KHR - Cambodian Riel
    • + *
    • CAD - Canadian Dollar
    • + *
    • CVE - Cape Verdean Escudo
    • + *
    • KYD - Cayman Islands Dollar
    • + *
    • XAF - Central African CFA Franc
    • + *
    • CLE - Chilean Escudo
    • + *
    • CLP - Chilean Peso
    • + *
    • CLF - Chilean Unit of Account (UF)
    • + *
    • CNX - Chinese People’s Bank Dollar
    • + *
    • CNY - Chinese Yuan
    • + *
    • CNH - Chinese Yuan (offshore)
    • + *
    • COP - Colombian Peso
    • + *
    • COU - Colombian Real Value Unit
    • + *
    • KMF - Comorian Franc
    • + *
    • CDF - Congolese Franc
    • + *
    • CRC - Costa Rican Colón
    • + *
    • HRD - Croatian Dinar
    • + *
    • HRK - Croatian Kuna
    • + *
    • CUC - Cuban Convertible Peso
    • + *
    • CUP - Cuban Peso
    • + *
    • CYP - Cypriot Pound
    • + *
    • CZK - Czech Koruna
    • + *
    • CSK - Czechoslovak Hard Koruna
    • + *
    • DKK - Danish Krone
    • + *
    • DJF - Djiboutian Franc
    • + *
    • DOP - Dominican Peso
    • + *
    • NLG - Dutch Guilder
    • + *
    • XCD - East Caribbean Dollar
    • + *
    • DDM - East German Mark
    • + *
    • ECS - Ecuadorian Sucre
    • + *
    • ECV - Ecuadorian Unit of Constant Value
    • + *
    • EGP - Egyptian Pound
    • + *
    • GQE - Equatorial Guinean Ekwele
    • + *
    • ERN - Eritrean Nakfa
    • + *
    • EEK - Estonian Kroon
    • + *
    • ETB - Ethiopian Birr
    • + *
    • EUR - Euro
    • + *
    • XBA - European Composite Unit
    • + *
    • XEU - European Currency Unit
    • + *
    • XBB - European Monetary Unit
    • + *
    • XBC - European Unit of Account (XBC)
    • + *
    • XBD - European Unit of Account (XBD)
    • + *
    • FKP - Falkland Islands Pound
    • + *
    • FJD - Fijian Dollar
    • + *
    • FIM - Finnish Markka
    • + *
    • FRF - French Franc
    • + *
    • XFO - French Gold Franc
    • + *
    • XFU - French UIC-Franc
    • + *
    • GMD - Gambian Dalasi
    • + *
    • GEK - Georgian Kupon Larit
    • + *
    • GEL - Georgian Lari
    • + *
    • DEM - German Mark
    • + *
    • GHS - Ghanaian Cedi
    • + *
    • GHC - Ghanaian Cedi (1979–2007)
    • + *
    • GIP - Gibraltar Pound
    • + *
    • XAU - Gold
    • + *
    • GRD - Greek Drachma
    • + *
    • GTQ - Guatemalan Quetzal
    • + *
    • GWP - Guinea-Bissau Peso
    • + *
    • GNF - Guinean Franc
    • + *
    • GNS - Guinean Syli
    • + *
    • GYD - Guyanaese Dollar
    • + *
    • HTG - Haitian Gourde
    • + *
    • HNL - Honduran Lempira
    • + *
    • HKD - Hong Kong Dollar
    • + *
    • HUF - Hungarian Forint
    • + *
    • IMP - IMP
    • + *
    • ISK - Icelandic Króna
    • + *
    • ISJ - Icelandic Króna (1918–1981)
    • + *
    • INR - Indian Rupee
    • + *
    • IDR - Indonesian Rupiah
    • + *
    • IRR - Iranian Rial
    • + *
    • IQD - Iraqi Dinar
    • + *
    • IEP - Irish Pound
    • + *
    • ILS - Israeli New Shekel
    • + *
    • ILP - Israeli Pound
    • + *
    • ILR - Israeli Shekel (1980–1985)
    • + *
    • ITL - Italian Lira
    • + *
    • JMD - Jamaican Dollar
    • + *
    • JPY - Japanese Yen
    • + *
    • JOD - Jordanian Dinar
    • + *
    • KZT - Kazakhstani Tenge
    • + *
    • KES - Kenyan Shilling
    • + *
    • KWD - Kuwaiti Dinar
    • + *
    • KGS - Kyrgystani Som
    • + *
    • LAK - Laotian Kip
    • + *
    • LVL - Latvian Lats
    • + *
    • LVR - Latvian Ruble
    • + *
    • LBP - Lebanese Pound
    • + *
    • LSL - Lesotho Loti
    • + *
    • LRD - Liberian Dollar
    • + *
    • LYD - Libyan Dinar
    • + *
    • LTL - Lithuanian Litas
    • + *
    • LTT - Lithuanian Talonas
    • + *
    • LUL - Luxembourg Financial Franc
    • + *
    • LUC - Luxembourgian Convertible Franc
    • + *
    • LUF - Luxembourgian Franc
    • + *
    • MOP - Macanese Pataca
    • + *
    • MKD - Macedonian Denar
    • + *
    • MKN - Macedonian Denar (1992–1993)
    • + *
    • MGA - Malagasy Ariary
    • + *
    • MGF - Malagasy Franc
    • + *
    • MWK - Malawian Kwacha
    • + *
    • MYR - Malaysian Ringgit
    • + *
    • MVR - Maldivian Rufiyaa
    • + *
    • MVP - Maldivian Rupee (1947–1981)
    • + *
    • MLF - Malian Franc
    • + *
    • MTL - Maltese Lira
    • + *
    • MTP - Maltese Pound
    • + *
    • MRU - Mauritanian Ouguiya
    • + *
    • MRO - Mauritanian Ouguiya (1973–2017)
    • + *
    • MUR - Mauritian Rupee
    • + *
    • MXV - Mexican Investment Unit
    • + *
    • MXN - Mexican Peso
    • + *
    • MXP - Mexican Silver Peso (1861–1992)
    • + *
    • MDC - Moldovan Cupon
    • + *
    • MDL - Moldovan Leu
    • + *
    • MCF - Monegasque Franc
    • + *
    • MNT - Mongolian Tugrik
    • + *
    • MAD - Moroccan Dirham
    • + *
    • MAF - Moroccan Franc
    • + *
    • MZE - Mozambican Escudo
    • + *
    • MZN - Mozambican Metical
    • + *
    • MZM - Mozambican Metical (1980–2006)
    • + *
    • MMK - Myanmar Kyat
    • + *
    • NAD - Namibian Dollar
    • + *
    • NPR - Nepalese Rupee
    • + *
    • ANG - Netherlands Antillean Guilder
    • + *
    • TWD - New Taiwan Dollar
    • + *
    • NZD - New Zealand Dollar
    • + *
    • NIO - Nicaraguan Córdoba
    • + *
    • NIC - Nicaraguan Córdoba (1988–1991)
    • + *
    • NGN - Nigerian Naira
    • + *
    • KPW - North Korean Won
    • + *
    • NOK - Norwegian Krone
    • + *
    • OMR - Omani Rial
    • + *
    • PKR - Pakistani Rupee
    • + *
    • XPD - Palladium
    • + *
    • PAB - Panamanian Balboa
    • + *
    • PGK - Papua New Guinean Kina
    • + *
    • PYG - Paraguayan Guarani
    • + *
    • PEI - Peruvian Inti
    • + *
    • PEN - Peruvian Sol
    • + *
    • PES - Peruvian Sol (1863–1965)
    • + *
    • PHP - Philippine Peso
    • + *
    • XPT - Platinum
    • + *
    • PLN - Polish Zloty
    • + *
    • PLZ - Polish Zloty (1950–1995)
    • + *
    • PTE - Portuguese Escudo
    • + *
    • GWE - Portuguese Guinea Escudo
    • + *
    • QAR - Qatari Rial
    • + *
    • XRE - RINET Funds
    • + *
    • RHD - Rhodesian Dollar
    • + *
    • RON - Romanian Leu
    • + *
    • ROL - Romanian Leu (1952–2006)
    • + *
    • RUB - Russian Ruble
    • + *
    • RUR - Russian Ruble (1991–1998)
    • + *
    • RWF - Rwandan Franc
    • + *
    • SVC - Salvadoran Colón
    • + *
    • WST - Samoan Tala
    • + *
    • SAR - Saudi Riyal
    • + *
    • RSD - Serbian Dinar
    • + *
    • CSD - Serbian Dinar (2002–2006)
    • + *
    • SCR - Seychellois Rupee
    • + *
    • SLL - Sierra Leonean Leone
    • + *
    • XAG - Silver
    • + *
    • SGD - Singapore Dollar
    • + *
    • SKK - Slovak Koruna
    • + *
    • SIT - Slovenian Tolar
    • + *
    • SBD - Solomon Islands Dollar
    • + *
    • SOS - Somali Shilling
    • + *
    • ZAR - South African Rand
    • + *
    • ZAL - South African Rand (financial)
    • + *
    • KRH - South Korean Hwan (1953–1962)
    • + *
    • KRW - South Korean Won
    • + *
    • KRO - South Korean Won (1945–1953)
    • + *
    • SSP - South Sudanese Pound
    • + *
    • SUR - Soviet Rouble
    • + *
    • ESP - Spanish Peseta
    • + *
    • ESA - Spanish Peseta (A account)
    • + *
    • ESB - Spanish Peseta (convertible account)
    • + *
    • XDR - Special Drawing Rights
    • + *
    • LKR - Sri Lankan Rupee
    • + *
    • SHP - St. Helena Pound
    • + *
    • XSU - Sucre
    • + *
    • SDD - Sudanese Dinar (1992–2007)
    • + *
    • SDG - Sudanese Pound
    • + *
    • SDP - Sudanese Pound (1957–1998)
    • + *
    • SRD - Surinamese Dollar
    • + *
    • SRG - Surinamese Guilder
    • + *
    • SZL - Swazi Lilangeni
    • + *
    • SEK - Swedish Krona
    • + *
    • CHF - Swiss Franc
    • + *
    • SYP - Syrian Pound
    • + *
    • STN - São Tomé & Príncipe Dobra
    • + *
    • STD - São Tomé & Príncipe Dobra (1977–2017)
    • + *
    • TVD - TVD
    • + *
    • TJR - Tajikistani Ruble
    • + *
    • TJS - Tajikistani Somoni
    • + *
    • TZS - Tanzanian Shilling
    • + *
    • XTS - Testing Currency Code
    • + *
    • THB - Thai Baht
    • + *
    • XXX - The codes assigned for transactions where no currency is involved
    • + *
    • TPE - Timorese Escudo
    • + *
    • TOP - Tongan Paʻanga
    • + *
    • TTD - Trinidad & Tobago Dollar
    • + *
    • TND - Tunisian Dinar
    • + *
    • TRY - Turkish Lira
    • + *
    • TRL - Turkish Lira (1922–2005)
    • + *
    • TMT - Turkmenistani Manat
    • + *
    • TMM - Turkmenistani Manat (1993–2009)
    • + *
    • USD - US Dollar
    • + *
    • USN - US Dollar (Next day)
    • + *
    • USS - US Dollar (Same day)
    • + *
    • UGX - Ugandan Shilling
    • + *
    • UGS - Ugandan Shilling (1966–1987)
    • + *
    • UAH - Ukrainian Hryvnia
    • + *
    • UAK - Ukrainian Karbovanets
    • + *
    • AED - United Arab Emirates Dirham
    • + *
    • UYW - Uruguayan Nominal Wage Index Unit
    • + *
    • UYU - Uruguayan Peso
    • + *
    • UYP - Uruguayan Peso (1975–1993)
    • + *
    • UYI - Uruguayan Peso (Indexed Units)
    • + *
    • UZS - Uzbekistani Som
    • + *
    • VUV - Vanuatu Vatu
    • + *
    • VES - Venezuelan Bolívar
    • + *
    • VEB - Venezuelan Bolívar (1871–2008)
    • + *
    • VEF - Venezuelan Bolívar (2008–2018)
    • + *
    • VND - Vietnamese Dong
    • + *
    • VNN - Vietnamese Dong (1978–1985)
    • + *
    • CHE - WIR Euro
    • + *
    • CHW - WIR Franc
    • + *
    • XOF - West African CFA Franc
    • + *
    • YDD - Yemeni Dinar
    • + *
    • YER - Yemeni Rial
    • + *
    • YUN - Yugoslavian Convertible Dinar (1990–1992)
    • + *
    • YUD - Yugoslavian Hard Dinar (1966–1990)
    • + *
    • YUM - Yugoslavian New Dinar (1994–2002)
    • + *
    • YUR - Yugoslavian Reformed Dinar (1992–1993)
    • + *
    • ZWN - ZWN
    • + *
    • ZRN - Zairean New Zaire (1993–1998)
    • + *
    • ZRZ - Zairean Zaire (1971–1993)
    • + *
    • ZMW - Zambian Kwacha
    • + *
    • ZMK - Zambian Kwacha (1968–2012)
    • + *
    • ZWD - Zimbabwean Dollar (1980–2008)
    • + *
    • ZWR - Zimbabwean Dollar (2008)
    • + *
    • ZWL - Zimbabwean Dollar (2009)
    • + *
    + */ + _FinalStage transactionCurrency(Optional transactionCurrency); + + _FinalStage transactionCurrency(GeneralLedgerTransactionLineTransactionCurrency transactionCurrency); + + /** + *

    The exchange rate between the base currency and the transaction currency.

    + */ + _FinalStage exchangeRate(Optional exchangeRate); + + _FinalStage exchangeRate(String exchangeRate); + + /** + *

    A description of the line item.

    + */ + _FinalStage description(Optional description); + + _FinalStage description(String description); + + _FinalStage trackingCategories( + Optional> trackingCategories); + + _FinalStage trackingCategories(List trackingCategories); + + _FinalStage item(Optional item); + + _FinalStage item(GeneralLedgerTransactionLineItem item); + + /** + *

    Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

    + */ + _FinalStage remoteWasDeleted(Optional remoteWasDeleted); + + _FinalStage remoteWasDeleted(Boolean remoteWasDeleted); + + _FinalStage fieldMappings(Optional> fieldMappings); + + _FinalStage fieldMappings(Map fieldMappings); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder + implements DebitAmountStage, + CreditAmountStage, + ForeignDebitAmountStage, + ForeignCreditAmountStage, + _FinalStage { + private String debitAmount; + + private String creditAmount; + + private String foreignDebitAmount; + + private String foreignCreditAmount; + + private Optional> fieldMappings = Optional.empty(); + + private Optional remoteWasDeleted = Optional.empty(); + + private Optional item = Optional.empty(); + + private Optional> trackingCategories = + Optional.empty(); + + private Optional description = Optional.empty(); + + private Optional exchangeRate = Optional.empty(); + + private Optional transactionCurrency = Optional.empty(); + + private Optional baseCurrency = Optional.empty(); + + private Optional project = Optional.empty(); + + private Optional contact = Optional.empty(); + + private Optional employee = Optional.empty(); + + private Optional company = Optional.empty(); + + private Optional account = Optional.empty(); + + private Optional modifiedAt = Optional.empty(); + + private Optional createdAt = Optional.empty(); + + private Optional remoteId = Optional.empty(); + + private Optional id = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(GeneralLedgerTransactionLine other) { + id(other.getId()); + remoteId(other.getRemoteId()); + createdAt(other.getCreatedAt()); + modifiedAt(other.getModifiedAt()); + account(other.getAccount()); + company(other.getCompany()); + employee(other.getEmployee()); + contact(other.getContact()); + project(other.getProject()); + baseCurrency(other.getBaseCurrency()); + transactionCurrency(other.getTransactionCurrency()); + exchangeRate(other.getExchangeRate()); + description(other.getDescription()); + trackingCategories(other.getTrackingCategories()); + debitAmount(other.getDebitAmount()); + creditAmount(other.getCreditAmount()); + item(other.getItem()); + foreignDebitAmount(other.getForeignDebitAmount()); + foreignCreditAmount(other.getForeignCreditAmount()); + remoteWasDeleted(other.getRemoteWasDeleted()); + fieldMappings(other.getFieldMappings()); + return this; + } + + @java.lang.Override + @JsonSetter("debit_amount") + public CreditAmountStage debitAmount(@NotNull String debitAmount) { + this.debitAmount = debitAmount; + return this; + } + + @java.lang.Override + @JsonSetter("credit_amount") + public ForeignDebitAmountStage creditAmount(@NotNull String creditAmount) { + this.creditAmount = creditAmount; + return this; + } + + @java.lang.Override + @JsonSetter("foreign_debit_amount") + public ForeignCreditAmountStage foreignDebitAmount(@NotNull String foreignDebitAmount) { + this.foreignDebitAmount = foreignDebitAmount; + return this; + } + + @java.lang.Override + @JsonSetter("foreign_credit_amount") + public _FinalStage foreignCreditAmount(@NotNull String foreignCreditAmount) { + this.foreignCreditAmount = foreignCreditAmount; + return this; + } + + @java.lang.Override + public _FinalStage fieldMappings(Map fieldMappings) { + this.fieldMappings = Optional.ofNullable(fieldMappings); + return this; + } + + @java.lang.Override + @JsonSetter(value = "field_mappings", nulls = Nulls.SKIP) + public _FinalStage fieldMappings(Optional> fieldMappings) { + this.fieldMappings = fieldMappings; + return this; + } + + /** + *

    Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

    + * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage remoteWasDeleted(Boolean remoteWasDeleted) { + this.remoteWasDeleted = Optional.ofNullable(remoteWasDeleted); + return this; + } + + /** + *

    Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

    + */ + @java.lang.Override + @JsonSetter(value = "remote_was_deleted", nulls = Nulls.SKIP) + public _FinalStage remoteWasDeleted(Optional remoteWasDeleted) { + this.remoteWasDeleted = remoteWasDeleted; + return this; + } + + @java.lang.Override + public _FinalStage item(GeneralLedgerTransactionLineItem item) { + this.item = Optional.ofNullable(item); + return this; + } + + @java.lang.Override + @JsonSetter(value = "item", nulls = Nulls.SKIP) + public _FinalStage item(Optional item) { + this.item = item; + return this; + } + + @java.lang.Override + public _FinalStage trackingCategories( + List trackingCategories) { + this.trackingCategories = Optional.ofNullable(trackingCategories); + return this; + } + + @java.lang.Override + @JsonSetter(value = "tracking_categories", nulls = Nulls.SKIP) + public _FinalStage trackingCategories( + Optional> trackingCategories) { + this.trackingCategories = trackingCategories; + return this; + } + + /** + *

    A description of the line item.

    + * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage description(String description) { + this.description = Optional.ofNullable(description); + return this; + } + + /** + *

    A description of the line item.

    + */ + @java.lang.Override + @JsonSetter(value = "description", nulls = Nulls.SKIP) + public _FinalStage description(Optional description) { + this.description = description; + return this; + } + + /** + *

    The exchange rate between the base currency and the transaction currency.

    + * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage exchangeRate(String exchangeRate) { + this.exchangeRate = Optional.ofNullable(exchangeRate); + return this; + } + + /** + *

    The exchange rate between the base currency and the transaction currency.

    + */ + @java.lang.Override + @JsonSetter(value = "exchange_rate", nulls = Nulls.SKIP) + public _FinalStage exchangeRate(Optional exchangeRate) { + this.exchangeRate = exchangeRate; + return this; + } + + /** + *

    The transaction currency that the transaction is made in.

    + *
      + *
    • XUA - ADB Unit of Account
    • + *
    • AFN - Afghan Afghani
    • + *
    • AFA - Afghan Afghani (1927–2002)
    • + *
    • ALL - Albanian Lek
    • + *
    • ALK - Albanian Lek (1946–1965)
    • + *
    • DZD - Algerian Dinar
    • + *
    • ADP - Andorran Peseta
    • + *
    • AOA - Angolan Kwanza
    • + *
    • AOK - Angolan Kwanza (1977–1991)
    • + *
    • AON - Angolan New Kwanza (1990–2000)
    • + *
    • AOR - Angolan Readjusted Kwanza (1995–1999)
    • + *
    • ARA - Argentine Austral
    • + *
    • ARS - Argentine Peso
    • + *
    • ARM - Argentine Peso (1881–1970)
    • + *
    • ARP - Argentine Peso (1983–1985)
    • + *
    • ARL - Argentine Peso Ley (1970–1983)
    • + *
    • AMD - Armenian Dram
    • + *
    • AWG - Aruban Florin
    • + *
    • AUD - Australian Dollar
    • + *
    • ATS - Austrian Schilling
    • + *
    • AZN - Azerbaijani Manat
    • + *
    • AZM - Azerbaijani Manat (1993–2006)
    • + *
    • BSD - Bahamian Dollar
    • + *
    • BHD - Bahraini Dinar
    • + *
    • BDT - Bangladeshi Taka
    • + *
    • BBD - Barbadian Dollar
    • + *
    • BYN - Belarusian Ruble
    • + *
    • BYB - Belarusian Ruble (1994–1999)
    • + *
    • BYR - Belarusian Ruble (2000–2016)
    • + *
    • BEF - Belgian Franc
    • + *
    • BEC - Belgian Franc (convertible)
    • + *
    • BEL - Belgian Franc (financial)
    • + *
    • BZD - Belize Dollar
    • + *
    • BMD - Bermudan Dollar
    • + *
    • BTN - Bhutanese Ngultrum
    • + *
    • BOB - Bolivian Boliviano
    • + *
    • BOL - Bolivian Boliviano (1863–1963)
    • + *
    • BOV - Bolivian Mvdol
    • + *
    • BOP - Bolivian Peso
    • + *
    • BAM - Bosnia-Herzegovina Convertible Mark
    • + *
    • BAD - Bosnia-Herzegovina Dinar (1992–1994)
    • + *
    • BAN - Bosnia-Herzegovina New Dinar (1994–1997)
    • + *
    • BWP - Botswanan Pula
    • + *
    • BRC - Brazilian Cruzado (1986–1989)
    • + *
    • BRZ - Brazilian Cruzeiro (1942–1967)
    • + *
    • BRE - Brazilian Cruzeiro (1990–1993)
    • + *
    • BRR - Brazilian Cruzeiro (1993–1994)
    • + *
    • BRN - Brazilian New Cruzado (1989–1990)
    • + *
    • BRB - Brazilian New Cruzeiro (1967–1986)
    • + *
    • BRL - Brazilian Real
    • + *
    • GBP - British Pound
    • + *
    • BND - Brunei Dollar
    • + *
    • BGL - Bulgarian Hard Lev
    • + *
    • BGN - Bulgarian Lev
    • + *
    • BGO - Bulgarian Lev (1879–1952)
    • + *
    • BGM - Bulgarian Socialist Lev
    • + *
    • BUK - Burmese Kyat
    • + *
    • BIF - Burundian Franc
    • + *
    • XPF - CFP Franc
    • + *
    • KHR - Cambodian Riel
    • + *
    • CAD - Canadian Dollar
    • + *
    • CVE - Cape Verdean Escudo
    • + *
    • KYD - Cayman Islands Dollar
    • + *
    • XAF - Central African CFA Franc
    • + *
    • CLE - Chilean Escudo
    • + *
    • CLP - Chilean Peso
    • + *
    • CLF - Chilean Unit of Account (UF)
    • + *
    • CNX - Chinese People’s Bank Dollar
    • + *
    • CNY - Chinese Yuan
    • + *
    • CNH - Chinese Yuan (offshore)
    • + *
    • COP - Colombian Peso
    • + *
    • COU - Colombian Real Value Unit
    • + *
    • KMF - Comorian Franc
    • + *
    • CDF - Congolese Franc
    • + *
    • CRC - Costa Rican Colón
    • + *
    • HRD - Croatian Dinar
    • + *
    • HRK - Croatian Kuna
    • + *
    • CUC - Cuban Convertible Peso
    • + *
    • CUP - Cuban Peso
    • + *
    • CYP - Cypriot Pound
    • + *
    • CZK - Czech Koruna
    • + *
    • CSK - Czechoslovak Hard Koruna
    • + *
    • DKK - Danish Krone
    • + *
    • DJF - Djiboutian Franc
    • + *
    • DOP - Dominican Peso
    • + *
    • NLG - Dutch Guilder
    • + *
    • XCD - East Caribbean Dollar
    • + *
    • DDM - East German Mark
    • + *
    • ECS - Ecuadorian Sucre
    • + *
    • ECV - Ecuadorian Unit of Constant Value
    • + *
    • EGP - Egyptian Pound
    • + *
    • GQE - Equatorial Guinean Ekwele
    • + *
    • ERN - Eritrean Nakfa
    • + *
    • EEK - Estonian Kroon
    • + *
    • ETB - Ethiopian Birr
    • + *
    • EUR - Euro
    • + *
    • XBA - European Composite Unit
    • + *
    • XEU - European Currency Unit
    • + *
    • XBB - European Monetary Unit
    • + *
    • XBC - European Unit of Account (XBC)
    • + *
    • XBD - European Unit of Account (XBD)
    • + *
    • FKP - Falkland Islands Pound
    • + *
    • FJD - Fijian Dollar
    • + *
    • FIM - Finnish Markka
    • + *
    • FRF - French Franc
    • + *
    • XFO - French Gold Franc
    • + *
    • XFU - French UIC-Franc
    • + *
    • GMD - Gambian Dalasi
    • + *
    • GEK - Georgian Kupon Larit
    • + *
    • GEL - Georgian Lari
    • + *
    • DEM - German Mark
    • + *
    • GHS - Ghanaian Cedi
    • + *
    • GHC - Ghanaian Cedi (1979–2007)
    • + *
    • GIP - Gibraltar Pound
    • + *
    • XAU - Gold
    • + *
    • GRD - Greek Drachma
    • + *
    • GTQ - Guatemalan Quetzal
    • + *
    • GWP - Guinea-Bissau Peso
    • + *
    • GNF - Guinean Franc
    • + *
    • GNS - Guinean Syli
    • + *
    • GYD - Guyanaese Dollar
    • + *
    • HTG - Haitian Gourde
    • + *
    • HNL - Honduran Lempira
    • + *
    • HKD - Hong Kong Dollar
    • + *
    • HUF - Hungarian Forint
    • + *
    • IMP - IMP
    • + *
    • ISK - Icelandic Króna
    • + *
    • ISJ - Icelandic Króna (1918–1981)
    • + *
    • INR - Indian Rupee
    • + *
    • IDR - Indonesian Rupiah
    • + *
    • IRR - Iranian Rial
    • + *
    • IQD - Iraqi Dinar
    • + *
    • IEP - Irish Pound
    • + *
    • ILS - Israeli New Shekel
    • + *
    • ILP - Israeli Pound
    • + *
    • ILR - Israeli Shekel (1980–1985)
    • + *
    • ITL - Italian Lira
    • + *
    • JMD - Jamaican Dollar
    • + *
    • JPY - Japanese Yen
    • + *
    • JOD - Jordanian Dinar
    • + *
    • KZT - Kazakhstani Tenge
    • + *
    • KES - Kenyan Shilling
    • + *
    • KWD - Kuwaiti Dinar
    • + *
    • KGS - Kyrgystani Som
    • + *
    • LAK - Laotian Kip
    • + *
    • LVL - Latvian Lats
    • + *
    • LVR - Latvian Ruble
    • + *
    • LBP - Lebanese Pound
    • + *
    • LSL - Lesotho Loti
    • + *
    • LRD - Liberian Dollar
    • + *
    • LYD - Libyan Dinar
    • + *
    • LTL - Lithuanian Litas
    • + *
    • LTT - Lithuanian Talonas
    • + *
    • LUL - Luxembourg Financial Franc
    • + *
    • LUC - Luxembourgian Convertible Franc
    • + *
    • LUF - Luxembourgian Franc
    • + *
    • MOP - Macanese Pataca
    • + *
    • MKD - Macedonian Denar
    • + *
    • MKN - Macedonian Denar (1992–1993)
    • + *
    • MGA - Malagasy Ariary
    • + *
    • MGF - Malagasy Franc
    • + *
    • MWK - Malawian Kwacha
    • + *
    • MYR - Malaysian Ringgit
    • + *
    • MVR - Maldivian Rufiyaa
    • + *
    • MVP - Maldivian Rupee (1947–1981)
    • + *
    • MLF - Malian Franc
    • + *
    • MTL - Maltese Lira
    • + *
    • MTP - Maltese Pound
    • + *
    • MRU - Mauritanian Ouguiya
    • + *
    • MRO - Mauritanian Ouguiya (1973–2017)
    • + *
    • MUR - Mauritian Rupee
    • + *
    • MXV - Mexican Investment Unit
    • + *
    • MXN - Mexican Peso
    • + *
    • MXP - Mexican Silver Peso (1861–1992)
    • + *
    • MDC - Moldovan Cupon
    • + *
    • MDL - Moldovan Leu
    • + *
    • MCF - Monegasque Franc
    • + *
    • MNT - Mongolian Tugrik
    • + *
    • MAD - Moroccan Dirham
    • + *
    • MAF - Moroccan Franc
    • + *
    • MZE - Mozambican Escudo
    • + *
    • MZN - Mozambican Metical
    • + *
    • MZM - Mozambican Metical (1980–2006)
    • + *
    • MMK - Myanmar Kyat
    • + *
    • NAD - Namibian Dollar
    • + *
    • NPR - Nepalese Rupee
    • + *
    • ANG - Netherlands Antillean Guilder
    • + *
    • TWD - New Taiwan Dollar
    • + *
    • NZD - New Zealand Dollar
    • + *
    • NIO - Nicaraguan Córdoba
    • + *
    • NIC - Nicaraguan Córdoba (1988–1991)
    • + *
    • NGN - Nigerian Naira
    • + *
    • KPW - North Korean Won
    • + *
    • NOK - Norwegian Krone
    • + *
    • OMR - Omani Rial
    • + *
    • PKR - Pakistani Rupee
    • + *
    • XPD - Palladium
    • + *
    • PAB - Panamanian Balboa
    • + *
    • PGK - Papua New Guinean Kina
    • + *
    • PYG - Paraguayan Guarani
    • + *
    • PEI - Peruvian Inti
    • + *
    • PEN - Peruvian Sol
    • + *
    • PES - Peruvian Sol (1863–1965)
    • + *
    • PHP - Philippine Peso
    • + *
    • XPT - Platinum
    • + *
    • PLN - Polish Zloty
    • + *
    • PLZ - Polish Zloty (1950–1995)
    • + *
    • PTE - Portuguese Escudo
    • + *
    • GWE - Portuguese Guinea Escudo
    • + *
    • QAR - Qatari Rial
    • + *
    • XRE - RINET Funds
    • + *
    • RHD - Rhodesian Dollar
    • + *
    • RON - Romanian Leu
    • + *
    • ROL - Romanian Leu (1952–2006)
    • + *
    • RUB - Russian Ruble
    • + *
    • RUR - Russian Ruble (1991–1998)
    • + *
    • RWF - Rwandan Franc
    • + *
    • SVC - Salvadoran Colón
    • + *
    • WST - Samoan Tala
    • + *
    • SAR - Saudi Riyal
    • + *
    • RSD - Serbian Dinar
    • + *
    • CSD - Serbian Dinar (2002–2006)
    • + *
    • SCR - Seychellois Rupee
    • + *
    • SLL - Sierra Leonean Leone
    • + *
    • XAG - Silver
    • + *
    • SGD - Singapore Dollar
    • + *
    • SKK - Slovak Koruna
    • + *
    • SIT - Slovenian Tolar
    • + *
    • SBD - Solomon Islands Dollar
    • + *
    • SOS - Somali Shilling
    • + *
    • ZAR - South African Rand
    • + *
    • ZAL - South African Rand (financial)
    • + *
    • KRH - South Korean Hwan (1953–1962)
    • + *
    • KRW - South Korean Won
    • + *
    • KRO - South Korean Won (1945–1953)
    • + *
    • SSP - South Sudanese Pound
    • + *
    • SUR - Soviet Rouble
    • + *
    • ESP - Spanish Peseta
    • + *
    • ESA - Spanish Peseta (A account)
    • + *
    • ESB - Spanish Peseta (convertible account)
    • + *
    • XDR - Special Drawing Rights
    • + *
    • LKR - Sri Lankan Rupee
    • + *
    • SHP - St. Helena Pound
    • + *
    • XSU - Sucre
    • + *
    • SDD - Sudanese Dinar (1992–2007)
    • + *
    • SDG - Sudanese Pound
    • + *
    • SDP - Sudanese Pound (1957–1998)
    • + *
    • SRD - Surinamese Dollar
    • + *
    • SRG - Surinamese Guilder
    • + *
    • SZL - Swazi Lilangeni
    • + *
    • SEK - Swedish Krona
    • + *
    • CHF - Swiss Franc
    • + *
    • SYP - Syrian Pound
    • + *
    • STN - São Tomé & Príncipe Dobra
    • + *
    • STD - São Tomé & Príncipe Dobra (1977–2017)
    • + *
    • TVD - TVD
    • + *
    • TJR - Tajikistani Ruble
    • + *
    • TJS - Tajikistani Somoni
    • + *
    • TZS - Tanzanian Shilling
    • + *
    • XTS - Testing Currency Code
    • + *
    • THB - Thai Baht
    • + *
    • XXX - The codes assigned for transactions where no currency is involved
    • + *
    • TPE - Timorese Escudo
    • + *
    • TOP - Tongan Paʻanga
    • + *
    • TTD - Trinidad & Tobago Dollar
    • + *
    • TND - Tunisian Dinar
    • + *
    • TRY - Turkish Lira
    • + *
    • TRL - Turkish Lira (1922–2005)
    • + *
    • TMT - Turkmenistani Manat
    • + *
    • TMM - Turkmenistani Manat (1993–2009)
    • + *
    • USD - US Dollar
    • + *
    • USN - US Dollar (Next day)
    • + *
    • USS - US Dollar (Same day)
    • + *
    • UGX - Ugandan Shilling
    • + *
    • UGS - Ugandan Shilling (1966–1987)
    • + *
    • UAH - Ukrainian Hryvnia
    • + *
    • UAK - Ukrainian Karbovanets
    • + *
    • AED - United Arab Emirates Dirham
    • + *
    • UYW - Uruguayan Nominal Wage Index Unit
    • + *
    • UYU - Uruguayan Peso
    • + *
    • UYP - Uruguayan Peso (1975–1993)
    • + *
    • UYI - Uruguayan Peso (Indexed Units)
    • + *
    • UZS - Uzbekistani Som
    • + *
    • VUV - Vanuatu Vatu
    • + *
    • VES - Venezuelan Bolívar
    • + *
    • VEB - Venezuelan Bolívar (1871–2008)
    • + *
    • VEF - Venezuelan Bolívar (2008–2018)
    • + *
    • VND - Vietnamese Dong
    • + *
    • VNN - Vietnamese Dong (1978–1985)
    • + *
    • CHE - WIR Euro
    • + *
    • CHW - WIR Franc
    • + *
    • XOF - West African CFA Franc
    • + *
    • YDD - Yemeni Dinar
    • + *
    • YER - Yemeni Rial
    • + *
    • YUN - Yugoslavian Convertible Dinar (1990–1992)
    • + *
    • YUD - Yugoslavian Hard Dinar (1966–1990)
    • + *
    • YUM - Yugoslavian New Dinar (1994–2002)
    • + *
    • YUR - Yugoslavian Reformed Dinar (1992–1993)
    • + *
    • ZWN - ZWN
    • + *
    • ZRN - Zairean New Zaire (1993–1998)
    • + *
    • ZRZ - Zairean Zaire (1971–1993)
    • + *
    • ZMW - Zambian Kwacha
    • + *
    • ZMK - Zambian Kwacha (1968–2012)
    • + *
    • ZWD - Zimbabwean Dollar (1980–2008)
    • + *
    • ZWR - Zimbabwean Dollar (2008)
    • + *
    • ZWL - Zimbabwean Dollar (2009)
    • + *
    + * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage transactionCurrency(GeneralLedgerTransactionLineTransactionCurrency transactionCurrency) { + this.transactionCurrency = Optional.ofNullable(transactionCurrency); + return this; + } + + /** + *

    The transaction currency that the transaction is made in.

    + *
      + *
    • XUA - ADB Unit of Account
    • + *
    • AFN - Afghan Afghani
    • + *
    • AFA - Afghan Afghani (1927–2002)
    • + *
    • ALL - Albanian Lek
    • + *
    • ALK - Albanian Lek (1946–1965)
    • + *
    • DZD - Algerian Dinar
    • + *
    • ADP - Andorran Peseta
    • + *
    • AOA - Angolan Kwanza
    • + *
    • AOK - Angolan Kwanza (1977–1991)
    • + *
    • AON - Angolan New Kwanza (1990–2000)
    • + *
    • AOR - Angolan Readjusted Kwanza (1995–1999)
    • + *
    • ARA - Argentine Austral
    • + *
    • ARS - Argentine Peso
    • + *
    • ARM - Argentine Peso (1881–1970)
    • + *
    • ARP - Argentine Peso (1983–1985)
    • + *
    • ARL - Argentine Peso Ley (1970–1983)
    • + *
    • AMD - Armenian Dram
    • + *
    • AWG - Aruban Florin
    • + *
    • AUD - Australian Dollar
    • + *
    • ATS - Austrian Schilling
    • + *
    • AZN - Azerbaijani Manat
    • + *
    • AZM - Azerbaijani Manat (1993–2006)
    • + *
    • BSD - Bahamian Dollar
    • + *
    • BHD - Bahraini Dinar
    • + *
    • BDT - Bangladeshi Taka
    • + *
    • BBD - Barbadian Dollar
    • + *
    • BYN - Belarusian Ruble
    • + *
    • BYB - Belarusian Ruble (1994–1999)
    • + *
    • BYR - Belarusian Ruble (2000–2016)
    • + *
    • BEF - Belgian Franc
    • + *
    • BEC - Belgian Franc (convertible)
    • + *
    • BEL - Belgian Franc (financial)
    • + *
    • BZD - Belize Dollar
    • + *
    • BMD - Bermudan Dollar
    • + *
    • BTN - Bhutanese Ngultrum
    • + *
    • BOB - Bolivian Boliviano
    • + *
    • BOL - Bolivian Boliviano (1863–1963)
    • + *
    • BOV - Bolivian Mvdol
    • + *
    • BOP - Bolivian Peso
    • + *
    • BAM - Bosnia-Herzegovina Convertible Mark
    • + *
    • BAD - Bosnia-Herzegovina Dinar (1992–1994)
    • + *
    • BAN - Bosnia-Herzegovina New Dinar (1994–1997)
    • + *
    • BWP - Botswanan Pula
    • + *
    • BRC - Brazilian Cruzado (1986–1989)
    • + *
    • BRZ - Brazilian Cruzeiro (1942–1967)
    • + *
    • BRE - Brazilian Cruzeiro (1990–1993)
    • + *
    • BRR - Brazilian Cruzeiro (1993–1994)
    • + *
    • BRN - Brazilian New Cruzado (1989–1990)
    • + *
    • BRB - Brazilian New Cruzeiro (1967–1986)
    • + *
    • BRL - Brazilian Real
    • + *
    • GBP - British Pound
    • + *
    • BND - Brunei Dollar
    • + *
    • BGL - Bulgarian Hard Lev
    • + *
    • BGN - Bulgarian Lev
    • + *
    • BGO - Bulgarian Lev (1879–1952)
    • + *
    • BGM - Bulgarian Socialist Lev
    • + *
    • BUK - Burmese Kyat
    • + *
    • BIF - Burundian Franc
    • + *
    • XPF - CFP Franc
    • + *
    • KHR - Cambodian Riel
    • + *
    • CAD - Canadian Dollar
    • + *
    • CVE - Cape Verdean Escudo
    • + *
    • KYD - Cayman Islands Dollar
    • + *
    • XAF - Central African CFA Franc
    • + *
    • CLE - Chilean Escudo
    • + *
    • CLP - Chilean Peso
    • + *
    • CLF - Chilean Unit of Account (UF)
    • + *
    • CNX - Chinese People’s Bank Dollar
    • + *
    • CNY - Chinese Yuan
    • + *
    • CNH - Chinese Yuan (offshore)
    • + *
    • COP - Colombian Peso
    • + *
    • COU - Colombian Real Value Unit
    • + *
    • KMF - Comorian Franc
    • + *
    • CDF - Congolese Franc
    • + *
    • CRC - Costa Rican Colón
    • + *
    • HRD - Croatian Dinar
    • + *
    • HRK - Croatian Kuna
    • + *
    • CUC - Cuban Convertible Peso
    • + *
    • CUP - Cuban Peso
    • + *
    • CYP - Cypriot Pound
    • + *
    • CZK - Czech Koruna
    • + *
    • CSK - Czechoslovak Hard Koruna
    • + *
    • DKK - Danish Krone
    • + *
    • DJF - Djiboutian Franc
    • + *
    • DOP - Dominican Peso
    • + *
    • NLG - Dutch Guilder
    • + *
    • XCD - East Caribbean Dollar
    • + *
    • DDM - East German Mark
    • + *
    • ECS - Ecuadorian Sucre
    • + *
    • ECV - Ecuadorian Unit of Constant Value
    • + *
    • EGP - Egyptian Pound
    • + *
    • GQE - Equatorial Guinean Ekwele
    • + *
    • ERN - Eritrean Nakfa
    • + *
    • EEK - Estonian Kroon
    • + *
    • ETB - Ethiopian Birr
    • + *
    • EUR - Euro
    • + *
    • XBA - European Composite Unit
    • + *
    • XEU - European Currency Unit
    • + *
    • XBB - European Monetary Unit
    • + *
    • XBC - European Unit of Account (XBC)
    • + *
    • XBD - European Unit of Account (XBD)
    • + *
    • FKP - Falkland Islands Pound
    • + *
    • FJD - Fijian Dollar
    • + *
    • FIM - Finnish Markka
    • + *
    • FRF - French Franc
    • + *
    • XFO - French Gold Franc
    • + *
    • XFU - French UIC-Franc
    • + *
    • GMD - Gambian Dalasi
    • + *
    • GEK - Georgian Kupon Larit
    • + *
    • GEL - Georgian Lari
    • + *
    • DEM - German Mark
    • + *
    • GHS - Ghanaian Cedi
    • + *
    • GHC - Ghanaian Cedi (1979–2007)
    • + *
    • GIP - Gibraltar Pound
    • + *
    • XAU - Gold
    • + *
    • GRD - Greek Drachma
    • + *
    • GTQ - Guatemalan Quetzal
    • + *
    • GWP - Guinea-Bissau Peso
    • + *
    • GNF - Guinean Franc
    • + *
    • GNS - Guinean Syli
    • + *
    • GYD - Guyanaese Dollar
    • + *
    • HTG - Haitian Gourde
    • + *
    • HNL - Honduran Lempira
    • + *
    • HKD - Hong Kong Dollar
    • + *
    • HUF - Hungarian Forint
    • + *
    • IMP - IMP
    • + *
    • ISK - Icelandic Króna
    • + *
    • ISJ - Icelandic Króna (1918–1981)
    • + *
    • INR - Indian Rupee
    • + *
    • IDR - Indonesian Rupiah
    • + *
    • IRR - Iranian Rial
    • + *
    • IQD - Iraqi Dinar
    • + *
    • IEP - Irish Pound
    • + *
    • ILS - Israeli New Shekel
    • + *
    • ILP - Israeli Pound
    • + *
    • ILR - Israeli Shekel (1980–1985)
    • + *
    • ITL - Italian Lira
    • + *
    • JMD - Jamaican Dollar
    • + *
    • JPY - Japanese Yen
    • + *
    • JOD - Jordanian Dinar
    • + *
    • KZT - Kazakhstani Tenge
    • + *
    • KES - Kenyan Shilling
    • + *
    • KWD - Kuwaiti Dinar
    • + *
    • KGS - Kyrgystani Som
    • + *
    • LAK - Laotian Kip
    • + *
    • LVL - Latvian Lats
    • + *
    • LVR - Latvian Ruble
    • + *
    • LBP - Lebanese Pound
    • + *
    • LSL - Lesotho Loti
    • + *
    • LRD - Liberian Dollar
    • + *
    • LYD - Libyan Dinar
    • + *
    • LTL - Lithuanian Litas
    • + *
    • LTT - Lithuanian Talonas
    • + *
    • LUL - Luxembourg Financial Franc
    • + *
    • LUC - Luxembourgian Convertible Franc
    • + *
    • LUF - Luxembourgian Franc
    • + *
    • MOP - Macanese Pataca
    • + *
    • MKD - Macedonian Denar
    • + *
    • MKN - Macedonian Denar (1992–1993)
    • + *
    • MGA - Malagasy Ariary
    • + *
    • MGF - Malagasy Franc
    • + *
    • MWK - Malawian Kwacha
    • + *
    • MYR - Malaysian Ringgit
    • + *
    • MVR - Maldivian Rufiyaa
    • + *
    • MVP - Maldivian Rupee (1947–1981)
    • + *
    • MLF - Malian Franc
    • + *
    • MTL - Maltese Lira
    • + *
    • MTP - Maltese Pound
    • + *
    • MRU - Mauritanian Ouguiya
    • + *
    • MRO - Mauritanian Ouguiya (1973–2017)
    • + *
    • MUR - Mauritian Rupee
    • + *
    • MXV - Mexican Investment Unit
    • + *
    • MXN - Mexican Peso
    • + *
    • MXP - Mexican Silver Peso (1861–1992)
    • + *
    • MDC - Moldovan Cupon
    • + *
    • MDL - Moldovan Leu
    • + *
    • MCF - Monegasque Franc
    • + *
    • MNT - Mongolian Tugrik
    • + *
    • MAD - Moroccan Dirham
    • + *
    • MAF - Moroccan Franc
    • + *
    • MZE - Mozambican Escudo
    • + *
    • MZN - Mozambican Metical
    • + *
    • MZM - Mozambican Metical (1980–2006)
    • + *
    • MMK - Myanmar Kyat
    • + *
    • NAD - Namibian Dollar
    • + *
    • NPR - Nepalese Rupee
    • + *
    • ANG - Netherlands Antillean Guilder
    • + *
    • TWD - New Taiwan Dollar
    • + *
    • NZD - New Zealand Dollar
    • + *
    • NIO - Nicaraguan Córdoba
    • + *
    • NIC - Nicaraguan Córdoba (1988–1991)
    • + *
    • NGN - Nigerian Naira
    • + *
    • KPW - North Korean Won
    • + *
    • NOK - Norwegian Krone
    • + *
    • OMR - Omani Rial
    • + *
    • PKR - Pakistani Rupee
    • + *
    • XPD - Palladium
    • + *
    • PAB - Panamanian Balboa
    • + *
    • PGK - Papua New Guinean Kina
    • + *
    • PYG - Paraguayan Guarani
    • + *
    • PEI - Peruvian Inti
    • + *
    • PEN - Peruvian Sol
    • + *
    • PES - Peruvian Sol (1863–1965)
    • + *
    • PHP - Philippine Peso
    • + *
    • XPT - Platinum
    • + *
    • PLN - Polish Zloty
    • + *
    • PLZ - Polish Zloty (1950–1995)
    • + *
    • PTE - Portuguese Escudo
    • + *
    • GWE - Portuguese Guinea Escudo
    • + *
    • QAR - Qatari Rial
    • + *
    • XRE - RINET Funds
    • + *
    • RHD - Rhodesian Dollar
    • + *
    • RON - Romanian Leu
    • + *
    • ROL - Romanian Leu (1952–2006)
    • + *
    • RUB - Russian Ruble
    • + *
    • RUR - Russian Ruble (1991–1998)
    • + *
    • RWF - Rwandan Franc
    • + *
    • SVC - Salvadoran Colón
    • + *
    • WST - Samoan Tala
    • + *
    • SAR - Saudi Riyal
    • + *
    • RSD - Serbian Dinar
    • + *
    • CSD - Serbian Dinar (2002–2006)
    • + *
    • SCR - Seychellois Rupee
    • + *
    • SLL - Sierra Leonean Leone
    • + *
    • XAG - Silver
    • + *
    • SGD - Singapore Dollar
    • + *
    • SKK - Slovak Koruna
    • + *
    • SIT - Slovenian Tolar
    • + *
    • SBD - Solomon Islands Dollar
    • + *
    • SOS - Somali Shilling
    • + *
    • ZAR - South African Rand
    • + *
    • ZAL - South African Rand (financial)
    • + *
    • KRH - South Korean Hwan (1953–1962)
    • + *
    • KRW - South Korean Won
    • + *
    • KRO - South Korean Won (1945–1953)
    • + *
    • SSP - South Sudanese Pound
    • + *
    • SUR - Soviet Rouble
    • + *
    • ESP - Spanish Peseta
    • + *
    • ESA - Spanish Peseta (A account)
    • + *
    • ESB - Spanish Peseta (convertible account)
    • + *
    • XDR - Special Drawing Rights
    • + *
    • LKR - Sri Lankan Rupee
    • + *
    • SHP - St. Helena Pound
    • + *
    • XSU - Sucre
    • + *
    • SDD - Sudanese Dinar (1992–2007)
    • + *
    • SDG - Sudanese Pound
    • + *
    • SDP - Sudanese Pound (1957–1998)
    • + *
    • SRD - Surinamese Dollar
    • + *
    • SRG - Surinamese Guilder
    • + *
    • SZL - Swazi Lilangeni
    • + *
    • SEK - Swedish Krona
    • + *
    • CHF - Swiss Franc
    • + *
    • SYP - Syrian Pound
    • + *
    • STN - São Tomé & Príncipe Dobra
    • + *
    • STD - São Tomé & Príncipe Dobra (1977–2017)
    • + *
    • TVD - TVD
    • + *
    • TJR - Tajikistani Ruble
    • + *
    • TJS - Tajikistani Somoni
    • + *
    • TZS - Tanzanian Shilling
    • + *
    • XTS - Testing Currency Code
    • + *
    • THB - Thai Baht
    • + *
    • XXX - The codes assigned for transactions where no currency is involved
    • + *
    • TPE - Timorese Escudo
    • + *
    • TOP - Tongan Paʻanga
    • + *
    • TTD - Trinidad & Tobago Dollar
    • + *
    • TND - Tunisian Dinar
    • + *
    • TRY - Turkish Lira
    • + *
    • TRL - Turkish Lira (1922–2005)
    • + *
    • TMT - Turkmenistani Manat
    • + *
    • TMM - Turkmenistani Manat (1993–2009)
    • + *
    • USD - US Dollar
    • + *
    • USN - US Dollar (Next day)
    • + *
    • USS - US Dollar (Same day)
    • + *
    • UGX - Ugandan Shilling
    • + *
    • UGS - Ugandan Shilling (1966–1987)
    • + *
    • UAH - Ukrainian Hryvnia
    • + *
    • UAK - Ukrainian Karbovanets
    • + *
    • AED - United Arab Emirates Dirham
    • + *
    • UYW - Uruguayan Nominal Wage Index Unit
    • + *
    • UYU - Uruguayan Peso
    • + *
    • UYP - Uruguayan Peso (1975–1993)
    • + *
    • UYI - Uruguayan Peso (Indexed Units)
    • + *
    • UZS - Uzbekistani Som
    • + *
    • VUV - Vanuatu Vatu
    • + *
    • VES - Venezuelan Bolívar
    • + *
    • VEB - Venezuelan Bolívar (1871–2008)
    • + *
    • VEF - Venezuelan Bolívar (2008–2018)
    • + *
    • VND - Vietnamese Dong
    • + *
    • VNN - Vietnamese Dong (1978–1985)
    • + *
    • CHE - WIR Euro
    • + *
    • CHW - WIR Franc
    • + *
    • XOF - West African CFA Franc
    • + *
    • YDD - Yemeni Dinar
    • + *
    • YER - Yemeni Rial
    • + *
    • YUN - Yugoslavian Convertible Dinar (1990–1992)
    • + *
    • YUD - Yugoslavian Hard Dinar (1966–1990)
    • + *
    • YUM - Yugoslavian New Dinar (1994–2002)
    • + *
    • YUR - Yugoslavian Reformed Dinar (1992–1993)
    • + *
    • ZWN - ZWN
    • + *
    • ZRN - Zairean New Zaire (1993–1998)
    • + *
    • ZRZ - Zairean Zaire (1971–1993)
    • + *
    • ZMW - Zambian Kwacha
    • + *
    • ZMK - Zambian Kwacha (1968–2012)
    • + *
    • ZWD - Zimbabwean Dollar (1980–2008)
    • + *
    • ZWR - Zimbabwean Dollar (2008)
    • + *
    • ZWL - Zimbabwean Dollar (2009)
    • + *
    + */ + @java.lang.Override + @JsonSetter(value = "transaction_currency", nulls = Nulls.SKIP) + public _FinalStage transactionCurrency( + Optional transactionCurrency) { + this.transactionCurrency = transactionCurrency; + return this; + } + + /** + *

    The base currency of the transaction

    + *
      + *
    • XUA - ADB Unit of Account
    • + *
    • AFN - Afghan Afghani
    • + *
    • AFA - Afghan Afghani (1927–2002)
    • + *
    • ALL - Albanian Lek
    • + *
    • ALK - Albanian Lek (1946–1965)
    • + *
    • DZD - Algerian Dinar
    • + *
    • ADP - Andorran Peseta
    • + *
    • AOA - Angolan Kwanza
    • + *
    • AOK - Angolan Kwanza (1977–1991)
    • + *
    • AON - Angolan New Kwanza (1990–2000)
    • + *
    • AOR - Angolan Readjusted Kwanza (1995–1999)
    • + *
    • ARA - Argentine Austral
    • + *
    • ARS - Argentine Peso
    • + *
    • ARM - Argentine Peso (1881–1970)
    • + *
    • ARP - Argentine Peso (1983–1985)
    • + *
    • ARL - Argentine Peso Ley (1970–1983)
    • + *
    • AMD - Armenian Dram
    • + *
    • AWG - Aruban Florin
    • + *
    • AUD - Australian Dollar
    • + *
    • ATS - Austrian Schilling
    • + *
    • AZN - Azerbaijani Manat
    • + *
    • AZM - Azerbaijani Manat (1993–2006)
    • + *
    • BSD - Bahamian Dollar
    • + *
    • BHD - Bahraini Dinar
    • + *
    • BDT - Bangladeshi Taka
    • + *
    • BBD - Barbadian Dollar
    • + *
    • BYN - Belarusian Ruble
    • + *
    • BYB - Belarusian Ruble (1994–1999)
    • + *
    • BYR - Belarusian Ruble (2000–2016)
    • + *
    • BEF - Belgian Franc
    • + *
    • BEC - Belgian Franc (convertible)
    • + *
    • BEL - Belgian Franc (financial)
    • + *
    • BZD - Belize Dollar
    • + *
    • BMD - Bermudan Dollar
    • + *
    • BTN - Bhutanese Ngultrum
    • + *
    • BOB - Bolivian Boliviano
    • + *
    • BOL - Bolivian Boliviano (1863–1963)
    • + *
    • BOV - Bolivian Mvdol
    • + *
    • BOP - Bolivian Peso
    • + *
    • BAM - Bosnia-Herzegovina Convertible Mark
    • + *
    • BAD - Bosnia-Herzegovina Dinar (1992–1994)
    • + *
    • BAN - Bosnia-Herzegovina New Dinar (1994–1997)
    • + *
    • BWP - Botswanan Pula
    • + *
    • BRC - Brazilian Cruzado (1986–1989)
    • + *
    • BRZ - Brazilian Cruzeiro (1942–1967)
    • + *
    • BRE - Brazilian Cruzeiro (1990–1993)
    • + *
    • BRR - Brazilian Cruzeiro (1993–1994)
    • + *
    • BRN - Brazilian New Cruzado (1989–1990)
    • + *
    • BRB - Brazilian New Cruzeiro (1967–1986)
    • + *
    • BRL - Brazilian Real
    • + *
    • GBP - British Pound
    • + *
    • BND - Brunei Dollar
    • + *
    • BGL - Bulgarian Hard Lev
    • + *
    • BGN - Bulgarian Lev
    • + *
    • BGO - Bulgarian Lev (1879–1952)
    • + *
    • BGM - Bulgarian Socialist Lev
    • + *
    • BUK - Burmese Kyat
    • + *
    • BIF - Burundian Franc
    • + *
    • XPF - CFP Franc
    • + *
    • KHR - Cambodian Riel
    • + *
    • CAD - Canadian Dollar
    • + *
    • CVE - Cape Verdean Escudo
    • + *
    • KYD - Cayman Islands Dollar
    • + *
    • XAF - Central African CFA Franc
    • + *
    • CLE - Chilean Escudo
    • + *
    • CLP - Chilean Peso
    • + *
    • CLF - Chilean Unit of Account (UF)
    • + *
    • CNX - Chinese People’s Bank Dollar
    • + *
    • CNY - Chinese Yuan
    • + *
    • CNH - Chinese Yuan (offshore)
    • + *
    • COP - Colombian Peso
    • + *
    • COU - Colombian Real Value Unit
    • + *
    • KMF - Comorian Franc
    • + *
    • CDF - Congolese Franc
    • + *
    • CRC - Costa Rican Colón
    • + *
    • HRD - Croatian Dinar
    • + *
    • HRK - Croatian Kuna
    • + *
    • CUC - Cuban Convertible Peso
    • + *
    • CUP - Cuban Peso
    • + *
    • CYP - Cypriot Pound
    • + *
    • CZK - Czech Koruna
    • + *
    • CSK - Czechoslovak Hard Koruna
    • + *
    • DKK - Danish Krone
    • + *
    • DJF - Djiboutian Franc
    • + *
    • DOP - Dominican Peso
    • + *
    • NLG - Dutch Guilder
    • + *
    • XCD - East Caribbean Dollar
    • + *
    • DDM - East German Mark
    • + *
    • ECS - Ecuadorian Sucre
    • + *
    • ECV - Ecuadorian Unit of Constant Value
    • + *
    • EGP - Egyptian Pound
    • + *
    • GQE - Equatorial Guinean Ekwele
    • + *
    • ERN - Eritrean Nakfa
    • + *
    • EEK - Estonian Kroon
    • + *
    • ETB - Ethiopian Birr
    • + *
    • EUR - Euro
    • + *
    • XBA - European Composite Unit
    • + *
    • XEU - European Currency Unit
    • + *
    • XBB - European Monetary Unit
    • + *
    • XBC - European Unit of Account (XBC)
    • + *
    • XBD - European Unit of Account (XBD)
    • + *
    • FKP - Falkland Islands Pound
    • + *
    • FJD - Fijian Dollar
    • + *
    • FIM - Finnish Markka
    • + *
    • FRF - French Franc
    • + *
    • XFO - French Gold Franc
    • + *
    • XFU - French UIC-Franc
    • + *
    • GMD - Gambian Dalasi
    • + *
    • GEK - Georgian Kupon Larit
    • + *
    • GEL - Georgian Lari
    • + *
    • DEM - German Mark
    • + *
    • GHS - Ghanaian Cedi
    • + *
    • GHC - Ghanaian Cedi (1979–2007)
    • + *
    • GIP - Gibraltar Pound
    • + *
    • XAU - Gold
    • + *
    • GRD - Greek Drachma
    • + *
    • GTQ - Guatemalan Quetzal
    • + *
    • GWP - Guinea-Bissau Peso
    • + *
    • GNF - Guinean Franc
    • + *
    • GNS - Guinean Syli
    • + *
    • GYD - Guyanaese Dollar
    • + *
    • HTG - Haitian Gourde
    • + *
    • HNL - Honduran Lempira
    • + *
    • HKD - Hong Kong Dollar
    • + *
    • HUF - Hungarian Forint
    • + *
    • IMP - IMP
    • + *
    • ISK - Icelandic Króna
    • + *
    • ISJ - Icelandic Króna (1918–1981)
    • + *
    • INR - Indian Rupee
    • + *
    • IDR - Indonesian Rupiah
    • + *
    • IRR - Iranian Rial
    • + *
    • IQD - Iraqi Dinar
    • + *
    • IEP - Irish Pound
    • + *
    • ILS - Israeli New Shekel
    • + *
    • ILP - Israeli Pound
    • + *
    • ILR - Israeli Shekel (1980–1985)
    • + *
    • ITL - Italian Lira
    • + *
    • JMD - Jamaican Dollar
    • + *
    • JPY - Japanese Yen
    • + *
    • JOD - Jordanian Dinar
    • + *
    • KZT - Kazakhstani Tenge
    • + *
    • KES - Kenyan Shilling
    • + *
    • KWD - Kuwaiti Dinar
    • + *
    • KGS - Kyrgystani Som
    • + *
    • LAK - Laotian Kip
    • + *
    • LVL - Latvian Lats
    • + *
    • LVR - Latvian Ruble
    • + *
    • LBP - Lebanese Pound
    • + *
    • LSL - Lesotho Loti
    • + *
    • LRD - Liberian Dollar
    • + *
    • LYD - Libyan Dinar
    • + *
    • LTL - Lithuanian Litas
    • + *
    • LTT - Lithuanian Talonas
    • + *
    • LUL - Luxembourg Financial Franc
    • + *
    • LUC - Luxembourgian Convertible Franc
    • + *
    • LUF - Luxembourgian Franc
    • + *
    • MOP - Macanese Pataca
    • + *
    • MKD - Macedonian Denar
    • + *
    • MKN - Macedonian Denar (1992–1993)
    • + *
    • MGA - Malagasy Ariary
    • + *
    • MGF - Malagasy Franc
    • + *
    • MWK - Malawian Kwacha
    • + *
    • MYR - Malaysian Ringgit
    • + *
    • MVR - Maldivian Rufiyaa
    • + *
    • MVP - Maldivian Rupee (1947–1981)
    • + *
    • MLF - Malian Franc
    • + *
    • MTL - Maltese Lira
    • + *
    • MTP - Maltese Pound
    • + *
    • MRU - Mauritanian Ouguiya
    • + *
    • MRO - Mauritanian Ouguiya (1973–2017)
    • + *
    • MUR - Mauritian Rupee
    • + *
    • MXV - Mexican Investment Unit
    • + *
    • MXN - Mexican Peso
    • + *
    • MXP - Mexican Silver Peso (1861–1992)
    • + *
    • MDC - Moldovan Cupon
    • + *
    • MDL - Moldovan Leu
    • + *
    • MCF - Monegasque Franc
    • + *
    • MNT - Mongolian Tugrik
    • + *
    • MAD - Moroccan Dirham
    • + *
    • MAF - Moroccan Franc
    • + *
    • MZE - Mozambican Escudo
    • + *
    • MZN - Mozambican Metical
    • + *
    • MZM - Mozambican Metical (1980–2006)
    • + *
    • MMK - Myanmar Kyat
    • + *
    • NAD - Namibian Dollar
    • + *
    • NPR - Nepalese Rupee
    • + *
    • ANG - Netherlands Antillean Guilder
    • + *
    • TWD - New Taiwan Dollar
    • + *
    • NZD - New Zealand Dollar
    • + *
    • NIO - Nicaraguan Córdoba
    • + *
    • NIC - Nicaraguan Córdoba (1988–1991)
    • + *
    • NGN - Nigerian Naira
    • + *
    • KPW - North Korean Won
    • + *
    • NOK - Norwegian Krone
    • + *
    • OMR - Omani Rial
    • + *
    • PKR - Pakistani Rupee
    • + *
    • XPD - Palladium
    • + *
    • PAB - Panamanian Balboa
    • + *
    • PGK - Papua New Guinean Kina
    • + *
    • PYG - Paraguayan Guarani
    • + *
    • PEI - Peruvian Inti
    • + *
    • PEN - Peruvian Sol
    • + *
    • PES - Peruvian Sol (1863–1965)
    • + *
    • PHP - Philippine Peso
    • + *
    • XPT - Platinum
    • + *
    • PLN - Polish Zloty
    • + *
    • PLZ - Polish Zloty (1950–1995)
    • + *
    • PTE - Portuguese Escudo
    • + *
    • GWE - Portuguese Guinea Escudo
    • + *
    • QAR - Qatari Rial
    • + *
    • XRE - RINET Funds
    • + *
    • RHD - Rhodesian Dollar
    • + *
    • RON - Romanian Leu
    • + *
    • ROL - Romanian Leu (1952–2006)
    • + *
    • RUB - Russian Ruble
    • + *
    • RUR - Russian Ruble (1991–1998)
    • + *
    • RWF - Rwandan Franc
    • + *
    • SVC - Salvadoran Colón
    • + *
    • WST - Samoan Tala
    • + *
    • SAR - Saudi Riyal
    • + *
    • RSD - Serbian Dinar
    • + *
    • CSD - Serbian Dinar (2002–2006)
    • + *
    • SCR - Seychellois Rupee
    • + *
    • SLL - Sierra Leonean Leone
    • + *
    • XAG - Silver
    • + *
    • SGD - Singapore Dollar
    • + *
    • SKK - Slovak Koruna
    • + *
    • SIT - Slovenian Tolar
    • + *
    • SBD - Solomon Islands Dollar
    • + *
    • SOS - Somali Shilling
    • + *
    • ZAR - South African Rand
    • + *
    • ZAL - South African Rand (financial)
    • + *
    • KRH - South Korean Hwan (1953–1962)
    • + *
    • KRW - South Korean Won
    • + *
    • KRO - South Korean Won (1945–1953)
    • + *
    • SSP - South Sudanese Pound
    • + *
    • SUR - Soviet Rouble
    • + *
    • ESP - Spanish Peseta
    • + *
    • ESA - Spanish Peseta (A account)
    • + *
    • ESB - Spanish Peseta (convertible account)
    • + *
    • XDR - Special Drawing Rights
    • + *
    • LKR - Sri Lankan Rupee
    • + *
    • SHP - St. Helena Pound
    • + *
    • XSU - Sucre
    • + *
    • SDD - Sudanese Dinar (1992–2007)
    • + *
    • SDG - Sudanese Pound
    • + *
    • SDP - Sudanese Pound (1957–1998)
    • + *
    • SRD - Surinamese Dollar
    • + *
    • SRG - Surinamese Guilder
    • + *
    • SZL - Swazi Lilangeni
    • + *
    • SEK - Swedish Krona
    • + *
    • CHF - Swiss Franc
    • + *
    • SYP - Syrian Pound
    • + *
    • STN - São Tomé & Príncipe Dobra
    • + *
    • STD - São Tomé & Príncipe Dobra (1977–2017)
    • + *
    • TVD - TVD
    • + *
    • TJR - Tajikistani Ruble
    • + *
    • TJS - Tajikistani Somoni
    • + *
    • TZS - Tanzanian Shilling
    • + *
    • XTS - Testing Currency Code
    • + *
    • THB - Thai Baht
    • + *
    • XXX - The codes assigned for transactions where no currency is involved
    • + *
    • TPE - Timorese Escudo
    • + *
    • TOP - Tongan Paʻanga
    • + *
    • TTD - Trinidad & Tobago Dollar
    • + *
    • TND - Tunisian Dinar
    • + *
    • TRY - Turkish Lira
    • + *
    • TRL - Turkish Lira (1922–2005)
    • + *
    • TMT - Turkmenistani Manat
    • + *
    • TMM - Turkmenistani Manat (1993–2009)
    • + *
    • USD - US Dollar
    • + *
    • USN - US Dollar (Next day)
    • + *
    • USS - US Dollar (Same day)
    • + *
    • UGX - Ugandan Shilling
    • + *
    • UGS - Ugandan Shilling (1966–1987)
    • + *
    • UAH - Ukrainian Hryvnia
    • + *
    • UAK - Ukrainian Karbovanets
    • + *
    • AED - United Arab Emirates Dirham
    • + *
    • UYW - Uruguayan Nominal Wage Index Unit
    • + *
    • UYU - Uruguayan Peso
    • + *
    • UYP - Uruguayan Peso (1975–1993)
    • + *
    • UYI - Uruguayan Peso (Indexed Units)
    • + *
    • UZS - Uzbekistani Som
    • + *
    • VUV - Vanuatu Vatu
    • + *
    • VES - Venezuelan Bolívar
    • + *
    • VEB - Venezuelan Bolívar (1871–2008)
    • + *
    • VEF - Venezuelan Bolívar (2008–2018)
    • + *
    • VND - Vietnamese Dong
    • + *
    • VNN - Vietnamese Dong (1978–1985)
    • + *
    • CHE - WIR Euro
    • + *
    • CHW - WIR Franc
    • + *
    • XOF - West African CFA Franc
    • + *
    • YDD - Yemeni Dinar
    • + *
    • YER - Yemeni Rial
    • + *
    • YUN - Yugoslavian Convertible Dinar (1990–1992)
    • + *
    • YUD - Yugoslavian Hard Dinar (1966–1990)
    • + *
    • YUM - Yugoslavian New Dinar (1994–2002)
    • + *
    • YUR - Yugoslavian Reformed Dinar (1992–1993)
    • + *
    • ZWN - ZWN
    • + *
    • ZRN - Zairean New Zaire (1993–1998)
    • + *
    • ZRZ - Zairean Zaire (1971–1993)
    • + *
    • ZMW - Zambian Kwacha
    • + *
    • ZMK - Zambian Kwacha (1968–2012)
    • + *
    • ZWD - Zimbabwean Dollar (1980–2008)
    • + *
    • ZWR - Zimbabwean Dollar (2008)
    • + *
    • ZWL - Zimbabwean Dollar (2009)
    • + *
    + * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage baseCurrency(TransactionCurrencyEnum baseCurrency) { + this.baseCurrency = Optional.ofNullable(baseCurrency); + return this; + } /** *

    The base currency of the transaction

    @@ -1842,18 +3142,24 @@ public _FinalStage transactionCurrency(Optional transac *
  • ZWR - Zimbabwean Dollar (2008)
  • *
  • ZWL - Zimbabwean Dollar (2009)
  • * - * @return Reference to {@code this} so that method calls can be chained together. */ @java.lang.Override - public _FinalStage baseCurrency(TransactionCurrencyEnum baseCurrency) { - this.baseCurrency = Optional.ofNullable(baseCurrency); + @JsonSetter(value = "base_currency", nulls = Nulls.SKIP) + public _FinalStage baseCurrency(Optional baseCurrency) { + this.baseCurrency = baseCurrency; return this; } @java.lang.Override - @JsonSetter(value = "base_currency", nulls = Nulls.SKIP) - public _FinalStage baseCurrency(Optional baseCurrency) { - this.baseCurrency = baseCurrency; + public _FinalStage project(GeneralLedgerTransactionLineProject project) { + this.project = Optional.ofNullable(project); + return this; + } + + @java.lang.Override + @JsonSetter(value = "project", nulls = Nulls.SKIP) + public _FinalStage project(Optional project) { + this.project = project; return this; } @@ -1893,6 +3199,9 @@ public _FinalStage company(GeneralLedgerTransactionLineCompany company) { return this; } + /** + *

    The company the GeneralLedgerTransaction belongs to.

    + */ @java.lang.Override @JsonSetter(value = "company", nulls = Nulls.SKIP) public _FinalStage company(Optional company) { @@ -1923,6 +3232,9 @@ public _FinalStage modifiedAt(OffsetDateTime modifiedAt) { return this; } + /** + *

    The datetime that this object was modified by Merge.

    + */ @java.lang.Override @JsonSetter(value = "modified_at", nulls = Nulls.SKIP) public _FinalStage modifiedAt(Optional modifiedAt) { @@ -1940,6 +3252,9 @@ public _FinalStage createdAt(OffsetDateTime createdAt) { return this; } + /** + *

    The datetime that this object was created by Merge.

    + */ @java.lang.Override @JsonSetter(value = "created_at", nulls = Nulls.SKIP) public _FinalStage createdAt(Optional createdAt) { @@ -1957,6 +3272,9 @@ public _FinalStage remoteId(String remoteId) { return this; } + /** + *

    The third-party API ID of the matching object.

    + */ @java.lang.Override @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public _FinalStage remoteId(Optional remoteId) { @@ -1988,6 +3306,7 @@ public GeneralLedgerTransactionLine build() { company, employee, contact, + project, baseCurrency, transactionCurrency, exchangeRate, diff --git a/src/main/java/com/merge/api/accounting/types/GeneralLedgerTransactionLineProject.java b/src/main/java/com/merge/api/accounting/types/GeneralLedgerTransactionLineProject.java new file mode 100644 index 000000000..691ba1f52 --- /dev/null +++ b/src/main/java/com/merge/api/accounting/types/GeneralLedgerTransactionLineProject.java @@ -0,0 +1,97 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.merge.api.accounting.types; + +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.databind.DeserializationContext; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.fasterxml.jackson.databind.deser.std.StdDeserializer; +import com.merge.api.core.ObjectMappers; +import java.io.IOException; +import java.util.Objects; + +@JsonDeserialize(using = GeneralLedgerTransactionLineProject.Deserializer.class) +public final class GeneralLedgerTransactionLineProject { + private final Object value; + + private final int type; + + private GeneralLedgerTransactionLineProject(Object value, int type) { + this.value = value; + this.type = type; + } + + @JsonValue + public Object get() { + return this.value; + } + + @SuppressWarnings("unchecked") + public T visit(Visitor visitor) { + if (this.type == 0) { + return visitor.visit((String) this.value); + } else if (this.type == 1) { + return visitor.visit((Project) this.value); + } + throw new IllegalStateException("Failed to visit value. This should never happen."); + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof GeneralLedgerTransactionLineProject + && equalTo((GeneralLedgerTransactionLineProject) other); + } + + private boolean equalTo(GeneralLedgerTransactionLineProject other) { + return value.equals(other.value); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.value); + } + + @java.lang.Override + public String toString() { + return this.value.toString(); + } + + public static GeneralLedgerTransactionLineProject of(String value) { + return new GeneralLedgerTransactionLineProject(value, 0); + } + + public static GeneralLedgerTransactionLineProject of(Project value) { + return new GeneralLedgerTransactionLineProject(value, 1); + } + + public interface Visitor { + T visit(String value); + + T visit(Project value); + } + + static final class Deserializer extends StdDeserializer { + Deserializer() { + super(GeneralLedgerTransactionLineProject.class); + } + + @java.lang.Override + public GeneralLedgerTransactionLineProject deserialize(JsonParser p, DeserializationContext context) + throws IOException { + Object value = p.readValueAs(Object.class); + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, String.class)); + } catch (IllegalArgumentException e) { + } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, Project.class)); + } catch (IllegalArgumentException e) { + } + throw new JsonParseException(p, "Failed to deserialize"); + } + } +} diff --git a/src/main/java/com/merge/api/accounting/types/GeneralLedgerTransactionLineTransactionCurrency.java b/src/main/java/com/merge/api/accounting/types/GeneralLedgerTransactionLineTransactionCurrency.java new file mode 100644 index 000000000..c64dae487 --- /dev/null +++ b/src/main/java/com/merge/api/accounting/types/GeneralLedgerTransactionLineTransactionCurrency.java @@ -0,0 +1,97 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.merge.api.accounting.types; + +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.databind.DeserializationContext; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.fasterxml.jackson.databind.deser.std.StdDeserializer; +import com.merge.api.core.ObjectMappers; +import java.io.IOException; +import java.util.Objects; + +@JsonDeserialize(using = GeneralLedgerTransactionLineTransactionCurrency.Deserializer.class) +public final class GeneralLedgerTransactionLineTransactionCurrency { + private final Object value; + + private final int type; + + private GeneralLedgerTransactionLineTransactionCurrency(Object value, int type) { + this.value = value; + this.type = type; + } + + @JsonValue + public Object get() { + return this.value; + } + + @SuppressWarnings("unchecked") + public T visit(Visitor visitor) { + if (this.type == 0) { + return visitor.visit((TransactionCurrencyEnum) this.value); + } else if (this.type == 1) { + return visitor.visit((String) this.value); + } + throw new IllegalStateException("Failed to visit value. This should never happen."); + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof GeneralLedgerTransactionLineTransactionCurrency + && equalTo((GeneralLedgerTransactionLineTransactionCurrency) other); + } + + private boolean equalTo(GeneralLedgerTransactionLineTransactionCurrency other) { + return value.equals(other.value); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.value); + } + + @java.lang.Override + public String toString() { + return this.value.toString(); + } + + public static GeneralLedgerTransactionLineTransactionCurrency of(TransactionCurrencyEnum value) { + return new GeneralLedgerTransactionLineTransactionCurrency(value, 0); + } + + public static GeneralLedgerTransactionLineTransactionCurrency of(String value) { + return new GeneralLedgerTransactionLineTransactionCurrency(value, 1); + } + + public interface Visitor { + T visit(TransactionCurrencyEnum value); + + T visit(String value); + } + + static final class Deserializer extends StdDeserializer { + Deserializer() { + super(GeneralLedgerTransactionLineTransactionCurrency.class); + } + + @java.lang.Override + public GeneralLedgerTransactionLineTransactionCurrency deserialize(JsonParser p, DeserializationContext context) + throws IOException { + Object value = p.readValueAs(Object.class); + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, TransactionCurrencyEnum.class)); + } catch (IllegalArgumentException e) { + } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, String.class)); + } catch (IllegalArgumentException e) { + } + throw new JsonParseException(p, "Failed to deserialize"); + } + } +} diff --git a/src/main/java/com/merge/api/accounting/types/GeneralLedgerTransactionUnderlyingTransactionType.java b/src/main/java/com/merge/api/accounting/types/GeneralLedgerTransactionUnderlyingTransactionType.java new file mode 100644 index 000000000..676198f4f --- /dev/null +++ b/src/main/java/com/merge/api/accounting/types/GeneralLedgerTransactionUnderlyingTransactionType.java @@ -0,0 +1,97 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.merge.api.accounting.types; + +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.databind.DeserializationContext; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.fasterxml.jackson.databind.deser.std.StdDeserializer; +import com.merge.api.core.ObjectMappers; +import java.io.IOException; +import java.util.Objects; + +@JsonDeserialize(using = GeneralLedgerTransactionUnderlyingTransactionType.Deserializer.class) +public final class GeneralLedgerTransactionUnderlyingTransactionType { + private final Object value; + + private final int type; + + private GeneralLedgerTransactionUnderlyingTransactionType(Object value, int type) { + this.value = value; + this.type = type; + } + + @JsonValue + public Object get() { + return this.value; + } + + @SuppressWarnings("unchecked") + public T visit(Visitor visitor) { + if (this.type == 0) { + return visitor.visit((UnderlyingTransactionTypeEnum) this.value); + } else if (this.type == 1) { + return visitor.visit((String) this.value); + } + throw new IllegalStateException("Failed to visit value. This should never happen."); + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof GeneralLedgerTransactionUnderlyingTransactionType + && equalTo((GeneralLedgerTransactionUnderlyingTransactionType) other); + } + + private boolean equalTo(GeneralLedgerTransactionUnderlyingTransactionType other) { + return value.equals(other.value); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.value); + } + + @java.lang.Override + public String toString() { + return this.value.toString(); + } + + public static GeneralLedgerTransactionUnderlyingTransactionType of(UnderlyingTransactionTypeEnum value) { + return new GeneralLedgerTransactionUnderlyingTransactionType(value, 0); + } + + public static GeneralLedgerTransactionUnderlyingTransactionType of(String value) { + return new GeneralLedgerTransactionUnderlyingTransactionType(value, 1); + } + + public interface Visitor { + T visit(UnderlyingTransactionTypeEnum value); + + T visit(String value); + } + + static final class Deserializer extends StdDeserializer { + Deserializer() { + super(GeneralLedgerTransactionUnderlyingTransactionType.class); + } + + @java.lang.Override + public GeneralLedgerTransactionUnderlyingTransactionType deserialize( + JsonParser p, DeserializationContext context) throws IOException { + Object value = p.readValueAs(Object.class); + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, UnderlyingTransactionTypeEnum.class)); + } catch (IllegalArgumentException e) { + } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, String.class)); + } catch (IllegalArgumentException e) { + } + throw new JsonParseException(p, "Failed to deserialize"); + } + } +} diff --git a/src/main/java/com/merge/api/accounting/types/GeneralLedgerTransactionsListRequest.java b/src/main/java/com/merge/api/accounting/types/GeneralLedgerTransactionsListRequest.java index 2921dd4cc..19c8e1e38 100644 --- a/src/main/java/com/merge/api/accounting/types/GeneralLedgerTransactionsListRequest.java +++ b/src/main/java/com/merge/api/accounting/types/GeneralLedgerTransactionsListRequest.java @@ -308,6 +308,9 @@ public Builder from(GeneralLedgerTransactionsListRequest other) { return this; } + /** + *

    Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.

    + */ @JsonSetter(value = "expand", nulls = Nulls.SKIP) public Builder expand(Optional> expand) { this.expand = expand; @@ -324,6 +327,9 @@ public Builder expand(GeneralLedgerTransactionsListRequestExpandItem expand) { return this; } + /** + *

    If provided, will only return general ledger transactions for this company.

    + */ @JsonSetter(value = "company_id", nulls = Nulls.SKIP) public Builder companyId(Optional companyId) { this.companyId = companyId; @@ -335,6 +341,9 @@ public Builder companyId(String companyId) { return this; } + /** + *

    If provided, will only return objects created after this datetime.

    + */ @JsonSetter(value = "created_after", nulls = Nulls.SKIP) public Builder createdAfter(Optional createdAfter) { this.createdAfter = createdAfter; @@ -346,6 +355,9 @@ public Builder createdAfter(OffsetDateTime createdAfter) { return this; } + /** + *

    If provided, will only return objects created before this datetime.

    + */ @JsonSetter(value = "created_before", nulls = Nulls.SKIP) public Builder createdBefore(Optional createdBefore) { this.createdBefore = createdBefore; @@ -357,6 +369,9 @@ public Builder createdBefore(OffsetDateTime createdBefore) { return this; } + /** + *

    The pagination cursor value.

    + */ @JsonSetter(value = "cursor", nulls = Nulls.SKIP) public Builder cursor(Optional cursor) { this.cursor = cursor; @@ -368,6 +383,9 @@ public Builder cursor(String cursor) { return this; } + /** + *

    Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

    + */ @JsonSetter(value = "include_deleted_data", nulls = Nulls.SKIP) public Builder includeDeletedData(Optional includeDeletedData) { this.includeDeletedData = includeDeletedData; @@ -379,6 +397,9 @@ public Builder includeDeletedData(Boolean includeDeletedData) { return this; } + /** + *

    Whether to include the original data Merge fetched from the third-party to produce these models.

    + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -390,6 +411,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

    Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

    + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; @@ -401,6 +425,9 @@ public Builder includeShellData(Boolean includeShellData) { return this; } + /** + *

    If provided, only objects synced by Merge after this date time will be returned.

    + */ @JsonSetter(value = "modified_after", nulls = Nulls.SKIP) public Builder modifiedAfter(Optional modifiedAfter) { this.modifiedAfter = modifiedAfter; @@ -412,6 +439,9 @@ public Builder modifiedAfter(OffsetDateTime modifiedAfter) { return this; } + /** + *

    If provided, only objects synced by Merge before this date time will be returned.

    + */ @JsonSetter(value = "modified_before", nulls = Nulls.SKIP) public Builder modifiedBefore(Optional modifiedBefore) { this.modifiedBefore = modifiedBefore; @@ -423,6 +453,9 @@ public Builder modifiedBefore(OffsetDateTime modifiedBefore) { return this; } + /** + *

    Number of results to return per page.

    + */ @JsonSetter(value = "page_size", nulls = Nulls.SKIP) public Builder pageSize(Optional pageSize) { this.pageSize = pageSize; @@ -434,6 +467,9 @@ public Builder pageSize(Integer pageSize) { return this; } + /** + *

    If provided, will only return objects posted after this datetime.

    + */ @JsonSetter(value = "posted_date_after", nulls = Nulls.SKIP) public Builder postedDateAfter(Optional postedDateAfter) { this.postedDateAfter = postedDateAfter; @@ -445,6 +481,9 @@ public Builder postedDateAfter(OffsetDateTime postedDateAfter) { return this; } + /** + *

    If provided, will only return objects posted before this datetime.

    + */ @JsonSetter(value = "posted_date_before", nulls = Nulls.SKIP) public Builder postedDateBefore(Optional postedDateBefore) { this.postedDateBefore = postedDateBefore; @@ -456,6 +495,9 @@ public Builder postedDateBefore(OffsetDateTime postedDateBefore) { return this; } + /** + *

    The API provider's ID for the given object.

    + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; diff --git a/src/main/java/com/merge/api/accounting/types/GeneralLedgerTransactionsRetrieveRequest.java b/src/main/java/com/merge/api/accounting/types/GeneralLedgerTransactionsRetrieveRequest.java index 7d0416684..e386514e0 100644 --- a/src/main/java/com/merge/api/accounting/types/GeneralLedgerTransactionsRetrieveRequest.java +++ b/src/main/java/com/merge/api/accounting/types/GeneralLedgerTransactionsRetrieveRequest.java @@ -117,6 +117,9 @@ public Builder from(GeneralLedgerTransactionsRetrieveRequest other) { return this; } + /** + *

    Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.

    + */ @JsonSetter(value = "expand", nulls = Nulls.SKIP) public Builder expand(Optional> expand) { this.expand = expand; @@ -133,6 +136,9 @@ public Builder expand(GeneralLedgerTransactionsRetrieveRequestExpandItem expand) return this; } + /** + *

    Whether to include the original data Merge fetched from the third-party to produce these models.

    + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -144,6 +150,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

    Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

    + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; diff --git a/src/main/java/com/merge/api/accounting/types/GenerateRemoteKeyRequest.java b/src/main/java/com/merge/api/accounting/types/GenerateRemoteKeyRequest.java index d8a316a57..5a5cdf96a 100644 --- a/src/main/java/com/merge/api/accounting/types/GenerateRemoteKeyRequest.java +++ b/src/main/java/com/merge/api/accounting/types/GenerateRemoteKeyRequest.java @@ -66,6 +66,9 @@ public static NameStage builder() { } public interface NameStage { + /** + * The name of the remote key + */ _FinalStage name(@NotNull String name); Builder from(GenerateRemoteKeyRequest other); @@ -91,7 +94,7 @@ public Builder from(GenerateRemoteKeyRequest other) { } /** - *

    The name of the remote key

    + * The name of the remote key

    The name of the remote key

    * @return Reference to {@code this} so that method calls can be chained together. */ @java.lang.Override diff --git a/src/main/java/com/merge/api/accounting/types/IncomeStatement.java b/src/main/java/com/merge/api/accounting/types/IncomeStatement.java index 5d7e3f616..46064548a 100644 --- a/src/main/java/com/merge/api/accounting/types/IncomeStatement.java +++ b/src/main/java/com/merge/api/accounting/types/IncomeStatement.java @@ -33,7 +33,7 @@ public final class IncomeStatement { private final Optional name; - private final Optional currency; + private final Optional currency; private final Optional company; @@ -69,7 +69,7 @@ private IncomeStatement( Optional createdAt, Optional modifiedAt, Optional name, - Optional currency, + Optional currency, Optional company, Optional startPeriod, Optional endPeriod, @@ -455,7 +455,7 @@ public Optional getName() { * */ @JsonProperty("currency") - public Optional getCurrency() { + public Optional getCurrency() { return currency; } @@ -623,7 +623,7 @@ public static final class Builder { private Optional name = Optional.empty(); - private Optional currency = Optional.empty(); + private Optional currency = Optional.empty(); private Optional company = Optional.empty(); @@ -690,6 +690,9 @@ public Builder id(String id) { return this; } + /** + *

    The third-party API ID of the matching object.

    + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; @@ -701,6 +704,9 @@ public Builder remoteId(String remoteId) { return this; } + /** + *

    The datetime that this object was created by Merge.

    + */ @JsonSetter(value = "created_at", nulls = Nulls.SKIP) public Builder createdAt(Optional createdAt) { this.createdAt = createdAt; @@ -712,6 +718,9 @@ public Builder createdAt(OffsetDateTime createdAt) { return this; } + /** + *

    The datetime that this object was modified by Merge.

    + */ @JsonSetter(value = "modified_at", nulls = Nulls.SKIP) public Builder modifiedAt(Optional modifiedAt) { this.modifiedAt = modifiedAt; @@ -723,6 +732,9 @@ public Builder modifiedAt(OffsetDateTime modifiedAt) { return this; } + /** + *

    The income statement's name.

    + */ @JsonSetter(value = "name", nulls = Nulls.SKIP) public Builder name(Optional name) { this.name = name; @@ -734,17 +746,331 @@ public Builder name(String name) { return this; } + /** + *

    The income statement's currency.

    + *
      + *
    • XUA - ADB Unit of Account
    • + *
    • AFN - Afghan Afghani
    • + *
    • AFA - Afghan Afghani (1927–2002)
    • + *
    • ALL - Albanian Lek
    • + *
    • ALK - Albanian Lek (1946–1965)
    • + *
    • DZD - Algerian Dinar
    • + *
    • ADP - Andorran Peseta
    • + *
    • AOA - Angolan Kwanza
    • + *
    • AOK - Angolan Kwanza (1977–1991)
    • + *
    • AON - Angolan New Kwanza (1990–2000)
    • + *
    • AOR - Angolan Readjusted Kwanza (1995–1999)
    • + *
    • ARA - Argentine Austral
    • + *
    • ARS - Argentine Peso
    • + *
    • ARM - Argentine Peso (1881–1970)
    • + *
    • ARP - Argentine Peso (1983–1985)
    • + *
    • ARL - Argentine Peso Ley (1970–1983)
    • + *
    • AMD - Armenian Dram
    • + *
    • AWG - Aruban Florin
    • + *
    • AUD - Australian Dollar
    • + *
    • ATS - Austrian Schilling
    • + *
    • AZN - Azerbaijani Manat
    • + *
    • AZM - Azerbaijani Manat (1993–2006)
    • + *
    • BSD - Bahamian Dollar
    • + *
    • BHD - Bahraini Dinar
    • + *
    • BDT - Bangladeshi Taka
    • + *
    • BBD - Barbadian Dollar
    • + *
    • BYN - Belarusian Ruble
    • + *
    • BYB - Belarusian Ruble (1994–1999)
    • + *
    • BYR - Belarusian Ruble (2000–2016)
    • + *
    • BEF - Belgian Franc
    • + *
    • BEC - Belgian Franc (convertible)
    • + *
    • BEL - Belgian Franc (financial)
    • + *
    • BZD - Belize Dollar
    • + *
    • BMD - Bermudan Dollar
    • + *
    • BTN - Bhutanese Ngultrum
    • + *
    • BOB - Bolivian Boliviano
    • + *
    • BOL - Bolivian Boliviano (1863–1963)
    • + *
    • BOV - Bolivian Mvdol
    • + *
    • BOP - Bolivian Peso
    • + *
    • BAM - Bosnia-Herzegovina Convertible Mark
    • + *
    • BAD - Bosnia-Herzegovina Dinar (1992–1994)
    • + *
    • BAN - Bosnia-Herzegovina New Dinar (1994–1997)
    • + *
    • BWP - Botswanan Pula
    • + *
    • BRC - Brazilian Cruzado (1986–1989)
    • + *
    • BRZ - Brazilian Cruzeiro (1942–1967)
    • + *
    • BRE - Brazilian Cruzeiro (1990–1993)
    • + *
    • BRR - Brazilian Cruzeiro (1993–1994)
    • + *
    • BRN - Brazilian New Cruzado (1989–1990)
    • + *
    • BRB - Brazilian New Cruzeiro (1967–1986)
    • + *
    • BRL - Brazilian Real
    • + *
    • GBP - British Pound
    • + *
    • BND - Brunei Dollar
    • + *
    • BGL - Bulgarian Hard Lev
    • + *
    • BGN - Bulgarian Lev
    • + *
    • BGO - Bulgarian Lev (1879–1952)
    • + *
    • BGM - Bulgarian Socialist Lev
    • + *
    • BUK - Burmese Kyat
    • + *
    • BIF - Burundian Franc
    • + *
    • XPF - CFP Franc
    • + *
    • KHR - Cambodian Riel
    • + *
    • CAD - Canadian Dollar
    • + *
    • CVE - Cape Verdean Escudo
    • + *
    • KYD - Cayman Islands Dollar
    • + *
    • XAF - Central African CFA Franc
    • + *
    • CLE - Chilean Escudo
    • + *
    • CLP - Chilean Peso
    • + *
    • CLF - Chilean Unit of Account (UF)
    • + *
    • CNX - Chinese People’s Bank Dollar
    • + *
    • CNY - Chinese Yuan
    • + *
    • CNH - Chinese Yuan (offshore)
    • + *
    • COP - Colombian Peso
    • + *
    • COU - Colombian Real Value Unit
    • + *
    • KMF - Comorian Franc
    • + *
    • CDF - Congolese Franc
    • + *
    • CRC - Costa Rican Colón
    • + *
    • HRD - Croatian Dinar
    • + *
    • HRK - Croatian Kuna
    • + *
    • CUC - Cuban Convertible Peso
    • + *
    • CUP - Cuban Peso
    • + *
    • CYP - Cypriot Pound
    • + *
    • CZK - Czech Koruna
    • + *
    • CSK - Czechoslovak Hard Koruna
    • + *
    • DKK - Danish Krone
    • + *
    • DJF - Djiboutian Franc
    • + *
    • DOP - Dominican Peso
    • + *
    • NLG - Dutch Guilder
    • + *
    • XCD - East Caribbean Dollar
    • + *
    • DDM - East German Mark
    • + *
    • ECS - Ecuadorian Sucre
    • + *
    • ECV - Ecuadorian Unit of Constant Value
    • + *
    • EGP - Egyptian Pound
    • + *
    • GQE - Equatorial Guinean Ekwele
    • + *
    • ERN - Eritrean Nakfa
    • + *
    • EEK - Estonian Kroon
    • + *
    • ETB - Ethiopian Birr
    • + *
    • EUR - Euro
    • + *
    • XBA - European Composite Unit
    • + *
    • XEU - European Currency Unit
    • + *
    • XBB - European Monetary Unit
    • + *
    • XBC - European Unit of Account (XBC)
    • + *
    • XBD - European Unit of Account (XBD)
    • + *
    • FKP - Falkland Islands Pound
    • + *
    • FJD - Fijian Dollar
    • + *
    • FIM - Finnish Markka
    • + *
    • FRF - French Franc
    • + *
    • XFO - French Gold Franc
    • + *
    • XFU - French UIC-Franc
    • + *
    • GMD - Gambian Dalasi
    • + *
    • GEK - Georgian Kupon Larit
    • + *
    • GEL - Georgian Lari
    • + *
    • DEM - German Mark
    • + *
    • GHS - Ghanaian Cedi
    • + *
    • GHC - Ghanaian Cedi (1979–2007)
    • + *
    • GIP - Gibraltar Pound
    • + *
    • XAU - Gold
    • + *
    • GRD - Greek Drachma
    • + *
    • GTQ - Guatemalan Quetzal
    • + *
    • GWP - Guinea-Bissau Peso
    • + *
    • GNF - Guinean Franc
    • + *
    • GNS - Guinean Syli
    • + *
    • GYD - Guyanaese Dollar
    • + *
    • HTG - Haitian Gourde
    • + *
    • HNL - Honduran Lempira
    • + *
    • HKD - Hong Kong Dollar
    • + *
    • HUF - Hungarian Forint
    • + *
    • IMP - IMP
    • + *
    • ISK - Icelandic Króna
    • + *
    • ISJ - Icelandic Króna (1918–1981)
    • + *
    • INR - Indian Rupee
    • + *
    • IDR - Indonesian Rupiah
    • + *
    • IRR - Iranian Rial
    • + *
    • IQD - Iraqi Dinar
    • + *
    • IEP - Irish Pound
    • + *
    • ILS - Israeli New Shekel
    • + *
    • ILP - Israeli Pound
    • + *
    • ILR - Israeli Shekel (1980–1985)
    • + *
    • ITL - Italian Lira
    • + *
    • JMD - Jamaican Dollar
    • + *
    • JPY - Japanese Yen
    • + *
    • JOD - Jordanian Dinar
    • + *
    • KZT - Kazakhstani Tenge
    • + *
    • KES - Kenyan Shilling
    • + *
    • KWD - Kuwaiti Dinar
    • + *
    • KGS - Kyrgystani Som
    • + *
    • LAK - Laotian Kip
    • + *
    • LVL - Latvian Lats
    • + *
    • LVR - Latvian Ruble
    • + *
    • LBP - Lebanese Pound
    • + *
    • LSL - Lesotho Loti
    • + *
    • LRD - Liberian Dollar
    • + *
    • LYD - Libyan Dinar
    • + *
    • LTL - Lithuanian Litas
    • + *
    • LTT - Lithuanian Talonas
    • + *
    • LUL - Luxembourg Financial Franc
    • + *
    • LUC - Luxembourgian Convertible Franc
    • + *
    • LUF - Luxembourgian Franc
    • + *
    • MOP - Macanese Pataca
    • + *
    • MKD - Macedonian Denar
    • + *
    • MKN - Macedonian Denar (1992–1993)
    • + *
    • MGA - Malagasy Ariary
    • + *
    • MGF - Malagasy Franc
    • + *
    • MWK - Malawian Kwacha
    • + *
    • MYR - Malaysian Ringgit
    • + *
    • MVR - Maldivian Rufiyaa
    • + *
    • MVP - Maldivian Rupee (1947–1981)
    • + *
    • MLF - Malian Franc
    • + *
    • MTL - Maltese Lira
    • + *
    • MTP - Maltese Pound
    • + *
    • MRU - Mauritanian Ouguiya
    • + *
    • MRO - Mauritanian Ouguiya (1973–2017)
    • + *
    • MUR - Mauritian Rupee
    • + *
    • MXV - Mexican Investment Unit
    • + *
    • MXN - Mexican Peso
    • + *
    • MXP - Mexican Silver Peso (1861–1992)
    • + *
    • MDC - Moldovan Cupon
    • + *
    • MDL - Moldovan Leu
    • + *
    • MCF - Monegasque Franc
    • + *
    • MNT - Mongolian Tugrik
    • + *
    • MAD - Moroccan Dirham
    • + *
    • MAF - Moroccan Franc
    • + *
    • MZE - Mozambican Escudo
    • + *
    • MZN - Mozambican Metical
    • + *
    • MZM - Mozambican Metical (1980–2006)
    • + *
    • MMK - Myanmar Kyat
    • + *
    • NAD - Namibian Dollar
    • + *
    • NPR - Nepalese Rupee
    • + *
    • ANG - Netherlands Antillean Guilder
    • + *
    • TWD - New Taiwan Dollar
    • + *
    • NZD - New Zealand Dollar
    • + *
    • NIO - Nicaraguan Córdoba
    • + *
    • NIC - Nicaraguan Córdoba (1988–1991)
    • + *
    • NGN - Nigerian Naira
    • + *
    • KPW - North Korean Won
    • + *
    • NOK - Norwegian Krone
    • + *
    • OMR - Omani Rial
    • + *
    • PKR - Pakistani Rupee
    • + *
    • XPD - Palladium
    • + *
    • PAB - Panamanian Balboa
    • + *
    • PGK - Papua New Guinean Kina
    • + *
    • PYG - Paraguayan Guarani
    • + *
    • PEI - Peruvian Inti
    • + *
    • PEN - Peruvian Sol
    • + *
    • PES - Peruvian Sol (1863–1965)
    • + *
    • PHP - Philippine Peso
    • + *
    • XPT - Platinum
    • + *
    • PLN - Polish Zloty
    • + *
    • PLZ - Polish Zloty (1950–1995)
    • + *
    • PTE - Portuguese Escudo
    • + *
    • GWE - Portuguese Guinea Escudo
    • + *
    • QAR - Qatari Rial
    • + *
    • XRE - RINET Funds
    • + *
    • RHD - Rhodesian Dollar
    • + *
    • RON - Romanian Leu
    • + *
    • ROL - Romanian Leu (1952–2006)
    • + *
    • RUB - Russian Ruble
    • + *
    • RUR - Russian Ruble (1991–1998)
    • + *
    • RWF - Rwandan Franc
    • + *
    • SVC - Salvadoran Colón
    • + *
    • WST - Samoan Tala
    • + *
    • SAR - Saudi Riyal
    • + *
    • RSD - Serbian Dinar
    • + *
    • CSD - Serbian Dinar (2002–2006)
    • + *
    • SCR - Seychellois Rupee
    • + *
    • SLL - Sierra Leonean Leone
    • + *
    • XAG - Silver
    • + *
    • SGD - Singapore Dollar
    • + *
    • SKK - Slovak Koruna
    • + *
    • SIT - Slovenian Tolar
    • + *
    • SBD - Solomon Islands Dollar
    • + *
    • SOS - Somali Shilling
    • + *
    • ZAR - South African Rand
    • + *
    • ZAL - South African Rand (financial)
    • + *
    • KRH - South Korean Hwan (1953–1962)
    • + *
    • KRW - South Korean Won
    • + *
    • KRO - South Korean Won (1945–1953)
    • + *
    • SSP - South Sudanese Pound
    • + *
    • SUR - Soviet Rouble
    • + *
    • ESP - Spanish Peseta
    • + *
    • ESA - Spanish Peseta (A account)
    • + *
    • ESB - Spanish Peseta (convertible account)
    • + *
    • XDR - Special Drawing Rights
    • + *
    • LKR - Sri Lankan Rupee
    • + *
    • SHP - St. Helena Pound
    • + *
    • XSU - Sucre
    • + *
    • SDD - Sudanese Dinar (1992–2007)
    • + *
    • SDG - Sudanese Pound
    • + *
    • SDP - Sudanese Pound (1957–1998)
    • + *
    • SRD - Surinamese Dollar
    • + *
    • SRG - Surinamese Guilder
    • + *
    • SZL - Swazi Lilangeni
    • + *
    • SEK - Swedish Krona
    • + *
    • CHF - Swiss Franc
    • + *
    • SYP - Syrian Pound
    • + *
    • STN - São Tomé & Príncipe Dobra
    • + *
    • STD - São Tomé & Príncipe Dobra (1977–2017)
    • + *
    • TVD - TVD
    • + *
    • TJR - Tajikistani Ruble
    • + *
    • TJS - Tajikistani Somoni
    • + *
    • TZS - Tanzanian Shilling
    • + *
    • XTS - Testing Currency Code
    • + *
    • THB - Thai Baht
    • + *
    • XXX - The codes assigned for transactions where no currency is involved
    • + *
    • TPE - Timorese Escudo
    • + *
    • TOP - Tongan Paʻanga
    • + *
    • TTD - Trinidad & Tobago Dollar
    • + *
    • TND - Tunisian Dinar
    • + *
    • TRY - Turkish Lira
    • + *
    • TRL - Turkish Lira (1922–2005)
    • + *
    • TMT - Turkmenistani Manat
    • + *
    • TMM - Turkmenistani Manat (1993–2009)
    • + *
    • USD - US Dollar
    • + *
    • USN - US Dollar (Next day)
    • + *
    • USS - US Dollar (Same day)
    • + *
    • UGX - Ugandan Shilling
    • + *
    • UGS - Ugandan Shilling (1966–1987)
    • + *
    • UAH - Ukrainian Hryvnia
    • + *
    • UAK - Ukrainian Karbovanets
    • + *
    • AED - United Arab Emirates Dirham
    • + *
    • UYW - Uruguayan Nominal Wage Index Unit
    • + *
    • UYU - Uruguayan Peso
    • + *
    • UYP - Uruguayan Peso (1975–1993)
    • + *
    • UYI - Uruguayan Peso (Indexed Units)
    • + *
    • UZS - Uzbekistani Som
    • + *
    • VUV - Vanuatu Vatu
    • + *
    • VES - Venezuelan Bolívar
    • + *
    • VEB - Venezuelan Bolívar (1871–2008)
    • + *
    • VEF - Venezuelan Bolívar (2008–2018)
    • + *
    • VND - Vietnamese Dong
    • + *
    • VNN - Vietnamese Dong (1978–1985)
    • + *
    • CHE - WIR Euro
    • + *
    • CHW - WIR Franc
    • + *
    • XOF - West African CFA Franc
    • + *
    • YDD - Yemeni Dinar
    • + *
    • YER - Yemeni Rial
    • + *
    • YUN - Yugoslavian Convertible Dinar (1990–1992)
    • + *
    • YUD - Yugoslavian Hard Dinar (1966–1990)
    • + *
    • YUM - Yugoslavian New Dinar (1994–2002)
    • + *
    • YUR - Yugoslavian Reformed Dinar (1992–1993)
    • + *
    • ZWN - ZWN
    • + *
    • ZRN - Zairean New Zaire (1993–1998)
    • + *
    • ZRZ - Zairean Zaire (1971–1993)
    • + *
    • ZMW - Zambian Kwacha
    • + *
    • ZMK - Zambian Kwacha (1968–2012)
    • + *
    • ZWD - Zimbabwean Dollar (1980–2008)
    • + *
    • ZWR - Zimbabwean Dollar (2008)
    • + *
    • ZWL - Zimbabwean Dollar (2009)
    • + *
    + */ @JsonSetter(value = "currency", nulls = Nulls.SKIP) - public Builder currency(Optional currency) { + public Builder currency(Optional currency) { this.currency = currency; return this; } - public Builder currency(TransactionCurrencyEnum currency) { + public Builder currency(IncomeStatementCurrency currency) { this.currency = Optional.ofNullable(currency); return this; } + /** + *

    The company the income statement belongs to.

    + */ @JsonSetter(value = "company", nulls = Nulls.SKIP) public Builder company(Optional company) { this.company = company; @@ -756,6 +1082,9 @@ public Builder company(IncomeStatementCompany company) { return this; } + /** + *

    The income statement's start period.

    + */ @JsonSetter(value = "start_period", nulls = Nulls.SKIP) public Builder startPeriod(Optional startPeriod) { this.startPeriod = startPeriod; @@ -767,6 +1096,9 @@ public Builder startPeriod(OffsetDateTime startPeriod) { return this; } + /** + *

    The income statement's end period.

    + */ @JsonSetter(value = "end_period", nulls = Nulls.SKIP) public Builder endPeriod(Optional endPeriod) { this.endPeriod = endPeriod; @@ -800,6 +1132,9 @@ public Builder costOfSales(List costOfSales) { return this; } + /** + *

    The revenue minus the cost of sale.

    + */ @JsonSetter(value = "gross_profit", nulls = Nulls.SKIP) public Builder grossProfit(Optional grossProfit) { this.grossProfit = grossProfit; @@ -822,6 +1157,9 @@ public Builder operatingExpenses(List operatingExpenses) { return this; } + /** + *

    The revenue minus the operating expenses.

    + */ @JsonSetter(value = "net_operating_income", nulls = Nulls.SKIP) public Builder netOperatingIncome(Optional netOperatingIncome) { this.netOperatingIncome = netOperatingIncome; @@ -844,6 +1182,9 @@ public Builder nonOperatingExpenses(List nonOperatingExpenses) { return this; } + /** + *

    The gross profit minus the total expenses.

    + */ @JsonSetter(value = "net_income", nulls = Nulls.SKIP) public Builder netIncome(Optional netIncome) { this.netIncome = netIncome; @@ -855,6 +1196,9 @@ public Builder netIncome(Double netIncome) { return this; } + /** + *

    Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

    + */ @JsonSetter(value = "remote_was_deleted", nulls = Nulls.SKIP) public Builder remoteWasDeleted(Optional remoteWasDeleted) { this.remoteWasDeleted = remoteWasDeleted; diff --git a/src/main/java/com/merge/api/accounting/types/IncomeStatementCurrency.java b/src/main/java/com/merge/api/accounting/types/IncomeStatementCurrency.java new file mode 100644 index 000000000..8adccea30 --- /dev/null +++ b/src/main/java/com/merge/api/accounting/types/IncomeStatementCurrency.java @@ -0,0 +1,95 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.merge.api.accounting.types; + +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.databind.DeserializationContext; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.fasterxml.jackson.databind.deser.std.StdDeserializer; +import com.merge.api.core.ObjectMappers; +import java.io.IOException; +import java.util.Objects; + +@JsonDeserialize(using = IncomeStatementCurrency.Deserializer.class) +public final class IncomeStatementCurrency { + private final Object value; + + private final int type; + + private IncomeStatementCurrency(Object value, int type) { + this.value = value; + this.type = type; + } + + @JsonValue + public Object get() { + return this.value; + } + + @SuppressWarnings("unchecked") + public T visit(Visitor visitor) { + if (this.type == 0) { + return visitor.visit((TransactionCurrencyEnum) this.value); + } else if (this.type == 1) { + return visitor.visit((String) this.value); + } + throw new IllegalStateException("Failed to visit value. This should never happen."); + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof IncomeStatementCurrency && equalTo((IncomeStatementCurrency) other); + } + + private boolean equalTo(IncomeStatementCurrency other) { + return value.equals(other.value); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.value); + } + + @java.lang.Override + public String toString() { + return this.value.toString(); + } + + public static IncomeStatementCurrency of(TransactionCurrencyEnum value) { + return new IncomeStatementCurrency(value, 0); + } + + public static IncomeStatementCurrency of(String value) { + return new IncomeStatementCurrency(value, 1); + } + + public interface Visitor { + T visit(TransactionCurrencyEnum value); + + T visit(String value); + } + + static final class Deserializer extends StdDeserializer { + Deserializer() { + super(IncomeStatementCurrency.class); + } + + @java.lang.Override + public IncomeStatementCurrency deserialize(JsonParser p, DeserializationContext context) throws IOException { + Object value = p.readValueAs(Object.class); + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, TransactionCurrencyEnum.class)); + } catch (IllegalArgumentException e) { + } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, String.class)); + } catch (IllegalArgumentException e) { + } + throw new JsonParseException(p, "Failed to deserialize"); + } + } +} diff --git a/src/main/java/com/merge/api/accounting/types/IncomeStatementsListRequest.java b/src/main/java/com/merge/api/accounting/types/IncomeStatementsListRequest.java index e0395e0a1..b671a49d0 100644 --- a/src/main/java/com/merge/api/accounting/types/IncomeStatementsListRequest.java +++ b/src/main/java/com/merge/api/accounting/types/IncomeStatementsListRequest.java @@ -273,6 +273,9 @@ public Builder from(IncomeStatementsListRequest other) { return this; } + /** + *

    Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.

    + */ @JsonSetter(value = "expand", nulls = Nulls.SKIP) public Builder expand(Optional> expand) { this.expand = expand; @@ -289,6 +292,9 @@ public Builder expand(String expand) { return this; } + /** + *

    If provided, will only return income statements for this company.

    + */ @JsonSetter(value = "company_id", nulls = Nulls.SKIP) public Builder companyId(Optional companyId) { this.companyId = companyId; @@ -300,6 +306,9 @@ public Builder companyId(String companyId) { return this; } + /** + *

    If provided, will only return objects created after this datetime.

    + */ @JsonSetter(value = "created_after", nulls = Nulls.SKIP) public Builder createdAfter(Optional createdAfter) { this.createdAfter = createdAfter; @@ -311,6 +320,9 @@ public Builder createdAfter(OffsetDateTime createdAfter) { return this; } + /** + *

    If provided, will only return objects created before this datetime.

    + */ @JsonSetter(value = "created_before", nulls = Nulls.SKIP) public Builder createdBefore(Optional createdBefore) { this.createdBefore = createdBefore; @@ -322,6 +334,9 @@ public Builder createdBefore(OffsetDateTime createdBefore) { return this; } + /** + *

    The pagination cursor value.

    + */ @JsonSetter(value = "cursor", nulls = Nulls.SKIP) public Builder cursor(Optional cursor) { this.cursor = cursor; @@ -333,6 +348,9 @@ public Builder cursor(String cursor) { return this; } + /** + *

    Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

    + */ @JsonSetter(value = "include_deleted_data", nulls = Nulls.SKIP) public Builder includeDeletedData(Optional includeDeletedData) { this.includeDeletedData = includeDeletedData; @@ -344,6 +362,9 @@ public Builder includeDeletedData(Boolean includeDeletedData) { return this; } + /** + *

    Whether to include the original data Merge fetched from the third-party to produce these models.

    + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -355,6 +376,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

    Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

    + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; @@ -366,6 +390,9 @@ public Builder includeShellData(Boolean includeShellData) { return this; } + /** + *

    If provided, only objects synced by Merge after this date time will be returned.

    + */ @JsonSetter(value = "modified_after", nulls = Nulls.SKIP) public Builder modifiedAfter(Optional modifiedAfter) { this.modifiedAfter = modifiedAfter; @@ -377,6 +404,9 @@ public Builder modifiedAfter(OffsetDateTime modifiedAfter) { return this; } + /** + *

    If provided, only objects synced by Merge before this date time will be returned.

    + */ @JsonSetter(value = "modified_before", nulls = Nulls.SKIP) public Builder modifiedBefore(Optional modifiedBefore) { this.modifiedBefore = modifiedBefore; @@ -388,6 +418,9 @@ public Builder modifiedBefore(OffsetDateTime modifiedBefore) { return this; } + /** + *

    Number of results to return per page.

    + */ @JsonSetter(value = "page_size", nulls = Nulls.SKIP) public Builder pageSize(Optional pageSize) { this.pageSize = pageSize; @@ -399,6 +432,9 @@ public Builder pageSize(Integer pageSize) { return this; } + /** + *

    The API provider's ID for the given object.

    + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; diff --git a/src/main/java/com/merge/api/accounting/types/IncomeStatementsRetrieveRequest.java b/src/main/java/com/merge/api/accounting/types/IncomeStatementsRetrieveRequest.java index b67054e37..497bc4788 100644 --- a/src/main/java/com/merge/api/accounting/types/IncomeStatementsRetrieveRequest.java +++ b/src/main/java/com/merge/api/accounting/types/IncomeStatementsRetrieveRequest.java @@ -116,6 +116,9 @@ public Builder from(IncomeStatementsRetrieveRequest other) { return this; } + /** + *

    Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.

    + */ @JsonSetter(value = "expand", nulls = Nulls.SKIP) public Builder expand(Optional> expand) { this.expand = expand; @@ -132,6 +135,9 @@ public Builder expand(String expand) { return this; } + /** + *

    Whether to include the original data Merge fetched from the third-party to produce these models.

    + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -143,6 +149,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

    Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

    + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; diff --git a/src/main/java/com/merge/api/accounting/types/Invoice.java b/src/main/java/com/merge/api/accounting/types/Invoice.java index 2bcee59f9..092869cd4 100644 --- a/src/main/java/com/merge/api/accounting/types/Invoice.java +++ b/src/main/java/com/merge/api/accounting/types/Invoice.java @@ -49,7 +49,7 @@ public final class Invoice { private final Optional employee; - private final Optional currency; + private final Optional currency; private final Optional exchangeRate; @@ -59,7 +59,7 @@ public final class Invoice { private final Optional subTotal; - private final Optional status; + private final Optional status; private final Optional totalTaxAmount; @@ -111,12 +111,12 @@ private Invoice( Optional memo, Optional company, Optional employee, - Optional currency, + Optional currency, Optional exchangeRate, Optional paymentTerm, Optional totalDiscount, Optional subTotal, - Optional status, + Optional status, Optional totalTaxAmount, Optional totalAmount, Optional balance, @@ -591,7 +591,7 @@ public Optional getEmployee() { * */ @JsonProperty("currency") - public Optional getCurrency() { + public Optional getCurrency() { return currency; } @@ -639,7 +639,7 @@ public Optional getSubTotal() { * */ @JsonProperty("status") - public Optional getStatus() { + public Optional getStatus() { return status; } @@ -889,7 +889,7 @@ public static final class Builder { private Optional employee = Optional.empty(); - private Optional currency = Optional.empty(); + private Optional currency = Optional.empty(); private Optional exchangeRate = Optional.empty(); @@ -899,7 +899,7 @@ public static final class Builder { private Optional subTotal = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Optional totalTaxAmount = Optional.empty(); @@ -991,6 +991,9 @@ public Builder id(String id) { return this; } + /** + *

    The third-party API ID of the matching object.

    + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; @@ -1002,6 +1005,9 @@ public Builder remoteId(String remoteId) { return this; } + /** + *

    The datetime that this object was created by Merge.

    + */ @JsonSetter(value = "created_at", nulls = Nulls.SKIP) public Builder createdAt(Optional createdAt) { this.createdAt = createdAt; @@ -1013,6 +1019,9 @@ public Builder createdAt(OffsetDateTime createdAt) { return this; } + /** + *

    The datetime that this object was modified by Merge.

    + */ @JsonSetter(value = "modified_at", nulls = Nulls.SKIP) public Builder modifiedAt(Optional modifiedAt) { this.modifiedAt = modifiedAt; @@ -1024,6 +1033,13 @@ public Builder modifiedAt(OffsetDateTime modifiedAt) { return this; } + /** + *

    Whether the invoice is an accounts receivable or accounts payable. If type is ACCOUNTS_PAYABLE, the invoice is a bill. If type is ACCOUNTS_RECEIVABLE, it is an invoice.

    + *
      + *
    • ACCOUNTS_RECEIVABLE - ACCOUNTS_RECEIVABLE
    • + *
    • ACCOUNTS_PAYABLE - ACCOUNTS_PAYABLE
    • + *
    + */ @JsonSetter(value = "type", nulls = Nulls.SKIP) public Builder type(Optional type) { this.type = type; @@ -1035,6 +1051,9 @@ public Builder type(InvoiceTypeEnum type) { return this; } + /** + *

    The invoice's contact.

    + */ @JsonSetter(value = "contact", nulls = Nulls.SKIP) public Builder contact(Optional contact) { this.contact = contact; @@ -1046,6 +1065,9 @@ public Builder contact(InvoiceContact contact) { return this; } + /** + *

    The invoice's number.

    + */ @JsonSetter(value = "number", nulls = Nulls.SKIP) public Builder number(Optional number) { this.number = number; @@ -1057,6 +1079,9 @@ public Builder number(String number) { return this; } + /** + *

    The invoice's issue date.

    + */ @JsonSetter(value = "issue_date", nulls = Nulls.SKIP) public Builder issueDate(Optional issueDate) { this.issueDate = issueDate; @@ -1068,6 +1093,9 @@ public Builder issueDate(OffsetDateTime issueDate) { return this; } + /** + *

    The invoice's due date.

    + */ @JsonSetter(value = "due_date", nulls = Nulls.SKIP) public Builder dueDate(Optional dueDate) { this.dueDate = dueDate; @@ -1079,6 +1107,9 @@ public Builder dueDate(OffsetDateTime dueDate) { return this; } + /** + *

    The invoice's paid date.

    + */ @JsonSetter(value = "paid_on_date", nulls = Nulls.SKIP) public Builder paidOnDate(Optional paidOnDate) { this.paidOnDate = paidOnDate; @@ -1090,6 +1121,9 @@ public Builder paidOnDate(OffsetDateTime paidOnDate) { return this; } + /** + *

    The invoice's private note.

    + */ @JsonSetter(value = "memo", nulls = Nulls.SKIP) public Builder memo(Optional memo) { this.memo = memo; @@ -1101,6 +1135,9 @@ public Builder memo(String memo) { return this; } + /** + *

    The company the invoice belongs to.

    + */ @JsonSetter(value = "company", nulls = Nulls.SKIP) public Builder company(Optional company) { this.company = company; @@ -1112,6 +1149,9 @@ public Builder company(InvoiceCompany company) { return this; } + /** + *

    The employee this overall transaction relates to.

    + */ @JsonSetter(value = "employee", nulls = Nulls.SKIP) public Builder employee(Optional employee) { this.employee = employee; @@ -1123,17 +1163,331 @@ public Builder employee(InvoiceEmployee employee) { return this; } + /** + *

    The invoice's currency.

    + *
      + *
    • XUA - ADB Unit of Account
    • + *
    • AFN - Afghan Afghani
    • + *
    • AFA - Afghan Afghani (1927–2002)
    • + *
    • ALL - Albanian Lek
    • + *
    • ALK - Albanian Lek (1946–1965)
    • + *
    • DZD - Algerian Dinar
    • + *
    • ADP - Andorran Peseta
    • + *
    • AOA - Angolan Kwanza
    • + *
    • AOK - Angolan Kwanza (1977–1991)
    • + *
    • AON - Angolan New Kwanza (1990–2000)
    • + *
    • AOR - Angolan Readjusted Kwanza (1995–1999)
    • + *
    • ARA - Argentine Austral
    • + *
    • ARS - Argentine Peso
    • + *
    • ARM - Argentine Peso (1881–1970)
    • + *
    • ARP - Argentine Peso (1983–1985)
    • + *
    • ARL - Argentine Peso Ley (1970–1983)
    • + *
    • AMD - Armenian Dram
    • + *
    • AWG - Aruban Florin
    • + *
    • AUD - Australian Dollar
    • + *
    • ATS - Austrian Schilling
    • + *
    • AZN - Azerbaijani Manat
    • + *
    • AZM - Azerbaijani Manat (1993–2006)
    • + *
    • BSD - Bahamian Dollar
    • + *
    • BHD - Bahraini Dinar
    • + *
    • BDT - Bangladeshi Taka
    • + *
    • BBD - Barbadian Dollar
    • + *
    • BYN - Belarusian Ruble
    • + *
    • BYB - Belarusian Ruble (1994–1999)
    • + *
    • BYR - Belarusian Ruble (2000–2016)
    • + *
    • BEF - Belgian Franc
    • + *
    • BEC - Belgian Franc (convertible)
    • + *
    • BEL - Belgian Franc (financial)
    • + *
    • BZD - Belize Dollar
    • + *
    • BMD - Bermudan Dollar
    • + *
    • BTN - Bhutanese Ngultrum
    • + *
    • BOB - Bolivian Boliviano
    • + *
    • BOL - Bolivian Boliviano (1863–1963)
    • + *
    • BOV - Bolivian Mvdol
    • + *
    • BOP - Bolivian Peso
    • + *
    • BAM - Bosnia-Herzegovina Convertible Mark
    • + *
    • BAD - Bosnia-Herzegovina Dinar (1992–1994)
    • + *
    • BAN - Bosnia-Herzegovina New Dinar (1994–1997)
    • + *
    • BWP - Botswanan Pula
    • + *
    • BRC - Brazilian Cruzado (1986–1989)
    • + *
    • BRZ - Brazilian Cruzeiro (1942–1967)
    • + *
    • BRE - Brazilian Cruzeiro (1990–1993)
    • + *
    • BRR - Brazilian Cruzeiro (1993–1994)
    • + *
    • BRN - Brazilian New Cruzado (1989–1990)
    • + *
    • BRB - Brazilian New Cruzeiro (1967–1986)
    • + *
    • BRL - Brazilian Real
    • + *
    • GBP - British Pound
    • + *
    • BND - Brunei Dollar
    • + *
    • BGL - Bulgarian Hard Lev
    • + *
    • BGN - Bulgarian Lev
    • + *
    • BGO - Bulgarian Lev (1879–1952)
    • + *
    • BGM - Bulgarian Socialist Lev
    • + *
    • BUK - Burmese Kyat
    • + *
    • BIF - Burundian Franc
    • + *
    • XPF - CFP Franc
    • + *
    • KHR - Cambodian Riel
    • + *
    • CAD - Canadian Dollar
    • + *
    • CVE - Cape Verdean Escudo
    • + *
    • KYD - Cayman Islands Dollar
    • + *
    • XAF - Central African CFA Franc
    • + *
    • CLE - Chilean Escudo
    • + *
    • CLP - Chilean Peso
    • + *
    • CLF - Chilean Unit of Account (UF)
    • + *
    • CNX - Chinese People’s Bank Dollar
    • + *
    • CNY - Chinese Yuan
    • + *
    • CNH - Chinese Yuan (offshore)
    • + *
    • COP - Colombian Peso
    • + *
    • COU - Colombian Real Value Unit
    • + *
    • KMF - Comorian Franc
    • + *
    • CDF - Congolese Franc
    • + *
    • CRC - Costa Rican Colón
    • + *
    • HRD - Croatian Dinar
    • + *
    • HRK - Croatian Kuna
    • + *
    • CUC - Cuban Convertible Peso
    • + *
    • CUP - Cuban Peso
    • + *
    • CYP - Cypriot Pound
    • + *
    • CZK - Czech Koruna
    • + *
    • CSK - Czechoslovak Hard Koruna
    • + *
    • DKK - Danish Krone
    • + *
    • DJF - Djiboutian Franc
    • + *
    • DOP - Dominican Peso
    • + *
    • NLG - Dutch Guilder
    • + *
    • XCD - East Caribbean Dollar
    • + *
    • DDM - East German Mark
    • + *
    • ECS - Ecuadorian Sucre
    • + *
    • ECV - Ecuadorian Unit of Constant Value
    • + *
    • EGP - Egyptian Pound
    • + *
    • GQE - Equatorial Guinean Ekwele
    • + *
    • ERN - Eritrean Nakfa
    • + *
    • EEK - Estonian Kroon
    • + *
    • ETB - Ethiopian Birr
    • + *
    • EUR - Euro
    • + *
    • XBA - European Composite Unit
    • + *
    • XEU - European Currency Unit
    • + *
    • XBB - European Monetary Unit
    • + *
    • XBC - European Unit of Account (XBC)
    • + *
    • XBD - European Unit of Account (XBD)
    • + *
    • FKP - Falkland Islands Pound
    • + *
    • FJD - Fijian Dollar
    • + *
    • FIM - Finnish Markka
    • + *
    • FRF - French Franc
    • + *
    • XFO - French Gold Franc
    • + *
    • XFU - French UIC-Franc
    • + *
    • GMD - Gambian Dalasi
    • + *
    • GEK - Georgian Kupon Larit
    • + *
    • GEL - Georgian Lari
    • + *
    • DEM - German Mark
    • + *
    • GHS - Ghanaian Cedi
    • + *
    • GHC - Ghanaian Cedi (1979–2007)
    • + *
    • GIP - Gibraltar Pound
    • + *
    • XAU - Gold
    • + *
    • GRD - Greek Drachma
    • + *
    • GTQ - Guatemalan Quetzal
    • + *
    • GWP - Guinea-Bissau Peso
    • + *
    • GNF - Guinean Franc
    • + *
    • GNS - Guinean Syli
    • + *
    • GYD - Guyanaese Dollar
    • + *
    • HTG - Haitian Gourde
    • + *
    • HNL - Honduran Lempira
    • + *
    • HKD - Hong Kong Dollar
    • + *
    • HUF - Hungarian Forint
    • + *
    • IMP - IMP
    • + *
    • ISK - Icelandic Króna
    • + *
    • ISJ - Icelandic Króna (1918–1981)
    • + *
    • INR - Indian Rupee
    • + *
    • IDR - Indonesian Rupiah
    • + *
    • IRR - Iranian Rial
    • + *
    • IQD - Iraqi Dinar
    • + *
    • IEP - Irish Pound
    • + *
    • ILS - Israeli New Shekel
    • + *
    • ILP - Israeli Pound
    • + *
    • ILR - Israeli Shekel (1980–1985)
    • + *
    • ITL - Italian Lira
    • + *
    • JMD - Jamaican Dollar
    • + *
    • JPY - Japanese Yen
    • + *
    • JOD - Jordanian Dinar
    • + *
    • KZT - Kazakhstani Tenge
    • + *
    • KES - Kenyan Shilling
    • + *
    • KWD - Kuwaiti Dinar
    • + *
    • KGS - Kyrgystani Som
    • + *
    • LAK - Laotian Kip
    • + *
    • LVL - Latvian Lats
    • + *
    • LVR - Latvian Ruble
    • + *
    • LBP - Lebanese Pound
    • + *
    • LSL - Lesotho Loti
    • + *
    • LRD - Liberian Dollar
    • + *
    • LYD - Libyan Dinar
    • + *
    • LTL - Lithuanian Litas
    • + *
    • LTT - Lithuanian Talonas
    • + *
    • LUL - Luxembourg Financial Franc
    • + *
    • LUC - Luxembourgian Convertible Franc
    • + *
    • LUF - Luxembourgian Franc
    • + *
    • MOP - Macanese Pataca
    • + *
    • MKD - Macedonian Denar
    • + *
    • MKN - Macedonian Denar (1992–1993)
    • + *
    • MGA - Malagasy Ariary
    • + *
    • MGF - Malagasy Franc
    • + *
    • MWK - Malawian Kwacha
    • + *
    • MYR - Malaysian Ringgit
    • + *
    • MVR - Maldivian Rufiyaa
    • + *
    • MVP - Maldivian Rupee (1947–1981)
    • + *
    • MLF - Malian Franc
    • + *
    • MTL - Maltese Lira
    • + *
    • MTP - Maltese Pound
    • + *
    • MRU - Mauritanian Ouguiya
    • + *
    • MRO - Mauritanian Ouguiya (1973–2017)
    • + *
    • MUR - Mauritian Rupee
    • + *
    • MXV - Mexican Investment Unit
    • + *
    • MXN - Mexican Peso
    • + *
    • MXP - Mexican Silver Peso (1861–1992)
    • + *
    • MDC - Moldovan Cupon
    • + *
    • MDL - Moldovan Leu
    • + *
    • MCF - Monegasque Franc
    • + *
    • MNT - Mongolian Tugrik
    • + *
    • MAD - Moroccan Dirham
    • + *
    • MAF - Moroccan Franc
    • + *
    • MZE - Mozambican Escudo
    • + *
    • MZN - Mozambican Metical
    • + *
    • MZM - Mozambican Metical (1980–2006)
    • + *
    • MMK - Myanmar Kyat
    • + *
    • NAD - Namibian Dollar
    • + *
    • NPR - Nepalese Rupee
    • + *
    • ANG - Netherlands Antillean Guilder
    • + *
    • TWD - New Taiwan Dollar
    • + *
    • NZD - New Zealand Dollar
    • + *
    • NIO - Nicaraguan Córdoba
    • + *
    • NIC - Nicaraguan Córdoba (1988–1991)
    • + *
    • NGN - Nigerian Naira
    • + *
    • KPW - North Korean Won
    • + *
    • NOK - Norwegian Krone
    • + *
    • OMR - Omani Rial
    • + *
    • PKR - Pakistani Rupee
    • + *
    • XPD - Palladium
    • + *
    • PAB - Panamanian Balboa
    • + *
    • PGK - Papua New Guinean Kina
    • + *
    • PYG - Paraguayan Guarani
    • + *
    • PEI - Peruvian Inti
    • + *
    • PEN - Peruvian Sol
    • + *
    • PES - Peruvian Sol (1863–1965)
    • + *
    • PHP - Philippine Peso
    • + *
    • XPT - Platinum
    • + *
    • PLN - Polish Zloty
    • + *
    • PLZ - Polish Zloty (1950–1995)
    • + *
    • PTE - Portuguese Escudo
    • + *
    • GWE - Portuguese Guinea Escudo
    • + *
    • QAR - Qatari Rial
    • + *
    • XRE - RINET Funds
    • + *
    • RHD - Rhodesian Dollar
    • + *
    • RON - Romanian Leu
    • + *
    • ROL - Romanian Leu (1952–2006)
    • + *
    • RUB - Russian Ruble
    • + *
    • RUR - Russian Ruble (1991–1998)
    • + *
    • RWF - Rwandan Franc
    • + *
    • SVC - Salvadoran Colón
    • + *
    • WST - Samoan Tala
    • + *
    • SAR - Saudi Riyal
    • + *
    • RSD - Serbian Dinar
    • + *
    • CSD - Serbian Dinar (2002–2006)
    • + *
    • SCR - Seychellois Rupee
    • + *
    • SLL - Sierra Leonean Leone
    • + *
    • XAG - Silver
    • + *
    • SGD - Singapore Dollar
    • + *
    • SKK - Slovak Koruna
    • + *
    • SIT - Slovenian Tolar
    • + *
    • SBD - Solomon Islands Dollar
    • + *
    • SOS - Somali Shilling
    • + *
    • ZAR - South African Rand
    • + *
    • ZAL - South African Rand (financial)
    • + *
    • KRH - South Korean Hwan (1953–1962)
    • + *
    • KRW - South Korean Won
    • + *
    • KRO - South Korean Won (1945–1953)
    • + *
    • SSP - South Sudanese Pound
    • + *
    • SUR - Soviet Rouble
    • + *
    • ESP - Spanish Peseta
    • + *
    • ESA - Spanish Peseta (A account)
    • + *
    • ESB - Spanish Peseta (convertible account)
    • + *
    • XDR - Special Drawing Rights
    • + *
    • LKR - Sri Lankan Rupee
    • + *
    • SHP - St. Helena Pound
    • + *
    • XSU - Sucre
    • + *
    • SDD - Sudanese Dinar (1992–2007)
    • + *
    • SDG - Sudanese Pound
    • + *
    • SDP - Sudanese Pound (1957–1998)
    • + *
    • SRD - Surinamese Dollar
    • + *
    • SRG - Surinamese Guilder
    • + *
    • SZL - Swazi Lilangeni
    • + *
    • SEK - Swedish Krona
    • + *
    • CHF - Swiss Franc
    • + *
    • SYP - Syrian Pound
    • + *
    • STN - São Tomé & Príncipe Dobra
    • + *
    • STD - São Tomé & Príncipe Dobra (1977–2017)
    • + *
    • TVD - TVD
    • + *
    • TJR - Tajikistani Ruble
    • + *
    • TJS - Tajikistani Somoni
    • + *
    • TZS - Tanzanian Shilling
    • + *
    • XTS - Testing Currency Code
    • + *
    • THB - Thai Baht
    • + *
    • XXX - The codes assigned for transactions where no currency is involved
    • + *
    • TPE - Timorese Escudo
    • + *
    • TOP - Tongan Paʻanga
    • + *
    • TTD - Trinidad & Tobago Dollar
    • + *
    • TND - Tunisian Dinar
    • + *
    • TRY - Turkish Lira
    • + *
    • TRL - Turkish Lira (1922–2005)
    • + *
    • TMT - Turkmenistani Manat
    • + *
    • TMM - Turkmenistani Manat (1993–2009)
    • + *
    • USD - US Dollar
    • + *
    • USN - US Dollar (Next day)
    • + *
    • USS - US Dollar (Same day)
    • + *
    • UGX - Ugandan Shilling
    • + *
    • UGS - Ugandan Shilling (1966–1987)
    • + *
    • UAH - Ukrainian Hryvnia
    • + *
    • UAK - Ukrainian Karbovanets
    • + *
    • AED - United Arab Emirates Dirham
    • + *
    • UYW - Uruguayan Nominal Wage Index Unit
    • + *
    • UYU - Uruguayan Peso
    • + *
    • UYP - Uruguayan Peso (1975–1993)
    • + *
    • UYI - Uruguayan Peso (Indexed Units)
    • + *
    • UZS - Uzbekistani Som
    • + *
    • VUV - Vanuatu Vatu
    • + *
    • VES - Venezuelan Bolívar
    • + *
    • VEB - Venezuelan Bolívar (1871–2008)
    • + *
    • VEF - Venezuelan Bolívar (2008–2018)
    • + *
    • VND - Vietnamese Dong
    • + *
    • VNN - Vietnamese Dong (1978–1985)
    • + *
    • CHE - WIR Euro
    • + *
    • CHW - WIR Franc
    • + *
    • XOF - West African CFA Franc
    • + *
    • YDD - Yemeni Dinar
    • + *
    • YER - Yemeni Rial
    • + *
    • YUN - Yugoslavian Convertible Dinar (1990–1992)
    • + *
    • YUD - Yugoslavian Hard Dinar (1966–1990)
    • + *
    • YUM - Yugoslavian New Dinar (1994–2002)
    • + *
    • YUR - Yugoslavian Reformed Dinar (1992–1993)
    • + *
    • ZWN - ZWN
    • + *
    • ZRN - Zairean New Zaire (1993–1998)
    • + *
    • ZRZ - Zairean Zaire (1971–1993)
    • + *
    • ZMW - Zambian Kwacha
    • + *
    • ZMK - Zambian Kwacha (1968–2012)
    • + *
    • ZWD - Zimbabwean Dollar (1980–2008)
    • + *
    • ZWR - Zimbabwean Dollar (2008)
    • + *
    • ZWL - Zimbabwean Dollar (2009)
    • + *
    + */ @JsonSetter(value = "currency", nulls = Nulls.SKIP) - public Builder currency(Optional currency) { + public Builder currency(Optional currency) { this.currency = currency; return this; } - public Builder currency(TransactionCurrencyEnum currency) { + public Builder currency(InvoiceCurrency currency) { this.currency = Optional.ofNullable(currency); return this; } + /** + *

    The invoice's exchange rate.

    + */ @JsonSetter(value = "exchange_rate", nulls = Nulls.SKIP) public Builder exchangeRate(Optional exchangeRate) { this.exchangeRate = exchangeRate; @@ -1145,6 +1499,9 @@ public Builder exchangeRate(String exchangeRate) { return this; } + /** + *

    The payment term that applies to this transaction.

    + */ @JsonSetter(value = "payment_term", nulls = Nulls.SKIP) public Builder paymentTerm(Optional paymentTerm) { this.paymentTerm = paymentTerm; @@ -1156,6 +1513,9 @@ public Builder paymentTerm(InvoicePaymentTerm paymentTerm) { return this; } + /** + *

    The total discounts applied to the total cost.

    + */ @JsonSetter(value = "total_discount", nulls = Nulls.SKIP) public Builder totalDiscount(Optional totalDiscount) { this.totalDiscount = totalDiscount; @@ -1167,6 +1527,9 @@ public Builder totalDiscount(Double totalDiscount) { return this; } + /** + *

    The total amount being paid before taxes.

    + */ @JsonSetter(value = "sub_total", nulls = Nulls.SKIP) public Builder subTotal(Optional subTotal) { this.subTotal = subTotal; @@ -1178,17 +1541,31 @@ public Builder subTotal(Double subTotal) { return this; } + /** + *

    The status of the invoice.

    + *
      + *
    • PAID - PAID
    • + *
    • DRAFT - DRAFT
    • + *
    • SUBMITTED - SUBMITTED
    • + *
    • PARTIALLY_PAID - PARTIALLY_PAID
    • + *
    • OPEN - OPEN
    • + *
    • VOID - VOID
    • + *
    + */ @JsonSetter(value = "status", nulls = Nulls.SKIP) - public Builder status(Optional status) { + public Builder status(Optional status) { this.status = status; return this; } - public Builder status(InvoiceStatusEnum status) { + public Builder status(InvoiceStatus status) { this.status = Optional.ofNullable(status); return this; } + /** + *

    The total amount being paid in taxes.

    + */ @JsonSetter(value = "total_tax_amount", nulls = Nulls.SKIP) public Builder totalTaxAmount(Optional totalTaxAmount) { this.totalTaxAmount = totalTaxAmount; @@ -1200,6 +1577,9 @@ public Builder totalTaxAmount(Double totalTaxAmount) { return this; } + /** + *

    The invoice's total amount.

    + */ @JsonSetter(value = "total_amount", nulls = Nulls.SKIP) public Builder totalAmount(Optional totalAmount) { this.totalAmount = totalAmount; @@ -1211,6 +1591,9 @@ public Builder totalAmount(Double totalAmount) { return this; } + /** + *

    The invoice's remaining balance.

    + */ @JsonSetter(value = "balance", nulls = Nulls.SKIP) public Builder balance(Optional balance) { this.balance = balance; @@ -1222,6 +1605,9 @@ public Builder balance(Double balance) { return this; } + /** + *

    When the third party's invoice entry was updated.

    + */ @JsonSetter(value = "remote_updated_at", nulls = Nulls.SKIP) public Builder remoteUpdatedAt(Optional remoteUpdatedAt) { this.remoteUpdatedAt = remoteUpdatedAt; @@ -1244,6 +1630,9 @@ public Builder trackingCategories(List> return this; } + /** + *

    The accounting period that the Invoice was generated in.

    + */ @JsonSetter(value = "accounting_period", nulls = Nulls.SKIP) public Builder accountingPeriod(Optional accountingPeriod) { this.accountingPeriod = accountingPeriod; @@ -1266,6 +1655,9 @@ public Builder purchaseOrders(List> purchase return this; } + /** + *

    Array of Payment object IDs.

    + */ @JsonSetter(value = "payments", nulls = Nulls.SKIP) public Builder payments(Optional>> payments) { this.payments = payments; @@ -1277,6 +1669,9 @@ public Builder payments(List> payments) { return this; } + /** + *

    A list of the Payment Applied to Lines common models related to a given Invoice, Credit Note, or Journal Entry.

    + */ @JsonSetter(value = "applied_payments", nulls = Nulls.SKIP) public Builder appliedPayments(Optional>> appliedPayments) { this.appliedPayments = appliedPayments; @@ -1299,6 +1694,9 @@ public Builder lineItems(List lineItems) { return this; } + /** + *

    CreditNoteApplyLines applied to the Invoice.

    + */ @JsonSetter(value = "applied_credit_notes", nulls = Nulls.SKIP) public Builder appliedCreditNotes(Optional> appliedCreditNotes) { this.appliedCreditNotes = appliedCreditNotes; @@ -1310,6 +1708,9 @@ public Builder appliedCreditNotes(List appliedCre return this; } + /** + *

    VendorCreditApplyLines applied to the Invoice.

    + */ @JsonSetter(value = "applied_vendor_credits", nulls = Nulls.SKIP) public Builder appliedVendorCredits(Optional> appliedVendorCredits) { this.appliedVendorCredits = appliedVendorCredits; @@ -1321,6 +1722,9 @@ public Builder appliedVendorCredits(List applie return this; } + /** + *

    If the transaction is inclusive or exclusive of tax. True if inclusive, False if exclusive.

    + */ @JsonSetter(value = "inclusive_of_tax", nulls = Nulls.SKIP) public Builder inclusiveOfTax(Optional inclusiveOfTax) { this.inclusiveOfTax = inclusiveOfTax; @@ -1332,6 +1736,9 @@ public Builder inclusiveOfTax(Boolean inclusiveOfTax) { return this; } + /** + *

    Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

    + */ @JsonSetter(value = "remote_was_deleted", nulls = Nulls.SKIP) public Builder remoteWasDeleted(Optional remoteWasDeleted) { this.remoteWasDeleted = remoteWasDeleted; diff --git a/src/main/java/com/merge/api/accounting/types/InvoiceCurrency.java b/src/main/java/com/merge/api/accounting/types/InvoiceCurrency.java new file mode 100644 index 000000000..acedaebe7 --- /dev/null +++ b/src/main/java/com/merge/api/accounting/types/InvoiceCurrency.java @@ -0,0 +1,95 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.merge.api.accounting.types; + +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.databind.DeserializationContext; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.fasterxml.jackson.databind.deser.std.StdDeserializer; +import com.merge.api.core.ObjectMappers; +import java.io.IOException; +import java.util.Objects; + +@JsonDeserialize(using = InvoiceCurrency.Deserializer.class) +public final class InvoiceCurrency { + private final Object value; + + private final int type; + + private InvoiceCurrency(Object value, int type) { + this.value = value; + this.type = type; + } + + @JsonValue + public Object get() { + return this.value; + } + + @SuppressWarnings("unchecked") + public T visit(Visitor visitor) { + if (this.type == 0) { + return visitor.visit((TransactionCurrencyEnum) this.value); + } else if (this.type == 1) { + return visitor.visit((String) this.value); + } + throw new IllegalStateException("Failed to visit value. This should never happen."); + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof InvoiceCurrency && equalTo((InvoiceCurrency) other); + } + + private boolean equalTo(InvoiceCurrency other) { + return value.equals(other.value); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.value); + } + + @java.lang.Override + public String toString() { + return this.value.toString(); + } + + public static InvoiceCurrency of(TransactionCurrencyEnum value) { + return new InvoiceCurrency(value, 0); + } + + public static InvoiceCurrency of(String value) { + return new InvoiceCurrency(value, 1); + } + + public interface Visitor { + T visit(TransactionCurrencyEnum value); + + T visit(String value); + } + + static final class Deserializer extends StdDeserializer { + Deserializer() { + super(InvoiceCurrency.class); + } + + @java.lang.Override + public InvoiceCurrency deserialize(JsonParser p, DeserializationContext context) throws IOException { + Object value = p.readValueAs(Object.class); + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, TransactionCurrencyEnum.class)); + } catch (IllegalArgumentException e) { + } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, String.class)); + } catch (IllegalArgumentException e) { + } + throw new JsonParseException(p, "Failed to deserialize"); + } + } +} diff --git a/src/main/java/com/merge/api/accounting/types/InvoiceEndpointRequest.java b/src/main/java/com/merge/api/accounting/types/InvoiceEndpointRequest.java index 425868a5b..c195616cb 100644 --- a/src/main/java/com/merge/api/accounting/types/InvoiceEndpointRequest.java +++ b/src/main/java/com/merge/api/accounting/types/InvoiceEndpointRequest.java @@ -99,10 +99,16 @@ public interface ModelStage { public interface _FinalStage { InvoiceEndpointRequest build(); + /** + *

    Whether to include debug fields (such as log file links) in the response.

    + */ _FinalStage isDebugMode(Optional isDebugMode); _FinalStage isDebugMode(Boolean isDebugMode); + /** + *

    Whether or not third-party updates should be run asynchronously.

    + */ _FinalStage runAsync(Optional runAsync); _FinalStage runAsync(Boolean runAsync); @@ -146,6 +152,9 @@ public _FinalStage runAsync(Boolean runAsync) { return this; } + /** + *

    Whether or not third-party updates should be run asynchronously.

    + */ @java.lang.Override @JsonSetter(value = "run_async", nulls = Nulls.SKIP) public _FinalStage runAsync(Optional runAsync) { @@ -163,6 +172,9 @@ public _FinalStage isDebugMode(Boolean isDebugMode) { return this; } + /** + *

    Whether to include debug fields (such as log file links) in the response.

    + */ @java.lang.Override @JsonSetter(value = "is_debug_mode", nulls = Nulls.SKIP) public _FinalStage isDebugMode(Optional isDebugMode) { diff --git a/src/main/java/com/merge/api/accounting/types/InvoiceLineItem.java b/src/main/java/com/merge/api/accounting/types/InvoiceLineItem.java index 659a3f5d1..84487173f 100644 --- a/src/main/java/com/merge/api/accounting/types/InvoiceLineItem.java +++ b/src/main/java/com/merge/api/accounting/types/InvoiceLineItem.java @@ -41,7 +41,11 @@ public final class InvoiceLineItem { private final Optional employee; - private final Optional currency; + private final Optional project; + + private final Optional contact; + + private final Optional currency; private final Optional exchangeRate; @@ -75,7 +79,9 @@ private InvoiceLineItem( Optional quantity, Optional totalAmount, Optional employee, - Optional currency, + Optional project, + Optional contact, + Optional currency, Optional exchangeRate, Optional item, Optional account, @@ -96,6 +102,8 @@ private InvoiceLineItem( this.quantity = quantity; this.totalAmount = totalAmount; this.employee = employee; + this.project = project; + this.contact = contact; this.currency = currency; this.exchangeRate = exchangeRate; this.item = item; @@ -179,6 +187,19 @@ public Optional getEmployee() { return employee; } + @JsonProperty("project") + public Optional getProject() { + return project; + } + + /** + * @return The invoice's contact. + */ + @JsonProperty("contact") + public Optional getContact() { + return contact; + } + /** * @return The line item's currency. *
      @@ -491,7 +512,7 @@ public Optional getEmployee() { *
    */ @JsonProperty("currency") - public Optional getCurrency() { + public Optional getCurrency() { return currency; } @@ -581,6 +602,8 @@ private boolean equalTo(InvoiceLineItem other) { && quantity.equals(other.quantity) && totalAmount.equals(other.totalAmount) && employee.equals(other.employee) + && project.equals(other.project) + && contact.equals(other.contact) && currency.equals(other.currency) && exchangeRate.equals(other.exchangeRate) && item.equals(other.item) @@ -606,6 +629,8 @@ public int hashCode() { this.quantity, this.totalAmount, this.employee, + this.project, + this.contact, this.currency, this.exchangeRate, this.item, @@ -648,7 +673,11 @@ public static final class Builder { private Optional employee = Optional.empty(); - private Optional currency = Optional.empty(); + private Optional project = Optional.empty(); + + private Optional contact = Optional.empty(); + + private Optional currency = Optional.empty(); private Optional exchangeRate = Optional.empty(); @@ -685,6 +714,8 @@ public Builder from(InvoiceLineItem other) { quantity(other.getQuantity()); totalAmount(other.getTotalAmount()); employee(other.getEmployee()); + project(other.getProject()); + contact(other.getContact()); currency(other.getCurrency()); exchangeRate(other.getExchangeRate()); item(other.getItem()); @@ -710,6 +741,9 @@ public Builder id(String id) { return this; } + /** + *

    The third-party API ID of the matching object.

    + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; @@ -721,6 +755,9 @@ public Builder remoteId(String remoteId) { return this; } + /** + *

    The datetime that this object was created by Merge.

    + */ @JsonSetter(value = "created_at", nulls = Nulls.SKIP) public Builder createdAt(Optional createdAt) { this.createdAt = createdAt; @@ -732,6 +769,9 @@ public Builder createdAt(OffsetDateTime createdAt) { return this; } + /** + *

    The datetime that this object was modified by Merge.

    + */ @JsonSetter(value = "modified_at", nulls = Nulls.SKIP) public Builder modifiedAt(Optional modifiedAt) { this.modifiedAt = modifiedAt; @@ -743,6 +783,9 @@ public Builder modifiedAt(OffsetDateTime modifiedAt) { return this; } + /** + *

    The line item's description.

    + */ @JsonSetter(value = "description", nulls = Nulls.SKIP) public Builder description(Optional description) { this.description = description; @@ -754,6 +797,9 @@ public Builder description(String description) { return this; } + /** + *

    The line item's unit price.

    + */ @JsonSetter(value = "unit_price", nulls = Nulls.SKIP) public Builder unitPrice(Optional unitPrice) { this.unitPrice = unitPrice; @@ -765,6 +811,9 @@ public Builder unitPrice(Double unitPrice) { return this; } + /** + *

    The line item's quantity.

    + */ @JsonSetter(value = "quantity", nulls = Nulls.SKIP) public Builder quantity(Optional quantity) { this.quantity = quantity; @@ -776,6 +825,9 @@ public Builder quantity(Double quantity) { return this; } + /** + *

    The line item's total amount.

    + */ @JsonSetter(value = "total_amount", nulls = Nulls.SKIP) public Builder totalAmount(Optional totalAmount) { this.totalAmount = totalAmount; @@ -787,6 +839,9 @@ public Builder totalAmount(Double totalAmount) { return this; } + /** + *

    The employee this overall transaction relates to.

    + */ @JsonSetter(value = "employee", nulls = Nulls.SKIP) public Builder employee(Optional employee) { this.employee = employee; @@ -798,17 +853,356 @@ public Builder employee(InvoiceLineItemEmployee employee) { return this; } + @JsonSetter(value = "project", nulls = Nulls.SKIP) + public Builder project(Optional project) { + this.project = project; + return this; + } + + public Builder project(InvoiceLineItemProject project) { + this.project = Optional.ofNullable(project); + return this; + } + + /** + *

    The invoice's contact.

    + */ + @JsonSetter(value = "contact", nulls = Nulls.SKIP) + public Builder contact(Optional contact) { + this.contact = contact; + return this; + } + + public Builder contact(InvoiceLineItemContact contact) { + this.contact = Optional.ofNullable(contact); + return this; + } + + /** + *

    The line item's currency.

    + *
      + *
    • XUA - ADB Unit of Account
    • + *
    • AFN - Afghan Afghani
    • + *
    • AFA - Afghan Afghani (1927–2002)
    • + *
    • ALL - Albanian Lek
    • + *
    • ALK - Albanian Lek (1946–1965)
    • + *
    • DZD - Algerian Dinar
    • + *
    • ADP - Andorran Peseta
    • + *
    • AOA - Angolan Kwanza
    • + *
    • AOK - Angolan Kwanza (1977–1991)
    • + *
    • AON - Angolan New Kwanza (1990–2000)
    • + *
    • AOR - Angolan Readjusted Kwanza (1995–1999)
    • + *
    • ARA - Argentine Austral
    • + *
    • ARS - Argentine Peso
    • + *
    • ARM - Argentine Peso (1881–1970)
    • + *
    • ARP - Argentine Peso (1983–1985)
    • + *
    • ARL - Argentine Peso Ley (1970–1983)
    • + *
    • AMD - Armenian Dram
    • + *
    • AWG - Aruban Florin
    • + *
    • AUD - Australian Dollar
    • + *
    • ATS - Austrian Schilling
    • + *
    • AZN - Azerbaijani Manat
    • + *
    • AZM - Azerbaijani Manat (1993–2006)
    • + *
    • BSD - Bahamian Dollar
    • + *
    • BHD - Bahraini Dinar
    • + *
    • BDT - Bangladeshi Taka
    • + *
    • BBD - Barbadian Dollar
    • + *
    • BYN - Belarusian Ruble
    • + *
    • BYB - Belarusian Ruble (1994–1999)
    • + *
    • BYR - Belarusian Ruble (2000–2016)
    • + *
    • BEF - Belgian Franc
    • + *
    • BEC - Belgian Franc (convertible)
    • + *
    • BEL - Belgian Franc (financial)
    • + *
    • BZD - Belize Dollar
    • + *
    • BMD - Bermudan Dollar
    • + *
    • BTN - Bhutanese Ngultrum
    • + *
    • BOB - Bolivian Boliviano
    • + *
    • BOL - Bolivian Boliviano (1863–1963)
    • + *
    • BOV - Bolivian Mvdol
    • + *
    • BOP - Bolivian Peso
    • + *
    • BAM - Bosnia-Herzegovina Convertible Mark
    • + *
    • BAD - Bosnia-Herzegovina Dinar (1992–1994)
    • + *
    • BAN - Bosnia-Herzegovina New Dinar (1994–1997)
    • + *
    • BWP - Botswanan Pula
    • + *
    • BRC - Brazilian Cruzado (1986–1989)
    • + *
    • BRZ - Brazilian Cruzeiro (1942–1967)
    • + *
    • BRE - Brazilian Cruzeiro (1990–1993)
    • + *
    • BRR - Brazilian Cruzeiro (1993–1994)
    • + *
    • BRN - Brazilian New Cruzado (1989–1990)
    • + *
    • BRB - Brazilian New Cruzeiro (1967–1986)
    • + *
    • BRL - Brazilian Real
    • + *
    • GBP - British Pound
    • + *
    • BND - Brunei Dollar
    • + *
    • BGL - Bulgarian Hard Lev
    • + *
    • BGN - Bulgarian Lev
    • + *
    • BGO - Bulgarian Lev (1879–1952)
    • + *
    • BGM - Bulgarian Socialist Lev
    • + *
    • BUK - Burmese Kyat
    • + *
    • BIF - Burundian Franc
    • + *
    • XPF - CFP Franc
    • + *
    • KHR - Cambodian Riel
    • + *
    • CAD - Canadian Dollar
    • + *
    • CVE - Cape Verdean Escudo
    • + *
    • KYD - Cayman Islands Dollar
    • + *
    • XAF - Central African CFA Franc
    • + *
    • CLE - Chilean Escudo
    • + *
    • CLP - Chilean Peso
    • + *
    • CLF - Chilean Unit of Account (UF)
    • + *
    • CNX - Chinese People’s Bank Dollar
    • + *
    • CNY - Chinese Yuan
    • + *
    • CNH - Chinese Yuan (offshore)
    • + *
    • COP - Colombian Peso
    • + *
    • COU - Colombian Real Value Unit
    • + *
    • KMF - Comorian Franc
    • + *
    • CDF - Congolese Franc
    • + *
    • CRC - Costa Rican Colón
    • + *
    • HRD - Croatian Dinar
    • + *
    • HRK - Croatian Kuna
    • + *
    • CUC - Cuban Convertible Peso
    • + *
    • CUP - Cuban Peso
    • + *
    • CYP - Cypriot Pound
    • + *
    • CZK - Czech Koruna
    • + *
    • CSK - Czechoslovak Hard Koruna
    • + *
    • DKK - Danish Krone
    • + *
    • DJF - Djiboutian Franc
    • + *
    • DOP - Dominican Peso
    • + *
    • NLG - Dutch Guilder
    • + *
    • XCD - East Caribbean Dollar
    • + *
    • DDM - East German Mark
    • + *
    • ECS - Ecuadorian Sucre
    • + *
    • ECV - Ecuadorian Unit of Constant Value
    • + *
    • EGP - Egyptian Pound
    • + *
    • GQE - Equatorial Guinean Ekwele
    • + *
    • ERN - Eritrean Nakfa
    • + *
    • EEK - Estonian Kroon
    • + *
    • ETB - Ethiopian Birr
    • + *
    • EUR - Euro
    • + *
    • XBA - European Composite Unit
    • + *
    • XEU - European Currency Unit
    • + *
    • XBB - European Monetary Unit
    • + *
    • XBC - European Unit of Account (XBC)
    • + *
    • XBD - European Unit of Account (XBD)
    • + *
    • FKP - Falkland Islands Pound
    • + *
    • FJD - Fijian Dollar
    • + *
    • FIM - Finnish Markka
    • + *
    • FRF - French Franc
    • + *
    • XFO - French Gold Franc
    • + *
    • XFU - French UIC-Franc
    • + *
    • GMD - Gambian Dalasi
    • + *
    • GEK - Georgian Kupon Larit
    • + *
    • GEL - Georgian Lari
    • + *
    • DEM - German Mark
    • + *
    • GHS - Ghanaian Cedi
    • + *
    • GHC - Ghanaian Cedi (1979–2007)
    • + *
    • GIP - Gibraltar Pound
    • + *
    • XAU - Gold
    • + *
    • GRD - Greek Drachma
    • + *
    • GTQ - Guatemalan Quetzal
    • + *
    • GWP - Guinea-Bissau Peso
    • + *
    • GNF - Guinean Franc
    • + *
    • GNS - Guinean Syli
    • + *
    • GYD - Guyanaese Dollar
    • + *
    • HTG - Haitian Gourde
    • + *
    • HNL - Honduran Lempira
    • + *
    • HKD - Hong Kong Dollar
    • + *
    • HUF - Hungarian Forint
    • + *
    • IMP - IMP
    • + *
    • ISK - Icelandic Króna
    • + *
    • ISJ - Icelandic Króna (1918–1981)
    • + *
    • INR - Indian Rupee
    • + *
    • IDR - Indonesian Rupiah
    • + *
    • IRR - Iranian Rial
    • + *
    • IQD - Iraqi Dinar
    • + *
    • IEP - Irish Pound
    • + *
    • ILS - Israeli New Shekel
    • + *
    • ILP - Israeli Pound
    • + *
    • ILR - Israeli Shekel (1980–1985)
    • + *
    • ITL - Italian Lira
    • + *
    • JMD - Jamaican Dollar
    • + *
    • JPY - Japanese Yen
    • + *
    • JOD - Jordanian Dinar
    • + *
    • KZT - Kazakhstani Tenge
    • + *
    • KES - Kenyan Shilling
    • + *
    • KWD - Kuwaiti Dinar
    • + *
    • KGS - Kyrgystani Som
    • + *
    • LAK - Laotian Kip
    • + *
    • LVL - Latvian Lats
    • + *
    • LVR - Latvian Ruble
    • + *
    • LBP - Lebanese Pound
    • + *
    • LSL - Lesotho Loti
    • + *
    • LRD - Liberian Dollar
    • + *
    • LYD - Libyan Dinar
    • + *
    • LTL - Lithuanian Litas
    • + *
    • LTT - Lithuanian Talonas
    • + *
    • LUL - Luxembourg Financial Franc
    • + *
    • LUC - Luxembourgian Convertible Franc
    • + *
    • LUF - Luxembourgian Franc
    • + *
    • MOP - Macanese Pataca
    • + *
    • MKD - Macedonian Denar
    • + *
    • MKN - Macedonian Denar (1992–1993)
    • + *
    • MGA - Malagasy Ariary
    • + *
    • MGF - Malagasy Franc
    • + *
    • MWK - Malawian Kwacha
    • + *
    • MYR - Malaysian Ringgit
    • + *
    • MVR - Maldivian Rufiyaa
    • + *
    • MVP - Maldivian Rupee (1947–1981)
    • + *
    • MLF - Malian Franc
    • + *
    • MTL - Maltese Lira
    • + *
    • MTP - Maltese Pound
    • + *
    • MRU - Mauritanian Ouguiya
    • + *
    • MRO - Mauritanian Ouguiya (1973–2017)
    • + *
    • MUR - Mauritian Rupee
    • + *
    • MXV - Mexican Investment Unit
    • + *
    • MXN - Mexican Peso
    • + *
    • MXP - Mexican Silver Peso (1861–1992)
    • + *
    • MDC - Moldovan Cupon
    • + *
    • MDL - Moldovan Leu
    • + *
    • MCF - Monegasque Franc
    • + *
    • MNT - Mongolian Tugrik
    • + *
    • MAD - Moroccan Dirham
    • + *
    • MAF - Moroccan Franc
    • + *
    • MZE - Mozambican Escudo
    • + *
    • MZN - Mozambican Metical
    • + *
    • MZM - Mozambican Metical (1980–2006)
    • + *
    • MMK - Myanmar Kyat
    • + *
    • NAD - Namibian Dollar
    • + *
    • NPR - Nepalese Rupee
    • + *
    • ANG - Netherlands Antillean Guilder
    • + *
    • TWD - New Taiwan Dollar
    • + *
    • NZD - New Zealand Dollar
    • + *
    • NIO - Nicaraguan Córdoba
    • + *
    • NIC - Nicaraguan Córdoba (1988–1991)
    • + *
    • NGN - Nigerian Naira
    • + *
    • KPW - North Korean Won
    • + *
    • NOK - Norwegian Krone
    • + *
    • OMR - Omani Rial
    • + *
    • PKR - Pakistani Rupee
    • + *
    • XPD - Palladium
    • + *
    • PAB - Panamanian Balboa
    • + *
    • PGK - Papua New Guinean Kina
    • + *
    • PYG - Paraguayan Guarani
    • + *
    • PEI - Peruvian Inti
    • + *
    • PEN - Peruvian Sol
    • + *
    • PES - Peruvian Sol (1863–1965)
    • + *
    • PHP - Philippine Peso
    • + *
    • XPT - Platinum
    • + *
    • PLN - Polish Zloty
    • + *
    • PLZ - Polish Zloty (1950–1995)
    • + *
    • PTE - Portuguese Escudo
    • + *
    • GWE - Portuguese Guinea Escudo
    • + *
    • QAR - Qatari Rial
    • + *
    • XRE - RINET Funds
    • + *
    • RHD - Rhodesian Dollar
    • + *
    • RON - Romanian Leu
    • + *
    • ROL - Romanian Leu (1952–2006)
    • + *
    • RUB - Russian Ruble
    • + *
    • RUR - Russian Ruble (1991–1998)
    • + *
    • RWF - Rwandan Franc
    • + *
    • SVC - Salvadoran Colón
    • + *
    • WST - Samoan Tala
    • + *
    • SAR - Saudi Riyal
    • + *
    • RSD - Serbian Dinar
    • + *
    • CSD - Serbian Dinar (2002–2006)
    • + *
    • SCR - Seychellois Rupee
    • + *
    • SLL - Sierra Leonean Leone
    • + *
    • XAG - Silver
    • + *
    • SGD - Singapore Dollar
    • + *
    • SKK - Slovak Koruna
    • + *
    • SIT - Slovenian Tolar
    • + *
    • SBD - Solomon Islands Dollar
    • + *
    • SOS - Somali Shilling
    • + *
    • ZAR - South African Rand
    • + *
    • ZAL - South African Rand (financial)
    • + *
    • KRH - South Korean Hwan (1953–1962)
    • + *
    • KRW - South Korean Won
    • + *
    • KRO - South Korean Won (1945–1953)
    • + *
    • SSP - South Sudanese Pound
    • + *
    • SUR - Soviet Rouble
    • + *
    • ESP - Spanish Peseta
    • + *
    • ESA - Spanish Peseta (A account)
    • + *
    • ESB - Spanish Peseta (convertible account)
    • + *
    • XDR - Special Drawing Rights
    • + *
    • LKR - Sri Lankan Rupee
    • + *
    • SHP - St. Helena Pound
    • + *
    • XSU - Sucre
    • + *
    • SDD - Sudanese Dinar (1992–2007)
    • + *
    • SDG - Sudanese Pound
    • + *
    • SDP - Sudanese Pound (1957–1998)
    • + *
    • SRD - Surinamese Dollar
    • + *
    • SRG - Surinamese Guilder
    • + *
    • SZL - Swazi Lilangeni
    • + *
    • SEK - Swedish Krona
    • + *
    • CHF - Swiss Franc
    • + *
    • SYP - Syrian Pound
    • + *
    • STN - São Tomé & Príncipe Dobra
    • + *
    • STD - São Tomé & Príncipe Dobra (1977–2017)
    • + *
    • TVD - TVD
    • + *
    • TJR - Tajikistani Ruble
    • + *
    • TJS - Tajikistani Somoni
    • + *
    • TZS - Tanzanian Shilling
    • + *
    • XTS - Testing Currency Code
    • + *
    • THB - Thai Baht
    • + *
    • XXX - The codes assigned for transactions where no currency is involved
    • + *
    • TPE - Timorese Escudo
    • + *
    • TOP - Tongan Paʻanga
    • + *
    • TTD - Trinidad & Tobago Dollar
    • + *
    • TND - Tunisian Dinar
    • + *
    • TRY - Turkish Lira
    • + *
    • TRL - Turkish Lira (1922–2005)
    • + *
    • TMT - Turkmenistani Manat
    • + *
    • TMM - Turkmenistani Manat (1993–2009)
    • + *
    • USD - US Dollar
    • + *
    • USN - US Dollar (Next day)
    • + *
    • USS - US Dollar (Same day)
    • + *
    • UGX - Ugandan Shilling
    • + *
    • UGS - Ugandan Shilling (1966–1987)
    • + *
    • UAH - Ukrainian Hryvnia
    • + *
    • UAK - Ukrainian Karbovanets
    • + *
    • AED - United Arab Emirates Dirham
    • + *
    • UYW - Uruguayan Nominal Wage Index Unit
    • + *
    • UYU - Uruguayan Peso
    • + *
    • UYP - Uruguayan Peso (1975–1993)
    • + *
    • UYI - Uruguayan Peso (Indexed Units)
    • + *
    • UZS - Uzbekistani Som
    • + *
    • VUV - Vanuatu Vatu
    • + *
    • VES - Venezuelan Bolívar
    • + *
    • VEB - Venezuelan Bolívar (1871–2008)
    • + *
    • VEF - Venezuelan Bolívar (2008–2018)
    • + *
    • VND - Vietnamese Dong
    • + *
    • VNN - Vietnamese Dong (1978–1985)
    • + *
    • CHE - WIR Euro
    • + *
    • CHW - WIR Franc
    • + *
    • XOF - West African CFA Franc
    • + *
    • YDD - Yemeni Dinar
    • + *
    • YER - Yemeni Rial
    • + *
    • YUN - Yugoslavian Convertible Dinar (1990–1992)
    • + *
    • YUD - Yugoslavian Hard Dinar (1966–1990)
    • + *
    • YUM - Yugoslavian New Dinar (1994–2002)
    • + *
    • YUR - Yugoslavian Reformed Dinar (1992–1993)
    • + *
    • ZWN - ZWN
    • + *
    • ZRN - Zairean New Zaire (1993–1998)
    • + *
    • ZRZ - Zairean Zaire (1971–1993)
    • + *
    • ZMW - Zambian Kwacha
    • + *
    • ZMK - Zambian Kwacha (1968–2012)
    • + *
    • ZWD - Zimbabwean Dollar (1980–2008)
    • + *
    • ZWR - Zimbabwean Dollar (2008)
    • + *
    • ZWL - Zimbabwean Dollar (2009)
    • + *
    + */ @JsonSetter(value = "currency", nulls = Nulls.SKIP) - public Builder currency(Optional currency) { + public Builder currency(Optional currency) { this.currency = currency; return this; } - public Builder currency(TransactionCurrencyEnum currency) { + public Builder currency(InvoiceLineItemCurrency currency) { this.currency = Optional.ofNullable(currency); return this; } + /** + *

    The line item's exchange rate.

    + */ @JsonSetter(value = "exchange_rate", nulls = Nulls.SKIP) public Builder exchangeRate(Optional exchangeRate) { this.exchangeRate = exchangeRate; @@ -842,6 +1236,9 @@ public Builder account(InvoiceLineItemAccount account) { return this; } + /** + *

    The tax rate that applies to this line item.

    + */ @JsonSetter(value = "tax_rate", nulls = Nulls.SKIP) public Builder taxRate(Optional taxRate) { this.taxRate = taxRate; @@ -864,6 +1261,9 @@ public Builder trackingCategory(InvoiceLineItemTrackingCategory trackingCategory return this; } + /** + *

    The invoice line item's associated tracking categories.

    + */ @JsonSetter(value = "tracking_categories", nulls = Nulls.SKIP) public Builder trackingCategories( Optional>> trackingCategories) { @@ -876,6 +1276,9 @@ public Builder trackingCategories(ListThe company the invoice belongs to.

    + */ @JsonSetter(value = "company", nulls = Nulls.SKIP) public Builder company(Optional company) { this.company = company; @@ -887,6 +1290,9 @@ public Builder company(String company) { return this; } + /** + *

    Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

    + */ @JsonSetter(value = "remote_was_deleted", nulls = Nulls.SKIP) public Builder remoteWasDeleted(Optional remoteWasDeleted) { this.remoteWasDeleted = remoteWasDeleted; @@ -931,6 +1337,8 @@ public InvoiceLineItem build() { quantity, totalAmount, employee, + project, + contact, currency, exchangeRate, item, diff --git a/src/main/java/com/merge/api/accounting/types/InvoiceLineItemContact.java b/src/main/java/com/merge/api/accounting/types/InvoiceLineItemContact.java new file mode 100644 index 000000000..173d95935 --- /dev/null +++ b/src/main/java/com/merge/api/accounting/types/InvoiceLineItemContact.java @@ -0,0 +1,95 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.merge.api.accounting.types; + +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.databind.DeserializationContext; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.fasterxml.jackson.databind.deser.std.StdDeserializer; +import com.merge.api.core.ObjectMappers; +import java.io.IOException; +import java.util.Objects; + +@JsonDeserialize(using = InvoiceLineItemContact.Deserializer.class) +public final class InvoiceLineItemContact { + private final Object value; + + private final int type; + + private InvoiceLineItemContact(Object value, int type) { + this.value = value; + this.type = type; + } + + @JsonValue + public Object get() { + return this.value; + } + + @SuppressWarnings("unchecked") + public T visit(Visitor visitor) { + if (this.type == 0) { + return visitor.visit((String) this.value); + } else if (this.type == 1) { + return visitor.visit((Contact) this.value); + } + throw new IllegalStateException("Failed to visit value. This should never happen."); + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof InvoiceLineItemContact && equalTo((InvoiceLineItemContact) other); + } + + private boolean equalTo(InvoiceLineItemContact other) { + return value.equals(other.value); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.value); + } + + @java.lang.Override + public String toString() { + return this.value.toString(); + } + + public static InvoiceLineItemContact of(String value) { + return new InvoiceLineItemContact(value, 0); + } + + public static InvoiceLineItemContact of(Contact value) { + return new InvoiceLineItemContact(value, 1); + } + + public interface Visitor { + T visit(String value); + + T visit(Contact value); + } + + static final class Deserializer extends StdDeserializer { + Deserializer() { + super(InvoiceLineItemContact.class); + } + + @java.lang.Override + public InvoiceLineItemContact deserialize(JsonParser p, DeserializationContext context) throws IOException { + Object value = p.readValueAs(Object.class); + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, String.class)); + } catch (IllegalArgumentException e) { + } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, Contact.class)); + } catch (IllegalArgumentException e) { + } + throw new JsonParseException(p, "Failed to deserialize"); + } + } +} diff --git a/src/main/java/com/merge/api/accounting/types/InvoiceLineItemCurrency.java b/src/main/java/com/merge/api/accounting/types/InvoiceLineItemCurrency.java new file mode 100644 index 000000000..7d10ef117 --- /dev/null +++ b/src/main/java/com/merge/api/accounting/types/InvoiceLineItemCurrency.java @@ -0,0 +1,95 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.merge.api.accounting.types; + +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.databind.DeserializationContext; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.fasterxml.jackson.databind.deser.std.StdDeserializer; +import com.merge.api.core.ObjectMappers; +import java.io.IOException; +import java.util.Objects; + +@JsonDeserialize(using = InvoiceLineItemCurrency.Deserializer.class) +public final class InvoiceLineItemCurrency { + private final Object value; + + private final int type; + + private InvoiceLineItemCurrency(Object value, int type) { + this.value = value; + this.type = type; + } + + @JsonValue + public Object get() { + return this.value; + } + + @SuppressWarnings("unchecked") + public T visit(Visitor visitor) { + if (this.type == 0) { + return visitor.visit((TransactionCurrencyEnum) this.value); + } else if (this.type == 1) { + return visitor.visit((String) this.value); + } + throw new IllegalStateException("Failed to visit value. This should never happen."); + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof InvoiceLineItemCurrency && equalTo((InvoiceLineItemCurrency) other); + } + + private boolean equalTo(InvoiceLineItemCurrency other) { + return value.equals(other.value); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.value); + } + + @java.lang.Override + public String toString() { + return this.value.toString(); + } + + public static InvoiceLineItemCurrency of(TransactionCurrencyEnum value) { + return new InvoiceLineItemCurrency(value, 0); + } + + public static InvoiceLineItemCurrency of(String value) { + return new InvoiceLineItemCurrency(value, 1); + } + + public interface Visitor { + T visit(TransactionCurrencyEnum value); + + T visit(String value); + } + + static final class Deserializer extends StdDeserializer { + Deserializer() { + super(InvoiceLineItemCurrency.class); + } + + @java.lang.Override + public InvoiceLineItemCurrency deserialize(JsonParser p, DeserializationContext context) throws IOException { + Object value = p.readValueAs(Object.class); + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, TransactionCurrencyEnum.class)); + } catch (IllegalArgumentException e) { + } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, String.class)); + } catch (IllegalArgumentException e) { + } + throw new JsonParseException(p, "Failed to deserialize"); + } + } +} diff --git a/src/main/java/com/merge/api/accounting/types/InvoiceLineItemProject.java b/src/main/java/com/merge/api/accounting/types/InvoiceLineItemProject.java new file mode 100644 index 000000000..ff57e43d4 --- /dev/null +++ b/src/main/java/com/merge/api/accounting/types/InvoiceLineItemProject.java @@ -0,0 +1,95 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.merge.api.accounting.types; + +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.databind.DeserializationContext; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.fasterxml.jackson.databind.deser.std.StdDeserializer; +import com.merge.api.core.ObjectMappers; +import java.io.IOException; +import java.util.Objects; + +@JsonDeserialize(using = InvoiceLineItemProject.Deserializer.class) +public final class InvoiceLineItemProject { + private final Object value; + + private final int type; + + private InvoiceLineItemProject(Object value, int type) { + this.value = value; + this.type = type; + } + + @JsonValue + public Object get() { + return this.value; + } + + @SuppressWarnings("unchecked") + public T visit(Visitor visitor) { + if (this.type == 0) { + return visitor.visit((String) this.value); + } else if (this.type == 1) { + return visitor.visit((Project) this.value); + } + throw new IllegalStateException("Failed to visit value. This should never happen."); + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof InvoiceLineItemProject && equalTo((InvoiceLineItemProject) other); + } + + private boolean equalTo(InvoiceLineItemProject other) { + return value.equals(other.value); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.value); + } + + @java.lang.Override + public String toString() { + return this.value.toString(); + } + + public static InvoiceLineItemProject of(String value) { + return new InvoiceLineItemProject(value, 0); + } + + public static InvoiceLineItemProject of(Project value) { + return new InvoiceLineItemProject(value, 1); + } + + public interface Visitor { + T visit(String value); + + T visit(Project value); + } + + static final class Deserializer extends StdDeserializer { + Deserializer() { + super(InvoiceLineItemProject.class); + } + + @java.lang.Override + public InvoiceLineItemProject deserialize(JsonParser p, DeserializationContext context) throws IOException { + Object value = p.readValueAs(Object.class); + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, String.class)); + } catch (IllegalArgumentException e) { + } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, Project.class)); + } catch (IllegalArgumentException e) { + } + throw new JsonParseException(p, "Failed to deserialize"); + } + } +} diff --git a/src/main/java/com/merge/api/accounting/types/InvoiceLineItemRequest.java b/src/main/java/com/merge/api/accounting/types/InvoiceLineItemRequest.java index 6701e050c..7bcd76f72 100644 --- a/src/main/java/com/merge/api/accounting/types/InvoiceLineItemRequest.java +++ b/src/main/java/com/merge/api/accounting/types/InvoiceLineItemRequest.java @@ -34,7 +34,11 @@ public final class InvoiceLineItemRequest { private final Optional employee; - private final Optional currency; + private final Optional project; + + private final Optional contact; + + private final Optional currency; private final Optional exchangeRate; @@ -65,7 +69,9 @@ private InvoiceLineItemRequest( Optional quantity, Optional totalAmount, Optional employee, - Optional currency, + Optional project, + Optional contact, + Optional currency, Optional exchangeRate, Optional item, Optional account, @@ -83,6 +89,8 @@ private InvoiceLineItemRequest( this.quantity = quantity; this.totalAmount = totalAmount; this.employee = employee; + this.project = project; + this.contact = contact; this.currency = currency; this.exchangeRate = exchangeRate; this.item = item; @@ -145,6 +153,19 @@ public Optional getEmployee() { return employee; } + @JsonProperty("project") + public Optional getProject() { + return project; + } + + /** + * @return The invoice's contact. + */ + @JsonProperty("contact") + public Optional getContact() { + return contact; + } + /** * @return The line item's currency. *
      @@ -457,7 +478,7 @@ public Optional getEmployee() { *
    */ @JsonProperty("currency") - public Optional getCurrency() { + public Optional getCurrency() { return currency; } @@ -541,6 +562,8 @@ private boolean equalTo(InvoiceLineItemRequest other) { && quantity.equals(other.quantity) && totalAmount.equals(other.totalAmount) && employee.equals(other.employee) + && project.equals(other.project) + && contact.equals(other.contact) && currency.equals(other.currency) && exchangeRate.equals(other.exchangeRate) && item.equals(other.item) @@ -563,6 +586,8 @@ public int hashCode() { this.quantity, this.totalAmount, this.employee, + this.project, + this.contact, this.currency, this.exchangeRate, this.item, @@ -599,7 +624,11 @@ public static final class Builder { private Optional employee = Optional.empty(); - private Optional currency = Optional.empty(); + private Optional project = Optional.empty(); + + private Optional contact = Optional.empty(); + + private Optional currency = Optional.empty(); private Optional exchangeRate = Optional.empty(); @@ -634,6 +663,8 @@ public Builder from(InvoiceLineItemRequest other) { quantity(other.getQuantity()); totalAmount(other.getTotalAmount()); employee(other.getEmployee()); + project(other.getProject()); + contact(other.getContact()); currency(other.getCurrency()); exchangeRate(other.getExchangeRate()); item(other.getItem()); @@ -648,6 +679,9 @@ public Builder from(InvoiceLineItemRequest other) { return this; } + /** + *

    The third-party API ID of the matching object.

    + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; @@ -659,6 +693,9 @@ public Builder remoteId(String remoteId) { return this; } + /** + *

    The line item's description.

    + */ @JsonSetter(value = "description", nulls = Nulls.SKIP) public Builder description(Optional description) { this.description = description; @@ -670,6 +707,9 @@ public Builder description(String description) { return this; } + /** + *

    The line item's unit price.

    + */ @JsonSetter(value = "unit_price", nulls = Nulls.SKIP) public Builder unitPrice(Optional unitPrice) { this.unitPrice = unitPrice; @@ -681,6 +721,9 @@ public Builder unitPrice(Double unitPrice) { return this; } + /** + *

    The line item's quantity.

    + */ @JsonSetter(value = "quantity", nulls = Nulls.SKIP) public Builder quantity(Optional quantity) { this.quantity = quantity; @@ -692,6 +735,9 @@ public Builder quantity(Double quantity) { return this; } + /** + *

    The line item's total amount.

    + */ @JsonSetter(value = "total_amount", nulls = Nulls.SKIP) public Builder totalAmount(Optional totalAmount) { this.totalAmount = totalAmount; @@ -703,6 +749,9 @@ public Builder totalAmount(Double totalAmount) { return this; } + /** + *

    The employee this overall transaction relates to.

    + */ @JsonSetter(value = "employee", nulls = Nulls.SKIP) public Builder employee(Optional employee) { this.employee = employee; @@ -714,17 +763,356 @@ public Builder employee(InvoiceLineItemRequestEmployee employee) { return this; } + @JsonSetter(value = "project", nulls = Nulls.SKIP) + public Builder project(Optional project) { + this.project = project; + return this; + } + + public Builder project(InvoiceLineItemRequestProject project) { + this.project = Optional.ofNullable(project); + return this; + } + + /** + *

    The invoice's contact.

    + */ + @JsonSetter(value = "contact", nulls = Nulls.SKIP) + public Builder contact(Optional contact) { + this.contact = contact; + return this; + } + + public Builder contact(InvoiceLineItemRequestContact contact) { + this.contact = Optional.ofNullable(contact); + return this; + } + + /** + *

    The line item's currency.

    + *
      + *
    • XUA - ADB Unit of Account
    • + *
    • AFN - Afghan Afghani
    • + *
    • AFA - Afghan Afghani (1927–2002)
    • + *
    • ALL - Albanian Lek
    • + *
    • ALK - Albanian Lek (1946–1965)
    • + *
    • DZD - Algerian Dinar
    • + *
    • ADP - Andorran Peseta
    • + *
    • AOA - Angolan Kwanza
    • + *
    • AOK - Angolan Kwanza (1977–1991)
    • + *
    • AON - Angolan New Kwanza (1990–2000)
    • + *
    • AOR - Angolan Readjusted Kwanza (1995–1999)
    • + *
    • ARA - Argentine Austral
    • + *
    • ARS - Argentine Peso
    • + *
    • ARM - Argentine Peso (1881–1970)
    • + *
    • ARP - Argentine Peso (1983–1985)
    • + *
    • ARL - Argentine Peso Ley (1970–1983)
    • + *
    • AMD - Armenian Dram
    • + *
    • AWG - Aruban Florin
    • + *
    • AUD - Australian Dollar
    • + *
    • ATS - Austrian Schilling
    • + *
    • AZN - Azerbaijani Manat
    • + *
    • AZM - Azerbaijani Manat (1993–2006)
    • + *
    • BSD - Bahamian Dollar
    • + *
    • BHD - Bahraini Dinar
    • + *
    • BDT - Bangladeshi Taka
    • + *
    • BBD - Barbadian Dollar
    • + *
    • BYN - Belarusian Ruble
    • + *
    • BYB - Belarusian Ruble (1994–1999)
    • + *
    • BYR - Belarusian Ruble (2000–2016)
    • + *
    • BEF - Belgian Franc
    • + *
    • BEC - Belgian Franc (convertible)
    • + *
    • BEL - Belgian Franc (financial)
    • + *
    • BZD - Belize Dollar
    • + *
    • BMD - Bermudan Dollar
    • + *
    • BTN - Bhutanese Ngultrum
    • + *
    • BOB - Bolivian Boliviano
    • + *
    • BOL - Bolivian Boliviano (1863–1963)
    • + *
    • BOV - Bolivian Mvdol
    • + *
    • BOP - Bolivian Peso
    • + *
    • BAM - Bosnia-Herzegovina Convertible Mark
    • + *
    • BAD - Bosnia-Herzegovina Dinar (1992–1994)
    • + *
    • BAN - Bosnia-Herzegovina New Dinar (1994–1997)
    • + *
    • BWP - Botswanan Pula
    • + *
    • BRC - Brazilian Cruzado (1986–1989)
    • + *
    • BRZ - Brazilian Cruzeiro (1942–1967)
    • + *
    • BRE - Brazilian Cruzeiro (1990–1993)
    • + *
    • BRR - Brazilian Cruzeiro (1993–1994)
    • + *
    • BRN - Brazilian New Cruzado (1989–1990)
    • + *
    • BRB - Brazilian New Cruzeiro (1967–1986)
    • + *
    • BRL - Brazilian Real
    • + *
    • GBP - British Pound
    • + *
    • BND - Brunei Dollar
    • + *
    • BGL - Bulgarian Hard Lev
    • + *
    • BGN - Bulgarian Lev
    • + *
    • BGO - Bulgarian Lev (1879–1952)
    • + *
    • BGM - Bulgarian Socialist Lev
    • + *
    • BUK - Burmese Kyat
    • + *
    • BIF - Burundian Franc
    • + *
    • XPF - CFP Franc
    • + *
    • KHR - Cambodian Riel
    • + *
    • CAD - Canadian Dollar
    • + *
    • CVE - Cape Verdean Escudo
    • + *
    • KYD - Cayman Islands Dollar
    • + *
    • XAF - Central African CFA Franc
    • + *
    • CLE - Chilean Escudo
    • + *
    • CLP - Chilean Peso
    • + *
    • CLF - Chilean Unit of Account (UF)
    • + *
    • CNX - Chinese People’s Bank Dollar
    • + *
    • CNY - Chinese Yuan
    • + *
    • CNH - Chinese Yuan (offshore)
    • + *
    • COP - Colombian Peso
    • + *
    • COU - Colombian Real Value Unit
    • + *
    • KMF - Comorian Franc
    • + *
    • CDF - Congolese Franc
    • + *
    • CRC - Costa Rican Colón
    • + *
    • HRD - Croatian Dinar
    • + *
    • HRK - Croatian Kuna
    • + *
    • CUC - Cuban Convertible Peso
    • + *
    • CUP - Cuban Peso
    • + *
    • CYP - Cypriot Pound
    • + *
    • CZK - Czech Koruna
    • + *
    • CSK - Czechoslovak Hard Koruna
    • + *
    • DKK - Danish Krone
    • + *
    • DJF - Djiboutian Franc
    • + *
    • DOP - Dominican Peso
    • + *
    • NLG - Dutch Guilder
    • + *
    • XCD - East Caribbean Dollar
    • + *
    • DDM - East German Mark
    • + *
    • ECS - Ecuadorian Sucre
    • + *
    • ECV - Ecuadorian Unit of Constant Value
    • + *
    • EGP - Egyptian Pound
    • + *
    • GQE - Equatorial Guinean Ekwele
    • + *
    • ERN - Eritrean Nakfa
    • + *
    • EEK - Estonian Kroon
    • + *
    • ETB - Ethiopian Birr
    • + *
    • EUR - Euro
    • + *
    • XBA - European Composite Unit
    • + *
    • XEU - European Currency Unit
    • + *
    • XBB - European Monetary Unit
    • + *
    • XBC - European Unit of Account (XBC)
    • + *
    • XBD - European Unit of Account (XBD)
    • + *
    • FKP - Falkland Islands Pound
    • + *
    • FJD - Fijian Dollar
    • + *
    • FIM - Finnish Markka
    • + *
    • FRF - French Franc
    • + *
    • XFO - French Gold Franc
    • + *
    • XFU - French UIC-Franc
    • + *
    • GMD - Gambian Dalasi
    • + *
    • GEK - Georgian Kupon Larit
    • + *
    • GEL - Georgian Lari
    • + *
    • DEM - German Mark
    • + *
    • GHS - Ghanaian Cedi
    • + *
    • GHC - Ghanaian Cedi (1979–2007)
    • + *
    • GIP - Gibraltar Pound
    • + *
    • XAU - Gold
    • + *
    • GRD - Greek Drachma
    • + *
    • GTQ - Guatemalan Quetzal
    • + *
    • GWP - Guinea-Bissau Peso
    • + *
    • GNF - Guinean Franc
    • + *
    • GNS - Guinean Syli
    • + *
    • GYD - Guyanaese Dollar
    • + *
    • HTG - Haitian Gourde
    • + *
    • HNL - Honduran Lempira
    • + *
    • HKD - Hong Kong Dollar
    • + *
    • HUF - Hungarian Forint
    • + *
    • IMP - IMP
    • + *
    • ISK - Icelandic Króna
    • + *
    • ISJ - Icelandic Króna (1918–1981)
    • + *
    • INR - Indian Rupee
    • + *
    • IDR - Indonesian Rupiah
    • + *
    • IRR - Iranian Rial
    • + *
    • IQD - Iraqi Dinar
    • + *
    • IEP - Irish Pound
    • + *
    • ILS - Israeli New Shekel
    • + *
    • ILP - Israeli Pound
    • + *
    • ILR - Israeli Shekel (1980–1985)
    • + *
    • ITL - Italian Lira
    • + *
    • JMD - Jamaican Dollar
    • + *
    • JPY - Japanese Yen
    • + *
    • JOD - Jordanian Dinar
    • + *
    • KZT - Kazakhstani Tenge
    • + *
    • KES - Kenyan Shilling
    • + *
    • KWD - Kuwaiti Dinar
    • + *
    • KGS - Kyrgystani Som
    • + *
    • LAK - Laotian Kip
    • + *
    • LVL - Latvian Lats
    • + *
    • LVR - Latvian Ruble
    • + *
    • LBP - Lebanese Pound
    • + *
    • LSL - Lesotho Loti
    • + *
    • LRD - Liberian Dollar
    • + *
    • LYD - Libyan Dinar
    • + *
    • LTL - Lithuanian Litas
    • + *
    • LTT - Lithuanian Talonas
    • + *
    • LUL - Luxembourg Financial Franc
    • + *
    • LUC - Luxembourgian Convertible Franc
    • + *
    • LUF - Luxembourgian Franc
    • + *
    • MOP - Macanese Pataca
    • + *
    • MKD - Macedonian Denar
    • + *
    • MKN - Macedonian Denar (1992–1993)
    • + *
    • MGA - Malagasy Ariary
    • + *
    • MGF - Malagasy Franc
    • + *
    • MWK - Malawian Kwacha
    • + *
    • MYR - Malaysian Ringgit
    • + *
    • MVR - Maldivian Rufiyaa
    • + *
    • MVP - Maldivian Rupee (1947–1981)
    • + *
    • MLF - Malian Franc
    • + *
    • MTL - Maltese Lira
    • + *
    • MTP - Maltese Pound
    • + *
    • MRU - Mauritanian Ouguiya
    • + *
    • MRO - Mauritanian Ouguiya (1973–2017)
    • + *
    • MUR - Mauritian Rupee
    • + *
    • MXV - Mexican Investment Unit
    • + *
    • MXN - Mexican Peso
    • + *
    • MXP - Mexican Silver Peso (1861–1992)
    • + *
    • MDC - Moldovan Cupon
    • + *
    • MDL - Moldovan Leu
    • + *
    • MCF - Monegasque Franc
    • + *
    • MNT - Mongolian Tugrik
    • + *
    • MAD - Moroccan Dirham
    • + *
    • MAF - Moroccan Franc
    • + *
    • MZE - Mozambican Escudo
    • + *
    • MZN - Mozambican Metical
    • + *
    • MZM - Mozambican Metical (1980–2006)
    • + *
    • MMK - Myanmar Kyat
    • + *
    • NAD - Namibian Dollar
    • + *
    • NPR - Nepalese Rupee
    • + *
    • ANG - Netherlands Antillean Guilder
    • + *
    • TWD - New Taiwan Dollar
    • + *
    • NZD - New Zealand Dollar
    • + *
    • NIO - Nicaraguan Córdoba
    • + *
    • NIC - Nicaraguan Córdoba (1988–1991)
    • + *
    • NGN - Nigerian Naira
    • + *
    • KPW - North Korean Won
    • + *
    • NOK - Norwegian Krone
    • + *
    • OMR - Omani Rial
    • + *
    • PKR - Pakistani Rupee
    • + *
    • XPD - Palladium
    • + *
    • PAB - Panamanian Balboa
    • + *
    • PGK - Papua New Guinean Kina
    • + *
    • PYG - Paraguayan Guarani
    • + *
    • PEI - Peruvian Inti
    • + *
    • PEN - Peruvian Sol
    • + *
    • PES - Peruvian Sol (1863–1965)
    • + *
    • PHP - Philippine Peso
    • + *
    • XPT - Platinum
    • + *
    • PLN - Polish Zloty
    • + *
    • PLZ - Polish Zloty (1950–1995)
    • + *
    • PTE - Portuguese Escudo
    • + *
    • GWE - Portuguese Guinea Escudo
    • + *
    • QAR - Qatari Rial
    • + *
    • XRE - RINET Funds
    • + *
    • RHD - Rhodesian Dollar
    • + *
    • RON - Romanian Leu
    • + *
    • ROL - Romanian Leu (1952–2006)
    • + *
    • RUB - Russian Ruble
    • + *
    • RUR - Russian Ruble (1991–1998)
    • + *
    • RWF - Rwandan Franc
    • + *
    • SVC - Salvadoran Colón
    • + *
    • WST - Samoan Tala
    • + *
    • SAR - Saudi Riyal
    • + *
    • RSD - Serbian Dinar
    • + *
    • CSD - Serbian Dinar (2002–2006)
    • + *
    • SCR - Seychellois Rupee
    • + *
    • SLL - Sierra Leonean Leone
    • + *
    • XAG - Silver
    • + *
    • SGD - Singapore Dollar
    • + *
    • SKK - Slovak Koruna
    • + *
    • SIT - Slovenian Tolar
    • + *
    • SBD - Solomon Islands Dollar
    • + *
    • SOS - Somali Shilling
    • + *
    • ZAR - South African Rand
    • + *
    • ZAL - South African Rand (financial)
    • + *
    • KRH - South Korean Hwan (1953–1962)
    • + *
    • KRW - South Korean Won
    • + *
    • KRO - South Korean Won (1945–1953)
    • + *
    • SSP - South Sudanese Pound
    • + *
    • SUR - Soviet Rouble
    • + *
    • ESP - Spanish Peseta
    • + *
    • ESA - Spanish Peseta (A account)
    • + *
    • ESB - Spanish Peseta (convertible account)
    • + *
    • XDR - Special Drawing Rights
    • + *
    • LKR - Sri Lankan Rupee
    • + *
    • SHP - St. Helena Pound
    • + *
    • XSU - Sucre
    • + *
    • SDD - Sudanese Dinar (1992–2007)
    • + *
    • SDG - Sudanese Pound
    • + *
    • SDP - Sudanese Pound (1957–1998)
    • + *
    • SRD - Surinamese Dollar
    • + *
    • SRG - Surinamese Guilder
    • + *
    • SZL - Swazi Lilangeni
    • + *
    • SEK - Swedish Krona
    • + *
    • CHF - Swiss Franc
    • + *
    • SYP - Syrian Pound
    • + *
    • STN - São Tomé & Príncipe Dobra
    • + *
    • STD - São Tomé & Príncipe Dobra (1977–2017)
    • + *
    • TVD - TVD
    • + *
    • TJR - Tajikistani Ruble
    • + *
    • TJS - Tajikistani Somoni
    • + *
    • TZS - Tanzanian Shilling
    • + *
    • XTS - Testing Currency Code
    • + *
    • THB - Thai Baht
    • + *
    • XXX - The codes assigned for transactions where no currency is involved
    • + *
    • TPE - Timorese Escudo
    • + *
    • TOP - Tongan Paʻanga
    • + *
    • TTD - Trinidad & Tobago Dollar
    • + *
    • TND - Tunisian Dinar
    • + *
    • TRY - Turkish Lira
    • + *
    • TRL - Turkish Lira (1922–2005)
    • + *
    • TMT - Turkmenistani Manat
    • + *
    • TMM - Turkmenistani Manat (1993–2009)
    • + *
    • USD - US Dollar
    • + *
    • USN - US Dollar (Next day)
    • + *
    • USS - US Dollar (Same day)
    • + *
    • UGX - Ugandan Shilling
    • + *
    • UGS - Ugandan Shilling (1966–1987)
    • + *
    • UAH - Ukrainian Hryvnia
    • + *
    • UAK - Ukrainian Karbovanets
    • + *
    • AED - United Arab Emirates Dirham
    • + *
    • UYW - Uruguayan Nominal Wage Index Unit
    • + *
    • UYU - Uruguayan Peso
    • + *
    • UYP - Uruguayan Peso (1975–1993)
    • + *
    • UYI - Uruguayan Peso (Indexed Units)
    • + *
    • UZS - Uzbekistani Som
    • + *
    • VUV - Vanuatu Vatu
    • + *
    • VES - Venezuelan Bolívar
    • + *
    • VEB - Venezuelan Bolívar (1871–2008)
    • + *
    • VEF - Venezuelan Bolívar (2008–2018)
    • + *
    • VND - Vietnamese Dong
    • + *
    • VNN - Vietnamese Dong (1978–1985)
    • + *
    • CHE - WIR Euro
    • + *
    • CHW - WIR Franc
    • + *
    • XOF - West African CFA Franc
    • + *
    • YDD - Yemeni Dinar
    • + *
    • YER - Yemeni Rial
    • + *
    • YUN - Yugoslavian Convertible Dinar (1990–1992)
    • + *
    • YUD - Yugoslavian Hard Dinar (1966–1990)
    • + *
    • YUM - Yugoslavian New Dinar (1994–2002)
    • + *
    • YUR - Yugoslavian Reformed Dinar (1992–1993)
    • + *
    • ZWN - ZWN
    • + *
    • ZRN - Zairean New Zaire (1993–1998)
    • + *
    • ZRZ - Zairean Zaire (1971–1993)
    • + *
    • ZMW - Zambian Kwacha
    • + *
    • ZMK - Zambian Kwacha (1968–2012)
    • + *
    • ZWD - Zimbabwean Dollar (1980–2008)
    • + *
    • ZWR - Zimbabwean Dollar (2008)
    • + *
    • ZWL - Zimbabwean Dollar (2009)
    • + *
    + */ @JsonSetter(value = "currency", nulls = Nulls.SKIP) - public Builder currency(Optional currency) { + public Builder currency(Optional currency) { this.currency = currency; return this; } - public Builder currency(TransactionCurrencyEnum currency) { + public Builder currency(InvoiceLineItemRequestCurrency currency) { this.currency = Optional.ofNullable(currency); return this; } + /** + *

    The line item's exchange rate.

    + */ @JsonSetter(value = "exchange_rate", nulls = Nulls.SKIP) public Builder exchangeRate(Optional exchangeRate) { this.exchangeRate = exchangeRate; @@ -758,6 +1146,9 @@ public Builder account(InvoiceLineItemRequestAccount account) { return this; } + /** + *

    The tax rate that applies to this line item.

    + */ @JsonSetter(value = "tax_rate", nulls = Nulls.SKIP) public Builder taxRate(Optional taxRate) { this.taxRate = taxRate; @@ -780,6 +1171,9 @@ public Builder trackingCategory(InvoiceLineItemRequestTrackingCategory trackingC return this; } + /** + *

    The invoice line item's associated tracking categories.

    + */ @JsonSetter(value = "tracking_categories", nulls = Nulls.SKIP) public Builder trackingCategories( Optional>> trackingCategories) { @@ -793,6 +1187,9 @@ public Builder trackingCategories( return this; } + /** + *

    The company the invoice belongs to.

    + */ @JsonSetter(value = "company", nulls = Nulls.SKIP) public Builder company(Optional company) { this.company = company; @@ -845,6 +1242,8 @@ public InvoiceLineItemRequest build() { quantity, totalAmount, employee, + project, + contact, currency, exchangeRate, item, diff --git a/src/main/java/com/merge/api/accounting/types/InvoiceLineItemRequestContact.java b/src/main/java/com/merge/api/accounting/types/InvoiceLineItemRequestContact.java new file mode 100644 index 000000000..ef0753db8 --- /dev/null +++ b/src/main/java/com/merge/api/accounting/types/InvoiceLineItemRequestContact.java @@ -0,0 +1,96 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.merge.api.accounting.types; + +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.databind.DeserializationContext; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.fasterxml.jackson.databind.deser.std.StdDeserializer; +import com.merge.api.core.ObjectMappers; +import java.io.IOException; +import java.util.Objects; + +@JsonDeserialize(using = InvoiceLineItemRequestContact.Deserializer.class) +public final class InvoiceLineItemRequestContact { + private final Object value; + + private final int type; + + private InvoiceLineItemRequestContact(Object value, int type) { + this.value = value; + this.type = type; + } + + @JsonValue + public Object get() { + return this.value; + } + + @SuppressWarnings("unchecked") + public T visit(Visitor visitor) { + if (this.type == 0) { + return visitor.visit((String) this.value); + } else if (this.type == 1) { + return visitor.visit((Contact) this.value); + } + throw new IllegalStateException("Failed to visit value. This should never happen."); + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof InvoiceLineItemRequestContact && equalTo((InvoiceLineItemRequestContact) other); + } + + private boolean equalTo(InvoiceLineItemRequestContact other) { + return value.equals(other.value); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.value); + } + + @java.lang.Override + public String toString() { + return this.value.toString(); + } + + public static InvoiceLineItemRequestContact of(String value) { + return new InvoiceLineItemRequestContact(value, 0); + } + + public static InvoiceLineItemRequestContact of(Contact value) { + return new InvoiceLineItemRequestContact(value, 1); + } + + public interface Visitor { + T visit(String value); + + T visit(Contact value); + } + + static final class Deserializer extends StdDeserializer { + Deserializer() { + super(InvoiceLineItemRequestContact.class); + } + + @java.lang.Override + public InvoiceLineItemRequestContact deserialize(JsonParser p, DeserializationContext context) + throws IOException { + Object value = p.readValueAs(Object.class); + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, String.class)); + } catch (IllegalArgumentException e) { + } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, Contact.class)); + } catch (IllegalArgumentException e) { + } + throw new JsonParseException(p, "Failed to deserialize"); + } + } +} diff --git a/src/main/java/com/merge/api/accounting/types/InvoiceLineItemRequestCurrency.java b/src/main/java/com/merge/api/accounting/types/InvoiceLineItemRequestCurrency.java new file mode 100644 index 000000000..f5babd858 --- /dev/null +++ b/src/main/java/com/merge/api/accounting/types/InvoiceLineItemRequestCurrency.java @@ -0,0 +1,96 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.merge.api.accounting.types; + +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.databind.DeserializationContext; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.fasterxml.jackson.databind.deser.std.StdDeserializer; +import com.merge.api.core.ObjectMappers; +import java.io.IOException; +import java.util.Objects; + +@JsonDeserialize(using = InvoiceLineItemRequestCurrency.Deserializer.class) +public final class InvoiceLineItemRequestCurrency { + private final Object value; + + private final int type; + + private InvoiceLineItemRequestCurrency(Object value, int type) { + this.value = value; + this.type = type; + } + + @JsonValue + public Object get() { + return this.value; + } + + @SuppressWarnings("unchecked") + public T visit(Visitor visitor) { + if (this.type == 0) { + return visitor.visit((TransactionCurrencyEnum) this.value); + } else if (this.type == 1) { + return visitor.visit((String) this.value); + } + throw new IllegalStateException("Failed to visit value. This should never happen."); + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof InvoiceLineItemRequestCurrency && equalTo((InvoiceLineItemRequestCurrency) other); + } + + private boolean equalTo(InvoiceLineItemRequestCurrency other) { + return value.equals(other.value); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.value); + } + + @java.lang.Override + public String toString() { + return this.value.toString(); + } + + public static InvoiceLineItemRequestCurrency of(TransactionCurrencyEnum value) { + return new InvoiceLineItemRequestCurrency(value, 0); + } + + public static InvoiceLineItemRequestCurrency of(String value) { + return new InvoiceLineItemRequestCurrency(value, 1); + } + + public interface Visitor { + T visit(TransactionCurrencyEnum value); + + T visit(String value); + } + + static final class Deserializer extends StdDeserializer { + Deserializer() { + super(InvoiceLineItemRequestCurrency.class); + } + + @java.lang.Override + public InvoiceLineItemRequestCurrency deserialize(JsonParser p, DeserializationContext context) + throws IOException { + Object value = p.readValueAs(Object.class); + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, TransactionCurrencyEnum.class)); + } catch (IllegalArgumentException e) { + } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, String.class)); + } catch (IllegalArgumentException e) { + } + throw new JsonParseException(p, "Failed to deserialize"); + } + } +} diff --git a/src/main/java/com/merge/api/accounting/types/InvoiceLineItemRequestProject.java b/src/main/java/com/merge/api/accounting/types/InvoiceLineItemRequestProject.java new file mode 100644 index 000000000..982469a90 --- /dev/null +++ b/src/main/java/com/merge/api/accounting/types/InvoiceLineItemRequestProject.java @@ -0,0 +1,96 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.merge.api.accounting.types; + +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.databind.DeserializationContext; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.fasterxml.jackson.databind.deser.std.StdDeserializer; +import com.merge.api.core.ObjectMappers; +import java.io.IOException; +import java.util.Objects; + +@JsonDeserialize(using = InvoiceLineItemRequestProject.Deserializer.class) +public final class InvoiceLineItemRequestProject { + private final Object value; + + private final int type; + + private InvoiceLineItemRequestProject(Object value, int type) { + this.value = value; + this.type = type; + } + + @JsonValue + public Object get() { + return this.value; + } + + @SuppressWarnings("unchecked") + public T visit(Visitor visitor) { + if (this.type == 0) { + return visitor.visit((String) this.value); + } else if (this.type == 1) { + return visitor.visit((Project) this.value); + } + throw new IllegalStateException("Failed to visit value. This should never happen."); + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof InvoiceLineItemRequestProject && equalTo((InvoiceLineItemRequestProject) other); + } + + private boolean equalTo(InvoiceLineItemRequestProject other) { + return value.equals(other.value); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.value); + } + + @java.lang.Override + public String toString() { + return this.value.toString(); + } + + public static InvoiceLineItemRequestProject of(String value) { + return new InvoiceLineItemRequestProject(value, 0); + } + + public static InvoiceLineItemRequestProject of(Project value) { + return new InvoiceLineItemRequestProject(value, 1); + } + + public interface Visitor { + T visit(String value); + + T visit(Project value); + } + + static final class Deserializer extends StdDeserializer { + Deserializer() { + super(InvoiceLineItemRequestProject.class); + } + + @java.lang.Override + public InvoiceLineItemRequestProject deserialize(JsonParser p, DeserializationContext context) + throws IOException { + Object value = p.readValueAs(Object.class); + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, String.class)); + } catch (IllegalArgumentException e) { + } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, Project.class)); + } catch (IllegalArgumentException e) { + } + throw new JsonParseException(p, "Failed to deserialize"); + } + } +} diff --git a/src/main/java/com/merge/api/accounting/types/InvoiceRequest.java b/src/main/java/com/merge/api/accounting/types/InvoiceRequest.java index 389148ccc..4a0ca35e5 100644 --- a/src/main/java/com/merge/api/accounting/types/InvoiceRequest.java +++ b/src/main/java/com/merge/api/accounting/types/InvoiceRequest.java @@ -23,7 +23,7 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = InvoiceRequest.Builder.class) public final class InvoiceRequest { - private final Optional type; + private final Optional type; private final Optional contact; @@ -39,11 +39,11 @@ public final class InvoiceRequest { private final Optional memo; - private final Optional status; + private final Optional status; private final Optional company; - private final Optional currency; + private final Optional currency; private final Optional exchangeRate; @@ -78,7 +78,7 @@ public final class InvoiceRequest { private final Map additionalProperties; private InvoiceRequest( - Optional type, + Optional type, Optional contact, Optional number, Optional issueDate, @@ -86,9 +86,9 @@ private InvoiceRequest( Optional paidOnDate, Optional employee, Optional memo, - Optional status, + Optional status, Optional company, - Optional currency, + Optional currency, Optional exchangeRate, Optional totalDiscount, Optional subTotal, @@ -142,7 +142,7 @@ private InvoiceRequest( * */ @JsonProperty("type") - public Optional getType() { + public Optional getType() { return type; } @@ -214,7 +214,7 @@ public Optional getMemo() { * */ @JsonProperty("status") - public Optional getStatus() { + public Optional getStatus() { return status; } @@ -538,7 +538,7 @@ public Optional getCompany() { * */ @JsonProperty("currency") - public Optional getCurrency() { + public Optional getCurrency() { return currency; } @@ -726,7 +726,7 @@ public static Builder builder() { @JsonIgnoreProperties(ignoreUnknown = true) public static final class Builder { - private Optional type = Optional.empty(); + private Optional type = Optional.empty(); private Optional contact = Optional.empty(); @@ -742,11 +742,11 @@ public static final class Builder { private Optional memo = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Optional company = Optional.empty(); - private Optional currency = Optional.empty(); + private Optional currency = Optional.empty(); private Optional exchangeRate = Optional.empty(); @@ -813,17 +813,27 @@ public Builder from(InvoiceRequest other) { return this; } + /** + *

    Whether the invoice is an accounts receivable or accounts payable. If type is ACCOUNTS_PAYABLE, the invoice is a bill. If type is ACCOUNTS_RECEIVABLE, it is an invoice.

    + *
      + *
    • ACCOUNTS_RECEIVABLE - ACCOUNTS_RECEIVABLE
    • + *
    • ACCOUNTS_PAYABLE - ACCOUNTS_PAYABLE
    • + *
    + */ @JsonSetter(value = "type", nulls = Nulls.SKIP) - public Builder type(Optional type) { + public Builder type(Optional type) { this.type = type; return this; } - public Builder type(InvoiceTypeEnum type) { + public Builder type(InvoiceRequestType type) { this.type = Optional.ofNullable(type); return this; } + /** + *

    The invoice's contact.

    + */ @JsonSetter(value = "contact", nulls = Nulls.SKIP) public Builder contact(Optional contact) { this.contact = contact; @@ -835,6 +845,9 @@ public Builder contact(InvoiceRequestContact contact) { return this; } + /** + *

    The invoice's number.

    + */ @JsonSetter(value = "number", nulls = Nulls.SKIP) public Builder number(Optional number) { this.number = number; @@ -846,6 +859,9 @@ public Builder number(String number) { return this; } + /** + *

    The invoice's issue date.

    + */ @JsonSetter(value = "issue_date", nulls = Nulls.SKIP) public Builder issueDate(Optional issueDate) { this.issueDate = issueDate; @@ -857,6 +873,9 @@ public Builder issueDate(OffsetDateTime issueDate) { return this; } + /** + *

    The invoice's due date.

    + */ @JsonSetter(value = "due_date", nulls = Nulls.SKIP) public Builder dueDate(Optional dueDate) { this.dueDate = dueDate; @@ -868,6 +887,9 @@ public Builder dueDate(OffsetDateTime dueDate) { return this; } + /** + *

    The invoice's paid date.

    + */ @JsonSetter(value = "paid_on_date", nulls = Nulls.SKIP) public Builder paidOnDate(Optional paidOnDate) { this.paidOnDate = paidOnDate; @@ -879,6 +901,9 @@ public Builder paidOnDate(OffsetDateTime paidOnDate) { return this; } + /** + *

    The employee this overall transaction relates to.

    + */ @JsonSetter(value = "employee", nulls = Nulls.SKIP) public Builder employee(Optional employee) { this.employee = employee; @@ -890,6 +915,9 @@ public Builder employee(InvoiceRequestEmployee employee) { return this; } + /** + *

    The invoice's private note.

    + */ @JsonSetter(value = "memo", nulls = Nulls.SKIP) public Builder memo(Optional memo) { this.memo = memo; @@ -901,17 +929,31 @@ public Builder memo(String memo) { return this; } + /** + *

    The status of the invoice.

    + *
      + *
    • PAID - PAID
    • + *
    • DRAFT - DRAFT
    • + *
    • SUBMITTED - SUBMITTED
    • + *
    • PARTIALLY_PAID - PARTIALLY_PAID
    • + *
    • OPEN - OPEN
    • + *
    • VOID - VOID
    • + *
    + */ @JsonSetter(value = "status", nulls = Nulls.SKIP) - public Builder status(Optional status) { + public Builder status(Optional status) { this.status = status; return this; } - public Builder status(InvoiceStatusEnum status) { + public Builder status(InvoiceRequestStatus status) { this.status = Optional.ofNullable(status); return this; } + /** + *

    The company the invoice belongs to.

    + */ @JsonSetter(value = "company", nulls = Nulls.SKIP) public Builder company(Optional company) { this.company = company; @@ -923,17 +965,331 @@ public Builder company(InvoiceRequestCompany company) { return this; } + /** + *

    The invoice's currency.

    + *
      + *
    • XUA - ADB Unit of Account
    • + *
    • AFN - Afghan Afghani
    • + *
    • AFA - Afghan Afghani (1927–2002)
    • + *
    • ALL - Albanian Lek
    • + *
    • ALK - Albanian Lek (1946–1965)
    • + *
    • DZD - Algerian Dinar
    • + *
    • ADP - Andorran Peseta
    • + *
    • AOA - Angolan Kwanza
    • + *
    • AOK - Angolan Kwanza (1977–1991)
    • + *
    • AON - Angolan New Kwanza (1990–2000)
    • + *
    • AOR - Angolan Readjusted Kwanza (1995–1999)
    • + *
    • ARA - Argentine Austral
    • + *
    • ARS - Argentine Peso
    • + *
    • ARM - Argentine Peso (1881–1970)
    • + *
    • ARP - Argentine Peso (1983–1985)
    • + *
    • ARL - Argentine Peso Ley (1970–1983)
    • + *
    • AMD - Armenian Dram
    • + *
    • AWG - Aruban Florin
    • + *
    • AUD - Australian Dollar
    • + *
    • ATS - Austrian Schilling
    • + *
    • AZN - Azerbaijani Manat
    • + *
    • AZM - Azerbaijani Manat (1993–2006)
    • + *
    • BSD - Bahamian Dollar
    • + *
    • BHD - Bahraini Dinar
    • + *
    • BDT - Bangladeshi Taka
    • + *
    • BBD - Barbadian Dollar
    • + *
    • BYN - Belarusian Ruble
    • + *
    • BYB - Belarusian Ruble (1994–1999)
    • + *
    • BYR - Belarusian Ruble (2000–2016)
    • + *
    • BEF - Belgian Franc
    • + *
    • BEC - Belgian Franc (convertible)
    • + *
    • BEL - Belgian Franc (financial)
    • + *
    • BZD - Belize Dollar
    • + *
    • BMD - Bermudan Dollar
    • + *
    • BTN - Bhutanese Ngultrum
    • + *
    • BOB - Bolivian Boliviano
    • + *
    • BOL - Bolivian Boliviano (1863–1963)
    • + *
    • BOV - Bolivian Mvdol
    • + *
    • BOP - Bolivian Peso
    • + *
    • BAM - Bosnia-Herzegovina Convertible Mark
    • + *
    • BAD - Bosnia-Herzegovina Dinar (1992–1994)
    • + *
    • BAN - Bosnia-Herzegovina New Dinar (1994–1997)
    • + *
    • BWP - Botswanan Pula
    • + *
    • BRC - Brazilian Cruzado (1986–1989)
    • + *
    • BRZ - Brazilian Cruzeiro (1942–1967)
    • + *
    • BRE - Brazilian Cruzeiro (1990–1993)
    • + *
    • BRR - Brazilian Cruzeiro (1993–1994)
    • + *
    • BRN - Brazilian New Cruzado (1989–1990)
    • + *
    • BRB - Brazilian New Cruzeiro (1967–1986)
    • + *
    • BRL - Brazilian Real
    • + *
    • GBP - British Pound
    • + *
    • BND - Brunei Dollar
    • + *
    • BGL - Bulgarian Hard Lev
    • + *
    • BGN - Bulgarian Lev
    • + *
    • BGO - Bulgarian Lev (1879–1952)
    • + *
    • BGM - Bulgarian Socialist Lev
    • + *
    • BUK - Burmese Kyat
    • + *
    • BIF - Burundian Franc
    • + *
    • XPF - CFP Franc
    • + *
    • KHR - Cambodian Riel
    • + *
    • CAD - Canadian Dollar
    • + *
    • CVE - Cape Verdean Escudo
    • + *
    • KYD - Cayman Islands Dollar
    • + *
    • XAF - Central African CFA Franc
    • + *
    • CLE - Chilean Escudo
    • + *
    • CLP - Chilean Peso
    • + *
    • CLF - Chilean Unit of Account (UF)
    • + *
    • CNX - Chinese People’s Bank Dollar
    • + *
    • CNY - Chinese Yuan
    • + *
    • CNH - Chinese Yuan (offshore)
    • + *
    • COP - Colombian Peso
    • + *
    • COU - Colombian Real Value Unit
    • + *
    • KMF - Comorian Franc
    • + *
    • CDF - Congolese Franc
    • + *
    • CRC - Costa Rican Colón
    • + *
    • HRD - Croatian Dinar
    • + *
    • HRK - Croatian Kuna
    • + *
    • CUC - Cuban Convertible Peso
    • + *
    • CUP - Cuban Peso
    • + *
    • CYP - Cypriot Pound
    • + *
    • CZK - Czech Koruna
    • + *
    • CSK - Czechoslovak Hard Koruna
    • + *
    • DKK - Danish Krone
    • + *
    • DJF - Djiboutian Franc
    • + *
    • DOP - Dominican Peso
    • + *
    • NLG - Dutch Guilder
    • + *
    • XCD - East Caribbean Dollar
    • + *
    • DDM - East German Mark
    • + *
    • ECS - Ecuadorian Sucre
    • + *
    • ECV - Ecuadorian Unit of Constant Value
    • + *
    • EGP - Egyptian Pound
    • + *
    • GQE - Equatorial Guinean Ekwele
    • + *
    • ERN - Eritrean Nakfa
    • + *
    • EEK - Estonian Kroon
    • + *
    • ETB - Ethiopian Birr
    • + *
    • EUR - Euro
    • + *
    • XBA - European Composite Unit
    • + *
    • XEU - European Currency Unit
    • + *
    • XBB - European Monetary Unit
    • + *
    • XBC - European Unit of Account (XBC)
    • + *
    • XBD - European Unit of Account (XBD)
    • + *
    • FKP - Falkland Islands Pound
    • + *
    • FJD - Fijian Dollar
    • + *
    • FIM - Finnish Markka
    • + *
    • FRF - French Franc
    • + *
    • XFO - French Gold Franc
    • + *
    • XFU - French UIC-Franc
    • + *
    • GMD - Gambian Dalasi
    • + *
    • GEK - Georgian Kupon Larit
    • + *
    • GEL - Georgian Lari
    • + *
    • DEM - German Mark
    • + *
    • GHS - Ghanaian Cedi
    • + *
    • GHC - Ghanaian Cedi (1979–2007)
    • + *
    • GIP - Gibraltar Pound
    • + *
    • XAU - Gold
    • + *
    • GRD - Greek Drachma
    • + *
    • GTQ - Guatemalan Quetzal
    • + *
    • GWP - Guinea-Bissau Peso
    • + *
    • GNF - Guinean Franc
    • + *
    • GNS - Guinean Syli
    • + *
    • GYD - Guyanaese Dollar
    • + *
    • HTG - Haitian Gourde
    • + *
    • HNL - Honduran Lempira
    • + *
    • HKD - Hong Kong Dollar
    • + *
    • HUF - Hungarian Forint
    • + *
    • IMP - IMP
    • + *
    • ISK - Icelandic Króna
    • + *
    • ISJ - Icelandic Króna (1918–1981)
    • + *
    • INR - Indian Rupee
    • + *
    • IDR - Indonesian Rupiah
    • + *
    • IRR - Iranian Rial
    • + *
    • IQD - Iraqi Dinar
    • + *
    • IEP - Irish Pound
    • + *
    • ILS - Israeli New Shekel
    • + *
    • ILP - Israeli Pound
    • + *
    • ILR - Israeli Shekel (1980–1985)
    • + *
    • ITL - Italian Lira
    • + *
    • JMD - Jamaican Dollar
    • + *
    • JPY - Japanese Yen
    • + *
    • JOD - Jordanian Dinar
    • + *
    • KZT - Kazakhstani Tenge
    • + *
    • KES - Kenyan Shilling
    • + *
    • KWD - Kuwaiti Dinar
    • + *
    • KGS - Kyrgystani Som
    • + *
    • LAK - Laotian Kip
    • + *
    • LVL - Latvian Lats
    • + *
    • LVR - Latvian Ruble
    • + *
    • LBP - Lebanese Pound
    • + *
    • LSL - Lesotho Loti
    • + *
    • LRD - Liberian Dollar
    • + *
    • LYD - Libyan Dinar
    • + *
    • LTL - Lithuanian Litas
    • + *
    • LTT - Lithuanian Talonas
    • + *
    • LUL - Luxembourg Financial Franc
    • + *
    • LUC - Luxembourgian Convertible Franc
    • + *
    • LUF - Luxembourgian Franc
    • + *
    • MOP - Macanese Pataca
    • + *
    • MKD - Macedonian Denar
    • + *
    • MKN - Macedonian Denar (1992–1993)
    • + *
    • MGA - Malagasy Ariary
    • + *
    • MGF - Malagasy Franc
    • + *
    • MWK - Malawian Kwacha
    • + *
    • MYR - Malaysian Ringgit
    • + *
    • MVR - Maldivian Rufiyaa
    • + *
    • MVP - Maldivian Rupee (1947–1981)
    • + *
    • MLF - Malian Franc
    • + *
    • MTL - Maltese Lira
    • + *
    • MTP - Maltese Pound
    • + *
    • MRU - Mauritanian Ouguiya
    • + *
    • MRO - Mauritanian Ouguiya (1973–2017)
    • + *
    • MUR - Mauritian Rupee
    • + *
    • MXV - Mexican Investment Unit
    • + *
    • MXN - Mexican Peso
    • + *
    • MXP - Mexican Silver Peso (1861–1992)
    • + *
    • MDC - Moldovan Cupon
    • + *
    • MDL - Moldovan Leu
    • + *
    • MCF - Monegasque Franc
    • + *
    • MNT - Mongolian Tugrik
    • + *
    • MAD - Moroccan Dirham
    • + *
    • MAF - Moroccan Franc
    • + *
    • MZE - Mozambican Escudo
    • + *
    • MZN - Mozambican Metical
    • + *
    • MZM - Mozambican Metical (1980–2006)
    • + *
    • MMK - Myanmar Kyat
    • + *
    • NAD - Namibian Dollar
    • + *
    • NPR - Nepalese Rupee
    • + *
    • ANG - Netherlands Antillean Guilder
    • + *
    • TWD - New Taiwan Dollar
    • + *
    • NZD - New Zealand Dollar
    • + *
    • NIO - Nicaraguan Córdoba
    • + *
    • NIC - Nicaraguan Córdoba (1988–1991)
    • + *
    • NGN - Nigerian Naira
    • + *
    • KPW - North Korean Won
    • + *
    • NOK - Norwegian Krone
    • + *
    • OMR - Omani Rial
    • + *
    • PKR - Pakistani Rupee
    • + *
    • XPD - Palladium
    • + *
    • PAB - Panamanian Balboa
    • + *
    • PGK - Papua New Guinean Kina
    • + *
    • PYG - Paraguayan Guarani
    • + *
    • PEI - Peruvian Inti
    • + *
    • PEN - Peruvian Sol
    • + *
    • PES - Peruvian Sol (1863–1965)
    • + *
    • PHP - Philippine Peso
    • + *
    • XPT - Platinum
    • + *
    • PLN - Polish Zloty
    • + *
    • PLZ - Polish Zloty (1950–1995)
    • + *
    • PTE - Portuguese Escudo
    • + *
    • GWE - Portuguese Guinea Escudo
    • + *
    • QAR - Qatari Rial
    • + *
    • XRE - RINET Funds
    • + *
    • RHD - Rhodesian Dollar
    • + *
    • RON - Romanian Leu
    • + *
    • ROL - Romanian Leu (1952–2006)
    • + *
    • RUB - Russian Ruble
    • + *
    • RUR - Russian Ruble (1991–1998)
    • + *
    • RWF - Rwandan Franc
    • + *
    • SVC - Salvadoran Colón
    • + *
    • WST - Samoan Tala
    • + *
    • SAR - Saudi Riyal
    • + *
    • RSD - Serbian Dinar
    • + *
    • CSD - Serbian Dinar (2002–2006)
    • + *
    • SCR - Seychellois Rupee
    • + *
    • SLL - Sierra Leonean Leone
    • + *
    • XAG - Silver
    • + *
    • SGD - Singapore Dollar
    • + *
    • SKK - Slovak Koruna
    • + *
    • SIT - Slovenian Tolar
    • + *
    • SBD - Solomon Islands Dollar
    • + *
    • SOS - Somali Shilling
    • + *
    • ZAR - South African Rand
    • + *
    • ZAL - South African Rand (financial)
    • + *
    • KRH - South Korean Hwan (1953–1962)
    • + *
    • KRW - South Korean Won
    • + *
    • KRO - South Korean Won (1945–1953)
    • + *
    • SSP - South Sudanese Pound
    • + *
    • SUR - Soviet Rouble
    • + *
    • ESP - Spanish Peseta
    • + *
    • ESA - Spanish Peseta (A account)
    • + *
    • ESB - Spanish Peseta (convertible account)
    • + *
    • XDR - Special Drawing Rights
    • + *
    • LKR - Sri Lankan Rupee
    • + *
    • SHP - St. Helena Pound
    • + *
    • XSU - Sucre
    • + *
    • SDD - Sudanese Dinar (1992–2007)
    • + *
    • SDG - Sudanese Pound
    • + *
    • SDP - Sudanese Pound (1957–1998)
    • + *
    • SRD - Surinamese Dollar
    • + *
    • SRG - Surinamese Guilder
    • + *
    • SZL - Swazi Lilangeni
    • + *
    • SEK - Swedish Krona
    • + *
    • CHF - Swiss Franc
    • + *
    • SYP - Syrian Pound
    • + *
    • STN - São Tomé & Príncipe Dobra
    • + *
    • STD - São Tomé & Príncipe Dobra (1977–2017)
    • + *
    • TVD - TVD
    • + *
    • TJR - Tajikistani Ruble
    • + *
    • TJS - Tajikistani Somoni
    • + *
    • TZS - Tanzanian Shilling
    • + *
    • XTS - Testing Currency Code
    • + *
    • THB - Thai Baht
    • + *
    • XXX - The codes assigned for transactions where no currency is involved
    • + *
    • TPE - Timorese Escudo
    • + *
    • TOP - Tongan Paʻanga
    • + *
    • TTD - Trinidad & Tobago Dollar
    • + *
    • TND - Tunisian Dinar
    • + *
    • TRY - Turkish Lira
    • + *
    • TRL - Turkish Lira (1922–2005)
    • + *
    • TMT - Turkmenistani Manat
    • + *
    • TMM - Turkmenistani Manat (1993–2009)
    • + *
    • USD - US Dollar
    • + *
    • USN - US Dollar (Next day)
    • + *
    • USS - US Dollar (Same day)
    • + *
    • UGX - Ugandan Shilling
    • + *
    • UGS - Ugandan Shilling (1966–1987)
    • + *
    • UAH - Ukrainian Hryvnia
    • + *
    • UAK - Ukrainian Karbovanets
    • + *
    • AED - United Arab Emirates Dirham
    • + *
    • UYW - Uruguayan Nominal Wage Index Unit
    • + *
    • UYU - Uruguayan Peso
    • + *
    • UYP - Uruguayan Peso (1975–1993)
    • + *
    • UYI - Uruguayan Peso (Indexed Units)
    • + *
    • UZS - Uzbekistani Som
    • + *
    • VUV - Vanuatu Vatu
    • + *
    • VES - Venezuelan Bolívar
    • + *
    • VEB - Venezuelan Bolívar (1871–2008)
    • + *
    • VEF - Venezuelan Bolívar (2008–2018)
    • + *
    • VND - Vietnamese Dong
    • + *
    • VNN - Vietnamese Dong (1978–1985)
    • + *
    • CHE - WIR Euro
    • + *
    • CHW - WIR Franc
    • + *
    • XOF - West African CFA Franc
    • + *
    • YDD - Yemeni Dinar
    • + *
    • YER - Yemeni Rial
    • + *
    • YUN - Yugoslavian Convertible Dinar (1990–1992)
    • + *
    • YUD - Yugoslavian Hard Dinar (1966–1990)
    • + *
    • YUM - Yugoslavian New Dinar (1994–2002)
    • + *
    • YUR - Yugoslavian Reformed Dinar (1992–1993)
    • + *
    • ZWN - ZWN
    • + *
    • ZRN - Zairean New Zaire (1993–1998)
    • + *
    • ZRZ - Zairean Zaire (1971–1993)
    • + *
    • ZMW - Zambian Kwacha
    • + *
    • ZMK - Zambian Kwacha (1968–2012)
    • + *
    • ZWD - Zimbabwean Dollar (1980–2008)
    • + *
    • ZWR - Zimbabwean Dollar (2008)
    • + *
    • ZWL - Zimbabwean Dollar (2009)
    • + *
    + */ @JsonSetter(value = "currency", nulls = Nulls.SKIP) - public Builder currency(Optional currency) { + public Builder currency(Optional currency) { this.currency = currency; return this; } - public Builder currency(TransactionCurrencyEnum currency) { + public Builder currency(InvoiceRequestCurrency currency) { this.currency = Optional.ofNullable(currency); return this; } + /** + *

    The invoice's exchange rate.

    + */ @JsonSetter(value = "exchange_rate", nulls = Nulls.SKIP) public Builder exchangeRate(Optional exchangeRate) { this.exchangeRate = exchangeRate; @@ -945,6 +1301,9 @@ public Builder exchangeRate(String exchangeRate) { return this; } + /** + *

    The total discounts applied to the total cost.

    + */ @JsonSetter(value = "total_discount", nulls = Nulls.SKIP) public Builder totalDiscount(Optional totalDiscount) { this.totalDiscount = totalDiscount; @@ -956,6 +1315,9 @@ public Builder totalDiscount(Double totalDiscount) { return this; } + /** + *

    The total amount being paid before taxes.

    + */ @JsonSetter(value = "sub_total", nulls = Nulls.SKIP) public Builder subTotal(Optional subTotal) { this.subTotal = subTotal; @@ -967,6 +1329,9 @@ public Builder subTotal(Double subTotal) { return this; } + /** + *

    The payment term that applies to this transaction.

    + */ @JsonSetter(value = "payment_term", nulls = Nulls.SKIP) public Builder paymentTerm(Optional paymentTerm) { this.paymentTerm = paymentTerm; @@ -978,6 +1343,9 @@ public Builder paymentTerm(InvoiceRequestPaymentTerm paymentTerm) { return this; } + /** + *

    The total amount being paid in taxes.

    + */ @JsonSetter(value = "total_tax_amount", nulls = Nulls.SKIP) public Builder totalTaxAmount(Optional totalTaxAmount) { this.totalTaxAmount = totalTaxAmount; @@ -989,6 +1357,9 @@ public Builder totalTaxAmount(Double totalTaxAmount) { return this; } + /** + *

    If the transaction is inclusive or exclusive of tax. True if inclusive, False if exclusive.

    + */ @JsonSetter(value = "inclusive_of_tax", nulls = Nulls.SKIP) public Builder inclusiveOfTax(Optional inclusiveOfTax) { this.inclusiveOfTax = inclusiveOfTax; @@ -1000,6 +1371,9 @@ public Builder inclusiveOfTax(Boolean inclusiveOfTax) { return this; } + /** + *

    The invoice's total amount.

    + */ @JsonSetter(value = "total_amount", nulls = Nulls.SKIP) public Builder totalAmount(Optional totalAmount) { this.totalAmount = totalAmount; @@ -1011,6 +1385,9 @@ public Builder totalAmount(Double totalAmount) { return this; } + /** + *

    The invoice's remaining balance.

    + */ @JsonSetter(value = "balance", nulls = Nulls.SKIP) public Builder balance(Optional balance) { this.balance = balance; @@ -1022,6 +1399,9 @@ public Builder balance(Double balance) { return this; } + /** + *

    Array of Payment object IDs.

    + */ @JsonSetter(value = "payments", nulls = Nulls.SKIP) public Builder payments(Optional>> payments) { this.payments = payments; diff --git a/src/main/java/com/merge/api/accounting/types/InvoiceRequestCurrency.java b/src/main/java/com/merge/api/accounting/types/InvoiceRequestCurrency.java new file mode 100644 index 000000000..b683b74d6 --- /dev/null +++ b/src/main/java/com/merge/api/accounting/types/InvoiceRequestCurrency.java @@ -0,0 +1,95 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.merge.api.accounting.types; + +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.databind.DeserializationContext; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.fasterxml.jackson.databind.deser.std.StdDeserializer; +import com.merge.api.core.ObjectMappers; +import java.io.IOException; +import java.util.Objects; + +@JsonDeserialize(using = InvoiceRequestCurrency.Deserializer.class) +public final class InvoiceRequestCurrency { + private final Object value; + + private final int type; + + private InvoiceRequestCurrency(Object value, int type) { + this.value = value; + this.type = type; + } + + @JsonValue + public Object get() { + return this.value; + } + + @SuppressWarnings("unchecked") + public T visit(Visitor visitor) { + if (this.type == 0) { + return visitor.visit((TransactionCurrencyEnum) this.value); + } else if (this.type == 1) { + return visitor.visit((String) this.value); + } + throw new IllegalStateException("Failed to visit value. This should never happen."); + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof InvoiceRequestCurrency && equalTo((InvoiceRequestCurrency) other); + } + + private boolean equalTo(InvoiceRequestCurrency other) { + return value.equals(other.value); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.value); + } + + @java.lang.Override + public String toString() { + return this.value.toString(); + } + + public static InvoiceRequestCurrency of(TransactionCurrencyEnum value) { + return new InvoiceRequestCurrency(value, 0); + } + + public static InvoiceRequestCurrency of(String value) { + return new InvoiceRequestCurrency(value, 1); + } + + public interface Visitor { + T visit(TransactionCurrencyEnum value); + + T visit(String value); + } + + static final class Deserializer extends StdDeserializer { + Deserializer() { + super(InvoiceRequestCurrency.class); + } + + @java.lang.Override + public InvoiceRequestCurrency deserialize(JsonParser p, DeserializationContext context) throws IOException { + Object value = p.readValueAs(Object.class); + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, TransactionCurrencyEnum.class)); + } catch (IllegalArgumentException e) { + } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, String.class)); + } catch (IllegalArgumentException e) { + } + throw new JsonParseException(p, "Failed to deserialize"); + } + } +} diff --git a/src/main/java/com/merge/api/accounting/types/InvoiceRequestStatus.java b/src/main/java/com/merge/api/accounting/types/InvoiceRequestStatus.java new file mode 100644 index 000000000..4f3be7529 --- /dev/null +++ b/src/main/java/com/merge/api/accounting/types/InvoiceRequestStatus.java @@ -0,0 +1,95 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.merge.api.accounting.types; + +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.databind.DeserializationContext; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.fasterxml.jackson.databind.deser.std.StdDeserializer; +import com.merge.api.core.ObjectMappers; +import java.io.IOException; +import java.util.Objects; + +@JsonDeserialize(using = InvoiceRequestStatus.Deserializer.class) +public final class InvoiceRequestStatus { + private final Object value; + + private final int type; + + private InvoiceRequestStatus(Object value, int type) { + this.value = value; + this.type = type; + } + + @JsonValue + public Object get() { + return this.value; + } + + @SuppressWarnings("unchecked") + public T visit(Visitor visitor) { + if (this.type == 0) { + return visitor.visit((InvoiceStatusEnum) this.value); + } else if (this.type == 1) { + return visitor.visit((String) this.value); + } + throw new IllegalStateException("Failed to visit value. This should never happen."); + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof InvoiceRequestStatus && equalTo((InvoiceRequestStatus) other); + } + + private boolean equalTo(InvoiceRequestStatus other) { + return value.equals(other.value); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.value); + } + + @java.lang.Override + public String toString() { + return this.value.toString(); + } + + public static InvoiceRequestStatus of(InvoiceStatusEnum value) { + return new InvoiceRequestStatus(value, 0); + } + + public static InvoiceRequestStatus of(String value) { + return new InvoiceRequestStatus(value, 1); + } + + public interface Visitor { + T visit(InvoiceStatusEnum value); + + T visit(String value); + } + + static final class Deserializer extends StdDeserializer { + Deserializer() { + super(InvoiceRequestStatus.class); + } + + @java.lang.Override + public InvoiceRequestStatus deserialize(JsonParser p, DeserializationContext context) throws IOException { + Object value = p.readValueAs(Object.class); + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, InvoiceStatusEnum.class)); + } catch (IllegalArgumentException e) { + } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, String.class)); + } catch (IllegalArgumentException e) { + } + throw new JsonParseException(p, "Failed to deserialize"); + } + } +} diff --git a/src/main/java/com/merge/api/accounting/types/InvoiceRequestType.java b/src/main/java/com/merge/api/accounting/types/InvoiceRequestType.java new file mode 100644 index 000000000..4dbf0448c --- /dev/null +++ b/src/main/java/com/merge/api/accounting/types/InvoiceRequestType.java @@ -0,0 +1,95 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.merge.api.accounting.types; + +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.databind.DeserializationContext; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.fasterxml.jackson.databind.deser.std.StdDeserializer; +import com.merge.api.core.ObjectMappers; +import java.io.IOException; +import java.util.Objects; + +@JsonDeserialize(using = InvoiceRequestType.Deserializer.class) +public final class InvoiceRequestType { + private final Object value; + + private final int type; + + private InvoiceRequestType(Object value, int type) { + this.value = value; + this.type = type; + } + + @JsonValue + public Object get() { + return this.value; + } + + @SuppressWarnings("unchecked") + public T visit(Visitor visitor) { + if (this.type == 0) { + return visitor.visit((InvoiceTypeEnum) this.value); + } else if (this.type == 1) { + return visitor.visit((String) this.value); + } + throw new IllegalStateException("Failed to visit value. This should never happen."); + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof InvoiceRequestType && equalTo((InvoiceRequestType) other); + } + + private boolean equalTo(InvoiceRequestType other) { + return value.equals(other.value); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.value); + } + + @java.lang.Override + public String toString() { + return this.value.toString(); + } + + public static InvoiceRequestType of(InvoiceTypeEnum value) { + return new InvoiceRequestType(value, 0); + } + + public static InvoiceRequestType of(String value) { + return new InvoiceRequestType(value, 1); + } + + public interface Visitor { + T visit(InvoiceTypeEnum value); + + T visit(String value); + } + + static final class Deserializer extends StdDeserializer { + Deserializer() { + super(InvoiceRequestType.class); + } + + @java.lang.Override + public InvoiceRequestType deserialize(JsonParser p, DeserializationContext context) throws IOException { + Object value = p.readValueAs(Object.class); + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, InvoiceTypeEnum.class)); + } catch (IllegalArgumentException e) { + } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, String.class)); + } catch (IllegalArgumentException e) { + } + throw new JsonParseException(p, "Failed to deserialize"); + } + } +} diff --git a/src/main/java/com/merge/api/accounting/types/InvoiceStatus.java b/src/main/java/com/merge/api/accounting/types/InvoiceStatus.java new file mode 100644 index 000000000..14eed0d1b --- /dev/null +++ b/src/main/java/com/merge/api/accounting/types/InvoiceStatus.java @@ -0,0 +1,95 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.merge.api.accounting.types; + +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.databind.DeserializationContext; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.fasterxml.jackson.databind.deser.std.StdDeserializer; +import com.merge.api.core.ObjectMappers; +import java.io.IOException; +import java.util.Objects; + +@JsonDeserialize(using = InvoiceStatus.Deserializer.class) +public final class InvoiceStatus { + private final Object value; + + private final int type; + + private InvoiceStatus(Object value, int type) { + this.value = value; + this.type = type; + } + + @JsonValue + public Object get() { + return this.value; + } + + @SuppressWarnings("unchecked") + public T visit(Visitor visitor) { + if (this.type == 0) { + return visitor.visit((InvoiceStatusEnum) this.value); + } else if (this.type == 1) { + return visitor.visit((String) this.value); + } + throw new IllegalStateException("Failed to visit value. This should never happen."); + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof InvoiceStatus && equalTo((InvoiceStatus) other); + } + + private boolean equalTo(InvoiceStatus other) { + return value.equals(other.value); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.value); + } + + @java.lang.Override + public String toString() { + return this.value.toString(); + } + + public static InvoiceStatus of(InvoiceStatusEnum value) { + return new InvoiceStatus(value, 0); + } + + public static InvoiceStatus of(String value) { + return new InvoiceStatus(value, 1); + } + + public interface Visitor { + T visit(InvoiceStatusEnum value); + + T visit(String value); + } + + static final class Deserializer extends StdDeserializer { + Deserializer() { + super(InvoiceStatus.class); + } + + @java.lang.Override + public InvoiceStatus deserialize(JsonParser p, DeserializationContext context) throws IOException { + Object value = p.readValueAs(Object.class); + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, InvoiceStatusEnum.class)); + } catch (IllegalArgumentException e) { + } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, String.class)); + } catch (IllegalArgumentException e) { + } + throw new JsonParseException(p, "Failed to deserialize"); + } + } +} diff --git a/src/main/java/com/merge/api/accounting/types/InvoicesLineItemsRemoteFieldClassesListRequest.java b/src/main/java/com/merge/api/accounting/types/InvoicesLineItemsRemoteFieldClassesListRequest.java index 7a895e627..e2a7b7513 100644 --- a/src/main/java/com/merge/api/accounting/types/InvoicesLineItemsRemoteFieldClassesListRequest.java +++ b/src/main/java/com/merge/api/accounting/types/InvoicesLineItemsRemoteFieldClassesListRequest.java @@ -30,6 +30,8 @@ public final class InvoicesLineItemsRemoteFieldClassesListRequest { private final Optional isCommonModelField; + private final Optional isCustom; + private final Optional pageSize; private final Map additionalProperties; @@ -40,6 +42,7 @@ private InvoicesLineItemsRemoteFieldClassesListRequest( Optional includeRemoteData, Optional includeShellData, Optional isCommonModelField, + Optional isCustom, Optional pageSize, Map additionalProperties) { this.cursor = cursor; @@ -47,6 +50,7 @@ private InvoicesLineItemsRemoteFieldClassesListRequest( this.includeRemoteData = includeRemoteData; this.includeShellData = includeShellData; this.isCommonModelField = isCommonModelField; + this.isCustom = isCustom; this.pageSize = pageSize; this.additionalProperties = additionalProperties; } @@ -91,6 +95,14 @@ public Optional getIsCommonModelField() { return isCommonModelField; } + /** + * @return If provided, will only return remote fields classes with this is_custom value + */ + @JsonProperty("is_custom") + public Optional getIsCustom() { + return isCustom; + } + /** * @return Number of results to return per page. */ @@ -117,6 +129,7 @@ private boolean equalTo(InvoicesLineItemsRemoteFieldClassesListRequest other) { && includeRemoteData.equals(other.includeRemoteData) && includeShellData.equals(other.includeShellData) && isCommonModelField.equals(other.isCommonModelField) + && isCustom.equals(other.isCustom) && pageSize.equals(other.pageSize); } @@ -128,6 +141,7 @@ public int hashCode() { this.includeRemoteData, this.includeShellData, this.isCommonModelField, + this.isCustom, this.pageSize); } @@ -152,6 +166,8 @@ public static final class Builder { private Optional isCommonModelField = Optional.empty(); + private Optional isCustom = Optional.empty(); + private Optional pageSize = Optional.empty(); @JsonAnySetter @@ -165,10 +181,14 @@ public Builder from(InvoicesLineItemsRemoteFieldClassesListRequest other) { includeRemoteData(other.getIncludeRemoteData()); includeShellData(other.getIncludeShellData()); isCommonModelField(other.getIsCommonModelField()); + isCustom(other.getIsCustom()); pageSize(other.getPageSize()); return this; } + /** + *

    The pagination cursor value.

    + */ @JsonSetter(value = "cursor", nulls = Nulls.SKIP) public Builder cursor(Optional cursor) { this.cursor = cursor; @@ -180,6 +200,9 @@ public Builder cursor(String cursor) { return this; } + /** + *

    Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

    + */ @JsonSetter(value = "include_deleted_data", nulls = Nulls.SKIP) public Builder includeDeletedData(Optional includeDeletedData) { this.includeDeletedData = includeDeletedData; @@ -191,6 +214,9 @@ public Builder includeDeletedData(Boolean includeDeletedData) { return this; } + /** + *

    Whether to include the original data Merge fetched from the third-party to produce these models.

    + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -202,6 +228,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

    Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

    + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; @@ -213,6 +242,9 @@ public Builder includeShellData(Boolean includeShellData) { return this; } + /** + *

    If provided, will only return remote field classes with this is_common_model_field value

    + */ @JsonSetter(value = "is_common_model_field", nulls = Nulls.SKIP) public Builder isCommonModelField(Optional isCommonModelField) { this.isCommonModelField = isCommonModelField; @@ -224,6 +256,23 @@ public Builder isCommonModelField(Boolean isCommonModelField) { return this; } + /** + *

    If provided, will only return remote fields classes with this is_custom value

    + */ + @JsonSetter(value = "is_custom", nulls = Nulls.SKIP) + public Builder isCustom(Optional isCustom) { + this.isCustom = isCustom; + return this; + } + + public Builder isCustom(Boolean isCustom) { + this.isCustom = Optional.ofNullable(isCustom); + return this; + } + + /** + *

    Number of results to return per page.

    + */ @JsonSetter(value = "page_size", nulls = Nulls.SKIP) public Builder pageSize(Optional pageSize) { this.pageSize = pageSize; @@ -242,6 +291,7 @@ public InvoicesLineItemsRemoteFieldClassesListRequest build() { includeRemoteData, includeShellData, isCommonModelField, + isCustom, pageSize, additionalProperties); } diff --git a/src/main/java/com/merge/api/accounting/types/InvoicesListRequest.java b/src/main/java/com/merge/api/accounting/types/InvoicesListRequest.java index 7a99b1f53..c11247b58 100644 --- a/src/main/java/com/merge/api/accounting/types/InvoicesListRequest.java +++ b/src/main/java/com/merge/api/accounting/types/InvoicesListRequest.java @@ -438,6 +438,9 @@ public Builder from(InvoicesListRequest other) { return this; } + /** + *

    Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.

    + */ @JsonSetter(value = "expand", nulls = Nulls.SKIP) public Builder expand(Optional> expand) { this.expand = expand; @@ -454,6 +457,9 @@ public Builder expand(InvoicesListRequestExpandItem expand) { return this; } + /** + *

    If provided, will only return invoices for this company.

    + */ @JsonSetter(value = "company_id", nulls = Nulls.SKIP) public Builder companyId(Optional companyId) { this.companyId = companyId; @@ -465,6 +471,9 @@ public Builder companyId(String companyId) { return this; } + /** + *

    If provided, will only return invoices for this contact.

    + */ @JsonSetter(value = "contact_id", nulls = Nulls.SKIP) public Builder contactId(Optional contactId) { this.contactId = contactId; @@ -476,6 +485,9 @@ public Builder contactId(String contactId) { return this; } + /** + *

    If provided, will only return objects created after this datetime.

    + */ @JsonSetter(value = "created_after", nulls = Nulls.SKIP) public Builder createdAfter(Optional createdAfter) { this.createdAfter = createdAfter; @@ -487,6 +499,9 @@ public Builder createdAfter(OffsetDateTime createdAfter) { return this; } + /** + *

    If provided, will only return objects created before this datetime.

    + */ @JsonSetter(value = "created_before", nulls = Nulls.SKIP) public Builder createdBefore(Optional createdBefore) { this.createdBefore = createdBefore; @@ -498,6 +513,9 @@ public Builder createdBefore(OffsetDateTime createdBefore) { return this; } + /** + *

    The pagination cursor value.

    + */ @JsonSetter(value = "cursor", nulls = Nulls.SKIP) public Builder cursor(Optional cursor) { this.cursor = cursor; @@ -509,6 +527,9 @@ public Builder cursor(String cursor) { return this; } + /** + *

    Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

    + */ @JsonSetter(value = "include_deleted_data", nulls = Nulls.SKIP) public Builder includeDeletedData(Optional includeDeletedData) { this.includeDeletedData = includeDeletedData; @@ -520,6 +541,9 @@ public Builder includeDeletedData(Boolean includeDeletedData) { return this; } + /** + *

    Whether to include the original data Merge fetched from the third-party to produce these models.

    + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -531,6 +555,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

    Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format.

    + */ @JsonSetter(value = "include_remote_fields", nulls = Nulls.SKIP) public Builder includeRemoteFields(Optional includeRemoteFields) { this.includeRemoteFields = includeRemoteFields; @@ -542,6 +569,9 @@ public Builder includeRemoteFields(Boolean includeRemoteFields) { return this; } + /** + *

    Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

    + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; @@ -553,6 +583,9 @@ public Builder includeShellData(Boolean includeShellData) { return this; } + /** + *

    If provided, will only return objects created after this datetime.

    + */ @JsonSetter(value = "issue_date_after", nulls = Nulls.SKIP) public Builder issueDateAfter(Optional issueDateAfter) { this.issueDateAfter = issueDateAfter; @@ -564,6 +597,9 @@ public Builder issueDateAfter(OffsetDateTime issueDateAfter) { return this; } + /** + *

    If provided, will only return objects created before this datetime.

    + */ @JsonSetter(value = "issue_date_before", nulls = Nulls.SKIP) public Builder issueDateBefore(Optional issueDateBefore) { this.issueDateBefore = issueDateBefore; @@ -575,6 +611,9 @@ public Builder issueDateBefore(OffsetDateTime issueDateBefore) { return this; } + /** + *

    If provided, only objects synced by Merge after this date time will be returned.

    + */ @JsonSetter(value = "modified_after", nulls = Nulls.SKIP) public Builder modifiedAfter(Optional modifiedAfter) { this.modifiedAfter = modifiedAfter; @@ -586,6 +625,9 @@ public Builder modifiedAfter(OffsetDateTime modifiedAfter) { return this; } + /** + *

    If provided, only objects synced by Merge before this date time will be returned.

    + */ @JsonSetter(value = "modified_before", nulls = Nulls.SKIP) public Builder modifiedBefore(Optional modifiedBefore) { this.modifiedBefore = modifiedBefore; @@ -597,6 +639,9 @@ public Builder modifiedBefore(OffsetDateTime modifiedBefore) { return this; } + /** + *

    If provided, will only return Invoices with this number.

    + */ @JsonSetter(value = "number", nulls = Nulls.SKIP) public Builder number(Optional number) { this.number = number; @@ -608,6 +653,9 @@ public Builder number(String number) { return this; } + /** + *

    Number of results to return per page.

    + */ @JsonSetter(value = "page_size", nulls = Nulls.SKIP) public Builder pageSize(Optional pageSize) { this.pageSize = pageSize; @@ -619,6 +667,9 @@ public Builder pageSize(Integer pageSize) { return this; } + /** + *

    Deprecated. Use show_enum_origins.

    + */ @JsonSetter(value = "remote_fields", nulls = Nulls.SKIP) public Builder remoteFields(Optional remoteFields) { this.remoteFields = remoteFields; @@ -630,6 +681,9 @@ public Builder remoteFields(String remoteFields) { return this; } + /** + *

    The API provider's ID for the given object.

    + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; @@ -641,6 +695,9 @@ public Builder remoteId(String remoteId) { return this; } + /** + *

    A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. Learn more

    + */ @JsonSetter(value = "show_enum_origins", nulls = Nulls.SKIP) public Builder showEnumOrigins(Optional showEnumOrigins) { this.showEnumOrigins = showEnumOrigins; @@ -652,6 +709,17 @@ public Builder showEnumOrigins(String showEnumOrigins) { return this; } + /** + *

    If provided, will only return Invoices with this status.

    + *
      + *
    • PAID - PAID
    • + *
    • DRAFT - DRAFT
    • + *
    • SUBMITTED - SUBMITTED
    • + *
    • PARTIALLY_PAID - PARTIALLY_PAID
    • + *
    • OPEN - OPEN
    • + *
    • VOID - VOID
    • + *
    + */ @JsonSetter(value = "status", nulls = Nulls.SKIP) public Builder status(Optional status) { this.status = status; @@ -663,6 +731,13 @@ public Builder status(InvoicesListRequestStatus status) { return this; } + /** + *

    If provided, will only return Invoices with this type.

    + *
      + *
    • ACCOUNTS_RECEIVABLE - ACCOUNTS_RECEIVABLE
    • + *
    • ACCOUNTS_PAYABLE - ACCOUNTS_PAYABLE
    • + *
    + */ @JsonSetter(value = "type", nulls = Nulls.SKIP) public Builder type(Optional type) { this.type = type; diff --git a/src/main/java/com/merge/api/accounting/types/InvoicesRemoteFieldClassesListRequest.java b/src/main/java/com/merge/api/accounting/types/InvoicesRemoteFieldClassesListRequest.java index 685970c2c..51a6fd8de 100644 --- a/src/main/java/com/merge/api/accounting/types/InvoicesRemoteFieldClassesListRequest.java +++ b/src/main/java/com/merge/api/accounting/types/InvoicesRemoteFieldClassesListRequest.java @@ -30,6 +30,8 @@ public final class InvoicesRemoteFieldClassesListRequest { private final Optional isCommonModelField; + private final Optional isCustom; + private final Optional pageSize; private final Map additionalProperties; @@ -40,6 +42,7 @@ private InvoicesRemoteFieldClassesListRequest( Optional includeRemoteData, Optional includeShellData, Optional isCommonModelField, + Optional isCustom, Optional pageSize, Map additionalProperties) { this.cursor = cursor; @@ -47,6 +50,7 @@ private InvoicesRemoteFieldClassesListRequest( this.includeRemoteData = includeRemoteData; this.includeShellData = includeShellData; this.isCommonModelField = isCommonModelField; + this.isCustom = isCustom; this.pageSize = pageSize; this.additionalProperties = additionalProperties; } @@ -91,6 +95,14 @@ public Optional getIsCommonModelField() { return isCommonModelField; } + /** + * @return If provided, will only return remote fields classes with this is_custom value + */ + @JsonProperty("is_custom") + public Optional getIsCustom() { + return isCustom; + } + /** * @return Number of results to return per page. */ @@ -117,6 +129,7 @@ private boolean equalTo(InvoicesRemoteFieldClassesListRequest other) { && includeRemoteData.equals(other.includeRemoteData) && includeShellData.equals(other.includeShellData) && isCommonModelField.equals(other.isCommonModelField) + && isCustom.equals(other.isCustom) && pageSize.equals(other.pageSize); } @@ -128,6 +141,7 @@ public int hashCode() { this.includeRemoteData, this.includeShellData, this.isCommonModelField, + this.isCustom, this.pageSize); } @@ -152,6 +166,8 @@ public static final class Builder { private Optional isCommonModelField = Optional.empty(); + private Optional isCustom = Optional.empty(); + private Optional pageSize = Optional.empty(); @JsonAnySetter @@ -165,10 +181,14 @@ public Builder from(InvoicesRemoteFieldClassesListRequest other) { includeRemoteData(other.getIncludeRemoteData()); includeShellData(other.getIncludeShellData()); isCommonModelField(other.getIsCommonModelField()); + isCustom(other.getIsCustom()); pageSize(other.getPageSize()); return this; } + /** + *

    The pagination cursor value.

    + */ @JsonSetter(value = "cursor", nulls = Nulls.SKIP) public Builder cursor(Optional cursor) { this.cursor = cursor; @@ -180,6 +200,9 @@ public Builder cursor(String cursor) { return this; } + /** + *

    Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

    + */ @JsonSetter(value = "include_deleted_data", nulls = Nulls.SKIP) public Builder includeDeletedData(Optional includeDeletedData) { this.includeDeletedData = includeDeletedData; @@ -191,6 +214,9 @@ public Builder includeDeletedData(Boolean includeDeletedData) { return this; } + /** + *

    Whether to include the original data Merge fetched from the third-party to produce these models.

    + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -202,6 +228,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

    Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

    + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; @@ -213,6 +242,9 @@ public Builder includeShellData(Boolean includeShellData) { return this; } + /** + *

    If provided, will only return remote field classes with this is_common_model_field value

    + */ @JsonSetter(value = "is_common_model_field", nulls = Nulls.SKIP) public Builder isCommonModelField(Optional isCommonModelField) { this.isCommonModelField = isCommonModelField; @@ -224,6 +256,23 @@ public Builder isCommonModelField(Boolean isCommonModelField) { return this; } + /** + *

    If provided, will only return remote fields classes with this is_custom value

    + */ + @JsonSetter(value = "is_custom", nulls = Nulls.SKIP) + public Builder isCustom(Optional isCustom) { + this.isCustom = isCustom; + return this; + } + + public Builder isCustom(Boolean isCustom) { + this.isCustom = Optional.ofNullable(isCustom); + return this; + } + + /** + *

    Number of results to return per page.

    + */ @JsonSetter(value = "page_size", nulls = Nulls.SKIP) public Builder pageSize(Optional pageSize) { this.pageSize = pageSize; @@ -242,6 +291,7 @@ public InvoicesRemoteFieldClassesListRequest build() { includeRemoteData, includeShellData, isCommonModelField, + isCustom, pageSize, additionalProperties); } diff --git a/src/main/java/com/merge/api/accounting/types/InvoicesRetrieveRequest.java b/src/main/java/com/merge/api/accounting/types/InvoicesRetrieveRequest.java index a8cf26b6f..b79fb3f20 100644 --- a/src/main/java/com/merge/api/accounting/types/InvoicesRetrieveRequest.java +++ b/src/main/java/com/merge/api/accounting/types/InvoicesRetrieveRequest.java @@ -170,6 +170,9 @@ public Builder from(InvoicesRetrieveRequest other) { return this; } + /** + *

    Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.

    + */ @JsonSetter(value = "expand", nulls = Nulls.SKIP) public Builder expand(Optional> expand) { this.expand = expand; @@ -186,6 +189,9 @@ public Builder expand(InvoicesRetrieveRequestExpandItem expand) { return this; } + /** + *

    Whether to include the original data Merge fetched from the third-party to produce these models.

    + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -197,6 +203,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

    Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format.

    + */ @JsonSetter(value = "include_remote_fields", nulls = Nulls.SKIP) public Builder includeRemoteFields(Optional includeRemoteFields) { this.includeRemoteFields = includeRemoteFields; @@ -208,6 +217,9 @@ public Builder includeRemoteFields(Boolean includeRemoteFields) { return this; } + /** + *

    Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

    + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; @@ -219,6 +231,9 @@ public Builder includeShellData(Boolean includeShellData) { return this; } + /** + *

    Deprecated. Use show_enum_origins.

    + */ @JsonSetter(value = "remote_fields", nulls = Nulls.SKIP) public Builder remoteFields(Optional remoteFields) { this.remoteFields = remoteFields; @@ -230,6 +245,9 @@ public Builder remoteFields(String remoteFields) { return this; } + /** + *

    A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. Learn more

    + */ @JsonSetter(value = "show_enum_origins", nulls = Nulls.SKIP) public Builder showEnumOrigins(Optional showEnumOrigins) { this.showEnumOrigins = showEnumOrigins; diff --git a/src/main/java/com/merge/api/accounting/types/Issue.java b/src/main/java/com/merge/api/accounting/types/Issue.java index b40ad40f5..f307b7d67 100644 --- a/src/main/java/com/merge/api/accounting/types/Issue.java +++ b/src/main/java/com/merge/api/accounting/types/Issue.java @@ -26,7 +26,7 @@ public final class Issue { private final Optional id; - private final Optional status; + private final Optional status; private final String errorDescription; @@ -44,7 +44,7 @@ public final class Issue { private Issue( Optional id, - Optional status, + Optional status, String errorDescription, Optional> endUser, Optional firstIncidentTime, @@ -76,7 +76,7 @@ public Optional getId() { * */ @JsonProperty("status") - public Optional getStatus() { + public Optional getStatus() { return status; } @@ -167,9 +167,16 @@ public interface _FinalStage { _FinalStage id(String id); - _FinalStage status(Optional status); + /** + *

    Status of the issue. Options: ('ONGOING', 'RESOLVED')

    + *
      + *
    • ONGOING - ONGOING
    • + *
    • RESOLVED - RESOLVED
    • + *
    + */ + _FinalStage status(Optional status); - _FinalStage status(IssueStatusEnum status); + _FinalStage status(IssueStatus status); _FinalStage endUser(Optional> endUser); @@ -206,7 +213,7 @@ public static final class Builder implements ErrorDescriptionStage, _FinalStage private Optional> endUser = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Optional id = Optional.empty(); @@ -309,14 +316,21 @@ public _FinalStage endUser(Optional> endUser) { * @return Reference to {@code this} so that method calls can be chained together. */ @java.lang.Override - public _FinalStage status(IssueStatusEnum status) { + public _FinalStage status(IssueStatus status) { this.status = Optional.ofNullable(status); return this; } + /** + *

    Status of the issue. Options: ('ONGOING', 'RESOLVED')

    + *
      + *
    • ONGOING - ONGOING
    • + *
    • RESOLVED - RESOLVED
    • + *
    + */ @java.lang.Override @JsonSetter(value = "status", nulls = Nulls.SKIP) - public _FinalStage status(Optional status) { + public _FinalStage status(Optional status) { this.status = status; return this; } diff --git a/src/main/java/com/merge/api/accounting/types/IssueStatus.java b/src/main/java/com/merge/api/accounting/types/IssueStatus.java new file mode 100644 index 000000000..3ea0325ba --- /dev/null +++ b/src/main/java/com/merge/api/accounting/types/IssueStatus.java @@ -0,0 +1,95 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.merge.api.accounting.types; + +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.databind.DeserializationContext; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.fasterxml.jackson.databind.deser.std.StdDeserializer; +import com.merge.api.core.ObjectMappers; +import java.io.IOException; +import java.util.Objects; + +@JsonDeserialize(using = IssueStatus.Deserializer.class) +public final class IssueStatus { + private final Object value; + + private final int type; + + private IssueStatus(Object value, int type) { + this.value = value; + this.type = type; + } + + @JsonValue + public Object get() { + return this.value; + } + + @SuppressWarnings("unchecked") + public T visit(Visitor visitor) { + if (this.type == 0) { + return visitor.visit((IssueStatusEnum) this.value); + } else if (this.type == 1) { + return visitor.visit((String) this.value); + } + throw new IllegalStateException("Failed to visit value. This should never happen."); + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof IssueStatus && equalTo((IssueStatus) other); + } + + private boolean equalTo(IssueStatus other) { + return value.equals(other.value); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.value); + } + + @java.lang.Override + public String toString() { + return this.value.toString(); + } + + public static IssueStatus of(IssueStatusEnum value) { + return new IssueStatus(value, 0); + } + + public static IssueStatus of(String value) { + return new IssueStatus(value, 1); + } + + public interface Visitor { + T visit(IssueStatusEnum value); + + T visit(String value); + } + + static final class Deserializer extends StdDeserializer { + Deserializer() { + super(IssueStatus.class); + } + + @java.lang.Override + public IssueStatus deserialize(JsonParser p, DeserializationContext context) throws IOException { + Object value = p.readValueAs(Object.class); + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, IssueStatusEnum.class)); + } catch (IllegalArgumentException e) { + } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, String.class)); + } catch (IllegalArgumentException e) { + } + throw new JsonParseException(p, "Failed to deserialize"); + } + } +} diff --git a/src/main/java/com/merge/api/accounting/types/IssuesListRequest.java b/src/main/java/com/merge/api/accounting/types/IssuesListRequest.java index 154ce0159..eb1b9428f 100644 --- a/src/main/java/com/merge/api/accounting/types/IssuesListRequest.java +++ b/src/main/java/com/merge/api/accounting/types/IssuesListRequest.java @@ -311,6 +311,9 @@ public Builder accountToken(String accountToken) { return this; } + /** + *

    The pagination cursor value.

    + */ @JsonSetter(value = "cursor", nulls = Nulls.SKIP) public Builder cursor(Optional cursor) { this.cursor = cursor; @@ -322,6 +325,9 @@ public Builder cursor(String cursor) { return this; } + /** + *

    If included, will only include issues whose most recent action occurred before this time

    + */ @JsonSetter(value = "end_date", nulls = Nulls.SKIP) public Builder endDate(Optional endDate) { this.endDate = endDate; @@ -344,6 +350,9 @@ public Builder endUserOrganizationName(String endUserOrganizationName) { return this; } + /** + *

    If provided, will only return issues whose first incident time was after this datetime.

    + */ @JsonSetter(value = "first_incident_time_after", nulls = Nulls.SKIP) public Builder firstIncidentTimeAfter(Optional firstIncidentTimeAfter) { this.firstIncidentTimeAfter = firstIncidentTimeAfter; @@ -355,6 +364,9 @@ public Builder firstIncidentTimeAfter(OffsetDateTime firstIncidentTimeAfter) { return this; } + /** + *

    If provided, will only return issues whose first incident time was before this datetime.

    + */ @JsonSetter(value = "first_incident_time_before", nulls = Nulls.SKIP) public Builder firstIncidentTimeBefore(Optional firstIncidentTimeBefore) { this.firstIncidentTimeBefore = firstIncidentTimeBefore; @@ -366,6 +378,9 @@ public Builder firstIncidentTimeBefore(OffsetDateTime firstIncidentTimeBefore) { return this; } + /** + *

    If true, will include muted issues

    + */ @JsonSetter(value = "include_muted", nulls = Nulls.SKIP) public Builder includeMuted(Optional includeMuted) { this.includeMuted = includeMuted; @@ -388,6 +403,9 @@ public Builder integrationName(String integrationName) { return this; } + /** + *

    If provided, will only return issues whose last incident time was after this datetime.

    + */ @JsonSetter(value = "last_incident_time_after", nulls = Nulls.SKIP) public Builder lastIncidentTimeAfter(Optional lastIncidentTimeAfter) { this.lastIncidentTimeAfter = lastIncidentTimeAfter; @@ -399,6 +417,9 @@ public Builder lastIncidentTimeAfter(OffsetDateTime lastIncidentTimeAfter) { return this; } + /** + *

    If provided, will only return issues whose last incident time was before this datetime.

    + */ @JsonSetter(value = "last_incident_time_before", nulls = Nulls.SKIP) public Builder lastIncidentTimeBefore(Optional lastIncidentTimeBefore) { this.lastIncidentTimeBefore = lastIncidentTimeBefore; @@ -410,6 +431,9 @@ public Builder lastIncidentTimeBefore(OffsetDateTime lastIncidentTimeBefore) { return this; } + /** + *

    If provided, will only include issues pertaining to the linked account passed in.

    + */ @JsonSetter(value = "linked_account_id", nulls = Nulls.SKIP) public Builder linkedAccountId(Optional linkedAccountId) { this.linkedAccountId = linkedAccountId; @@ -421,6 +445,9 @@ public Builder linkedAccountId(String linkedAccountId) { return this; } + /** + *

    Number of results to return per page.

    + */ @JsonSetter(value = "page_size", nulls = Nulls.SKIP) public Builder pageSize(Optional pageSize) { this.pageSize = pageSize; @@ -432,6 +459,9 @@ public Builder pageSize(Integer pageSize) { return this; } + /** + *

    If included, will only include issues whose most recent action occurred after this time

    + */ @JsonSetter(value = "start_date", nulls = Nulls.SKIP) public Builder startDate(Optional startDate) { this.startDate = startDate; @@ -443,6 +473,13 @@ public Builder startDate(String startDate) { return this; } + /** + *

    Status of the issue. Options: ('ONGOING', 'RESOLVED')

    + *
      + *
    • ONGOING - ONGOING
    • + *
    • RESOLVED - RESOLVED
    • + *
    + */ @JsonSetter(value = "status", nulls = Nulls.SKIP) public Builder status(Optional status) { this.status = status; diff --git a/src/main/java/com/merge/api/accounting/types/Item.java b/src/main/java/com/merge/api/accounting/types/Item.java index 975bbaf20..6e8bf096f 100644 --- a/src/main/java/com/merge/api/accounting/types/Item.java +++ b/src/main/java/com/merge/api/accounting/types/Item.java @@ -33,7 +33,9 @@ public final class Item { private final Optional name; - private final Optional status; + private final Optional status; + + private final Optional type; private final Optional unitPrice; @@ -65,7 +67,8 @@ private Item( Optional createdAt, Optional modifiedAt, Optional name, - Optional status, + Optional status, + Optional type, Optional unitPrice, Optional purchasePrice, Optional purchaseAccount, @@ -84,6 +87,7 @@ private Item( this.modifiedAt = modifiedAt; this.name = name; this.status = status; + this.type = type; this.unitPrice = unitPrice; this.purchasePrice = purchasePrice; this.purchaseAccount = purchaseAccount; @@ -143,10 +147,24 @@ public Optional getName() { * */ @JsonProperty("status") - public Optional getStatus() { + public Optional getStatus() { return status; } + /** + * @return The item's type. + *
      + *
    • INVENTORY - INVENTORY
    • + *
    • NON_INVENTORY - NON_INVENTORY
    • + *
    • SERVICE - SERVICE
    • + *
    • UNKNOWN - UNKNOWN
    • + *
    + */ + @JsonProperty("type") + public Optional getType() { + return type; + } + /** * @return The item's unit price. */ @@ -247,6 +265,7 @@ private boolean equalTo(Item other) { && modifiedAt.equals(other.modifiedAt) && name.equals(other.name) && status.equals(other.status) + && type.equals(other.type) && unitPrice.equals(other.unitPrice) && purchasePrice.equals(other.purchasePrice) && purchaseAccount.equals(other.purchaseAccount) @@ -269,6 +288,7 @@ public int hashCode() { this.modifiedAt, this.name, this.status, + this.type, this.unitPrice, this.purchasePrice, this.purchaseAccount, @@ -303,7 +323,9 @@ public static final class Builder { private Optional name = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); + + private Optional type = Optional.empty(); private Optional unitPrice = Optional.empty(); @@ -339,6 +361,7 @@ public Builder from(Item other) { modifiedAt(other.getModifiedAt()); name(other.getName()); status(other.getStatus()); + type(other.getType()); unitPrice(other.getUnitPrice()); purchasePrice(other.getPurchasePrice()); purchaseAccount(other.getPurchaseAccount()); @@ -364,6 +387,9 @@ public Builder id(String id) { return this; } + /** + *

    The third-party API ID of the matching object.

    + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; @@ -375,6 +401,9 @@ public Builder remoteId(String remoteId) { return this; } + /** + *

    The datetime that this object was created by Merge.

    + */ @JsonSetter(value = "created_at", nulls = Nulls.SKIP) public Builder createdAt(Optional createdAt) { this.createdAt = createdAt; @@ -386,6 +415,9 @@ public Builder createdAt(OffsetDateTime createdAt) { return this; } + /** + *

    The datetime that this object was modified by Merge.

    + */ @JsonSetter(value = "modified_at", nulls = Nulls.SKIP) public Builder modifiedAt(Optional modifiedAt) { this.modifiedAt = modifiedAt; @@ -397,6 +429,9 @@ public Builder modifiedAt(OffsetDateTime modifiedAt) { return this; } + /** + *

    The item's name.

    + */ @JsonSetter(value = "name", nulls = Nulls.SKIP) public Builder name(Optional name) { this.name = name; @@ -408,17 +443,47 @@ public Builder name(String name) { return this; } + /** + *

    The item's status.

    + *
      + *
    • ACTIVE - ACTIVE
    • + *
    • ARCHIVED - ARCHIVED
    • + *
    + */ @JsonSetter(value = "status", nulls = Nulls.SKIP) - public Builder status(Optional status) { + public Builder status(Optional status) { this.status = status; return this; } - public Builder status(Status7D1Enum status) { + public Builder status(ItemStatus status) { this.status = Optional.ofNullable(status); return this; } + /** + *

    The item's type.

    + *
      + *
    • INVENTORY - INVENTORY
    • + *
    • NON_INVENTORY - NON_INVENTORY
    • + *
    • SERVICE - SERVICE
    • + *
    • UNKNOWN - UNKNOWN
    • + *
    + */ + @JsonSetter(value = "type", nulls = Nulls.SKIP) + public Builder type(Optional type) { + this.type = type; + return this; + } + + public Builder type(ItemType type) { + this.type = Optional.ofNullable(type); + return this; + } + + /** + *

    The item's unit price.

    + */ @JsonSetter(value = "unit_price", nulls = Nulls.SKIP) public Builder unitPrice(Optional unitPrice) { this.unitPrice = unitPrice; @@ -430,6 +495,9 @@ public Builder unitPrice(Double unitPrice) { return this; } + /** + *

    The price at which the item is purchased from a vendor.

    + */ @JsonSetter(value = "purchase_price", nulls = Nulls.SKIP) public Builder purchasePrice(Optional purchasePrice) { this.purchasePrice = purchasePrice; @@ -441,6 +509,9 @@ public Builder purchasePrice(Double purchasePrice) { return this; } + /** + *

    References the default account used to record a purchase of the item.

    + */ @JsonSetter(value = "purchase_account", nulls = Nulls.SKIP) public Builder purchaseAccount(Optional purchaseAccount) { this.purchaseAccount = purchaseAccount; @@ -452,6 +523,9 @@ public Builder purchaseAccount(ItemPurchaseAccount purchaseAccount) { return this; } + /** + *

    References the default account used to record a sale.

    + */ @JsonSetter(value = "sales_account", nulls = Nulls.SKIP) public Builder salesAccount(Optional salesAccount) { this.salesAccount = salesAccount; @@ -463,6 +537,9 @@ public Builder salesAccount(ItemSalesAccount salesAccount) { return this; } + /** + *

    The company the item belongs to.

    + */ @JsonSetter(value = "company", nulls = Nulls.SKIP) public Builder company(Optional company) { this.company = company; @@ -474,6 +551,9 @@ public Builder company(ItemCompany company) { return this; } + /** + *

    The default purchase tax rate for this item.

    + */ @JsonSetter(value = "purchase_tax_rate", nulls = Nulls.SKIP) public Builder purchaseTaxRate(Optional purchaseTaxRate) { this.purchaseTaxRate = purchaseTaxRate; @@ -485,6 +565,9 @@ public Builder purchaseTaxRate(ItemPurchaseTaxRate purchaseTaxRate) { return this; } + /** + *

    The default sales tax rate for this item.

    + */ @JsonSetter(value = "sales_tax_rate", nulls = Nulls.SKIP) public Builder salesTaxRate(Optional salesTaxRate) { this.salesTaxRate = salesTaxRate; @@ -496,6 +579,9 @@ public Builder salesTaxRate(ItemSalesTaxRate salesTaxRate) { return this; } + /** + *

    When the third party's item note was updated.

    + */ @JsonSetter(value = "remote_updated_at", nulls = Nulls.SKIP) public Builder remoteUpdatedAt(Optional remoteUpdatedAt) { this.remoteUpdatedAt = remoteUpdatedAt; @@ -507,6 +593,9 @@ public Builder remoteUpdatedAt(OffsetDateTime remoteUpdatedAt) { return this; } + /** + *

    Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

    + */ @JsonSetter(value = "remote_was_deleted", nulls = Nulls.SKIP) public Builder remoteWasDeleted(Optional remoteWasDeleted) { this.remoteWasDeleted = remoteWasDeleted; @@ -548,6 +637,7 @@ public Item build() { modifiedAt, name, status, + type, unitPrice, purchasePrice, purchaseAccount, diff --git a/src/main/java/com/merge/api/accounting/types/ItemEndpointRequest.java b/src/main/java/com/merge/api/accounting/types/ItemEndpointRequest.java new file mode 100644 index 000000000..64ed1806b --- /dev/null +++ b/src/main/java/com/merge/api/accounting/types/ItemEndpointRequest.java @@ -0,0 +1,190 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.merge.api.accounting.types; + +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.merge.api.core.ObjectMappers; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import org.jetbrains.annotations.NotNull; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = ItemEndpointRequest.Builder.class) +public final class ItemEndpointRequest { + private final Optional isDebugMode; + + private final Optional runAsync; + + private final ItemRequestRequest model; + + private final Map additionalProperties; + + private ItemEndpointRequest( + Optional isDebugMode, + Optional runAsync, + ItemRequestRequest model, + Map additionalProperties) { + this.isDebugMode = isDebugMode; + this.runAsync = runAsync; + this.model = model; + this.additionalProperties = additionalProperties; + } + + /** + * @return Whether to include debug fields (such as log file links) in the response. + */ + @JsonProperty("is_debug_mode") + public Optional getIsDebugMode() { + return isDebugMode; + } + + /** + * @return Whether or not third-party updates should be run asynchronously. + */ + @JsonProperty("run_async") + public Optional getRunAsync() { + return runAsync; + } + + @JsonProperty("model") + public ItemRequestRequest getModel() { + return model; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof ItemEndpointRequest && equalTo((ItemEndpointRequest) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(ItemEndpointRequest other) { + return isDebugMode.equals(other.isDebugMode) && runAsync.equals(other.runAsync) && model.equals(other.model); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.isDebugMode, this.runAsync, this.model); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ModelStage builder() { + return new Builder(); + } + + public interface ModelStage { + _FinalStage model(@NotNull ItemRequestRequest model); + + Builder from(ItemEndpointRequest other); + } + + public interface _FinalStage { + ItemEndpointRequest build(); + + /** + *

    Whether to include debug fields (such as log file links) in the response.

    + */ + _FinalStage isDebugMode(Optional isDebugMode); + + _FinalStage isDebugMode(Boolean isDebugMode); + + /** + *

    Whether or not third-party updates should be run asynchronously.

    + */ + _FinalStage runAsync(Optional runAsync); + + _FinalStage runAsync(Boolean runAsync); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements ModelStage, _FinalStage { + private ItemRequestRequest model; + + private Optional runAsync = Optional.empty(); + + private Optional isDebugMode = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(ItemEndpointRequest other) { + isDebugMode(other.getIsDebugMode()); + runAsync(other.getRunAsync()); + model(other.getModel()); + return this; + } + + @java.lang.Override + @JsonSetter("model") + public _FinalStage model(@NotNull ItemRequestRequest model) { + this.model = model; + return this; + } + + /** + *

    Whether or not third-party updates should be run asynchronously.

    + * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage runAsync(Boolean runAsync) { + this.runAsync = Optional.ofNullable(runAsync); + return this; + } + + /** + *

    Whether or not third-party updates should be run asynchronously.

    + */ + @java.lang.Override + @JsonSetter(value = "run_async", nulls = Nulls.SKIP) + public _FinalStage runAsync(Optional runAsync) { + this.runAsync = runAsync; + return this; + } + + /** + *

    Whether to include debug fields (such as log file links) in the response.

    + * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage isDebugMode(Boolean isDebugMode) { + this.isDebugMode = Optional.ofNullable(isDebugMode); + return this; + } + + /** + *

    Whether to include debug fields (such as log file links) in the response.

    + */ + @java.lang.Override + @JsonSetter(value = "is_debug_mode", nulls = Nulls.SKIP) + public _FinalStage isDebugMode(Optional isDebugMode) { + this.isDebugMode = isDebugMode; + return this; + } + + @java.lang.Override + public ItemEndpointRequest build() { + return new ItemEndpointRequest(isDebugMode, runAsync, model, additionalProperties); + } + } +} diff --git a/src/main/java/com/merge/api/accounting/types/ItemRequestRequest.java b/src/main/java/com/merge/api/accounting/types/ItemRequestRequest.java new file mode 100644 index 000000000..1ff085658 --- /dev/null +++ b/src/main/java/com/merge/api/accounting/types/ItemRequestRequest.java @@ -0,0 +1,467 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.merge.api.accounting.types; + +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.JsonNode; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.merge.api.core.ObjectMappers; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = ItemRequestRequest.Builder.class) +public final class ItemRequestRequest { + private final Optional name; + + private final Optional status; + + private final Optional type; + + private final Optional unitPrice; + + private final Optional purchasePrice; + + private final Optional purchaseAccount; + + private final Optional salesAccount; + + private final Optional company; + + private final Optional purchaseTaxRate; + + private final Optional salesTaxRate; + + private final Optional> integrationParams; + + private final Optional> linkedAccountParams; + + private final Map additionalProperties; + + private ItemRequestRequest( + Optional name, + Optional status, + Optional type, + Optional unitPrice, + Optional purchasePrice, + Optional purchaseAccount, + Optional salesAccount, + Optional company, + Optional purchaseTaxRate, + Optional salesTaxRate, + Optional> integrationParams, + Optional> linkedAccountParams, + Map additionalProperties) { + this.name = name; + this.status = status; + this.type = type; + this.unitPrice = unitPrice; + this.purchasePrice = purchasePrice; + this.purchaseAccount = purchaseAccount; + this.salesAccount = salesAccount; + this.company = company; + this.purchaseTaxRate = purchaseTaxRate; + this.salesTaxRate = salesTaxRate; + this.integrationParams = integrationParams; + this.linkedAccountParams = linkedAccountParams; + this.additionalProperties = additionalProperties; + } + + /** + * @return The item's name. + */ + @JsonProperty("name") + public Optional getName() { + return name; + } + + /** + * @return The item's status. + *
      + *
    • ACTIVE - ACTIVE
    • + *
    • ARCHIVED - ARCHIVED
    • + *
    + */ + @JsonProperty("status") + public Optional getStatus() { + return status; + } + + /** + * @return The item's type. + *
      + *
    • INVENTORY - INVENTORY
    • + *
    • NON_INVENTORY - NON_INVENTORY
    • + *
    • SERVICE - SERVICE
    • + *
    • UNKNOWN - UNKNOWN
    • + *
    + */ + @JsonProperty("type") + public Optional getType() { + return type; + } + + /** + * @return The item's unit price. + */ + @JsonProperty("unit_price") + public Optional getUnitPrice() { + return unitPrice; + } + + /** + * @return The price at which the item is purchased from a vendor. + */ + @JsonProperty("purchase_price") + public Optional getPurchasePrice() { + return purchasePrice; + } + + /** + * @return References the default account used to record a purchase of the item. + */ + @JsonProperty("purchase_account") + public Optional getPurchaseAccount() { + return purchaseAccount; + } + + /** + * @return References the default account used to record a sale. + */ + @JsonProperty("sales_account") + public Optional getSalesAccount() { + return salesAccount; + } + + /** + * @return The company the item belongs to. + */ + @JsonProperty("company") + public Optional getCompany() { + return company; + } + + /** + * @return The default purchase tax rate for this item. + */ + @JsonProperty("purchase_tax_rate") + public Optional getPurchaseTaxRate() { + return purchaseTaxRate; + } + + /** + * @return The default sales tax rate for this item. + */ + @JsonProperty("sales_tax_rate") + public Optional getSalesTaxRate() { + return salesTaxRate; + } + + @JsonProperty("integration_params") + public Optional> getIntegrationParams() { + return integrationParams; + } + + @JsonProperty("linked_account_params") + public Optional> getLinkedAccountParams() { + return linkedAccountParams; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof ItemRequestRequest && equalTo((ItemRequestRequest) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(ItemRequestRequest other) { + return name.equals(other.name) + && status.equals(other.status) + && type.equals(other.type) + && unitPrice.equals(other.unitPrice) + && purchasePrice.equals(other.purchasePrice) + && purchaseAccount.equals(other.purchaseAccount) + && salesAccount.equals(other.salesAccount) + && company.equals(other.company) + && purchaseTaxRate.equals(other.purchaseTaxRate) + && salesTaxRate.equals(other.salesTaxRate) + && integrationParams.equals(other.integrationParams) + && linkedAccountParams.equals(other.linkedAccountParams); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.name, + this.status, + this.type, + this.unitPrice, + this.purchasePrice, + this.purchaseAccount, + this.salesAccount, + this.company, + this.purchaseTaxRate, + this.salesTaxRate, + this.integrationParams, + this.linkedAccountParams); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static Builder builder() { + return new Builder(); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder { + private Optional name = Optional.empty(); + + private Optional status = Optional.empty(); + + private Optional type = Optional.empty(); + + private Optional unitPrice = Optional.empty(); + + private Optional purchasePrice = Optional.empty(); + + private Optional purchaseAccount = Optional.empty(); + + private Optional salesAccount = Optional.empty(); + + private Optional company = Optional.empty(); + + private Optional purchaseTaxRate = Optional.empty(); + + private Optional salesTaxRate = Optional.empty(); + + private Optional> integrationParams = Optional.empty(); + + private Optional> linkedAccountParams = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(ItemRequestRequest other) { + name(other.getName()); + status(other.getStatus()); + type(other.getType()); + unitPrice(other.getUnitPrice()); + purchasePrice(other.getPurchasePrice()); + purchaseAccount(other.getPurchaseAccount()); + salesAccount(other.getSalesAccount()); + company(other.getCompany()); + purchaseTaxRate(other.getPurchaseTaxRate()); + salesTaxRate(other.getSalesTaxRate()); + integrationParams(other.getIntegrationParams()); + linkedAccountParams(other.getLinkedAccountParams()); + return this; + } + + /** + *

    The item's name.

    + */ + @JsonSetter(value = "name", nulls = Nulls.SKIP) + public Builder name(Optional name) { + this.name = name; + return this; + } + + public Builder name(String name) { + this.name = Optional.ofNullable(name); + return this; + } + + /** + *

    The item's status.

    + *
      + *
    • ACTIVE - ACTIVE
    • + *
    • ARCHIVED - ARCHIVED
    • + *
    + */ + @JsonSetter(value = "status", nulls = Nulls.SKIP) + public Builder status(Optional status) { + this.status = status; + return this; + } + + public Builder status(ItemRequestRequestStatus status) { + this.status = Optional.ofNullable(status); + return this; + } + + /** + *

    The item's type.

    + *
      + *
    • INVENTORY - INVENTORY
    • + *
    • NON_INVENTORY - NON_INVENTORY
    • + *
    • SERVICE - SERVICE
    • + *
    • UNKNOWN - UNKNOWN
    • + *
    + */ + @JsonSetter(value = "type", nulls = Nulls.SKIP) + public Builder type(Optional type) { + this.type = type; + return this; + } + + public Builder type(ItemRequestRequestType type) { + this.type = Optional.ofNullable(type); + return this; + } + + /** + *

    The item's unit price.

    + */ + @JsonSetter(value = "unit_price", nulls = Nulls.SKIP) + public Builder unitPrice(Optional unitPrice) { + this.unitPrice = unitPrice; + return this; + } + + public Builder unitPrice(Double unitPrice) { + this.unitPrice = Optional.ofNullable(unitPrice); + return this; + } + + /** + *

    The price at which the item is purchased from a vendor.

    + */ + @JsonSetter(value = "purchase_price", nulls = Nulls.SKIP) + public Builder purchasePrice(Optional purchasePrice) { + this.purchasePrice = purchasePrice; + return this; + } + + public Builder purchasePrice(Double purchasePrice) { + this.purchasePrice = Optional.ofNullable(purchasePrice); + return this; + } + + /** + *

    References the default account used to record a purchase of the item.

    + */ + @JsonSetter(value = "purchase_account", nulls = Nulls.SKIP) + public Builder purchaseAccount(Optional purchaseAccount) { + this.purchaseAccount = purchaseAccount; + return this; + } + + public Builder purchaseAccount(ItemRequestRequestPurchaseAccount purchaseAccount) { + this.purchaseAccount = Optional.ofNullable(purchaseAccount); + return this; + } + + /** + *

    References the default account used to record a sale.

    + */ + @JsonSetter(value = "sales_account", nulls = Nulls.SKIP) + public Builder salesAccount(Optional salesAccount) { + this.salesAccount = salesAccount; + return this; + } + + public Builder salesAccount(ItemRequestRequestSalesAccount salesAccount) { + this.salesAccount = Optional.ofNullable(salesAccount); + return this; + } + + /** + *

    The company the item belongs to.

    + */ + @JsonSetter(value = "company", nulls = Nulls.SKIP) + public Builder company(Optional company) { + this.company = company; + return this; + } + + public Builder company(ItemRequestRequestCompany company) { + this.company = Optional.ofNullable(company); + return this; + } + + /** + *

    The default purchase tax rate for this item.

    + */ + @JsonSetter(value = "purchase_tax_rate", nulls = Nulls.SKIP) + public Builder purchaseTaxRate(Optional purchaseTaxRate) { + this.purchaseTaxRate = purchaseTaxRate; + return this; + } + + public Builder purchaseTaxRate(ItemRequestRequestPurchaseTaxRate purchaseTaxRate) { + this.purchaseTaxRate = Optional.ofNullable(purchaseTaxRate); + return this; + } + + /** + *

    The default sales tax rate for this item.

    + */ + @JsonSetter(value = "sales_tax_rate", nulls = Nulls.SKIP) + public Builder salesTaxRate(Optional salesTaxRate) { + this.salesTaxRate = salesTaxRate; + return this; + } + + public Builder salesTaxRate(ItemRequestRequestSalesTaxRate salesTaxRate) { + this.salesTaxRate = Optional.ofNullable(salesTaxRate); + return this; + } + + @JsonSetter(value = "integration_params", nulls = Nulls.SKIP) + public Builder integrationParams(Optional> integrationParams) { + this.integrationParams = integrationParams; + return this; + } + + public Builder integrationParams(Map integrationParams) { + this.integrationParams = Optional.ofNullable(integrationParams); + return this; + } + + @JsonSetter(value = "linked_account_params", nulls = Nulls.SKIP) + public Builder linkedAccountParams(Optional> linkedAccountParams) { + this.linkedAccountParams = linkedAccountParams; + return this; + } + + public Builder linkedAccountParams(Map linkedAccountParams) { + this.linkedAccountParams = Optional.ofNullable(linkedAccountParams); + return this; + } + + public ItemRequestRequest build() { + return new ItemRequestRequest( + name, + status, + type, + unitPrice, + purchasePrice, + purchaseAccount, + salesAccount, + company, + purchaseTaxRate, + salesTaxRate, + integrationParams, + linkedAccountParams, + additionalProperties); + } + } +} diff --git a/src/main/java/com/merge/api/accounting/types/ItemRequestRequestCompany.java b/src/main/java/com/merge/api/accounting/types/ItemRequestRequestCompany.java new file mode 100644 index 000000000..27a97781e --- /dev/null +++ b/src/main/java/com/merge/api/accounting/types/ItemRequestRequestCompany.java @@ -0,0 +1,95 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.merge.api.accounting.types; + +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.databind.DeserializationContext; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.fasterxml.jackson.databind.deser.std.StdDeserializer; +import com.merge.api.core.ObjectMappers; +import java.io.IOException; +import java.util.Objects; + +@JsonDeserialize(using = ItemRequestRequestCompany.Deserializer.class) +public final class ItemRequestRequestCompany { + private final Object value; + + private final int type; + + private ItemRequestRequestCompany(Object value, int type) { + this.value = value; + this.type = type; + } + + @JsonValue + public Object get() { + return this.value; + } + + @SuppressWarnings("unchecked") + public T visit(Visitor visitor) { + if (this.type == 0) { + return visitor.visit((String) this.value); + } else if (this.type == 1) { + return visitor.visit((CompanyInfo) this.value); + } + throw new IllegalStateException("Failed to visit value. This should never happen."); + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof ItemRequestRequestCompany && equalTo((ItemRequestRequestCompany) other); + } + + private boolean equalTo(ItemRequestRequestCompany other) { + return value.equals(other.value); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.value); + } + + @java.lang.Override + public String toString() { + return this.value.toString(); + } + + public static ItemRequestRequestCompany of(String value) { + return new ItemRequestRequestCompany(value, 0); + } + + public static ItemRequestRequestCompany of(CompanyInfo value) { + return new ItemRequestRequestCompany(value, 1); + } + + public interface Visitor { + T visit(String value); + + T visit(CompanyInfo value); + } + + static final class Deserializer extends StdDeserializer { + Deserializer() { + super(ItemRequestRequestCompany.class); + } + + @java.lang.Override + public ItemRequestRequestCompany deserialize(JsonParser p, DeserializationContext context) throws IOException { + Object value = p.readValueAs(Object.class); + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, String.class)); + } catch (IllegalArgumentException e) { + } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, CompanyInfo.class)); + } catch (IllegalArgumentException e) { + } + throw new JsonParseException(p, "Failed to deserialize"); + } + } +} diff --git a/src/main/java/com/merge/api/accounting/types/ItemRequestRequestPurchaseAccount.java b/src/main/java/com/merge/api/accounting/types/ItemRequestRequestPurchaseAccount.java new file mode 100644 index 000000000..3b6b41bd6 --- /dev/null +++ b/src/main/java/com/merge/api/accounting/types/ItemRequestRequestPurchaseAccount.java @@ -0,0 +1,96 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.merge.api.accounting.types; + +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.databind.DeserializationContext; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.fasterxml.jackson.databind.deser.std.StdDeserializer; +import com.merge.api.core.ObjectMappers; +import java.io.IOException; +import java.util.Objects; + +@JsonDeserialize(using = ItemRequestRequestPurchaseAccount.Deserializer.class) +public final class ItemRequestRequestPurchaseAccount { + private final Object value; + + private final int type; + + private ItemRequestRequestPurchaseAccount(Object value, int type) { + this.value = value; + this.type = type; + } + + @JsonValue + public Object get() { + return this.value; + } + + @SuppressWarnings("unchecked") + public T visit(Visitor visitor) { + if (this.type == 0) { + return visitor.visit((String) this.value); + } else if (this.type == 1) { + return visitor.visit((Account) this.value); + } + throw new IllegalStateException("Failed to visit value. This should never happen."); + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof ItemRequestRequestPurchaseAccount && equalTo((ItemRequestRequestPurchaseAccount) other); + } + + private boolean equalTo(ItemRequestRequestPurchaseAccount other) { + return value.equals(other.value); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.value); + } + + @java.lang.Override + public String toString() { + return this.value.toString(); + } + + public static ItemRequestRequestPurchaseAccount of(String value) { + return new ItemRequestRequestPurchaseAccount(value, 0); + } + + public static ItemRequestRequestPurchaseAccount of(Account value) { + return new ItemRequestRequestPurchaseAccount(value, 1); + } + + public interface Visitor { + T visit(String value); + + T visit(Account value); + } + + static final class Deserializer extends StdDeserializer { + Deserializer() { + super(ItemRequestRequestPurchaseAccount.class); + } + + @java.lang.Override + public ItemRequestRequestPurchaseAccount deserialize(JsonParser p, DeserializationContext context) + throws IOException { + Object value = p.readValueAs(Object.class); + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, String.class)); + } catch (IllegalArgumentException e) { + } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, Account.class)); + } catch (IllegalArgumentException e) { + } + throw new JsonParseException(p, "Failed to deserialize"); + } + } +} diff --git a/src/main/java/com/merge/api/accounting/types/ItemRequestRequestPurchaseTaxRate.java b/src/main/java/com/merge/api/accounting/types/ItemRequestRequestPurchaseTaxRate.java new file mode 100644 index 000000000..8c14398a8 --- /dev/null +++ b/src/main/java/com/merge/api/accounting/types/ItemRequestRequestPurchaseTaxRate.java @@ -0,0 +1,96 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.merge.api.accounting.types; + +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.databind.DeserializationContext; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.fasterxml.jackson.databind.deser.std.StdDeserializer; +import com.merge.api.core.ObjectMappers; +import java.io.IOException; +import java.util.Objects; + +@JsonDeserialize(using = ItemRequestRequestPurchaseTaxRate.Deserializer.class) +public final class ItemRequestRequestPurchaseTaxRate { + private final Object value; + + private final int type; + + private ItemRequestRequestPurchaseTaxRate(Object value, int type) { + this.value = value; + this.type = type; + } + + @JsonValue + public Object get() { + return this.value; + } + + @SuppressWarnings("unchecked") + public T visit(Visitor visitor) { + if (this.type == 0) { + return visitor.visit((String) this.value); + } else if (this.type == 1) { + return visitor.visit((TaxRate) this.value); + } + throw new IllegalStateException("Failed to visit value. This should never happen."); + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof ItemRequestRequestPurchaseTaxRate && equalTo((ItemRequestRequestPurchaseTaxRate) other); + } + + private boolean equalTo(ItemRequestRequestPurchaseTaxRate other) { + return value.equals(other.value); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.value); + } + + @java.lang.Override + public String toString() { + return this.value.toString(); + } + + public static ItemRequestRequestPurchaseTaxRate of(String value) { + return new ItemRequestRequestPurchaseTaxRate(value, 0); + } + + public static ItemRequestRequestPurchaseTaxRate of(TaxRate value) { + return new ItemRequestRequestPurchaseTaxRate(value, 1); + } + + public interface Visitor { + T visit(String value); + + T visit(TaxRate value); + } + + static final class Deserializer extends StdDeserializer { + Deserializer() { + super(ItemRequestRequestPurchaseTaxRate.class); + } + + @java.lang.Override + public ItemRequestRequestPurchaseTaxRate deserialize(JsonParser p, DeserializationContext context) + throws IOException { + Object value = p.readValueAs(Object.class); + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, String.class)); + } catch (IllegalArgumentException e) { + } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, TaxRate.class)); + } catch (IllegalArgumentException e) { + } + throw new JsonParseException(p, "Failed to deserialize"); + } + } +} diff --git a/src/main/java/com/merge/api/accounting/types/ItemRequestRequestSalesAccount.java b/src/main/java/com/merge/api/accounting/types/ItemRequestRequestSalesAccount.java new file mode 100644 index 000000000..d551c8506 --- /dev/null +++ b/src/main/java/com/merge/api/accounting/types/ItemRequestRequestSalesAccount.java @@ -0,0 +1,96 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.merge.api.accounting.types; + +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.databind.DeserializationContext; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.fasterxml.jackson.databind.deser.std.StdDeserializer; +import com.merge.api.core.ObjectMappers; +import java.io.IOException; +import java.util.Objects; + +@JsonDeserialize(using = ItemRequestRequestSalesAccount.Deserializer.class) +public final class ItemRequestRequestSalesAccount { + private final Object value; + + private final int type; + + private ItemRequestRequestSalesAccount(Object value, int type) { + this.value = value; + this.type = type; + } + + @JsonValue + public Object get() { + return this.value; + } + + @SuppressWarnings("unchecked") + public T visit(Visitor visitor) { + if (this.type == 0) { + return visitor.visit((String) this.value); + } else if (this.type == 1) { + return visitor.visit((Account) this.value); + } + throw new IllegalStateException("Failed to visit value. This should never happen."); + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof ItemRequestRequestSalesAccount && equalTo((ItemRequestRequestSalesAccount) other); + } + + private boolean equalTo(ItemRequestRequestSalesAccount other) { + return value.equals(other.value); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.value); + } + + @java.lang.Override + public String toString() { + return this.value.toString(); + } + + public static ItemRequestRequestSalesAccount of(String value) { + return new ItemRequestRequestSalesAccount(value, 0); + } + + public static ItemRequestRequestSalesAccount of(Account value) { + return new ItemRequestRequestSalesAccount(value, 1); + } + + public interface Visitor { + T visit(String value); + + T visit(Account value); + } + + static final class Deserializer extends StdDeserializer { + Deserializer() { + super(ItemRequestRequestSalesAccount.class); + } + + @java.lang.Override + public ItemRequestRequestSalesAccount deserialize(JsonParser p, DeserializationContext context) + throws IOException { + Object value = p.readValueAs(Object.class); + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, String.class)); + } catch (IllegalArgumentException e) { + } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, Account.class)); + } catch (IllegalArgumentException e) { + } + throw new JsonParseException(p, "Failed to deserialize"); + } + } +} diff --git a/src/main/java/com/merge/api/accounting/types/ItemRequestRequestSalesTaxRate.java b/src/main/java/com/merge/api/accounting/types/ItemRequestRequestSalesTaxRate.java new file mode 100644 index 000000000..277f999cc --- /dev/null +++ b/src/main/java/com/merge/api/accounting/types/ItemRequestRequestSalesTaxRate.java @@ -0,0 +1,96 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.merge.api.accounting.types; + +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.databind.DeserializationContext; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.fasterxml.jackson.databind.deser.std.StdDeserializer; +import com.merge.api.core.ObjectMappers; +import java.io.IOException; +import java.util.Objects; + +@JsonDeserialize(using = ItemRequestRequestSalesTaxRate.Deserializer.class) +public final class ItemRequestRequestSalesTaxRate { + private final Object value; + + private final int type; + + private ItemRequestRequestSalesTaxRate(Object value, int type) { + this.value = value; + this.type = type; + } + + @JsonValue + public Object get() { + return this.value; + } + + @SuppressWarnings("unchecked") + public T visit(Visitor visitor) { + if (this.type == 0) { + return visitor.visit((String) this.value); + } else if (this.type == 1) { + return visitor.visit((TaxRate) this.value); + } + throw new IllegalStateException("Failed to visit value. This should never happen."); + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof ItemRequestRequestSalesTaxRate && equalTo((ItemRequestRequestSalesTaxRate) other); + } + + private boolean equalTo(ItemRequestRequestSalesTaxRate other) { + return value.equals(other.value); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.value); + } + + @java.lang.Override + public String toString() { + return this.value.toString(); + } + + public static ItemRequestRequestSalesTaxRate of(String value) { + return new ItemRequestRequestSalesTaxRate(value, 0); + } + + public static ItemRequestRequestSalesTaxRate of(TaxRate value) { + return new ItemRequestRequestSalesTaxRate(value, 1); + } + + public interface Visitor { + T visit(String value); + + T visit(TaxRate value); + } + + static final class Deserializer extends StdDeserializer { + Deserializer() { + super(ItemRequestRequestSalesTaxRate.class); + } + + @java.lang.Override + public ItemRequestRequestSalesTaxRate deserialize(JsonParser p, DeserializationContext context) + throws IOException { + Object value = p.readValueAs(Object.class); + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, String.class)); + } catch (IllegalArgumentException e) { + } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, TaxRate.class)); + } catch (IllegalArgumentException e) { + } + throw new JsonParseException(p, "Failed to deserialize"); + } + } +} diff --git a/src/main/java/com/merge/api/accounting/types/ItemRequestRequestStatus.java b/src/main/java/com/merge/api/accounting/types/ItemRequestRequestStatus.java new file mode 100644 index 000000000..575751cd6 --- /dev/null +++ b/src/main/java/com/merge/api/accounting/types/ItemRequestRequestStatus.java @@ -0,0 +1,95 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.merge.api.accounting.types; + +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.databind.DeserializationContext; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.fasterxml.jackson.databind.deser.std.StdDeserializer; +import com.merge.api.core.ObjectMappers; +import java.io.IOException; +import java.util.Objects; + +@JsonDeserialize(using = ItemRequestRequestStatus.Deserializer.class) +public final class ItemRequestRequestStatus { + private final Object value; + + private final int type; + + private ItemRequestRequestStatus(Object value, int type) { + this.value = value; + this.type = type; + } + + @JsonValue + public Object get() { + return this.value; + } + + @SuppressWarnings("unchecked") + public T visit(Visitor visitor) { + if (this.type == 0) { + return visitor.visit((Status7D1Enum) this.value); + } else if (this.type == 1) { + return visitor.visit((String) this.value); + } + throw new IllegalStateException("Failed to visit value. This should never happen."); + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof ItemRequestRequestStatus && equalTo((ItemRequestRequestStatus) other); + } + + private boolean equalTo(ItemRequestRequestStatus other) { + return value.equals(other.value); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.value); + } + + @java.lang.Override + public String toString() { + return this.value.toString(); + } + + public static ItemRequestRequestStatus of(Status7D1Enum value) { + return new ItemRequestRequestStatus(value, 0); + } + + public static ItemRequestRequestStatus of(String value) { + return new ItemRequestRequestStatus(value, 1); + } + + public interface Visitor { + T visit(Status7D1Enum value); + + T visit(String value); + } + + static final class Deserializer extends StdDeserializer { + Deserializer() { + super(ItemRequestRequestStatus.class); + } + + @java.lang.Override + public ItemRequestRequestStatus deserialize(JsonParser p, DeserializationContext context) throws IOException { + Object value = p.readValueAs(Object.class); + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, Status7D1Enum.class)); + } catch (IllegalArgumentException e) { + } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, String.class)); + } catch (IllegalArgumentException e) { + } + throw new JsonParseException(p, "Failed to deserialize"); + } + } +} diff --git a/src/main/java/com/merge/api/accounting/types/ItemRequestRequestType.java b/src/main/java/com/merge/api/accounting/types/ItemRequestRequestType.java new file mode 100644 index 000000000..c20835b14 --- /dev/null +++ b/src/main/java/com/merge/api/accounting/types/ItemRequestRequestType.java @@ -0,0 +1,95 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.merge.api.accounting.types; + +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.databind.DeserializationContext; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.fasterxml.jackson.databind.deser.std.StdDeserializer; +import com.merge.api.core.ObjectMappers; +import java.io.IOException; +import java.util.Objects; + +@JsonDeserialize(using = ItemRequestRequestType.Deserializer.class) +public final class ItemRequestRequestType { + private final Object value; + + private final int type; + + private ItemRequestRequestType(Object value, int type) { + this.value = value; + this.type = type; + } + + @JsonValue + public Object get() { + return this.value; + } + + @SuppressWarnings("unchecked") + public T visit(Visitor visitor) { + if (this.type == 0) { + return visitor.visit((Type2BbEnum) this.value); + } else if (this.type == 1) { + return visitor.visit((String) this.value); + } + throw new IllegalStateException("Failed to visit value. This should never happen."); + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof ItemRequestRequestType && equalTo((ItemRequestRequestType) other); + } + + private boolean equalTo(ItemRequestRequestType other) { + return value.equals(other.value); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.value); + } + + @java.lang.Override + public String toString() { + return this.value.toString(); + } + + public static ItemRequestRequestType of(Type2BbEnum value) { + return new ItemRequestRequestType(value, 0); + } + + public static ItemRequestRequestType of(String value) { + return new ItemRequestRequestType(value, 1); + } + + public interface Visitor { + T visit(Type2BbEnum value); + + T visit(String value); + } + + static final class Deserializer extends StdDeserializer { + Deserializer() { + super(ItemRequestRequestType.class); + } + + @java.lang.Override + public ItemRequestRequestType deserialize(JsonParser p, DeserializationContext context) throws IOException { + Object value = p.readValueAs(Object.class); + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, Type2BbEnum.class)); + } catch (IllegalArgumentException e) { + } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, String.class)); + } catch (IllegalArgumentException e) { + } + throw new JsonParseException(p, "Failed to deserialize"); + } + } +} diff --git a/src/main/java/com/merge/api/accounting/types/ItemResponse.java b/src/main/java/com/merge/api/accounting/types/ItemResponse.java new file mode 100644 index 000000000..bf228a7ea --- /dev/null +++ b/src/main/java/com/merge/api/accounting/types/ItemResponse.java @@ -0,0 +1,216 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.merge.api.accounting.types; + +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.merge.api.core.ObjectMappers; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import org.jetbrains.annotations.NotNull; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = ItemResponse.Builder.class) +public final class ItemResponse { + private final Item model; + + private final List warnings; + + private final List errors; + + private final Optional> logs; + + private final Map additionalProperties; + + private ItemResponse( + Item model, + List warnings, + List errors, + Optional> logs, + Map additionalProperties) { + this.model = model; + this.warnings = warnings; + this.errors = errors; + this.logs = logs; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("model") + public Item getModel() { + return model; + } + + @JsonProperty("warnings") + public List getWarnings() { + return warnings; + } + + @JsonProperty("errors") + public List getErrors() { + return errors; + } + + @JsonProperty("logs") + public Optional> getLogs() { + return logs; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof ItemResponse && equalTo((ItemResponse) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(ItemResponse other) { + return model.equals(other.model) + && warnings.equals(other.warnings) + && errors.equals(other.errors) + && logs.equals(other.logs); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.model, this.warnings, this.errors, this.logs); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ModelStage builder() { + return new Builder(); + } + + public interface ModelStage { + _FinalStage model(@NotNull Item model); + + Builder from(ItemResponse other); + } + + public interface _FinalStage { + ItemResponse build(); + + _FinalStage warnings(List warnings); + + _FinalStage addWarnings(WarningValidationProblem warnings); + + _FinalStage addAllWarnings(List warnings); + + _FinalStage errors(List errors); + + _FinalStage addErrors(ErrorValidationProblem errors); + + _FinalStage addAllErrors(List errors); + + _FinalStage logs(Optional> logs); + + _FinalStage logs(List logs); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements ModelStage, _FinalStage { + private Item model; + + private Optional> logs = Optional.empty(); + + private List errors = new ArrayList<>(); + + private List warnings = new ArrayList<>(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(ItemResponse other) { + model(other.getModel()); + warnings(other.getWarnings()); + errors(other.getErrors()); + logs(other.getLogs()); + return this; + } + + @java.lang.Override + @JsonSetter("model") + public _FinalStage model(@NotNull Item model) { + this.model = model; + return this; + } + + @java.lang.Override + public _FinalStage logs(List logs) { + this.logs = Optional.ofNullable(logs); + return this; + } + + @java.lang.Override + @JsonSetter(value = "logs", nulls = Nulls.SKIP) + public _FinalStage logs(Optional> logs) { + this.logs = logs; + return this; + } + + @java.lang.Override + public _FinalStage addAllErrors(List errors) { + this.errors.addAll(errors); + return this; + } + + @java.lang.Override + public _FinalStage addErrors(ErrorValidationProblem errors) { + this.errors.add(errors); + return this; + } + + @java.lang.Override + @JsonSetter(value = "errors", nulls = Nulls.SKIP) + public _FinalStage errors(List errors) { + this.errors.clear(); + this.errors.addAll(errors); + return this; + } + + @java.lang.Override + public _FinalStage addAllWarnings(List warnings) { + this.warnings.addAll(warnings); + return this; + } + + @java.lang.Override + public _FinalStage addWarnings(WarningValidationProblem warnings) { + this.warnings.add(warnings); + return this; + } + + @java.lang.Override + @JsonSetter(value = "warnings", nulls = Nulls.SKIP) + public _FinalStage warnings(List warnings) { + this.warnings.clear(); + this.warnings.addAll(warnings); + return this; + } + + @java.lang.Override + public ItemResponse build() { + return new ItemResponse(model, warnings, errors, logs, additionalProperties); + } + } +} diff --git a/src/main/java/com/merge/api/accounting/types/ItemStatus.java b/src/main/java/com/merge/api/accounting/types/ItemStatus.java new file mode 100644 index 000000000..f8aedebe0 --- /dev/null +++ b/src/main/java/com/merge/api/accounting/types/ItemStatus.java @@ -0,0 +1,95 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.merge.api.accounting.types; + +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.databind.DeserializationContext; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.fasterxml.jackson.databind.deser.std.StdDeserializer; +import com.merge.api.core.ObjectMappers; +import java.io.IOException; +import java.util.Objects; + +@JsonDeserialize(using = ItemStatus.Deserializer.class) +public final class ItemStatus { + private final Object value; + + private final int type; + + private ItemStatus(Object value, int type) { + this.value = value; + this.type = type; + } + + @JsonValue + public Object get() { + return this.value; + } + + @SuppressWarnings("unchecked") + public T visit(Visitor visitor) { + if (this.type == 0) { + return visitor.visit((Status7D1Enum) this.value); + } else if (this.type == 1) { + return visitor.visit((String) this.value); + } + throw new IllegalStateException("Failed to visit value. This should never happen."); + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof ItemStatus && equalTo((ItemStatus) other); + } + + private boolean equalTo(ItemStatus other) { + return value.equals(other.value); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.value); + } + + @java.lang.Override + public String toString() { + return this.value.toString(); + } + + public static ItemStatus of(Status7D1Enum value) { + return new ItemStatus(value, 0); + } + + public static ItemStatus of(String value) { + return new ItemStatus(value, 1); + } + + public interface Visitor { + T visit(Status7D1Enum value); + + T visit(String value); + } + + static final class Deserializer extends StdDeserializer { + Deserializer() { + super(ItemStatus.class); + } + + @java.lang.Override + public ItemStatus deserialize(JsonParser p, DeserializationContext context) throws IOException { + Object value = p.readValueAs(Object.class); + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, Status7D1Enum.class)); + } catch (IllegalArgumentException e) { + } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, String.class)); + } catch (IllegalArgumentException e) { + } + throw new JsonParseException(p, "Failed to deserialize"); + } + } +} diff --git a/src/main/java/com/merge/api/accounting/types/ItemType.java b/src/main/java/com/merge/api/accounting/types/ItemType.java new file mode 100644 index 000000000..e86e5bf3e --- /dev/null +++ b/src/main/java/com/merge/api/accounting/types/ItemType.java @@ -0,0 +1,95 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.merge.api.accounting.types; + +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.databind.DeserializationContext; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.fasterxml.jackson.databind.deser.std.StdDeserializer; +import com.merge.api.core.ObjectMappers; +import java.io.IOException; +import java.util.Objects; + +@JsonDeserialize(using = ItemType.Deserializer.class) +public final class ItemType { + private final Object value; + + private final int type; + + private ItemType(Object value, int type) { + this.value = value; + this.type = type; + } + + @JsonValue + public Object get() { + return this.value; + } + + @SuppressWarnings("unchecked") + public T visit(Visitor visitor) { + if (this.type == 0) { + return visitor.visit((Type2BbEnum) this.value); + } else if (this.type == 1) { + return visitor.visit((String) this.value); + } + throw new IllegalStateException("Failed to visit value. This should never happen."); + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof ItemType && equalTo((ItemType) other); + } + + private boolean equalTo(ItemType other) { + return value.equals(other.value); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.value); + } + + @java.lang.Override + public String toString() { + return this.value.toString(); + } + + public static ItemType of(Type2BbEnum value) { + return new ItemType(value, 0); + } + + public static ItemType of(String value) { + return new ItemType(value, 1); + } + + public interface Visitor { + T visit(Type2BbEnum value); + + T visit(String value); + } + + static final class Deserializer extends StdDeserializer { + Deserializer() { + super(ItemType.class); + } + + @java.lang.Override + public ItemType deserialize(JsonParser p, DeserializationContext context) throws IOException { + Object value = p.readValueAs(Object.class); + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, Type2BbEnum.class)); + } catch (IllegalArgumentException e) { + } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, String.class)); + } catch (IllegalArgumentException e) { + } + throw new JsonParseException(p, "Failed to deserialize"); + } + } +} diff --git a/src/main/java/com/merge/api/accounting/types/ItemsListRequest.java b/src/main/java/com/merge/api/accounting/types/ItemsListRequest.java index 655dcfc8e..717195b53 100644 --- a/src/main/java/com/merge/api/accounting/types/ItemsListRequest.java +++ b/src/main/java/com/merge/api/accounting/types/ItemsListRequest.java @@ -307,6 +307,9 @@ public Builder from(ItemsListRequest other) { return this; } + /** + *

    Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.

    + */ @JsonSetter(value = "expand", nulls = Nulls.SKIP) public Builder expand(Optional> expand) { this.expand = expand; @@ -323,6 +326,9 @@ public Builder expand(ItemsListRequestExpandItem expand) { return this; } + /** + *

    If provided, will only return items for this company.

    + */ @JsonSetter(value = "company_id", nulls = Nulls.SKIP) public Builder companyId(Optional companyId) { this.companyId = companyId; @@ -334,6 +340,9 @@ public Builder companyId(String companyId) { return this; } + /** + *

    If provided, will only return objects created after this datetime.

    + */ @JsonSetter(value = "created_after", nulls = Nulls.SKIP) public Builder createdAfter(Optional createdAfter) { this.createdAfter = createdAfter; @@ -345,6 +354,9 @@ public Builder createdAfter(OffsetDateTime createdAfter) { return this; } + /** + *

    If provided, will only return objects created before this datetime.

    + */ @JsonSetter(value = "created_before", nulls = Nulls.SKIP) public Builder createdBefore(Optional createdBefore) { this.createdBefore = createdBefore; @@ -356,6 +368,9 @@ public Builder createdBefore(OffsetDateTime createdBefore) { return this; } + /** + *

    The pagination cursor value.

    + */ @JsonSetter(value = "cursor", nulls = Nulls.SKIP) public Builder cursor(Optional cursor) { this.cursor = cursor; @@ -367,6 +382,9 @@ public Builder cursor(String cursor) { return this; } + /** + *

    Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

    + */ @JsonSetter(value = "include_deleted_data", nulls = Nulls.SKIP) public Builder includeDeletedData(Optional includeDeletedData) { this.includeDeletedData = includeDeletedData; @@ -378,6 +396,9 @@ public Builder includeDeletedData(Boolean includeDeletedData) { return this; } + /** + *

    Whether to include the original data Merge fetched from the third-party to produce these models.

    + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -389,6 +410,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

    Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

    + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; @@ -400,6 +424,9 @@ public Builder includeShellData(Boolean includeShellData) { return this; } + /** + *

    If provided, only objects synced by Merge after this date time will be returned.

    + */ @JsonSetter(value = "modified_after", nulls = Nulls.SKIP) public Builder modifiedAfter(Optional modifiedAfter) { this.modifiedAfter = modifiedAfter; @@ -411,6 +438,9 @@ public Builder modifiedAfter(OffsetDateTime modifiedAfter) { return this; } + /** + *

    If provided, only objects synced by Merge before this date time will be returned.

    + */ @JsonSetter(value = "modified_before", nulls = Nulls.SKIP) public Builder modifiedBefore(Optional modifiedBefore) { this.modifiedBefore = modifiedBefore; @@ -422,6 +452,9 @@ public Builder modifiedBefore(OffsetDateTime modifiedBefore) { return this; } + /** + *

    Number of results to return per page.

    + */ @JsonSetter(value = "page_size", nulls = Nulls.SKIP) public Builder pageSize(Optional pageSize) { this.pageSize = pageSize; @@ -433,6 +466,9 @@ public Builder pageSize(Integer pageSize) { return this; } + /** + *

    Deprecated. Use show_enum_origins.

    + */ @JsonSetter(value = "remote_fields", nulls = Nulls.SKIP) public Builder remoteFields(Optional remoteFields) { this.remoteFields = remoteFields; @@ -444,6 +480,9 @@ public Builder remoteFields(String remoteFields) { return this; } + /** + *

    The API provider's ID for the given object.

    + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; @@ -455,6 +494,9 @@ public Builder remoteId(String remoteId) { return this; } + /** + *

    A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. Learn more

    + */ @JsonSetter(value = "show_enum_origins", nulls = Nulls.SKIP) public Builder showEnumOrigins(Optional showEnumOrigins) { this.showEnumOrigins = showEnumOrigins; diff --git a/src/main/java/com/merge/api/accounting/types/ItemsRetrieveRequest.java b/src/main/java/com/merge/api/accounting/types/ItemsRetrieveRequest.java index 43ac4857d..1af183b67 100644 --- a/src/main/java/com/merge/api/accounting/types/ItemsRetrieveRequest.java +++ b/src/main/java/com/merge/api/accounting/types/ItemsRetrieveRequest.java @@ -149,6 +149,9 @@ public Builder from(ItemsRetrieveRequest other) { return this; } + /** + *

    Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.

    + */ @JsonSetter(value = "expand", nulls = Nulls.SKIP) public Builder expand(Optional> expand) { this.expand = expand; @@ -165,6 +168,9 @@ public Builder expand(ItemsRetrieveRequestExpandItem expand) { return this; } + /** + *

    Whether to include the original data Merge fetched from the third-party to produce these models.

    + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -176,6 +182,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

    Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

    + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; @@ -187,6 +196,9 @@ public Builder includeShellData(Boolean includeShellData) { return this; } + /** + *

    Deprecated. Use show_enum_origins.

    + */ @JsonSetter(value = "remote_fields", nulls = Nulls.SKIP) public Builder remoteFields(Optional remoteFields) { this.remoteFields = remoteFields; @@ -198,6 +210,9 @@ public Builder remoteFields(String remoteFields) { return this; } + /** + *

    A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. Learn more

    + */ @JsonSetter(value = "show_enum_origins", nulls = Nulls.SKIP) public Builder showEnumOrigins(Optional showEnumOrigins) { this.showEnumOrigins = showEnumOrigins; diff --git a/src/main/java/com/merge/api/accounting/types/JournalEntriesLinesRemoteFieldClassesListRequest.java b/src/main/java/com/merge/api/accounting/types/JournalEntriesLinesRemoteFieldClassesListRequest.java index a02c8bfff..6085e22de 100644 --- a/src/main/java/com/merge/api/accounting/types/JournalEntriesLinesRemoteFieldClassesListRequest.java +++ b/src/main/java/com/merge/api/accounting/types/JournalEntriesLinesRemoteFieldClassesListRequest.java @@ -30,6 +30,8 @@ public final class JournalEntriesLinesRemoteFieldClassesListRequest { private final Optional isCommonModelField; + private final Optional isCustom; + private final Optional pageSize; private final Map additionalProperties; @@ -40,6 +42,7 @@ private JournalEntriesLinesRemoteFieldClassesListRequest( Optional includeRemoteData, Optional includeShellData, Optional isCommonModelField, + Optional isCustom, Optional pageSize, Map additionalProperties) { this.cursor = cursor; @@ -47,6 +50,7 @@ private JournalEntriesLinesRemoteFieldClassesListRequest( this.includeRemoteData = includeRemoteData; this.includeShellData = includeShellData; this.isCommonModelField = isCommonModelField; + this.isCustom = isCustom; this.pageSize = pageSize; this.additionalProperties = additionalProperties; } @@ -91,6 +95,14 @@ public Optional getIsCommonModelField() { return isCommonModelField; } + /** + * @return If provided, will only return remote fields classes with this is_custom value + */ + @JsonProperty("is_custom") + public Optional getIsCustom() { + return isCustom; + } + /** * @return Number of results to return per page. */ @@ -117,6 +129,7 @@ private boolean equalTo(JournalEntriesLinesRemoteFieldClassesListRequest other) && includeRemoteData.equals(other.includeRemoteData) && includeShellData.equals(other.includeShellData) && isCommonModelField.equals(other.isCommonModelField) + && isCustom.equals(other.isCustom) && pageSize.equals(other.pageSize); } @@ -128,6 +141,7 @@ public int hashCode() { this.includeRemoteData, this.includeShellData, this.isCommonModelField, + this.isCustom, this.pageSize); } @@ -152,6 +166,8 @@ public static final class Builder { private Optional isCommonModelField = Optional.empty(); + private Optional isCustom = Optional.empty(); + private Optional pageSize = Optional.empty(); @JsonAnySetter @@ -165,10 +181,14 @@ public Builder from(JournalEntriesLinesRemoteFieldClassesListRequest other) { includeRemoteData(other.getIncludeRemoteData()); includeShellData(other.getIncludeShellData()); isCommonModelField(other.getIsCommonModelField()); + isCustom(other.getIsCustom()); pageSize(other.getPageSize()); return this; } + /** + *

    The pagination cursor value.

    + */ @JsonSetter(value = "cursor", nulls = Nulls.SKIP) public Builder cursor(Optional cursor) { this.cursor = cursor; @@ -180,6 +200,9 @@ public Builder cursor(String cursor) { return this; } + /** + *

    Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

    + */ @JsonSetter(value = "include_deleted_data", nulls = Nulls.SKIP) public Builder includeDeletedData(Optional includeDeletedData) { this.includeDeletedData = includeDeletedData; @@ -191,6 +214,9 @@ public Builder includeDeletedData(Boolean includeDeletedData) { return this; } + /** + *

    Whether to include the original data Merge fetched from the third-party to produce these models.

    + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -202,6 +228,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

    Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

    + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; @@ -213,6 +242,9 @@ public Builder includeShellData(Boolean includeShellData) { return this; } + /** + *

    If provided, will only return remote field classes with this is_common_model_field value

    + */ @JsonSetter(value = "is_common_model_field", nulls = Nulls.SKIP) public Builder isCommonModelField(Optional isCommonModelField) { this.isCommonModelField = isCommonModelField; @@ -224,6 +256,23 @@ public Builder isCommonModelField(Boolean isCommonModelField) { return this; } + /** + *

    If provided, will only return remote fields classes with this is_custom value

    + */ + @JsonSetter(value = "is_custom", nulls = Nulls.SKIP) + public Builder isCustom(Optional isCustom) { + this.isCustom = isCustom; + return this; + } + + public Builder isCustom(Boolean isCustom) { + this.isCustom = Optional.ofNullable(isCustom); + return this; + } + + /** + *

    Number of results to return per page.

    + */ @JsonSetter(value = "page_size", nulls = Nulls.SKIP) public Builder pageSize(Optional pageSize) { this.pageSize = pageSize; @@ -242,6 +291,7 @@ public JournalEntriesLinesRemoteFieldClassesListRequest build() { includeRemoteData, includeShellData, isCommonModelField, + isCustom, pageSize, additionalProperties); } diff --git a/src/main/java/com/merge/api/accounting/types/JournalEntriesListRequest.java b/src/main/java/com/merge/api/accounting/types/JournalEntriesListRequest.java index 9aa496330..30ce7318e 100644 --- a/src/main/java/com/merge/api/accounting/types/JournalEntriesListRequest.java +++ b/src/main/java/com/merge/api/accounting/types/JournalEntriesListRequest.java @@ -324,6 +324,9 @@ public Builder from(JournalEntriesListRequest other) { return this; } + /** + *

    Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.

    + */ @JsonSetter(value = "expand", nulls = Nulls.SKIP) public Builder expand(Optional> expand) { this.expand = expand; @@ -340,6 +343,9 @@ public Builder expand(JournalEntriesListRequestExpandItem expand) { return this; } + /** + *

    If provided, will only return journal entries for this company.

    + */ @JsonSetter(value = "company_id", nulls = Nulls.SKIP) public Builder companyId(Optional companyId) { this.companyId = companyId; @@ -351,6 +357,9 @@ public Builder companyId(String companyId) { return this; } + /** + *

    If provided, will only return objects created after this datetime.

    + */ @JsonSetter(value = "created_after", nulls = Nulls.SKIP) public Builder createdAfter(Optional createdAfter) { this.createdAfter = createdAfter; @@ -362,6 +371,9 @@ public Builder createdAfter(OffsetDateTime createdAfter) { return this; } + /** + *

    If provided, will only return objects created before this datetime.

    + */ @JsonSetter(value = "created_before", nulls = Nulls.SKIP) public Builder createdBefore(Optional createdBefore) { this.createdBefore = createdBefore; @@ -373,6 +385,9 @@ public Builder createdBefore(OffsetDateTime createdBefore) { return this; } + /** + *

    The pagination cursor value.

    + */ @JsonSetter(value = "cursor", nulls = Nulls.SKIP) public Builder cursor(Optional cursor) { this.cursor = cursor; @@ -384,6 +399,9 @@ public Builder cursor(String cursor) { return this; } + /** + *

    Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

    + */ @JsonSetter(value = "include_deleted_data", nulls = Nulls.SKIP) public Builder includeDeletedData(Optional includeDeletedData) { this.includeDeletedData = includeDeletedData; @@ -395,6 +413,9 @@ public Builder includeDeletedData(Boolean includeDeletedData) { return this; } + /** + *

    Whether to include the original data Merge fetched from the third-party to produce these models.

    + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -406,6 +427,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

    Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format.

    + */ @JsonSetter(value = "include_remote_fields", nulls = Nulls.SKIP) public Builder includeRemoteFields(Optional includeRemoteFields) { this.includeRemoteFields = includeRemoteFields; @@ -417,6 +441,9 @@ public Builder includeRemoteFields(Boolean includeRemoteFields) { return this; } + /** + *

    Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

    + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; @@ -428,6 +455,9 @@ public Builder includeShellData(Boolean includeShellData) { return this; } + /** + *

    If provided, only objects synced by Merge after this date time will be returned.

    + */ @JsonSetter(value = "modified_after", nulls = Nulls.SKIP) public Builder modifiedAfter(Optional modifiedAfter) { this.modifiedAfter = modifiedAfter; @@ -439,6 +469,9 @@ public Builder modifiedAfter(OffsetDateTime modifiedAfter) { return this; } + /** + *

    If provided, only objects synced by Merge before this date time will be returned.

    + */ @JsonSetter(value = "modified_before", nulls = Nulls.SKIP) public Builder modifiedBefore(Optional modifiedBefore) { this.modifiedBefore = modifiedBefore; @@ -450,6 +483,9 @@ public Builder modifiedBefore(OffsetDateTime modifiedBefore) { return this; } + /** + *

    Number of results to return per page.

    + */ @JsonSetter(value = "page_size", nulls = Nulls.SKIP) public Builder pageSize(Optional pageSize) { this.pageSize = pageSize; @@ -461,6 +497,9 @@ public Builder pageSize(Integer pageSize) { return this; } + /** + *

    The API provider's ID for the given object.

    + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; @@ -472,6 +511,9 @@ public Builder remoteId(String remoteId) { return this; } + /** + *

    If provided, will only return objects created after this datetime.

    + */ @JsonSetter(value = "transaction_date_after", nulls = Nulls.SKIP) public Builder transactionDateAfter(Optional transactionDateAfter) { this.transactionDateAfter = transactionDateAfter; @@ -483,6 +525,9 @@ public Builder transactionDateAfter(OffsetDateTime transactionDateAfter) { return this; } + /** + *

    If provided, will only return objects created before this datetime.

    + */ @JsonSetter(value = "transaction_date_before", nulls = Nulls.SKIP) public Builder transactionDateBefore(Optional transactionDateBefore) { this.transactionDateBefore = transactionDateBefore; diff --git a/src/main/java/com/merge/api/accounting/types/JournalEntriesRemoteFieldClassesListRequest.java b/src/main/java/com/merge/api/accounting/types/JournalEntriesRemoteFieldClassesListRequest.java index 92de713d0..9d39cb83f 100644 --- a/src/main/java/com/merge/api/accounting/types/JournalEntriesRemoteFieldClassesListRequest.java +++ b/src/main/java/com/merge/api/accounting/types/JournalEntriesRemoteFieldClassesListRequest.java @@ -30,6 +30,8 @@ public final class JournalEntriesRemoteFieldClassesListRequest { private final Optional isCommonModelField; + private final Optional isCustom; + private final Optional pageSize; private final Map additionalProperties; @@ -40,6 +42,7 @@ private JournalEntriesRemoteFieldClassesListRequest( Optional includeRemoteData, Optional includeShellData, Optional isCommonModelField, + Optional isCustom, Optional pageSize, Map additionalProperties) { this.cursor = cursor; @@ -47,6 +50,7 @@ private JournalEntriesRemoteFieldClassesListRequest( this.includeRemoteData = includeRemoteData; this.includeShellData = includeShellData; this.isCommonModelField = isCommonModelField; + this.isCustom = isCustom; this.pageSize = pageSize; this.additionalProperties = additionalProperties; } @@ -91,6 +95,14 @@ public Optional getIsCommonModelField() { return isCommonModelField; } + /** + * @return If provided, will only return remote fields classes with this is_custom value + */ + @JsonProperty("is_custom") + public Optional getIsCustom() { + return isCustom; + } + /** * @return Number of results to return per page. */ @@ -117,6 +129,7 @@ private boolean equalTo(JournalEntriesRemoteFieldClassesListRequest other) { && includeRemoteData.equals(other.includeRemoteData) && includeShellData.equals(other.includeShellData) && isCommonModelField.equals(other.isCommonModelField) + && isCustom.equals(other.isCustom) && pageSize.equals(other.pageSize); } @@ -128,6 +141,7 @@ public int hashCode() { this.includeRemoteData, this.includeShellData, this.isCommonModelField, + this.isCustom, this.pageSize); } @@ -152,6 +166,8 @@ public static final class Builder { private Optional isCommonModelField = Optional.empty(); + private Optional isCustom = Optional.empty(); + private Optional pageSize = Optional.empty(); @JsonAnySetter @@ -165,10 +181,14 @@ public Builder from(JournalEntriesRemoteFieldClassesListRequest other) { includeRemoteData(other.getIncludeRemoteData()); includeShellData(other.getIncludeShellData()); isCommonModelField(other.getIsCommonModelField()); + isCustom(other.getIsCustom()); pageSize(other.getPageSize()); return this; } + /** + *

    The pagination cursor value.

    + */ @JsonSetter(value = "cursor", nulls = Nulls.SKIP) public Builder cursor(Optional cursor) { this.cursor = cursor; @@ -180,6 +200,9 @@ public Builder cursor(String cursor) { return this; } + /** + *

    Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

    + */ @JsonSetter(value = "include_deleted_data", nulls = Nulls.SKIP) public Builder includeDeletedData(Optional includeDeletedData) { this.includeDeletedData = includeDeletedData; @@ -191,6 +214,9 @@ public Builder includeDeletedData(Boolean includeDeletedData) { return this; } + /** + *

    Whether to include the original data Merge fetched from the third-party to produce these models.

    + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -202,6 +228,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

    Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

    + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; @@ -213,6 +242,9 @@ public Builder includeShellData(Boolean includeShellData) { return this; } + /** + *

    If provided, will only return remote field classes with this is_common_model_field value

    + */ @JsonSetter(value = "is_common_model_field", nulls = Nulls.SKIP) public Builder isCommonModelField(Optional isCommonModelField) { this.isCommonModelField = isCommonModelField; @@ -224,6 +256,23 @@ public Builder isCommonModelField(Boolean isCommonModelField) { return this; } + /** + *

    If provided, will only return remote fields classes with this is_custom value

    + */ + @JsonSetter(value = "is_custom", nulls = Nulls.SKIP) + public Builder isCustom(Optional isCustom) { + this.isCustom = isCustom; + return this; + } + + public Builder isCustom(Boolean isCustom) { + this.isCustom = Optional.ofNullable(isCustom); + return this; + } + + /** + *

    Number of results to return per page.

    + */ @JsonSetter(value = "page_size", nulls = Nulls.SKIP) public Builder pageSize(Optional pageSize) { this.pageSize = pageSize; @@ -242,6 +291,7 @@ public JournalEntriesRemoteFieldClassesListRequest build() { includeRemoteData, includeShellData, isCommonModelField, + isCustom, pageSize, additionalProperties); } diff --git a/src/main/java/com/merge/api/accounting/types/JournalEntriesRetrieveRequest.java b/src/main/java/com/merge/api/accounting/types/JournalEntriesRetrieveRequest.java index e7edfb7fe..91d33b4aa 100644 --- a/src/main/java/com/merge/api/accounting/types/JournalEntriesRetrieveRequest.java +++ b/src/main/java/com/merge/api/accounting/types/JournalEntriesRetrieveRequest.java @@ -132,6 +132,9 @@ public Builder from(JournalEntriesRetrieveRequest other) { return this; } + /** + *

    Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.

    + */ @JsonSetter(value = "expand", nulls = Nulls.SKIP) public Builder expand(Optional> expand) { this.expand = expand; @@ -148,6 +151,9 @@ public Builder expand(JournalEntriesRetrieveRequestExpandItem expand) { return this; } + /** + *

    Whether to include the original data Merge fetched from the third-party to produce these models.

    + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -159,6 +165,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

    Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format.

    + */ @JsonSetter(value = "include_remote_fields", nulls = Nulls.SKIP) public Builder includeRemoteFields(Optional includeRemoteFields) { this.includeRemoteFields = includeRemoteFields; @@ -170,6 +179,9 @@ public Builder includeRemoteFields(Boolean includeRemoteFields) { return this; } + /** + *

    Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

    + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; diff --git a/src/main/java/com/merge/api/accounting/types/JournalEntry.java b/src/main/java/com/merge/api/accounting/types/JournalEntry.java index 6b992d3a2..ef61d5c49 100644 --- a/src/main/java/com/merge/api/accounting/types/JournalEntry.java +++ b/src/main/java/com/merge/api/accounting/types/JournalEntry.java @@ -39,7 +39,7 @@ public final class JournalEntry { private final Optional memo; - private final Optional currency; + private final Optional currency; private final Optional exchangeRate; @@ -55,7 +55,7 @@ public final class JournalEntry { private final Optional remoteWasDeleted; - private final Optional postingStatus; + private final Optional postingStatus; private final Optional accountingPeriod; @@ -80,7 +80,7 @@ private JournalEntry( Optional>> payments, Optional>> appliedPayments, Optional memo, - Optional currency, + Optional currency, Optional exchangeRate, Optional company, Optional inclusiveOfTax, @@ -88,7 +88,7 @@ private JournalEntry( Optional journalNumber, Optional>> trackingCategories, Optional remoteWasDeleted, - Optional postingStatus, + Optional postingStatus, Optional accountingPeriod, Optional remoteCreatedAt, Optional remoteUpdatedAt, @@ -495,7 +495,7 @@ public Optional getMemo() { * */ @JsonProperty("currency") - public Optional getCurrency() { + public Optional getCurrency() { return currency; } @@ -557,7 +557,7 @@ public Optional getRemoteWasDeleted() { * */ @JsonProperty("posting_status") - public Optional getPostingStatus() { + public Optional getPostingStatus() { return postingStatus; } @@ -692,7 +692,7 @@ public static final class Builder { private Optional memo = Optional.empty(); - private Optional currency = Optional.empty(); + private Optional currency = Optional.empty(); private Optional exchangeRate = Optional.empty(); @@ -708,7 +708,7 @@ public static final class Builder { private Optional remoteWasDeleted = Optional.empty(); - private Optional postingStatus = Optional.empty(); + private Optional postingStatus = Optional.empty(); private Optional accountingPeriod = Optional.empty(); @@ -765,6 +765,9 @@ public Builder id(String id) { return this; } + /** + *

    The third-party API ID of the matching object.

    + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; @@ -776,6 +779,9 @@ public Builder remoteId(String remoteId) { return this; } + /** + *

    The datetime that this object was created by Merge.

    + */ @JsonSetter(value = "created_at", nulls = Nulls.SKIP) public Builder createdAt(Optional createdAt) { this.createdAt = createdAt; @@ -787,6 +793,9 @@ public Builder createdAt(OffsetDateTime createdAt) { return this; } + /** + *

    The datetime that this object was modified by Merge.

    + */ @JsonSetter(value = "modified_at", nulls = Nulls.SKIP) public Builder modifiedAt(Optional modifiedAt) { this.modifiedAt = modifiedAt; @@ -798,6 +807,9 @@ public Builder modifiedAt(OffsetDateTime modifiedAt) { return this; } + /** + *

    The journal entry's transaction date.

    + */ @JsonSetter(value = "transaction_date", nulls = Nulls.SKIP) public Builder transactionDate(Optional transactionDate) { this.transactionDate = transactionDate; @@ -809,6 +821,9 @@ public Builder transactionDate(OffsetDateTime transactionDate) { return this; } + /** + *

    Array of Payment object IDs.

    + */ @JsonSetter(value = "payments", nulls = Nulls.SKIP) public Builder payments(Optional>> payments) { this.payments = payments; @@ -820,6 +835,9 @@ public Builder payments(List> payments) { return this; } + /** + *

    A list of the Payment Applied to Lines common models related to a given Invoice, Credit Note, or Journal Entry.

    + */ @JsonSetter(value = "applied_payments", nulls = Nulls.SKIP) public Builder appliedPayments(Optional>> appliedPayments) { this.appliedPayments = appliedPayments; @@ -831,6 +849,9 @@ public Builder appliedPayments(List> a return this; } + /** + *

    The journal entry's private note.

    + */ @JsonSetter(value = "memo", nulls = Nulls.SKIP) public Builder memo(Optional memo) { this.memo = memo; @@ -842,17 +863,331 @@ public Builder memo(String memo) { return this; } + /** + *

    The journal's currency.

    + *
      + *
    • XUA - ADB Unit of Account
    • + *
    • AFN - Afghan Afghani
    • + *
    • AFA - Afghan Afghani (1927–2002)
    • + *
    • ALL - Albanian Lek
    • + *
    • ALK - Albanian Lek (1946–1965)
    • + *
    • DZD - Algerian Dinar
    • + *
    • ADP - Andorran Peseta
    • + *
    • AOA - Angolan Kwanza
    • + *
    • AOK - Angolan Kwanza (1977–1991)
    • + *
    • AON - Angolan New Kwanza (1990–2000)
    • + *
    • AOR - Angolan Readjusted Kwanza (1995–1999)
    • + *
    • ARA - Argentine Austral
    • + *
    • ARS - Argentine Peso
    • + *
    • ARM - Argentine Peso (1881–1970)
    • + *
    • ARP - Argentine Peso (1983–1985)
    • + *
    • ARL - Argentine Peso Ley (1970–1983)
    • + *
    • AMD - Armenian Dram
    • + *
    • AWG - Aruban Florin
    • + *
    • AUD - Australian Dollar
    • + *
    • ATS - Austrian Schilling
    • + *
    • AZN - Azerbaijani Manat
    • + *
    • AZM - Azerbaijani Manat (1993–2006)
    • + *
    • BSD - Bahamian Dollar
    • + *
    • BHD - Bahraini Dinar
    • + *
    • BDT - Bangladeshi Taka
    • + *
    • BBD - Barbadian Dollar
    • + *
    • BYN - Belarusian Ruble
    • + *
    • BYB - Belarusian Ruble (1994–1999)
    • + *
    • BYR - Belarusian Ruble (2000–2016)
    • + *
    • BEF - Belgian Franc
    • + *
    • BEC - Belgian Franc (convertible)
    • + *
    • BEL - Belgian Franc (financial)
    • + *
    • BZD - Belize Dollar
    • + *
    • BMD - Bermudan Dollar
    • + *
    • BTN - Bhutanese Ngultrum
    • + *
    • BOB - Bolivian Boliviano
    • + *
    • BOL - Bolivian Boliviano (1863–1963)
    • + *
    • BOV - Bolivian Mvdol
    • + *
    • BOP - Bolivian Peso
    • + *
    • BAM - Bosnia-Herzegovina Convertible Mark
    • + *
    • BAD - Bosnia-Herzegovina Dinar (1992–1994)
    • + *
    • BAN - Bosnia-Herzegovina New Dinar (1994–1997)
    • + *
    • BWP - Botswanan Pula
    • + *
    • BRC - Brazilian Cruzado (1986–1989)
    • + *
    • BRZ - Brazilian Cruzeiro (1942–1967)
    • + *
    • BRE - Brazilian Cruzeiro (1990–1993)
    • + *
    • BRR - Brazilian Cruzeiro (1993–1994)
    • + *
    • BRN - Brazilian New Cruzado (1989–1990)
    • + *
    • BRB - Brazilian New Cruzeiro (1967–1986)
    • + *
    • BRL - Brazilian Real
    • + *
    • GBP - British Pound
    • + *
    • BND - Brunei Dollar
    • + *
    • BGL - Bulgarian Hard Lev
    • + *
    • BGN - Bulgarian Lev
    • + *
    • BGO - Bulgarian Lev (1879–1952)
    • + *
    • BGM - Bulgarian Socialist Lev
    • + *
    • BUK - Burmese Kyat
    • + *
    • BIF - Burundian Franc
    • + *
    • XPF - CFP Franc
    • + *
    • KHR - Cambodian Riel
    • + *
    • CAD - Canadian Dollar
    • + *
    • CVE - Cape Verdean Escudo
    • + *
    • KYD - Cayman Islands Dollar
    • + *
    • XAF - Central African CFA Franc
    • + *
    • CLE - Chilean Escudo
    • + *
    • CLP - Chilean Peso
    • + *
    • CLF - Chilean Unit of Account (UF)
    • + *
    • CNX - Chinese People’s Bank Dollar
    • + *
    • CNY - Chinese Yuan
    • + *
    • CNH - Chinese Yuan (offshore)
    • + *
    • COP - Colombian Peso
    • + *
    • COU - Colombian Real Value Unit
    • + *
    • KMF - Comorian Franc
    • + *
    • CDF - Congolese Franc
    • + *
    • CRC - Costa Rican Colón
    • + *
    • HRD - Croatian Dinar
    • + *
    • HRK - Croatian Kuna
    • + *
    • CUC - Cuban Convertible Peso
    • + *
    • CUP - Cuban Peso
    • + *
    • CYP - Cypriot Pound
    • + *
    • CZK - Czech Koruna
    • + *
    • CSK - Czechoslovak Hard Koruna
    • + *
    • DKK - Danish Krone
    • + *
    • DJF - Djiboutian Franc
    • + *
    • DOP - Dominican Peso
    • + *
    • NLG - Dutch Guilder
    • + *
    • XCD - East Caribbean Dollar
    • + *
    • DDM - East German Mark
    • + *
    • ECS - Ecuadorian Sucre
    • + *
    • ECV - Ecuadorian Unit of Constant Value
    • + *
    • EGP - Egyptian Pound
    • + *
    • GQE - Equatorial Guinean Ekwele
    • + *
    • ERN - Eritrean Nakfa
    • + *
    • EEK - Estonian Kroon
    • + *
    • ETB - Ethiopian Birr
    • + *
    • EUR - Euro
    • + *
    • XBA - European Composite Unit
    • + *
    • XEU - European Currency Unit
    • + *
    • XBB - European Monetary Unit
    • + *
    • XBC - European Unit of Account (XBC)
    • + *
    • XBD - European Unit of Account (XBD)
    • + *
    • FKP - Falkland Islands Pound
    • + *
    • FJD - Fijian Dollar
    • + *
    • FIM - Finnish Markka
    • + *
    • FRF - French Franc
    • + *
    • XFO - French Gold Franc
    • + *
    • XFU - French UIC-Franc
    • + *
    • GMD - Gambian Dalasi
    • + *
    • GEK - Georgian Kupon Larit
    • + *
    • GEL - Georgian Lari
    • + *
    • DEM - German Mark
    • + *
    • GHS - Ghanaian Cedi
    • + *
    • GHC - Ghanaian Cedi (1979–2007)
    • + *
    • GIP - Gibraltar Pound
    • + *
    • XAU - Gold
    • + *
    • GRD - Greek Drachma
    • + *
    • GTQ - Guatemalan Quetzal
    • + *
    • GWP - Guinea-Bissau Peso
    • + *
    • GNF - Guinean Franc
    • + *
    • GNS - Guinean Syli
    • + *
    • GYD - Guyanaese Dollar
    • + *
    • HTG - Haitian Gourde
    • + *
    • HNL - Honduran Lempira
    • + *
    • HKD - Hong Kong Dollar
    • + *
    • HUF - Hungarian Forint
    • + *
    • IMP - IMP
    • + *
    • ISK - Icelandic Króna
    • + *
    • ISJ - Icelandic Króna (1918–1981)
    • + *
    • INR - Indian Rupee
    • + *
    • IDR - Indonesian Rupiah
    • + *
    • IRR - Iranian Rial
    • + *
    • IQD - Iraqi Dinar
    • + *
    • IEP - Irish Pound
    • + *
    • ILS - Israeli New Shekel
    • + *
    • ILP - Israeli Pound
    • + *
    • ILR - Israeli Shekel (1980–1985)
    • + *
    • ITL - Italian Lira
    • + *
    • JMD - Jamaican Dollar
    • + *
    • JPY - Japanese Yen
    • + *
    • JOD - Jordanian Dinar
    • + *
    • KZT - Kazakhstani Tenge
    • + *
    • KES - Kenyan Shilling
    • + *
    • KWD - Kuwaiti Dinar
    • + *
    • KGS - Kyrgystani Som
    • + *
    • LAK - Laotian Kip
    • + *
    • LVL - Latvian Lats
    • + *
    • LVR - Latvian Ruble
    • + *
    • LBP - Lebanese Pound
    • + *
    • LSL - Lesotho Loti
    • + *
    • LRD - Liberian Dollar
    • + *
    • LYD - Libyan Dinar
    • + *
    • LTL - Lithuanian Litas
    • + *
    • LTT - Lithuanian Talonas
    • + *
    • LUL - Luxembourg Financial Franc
    • + *
    • LUC - Luxembourgian Convertible Franc
    • + *
    • LUF - Luxembourgian Franc
    • + *
    • MOP - Macanese Pataca
    • + *
    • MKD - Macedonian Denar
    • + *
    • MKN - Macedonian Denar (1992–1993)
    • + *
    • MGA - Malagasy Ariary
    • + *
    • MGF - Malagasy Franc
    • + *
    • MWK - Malawian Kwacha
    • + *
    • MYR - Malaysian Ringgit
    • + *
    • MVR - Maldivian Rufiyaa
    • + *
    • MVP - Maldivian Rupee (1947–1981)
    • + *
    • MLF - Malian Franc
    • + *
    • MTL - Maltese Lira
    • + *
    • MTP - Maltese Pound
    • + *
    • MRU - Mauritanian Ouguiya
    • + *
    • MRO - Mauritanian Ouguiya (1973–2017)
    • + *
    • MUR - Mauritian Rupee
    • + *
    • MXV - Mexican Investment Unit
    • + *
    • MXN - Mexican Peso
    • + *
    • MXP - Mexican Silver Peso (1861–1992)
    • + *
    • MDC - Moldovan Cupon
    • + *
    • MDL - Moldovan Leu
    • + *
    • MCF - Monegasque Franc
    • + *
    • MNT - Mongolian Tugrik
    • + *
    • MAD - Moroccan Dirham
    • + *
    • MAF - Moroccan Franc
    • + *
    • MZE - Mozambican Escudo
    • + *
    • MZN - Mozambican Metical
    • + *
    • MZM - Mozambican Metical (1980–2006)
    • + *
    • MMK - Myanmar Kyat
    • + *
    • NAD - Namibian Dollar
    • + *
    • NPR - Nepalese Rupee
    • + *
    • ANG - Netherlands Antillean Guilder
    • + *
    • TWD - New Taiwan Dollar
    • + *
    • NZD - New Zealand Dollar
    • + *
    • NIO - Nicaraguan Córdoba
    • + *
    • NIC - Nicaraguan Córdoba (1988–1991)
    • + *
    • NGN - Nigerian Naira
    • + *
    • KPW - North Korean Won
    • + *
    • NOK - Norwegian Krone
    • + *
    • OMR - Omani Rial
    • + *
    • PKR - Pakistani Rupee
    • + *
    • XPD - Palladium
    • + *
    • PAB - Panamanian Balboa
    • + *
    • PGK - Papua New Guinean Kina
    • + *
    • PYG - Paraguayan Guarani
    • + *
    • PEI - Peruvian Inti
    • + *
    • PEN - Peruvian Sol
    • + *
    • PES - Peruvian Sol (1863–1965)
    • + *
    • PHP - Philippine Peso
    • + *
    • XPT - Platinum
    • + *
    • PLN - Polish Zloty
    • + *
    • PLZ - Polish Zloty (1950–1995)
    • + *
    • PTE - Portuguese Escudo
    • + *
    • GWE - Portuguese Guinea Escudo
    • + *
    • QAR - Qatari Rial
    • + *
    • XRE - RINET Funds
    • + *
    • RHD - Rhodesian Dollar
    • + *
    • RON - Romanian Leu
    • + *
    • ROL - Romanian Leu (1952–2006)
    • + *
    • RUB - Russian Ruble
    • + *
    • RUR - Russian Ruble (1991–1998)
    • + *
    • RWF - Rwandan Franc
    • + *
    • SVC - Salvadoran Colón
    • + *
    • WST - Samoan Tala
    • + *
    • SAR - Saudi Riyal
    • + *
    • RSD - Serbian Dinar
    • + *
    • CSD - Serbian Dinar (2002–2006)
    • + *
    • SCR - Seychellois Rupee
    • + *
    • SLL - Sierra Leonean Leone
    • + *
    • XAG - Silver
    • + *
    • SGD - Singapore Dollar
    • + *
    • SKK - Slovak Koruna
    • + *
    • SIT - Slovenian Tolar
    • + *
    • SBD - Solomon Islands Dollar
    • + *
    • SOS - Somali Shilling
    • + *
    • ZAR - South African Rand
    • + *
    • ZAL - South African Rand (financial)
    • + *
    • KRH - South Korean Hwan (1953–1962)
    • + *
    • KRW - South Korean Won
    • + *
    • KRO - South Korean Won (1945–1953)
    • + *
    • SSP - South Sudanese Pound
    • + *
    • SUR - Soviet Rouble
    • + *
    • ESP - Spanish Peseta
    • + *
    • ESA - Spanish Peseta (A account)
    • + *
    • ESB - Spanish Peseta (convertible account)
    • + *
    • XDR - Special Drawing Rights
    • + *
    • LKR - Sri Lankan Rupee
    • + *
    • SHP - St. Helena Pound
    • + *
    • XSU - Sucre
    • + *
    • SDD - Sudanese Dinar (1992–2007)
    • + *
    • SDG - Sudanese Pound
    • + *
    • SDP - Sudanese Pound (1957–1998)
    • + *
    • SRD - Surinamese Dollar
    • + *
    • SRG - Surinamese Guilder
    • + *
    • SZL - Swazi Lilangeni
    • + *
    • SEK - Swedish Krona
    • + *
    • CHF - Swiss Franc
    • + *
    • SYP - Syrian Pound
    • + *
    • STN - São Tomé & Príncipe Dobra
    • + *
    • STD - São Tomé & Príncipe Dobra (1977–2017)
    • + *
    • TVD - TVD
    • + *
    • TJR - Tajikistani Ruble
    • + *
    • TJS - Tajikistani Somoni
    • + *
    • TZS - Tanzanian Shilling
    • + *
    • XTS - Testing Currency Code
    • + *
    • THB - Thai Baht
    • + *
    • XXX - The codes assigned for transactions where no currency is involved
    • + *
    • TPE - Timorese Escudo
    • + *
    • TOP - Tongan Paʻanga
    • + *
    • TTD - Trinidad & Tobago Dollar
    • + *
    • TND - Tunisian Dinar
    • + *
    • TRY - Turkish Lira
    • + *
    • TRL - Turkish Lira (1922–2005)
    • + *
    • TMT - Turkmenistani Manat
    • + *
    • TMM - Turkmenistani Manat (1993–2009)
    • + *
    • USD - US Dollar
    • + *
    • USN - US Dollar (Next day)
    • + *
    • USS - US Dollar (Same day)
    • + *
    • UGX - Ugandan Shilling
    • + *
    • UGS - Ugandan Shilling (1966–1987)
    • + *
    • UAH - Ukrainian Hryvnia
    • + *
    • UAK - Ukrainian Karbovanets
    • + *
    • AED - United Arab Emirates Dirham
    • + *
    • UYW - Uruguayan Nominal Wage Index Unit
    • + *
    • UYU - Uruguayan Peso
    • + *
    • UYP - Uruguayan Peso (1975–1993)
    • + *
    • UYI - Uruguayan Peso (Indexed Units)
    • + *
    • UZS - Uzbekistani Som
    • + *
    • VUV - Vanuatu Vatu
    • + *
    • VES - Venezuelan Bolívar
    • + *
    • VEB - Venezuelan Bolívar (1871–2008)
    • + *
    • VEF - Venezuelan Bolívar (2008–2018)
    • + *
    • VND - Vietnamese Dong
    • + *
    • VNN - Vietnamese Dong (1978–1985)
    • + *
    • CHE - WIR Euro
    • + *
    • CHW - WIR Franc
    • + *
    • XOF - West African CFA Franc
    • + *
    • YDD - Yemeni Dinar
    • + *
    • YER - Yemeni Rial
    • + *
    • YUN - Yugoslavian Convertible Dinar (1990–1992)
    • + *
    • YUD - Yugoslavian Hard Dinar (1966–1990)
    • + *
    • YUM - Yugoslavian New Dinar (1994–2002)
    • + *
    • YUR - Yugoslavian Reformed Dinar (1992–1993)
    • + *
    • ZWN - ZWN
    • + *
    • ZRN - Zairean New Zaire (1993–1998)
    • + *
    • ZRZ - Zairean Zaire (1971–1993)
    • + *
    • ZMW - Zambian Kwacha
    • + *
    • ZMK - Zambian Kwacha (1968–2012)
    • + *
    • ZWD - Zimbabwean Dollar (1980–2008)
    • + *
    • ZWR - Zimbabwean Dollar (2008)
    • + *
    • ZWL - Zimbabwean Dollar (2009)
    • + *
    + */ @JsonSetter(value = "currency", nulls = Nulls.SKIP) - public Builder currency(Optional currency) { + public Builder currency(Optional currency) { this.currency = currency; return this; } - public Builder currency(TransactionCurrencyEnum currency) { + public Builder currency(JournalEntryCurrency currency) { this.currency = Optional.ofNullable(currency); return this; } + /** + *

    The journal entry's exchange rate.

    + */ @JsonSetter(value = "exchange_rate", nulls = Nulls.SKIP) public Builder exchangeRate(Optional exchangeRate) { this.exchangeRate = exchangeRate; @@ -864,6 +1199,9 @@ public Builder exchangeRate(String exchangeRate) { return this; } + /** + *

    The company the journal entry belongs to.

    + */ @JsonSetter(value = "company", nulls = Nulls.SKIP) public Builder company(Optional company) { this.company = company; @@ -875,6 +1213,9 @@ public Builder company(JournalEntryCompany company) { return this; } + /** + *

    If the transaction is inclusive or exclusive of tax. True if inclusive, False if exclusive.

    + */ @JsonSetter(value = "inclusive_of_tax", nulls = Nulls.SKIP) public Builder inclusiveOfTax(Optional inclusiveOfTax) { this.inclusiveOfTax = inclusiveOfTax; @@ -897,6 +1238,9 @@ public Builder lines(List lines) { return this; } + /** + *

    Reference number for identifying journal entries.

    + */ @JsonSetter(value = "journal_number", nulls = Nulls.SKIP) public Builder journalNumber(Optional journalNumber) { this.journalNumber = journalNumber; @@ -920,6 +1264,9 @@ public Builder trackingCategories(ListIndicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

    + */ @JsonSetter(value = "remote_was_deleted", nulls = Nulls.SKIP) public Builder remoteWasDeleted(Optional remoteWasDeleted) { this.remoteWasDeleted = remoteWasDeleted; @@ -931,17 +1278,27 @@ public Builder remoteWasDeleted(Boolean remoteWasDeleted) { return this; } + /** + *

    The journal's posting status.

    + *
      + *
    • UNPOSTED - UNPOSTED
    • + *
    • POSTED - POSTED
    • + *
    + */ @JsonSetter(value = "posting_status", nulls = Nulls.SKIP) - public Builder postingStatus(Optional postingStatus) { + public Builder postingStatus(Optional postingStatus) { this.postingStatus = postingStatus; return this; } - public Builder postingStatus(PostingStatusEnum postingStatus) { + public Builder postingStatus(JournalEntryPostingStatus postingStatus) { this.postingStatus = Optional.ofNullable(postingStatus); return this; } + /** + *

    The accounting period that the JournalEntry was generated in.

    + */ @JsonSetter(value = "accounting_period", nulls = Nulls.SKIP) public Builder accountingPeriod(Optional accountingPeriod) { this.accountingPeriod = accountingPeriod; @@ -953,6 +1310,9 @@ public Builder accountingPeriod(JournalEntryAccountingPeriod accountingPeriod) { return this; } + /** + *

    When the third party's journal entry was created.

    + */ @JsonSetter(value = "remote_created_at", nulls = Nulls.SKIP) public Builder remoteCreatedAt(Optional remoteCreatedAt) { this.remoteCreatedAt = remoteCreatedAt; @@ -964,6 +1324,9 @@ public Builder remoteCreatedAt(OffsetDateTime remoteCreatedAt) { return this; } + /** + *

    When the third party's journal entry was updated.

    + */ @JsonSetter(value = "remote_updated_at", nulls = Nulls.SKIP) public Builder remoteUpdatedAt(Optional remoteUpdatedAt) { this.remoteUpdatedAt = remoteUpdatedAt; diff --git a/src/main/java/com/merge/api/accounting/types/JournalEntryCurrency.java b/src/main/java/com/merge/api/accounting/types/JournalEntryCurrency.java new file mode 100644 index 000000000..a7fd8ded0 --- /dev/null +++ b/src/main/java/com/merge/api/accounting/types/JournalEntryCurrency.java @@ -0,0 +1,95 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.merge.api.accounting.types; + +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.databind.DeserializationContext; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.fasterxml.jackson.databind.deser.std.StdDeserializer; +import com.merge.api.core.ObjectMappers; +import java.io.IOException; +import java.util.Objects; + +@JsonDeserialize(using = JournalEntryCurrency.Deserializer.class) +public final class JournalEntryCurrency { + private final Object value; + + private final int type; + + private JournalEntryCurrency(Object value, int type) { + this.value = value; + this.type = type; + } + + @JsonValue + public Object get() { + return this.value; + } + + @SuppressWarnings("unchecked") + public T visit(Visitor visitor) { + if (this.type == 0) { + return visitor.visit((TransactionCurrencyEnum) this.value); + } else if (this.type == 1) { + return visitor.visit((String) this.value); + } + throw new IllegalStateException("Failed to visit value. This should never happen."); + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof JournalEntryCurrency && equalTo((JournalEntryCurrency) other); + } + + private boolean equalTo(JournalEntryCurrency other) { + return value.equals(other.value); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.value); + } + + @java.lang.Override + public String toString() { + return this.value.toString(); + } + + public static JournalEntryCurrency of(TransactionCurrencyEnum value) { + return new JournalEntryCurrency(value, 0); + } + + public static JournalEntryCurrency of(String value) { + return new JournalEntryCurrency(value, 1); + } + + public interface Visitor { + T visit(TransactionCurrencyEnum value); + + T visit(String value); + } + + static final class Deserializer extends StdDeserializer { + Deserializer() { + super(JournalEntryCurrency.class); + } + + @java.lang.Override + public JournalEntryCurrency deserialize(JsonParser p, DeserializationContext context) throws IOException { + Object value = p.readValueAs(Object.class); + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, TransactionCurrencyEnum.class)); + } catch (IllegalArgumentException e) { + } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, String.class)); + } catch (IllegalArgumentException e) { + } + throw new JsonParseException(p, "Failed to deserialize"); + } + } +} diff --git a/src/main/java/com/merge/api/accounting/types/JournalEntryEndpointRequest.java b/src/main/java/com/merge/api/accounting/types/JournalEntryEndpointRequest.java index 156217006..789896ad1 100644 --- a/src/main/java/com/merge/api/accounting/types/JournalEntryEndpointRequest.java +++ b/src/main/java/com/merge/api/accounting/types/JournalEntryEndpointRequest.java @@ -99,10 +99,16 @@ public interface ModelStage { public interface _FinalStage { JournalEntryEndpointRequest build(); + /** + *

    Whether to include debug fields (such as log file links) in the response.

    + */ _FinalStage isDebugMode(Optional isDebugMode); _FinalStage isDebugMode(Boolean isDebugMode); + /** + *

    Whether or not third-party updates should be run asynchronously.

    + */ _FinalStage runAsync(Optional runAsync); _FinalStage runAsync(Boolean runAsync); @@ -146,6 +152,9 @@ public _FinalStage runAsync(Boolean runAsync) { return this; } + /** + *

    Whether or not third-party updates should be run asynchronously.

    + */ @java.lang.Override @JsonSetter(value = "run_async", nulls = Nulls.SKIP) public _FinalStage runAsync(Optional runAsync) { @@ -163,6 +172,9 @@ public _FinalStage isDebugMode(Boolean isDebugMode) { return this; } + /** + *

    Whether to include debug fields (such as log file links) in the response.

    + */ @java.lang.Override @JsonSetter(value = "is_debug_mode", nulls = Nulls.SKIP) public _FinalStage isDebugMode(Optional isDebugMode) { diff --git a/src/main/java/com/merge/api/accounting/types/JournalEntryPostingStatus.java b/src/main/java/com/merge/api/accounting/types/JournalEntryPostingStatus.java new file mode 100644 index 000000000..9e26412f9 --- /dev/null +++ b/src/main/java/com/merge/api/accounting/types/JournalEntryPostingStatus.java @@ -0,0 +1,95 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.merge.api.accounting.types; + +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.databind.DeserializationContext; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.fasterxml.jackson.databind.deser.std.StdDeserializer; +import com.merge.api.core.ObjectMappers; +import java.io.IOException; +import java.util.Objects; + +@JsonDeserialize(using = JournalEntryPostingStatus.Deserializer.class) +public final class JournalEntryPostingStatus { + private final Object value; + + private final int type; + + private JournalEntryPostingStatus(Object value, int type) { + this.value = value; + this.type = type; + } + + @JsonValue + public Object get() { + return this.value; + } + + @SuppressWarnings("unchecked") + public T visit(Visitor visitor) { + if (this.type == 0) { + return visitor.visit((PostingStatusEnum) this.value); + } else if (this.type == 1) { + return visitor.visit((String) this.value); + } + throw new IllegalStateException("Failed to visit value. This should never happen."); + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof JournalEntryPostingStatus && equalTo((JournalEntryPostingStatus) other); + } + + private boolean equalTo(JournalEntryPostingStatus other) { + return value.equals(other.value); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.value); + } + + @java.lang.Override + public String toString() { + return this.value.toString(); + } + + public static JournalEntryPostingStatus of(PostingStatusEnum value) { + return new JournalEntryPostingStatus(value, 0); + } + + public static JournalEntryPostingStatus of(String value) { + return new JournalEntryPostingStatus(value, 1); + } + + public interface Visitor { + T visit(PostingStatusEnum value); + + T visit(String value); + } + + static final class Deserializer extends StdDeserializer { + Deserializer() { + super(JournalEntryPostingStatus.class); + } + + @java.lang.Override + public JournalEntryPostingStatus deserialize(JsonParser p, DeserializationContext context) throws IOException { + Object value = p.readValueAs(Object.class); + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, PostingStatusEnum.class)); + } catch (IllegalArgumentException e) { + } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, String.class)); + } catch (IllegalArgumentException e) { + } + throw new JsonParseException(p, "Failed to deserialize"); + } + } +} diff --git a/src/main/java/com/merge/api/accounting/types/JournalEntryRequest.java b/src/main/java/com/merge/api/accounting/types/JournalEntryRequest.java index eb2a860a4..4f032ea3a 100644 --- a/src/main/java/com/merge/api/accounting/types/JournalEntryRequest.java +++ b/src/main/java/com/merge/api/accounting/types/JournalEntryRequest.java @@ -29,7 +29,7 @@ public final class JournalEntryRequest { private final Optional memo; - private final Optional currency; + private final Optional currency; private final Optional exchangeRate; @@ -43,7 +43,7 @@ public final class JournalEntryRequest { private final Optional journalNumber; - private final Optional postingStatus; + private final Optional postingStatus; private final Optional> integrationParams; @@ -57,14 +57,14 @@ private JournalEntryRequest( Optional transactionDate, Optional>> payments, Optional memo, - Optional currency, + Optional currency, Optional exchangeRate, Optional company, Optional>> trackingCategories, Optional inclusiveOfTax, Optional> lines, Optional journalNumber, - Optional postingStatus, + Optional postingStatus, Optional> integrationParams, Optional> linkedAccountParams, Optional> remoteFields, @@ -422,7 +422,7 @@ public Optional getMemo() { * */ @JsonProperty("currency") - public Optional getCurrency() { + public Optional getCurrency() { return currency; } @@ -476,7 +476,7 @@ public Optional getJournalNumber() { * */ @JsonProperty("posting_status") - public Optional getPostingStatus() { + public Optional getPostingStatus() { return postingStatus; } @@ -559,7 +559,7 @@ public static final class Builder { private Optional memo = Optional.empty(); - private Optional currency = Optional.empty(); + private Optional currency = Optional.empty(); private Optional exchangeRate = Optional.empty(); @@ -574,7 +574,7 @@ public static final class Builder { private Optional journalNumber = Optional.empty(); - private Optional postingStatus = Optional.empty(); + private Optional postingStatus = Optional.empty(); private Optional> integrationParams = Optional.empty(); @@ -605,6 +605,9 @@ public Builder from(JournalEntryRequest other) { return this; } + /** + *

    The journal entry's transaction date.

    + */ @JsonSetter(value = "transaction_date", nulls = Nulls.SKIP) public Builder transactionDate(Optional transactionDate) { this.transactionDate = transactionDate; @@ -616,6 +619,9 @@ public Builder transactionDate(OffsetDateTime transactionDate) { return this; } + /** + *

    Array of Payment object IDs.

    + */ @JsonSetter(value = "payments", nulls = Nulls.SKIP) public Builder payments(Optional>> payments) { this.payments = payments; @@ -627,6 +633,9 @@ public Builder payments(List> payments return this; } + /** + *

    The journal entry's private note.

    + */ @JsonSetter(value = "memo", nulls = Nulls.SKIP) public Builder memo(Optional memo) { this.memo = memo; @@ -638,17 +647,331 @@ public Builder memo(String memo) { return this; } + /** + *

    The journal's currency.

    + *
      + *
    • XUA - ADB Unit of Account
    • + *
    • AFN - Afghan Afghani
    • + *
    • AFA - Afghan Afghani (1927–2002)
    • + *
    • ALL - Albanian Lek
    • + *
    • ALK - Albanian Lek (1946–1965)
    • + *
    • DZD - Algerian Dinar
    • + *
    • ADP - Andorran Peseta
    • + *
    • AOA - Angolan Kwanza
    • + *
    • AOK - Angolan Kwanza (1977–1991)
    • + *
    • AON - Angolan New Kwanza (1990–2000)
    • + *
    • AOR - Angolan Readjusted Kwanza (1995–1999)
    • + *
    • ARA - Argentine Austral
    • + *
    • ARS - Argentine Peso
    • + *
    • ARM - Argentine Peso (1881–1970)
    • + *
    • ARP - Argentine Peso (1983–1985)
    • + *
    • ARL - Argentine Peso Ley (1970–1983)
    • + *
    • AMD - Armenian Dram
    • + *
    • AWG - Aruban Florin
    • + *
    • AUD - Australian Dollar
    • + *
    • ATS - Austrian Schilling
    • + *
    • AZN - Azerbaijani Manat
    • + *
    • AZM - Azerbaijani Manat (1993–2006)
    • + *
    • BSD - Bahamian Dollar
    • + *
    • BHD - Bahraini Dinar
    • + *
    • BDT - Bangladeshi Taka
    • + *
    • BBD - Barbadian Dollar
    • + *
    • BYN - Belarusian Ruble
    • + *
    • BYB - Belarusian Ruble (1994–1999)
    • + *
    • BYR - Belarusian Ruble (2000–2016)
    • + *
    • BEF - Belgian Franc
    • + *
    • BEC - Belgian Franc (convertible)
    • + *
    • BEL - Belgian Franc (financial)
    • + *
    • BZD - Belize Dollar
    • + *
    • BMD - Bermudan Dollar
    • + *
    • BTN - Bhutanese Ngultrum
    • + *
    • BOB - Bolivian Boliviano
    • + *
    • BOL - Bolivian Boliviano (1863–1963)
    • + *
    • BOV - Bolivian Mvdol
    • + *
    • BOP - Bolivian Peso
    • + *
    • BAM - Bosnia-Herzegovina Convertible Mark
    • + *
    • BAD - Bosnia-Herzegovina Dinar (1992–1994)
    • + *
    • BAN - Bosnia-Herzegovina New Dinar (1994–1997)
    • + *
    • BWP - Botswanan Pula
    • + *
    • BRC - Brazilian Cruzado (1986–1989)
    • + *
    • BRZ - Brazilian Cruzeiro (1942–1967)
    • + *
    • BRE - Brazilian Cruzeiro (1990–1993)
    • + *
    • BRR - Brazilian Cruzeiro (1993–1994)
    • + *
    • BRN - Brazilian New Cruzado (1989–1990)
    • + *
    • BRB - Brazilian New Cruzeiro (1967–1986)
    • + *
    • BRL - Brazilian Real
    • + *
    • GBP - British Pound
    • + *
    • BND - Brunei Dollar
    • + *
    • BGL - Bulgarian Hard Lev
    • + *
    • BGN - Bulgarian Lev
    • + *
    • BGO - Bulgarian Lev (1879–1952)
    • + *
    • BGM - Bulgarian Socialist Lev
    • + *
    • BUK - Burmese Kyat
    • + *
    • BIF - Burundian Franc
    • + *
    • XPF - CFP Franc
    • + *
    • KHR - Cambodian Riel
    • + *
    • CAD - Canadian Dollar
    • + *
    • CVE - Cape Verdean Escudo
    • + *
    • KYD - Cayman Islands Dollar
    • + *
    • XAF - Central African CFA Franc
    • + *
    • CLE - Chilean Escudo
    • + *
    • CLP - Chilean Peso
    • + *
    • CLF - Chilean Unit of Account (UF)
    • + *
    • CNX - Chinese People’s Bank Dollar
    • + *
    • CNY - Chinese Yuan
    • + *
    • CNH - Chinese Yuan (offshore)
    • + *
    • COP - Colombian Peso
    • + *
    • COU - Colombian Real Value Unit
    • + *
    • KMF - Comorian Franc
    • + *
    • CDF - Congolese Franc
    • + *
    • CRC - Costa Rican Colón
    • + *
    • HRD - Croatian Dinar
    • + *
    • HRK - Croatian Kuna
    • + *
    • CUC - Cuban Convertible Peso
    • + *
    • CUP - Cuban Peso
    • + *
    • CYP - Cypriot Pound
    • + *
    • CZK - Czech Koruna
    • + *
    • CSK - Czechoslovak Hard Koruna
    • + *
    • DKK - Danish Krone
    • + *
    • DJF - Djiboutian Franc
    • + *
    • DOP - Dominican Peso
    • + *
    • NLG - Dutch Guilder
    • + *
    • XCD - East Caribbean Dollar
    • + *
    • DDM - East German Mark
    • + *
    • ECS - Ecuadorian Sucre
    • + *
    • ECV - Ecuadorian Unit of Constant Value
    • + *
    • EGP - Egyptian Pound
    • + *
    • GQE - Equatorial Guinean Ekwele
    • + *
    • ERN - Eritrean Nakfa
    • + *
    • EEK - Estonian Kroon
    • + *
    • ETB - Ethiopian Birr
    • + *
    • EUR - Euro
    • + *
    • XBA - European Composite Unit
    • + *
    • XEU - European Currency Unit
    • + *
    • XBB - European Monetary Unit
    • + *
    • XBC - European Unit of Account (XBC)
    • + *
    • XBD - European Unit of Account (XBD)
    • + *
    • FKP - Falkland Islands Pound
    • + *
    • FJD - Fijian Dollar
    • + *
    • FIM - Finnish Markka
    • + *
    • FRF - French Franc
    • + *
    • XFO - French Gold Franc
    • + *
    • XFU - French UIC-Franc
    • + *
    • GMD - Gambian Dalasi
    • + *
    • GEK - Georgian Kupon Larit
    • + *
    • GEL - Georgian Lari
    • + *
    • DEM - German Mark
    • + *
    • GHS - Ghanaian Cedi
    • + *
    • GHC - Ghanaian Cedi (1979–2007)
    • + *
    • GIP - Gibraltar Pound
    • + *
    • XAU - Gold
    • + *
    • GRD - Greek Drachma
    • + *
    • GTQ - Guatemalan Quetzal
    • + *
    • GWP - Guinea-Bissau Peso
    • + *
    • GNF - Guinean Franc
    • + *
    • GNS - Guinean Syli
    • + *
    • GYD - Guyanaese Dollar
    • + *
    • HTG - Haitian Gourde
    • + *
    • HNL - Honduran Lempira
    • + *
    • HKD - Hong Kong Dollar
    • + *
    • HUF - Hungarian Forint
    • + *
    • IMP - IMP
    • + *
    • ISK - Icelandic Króna
    • + *
    • ISJ - Icelandic Króna (1918–1981)
    • + *
    • INR - Indian Rupee
    • + *
    • IDR - Indonesian Rupiah
    • + *
    • IRR - Iranian Rial
    • + *
    • IQD - Iraqi Dinar
    • + *
    • IEP - Irish Pound
    • + *
    • ILS - Israeli New Shekel
    • + *
    • ILP - Israeli Pound
    • + *
    • ILR - Israeli Shekel (1980–1985)
    • + *
    • ITL - Italian Lira
    • + *
    • JMD - Jamaican Dollar
    • + *
    • JPY - Japanese Yen
    • + *
    • JOD - Jordanian Dinar
    • + *
    • KZT - Kazakhstani Tenge
    • + *
    • KES - Kenyan Shilling
    • + *
    • KWD - Kuwaiti Dinar
    • + *
    • KGS - Kyrgystani Som
    • + *
    • LAK - Laotian Kip
    • + *
    • LVL - Latvian Lats
    • + *
    • LVR - Latvian Ruble
    • + *
    • LBP - Lebanese Pound
    • + *
    • LSL - Lesotho Loti
    • + *
    • LRD - Liberian Dollar
    • + *
    • LYD - Libyan Dinar
    • + *
    • LTL - Lithuanian Litas
    • + *
    • LTT - Lithuanian Talonas
    • + *
    • LUL - Luxembourg Financial Franc
    • + *
    • LUC - Luxembourgian Convertible Franc
    • + *
    • LUF - Luxembourgian Franc
    • + *
    • MOP - Macanese Pataca
    • + *
    • MKD - Macedonian Denar
    • + *
    • MKN - Macedonian Denar (1992–1993)
    • + *
    • MGA - Malagasy Ariary
    • + *
    • MGF - Malagasy Franc
    • + *
    • MWK - Malawian Kwacha
    • + *
    • MYR - Malaysian Ringgit
    • + *
    • MVR - Maldivian Rufiyaa
    • + *
    • MVP - Maldivian Rupee (1947–1981)
    • + *
    • MLF - Malian Franc
    • + *
    • MTL - Maltese Lira
    • + *
    • MTP - Maltese Pound
    • + *
    • MRU - Mauritanian Ouguiya
    • + *
    • MRO - Mauritanian Ouguiya (1973–2017)
    • + *
    • MUR - Mauritian Rupee
    • + *
    • MXV - Mexican Investment Unit
    • + *
    • MXN - Mexican Peso
    • + *
    • MXP - Mexican Silver Peso (1861–1992)
    • + *
    • MDC - Moldovan Cupon
    • + *
    • MDL - Moldovan Leu
    • + *
    • MCF - Monegasque Franc
    • + *
    • MNT - Mongolian Tugrik
    • + *
    • MAD - Moroccan Dirham
    • + *
    • MAF - Moroccan Franc
    • + *
    • MZE - Mozambican Escudo
    • + *
    • MZN - Mozambican Metical
    • + *
    • MZM - Mozambican Metical (1980–2006)
    • + *
    • MMK - Myanmar Kyat
    • + *
    • NAD - Namibian Dollar
    • + *
    • NPR - Nepalese Rupee
    • + *
    • ANG - Netherlands Antillean Guilder
    • + *
    • TWD - New Taiwan Dollar
    • + *
    • NZD - New Zealand Dollar
    • + *
    • NIO - Nicaraguan Córdoba
    • + *
    • NIC - Nicaraguan Córdoba (1988–1991)
    • + *
    • NGN - Nigerian Naira
    • + *
    • KPW - North Korean Won
    • + *
    • NOK - Norwegian Krone
    • + *
    • OMR - Omani Rial
    • + *
    • PKR - Pakistani Rupee
    • + *
    • XPD - Palladium
    • + *
    • PAB - Panamanian Balboa
    • + *
    • PGK - Papua New Guinean Kina
    • + *
    • PYG - Paraguayan Guarani
    • + *
    • PEI - Peruvian Inti
    • + *
    • PEN - Peruvian Sol
    • + *
    • PES - Peruvian Sol (1863–1965)
    • + *
    • PHP - Philippine Peso
    • + *
    • XPT - Platinum
    • + *
    • PLN - Polish Zloty
    • + *
    • PLZ - Polish Zloty (1950–1995)
    • + *
    • PTE - Portuguese Escudo
    • + *
    • GWE - Portuguese Guinea Escudo
    • + *
    • QAR - Qatari Rial
    • + *
    • XRE - RINET Funds
    • + *
    • RHD - Rhodesian Dollar
    • + *
    • RON - Romanian Leu
    • + *
    • ROL - Romanian Leu (1952–2006)
    • + *
    • RUB - Russian Ruble
    • + *
    • RUR - Russian Ruble (1991–1998)
    • + *
    • RWF - Rwandan Franc
    • + *
    • SVC - Salvadoran Colón
    • + *
    • WST - Samoan Tala
    • + *
    • SAR - Saudi Riyal
    • + *
    • RSD - Serbian Dinar
    • + *
    • CSD - Serbian Dinar (2002–2006)
    • + *
    • SCR - Seychellois Rupee
    • + *
    • SLL - Sierra Leonean Leone
    • + *
    • XAG - Silver
    • + *
    • SGD - Singapore Dollar
    • + *
    • SKK - Slovak Koruna
    • + *
    • SIT - Slovenian Tolar
    • + *
    • SBD - Solomon Islands Dollar
    • + *
    • SOS - Somali Shilling
    • + *
    • ZAR - South African Rand
    • + *
    • ZAL - South African Rand (financial)
    • + *
    • KRH - South Korean Hwan (1953–1962)
    • + *
    • KRW - South Korean Won
    • + *
    • KRO - South Korean Won (1945–1953)
    • + *
    • SSP - South Sudanese Pound
    • + *
    • SUR - Soviet Rouble
    • + *
    • ESP - Spanish Peseta
    • + *
    • ESA - Spanish Peseta (A account)
    • + *
    • ESB - Spanish Peseta (convertible account)
    • + *
    • XDR - Special Drawing Rights
    • + *
    • LKR - Sri Lankan Rupee
    • + *
    • SHP - St. Helena Pound
    • + *
    • XSU - Sucre
    • + *
    • SDD - Sudanese Dinar (1992–2007)
    • + *
    • SDG - Sudanese Pound
    • + *
    • SDP - Sudanese Pound (1957–1998)
    • + *
    • SRD - Surinamese Dollar
    • + *
    • SRG - Surinamese Guilder
    • + *
    • SZL - Swazi Lilangeni
    • + *
    • SEK - Swedish Krona
    • + *
    • CHF - Swiss Franc
    • + *
    • SYP - Syrian Pound
    • + *
    • STN - São Tomé & Príncipe Dobra
    • + *
    • STD - São Tomé & Príncipe Dobra (1977–2017)
    • + *
    • TVD - TVD
    • + *
    • TJR - Tajikistani Ruble
    • + *
    • TJS - Tajikistani Somoni
    • + *
    • TZS - Tanzanian Shilling
    • + *
    • XTS - Testing Currency Code
    • + *
    • THB - Thai Baht
    • + *
    • XXX - The codes assigned for transactions where no currency is involved
    • + *
    • TPE - Timorese Escudo
    • + *
    • TOP - Tongan Paʻanga
    • + *
    • TTD - Trinidad & Tobago Dollar
    • + *
    • TND - Tunisian Dinar
    • + *
    • TRY - Turkish Lira
    • + *
    • TRL - Turkish Lira (1922–2005)
    • + *
    • TMT - Turkmenistani Manat
    • + *
    • TMM - Turkmenistani Manat (1993–2009)
    • + *
    • USD - US Dollar
    • + *
    • USN - US Dollar (Next day)
    • + *
    • USS - US Dollar (Same day)
    • + *
    • UGX - Ugandan Shilling
    • + *
    • UGS - Ugandan Shilling (1966–1987)
    • + *
    • UAH - Ukrainian Hryvnia
    • + *
    • UAK - Ukrainian Karbovanets
    • + *
    • AED - United Arab Emirates Dirham
    • + *
    • UYW - Uruguayan Nominal Wage Index Unit
    • + *
    • UYU - Uruguayan Peso
    • + *
    • UYP - Uruguayan Peso (1975–1993)
    • + *
    • UYI - Uruguayan Peso (Indexed Units)
    • + *
    • UZS - Uzbekistani Som
    • + *
    • VUV - Vanuatu Vatu
    • + *
    • VES - Venezuelan Bolívar
    • + *
    • VEB - Venezuelan Bolívar (1871–2008)
    • + *
    • VEF - Venezuelan Bolívar (2008–2018)
    • + *
    • VND - Vietnamese Dong
    • + *
    • VNN - Vietnamese Dong (1978–1985)
    • + *
    • CHE - WIR Euro
    • + *
    • CHW - WIR Franc
    • + *
    • XOF - West African CFA Franc
    • + *
    • YDD - Yemeni Dinar
    • + *
    • YER - Yemeni Rial
    • + *
    • YUN - Yugoslavian Convertible Dinar (1990–1992)
    • + *
    • YUD - Yugoslavian Hard Dinar (1966–1990)
    • + *
    • YUM - Yugoslavian New Dinar (1994–2002)
    • + *
    • YUR - Yugoslavian Reformed Dinar (1992–1993)
    • + *
    • ZWN - ZWN
    • + *
    • ZRN - Zairean New Zaire (1993–1998)
    • + *
    • ZRZ - Zairean Zaire (1971–1993)
    • + *
    • ZMW - Zambian Kwacha
    • + *
    • ZMK - Zambian Kwacha (1968–2012)
    • + *
    • ZWD - Zimbabwean Dollar (1980–2008)
    • + *
    • ZWR - Zimbabwean Dollar (2008)
    • + *
    • ZWL - Zimbabwean Dollar (2009)
    • + *
    + */ @JsonSetter(value = "currency", nulls = Nulls.SKIP) - public Builder currency(Optional currency) { + public Builder currency(Optional currency) { this.currency = currency; return this; } - public Builder currency(TransactionCurrencyEnum currency) { + public Builder currency(JournalEntryRequestCurrency currency) { this.currency = Optional.ofNullable(currency); return this; } + /** + *

    The journal entry's exchange rate.

    + */ @JsonSetter(value = "exchange_rate", nulls = Nulls.SKIP) public Builder exchangeRate(Optional exchangeRate) { this.exchangeRate = exchangeRate; @@ -660,6 +983,9 @@ public Builder exchangeRate(String exchangeRate) { return this; } + /** + *

    The company the journal entry belongs to.

    + */ @JsonSetter(value = "company", nulls = Nulls.SKIP) public Builder company(Optional company) { this.company = company; @@ -684,6 +1010,9 @@ public Builder trackingCategories( return this; } + /** + *

    If the transaction is inclusive or exclusive of tax. True if inclusive, False if exclusive.

    + */ @JsonSetter(value = "inclusive_of_tax", nulls = Nulls.SKIP) public Builder inclusiveOfTax(Optional inclusiveOfTax) { this.inclusiveOfTax = inclusiveOfTax; @@ -706,6 +1035,9 @@ public Builder lines(List lines) { return this; } + /** + *

    Reference number for identifying journal entries.

    + */ @JsonSetter(value = "journal_number", nulls = Nulls.SKIP) public Builder journalNumber(Optional journalNumber) { this.journalNumber = journalNumber; @@ -717,13 +1049,20 @@ public Builder journalNumber(String journalNumber) { return this; } + /** + *

    The journal's posting status.

    + *
      + *
    • UNPOSTED - UNPOSTED
    • + *
    • POSTED - POSTED
    • + *
    + */ @JsonSetter(value = "posting_status", nulls = Nulls.SKIP) - public Builder postingStatus(Optional postingStatus) { + public Builder postingStatus(Optional postingStatus) { this.postingStatus = postingStatus; return this; } - public Builder postingStatus(PostingStatusEnum postingStatus) { + public Builder postingStatus(JournalEntryRequestPostingStatus postingStatus) { this.postingStatus = Optional.ofNullable(postingStatus); return this; } diff --git a/src/main/java/com/merge/api/accounting/types/JournalEntryRequestCurrency.java b/src/main/java/com/merge/api/accounting/types/JournalEntryRequestCurrency.java new file mode 100644 index 000000000..878444785 --- /dev/null +++ b/src/main/java/com/merge/api/accounting/types/JournalEntryRequestCurrency.java @@ -0,0 +1,96 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.merge.api.accounting.types; + +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.databind.DeserializationContext; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.fasterxml.jackson.databind.deser.std.StdDeserializer; +import com.merge.api.core.ObjectMappers; +import java.io.IOException; +import java.util.Objects; + +@JsonDeserialize(using = JournalEntryRequestCurrency.Deserializer.class) +public final class JournalEntryRequestCurrency { + private final Object value; + + private final int type; + + private JournalEntryRequestCurrency(Object value, int type) { + this.value = value; + this.type = type; + } + + @JsonValue + public Object get() { + return this.value; + } + + @SuppressWarnings("unchecked") + public T visit(Visitor visitor) { + if (this.type == 0) { + return visitor.visit((TransactionCurrencyEnum) this.value); + } else if (this.type == 1) { + return visitor.visit((String) this.value); + } + throw new IllegalStateException("Failed to visit value. This should never happen."); + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof JournalEntryRequestCurrency && equalTo((JournalEntryRequestCurrency) other); + } + + private boolean equalTo(JournalEntryRequestCurrency other) { + return value.equals(other.value); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.value); + } + + @java.lang.Override + public String toString() { + return this.value.toString(); + } + + public static JournalEntryRequestCurrency of(TransactionCurrencyEnum value) { + return new JournalEntryRequestCurrency(value, 0); + } + + public static JournalEntryRequestCurrency of(String value) { + return new JournalEntryRequestCurrency(value, 1); + } + + public interface Visitor { + T visit(TransactionCurrencyEnum value); + + T visit(String value); + } + + static final class Deserializer extends StdDeserializer { + Deserializer() { + super(JournalEntryRequestCurrency.class); + } + + @java.lang.Override + public JournalEntryRequestCurrency deserialize(JsonParser p, DeserializationContext context) + throws IOException { + Object value = p.readValueAs(Object.class); + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, TransactionCurrencyEnum.class)); + } catch (IllegalArgumentException e) { + } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, String.class)); + } catch (IllegalArgumentException e) { + } + throw new JsonParseException(p, "Failed to deserialize"); + } + } +} diff --git a/src/main/java/com/merge/api/accounting/types/JournalEntryRequestPostingStatus.java b/src/main/java/com/merge/api/accounting/types/JournalEntryRequestPostingStatus.java new file mode 100644 index 000000000..3dc4df3ed --- /dev/null +++ b/src/main/java/com/merge/api/accounting/types/JournalEntryRequestPostingStatus.java @@ -0,0 +1,96 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.merge.api.accounting.types; + +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.databind.DeserializationContext; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.fasterxml.jackson.databind.deser.std.StdDeserializer; +import com.merge.api.core.ObjectMappers; +import java.io.IOException; +import java.util.Objects; + +@JsonDeserialize(using = JournalEntryRequestPostingStatus.Deserializer.class) +public final class JournalEntryRequestPostingStatus { + private final Object value; + + private final int type; + + private JournalEntryRequestPostingStatus(Object value, int type) { + this.value = value; + this.type = type; + } + + @JsonValue + public Object get() { + return this.value; + } + + @SuppressWarnings("unchecked") + public T visit(Visitor visitor) { + if (this.type == 0) { + return visitor.visit((PostingStatusEnum) this.value); + } else if (this.type == 1) { + return visitor.visit((String) this.value); + } + throw new IllegalStateException("Failed to visit value. This should never happen."); + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof JournalEntryRequestPostingStatus && equalTo((JournalEntryRequestPostingStatus) other); + } + + private boolean equalTo(JournalEntryRequestPostingStatus other) { + return value.equals(other.value); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.value); + } + + @java.lang.Override + public String toString() { + return this.value.toString(); + } + + public static JournalEntryRequestPostingStatus of(PostingStatusEnum value) { + return new JournalEntryRequestPostingStatus(value, 0); + } + + public static JournalEntryRequestPostingStatus of(String value) { + return new JournalEntryRequestPostingStatus(value, 1); + } + + public interface Visitor { + T visit(PostingStatusEnum value); + + T visit(String value); + } + + static final class Deserializer extends StdDeserializer { + Deserializer() { + super(JournalEntryRequestPostingStatus.class); + } + + @java.lang.Override + public JournalEntryRequestPostingStatus deserialize(JsonParser p, DeserializationContext context) + throws IOException { + Object value = p.readValueAs(Object.class); + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, PostingStatusEnum.class)); + } catch (IllegalArgumentException e) { + } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, String.class)); + } catch (IllegalArgumentException e) { + } + throw new JsonParseException(p, "Failed to deserialize"); + } + } +} diff --git a/src/main/java/com/merge/api/accounting/types/JournalLine.java b/src/main/java/com/merge/api/accounting/types/JournalLine.java index bb82b25d0..de0f17d7f 100644 --- a/src/main/java/com/merge/api/accounting/types/JournalLine.java +++ b/src/main/java/com/merge/api/accounting/types/JournalLine.java @@ -38,12 +38,14 @@ public final class JournalLine { private final Optional>> trackingCategories; - private final Optional currency; + private final Optional currency; private final Optional company; private final Optional employee; + private final Optional project; + private final Optional contact; private final Optional taxRate; @@ -67,9 +69,10 @@ private JournalLine( Optional netAmount, Optional trackingCategory, Optional>> trackingCategories, - Optional currency, + Optional currency, Optional company, Optional employee, + Optional project, Optional contact, Optional taxRate, Optional description, @@ -88,6 +91,7 @@ private JournalLine( this.currency = currency; this.company = company; this.employee = employee; + this.project = project; this.contact = contact; this.taxRate = taxRate; this.description = description; @@ -464,7 +468,7 @@ public Optional>> getTrackingCa * */ @JsonProperty("currency") - public Optional getCurrency() { + public Optional getCurrency() { return currency; } @@ -481,6 +485,11 @@ public Optional getEmployee() { return employee; } + @JsonProperty("project") + public Optional getProject() { + return project; + } + @JsonProperty("contact") public Optional getContact() { return contact; @@ -546,6 +555,7 @@ private boolean equalTo(JournalLine other) { && currency.equals(other.currency) && company.equals(other.company) && employee.equals(other.employee) + && project.equals(other.project) && contact.equals(other.contact) && taxRate.equals(other.taxRate) && description.equals(other.description) @@ -568,6 +578,7 @@ public int hashCode() { this.currency, this.company, this.employee, + this.project, this.contact, this.taxRate, this.description, @@ -603,12 +614,14 @@ public static final class Builder { private Optional>> trackingCategories = Optional.empty(); - private Optional currency = Optional.empty(); + private Optional currency = Optional.empty(); private Optional company = Optional.empty(); private Optional employee = Optional.empty(); + private Optional project = Optional.empty(); + private Optional contact = Optional.empty(); private Optional taxRate = Optional.empty(); @@ -638,6 +651,7 @@ public Builder from(JournalLine other) { currency(other.getCurrency()); company(other.getCompany()); employee(other.getEmployee()); + project(other.getProject()); contact(other.getContact()); taxRate(other.getTaxRate()); description(other.getDescription()); @@ -658,6 +672,9 @@ public Builder id(String id) { return this; } + /** + *

    The third-party API ID of the matching object.

    + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; @@ -669,6 +686,9 @@ public Builder remoteId(String remoteId) { return this; } + /** + *

    The datetime that this object was created by Merge.

    + */ @JsonSetter(value = "created_at", nulls = Nulls.SKIP) public Builder createdAt(Optional createdAt) { this.createdAt = createdAt; @@ -680,6 +700,9 @@ public Builder createdAt(OffsetDateTime createdAt) { return this; } + /** + *

    The datetime that this object was modified by Merge.

    + */ @JsonSetter(value = "modified_at", nulls = Nulls.SKIP) public Builder modifiedAt(Optional modifiedAt) { this.modifiedAt = modifiedAt; @@ -702,6 +725,9 @@ public Builder account(JournalLineAccount account) { return this; } + /** + *

    The value of the line item including taxes and other fees.

    + */ @JsonSetter(value = "net_amount", nulls = Nulls.SKIP) public Builder netAmount(Optional netAmount) { this.netAmount = netAmount; @@ -724,6 +750,9 @@ public Builder trackingCategory(JournalLineTrackingCategory trackingCategory) { return this; } + /** + *

    The journal line item's associated tracking categories.

    + */ @JsonSetter(value = "tracking_categories", nulls = Nulls.SKIP) public Builder trackingCategories( Optional>> trackingCategories) { @@ -736,17 +765,331 @@ public Builder trackingCategories(ListThe journal line item's currency.

    + *
      + *
    • XUA - ADB Unit of Account
    • + *
    • AFN - Afghan Afghani
    • + *
    • AFA - Afghan Afghani (1927–2002)
    • + *
    • ALL - Albanian Lek
    • + *
    • ALK - Albanian Lek (1946–1965)
    • + *
    • DZD - Algerian Dinar
    • + *
    • ADP - Andorran Peseta
    • + *
    • AOA - Angolan Kwanza
    • + *
    • AOK - Angolan Kwanza (1977–1991)
    • + *
    • AON - Angolan New Kwanza (1990–2000)
    • + *
    • AOR - Angolan Readjusted Kwanza (1995–1999)
    • + *
    • ARA - Argentine Austral
    • + *
    • ARS - Argentine Peso
    • + *
    • ARM - Argentine Peso (1881–1970)
    • + *
    • ARP - Argentine Peso (1983–1985)
    • + *
    • ARL - Argentine Peso Ley (1970–1983)
    • + *
    • AMD - Armenian Dram
    • + *
    • AWG - Aruban Florin
    • + *
    • AUD - Australian Dollar
    • + *
    • ATS - Austrian Schilling
    • + *
    • AZN - Azerbaijani Manat
    • + *
    • AZM - Azerbaijani Manat (1993–2006)
    • + *
    • BSD - Bahamian Dollar
    • + *
    • BHD - Bahraini Dinar
    • + *
    • BDT - Bangladeshi Taka
    • + *
    • BBD - Barbadian Dollar
    • + *
    • BYN - Belarusian Ruble
    • + *
    • BYB - Belarusian Ruble (1994–1999)
    • + *
    • BYR - Belarusian Ruble (2000–2016)
    • + *
    • BEF - Belgian Franc
    • + *
    • BEC - Belgian Franc (convertible)
    • + *
    • BEL - Belgian Franc (financial)
    • + *
    • BZD - Belize Dollar
    • + *
    • BMD - Bermudan Dollar
    • + *
    • BTN - Bhutanese Ngultrum
    • + *
    • BOB - Bolivian Boliviano
    • + *
    • BOL - Bolivian Boliviano (1863–1963)
    • + *
    • BOV - Bolivian Mvdol
    • + *
    • BOP - Bolivian Peso
    • + *
    • BAM - Bosnia-Herzegovina Convertible Mark
    • + *
    • BAD - Bosnia-Herzegovina Dinar (1992–1994)
    • + *
    • BAN - Bosnia-Herzegovina New Dinar (1994–1997)
    • + *
    • BWP - Botswanan Pula
    • + *
    • BRC - Brazilian Cruzado (1986–1989)
    • + *
    • BRZ - Brazilian Cruzeiro (1942–1967)
    • + *
    • BRE - Brazilian Cruzeiro (1990–1993)
    • + *
    • BRR - Brazilian Cruzeiro (1993–1994)
    • + *
    • BRN - Brazilian New Cruzado (1989–1990)
    • + *
    • BRB - Brazilian New Cruzeiro (1967–1986)
    • + *
    • BRL - Brazilian Real
    • + *
    • GBP - British Pound
    • + *
    • BND - Brunei Dollar
    • + *
    • BGL - Bulgarian Hard Lev
    • + *
    • BGN - Bulgarian Lev
    • + *
    • BGO - Bulgarian Lev (1879–1952)
    • + *
    • BGM - Bulgarian Socialist Lev
    • + *
    • BUK - Burmese Kyat
    • + *
    • BIF - Burundian Franc
    • + *
    • XPF - CFP Franc
    • + *
    • KHR - Cambodian Riel
    • + *
    • CAD - Canadian Dollar
    • + *
    • CVE - Cape Verdean Escudo
    • + *
    • KYD - Cayman Islands Dollar
    • + *
    • XAF - Central African CFA Franc
    • + *
    • CLE - Chilean Escudo
    • + *
    • CLP - Chilean Peso
    • + *
    • CLF - Chilean Unit of Account (UF)
    • + *
    • CNX - Chinese People’s Bank Dollar
    • + *
    • CNY - Chinese Yuan
    • + *
    • CNH - Chinese Yuan (offshore)
    • + *
    • COP - Colombian Peso
    • + *
    • COU - Colombian Real Value Unit
    • + *
    • KMF - Comorian Franc
    • + *
    • CDF - Congolese Franc
    • + *
    • CRC - Costa Rican Colón
    • + *
    • HRD - Croatian Dinar
    • + *
    • HRK - Croatian Kuna
    • + *
    • CUC - Cuban Convertible Peso
    • + *
    • CUP - Cuban Peso
    • + *
    • CYP - Cypriot Pound
    • + *
    • CZK - Czech Koruna
    • + *
    • CSK - Czechoslovak Hard Koruna
    • + *
    • DKK - Danish Krone
    • + *
    • DJF - Djiboutian Franc
    • + *
    • DOP - Dominican Peso
    • + *
    • NLG - Dutch Guilder
    • + *
    • XCD - East Caribbean Dollar
    • + *
    • DDM - East German Mark
    • + *
    • ECS - Ecuadorian Sucre
    • + *
    • ECV - Ecuadorian Unit of Constant Value
    • + *
    • EGP - Egyptian Pound
    • + *
    • GQE - Equatorial Guinean Ekwele
    • + *
    • ERN - Eritrean Nakfa
    • + *
    • EEK - Estonian Kroon
    • + *
    • ETB - Ethiopian Birr
    • + *
    • EUR - Euro
    • + *
    • XBA - European Composite Unit
    • + *
    • XEU - European Currency Unit
    • + *
    • XBB - European Monetary Unit
    • + *
    • XBC - European Unit of Account (XBC)
    • + *
    • XBD - European Unit of Account (XBD)
    • + *
    • FKP - Falkland Islands Pound
    • + *
    • FJD - Fijian Dollar
    • + *
    • FIM - Finnish Markka
    • + *
    • FRF - French Franc
    • + *
    • XFO - French Gold Franc
    • + *
    • XFU - French UIC-Franc
    • + *
    • GMD - Gambian Dalasi
    • + *
    • GEK - Georgian Kupon Larit
    • + *
    • GEL - Georgian Lari
    • + *
    • DEM - German Mark
    • + *
    • GHS - Ghanaian Cedi
    • + *
    • GHC - Ghanaian Cedi (1979–2007)
    • + *
    • GIP - Gibraltar Pound
    • + *
    • XAU - Gold
    • + *
    • GRD - Greek Drachma
    • + *
    • GTQ - Guatemalan Quetzal
    • + *
    • GWP - Guinea-Bissau Peso
    • + *
    • GNF - Guinean Franc
    • + *
    • GNS - Guinean Syli
    • + *
    • GYD - Guyanaese Dollar
    • + *
    • HTG - Haitian Gourde
    • + *
    • HNL - Honduran Lempira
    • + *
    • HKD - Hong Kong Dollar
    • + *
    • HUF - Hungarian Forint
    • + *
    • IMP - IMP
    • + *
    • ISK - Icelandic Króna
    • + *
    • ISJ - Icelandic Króna (1918–1981)
    • + *
    • INR - Indian Rupee
    • + *
    • IDR - Indonesian Rupiah
    • + *
    • IRR - Iranian Rial
    • + *
    • IQD - Iraqi Dinar
    • + *
    • IEP - Irish Pound
    • + *
    • ILS - Israeli New Shekel
    • + *
    • ILP - Israeli Pound
    • + *
    • ILR - Israeli Shekel (1980–1985)
    • + *
    • ITL - Italian Lira
    • + *
    • JMD - Jamaican Dollar
    • + *
    • JPY - Japanese Yen
    • + *
    • JOD - Jordanian Dinar
    • + *
    • KZT - Kazakhstani Tenge
    • + *
    • KES - Kenyan Shilling
    • + *
    • KWD - Kuwaiti Dinar
    • + *
    • KGS - Kyrgystani Som
    • + *
    • LAK - Laotian Kip
    • + *
    • LVL - Latvian Lats
    • + *
    • LVR - Latvian Ruble
    • + *
    • LBP - Lebanese Pound
    • + *
    • LSL - Lesotho Loti
    • + *
    • LRD - Liberian Dollar
    • + *
    • LYD - Libyan Dinar
    • + *
    • LTL - Lithuanian Litas
    • + *
    • LTT - Lithuanian Talonas
    • + *
    • LUL - Luxembourg Financial Franc
    • + *
    • LUC - Luxembourgian Convertible Franc
    • + *
    • LUF - Luxembourgian Franc
    • + *
    • MOP - Macanese Pataca
    • + *
    • MKD - Macedonian Denar
    • + *
    • MKN - Macedonian Denar (1992–1993)
    • + *
    • MGA - Malagasy Ariary
    • + *
    • MGF - Malagasy Franc
    • + *
    • MWK - Malawian Kwacha
    • + *
    • MYR - Malaysian Ringgit
    • + *
    • MVR - Maldivian Rufiyaa
    • + *
    • MVP - Maldivian Rupee (1947–1981)
    • + *
    • MLF - Malian Franc
    • + *
    • MTL - Maltese Lira
    • + *
    • MTP - Maltese Pound
    • + *
    • MRU - Mauritanian Ouguiya
    • + *
    • MRO - Mauritanian Ouguiya (1973–2017)
    • + *
    • MUR - Mauritian Rupee
    • + *
    • MXV - Mexican Investment Unit
    • + *
    • MXN - Mexican Peso
    • + *
    • MXP - Mexican Silver Peso (1861–1992)
    • + *
    • MDC - Moldovan Cupon
    • + *
    • MDL - Moldovan Leu
    • + *
    • MCF - Monegasque Franc
    • + *
    • MNT - Mongolian Tugrik
    • + *
    • MAD - Moroccan Dirham
    • + *
    • MAF - Moroccan Franc
    • + *
    • MZE - Mozambican Escudo
    • + *
    • MZN - Mozambican Metical
    • + *
    • MZM - Mozambican Metical (1980–2006)
    • + *
    • MMK - Myanmar Kyat
    • + *
    • NAD - Namibian Dollar
    • + *
    • NPR - Nepalese Rupee
    • + *
    • ANG - Netherlands Antillean Guilder
    • + *
    • TWD - New Taiwan Dollar
    • + *
    • NZD - New Zealand Dollar
    • + *
    • NIO - Nicaraguan Córdoba
    • + *
    • NIC - Nicaraguan Córdoba (1988–1991)
    • + *
    • NGN - Nigerian Naira
    • + *
    • KPW - North Korean Won
    • + *
    • NOK - Norwegian Krone
    • + *
    • OMR - Omani Rial
    • + *
    • PKR - Pakistani Rupee
    • + *
    • XPD - Palladium
    • + *
    • PAB - Panamanian Balboa
    • + *
    • PGK - Papua New Guinean Kina
    • + *
    • PYG - Paraguayan Guarani
    • + *
    • PEI - Peruvian Inti
    • + *
    • PEN - Peruvian Sol
    • + *
    • PES - Peruvian Sol (1863–1965)
    • + *
    • PHP - Philippine Peso
    • + *
    • XPT - Platinum
    • + *
    • PLN - Polish Zloty
    • + *
    • PLZ - Polish Zloty (1950–1995)
    • + *
    • PTE - Portuguese Escudo
    • + *
    • GWE - Portuguese Guinea Escudo
    • + *
    • QAR - Qatari Rial
    • + *
    • XRE - RINET Funds
    • + *
    • RHD - Rhodesian Dollar
    • + *
    • RON - Romanian Leu
    • + *
    • ROL - Romanian Leu (1952–2006)
    • + *
    • RUB - Russian Ruble
    • + *
    • RUR - Russian Ruble (1991–1998)
    • + *
    • RWF - Rwandan Franc
    • + *
    • SVC - Salvadoran Colón
    • + *
    • WST - Samoan Tala
    • + *
    • SAR - Saudi Riyal
    • + *
    • RSD - Serbian Dinar
    • + *
    • CSD - Serbian Dinar (2002–2006)
    • + *
    • SCR - Seychellois Rupee
    • + *
    • SLL - Sierra Leonean Leone
    • + *
    • XAG - Silver
    • + *
    • SGD - Singapore Dollar
    • + *
    • SKK - Slovak Koruna
    • + *
    • SIT - Slovenian Tolar
    • + *
    • SBD - Solomon Islands Dollar
    • + *
    • SOS - Somali Shilling
    • + *
    • ZAR - South African Rand
    • + *
    • ZAL - South African Rand (financial)
    • + *
    • KRH - South Korean Hwan (1953–1962)
    • + *
    • KRW - South Korean Won
    • + *
    • KRO - South Korean Won (1945–1953)
    • + *
    • SSP - South Sudanese Pound
    • + *
    • SUR - Soviet Rouble
    • + *
    • ESP - Spanish Peseta
    • + *
    • ESA - Spanish Peseta (A account)
    • + *
    • ESB - Spanish Peseta (convertible account)
    • + *
    • XDR - Special Drawing Rights
    • + *
    • LKR - Sri Lankan Rupee
    • + *
    • SHP - St. Helena Pound
    • + *
    • XSU - Sucre
    • + *
    • SDD - Sudanese Dinar (1992–2007)
    • + *
    • SDG - Sudanese Pound
    • + *
    • SDP - Sudanese Pound (1957–1998)
    • + *
    • SRD - Surinamese Dollar
    • + *
    • SRG - Surinamese Guilder
    • + *
    • SZL - Swazi Lilangeni
    • + *
    • SEK - Swedish Krona
    • + *
    • CHF - Swiss Franc
    • + *
    • SYP - Syrian Pound
    • + *
    • STN - São Tomé & Príncipe Dobra
    • + *
    • STD - São Tomé & Príncipe Dobra (1977–2017)
    • + *
    • TVD - TVD
    • + *
    • TJR - Tajikistani Ruble
    • + *
    • TJS - Tajikistani Somoni
    • + *
    • TZS - Tanzanian Shilling
    • + *
    • XTS - Testing Currency Code
    • + *
    • THB - Thai Baht
    • + *
    • XXX - The codes assigned for transactions where no currency is involved
    • + *
    • TPE - Timorese Escudo
    • + *
    • TOP - Tongan Paʻanga
    • + *
    • TTD - Trinidad & Tobago Dollar
    • + *
    • TND - Tunisian Dinar
    • + *
    • TRY - Turkish Lira
    • + *
    • TRL - Turkish Lira (1922–2005)
    • + *
    • TMT - Turkmenistani Manat
    • + *
    • TMM - Turkmenistani Manat (1993–2009)
    • + *
    • USD - US Dollar
    • + *
    • USN - US Dollar (Next day)
    • + *
    • USS - US Dollar (Same day)
    • + *
    • UGX - Ugandan Shilling
    • + *
    • UGS - Ugandan Shilling (1966–1987)
    • + *
    • UAH - Ukrainian Hryvnia
    • + *
    • UAK - Ukrainian Karbovanets
    • + *
    • AED - United Arab Emirates Dirham
    • + *
    • UYW - Uruguayan Nominal Wage Index Unit
    • + *
    • UYU - Uruguayan Peso
    • + *
    • UYP - Uruguayan Peso (1975–1993)
    • + *
    • UYI - Uruguayan Peso (Indexed Units)
    • + *
    • UZS - Uzbekistani Som
    • + *
    • VUV - Vanuatu Vatu
    • + *
    • VES - Venezuelan Bolívar
    • + *
    • VEB - Venezuelan Bolívar (1871–2008)
    • + *
    • VEF - Venezuelan Bolívar (2008–2018)
    • + *
    • VND - Vietnamese Dong
    • + *
    • VNN - Vietnamese Dong (1978–1985)
    • + *
    • CHE - WIR Euro
    • + *
    • CHW - WIR Franc
    • + *
    • XOF - West African CFA Franc
    • + *
    • YDD - Yemeni Dinar
    • + *
    • YER - Yemeni Rial
    • + *
    • YUN - Yugoslavian Convertible Dinar (1990–1992)
    • + *
    • YUD - Yugoslavian Hard Dinar (1966–1990)
    • + *
    • YUM - Yugoslavian New Dinar (1994–2002)
    • + *
    • YUR - Yugoslavian Reformed Dinar (1992–1993)
    • + *
    • ZWN - ZWN
    • + *
    • ZRN - Zairean New Zaire (1993–1998)
    • + *
    • ZRZ - Zairean Zaire (1971–1993)
    • + *
    • ZMW - Zambian Kwacha
    • + *
    • ZMK - Zambian Kwacha (1968–2012)
    • + *
    • ZWD - Zimbabwean Dollar (1980–2008)
    • + *
    • ZWR - Zimbabwean Dollar (2008)
    • + *
    • ZWL - Zimbabwean Dollar (2009)
    • + *
    + */ @JsonSetter(value = "currency", nulls = Nulls.SKIP) - public Builder currency(Optional currency) { + public Builder currency(Optional currency) { this.currency = currency; return this; } - public Builder currency(TransactionCurrencyEnum currency) { + public Builder currency(JournalLineCurrency currency) { this.currency = Optional.ofNullable(currency); return this; } + /** + *

    The company the journal entry belongs to.

    + */ @JsonSetter(value = "company", nulls = Nulls.SKIP) public Builder company(Optional company) { this.company = company; @@ -769,6 +1112,17 @@ public Builder employee(String employee) { return this; } + @JsonSetter(value = "project", nulls = Nulls.SKIP) + public Builder project(Optional project) { + this.project = project; + return this; + } + + public Builder project(JournalLineProject project) { + this.project = Optional.ofNullable(project); + return this; + } + @JsonSetter(value = "contact", nulls = Nulls.SKIP) public Builder contact(Optional contact) { this.contact = contact; @@ -780,6 +1134,9 @@ public Builder contact(String contact) { return this; } + /** + *

    The tax rate that applies to this line item.

    + */ @JsonSetter(value = "tax_rate", nulls = Nulls.SKIP) public Builder taxRate(Optional taxRate) { this.taxRate = taxRate; @@ -791,6 +1148,9 @@ public Builder taxRate(String taxRate) { return this; } + /** + *

    The line's description.

    + */ @JsonSetter(value = "description", nulls = Nulls.SKIP) public Builder description(Optional description) { this.description = description; @@ -802,6 +1162,9 @@ public Builder description(String description) { return this; } + /** + *

    The journal line item's exchange rate.

    + */ @JsonSetter(value = "exchange_rate", nulls = Nulls.SKIP) public Builder exchangeRate(Optional exchangeRate) { this.exchangeRate = exchangeRate; @@ -813,6 +1176,9 @@ public Builder exchangeRate(String exchangeRate) { return this; } + /** + *

    Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

    + */ @JsonSetter(value = "remote_was_deleted", nulls = Nulls.SKIP) public Builder remoteWasDeleted(Optional remoteWasDeleted) { this.remoteWasDeleted = remoteWasDeleted; @@ -848,6 +1214,7 @@ public JournalLine build() { currency, company, employee, + project, contact, taxRate, description, diff --git a/src/main/java/com/merge/api/accounting/types/JournalLineCurrency.java b/src/main/java/com/merge/api/accounting/types/JournalLineCurrency.java new file mode 100644 index 000000000..d93554cee --- /dev/null +++ b/src/main/java/com/merge/api/accounting/types/JournalLineCurrency.java @@ -0,0 +1,95 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.merge.api.accounting.types; + +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.databind.DeserializationContext; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.fasterxml.jackson.databind.deser.std.StdDeserializer; +import com.merge.api.core.ObjectMappers; +import java.io.IOException; +import java.util.Objects; + +@JsonDeserialize(using = JournalLineCurrency.Deserializer.class) +public final class JournalLineCurrency { + private final Object value; + + private final int type; + + private JournalLineCurrency(Object value, int type) { + this.value = value; + this.type = type; + } + + @JsonValue + public Object get() { + return this.value; + } + + @SuppressWarnings("unchecked") + public T visit(Visitor visitor) { + if (this.type == 0) { + return visitor.visit((TransactionCurrencyEnum) this.value); + } else if (this.type == 1) { + return visitor.visit((String) this.value); + } + throw new IllegalStateException("Failed to visit value. This should never happen."); + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof JournalLineCurrency && equalTo((JournalLineCurrency) other); + } + + private boolean equalTo(JournalLineCurrency other) { + return value.equals(other.value); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.value); + } + + @java.lang.Override + public String toString() { + return this.value.toString(); + } + + public static JournalLineCurrency of(TransactionCurrencyEnum value) { + return new JournalLineCurrency(value, 0); + } + + public static JournalLineCurrency of(String value) { + return new JournalLineCurrency(value, 1); + } + + public interface Visitor { + T visit(TransactionCurrencyEnum value); + + T visit(String value); + } + + static final class Deserializer extends StdDeserializer { + Deserializer() { + super(JournalLineCurrency.class); + } + + @java.lang.Override + public JournalLineCurrency deserialize(JsonParser p, DeserializationContext context) throws IOException { + Object value = p.readValueAs(Object.class); + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, TransactionCurrencyEnum.class)); + } catch (IllegalArgumentException e) { + } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, String.class)); + } catch (IllegalArgumentException e) { + } + throw new JsonParseException(p, "Failed to deserialize"); + } + } +} diff --git a/src/main/java/com/merge/api/accounting/types/JournalLineProject.java b/src/main/java/com/merge/api/accounting/types/JournalLineProject.java new file mode 100644 index 000000000..6ae28ba93 --- /dev/null +++ b/src/main/java/com/merge/api/accounting/types/JournalLineProject.java @@ -0,0 +1,95 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.merge.api.accounting.types; + +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.databind.DeserializationContext; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.fasterxml.jackson.databind.deser.std.StdDeserializer; +import com.merge.api.core.ObjectMappers; +import java.io.IOException; +import java.util.Objects; + +@JsonDeserialize(using = JournalLineProject.Deserializer.class) +public final class JournalLineProject { + private final Object value; + + private final int type; + + private JournalLineProject(Object value, int type) { + this.value = value; + this.type = type; + } + + @JsonValue + public Object get() { + return this.value; + } + + @SuppressWarnings("unchecked") + public T visit(Visitor visitor) { + if (this.type == 0) { + return visitor.visit((String) this.value); + } else if (this.type == 1) { + return visitor.visit((Project) this.value); + } + throw new IllegalStateException("Failed to visit value. This should never happen."); + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof JournalLineProject && equalTo((JournalLineProject) other); + } + + private boolean equalTo(JournalLineProject other) { + return value.equals(other.value); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.value); + } + + @java.lang.Override + public String toString() { + return this.value.toString(); + } + + public static JournalLineProject of(String value) { + return new JournalLineProject(value, 0); + } + + public static JournalLineProject of(Project value) { + return new JournalLineProject(value, 1); + } + + public interface Visitor { + T visit(String value); + + T visit(Project value); + } + + static final class Deserializer extends StdDeserializer { + Deserializer() { + super(JournalLineProject.class); + } + + @java.lang.Override + public JournalLineProject deserialize(JsonParser p, DeserializationContext context) throws IOException { + Object value = p.readValueAs(Object.class); + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, String.class)); + } catch (IllegalArgumentException e) { + } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, Project.class)); + } catch (IllegalArgumentException e) { + } + throw new JsonParseException(p, "Failed to deserialize"); + } + } +} diff --git a/src/main/java/com/merge/api/accounting/types/JournalLineRequest.java b/src/main/java/com/merge/api/accounting/types/JournalLineRequest.java index 151745bc2..38c183ba5 100644 --- a/src/main/java/com/merge/api/accounting/types/JournalLineRequest.java +++ b/src/main/java/com/merge/api/accounting/types/JournalLineRequest.java @@ -32,12 +32,14 @@ public final class JournalLineRequest { private final Optional>> trackingCategories; - private final Optional currency; + private final Optional currency; private final Optional company; private final Optional employee; + private final Optional project; + private final Optional contact; private final Optional taxRate; @@ -60,9 +62,10 @@ private JournalLineRequest( Optional netAmount, Optional trackingCategory, Optional>> trackingCategories, - Optional currency, + Optional currency, Optional company, Optional employee, + Optional project, Optional contact, Optional taxRate, Optional description, @@ -79,6 +82,7 @@ private JournalLineRequest( this.currency = currency; this.company = company; this.employee = employee; + this.project = project; this.contact = contact; this.taxRate = taxRate; this.description = description; @@ -435,7 +439,7 @@ public Optional>> getTra * */ @JsonProperty("currency") - public Optional getCurrency() { + public Optional getCurrency() { return currency; } @@ -452,6 +456,11 @@ public Optional getEmployee() { return employee; } + @JsonProperty("project") + public Optional getProject() { + return project; + } + @JsonProperty("contact") public Optional getContact() { return contact; @@ -516,6 +525,7 @@ private boolean equalTo(JournalLineRequest other) { && currency.equals(other.currency) && company.equals(other.company) && employee.equals(other.employee) + && project.equals(other.project) && contact.equals(other.contact) && taxRate.equals(other.taxRate) && description.equals(other.description) @@ -536,6 +546,7 @@ public int hashCode() { this.currency, this.company, this.employee, + this.project, this.contact, this.taxRate, this.description, @@ -567,12 +578,14 @@ public static final class Builder { private Optional>> trackingCategories = Optional.empty(); - private Optional currency = Optional.empty(); + private Optional currency = Optional.empty(); private Optional company = Optional.empty(); private Optional employee = Optional.empty(); + private Optional project = Optional.empty(); + private Optional contact = Optional.empty(); private Optional taxRate = Optional.empty(); @@ -601,6 +614,7 @@ public Builder from(JournalLineRequest other) { currency(other.getCurrency()); company(other.getCompany()); employee(other.getEmployee()); + project(other.getProject()); contact(other.getContact()); taxRate(other.getTaxRate()); description(other.getDescription()); @@ -611,6 +625,9 @@ public Builder from(JournalLineRequest other) { return this; } + /** + *

    The third-party API ID of the matching object.

    + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; @@ -633,6 +650,9 @@ public Builder account(JournalLineRequestAccount account) { return this; } + /** + *

    The value of the line item including taxes and other fees.

    + */ @JsonSetter(value = "net_amount", nulls = Nulls.SKIP) public Builder netAmount(Optional netAmount) { this.netAmount = netAmount; @@ -655,6 +675,9 @@ public Builder trackingCategory(JournalLineRequestTrackingCategory trackingCateg return this; } + /** + *

    The journal line item's associated tracking categories.

    + */ @JsonSetter(value = "tracking_categories", nulls = Nulls.SKIP) public Builder trackingCategories( Optional>> trackingCategories) { @@ -667,17 +690,331 @@ public Builder trackingCategories(ListThe journal line item's currency.

    + *
      + *
    • XUA - ADB Unit of Account
    • + *
    • AFN - Afghan Afghani
    • + *
    • AFA - Afghan Afghani (1927–2002)
    • + *
    • ALL - Albanian Lek
    • + *
    • ALK - Albanian Lek (1946–1965)
    • + *
    • DZD - Algerian Dinar
    • + *
    • ADP - Andorran Peseta
    • + *
    • AOA - Angolan Kwanza
    • + *
    • AOK - Angolan Kwanza (1977–1991)
    • + *
    • AON - Angolan New Kwanza (1990–2000)
    • + *
    • AOR - Angolan Readjusted Kwanza (1995–1999)
    • + *
    • ARA - Argentine Austral
    • + *
    • ARS - Argentine Peso
    • + *
    • ARM - Argentine Peso (1881–1970)
    • + *
    • ARP - Argentine Peso (1983–1985)
    • + *
    • ARL - Argentine Peso Ley (1970–1983)
    • + *
    • AMD - Armenian Dram
    • + *
    • AWG - Aruban Florin
    • + *
    • AUD - Australian Dollar
    • + *
    • ATS - Austrian Schilling
    • + *
    • AZN - Azerbaijani Manat
    • + *
    • AZM - Azerbaijani Manat (1993–2006)
    • + *
    • BSD - Bahamian Dollar
    • + *
    • BHD - Bahraini Dinar
    • + *
    • BDT - Bangladeshi Taka
    • + *
    • BBD - Barbadian Dollar
    • + *
    • BYN - Belarusian Ruble
    • + *
    • BYB - Belarusian Ruble (1994–1999)
    • + *
    • BYR - Belarusian Ruble (2000–2016)
    • + *
    • BEF - Belgian Franc
    • + *
    • BEC - Belgian Franc (convertible)
    • + *
    • BEL - Belgian Franc (financial)
    • + *
    • BZD - Belize Dollar
    • + *
    • BMD - Bermudan Dollar
    • + *
    • BTN - Bhutanese Ngultrum
    • + *
    • BOB - Bolivian Boliviano
    • + *
    • BOL - Bolivian Boliviano (1863–1963)
    • + *
    • BOV - Bolivian Mvdol
    • + *
    • BOP - Bolivian Peso
    • + *
    • BAM - Bosnia-Herzegovina Convertible Mark
    • + *
    • BAD - Bosnia-Herzegovina Dinar (1992–1994)
    • + *
    • BAN - Bosnia-Herzegovina New Dinar (1994–1997)
    • + *
    • BWP - Botswanan Pula
    • + *
    • BRC - Brazilian Cruzado (1986–1989)
    • + *
    • BRZ - Brazilian Cruzeiro (1942–1967)
    • + *
    • BRE - Brazilian Cruzeiro (1990–1993)
    • + *
    • BRR - Brazilian Cruzeiro (1993–1994)
    • + *
    • BRN - Brazilian New Cruzado (1989–1990)
    • + *
    • BRB - Brazilian New Cruzeiro (1967–1986)
    • + *
    • BRL - Brazilian Real
    • + *
    • GBP - British Pound
    • + *
    • BND - Brunei Dollar
    • + *
    • BGL - Bulgarian Hard Lev
    • + *
    • BGN - Bulgarian Lev
    • + *
    • BGO - Bulgarian Lev (1879–1952)
    • + *
    • BGM - Bulgarian Socialist Lev
    • + *
    • BUK - Burmese Kyat
    • + *
    • BIF - Burundian Franc
    • + *
    • XPF - CFP Franc
    • + *
    • KHR - Cambodian Riel
    • + *
    • CAD - Canadian Dollar
    • + *
    • CVE - Cape Verdean Escudo
    • + *
    • KYD - Cayman Islands Dollar
    • + *
    • XAF - Central African CFA Franc
    • + *
    • CLE - Chilean Escudo
    • + *
    • CLP - Chilean Peso
    • + *
    • CLF - Chilean Unit of Account (UF)
    • + *
    • CNX - Chinese People’s Bank Dollar
    • + *
    • CNY - Chinese Yuan
    • + *
    • CNH - Chinese Yuan (offshore)
    • + *
    • COP - Colombian Peso
    • + *
    • COU - Colombian Real Value Unit
    • + *
    • KMF - Comorian Franc
    • + *
    • CDF - Congolese Franc
    • + *
    • CRC - Costa Rican Colón
    • + *
    • HRD - Croatian Dinar
    • + *
    • HRK - Croatian Kuna
    • + *
    • CUC - Cuban Convertible Peso
    • + *
    • CUP - Cuban Peso
    • + *
    • CYP - Cypriot Pound
    • + *
    • CZK - Czech Koruna
    • + *
    • CSK - Czechoslovak Hard Koruna
    • + *
    • DKK - Danish Krone
    • + *
    • DJF - Djiboutian Franc
    • + *
    • DOP - Dominican Peso
    • + *
    • NLG - Dutch Guilder
    • + *
    • XCD - East Caribbean Dollar
    • + *
    • DDM - East German Mark
    • + *
    • ECS - Ecuadorian Sucre
    • + *
    • ECV - Ecuadorian Unit of Constant Value
    • + *
    • EGP - Egyptian Pound
    • + *
    • GQE - Equatorial Guinean Ekwele
    • + *
    • ERN - Eritrean Nakfa
    • + *
    • EEK - Estonian Kroon
    • + *
    • ETB - Ethiopian Birr
    • + *
    • EUR - Euro
    • + *
    • XBA - European Composite Unit
    • + *
    • XEU - European Currency Unit
    • + *
    • XBB - European Monetary Unit
    • + *
    • XBC - European Unit of Account (XBC)
    • + *
    • XBD - European Unit of Account (XBD)
    • + *
    • FKP - Falkland Islands Pound
    • + *
    • FJD - Fijian Dollar
    • + *
    • FIM - Finnish Markka
    • + *
    • FRF - French Franc
    • + *
    • XFO - French Gold Franc
    • + *
    • XFU - French UIC-Franc
    • + *
    • GMD - Gambian Dalasi
    • + *
    • GEK - Georgian Kupon Larit
    • + *
    • GEL - Georgian Lari
    • + *
    • DEM - German Mark
    • + *
    • GHS - Ghanaian Cedi
    • + *
    • GHC - Ghanaian Cedi (1979–2007)
    • + *
    • GIP - Gibraltar Pound
    • + *
    • XAU - Gold
    • + *
    • GRD - Greek Drachma
    • + *
    • GTQ - Guatemalan Quetzal
    • + *
    • GWP - Guinea-Bissau Peso
    • + *
    • GNF - Guinean Franc
    • + *
    • GNS - Guinean Syli
    • + *
    • GYD - Guyanaese Dollar
    • + *
    • HTG - Haitian Gourde
    • + *
    • HNL - Honduran Lempira
    • + *
    • HKD - Hong Kong Dollar
    • + *
    • HUF - Hungarian Forint
    • + *
    • IMP - IMP
    • + *
    • ISK - Icelandic Króna
    • + *
    • ISJ - Icelandic Króna (1918–1981)
    • + *
    • INR - Indian Rupee
    • + *
    • IDR - Indonesian Rupiah
    • + *
    • IRR - Iranian Rial
    • + *
    • IQD - Iraqi Dinar
    • + *
    • IEP - Irish Pound
    • + *
    • ILS - Israeli New Shekel
    • + *
    • ILP - Israeli Pound
    • + *
    • ILR - Israeli Shekel (1980–1985)
    • + *
    • ITL - Italian Lira
    • + *
    • JMD - Jamaican Dollar
    • + *
    • JPY - Japanese Yen
    • + *
    • JOD - Jordanian Dinar
    • + *
    • KZT - Kazakhstani Tenge
    • + *
    • KES - Kenyan Shilling
    • + *
    • KWD - Kuwaiti Dinar
    • + *
    • KGS - Kyrgystani Som
    • + *
    • LAK - Laotian Kip
    • + *
    • LVL - Latvian Lats
    • + *
    • LVR - Latvian Ruble
    • + *
    • LBP - Lebanese Pound
    • + *
    • LSL - Lesotho Loti
    • + *
    • LRD - Liberian Dollar
    • + *
    • LYD - Libyan Dinar
    • + *
    • LTL - Lithuanian Litas
    • + *
    • LTT - Lithuanian Talonas
    • + *
    • LUL - Luxembourg Financial Franc
    • + *
    • LUC - Luxembourgian Convertible Franc
    • + *
    • LUF - Luxembourgian Franc
    • + *
    • MOP - Macanese Pataca
    • + *
    • MKD - Macedonian Denar
    • + *
    • MKN - Macedonian Denar (1992–1993)
    • + *
    • MGA - Malagasy Ariary
    • + *
    • MGF - Malagasy Franc
    • + *
    • MWK - Malawian Kwacha
    • + *
    • MYR - Malaysian Ringgit
    • + *
    • MVR - Maldivian Rufiyaa
    • + *
    • MVP - Maldivian Rupee (1947–1981)
    • + *
    • MLF - Malian Franc
    • + *
    • MTL - Maltese Lira
    • + *
    • MTP - Maltese Pound
    • + *
    • MRU - Mauritanian Ouguiya
    • + *
    • MRO - Mauritanian Ouguiya (1973–2017)
    • + *
    • MUR - Mauritian Rupee
    • + *
    • MXV - Mexican Investment Unit
    • + *
    • MXN - Mexican Peso
    • + *
    • MXP - Mexican Silver Peso (1861–1992)
    • + *
    • MDC - Moldovan Cupon
    • + *
    • MDL - Moldovan Leu
    • + *
    • MCF - Monegasque Franc
    • + *
    • MNT - Mongolian Tugrik
    • + *
    • MAD - Moroccan Dirham
    • + *
    • MAF - Moroccan Franc
    • + *
    • MZE - Mozambican Escudo
    • + *
    • MZN - Mozambican Metical
    • + *
    • MZM - Mozambican Metical (1980–2006)
    • + *
    • MMK - Myanmar Kyat
    • + *
    • NAD - Namibian Dollar
    • + *
    • NPR - Nepalese Rupee
    • + *
    • ANG - Netherlands Antillean Guilder
    • + *
    • TWD - New Taiwan Dollar
    • + *
    • NZD - New Zealand Dollar
    • + *
    • NIO - Nicaraguan Córdoba
    • + *
    • NIC - Nicaraguan Córdoba (1988–1991)
    • + *
    • NGN - Nigerian Naira
    • + *
    • KPW - North Korean Won
    • + *
    • NOK - Norwegian Krone
    • + *
    • OMR - Omani Rial
    • + *
    • PKR - Pakistani Rupee
    • + *
    • XPD - Palladium
    • + *
    • PAB - Panamanian Balboa
    • + *
    • PGK - Papua New Guinean Kina
    • + *
    • PYG - Paraguayan Guarani
    • + *
    • PEI - Peruvian Inti
    • + *
    • PEN - Peruvian Sol
    • + *
    • PES - Peruvian Sol (1863–1965)
    • + *
    • PHP - Philippine Peso
    • + *
    • XPT - Platinum
    • + *
    • PLN - Polish Zloty
    • + *
    • PLZ - Polish Zloty (1950–1995)
    • + *
    • PTE - Portuguese Escudo
    • + *
    • GWE - Portuguese Guinea Escudo
    • + *
    • QAR - Qatari Rial
    • + *
    • XRE - RINET Funds
    • + *
    • RHD - Rhodesian Dollar
    • + *
    • RON - Romanian Leu
    • + *
    • ROL - Romanian Leu (1952–2006)
    • + *
    • RUB - Russian Ruble
    • + *
    • RUR - Russian Ruble (1991–1998)
    • + *
    • RWF - Rwandan Franc
    • + *
    • SVC - Salvadoran Colón
    • + *
    • WST - Samoan Tala
    • + *
    • SAR - Saudi Riyal
    • + *
    • RSD - Serbian Dinar
    • + *
    • CSD - Serbian Dinar (2002–2006)
    • + *
    • SCR - Seychellois Rupee
    • + *
    • SLL - Sierra Leonean Leone
    • + *
    • XAG - Silver
    • + *
    • SGD - Singapore Dollar
    • + *
    • SKK - Slovak Koruna
    • + *
    • SIT - Slovenian Tolar
    • + *
    • SBD - Solomon Islands Dollar
    • + *
    • SOS - Somali Shilling
    • + *
    • ZAR - South African Rand
    • + *
    • ZAL - South African Rand (financial)
    • + *
    • KRH - South Korean Hwan (1953–1962)
    • + *
    • KRW - South Korean Won
    • + *
    • KRO - South Korean Won (1945–1953)
    • + *
    • SSP - South Sudanese Pound
    • + *
    • SUR - Soviet Rouble
    • + *
    • ESP - Spanish Peseta
    • + *
    • ESA - Spanish Peseta (A account)
    • + *
    • ESB - Spanish Peseta (convertible account)
    • + *
    • XDR - Special Drawing Rights
    • + *
    • LKR - Sri Lankan Rupee
    • + *
    • SHP - St. Helena Pound
    • + *
    • XSU - Sucre
    • + *
    • SDD - Sudanese Dinar (1992–2007)
    • + *
    • SDG - Sudanese Pound
    • + *
    • SDP - Sudanese Pound (1957–1998)
    • + *
    • SRD - Surinamese Dollar
    • + *
    • SRG - Surinamese Guilder
    • + *
    • SZL - Swazi Lilangeni
    • + *
    • SEK - Swedish Krona
    • + *
    • CHF - Swiss Franc
    • + *
    • SYP - Syrian Pound
    • + *
    • STN - São Tomé & Príncipe Dobra
    • + *
    • STD - São Tomé & Príncipe Dobra (1977–2017)
    • + *
    • TVD - TVD
    • + *
    • TJR - Tajikistani Ruble
    • + *
    • TJS - Tajikistani Somoni
    • + *
    • TZS - Tanzanian Shilling
    • + *
    • XTS - Testing Currency Code
    • + *
    • THB - Thai Baht
    • + *
    • XXX - The codes assigned for transactions where no currency is involved
    • + *
    • TPE - Timorese Escudo
    • + *
    • TOP - Tongan Paʻanga
    • + *
    • TTD - Trinidad & Tobago Dollar
    • + *
    • TND - Tunisian Dinar
    • + *
    • TRY - Turkish Lira
    • + *
    • TRL - Turkish Lira (1922–2005)
    • + *
    • TMT - Turkmenistani Manat
    • + *
    • TMM - Turkmenistani Manat (1993–2009)
    • + *
    • USD - US Dollar
    • + *
    • USN - US Dollar (Next day)
    • + *
    • USS - US Dollar (Same day)
    • + *
    • UGX - Ugandan Shilling
    • + *
    • UGS - Ugandan Shilling (1966–1987)
    • + *
    • UAH - Ukrainian Hryvnia
    • + *
    • UAK - Ukrainian Karbovanets
    • + *
    • AED - United Arab Emirates Dirham
    • + *
    • UYW - Uruguayan Nominal Wage Index Unit
    • + *
    • UYU - Uruguayan Peso
    • + *
    • UYP - Uruguayan Peso (1975–1993)
    • + *
    • UYI - Uruguayan Peso (Indexed Units)
    • + *
    • UZS - Uzbekistani Som
    • + *
    • VUV - Vanuatu Vatu
    • + *
    • VES - Venezuelan Bolívar
    • + *
    • VEB - Venezuelan Bolívar (1871–2008)
    • + *
    • VEF - Venezuelan Bolívar (2008–2018)
    • + *
    • VND - Vietnamese Dong
    • + *
    • VNN - Vietnamese Dong (1978–1985)
    • + *
    • CHE - WIR Euro
    • + *
    • CHW - WIR Franc
    • + *
    • XOF - West African CFA Franc
    • + *
    • YDD - Yemeni Dinar
    • + *
    • YER - Yemeni Rial
    • + *
    • YUN - Yugoslavian Convertible Dinar (1990–1992)
    • + *
    • YUD - Yugoslavian Hard Dinar (1966–1990)
    • + *
    • YUM - Yugoslavian New Dinar (1994–2002)
    • + *
    • YUR - Yugoslavian Reformed Dinar (1992–1993)
    • + *
    • ZWN - ZWN
    • + *
    • ZRN - Zairean New Zaire (1993–1998)
    • + *
    • ZRZ - Zairean Zaire (1971–1993)
    • + *
    • ZMW - Zambian Kwacha
    • + *
    • ZMK - Zambian Kwacha (1968–2012)
    • + *
    • ZWD - Zimbabwean Dollar (1980–2008)
    • + *
    • ZWR - Zimbabwean Dollar (2008)
    • + *
    • ZWL - Zimbabwean Dollar (2009)
    • + *
    + */ @JsonSetter(value = "currency", nulls = Nulls.SKIP) - public Builder currency(Optional currency) { + public Builder currency(Optional currency) { this.currency = currency; return this; } - public Builder currency(TransactionCurrencyEnum currency) { + public Builder currency(JournalLineRequestCurrency currency) { this.currency = Optional.ofNullable(currency); return this; } + /** + *

    The company the journal entry belongs to.

    + */ @JsonSetter(value = "company", nulls = Nulls.SKIP) public Builder company(Optional company) { this.company = company; @@ -700,6 +1037,17 @@ public Builder employee(String employee) { return this; } + @JsonSetter(value = "project", nulls = Nulls.SKIP) + public Builder project(Optional project) { + this.project = project; + return this; + } + + public Builder project(JournalLineRequestProject project) { + this.project = Optional.ofNullable(project); + return this; + } + @JsonSetter(value = "contact", nulls = Nulls.SKIP) public Builder contact(Optional contact) { this.contact = contact; @@ -711,6 +1059,9 @@ public Builder contact(String contact) { return this; } + /** + *

    The tax rate that applies to this line item.

    + */ @JsonSetter(value = "tax_rate", nulls = Nulls.SKIP) public Builder taxRate(Optional taxRate) { this.taxRate = taxRate; @@ -722,6 +1073,9 @@ public Builder taxRate(String taxRate) { return this; } + /** + *

    The line's description.

    + */ @JsonSetter(value = "description", nulls = Nulls.SKIP) public Builder description(Optional description) { this.description = description; @@ -733,6 +1087,9 @@ public Builder description(String description) { return this; } + /** + *

    The journal line item's exchange rate.

    + */ @JsonSetter(value = "exchange_rate", nulls = Nulls.SKIP) public Builder exchangeRate(Optional exchangeRate) { this.exchangeRate = exchangeRate; @@ -787,6 +1144,7 @@ public JournalLineRequest build() { currency, company, employee, + project, contact, taxRate, description, diff --git a/src/main/java/com/merge/api/accounting/types/JournalLineRequestCurrency.java b/src/main/java/com/merge/api/accounting/types/JournalLineRequestCurrency.java new file mode 100644 index 000000000..5aecfc65b --- /dev/null +++ b/src/main/java/com/merge/api/accounting/types/JournalLineRequestCurrency.java @@ -0,0 +1,95 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.merge.api.accounting.types; + +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.databind.DeserializationContext; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.fasterxml.jackson.databind.deser.std.StdDeserializer; +import com.merge.api.core.ObjectMappers; +import java.io.IOException; +import java.util.Objects; + +@JsonDeserialize(using = JournalLineRequestCurrency.Deserializer.class) +public final class JournalLineRequestCurrency { + private final Object value; + + private final int type; + + private JournalLineRequestCurrency(Object value, int type) { + this.value = value; + this.type = type; + } + + @JsonValue + public Object get() { + return this.value; + } + + @SuppressWarnings("unchecked") + public T visit(Visitor visitor) { + if (this.type == 0) { + return visitor.visit((TransactionCurrencyEnum) this.value); + } else if (this.type == 1) { + return visitor.visit((String) this.value); + } + throw new IllegalStateException("Failed to visit value. This should never happen."); + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof JournalLineRequestCurrency && equalTo((JournalLineRequestCurrency) other); + } + + private boolean equalTo(JournalLineRequestCurrency other) { + return value.equals(other.value); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.value); + } + + @java.lang.Override + public String toString() { + return this.value.toString(); + } + + public static JournalLineRequestCurrency of(TransactionCurrencyEnum value) { + return new JournalLineRequestCurrency(value, 0); + } + + public static JournalLineRequestCurrency of(String value) { + return new JournalLineRequestCurrency(value, 1); + } + + public interface Visitor { + T visit(TransactionCurrencyEnum value); + + T visit(String value); + } + + static final class Deserializer extends StdDeserializer { + Deserializer() { + super(JournalLineRequestCurrency.class); + } + + @java.lang.Override + public JournalLineRequestCurrency deserialize(JsonParser p, DeserializationContext context) throws IOException { + Object value = p.readValueAs(Object.class); + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, TransactionCurrencyEnum.class)); + } catch (IllegalArgumentException e) { + } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, String.class)); + } catch (IllegalArgumentException e) { + } + throw new JsonParseException(p, "Failed to deserialize"); + } + } +} diff --git a/src/main/java/com/merge/api/accounting/types/JournalLineRequestProject.java b/src/main/java/com/merge/api/accounting/types/JournalLineRequestProject.java new file mode 100644 index 000000000..2849b2e67 --- /dev/null +++ b/src/main/java/com/merge/api/accounting/types/JournalLineRequestProject.java @@ -0,0 +1,95 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.merge.api.accounting.types; + +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.databind.DeserializationContext; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.fasterxml.jackson.databind.deser.std.StdDeserializer; +import com.merge.api.core.ObjectMappers; +import java.io.IOException; +import java.util.Objects; + +@JsonDeserialize(using = JournalLineRequestProject.Deserializer.class) +public final class JournalLineRequestProject { + private final Object value; + + private final int type; + + private JournalLineRequestProject(Object value, int type) { + this.value = value; + this.type = type; + } + + @JsonValue + public Object get() { + return this.value; + } + + @SuppressWarnings("unchecked") + public T visit(Visitor visitor) { + if (this.type == 0) { + return visitor.visit((String) this.value); + } else if (this.type == 1) { + return visitor.visit((Project) this.value); + } + throw new IllegalStateException("Failed to visit value. This should never happen."); + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof JournalLineRequestProject && equalTo((JournalLineRequestProject) other); + } + + private boolean equalTo(JournalLineRequestProject other) { + return value.equals(other.value); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.value); + } + + @java.lang.Override + public String toString() { + return this.value.toString(); + } + + public static JournalLineRequestProject of(String value) { + return new JournalLineRequestProject(value, 0); + } + + public static JournalLineRequestProject of(Project value) { + return new JournalLineRequestProject(value, 1); + } + + public interface Visitor { + T visit(String value); + + T visit(Project value); + } + + static final class Deserializer extends StdDeserializer { + Deserializer() { + super(JournalLineRequestProject.class); + } + + @java.lang.Override + public JournalLineRequestProject deserialize(JsonParser p, DeserializationContext context) throws IOException { + Object value = p.readValueAs(Object.class); + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, String.class)); + } catch (IllegalArgumentException e) { + } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, Project.class)); + } catch (IllegalArgumentException e) { + } + throw new JsonParseException(p, "Failed to deserialize"); + } + } +} diff --git a/src/main/java/com/merge/api/accounting/types/LinkedAccountCommonModelScopeDeserializerRequest.java b/src/main/java/com/merge/api/accounting/types/LinkedAccountCommonModelScopeDeserializerRequest.java index 9fdf28300..47399000e 100644 --- a/src/main/java/com/merge/api/accounting/types/LinkedAccountCommonModelScopeDeserializerRequest.java +++ b/src/main/java/com/merge/api/accounting/types/LinkedAccountCommonModelScopeDeserializerRequest.java @@ -84,6 +84,9 @@ public Builder from(LinkedAccountCommonModelScopeDeserializerRequest other) { return this; } + /** + *

    The common models you want to update the scopes for

    + */ @JsonSetter(value = "common_models", nulls = Nulls.SKIP) public Builder commonModels(List commonModels) { this.commonModels.clear(); diff --git a/src/main/java/com/merge/api/accounting/types/LinkedAccountsListRequest.java b/src/main/java/com/merge/api/accounting/types/LinkedAccountsListRequest.java index 3723ed6de..a2347eafd 100644 --- a/src/main/java/com/merge/api/accounting/types/LinkedAccountsListRequest.java +++ b/src/main/java/com/merge/api/accounting/types/LinkedAccountsListRequest.java @@ -293,6 +293,18 @@ public Builder from(LinkedAccountsListRequest other) { return this; } + /** + *

    Options: accounting, ats, crm, filestorage, hris, mktg, ticketing

    + *
      + *
    • hris - hris
    • + *
    • ats - ats
    • + *
    • accounting - accounting
    • + *
    • ticketing - ticketing
    • + *
    • crm - crm
    • + *
    • mktg - mktg
    • + *
    • filestorage - filestorage
    • + *
    + */ @JsonSetter(value = "category", nulls = Nulls.SKIP) public Builder category(Optional category) { this.category = category; @@ -304,6 +316,9 @@ public Builder category(LinkedAccountsListRequestCategory category) { return this; } + /** + *

    The pagination cursor value.

    + */ @JsonSetter(value = "cursor", nulls = Nulls.SKIP) public Builder cursor(Optional cursor) { this.cursor = cursor; @@ -315,6 +330,9 @@ public Builder cursor(String cursor) { return this; } + /** + *

    If provided, will only return linked accounts associated with the given email address.

    + */ @JsonSetter(value = "end_user_email_address", nulls = Nulls.SKIP) public Builder endUserEmailAddress(Optional endUserEmailAddress) { this.endUserEmailAddress = endUserEmailAddress; @@ -326,6 +344,9 @@ public Builder endUserEmailAddress(String endUserEmailAddress) { return this; } + /** + *

    If provided, will only return linked accounts associated with the given organization name.

    + */ @JsonSetter(value = "end_user_organization_name", nulls = Nulls.SKIP) public Builder endUserOrganizationName(Optional endUserOrganizationName) { this.endUserOrganizationName = endUserOrganizationName; @@ -337,6 +358,9 @@ public Builder endUserOrganizationName(String endUserOrganizationName) { return this; } + /** + *

    If provided, will only return linked accounts associated with the given origin ID.

    + */ @JsonSetter(value = "end_user_origin_id", nulls = Nulls.SKIP) public Builder endUserOriginId(Optional endUserOriginId) { this.endUserOriginId = endUserOriginId; @@ -348,6 +372,9 @@ public Builder endUserOriginId(String endUserOriginId) { return this; } + /** + *

    Comma-separated list of EndUser origin IDs, making it possible to specify multiple EndUsers at once.

    + */ @JsonSetter(value = "end_user_origin_ids", nulls = Nulls.SKIP) public Builder endUserOriginIds(Optional endUserOriginIds) { this.endUserOriginIds = endUserOriginIds; @@ -370,6 +397,9 @@ public Builder id(String id) { return this; } + /** + *

    Comma-separated list of LinkedAccount IDs, making it possible to specify multiple LinkedAccounts at once.

    + */ @JsonSetter(value = "ids", nulls = Nulls.SKIP) public Builder ids(Optional ids) { this.ids = ids; @@ -381,6 +411,9 @@ public Builder ids(String ids) { return this; } + /** + *

    If true, will include complete production duplicates of the account specified by the id query parameter in the response. id must be for a complete production linked account.

    + */ @JsonSetter(value = "include_duplicates", nulls = Nulls.SKIP) public Builder includeDuplicates(Optional includeDuplicates) { this.includeDuplicates = includeDuplicates; @@ -392,6 +425,9 @@ public Builder includeDuplicates(Boolean includeDuplicates) { return this; } + /** + *

    If provided, will only return linked accounts associated with the given integration name.

    + */ @JsonSetter(value = "integration_name", nulls = Nulls.SKIP) public Builder integrationName(Optional integrationName) { this.integrationName = integrationName; @@ -403,6 +439,9 @@ public Builder integrationName(String integrationName) { return this; } + /** + *

    If included, will only include test linked accounts. If not included, will only include non-test linked accounts.

    + */ @JsonSetter(value = "is_test_account", nulls = Nulls.SKIP) public Builder isTestAccount(Optional isTestAccount) { this.isTestAccount = isTestAccount; @@ -414,6 +453,9 @@ public Builder isTestAccount(String isTestAccount) { return this; } + /** + *

    Number of results to return per page.

    + */ @JsonSetter(value = "page_size", nulls = Nulls.SKIP) public Builder pageSize(Optional pageSize) { this.pageSize = pageSize; @@ -425,6 +467,9 @@ public Builder pageSize(Integer pageSize) { return this; } + /** + *

    Filter by status. Options: COMPLETE, IDLE, INCOMPLETE, RELINK_NEEDED

    + */ @JsonSetter(value = "status", nulls = Nulls.SKIP) public Builder status(Optional status) { this.status = status; diff --git a/src/main/java/com/merge/api/accounting/types/MultipartFormFieldRequest.java b/src/main/java/com/merge/api/accounting/types/MultipartFormFieldRequest.java index a02a7453e..baf8e3602 100644 --- a/src/main/java/com/merge/api/accounting/types/MultipartFormFieldRequest.java +++ b/src/main/java/com/merge/api/accounting/types/MultipartFormFieldRequest.java @@ -127,26 +127,46 @@ public static NameStage builder() { } public interface NameStage { + /** + * The name of the form field + */ DataStage name(@NotNull String name); Builder from(MultipartFormFieldRequest other); } public interface DataStage { + /** + * The data for the form field. + */ _FinalStage data(@NotNull String data); } public interface _FinalStage { MultipartFormFieldRequest build(); + /** + *

    The encoding of the value of data. Defaults to RAW if not defined.

    + *
      + *
    • RAW - RAW
    • + *
    • BASE64 - BASE64
    • + *
    • GZIP_BASE64 - GZIP_BASE64
    • + *
    + */ _FinalStage encoding(Optional encoding); _FinalStage encoding(EncodingEnum encoding); + /** + *

    The file name of the form field, if the field is for a file.

    + */ _FinalStage fileName(Optional fileName); _FinalStage fileName(String fileName); + /** + *

    The MIME type of the file, if the field is for a file.

    + */ _FinalStage contentType(Optional contentType); _FinalStage contentType(String contentType); @@ -180,7 +200,7 @@ public Builder from(MultipartFormFieldRequest other) { } /** - *

    The name of the form field

    + * The name of the form field

    The name of the form field

    * @return Reference to {@code this} so that method calls can be chained together. */ @java.lang.Override @@ -191,7 +211,7 @@ public DataStage name(@NotNull String name) { } /** - *

    The data for the form field.

    + * The data for the form field.

    The data for the form field.

    * @return Reference to {@code this} so that method calls can be chained together. */ @java.lang.Override @@ -211,6 +231,9 @@ public _FinalStage contentType(String contentType) { return this; } + /** + *

    The MIME type of the file, if the field is for a file.

    + */ @java.lang.Override @JsonSetter(value = "content_type", nulls = Nulls.SKIP) public _FinalStage contentType(Optional contentType) { @@ -228,6 +251,9 @@ public _FinalStage fileName(String fileName) { return this; } + /** + *

    The file name of the form field, if the field is for a file.

    + */ @java.lang.Override @JsonSetter(value = "file_name", nulls = Nulls.SKIP) public _FinalStage fileName(Optional fileName) { @@ -250,6 +276,14 @@ public _FinalStage encoding(EncodingEnum encoding) { return this; } + /** + *

    The encoding of the value of data. Defaults to RAW if not defined.

    + *
      + *
    • RAW - RAW
    • + *
    • BASE64 - BASE64
    • + *
    • GZIP_BASE64 - GZIP_BASE64
    • + *
    + */ @java.lang.Override @JsonSetter(value = "encoding", nulls = Nulls.SKIP) public _FinalStage encoding(Optional encoding) { diff --git a/src/main/java/com/merge/api/accounting/types/PaginatedProjectList.java b/src/main/java/com/merge/api/accounting/types/PaginatedProjectList.java new file mode 100644 index 000000000..29c4cf79d --- /dev/null +++ b/src/main/java/com/merge/api/accounting/types/PaginatedProjectList.java @@ -0,0 +1,144 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.merge.api.accounting.types; + +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.merge.api.core.ObjectMappers; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = PaginatedProjectList.Builder.class) +public final class PaginatedProjectList { + private final Optional next; + + private final Optional previous; + + private final Optional> results; + + private final Map additionalProperties; + + private PaginatedProjectList( + Optional next, + Optional previous, + Optional> results, + Map additionalProperties) { + this.next = next; + this.previous = previous; + this.results = results; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("next") + public Optional getNext() { + return next; + } + + @JsonProperty("previous") + public Optional getPrevious() { + return previous; + } + + @JsonProperty("results") + public Optional> getResults() { + return results; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof PaginatedProjectList && equalTo((PaginatedProjectList) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(PaginatedProjectList other) { + return next.equals(other.next) && previous.equals(other.previous) && results.equals(other.results); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.next, this.previous, this.results); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static Builder builder() { + return new Builder(); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder { + private Optional next = Optional.empty(); + + private Optional previous = Optional.empty(); + + private Optional> results = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(PaginatedProjectList other) { + next(other.getNext()); + previous(other.getPrevious()); + results(other.getResults()); + return this; + } + + @JsonSetter(value = "next", nulls = Nulls.SKIP) + public Builder next(Optional next) { + this.next = next; + return this; + } + + public Builder next(String next) { + this.next = Optional.ofNullable(next); + return this; + } + + @JsonSetter(value = "previous", nulls = Nulls.SKIP) + public Builder previous(Optional previous) { + this.previous = previous; + return this; + } + + public Builder previous(String previous) { + this.previous = Optional.ofNullable(previous); + return this; + } + + @JsonSetter(value = "results", nulls = Nulls.SKIP) + public Builder results(Optional> results) { + this.results = results; + return this; + } + + public Builder results(List results) { + this.results = Optional.ofNullable(results); + return this; + } + + public PaginatedProjectList build() { + return new PaginatedProjectList(next, previous, results, additionalProperties); + } + } +} diff --git a/src/main/java/com/merge/api/accounting/types/PatchedEditFieldMappingRequest.java b/src/main/java/com/merge/api/accounting/types/PatchedEditFieldMappingRequest.java index 0700d7468..ae506e399 100644 --- a/src/main/java/com/merge/api/accounting/types/PatchedEditFieldMappingRequest.java +++ b/src/main/java/com/merge/api/accounting/types/PatchedEditFieldMappingRequest.java @@ -116,6 +116,9 @@ public Builder from(PatchedEditFieldMappingRequest other) { return this; } + /** + *

    The field traversal path of the remote field listed when you hit the GET /remote-fields endpoint.

    + */ @JsonSetter(value = "remote_field_traversal_path", nulls = Nulls.SKIP) public Builder remoteFieldTraversalPath(Optional> remoteFieldTraversalPath) { this.remoteFieldTraversalPath = remoteFieldTraversalPath; @@ -127,6 +130,9 @@ public Builder remoteFieldTraversalPath(List remoteFieldTraversalPath) return this; } + /** + *

    The method of the remote endpoint where the remote field is coming from.

    + */ @JsonSetter(value = "remote_method", nulls = Nulls.SKIP) public Builder remoteMethod(Optional remoteMethod) { this.remoteMethod = remoteMethod; @@ -138,6 +144,9 @@ public Builder remoteMethod(String remoteMethod) { return this; } + /** + *

    The path of the remote endpoint where the remote field is coming from.

    + */ @JsonSetter(value = "remote_url_path", nulls = Nulls.SKIP) public Builder remoteUrlPath(Optional remoteUrlPath) { this.remoteUrlPath = remoteUrlPath; diff --git a/src/main/java/com/merge/api/accounting/types/PatchedInvoiceEndpointRequest.java b/src/main/java/com/merge/api/accounting/types/PatchedInvoiceEndpointRequest.java index 84811dfab..6b5d28583 100644 --- a/src/main/java/com/merge/api/accounting/types/PatchedInvoiceEndpointRequest.java +++ b/src/main/java/com/merge/api/accounting/types/PatchedInvoiceEndpointRequest.java @@ -99,10 +99,16 @@ public interface ModelStage { public interface _FinalStage { PatchedInvoiceEndpointRequest build(); + /** + *

    Whether to include debug fields (such as log file links) in the response.

    + */ _FinalStage isDebugMode(Optional isDebugMode); _FinalStage isDebugMode(Boolean isDebugMode); + /** + *

    Whether or not third-party updates should be run asynchronously.

    + */ _FinalStage runAsync(Optional runAsync); _FinalStage runAsync(Boolean runAsync); @@ -146,6 +152,9 @@ public _FinalStage runAsync(Boolean runAsync) { return this; } + /** + *

    Whether or not third-party updates should be run asynchronously.

    + */ @java.lang.Override @JsonSetter(value = "run_async", nulls = Nulls.SKIP) public _FinalStage runAsync(Optional runAsync) { @@ -163,6 +172,9 @@ public _FinalStage isDebugMode(Boolean isDebugMode) { return this; } + /** + *

    Whether to include debug fields (such as log file links) in the response.

    + */ @java.lang.Override @JsonSetter(value = "is_debug_mode", nulls = Nulls.SKIP) public _FinalStage isDebugMode(Optional isDebugMode) { diff --git a/src/main/java/com/merge/api/accounting/types/PatchedItemEndpointRequest.java b/src/main/java/com/merge/api/accounting/types/PatchedItemEndpointRequest.java new file mode 100644 index 000000000..2b441e666 --- /dev/null +++ b/src/main/java/com/merge/api/accounting/types/PatchedItemEndpointRequest.java @@ -0,0 +1,190 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.merge.api.accounting.types; + +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.merge.api.core.ObjectMappers; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import org.jetbrains.annotations.NotNull; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = PatchedItemEndpointRequest.Builder.class) +public final class PatchedItemEndpointRequest { + private final Optional isDebugMode; + + private final Optional runAsync; + + private final PatchedItemRequestRequest model; + + private final Map additionalProperties; + + private PatchedItemEndpointRequest( + Optional isDebugMode, + Optional runAsync, + PatchedItemRequestRequest model, + Map additionalProperties) { + this.isDebugMode = isDebugMode; + this.runAsync = runAsync; + this.model = model; + this.additionalProperties = additionalProperties; + } + + /** + * @return Whether to include debug fields (such as log file links) in the response. + */ + @JsonProperty("is_debug_mode") + public Optional getIsDebugMode() { + return isDebugMode; + } + + /** + * @return Whether or not third-party updates should be run asynchronously. + */ + @JsonProperty("run_async") + public Optional getRunAsync() { + return runAsync; + } + + @JsonProperty("model") + public PatchedItemRequestRequest getModel() { + return model; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof PatchedItemEndpointRequest && equalTo((PatchedItemEndpointRequest) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(PatchedItemEndpointRequest other) { + return isDebugMode.equals(other.isDebugMode) && runAsync.equals(other.runAsync) && model.equals(other.model); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.isDebugMode, this.runAsync, this.model); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ModelStage builder() { + return new Builder(); + } + + public interface ModelStage { + _FinalStage model(@NotNull PatchedItemRequestRequest model); + + Builder from(PatchedItemEndpointRequest other); + } + + public interface _FinalStage { + PatchedItemEndpointRequest build(); + + /** + *

    Whether to include debug fields (such as log file links) in the response.

    + */ + _FinalStage isDebugMode(Optional isDebugMode); + + _FinalStage isDebugMode(Boolean isDebugMode); + + /** + *

    Whether or not third-party updates should be run asynchronously.

    + */ + _FinalStage runAsync(Optional runAsync); + + _FinalStage runAsync(Boolean runAsync); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements ModelStage, _FinalStage { + private PatchedItemRequestRequest model; + + private Optional runAsync = Optional.empty(); + + private Optional isDebugMode = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(PatchedItemEndpointRequest other) { + isDebugMode(other.getIsDebugMode()); + runAsync(other.getRunAsync()); + model(other.getModel()); + return this; + } + + @java.lang.Override + @JsonSetter("model") + public _FinalStage model(@NotNull PatchedItemRequestRequest model) { + this.model = model; + return this; + } + + /** + *

    Whether or not third-party updates should be run asynchronously.

    + * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage runAsync(Boolean runAsync) { + this.runAsync = Optional.ofNullable(runAsync); + return this; + } + + /** + *

    Whether or not third-party updates should be run asynchronously.

    + */ + @java.lang.Override + @JsonSetter(value = "run_async", nulls = Nulls.SKIP) + public _FinalStage runAsync(Optional runAsync) { + this.runAsync = runAsync; + return this; + } + + /** + *

    Whether to include debug fields (such as log file links) in the response.

    + * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage isDebugMode(Boolean isDebugMode) { + this.isDebugMode = Optional.ofNullable(isDebugMode); + return this; + } + + /** + *

    Whether to include debug fields (such as log file links) in the response.

    + */ + @java.lang.Override + @JsonSetter(value = "is_debug_mode", nulls = Nulls.SKIP) + public _FinalStage isDebugMode(Optional isDebugMode) { + this.isDebugMode = isDebugMode; + return this; + } + + @java.lang.Override + public PatchedItemEndpointRequest build() { + return new PatchedItemEndpointRequest(isDebugMode, runAsync, model, additionalProperties); + } + } +} diff --git a/src/main/java/com/merge/api/accounting/types/PatchedItemRequestRequest.java b/src/main/java/com/merge/api/accounting/types/PatchedItemRequestRequest.java new file mode 100644 index 000000000..6aafa5ea6 --- /dev/null +++ b/src/main/java/com/merge/api/accounting/types/PatchedItemRequestRequest.java @@ -0,0 +1,467 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.merge.api.accounting.types; + +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.JsonNode; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.merge.api.core.ObjectMappers; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = PatchedItemRequestRequest.Builder.class) +public final class PatchedItemRequestRequest { + private final Optional name; + + private final Optional status; + + private final Optional type; + + private final Optional unitPrice; + + private final Optional purchasePrice; + + private final Optional purchaseAccount; + + private final Optional salesAccount; + + private final Optional company; + + private final Optional purchaseTaxRate; + + private final Optional salesTaxRate; + + private final Optional> integrationParams; + + private final Optional> linkedAccountParams; + + private final Map additionalProperties; + + private PatchedItemRequestRequest( + Optional name, + Optional status, + Optional type, + Optional unitPrice, + Optional purchasePrice, + Optional purchaseAccount, + Optional salesAccount, + Optional company, + Optional purchaseTaxRate, + Optional salesTaxRate, + Optional> integrationParams, + Optional> linkedAccountParams, + Map additionalProperties) { + this.name = name; + this.status = status; + this.type = type; + this.unitPrice = unitPrice; + this.purchasePrice = purchasePrice; + this.purchaseAccount = purchaseAccount; + this.salesAccount = salesAccount; + this.company = company; + this.purchaseTaxRate = purchaseTaxRate; + this.salesTaxRate = salesTaxRate; + this.integrationParams = integrationParams; + this.linkedAccountParams = linkedAccountParams; + this.additionalProperties = additionalProperties; + } + + /** + * @return The item's name. + */ + @JsonProperty("name") + public Optional getName() { + return name; + } + + /** + * @return The item's status. + *
      + *
    • ACTIVE - ACTIVE
    • + *
    • ARCHIVED - ARCHIVED
    • + *
    + */ + @JsonProperty("status") + public Optional getStatus() { + return status; + } + + /** + * @return The item's type. + *
      + *
    • INVENTORY - INVENTORY
    • + *
    • NON_INVENTORY - NON_INVENTORY
    • + *
    • SERVICE - SERVICE
    • + *
    • UNKNOWN - UNKNOWN
    • + *
    + */ + @JsonProperty("type") + public Optional getType() { + return type; + } + + /** + * @return The item's unit price. + */ + @JsonProperty("unit_price") + public Optional getUnitPrice() { + return unitPrice; + } + + /** + * @return The price at which the item is purchased from a vendor. + */ + @JsonProperty("purchase_price") + public Optional getPurchasePrice() { + return purchasePrice; + } + + /** + * @return References the default account used to record a purchase of the item. + */ + @JsonProperty("purchase_account") + public Optional getPurchaseAccount() { + return purchaseAccount; + } + + /** + * @return References the default account used to record a sale. + */ + @JsonProperty("sales_account") + public Optional getSalesAccount() { + return salesAccount; + } + + /** + * @return The company the item belongs to. + */ + @JsonProperty("company") + public Optional getCompany() { + return company; + } + + /** + * @return The default purchase tax rate for this item. + */ + @JsonProperty("purchase_tax_rate") + public Optional getPurchaseTaxRate() { + return purchaseTaxRate; + } + + /** + * @return The default sales tax rate for this item. + */ + @JsonProperty("sales_tax_rate") + public Optional getSalesTaxRate() { + return salesTaxRate; + } + + @JsonProperty("integration_params") + public Optional> getIntegrationParams() { + return integrationParams; + } + + @JsonProperty("linked_account_params") + public Optional> getLinkedAccountParams() { + return linkedAccountParams; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof PatchedItemRequestRequest && equalTo((PatchedItemRequestRequest) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(PatchedItemRequestRequest other) { + return name.equals(other.name) + && status.equals(other.status) + && type.equals(other.type) + && unitPrice.equals(other.unitPrice) + && purchasePrice.equals(other.purchasePrice) + && purchaseAccount.equals(other.purchaseAccount) + && salesAccount.equals(other.salesAccount) + && company.equals(other.company) + && purchaseTaxRate.equals(other.purchaseTaxRate) + && salesTaxRate.equals(other.salesTaxRate) + && integrationParams.equals(other.integrationParams) + && linkedAccountParams.equals(other.linkedAccountParams); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.name, + this.status, + this.type, + this.unitPrice, + this.purchasePrice, + this.purchaseAccount, + this.salesAccount, + this.company, + this.purchaseTaxRate, + this.salesTaxRate, + this.integrationParams, + this.linkedAccountParams); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static Builder builder() { + return new Builder(); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder { + private Optional name = Optional.empty(); + + private Optional status = Optional.empty(); + + private Optional type = Optional.empty(); + + private Optional unitPrice = Optional.empty(); + + private Optional purchasePrice = Optional.empty(); + + private Optional purchaseAccount = Optional.empty(); + + private Optional salesAccount = Optional.empty(); + + private Optional company = Optional.empty(); + + private Optional purchaseTaxRate = Optional.empty(); + + private Optional salesTaxRate = Optional.empty(); + + private Optional> integrationParams = Optional.empty(); + + private Optional> linkedAccountParams = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(PatchedItemRequestRequest other) { + name(other.getName()); + status(other.getStatus()); + type(other.getType()); + unitPrice(other.getUnitPrice()); + purchasePrice(other.getPurchasePrice()); + purchaseAccount(other.getPurchaseAccount()); + salesAccount(other.getSalesAccount()); + company(other.getCompany()); + purchaseTaxRate(other.getPurchaseTaxRate()); + salesTaxRate(other.getSalesTaxRate()); + integrationParams(other.getIntegrationParams()); + linkedAccountParams(other.getLinkedAccountParams()); + return this; + } + + /** + *

    The item's name.

    + */ + @JsonSetter(value = "name", nulls = Nulls.SKIP) + public Builder name(Optional name) { + this.name = name; + return this; + } + + public Builder name(String name) { + this.name = Optional.ofNullable(name); + return this; + } + + /** + *

    The item's status.

    + *
      + *
    • ACTIVE - ACTIVE
    • + *
    • ARCHIVED - ARCHIVED
    • + *
    + */ + @JsonSetter(value = "status", nulls = Nulls.SKIP) + public Builder status(Optional status) { + this.status = status; + return this; + } + + public Builder status(PatchedItemRequestRequestStatus status) { + this.status = Optional.ofNullable(status); + return this; + } + + /** + *

    The item's type.

    + *
      + *
    • INVENTORY - INVENTORY
    • + *
    • NON_INVENTORY - NON_INVENTORY
    • + *
    • SERVICE - SERVICE
    • + *
    • UNKNOWN - UNKNOWN
    • + *
    + */ + @JsonSetter(value = "type", nulls = Nulls.SKIP) + public Builder type(Optional type) { + this.type = type; + return this; + } + + public Builder type(Type2BbEnum type) { + this.type = Optional.ofNullable(type); + return this; + } + + /** + *

    The item's unit price.

    + */ + @JsonSetter(value = "unit_price", nulls = Nulls.SKIP) + public Builder unitPrice(Optional unitPrice) { + this.unitPrice = unitPrice; + return this; + } + + public Builder unitPrice(Double unitPrice) { + this.unitPrice = Optional.ofNullable(unitPrice); + return this; + } + + /** + *

    The price at which the item is purchased from a vendor.

    + */ + @JsonSetter(value = "purchase_price", nulls = Nulls.SKIP) + public Builder purchasePrice(Optional purchasePrice) { + this.purchasePrice = purchasePrice; + return this; + } + + public Builder purchasePrice(Double purchasePrice) { + this.purchasePrice = Optional.ofNullable(purchasePrice); + return this; + } + + /** + *

    References the default account used to record a purchase of the item.

    + */ + @JsonSetter(value = "purchase_account", nulls = Nulls.SKIP) + public Builder purchaseAccount(Optional purchaseAccount) { + this.purchaseAccount = purchaseAccount; + return this; + } + + public Builder purchaseAccount(String purchaseAccount) { + this.purchaseAccount = Optional.ofNullable(purchaseAccount); + return this; + } + + /** + *

    References the default account used to record a sale.

    + */ + @JsonSetter(value = "sales_account", nulls = Nulls.SKIP) + public Builder salesAccount(Optional salesAccount) { + this.salesAccount = salesAccount; + return this; + } + + public Builder salesAccount(String salesAccount) { + this.salesAccount = Optional.ofNullable(salesAccount); + return this; + } + + /** + *

    The company the item belongs to.

    + */ + @JsonSetter(value = "company", nulls = Nulls.SKIP) + public Builder company(Optional company) { + this.company = company; + return this; + } + + public Builder company(String company) { + this.company = Optional.ofNullable(company); + return this; + } + + /** + *

    The default purchase tax rate for this item.

    + */ + @JsonSetter(value = "purchase_tax_rate", nulls = Nulls.SKIP) + public Builder purchaseTaxRate(Optional purchaseTaxRate) { + this.purchaseTaxRate = purchaseTaxRate; + return this; + } + + public Builder purchaseTaxRate(String purchaseTaxRate) { + this.purchaseTaxRate = Optional.ofNullable(purchaseTaxRate); + return this; + } + + /** + *

    The default sales tax rate for this item.

    + */ + @JsonSetter(value = "sales_tax_rate", nulls = Nulls.SKIP) + public Builder salesTaxRate(Optional salesTaxRate) { + this.salesTaxRate = salesTaxRate; + return this; + } + + public Builder salesTaxRate(String salesTaxRate) { + this.salesTaxRate = Optional.ofNullable(salesTaxRate); + return this; + } + + @JsonSetter(value = "integration_params", nulls = Nulls.SKIP) + public Builder integrationParams(Optional> integrationParams) { + this.integrationParams = integrationParams; + return this; + } + + public Builder integrationParams(Map integrationParams) { + this.integrationParams = Optional.ofNullable(integrationParams); + return this; + } + + @JsonSetter(value = "linked_account_params", nulls = Nulls.SKIP) + public Builder linkedAccountParams(Optional> linkedAccountParams) { + this.linkedAccountParams = linkedAccountParams; + return this; + } + + public Builder linkedAccountParams(Map linkedAccountParams) { + this.linkedAccountParams = Optional.ofNullable(linkedAccountParams); + return this; + } + + public PatchedItemRequestRequest build() { + return new PatchedItemRequestRequest( + name, + status, + type, + unitPrice, + purchasePrice, + purchaseAccount, + salesAccount, + company, + purchaseTaxRate, + salesTaxRate, + integrationParams, + linkedAccountParams, + additionalProperties); + } + } +} diff --git a/src/main/java/com/merge/api/accounting/types/PatchedItemRequestRequestStatus.java b/src/main/java/com/merge/api/accounting/types/PatchedItemRequestRequestStatus.java new file mode 100644 index 000000000..07537217a --- /dev/null +++ b/src/main/java/com/merge/api/accounting/types/PatchedItemRequestRequestStatus.java @@ -0,0 +1,96 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.merge.api.accounting.types; + +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.databind.DeserializationContext; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.fasterxml.jackson.databind.deser.std.StdDeserializer; +import com.merge.api.core.ObjectMappers; +import java.io.IOException; +import java.util.Objects; + +@JsonDeserialize(using = PatchedItemRequestRequestStatus.Deserializer.class) +public final class PatchedItemRequestRequestStatus { + private final Object value; + + private final int type; + + private PatchedItemRequestRequestStatus(Object value, int type) { + this.value = value; + this.type = type; + } + + @JsonValue + public Object get() { + return this.value; + } + + @SuppressWarnings("unchecked") + public T visit(Visitor visitor) { + if (this.type == 0) { + return visitor.visit((Status7D1Enum) this.value); + } else if (this.type == 1) { + return visitor.visit((String) this.value); + } + throw new IllegalStateException("Failed to visit value. This should never happen."); + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof PatchedItemRequestRequestStatus && equalTo((PatchedItemRequestRequestStatus) other); + } + + private boolean equalTo(PatchedItemRequestRequestStatus other) { + return value.equals(other.value); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.value); + } + + @java.lang.Override + public String toString() { + return this.value.toString(); + } + + public static PatchedItemRequestRequestStatus of(Status7D1Enum value) { + return new PatchedItemRequestRequestStatus(value, 0); + } + + public static PatchedItemRequestRequestStatus of(String value) { + return new PatchedItemRequestRequestStatus(value, 1); + } + + public interface Visitor { + T visit(Status7D1Enum value); + + T visit(String value); + } + + static final class Deserializer extends StdDeserializer { + Deserializer() { + super(PatchedItemRequestRequestStatus.class); + } + + @java.lang.Override + public PatchedItemRequestRequestStatus deserialize(JsonParser p, DeserializationContext context) + throws IOException { + Object value = p.readValueAs(Object.class); + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, Status7D1Enum.class)); + } catch (IllegalArgumentException e) { + } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, String.class)); + } catch (IllegalArgumentException e) { + } + throw new JsonParseException(p, "Failed to deserialize"); + } + } +} diff --git a/src/main/java/com/merge/api/accounting/types/PatchedPaymentEndpointRequest.java b/src/main/java/com/merge/api/accounting/types/PatchedPaymentEndpointRequest.java index af78af8d4..b483e7252 100644 --- a/src/main/java/com/merge/api/accounting/types/PatchedPaymentEndpointRequest.java +++ b/src/main/java/com/merge/api/accounting/types/PatchedPaymentEndpointRequest.java @@ -99,10 +99,16 @@ public interface ModelStage { public interface _FinalStage { PatchedPaymentEndpointRequest build(); + /** + *

    Whether to include debug fields (such as log file links) in the response.

    + */ _FinalStage isDebugMode(Optional isDebugMode); _FinalStage isDebugMode(Boolean isDebugMode); + /** + *

    Whether or not third-party updates should be run asynchronously.

    + */ _FinalStage runAsync(Optional runAsync); _FinalStage runAsync(Boolean runAsync); @@ -146,6 +152,9 @@ public _FinalStage runAsync(Boolean runAsync) { return this; } + /** + *

    Whether or not third-party updates should be run asynchronously.

    + */ @java.lang.Override @JsonSetter(value = "run_async", nulls = Nulls.SKIP) public _FinalStage runAsync(Optional runAsync) { @@ -163,6 +172,9 @@ public _FinalStage isDebugMode(Boolean isDebugMode) { return this; } + /** + *

    Whether to include debug fields (such as log file links) in the response.

    + */ @java.lang.Override @JsonSetter(value = "is_debug_mode", nulls = Nulls.SKIP) public _FinalStage isDebugMode(Optional isDebugMode) { diff --git a/src/main/java/com/merge/api/accounting/types/PatchedPaymentRequest.java b/src/main/java/com/merge/api/accounting/types/PatchedPaymentRequest.java index 7e1660a83..6c0917f19 100644 --- a/src/main/java/com/merge/api/accounting/types/PatchedPaymentRequest.java +++ b/src/main/java/com/merge/api/accounting/types/PatchedPaymentRequest.java @@ -31,7 +31,7 @@ public final class PatchedPaymentRequest { private final Optional paymentMethod; - private final Optional currency; + private final Optional currency; private final Optional exchangeRate; @@ -39,7 +39,7 @@ public final class PatchedPaymentRequest { private final Optional totalAmount; - private final Optional type; + private final Optional type; private final Optional>> trackingCategories; @@ -60,11 +60,11 @@ private PatchedPaymentRequest( Optional contact, Optional account, Optional paymentMethod, - Optional currency, + Optional currency, Optional exchangeRate, Optional company, Optional totalAmount, - Optional type, + Optional type, Optional>> trackingCategories, Optional accountingPeriod, Optional> appliedToLines, @@ -434,7 +434,7 @@ public Optional getPaymentMethod() { * */ @JsonProperty("currency") - public Optional getCurrency() { + public Optional getCurrency() { return currency; } @@ -470,7 +470,7 @@ public Optional getTotalAmount() { * */ @JsonProperty("type") - public Optional getType() { + public Optional getType() { return type; } @@ -578,7 +578,7 @@ public static final class Builder { private Optional paymentMethod = Optional.empty(); - private Optional currency = Optional.empty(); + private Optional currency = Optional.empty(); private Optional exchangeRate = Optional.empty(); @@ -586,7 +586,7 @@ public static final class Builder { private Optional totalAmount = Optional.empty(); - private Optional type = Optional.empty(); + private Optional type = Optional.empty(); private Optional>> trackingCategories = Optional.empty(); @@ -625,6 +625,9 @@ public Builder from(PatchedPaymentRequest other) { return this; } + /** + *

    The payment's transaction date.

    + */ @JsonSetter(value = "transaction_date", nulls = Nulls.SKIP) public Builder transactionDate(Optional transactionDate) { this.transactionDate = transactionDate; @@ -636,6 +639,9 @@ public Builder transactionDate(OffsetDateTime transactionDate) { return this; } + /** + *

    The supplier, or customer involved in the payment.

    + */ @JsonSetter(value = "contact", nulls = Nulls.SKIP) public Builder contact(Optional contact) { this.contact = contact; @@ -647,6 +653,9 @@ public Builder contact(PatchedPaymentRequestContact contact) { return this; } + /** + *

    The supplier’s or customer’s account in which the payment is made.

    + */ @JsonSetter(value = "account", nulls = Nulls.SKIP) public Builder account(Optional account) { this.account = account; @@ -658,6 +667,9 @@ public Builder account(PatchedPaymentRequestAccount account) { return this; } + /** + *

    The method which this payment was made by.

    + */ @JsonSetter(value = "payment_method", nulls = Nulls.SKIP) public Builder paymentMethod(Optional paymentMethod) { this.paymentMethod = paymentMethod; @@ -669,17 +681,331 @@ public Builder paymentMethod(PatchedPaymentRequestPaymentMethod paymentMethod) { return this; } + /** + *

    The payment's currency.

    + *
      + *
    • XUA - ADB Unit of Account
    • + *
    • AFN - Afghan Afghani
    • + *
    • AFA - Afghan Afghani (1927–2002)
    • + *
    • ALL - Albanian Lek
    • + *
    • ALK - Albanian Lek (1946–1965)
    • + *
    • DZD - Algerian Dinar
    • + *
    • ADP - Andorran Peseta
    • + *
    • AOA - Angolan Kwanza
    • + *
    • AOK - Angolan Kwanza (1977–1991)
    • + *
    • AON - Angolan New Kwanza (1990–2000)
    • + *
    • AOR - Angolan Readjusted Kwanza (1995–1999)
    • + *
    • ARA - Argentine Austral
    • + *
    • ARS - Argentine Peso
    • + *
    • ARM - Argentine Peso (1881–1970)
    • + *
    • ARP - Argentine Peso (1983–1985)
    • + *
    • ARL - Argentine Peso Ley (1970–1983)
    • + *
    • AMD - Armenian Dram
    • + *
    • AWG - Aruban Florin
    • + *
    • AUD - Australian Dollar
    • + *
    • ATS - Austrian Schilling
    • + *
    • AZN - Azerbaijani Manat
    • + *
    • AZM - Azerbaijani Manat (1993–2006)
    • + *
    • BSD - Bahamian Dollar
    • + *
    • BHD - Bahraini Dinar
    • + *
    • BDT - Bangladeshi Taka
    • + *
    • BBD - Barbadian Dollar
    • + *
    • BYN - Belarusian Ruble
    • + *
    • BYB - Belarusian Ruble (1994–1999)
    • + *
    • BYR - Belarusian Ruble (2000–2016)
    • + *
    • BEF - Belgian Franc
    • + *
    • BEC - Belgian Franc (convertible)
    • + *
    • BEL - Belgian Franc (financial)
    • + *
    • BZD - Belize Dollar
    • + *
    • BMD - Bermudan Dollar
    • + *
    • BTN - Bhutanese Ngultrum
    • + *
    • BOB - Bolivian Boliviano
    • + *
    • BOL - Bolivian Boliviano (1863–1963)
    • + *
    • BOV - Bolivian Mvdol
    • + *
    • BOP - Bolivian Peso
    • + *
    • BAM - Bosnia-Herzegovina Convertible Mark
    • + *
    • BAD - Bosnia-Herzegovina Dinar (1992–1994)
    • + *
    • BAN - Bosnia-Herzegovina New Dinar (1994–1997)
    • + *
    • BWP - Botswanan Pula
    • + *
    • BRC - Brazilian Cruzado (1986–1989)
    • + *
    • BRZ - Brazilian Cruzeiro (1942–1967)
    • + *
    • BRE - Brazilian Cruzeiro (1990–1993)
    • + *
    • BRR - Brazilian Cruzeiro (1993–1994)
    • + *
    • BRN - Brazilian New Cruzado (1989–1990)
    • + *
    • BRB - Brazilian New Cruzeiro (1967–1986)
    • + *
    • BRL - Brazilian Real
    • + *
    • GBP - British Pound
    • + *
    • BND - Brunei Dollar
    • + *
    • BGL - Bulgarian Hard Lev
    • + *
    • BGN - Bulgarian Lev
    • + *
    • BGO - Bulgarian Lev (1879–1952)
    • + *
    • BGM - Bulgarian Socialist Lev
    • + *
    • BUK - Burmese Kyat
    • + *
    • BIF - Burundian Franc
    • + *
    • XPF - CFP Franc
    • + *
    • KHR - Cambodian Riel
    • + *
    • CAD - Canadian Dollar
    • + *
    • CVE - Cape Verdean Escudo
    • + *
    • KYD - Cayman Islands Dollar
    • + *
    • XAF - Central African CFA Franc
    • + *
    • CLE - Chilean Escudo
    • + *
    • CLP - Chilean Peso
    • + *
    • CLF - Chilean Unit of Account (UF)
    • + *
    • CNX - Chinese People’s Bank Dollar
    • + *
    • CNY - Chinese Yuan
    • + *
    • CNH - Chinese Yuan (offshore)
    • + *
    • COP - Colombian Peso
    • + *
    • COU - Colombian Real Value Unit
    • + *
    • KMF - Comorian Franc
    • + *
    • CDF - Congolese Franc
    • + *
    • CRC - Costa Rican Colón
    • + *
    • HRD - Croatian Dinar
    • + *
    • HRK - Croatian Kuna
    • + *
    • CUC - Cuban Convertible Peso
    • + *
    • CUP - Cuban Peso
    • + *
    • CYP - Cypriot Pound
    • + *
    • CZK - Czech Koruna
    • + *
    • CSK - Czechoslovak Hard Koruna
    • + *
    • DKK - Danish Krone
    • + *
    • DJF - Djiboutian Franc
    • + *
    • DOP - Dominican Peso
    • + *
    • NLG - Dutch Guilder
    • + *
    • XCD - East Caribbean Dollar
    • + *
    • DDM - East German Mark
    • + *
    • ECS - Ecuadorian Sucre
    • + *
    • ECV - Ecuadorian Unit of Constant Value
    • + *
    • EGP - Egyptian Pound
    • + *
    • GQE - Equatorial Guinean Ekwele
    • + *
    • ERN - Eritrean Nakfa
    • + *
    • EEK - Estonian Kroon
    • + *
    • ETB - Ethiopian Birr
    • + *
    • EUR - Euro
    • + *
    • XBA - European Composite Unit
    • + *
    • XEU - European Currency Unit
    • + *
    • XBB - European Monetary Unit
    • + *
    • XBC - European Unit of Account (XBC)
    • + *
    • XBD - European Unit of Account (XBD)
    • + *
    • FKP - Falkland Islands Pound
    • + *
    • FJD - Fijian Dollar
    • + *
    • FIM - Finnish Markka
    • + *
    • FRF - French Franc
    • + *
    • XFO - French Gold Franc
    • + *
    • XFU - French UIC-Franc
    • + *
    • GMD - Gambian Dalasi
    • + *
    • GEK - Georgian Kupon Larit
    • + *
    • GEL - Georgian Lari
    • + *
    • DEM - German Mark
    • + *
    • GHS - Ghanaian Cedi
    • + *
    • GHC - Ghanaian Cedi (1979–2007)
    • + *
    • GIP - Gibraltar Pound
    • + *
    • XAU - Gold
    • + *
    • GRD - Greek Drachma
    • + *
    • GTQ - Guatemalan Quetzal
    • + *
    • GWP - Guinea-Bissau Peso
    • + *
    • GNF - Guinean Franc
    • + *
    • GNS - Guinean Syli
    • + *
    • GYD - Guyanaese Dollar
    • + *
    • HTG - Haitian Gourde
    • + *
    • HNL - Honduran Lempira
    • + *
    • HKD - Hong Kong Dollar
    • + *
    • HUF - Hungarian Forint
    • + *
    • IMP - IMP
    • + *
    • ISK - Icelandic Króna
    • + *
    • ISJ - Icelandic Króna (1918–1981)
    • + *
    • INR - Indian Rupee
    • + *
    • IDR - Indonesian Rupiah
    • + *
    • IRR - Iranian Rial
    • + *
    • IQD - Iraqi Dinar
    • + *
    • IEP - Irish Pound
    • + *
    • ILS - Israeli New Shekel
    • + *
    • ILP - Israeli Pound
    • + *
    • ILR - Israeli Shekel (1980–1985)
    • + *
    • ITL - Italian Lira
    • + *
    • JMD - Jamaican Dollar
    • + *
    • JPY - Japanese Yen
    • + *
    • JOD - Jordanian Dinar
    • + *
    • KZT - Kazakhstani Tenge
    • + *
    • KES - Kenyan Shilling
    • + *
    • KWD - Kuwaiti Dinar
    • + *
    • KGS - Kyrgystani Som
    • + *
    • LAK - Laotian Kip
    • + *
    • LVL - Latvian Lats
    • + *
    • LVR - Latvian Ruble
    • + *
    • LBP - Lebanese Pound
    • + *
    • LSL - Lesotho Loti
    • + *
    • LRD - Liberian Dollar
    • + *
    • LYD - Libyan Dinar
    • + *
    • LTL - Lithuanian Litas
    • + *
    • LTT - Lithuanian Talonas
    • + *
    • LUL - Luxembourg Financial Franc
    • + *
    • LUC - Luxembourgian Convertible Franc
    • + *
    • LUF - Luxembourgian Franc
    • + *
    • MOP - Macanese Pataca
    • + *
    • MKD - Macedonian Denar
    • + *
    • MKN - Macedonian Denar (1992–1993)
    • + *
    • MGA - Malagasy Ariary
    • + *
    • MGF - Malagasy Franc
    • + *
    • MWK - Malawian Kwacha
    • + *
    • MYR - Malaysian Ringgit
    • + *
    • MVR - Maldivian Rufiyaa
    • + *
    • MVP - Maldivian Rupee (1947–1981)
    • + *
    • MLF - Malian Franc
    • + *
    • MTL - Maltese Lira
    • + *
    • MTP - Maltese Pound
    • + *
    • MRU - Mauritanian Ouguiya
    • + *
    • MRO - Mauritanian Ouguiya (1973–2017)
    • + *
    • MUR - Mauritian Rupee
    • + *
    • MXV - Mexican Investment Unit
    • + *
    • MXN - Mexican Peso
    • + *
    • MXP - Mexican Silver Peso (1861–1992)
    • + *
    • MDC - Moldovan Cupon
    • + *
    • MDL - Moldovan Leu
    • + *
    • MCF - Monegasque Franc
    • + *
    • MNT - Mongolian Tugrik
    • + *
    • MAD - Moroccan Dirham
    • + *
    • MAF - Moroccan Franc
    • + *
    • MZE - Mozambican Escudo
    • + *
    • MZN - Mozambican Metical
    • + *
    • MZM - Mozambican Metical (1980–2006)
    • + *
    • MMK - Myanmar Kyat
    • + *
    • NAD - Namibian Dollar
    • + *
    • NPR - Nepalese Rupee
    • + *
    • ANG - Netherlands Antillean Guilder
    • + *
    • TWD - New Taiwan Dollar
    • + *
    • NZD - New Zealand Dollar
    • + *
    • NIO - Nicaraguan Córdoba
    • + *
    • NIC - Nicaraguan Córdoba (1988–1991)
    • + *
    • NGN - Nigerian Naira
    • + *
    • KPW - North Korean Won
    • + *
    • NOK - Norwegian Krone
    • + *
    • OMR - Omani Rial
    • + *
    • PKR - Pakistani Rupee
    • + *
    • XPD - Palladium
    • + *
    • PAB - Panamanian Balboa
    • + *
    • PGK - Papua New Guinean Kina
    • + *
    • PYG - Paraguayan Guarani
    • + *
    • PEI - Peruvian Inti
    • + *
    • PEN - Peruvian Sol
    • + *
    • PES - Peruvian Sol (1863–1965)
    • + *
    • PHP - Philippine Peso
    • + *
    • XPT - Platinum
    • + *
    • PLN - Polish Zloty
    • + *
    • PLZ - Polish Zloty (1950–1995)
    • + *
    • PTE - Portuguese Escudo
    • + *
    • GWE - Portuguese Guinea Escudo
    • + *
    • QAR - Qatari Rial
    • + *
    • XRE - RINET Funds
    • + *
    • RHD - Rhodesian Dollar
    • + *
    • RON - Romanian Leu
    • + *
    • ROL - Romanian Leu (1952–2006)
    • + *
    • RUB - Russian Ruble
    • + *
    • RUR - Russian Ruble (1991–1998)
    • + *
    • RWF - Rwandan Franc
    • + *
    • SVC - Salvadoran Colón
    • + *
    • WST - Samoan Tala
    • + *
    • SAR - Saudi Riyal
    • + *
    • RSD - Serbian Dinar
    • + *
    • CSD - Serbian Dinar (2002–2006)
    • + *
    • SCR - Seychellois Rupee
    • + *
    • SLL - Sierra Leonean Leone
    • + *
    • XAG - Silver
    • + *
    • SGD - Singapore Dollar
    • + *
    • SKK - Slovak Koruna
    • + *
    • SIT - Slovenian Tolar
    • + *
    • SBD - Solomon Islands Dollar
    • + *
    • SOS - Somali Shilling
    • + *
    • ZAR - South African Rand
    • + *
    • ZAL - South African Rand (financial)
    • + *
    • KRH - South Korean Hwan (1953–1962)
    • + *
    • KRW - South Korean Won
    • + *
    • KRO - South Korean Won (1945–1953)
    • + *
    • SSP - South Sudanese Pound
    • + *
    • SUR - Soviet Rouble
    • + *
    • ESP - Spanish Peseta
    • + *
    • ESA - Spanish Peseta (A account)
    • + *
    • ESB - Spanish Peseta (convertible account)
    • + *
    • XDR - Special Drawing Rights
    • + *
    • LKR - Sri Lankan Rupee
    • + *
    • SHP - St. Helena Pound
    • + *
    • XSU - Sucre
    • + *
    • SDD - Sudanese Dinar (1992–2007)
    • + *
    • SDG - Sudanese Pound
    • + *
    • SDP - Sudanese Pound (1957–1998)
    • + *
    • SRD - Surinamese Dollar
    • + *
    • SRG - Surinamese Guilder
    • + *
    • SZL - Swazi Lilangeni
    • + *
    • SEK - Swedish Krona
    • + *
    • CHF - Swiss Franc
    • + *
    • SYP - Syrian Pound
    • + *
    • STN - São Tomé & Príncipe Dobra
    • + *
    • STD - São Tomé & Príncipe Dobra (1977–2017)
    • + *
    • TVD - TVD
    • + *
    • TJR - Tajikistani Ruble
    • + *
    • TJS - Tajikistani Somoni
    • + *
    • TZS - Tanzanian Shilling
    • + *
    • XTS - Testing Currency Code
    • + *
    • THB - Thai Baht
    • + *
    • XXX - The codes assigned for transactions where no currency is involved
    • + *
    • TPE - Timorese Escudo
    • + *
    • TOP - Tongan Paʻanga
    • + *
    • TTD - Trinidad & Tobago Dollar
    • + *
    • TND - Tunisian Dinar
    • + *
    • TRY - Turkish Lira
    • + *
    • TRL - Turkish Lira (1922–2005)
    • + *
    • TMT - Turkmenistani Manat
    • + *
    • TMM - Turkmenistani Manat (1993–2009)
    • + *
    • USD - US Dollar
    • + *
    • USN - US Dollar (Next day)
    • + *
    • USS - US Dollar (Same day)
    • + *
    • UGX - Ugandan Shilling
    • + *
    • UGS - Ugandan Shilling (1966–1987)
    • + *
    • UAH - Ukrainian Hryvnia
    • + *
    • UAK - Ukrainian Karbovanets
    • + *
    • AED - United Arab Emirates Dirham
    • + *
    • UYW - Uruguayan Nominal Wage Index Unit
    • + *
    • UYU - Uruguayan Peso
    • + *
    • UYP - Uruguayan Peso (1975–1993)
    • + *
    • UYI - Uruguayan Peso (Indexed Units)
    • + *
    • UZS - Uzbekistani Som
    • + *
    • VUV - Vanuatu Vatu
    • + *
    • VES - Venezuelan Bolívar
    • + *
    • VEB - Venezuelan Bolívar (1871–2008)
    • + *
    • VEF - Venezuelan Bolívar (2008–2018)
    • + *
    • VND - Vietnamese Dong
    • + *
    • VNN - Vietnamese Dong (1978–1985)
    • + *
    • CHE - WIR Euro
    • + *
    • CHW - WIR Franc
    • + *
    • XOF - West African CFA Franc
    • + *
    • YDD - Yemeni Dinar
    • + *
    • YER - Yemeni Rial
    • + *
    • YUN - Yugoslavian Convertible Dinar (1990–1992)
    • + *
    • YUD - Yugoslavian Hard Dinar (1966–1990)
    • + *
    • YUM - Yugoslavian New Dinar (1994–2002)
    • + *
    • YUR - Yugoslavian Reformed Dinar (1992–1993)
    • + *
    • ZWN - ZWN
    • + *
    • ZRN - Zairean New Zaire (1993–1998)
    • + *
    • ZRZ - Zairean Zaire (1971–1993)
    • + *
    • ZMW - Zambian Kwacha
    • + *
    • ZMK - Zambian Kwacha (1968–2012)
    • + *
    • ZWD - Zimbabwean Dollar (1980–2008)
    • + *
    • ZWR - Zimbabwean Dollar (2008)
    • + *
    • ZWL - Zimbabwean Dollar (2009)
    • + *
    + */ @JsonSetter(value = "currency", nulls = Nulls.SKIP) - public Builder currency(Optional currency) { + public Builder currency(Optional currency) { this.currency = currency; return this; } - public Builder currency(TransactionCurrencyEnum currency) { + public Builder currency(PatchedPaymentRequestCurrency currency) { this.currency = Optional.ofNullable(currency); return this; } + /** + *

    The payment's exchange rate.

    + */ @JsonSetter(value = "exchange_rate", nulls = Nulls.SKIP) public Builder exchangeRate(Optional exchangeRate) { this.exchangeRate = exchangeRate; @@ -691,6 +1017,9 @@ public Builder exchangeRate(String exchangeRate) { return this; } + /** + *

    The company the payment belongs to.

    + */ @JsonSetter(value = "company", nulls = Nulls.SKIP) public Builder company(Optional company) { this.company = company; @@ -702,6 +1031,9 @@ public Builder company(PatchedPaymentRequestCompany company) { return this; } + /** + *

    The total amount of money being paid to the supplier, or customer, after taxes.

    + */ @JsonSetter(value = "total_amount", nulls = Nulls.SKIP) public Builder totalAmount(Optional totalAmount) { this.totalAmount = totalAmount; @@ -713,13 +1045,20 @@ public Builder totalAmount(Double totalAmount) { return this; } + /** + *

    The type of the invoice.

    + *
      + *
    • ACCOUNTS_PAYABLE - ACCOUNTS_PAYABLE
    • + *
    • ACCOUNTS_RECEIVABLE - ACCOUNTS_RECEIVABLE
    • + *
    + */ @JsonSetter(value = "type", nulls = Nulls.SKIP) - public Builder type(Optional type) { + public Builder type(Optional type) { this.type = type; return this; } - public Builder type(PaymentTypeEnum type) { + public Builder type(PatchedPaymentRequestType type) { this.type = Optional.ofNullable(type); return this; } @@ -737,6 +1076,9 @@ public Builder trackingCategories( return this; } + /** + *

    The accounting period that the Payment was generated in.

    + */ @JsonSetter(value = "accounting_period", nulls = Nulls.SKIP) public Builder accountingPeriod(Optional accountingPeriod) { this.accountingPeriod = accountingPeriod; @@ -748,6 +1090,9 @@ public Builder accountingPeriod(PatchedPaymentRequestAccountingPeriod accounting return this; } + /** + *

    A list of “Payment Applied to Lines” objects.

    + */ @JsonSetter(value = "applied_to_lines", nulls = Nulls.SKIP) public Builder appliedToLines(Optional> appliedToLines) { this.appliedToLines = appliedToLines; diff --git a/src/main/java/com/merge/api/accounting/types/PatchedPaymentRequestCurrency.java b/src/main/java/com/merge/api/accounting/types/PatchedPaymentRequestCurrency.java new file mode 100644 index 000000000..5f0de1b39 --- /dev/null +++ b/src/main/java/com/merge/api/accounting/types/PatchedPaymentRequestCurrency.java @@ -0,0 +1,96 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.merge.api.accounting.types; + +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.databind.DeserializationContext; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.fasterxml.jackson.databind.deser.std.StdDeserializer; +import com.merge.api.core.ObjectMappers; +import java.io.IOException; +import java.util.Objects; + +@JsonDeserialize(using = PatchedPaymentRequestCurrency.Deserializer.class) +public final class PatchedPaymentRequestCurrency { + private final Object value; + + private final int type; + + private PatchedPaymentRequestCurrency(Object value, int type) { + this.value = value; + this.type = type; + } + + @JsonValue + public Object get() { + return this.value; + } + + @SuppressWarnings("unchecked") + public T visit(Visitor visitor) { + if (this.type == 0) { + return visitor.visit((TransactionCurrencyEnum) this.value); + } else if (this.type == 1) { + return visitor.visit((String) this.value); + } + throw new IllegalStateException("Failed to visit value. This should never happen."); + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof PatchedPaymentRequestCurrency && equalTo((PatchedPaymentRequestCurrency) other); + } + + private boolean equalTo(PatchedPaymentRequestCurrency other) { + return value.equals(other.value); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.value); + } + + @java.lang.Override + public String toString() { + return this.value.toString(); + } + + public static PatchedPaymentRequestCurrency of(TransactionCurrencyEnum value) { + return new PatchedPaymentRequestCurrency(value, 0); + } + + public static PatchedPaymentRequestCurrency of(String value) { + return new PatchedPaymentRequestCurrency(value, 1); + } + + public interface Visitor { + T visit(TransactionCurrencyEnum value); + + T visit(String value); + } + + static final class Deserializer extends StdDeserializer { + Deserializer() { + super(PatchedPaymentRequestCurrency.class); + } + + @java.lang.Override + public PatchedPaymentRequestCurrency deserialize(JsonParser p, DeserializationContext context) + throws IOException { + Object value = p.readValueAs(Object.class); + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, TransactionCurrencyEnum.class)); + } catch (IllegalArgumentException e) { + } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, String.class)); + } catch (IllegalArgumentException e) { + } + throw new JsonParseException(p, "Failed to deserialize"); + } + } +} diff --git a/src/main/java/com/merge/api/accounting/types/PatchedPaymentRequestType.java b/src/main/java/com/merge/api/accounting/types/PatchedPaymentRequestType.java new file mode 100644 index 000000000..0751d13ef --- /dev/null +++ b/src/main/java/com/merge/api/accounting/types/PatchedPaymentRequestType.java @@ -0,0 +1,95 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.merge.api.accounting.types; + +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.databind.DeserializationContext; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.fasterxml.jackson.databind.deser.std.StdDeserializer; +import com.merge.api.core.ObjectMappers; +import java.io.IOException; +import java.util.Objects; + +@JsonDeserialize(using = PatchedPaymentRequestType.Deserializer.class) +public final class PatchedPaymentRequestType { + private final Object value; + + private final int type; + + private PatchedPaymentRequestType(Object value, int type) { + this.value = value; + this.type = type; + } + + @JsonValue + public Object get() { + return this.value; + } + + @SuppressWarnings("unchecked") + public T visit(Visitor visitor) { + if (this.type == 0) { + return visitor.visit((PaymentTypeEnum) this.value); + } else if (this.type == 1) { + return visitor.visit((String) this.value); + } + throw new IllegalStateException("Failed to visit value. This should never happen."); + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof PatchedPaymentRequestType && equalTo((PatchedPaymentRequestType) other); + } + + private boolean equalTo(PatchedPaymentRequestType other) { + return value.equals(other.value); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.value); + } + + @java.lang.Override + public String toString() { + return this.value.toString(); + } + + public static PatchedPaymentRequestType of(PaymentTypeEnum value) { + return new PatchedPaymentRequestType(value, 0); + } + + public static PatchedPaymentRequestType of(String value) { + return new PatchedPaymentRequestType(value, 1); + } + + public interface Visitor { + T visit(PaymentTypeEnum value); + + T visit(String value); + } + + static final class Deserializer extends StdDeserializer { + Deserializer() { + super(PatchedPaymentRequestType.class); + } + + @java.lang.Override + public PatchedPaymentRequestType deserialize(JsonParser p, DeserializationContext context) throws IOException { + Object value = p.readValueAs(Object.class); + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, PaymentTypeEnum.class)); + } catch (IllegalArgumentException e) { + } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, String.class)); + } catch (IllegalArgumentException e) { + } + throw new JsonParseException(p, "Failed to deserialize"); + } + } +} diff --git a/src/main/java/com/merge/api/accounting/types/Payment.java b/src/main/java/com/merge/api/accounting/types/Payment.java index 829b1faed..6052c8114 100644 --- a/src/main/java/com/merge/api/accounting/types/Payment.java +++ b/src/main/java/com/merge/api/accounting/types/Payment.java @@ -39,7 +39,7 @@ public final class Payment { private final Optional paymentMethod; - private final Optional currency; + private final Optional currency; private final Optional exchangeRate; @@ -47,7 +47,7 @@ public final class Payment { private final Optional totalAmount; - private final Optional type; + private final Optional type; private final Optional>> trackingCategories; @@ -76,11 +76,11 @@ private Payment( Optional contact, Optional account, Optional paymentMethod, - Optional currency, + Optional currency, Optional exchangeRate, Optional company, Optional totalAmount, - Optional type, + Optional type, Optional>> trackingCategories, Optional accountingPeriod, Optional> appliedToLines, @@ -487,7 +487,7 @@ public Optional getPaymentMethod() { * */ @JsonProperty("currency") - public Optional getCurrency() { + public Optional getCurrency() { return currency; } @@ -523,7 +523,7 @@ public Optional getTotalAmount() { * */ @JsonProperty("type") - public Optional getType() { + public Optional getType() { return type; } @@ -667,7 +667,7 @@ public static final class Builder { private Optional paymentMethod = Optional.empty(); - private Optional currency = Optional.empty(); + private Optional currency = Optional.empty(); private Optional exchangeRate = Optional.empty(); @@ -675,7 +675,7 @@ public static final class Builder { private Optional totalAmount = Optional.empty(); - private Optional type = Optional.empty(); + private Optional type = Optional.empty(); private Optional>> trackingCategories = Optional.empty(); @@ -734,6 +734,9 @@ public Builder id(String id) { return this; } + /** + *

    The third-party API ID of the matching object.

    + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; @@ -745,6 +748,9 @@ public Builder remoteId(String remoteId) { return this; } + /** + *

    The datetime that this object was created by Merge.

    + */ @JsonSetter(value = "created_at", nulls = Nulls.SKIP) public Builder createdAt(Optional createdAt) { this.createdAt = createdAt; @@ -756,6 +762,9 @@ public Builder createdAt(OffsetDateTime createdAt) { return this; } + /** + *

    The datetime that this object was modified by Merge.

    + */ @JsonSetter(value = "modified_at", nulls = Nulls.SKIP) public Builder modifiedAt(Optional modifiedAt) { this.modifiedAt = modifiedAt; @@ -767,6 +776,9 @@ public Builder modifiedAt(OffsetDateTime modifiedAt) { return this; } + /** + *

    The payment's transaction date.

    + */ @JsonSetter(value = "transaction_date", nulls = Nulls.SKIP) public Builder transactionDate(Optional transactionDate) { this.transactionDate = transactionDate; @@ -778,6 +790,9 @@ public Builder transactionDate(OffsetDateTime transactionDate) { return this; } + /** + *

    The supplier, or customer involved in the payment.

    + */ @JsonSetter(value = "contact", nulls = Nulls.SKIP) public Builder contact(Optional contact) { this.contact = contact; @@ -789,6 +804,9 @@ public Builder contact(PaymentContact contact) { return this; } + /** + *

    The supplier’s or customer’s account in which the payment is made.

    + */ @JsonSetter(value = "account", nulls = Nulls.SKIP) public Builder account(Optional account) { this.account = account; @@ -800,6 +818,9 @@ public Builder account(PaymentAccount account) { return this; } + /** + *

    The method which this payment was made by.

    + */ @JsonSetter(value = "payment_method", nulls = Nulls.SKIP) public Builder paymentMethod(Optional paymentMethod) { this.paymentMethod = paymentMethod; @@ -811,17 +832,331 @@ public Builder paymentMethod(PaymentPaymentMethod paymentMethod) { return this; } + /** + *

    The payment's currency.

    + *
      + *
    • XUA - ADB Unit of Account
    • + *
    • AFN - Afghan Afghani
    • + *
    • AFA - Afghan Afghani (1927–2002)
    • + *
    • ALL - Albanian Lek
    • + *
    • ALK - Albanian Lek (1946–1965)
    • + *
    • DZD - Algerian Dinar
    • + *
    • ADP - Andorran Peseta
    • + *
    • AOA - Angolan Kwanza
    • + *
    • AOK - Angolan Kwanza (1977–1991)
    • + *
    • AON - Angolan New Kwanza (1990–2000)
    • + *
    • AOR - Angolan Readjusted Kwanza (1995–1999)
    • + *
    • ARA - Argentine Austral
    • + *
    • ARS - Argentine Peso
    • + *
    • ARM - Argentine Peso (1881–1970)
    • + *
    • ARP - Argentine Peso (1983–1985)
    • + *
    • ARL - Argentine Peso Ley (1970–1983)
    • + *
    • AMD - Armenian Dram
    • + *
    • AWG - Aruban Florin
    • + *
    • AUD - Australian Dollar
    • + *
    • ATS - Austrian Schilling
    • + *
    • AZN - Azerbaijani Manat
    • + *
    • AZM - Azerbaijani Manat (1993–2006)
    • + *
    • BSD - Bahamian Dollar
    • + *
    • BHD - Bahraini Dinar
    • + *
    • BDT - Bangladeshi Taka
    • + *
    • BBD - Barbadian Dollar
    • + *
    • BYN - Belarusian Ruble
    • + *
    • BYB - Belarusian Ruble (1994–1999)
    • + *
    • BYR - Belarusian Ruble (2000–2016)
    • + *
    • BEF - Belgian Franc
    • + *
    • BEC - Belgian Franc (convertible)
    • + *
    • BEL - Belgian Franc (financial)
    • + *
    • BZD - Belize Dollar
    • + *
    • BMD - Bermudan Dollar
    • + *
    • BTN - Bhutanese Ngultrum
    • + *
    • BOB - Bolivian Boliviano
    • + *
    • BOL - Bolivian Boliviano (1863–1963)
    • + *
    • BOV - Bolivian Mvdol
    • + *
    • BOP - Bolivian Peso
    • + *
    • BAM - Bosnia-Herzegovina Convertible Mark
    • + *
    • BAD - Bosnia-Herzegovina Dinar (1992–1994)
    • + *
    • BAN - Bosnia-Herzegovina New Dinar (1994–1997)
    • + *
    • BWP - Botswanan Pula
    • + *
    • BRC - Brazilian Cruzado (1986–1989)
    • + *
    • BRZ - Brazilian Cruzeiro (1942–1967)
    • + *
    • BRE - Brazilian Cruzeiro (1990–1993)
    • + *
    • BRR - Brazilian Cruzeiro (1993–1994)
    • + *
    • BRN - Brazilian New Cruzado (1989–1990)
    • + *
    • BRB - Brazilian New Cruzeiro (1967–1986)
    • + *
    • BRL - Brazilian Real
    • + *
    • GBP - British Pound
    • + *
    • BND - Brunei Dollar
    • + *
    • BGL - Bulgarian Hard Lev
    • + *
    • BGN - Bulgarian Lev
    • + *
    • BGO - Bulgarian Lev (1879–1952)
    • + *
    • BGM - Bulgarian Socialist Lev
    • + *
    • BUK - Burmese Kyat
    • + *
    • BIF - Burundian Franc
    • + *
    • XPF - CFP Franc
    • + *
    • KHR - Cambodian Riel
    • + *
    • CAD - Canadian Dollar
    • + *
    • CVE - Cape Verdean Escudo
    • + *
    • KYD - Cayman Islands Dollar
    • + *
    • XAF - Central African CFA Franc
    • + *
    • CLE - Chilean Escudo
    • + *
    • CLP - Chilean Peso
    • + *
    • CLF - Chilean Unit of Account (UF)
    • + *
    • CNX - Chinese People’s Bank Dollar
    • + *
    • CNY - Chinese Yuan
    • + *
    • CNH - Chinese Yuan (offshore)
    • + *
    • COP - Colombian Peso
    • + *
    • COU - Colombian Real Value Unit
    • + *
    • KMF - Comorian Franc
    • + *
    • CDF - Congolese Franc
    • + *
    • CRC - Costa Rican Colón
    • + *
    • HRD - Croatian Dinar
    • + *
    • HRK - Croatian Kuna
    • + *
    • CUC - Cuban Convertible Peso
    • + *
    • CUP - Cuban Peso
    • + *
    • CYP - Cypriot Pound
    • + *
    • CZK - Czech Koruna
    • + *
    • CSK - Czechoslovak Hard Koruna
    • + *
    • DKK - Danish Krone
    • + *
    • DJF - Djiboutian Franc
    • + *
    • DOP - Dominican Peso
    • + *
    • NLG - Dutch Guilder
    • + *
    • XCD - East Caribbean Dollar
    • + *
    • DDM - East German Mark
    • + *
    • ECS - Ecuadorian Sucre
    • + *
    • ECV - Ecuadorian Unit of Constant Value
    • + *
    • EGP - Egyptian Pound
    • + *
    • GQE - Equatorial Guinean Ekwele
    • + *
    • ERN - Eritrean Nakfa
    • + *
    • EEK - Estonian Kroon
    • + *
    • ETB - Ethiopian Birr
    • + *
    • EUR - Euro
    • + *
    • XBA - European Composite Unit
    • + *
    • XEU - European Currency Unit
    • + *
    • XBB - European Monetary Unit
    • + *
    • XBC - European Unit of Account (XBC)
    • + *
    • XBD - European Unit of Account (XBD)
    • + *
    • FKP - Falkland Islands Pound
    • + *
    • FJD - Fijian Dollar
    • + *
    • FIM - Finnish Markka
    • + *
    • FRF - French Franc
    • + *
    • XFO - French Gold Franc
    • + *
    • XFU - French UIC-Franc
    • + *
    • GMD - Gambian Dalasi
    • + *
    • GEK - Georgian Kupon Larit
    • + *
    • GEL - Georgian Lari
    • + *
    • DEM - German Mark
    • + *
    • GHS - Ghanaian Cedi
    • + *
    • GHC - Ghanaian Cedi (1979–2007)
    • + *
    • GIP - Gibraltar Pound
    • + *
    • XAU - Gold
    • + *
    • GRD - Greek Drachma
    • + *
    • GTQ - Guatemalan Quetzal
    • + *
    • GWP - Guinea-Bissau Peso
    • + *
    • GNF - Guinean Franc
    • + *
    • GNS - Guinean Syli
    • + *
    • GYD - Guyanaese Dollar
    • + *
    • HTG - Haitian Gourde
    • + *
    • HNL - Honduran Lempira
    • + *
    • HKD - Hong Kong Dollar
    • + *
    • HUF - Hungarian Forint
    • + *
    • IMP - IMP
    • + *
    • ISK - Icelandic Króna
    • + *
    • ISJ - Icelandic Króna (1918–1981)
    • + *
    • INR - Indian Rupee
    • + *
    • IDR - Indonesian Rupiah
    • + *
    • IRR - Iranian Rial
    • + *
    • IQD - Iraqi Dinar
    • + *
    • IEP - Irish Pound
    • + *
    • ILS - Israeli New Shekel
    • + *
    • ILP - Israeli Pound
    • + *
    • ILR - Israeli Shekel (1980–1985)
    • + *
    • ITL - Italian Lira
    • + *
    • JMD - Jamaican Dollar
    • + *
    • JPY - Japanese Yen
    • + *
    • JOD - Jordanian Dinar
    • + *
    • KZT - Kazakhstani Tenge
    • + *
    • KES - Kenyan Shilling
    • + *
    • KWD - Kuwaiti Dinar
    • + *
    • KGS - Kyrgystani Som
    • + *
    • LAK - Laotian Kip
    • + *
    • LVL - Latvian Lats
    • + *
    • LVR - Latvian Ruble
    • + *
    • LBP - Lebanese Pound
    • + *
    • LSL - Lesotho Loti
    • + *
    • LRD - Liberian Dollar
    • + *
    • LYD - Libyan Dinar
    • + *
    • LTL - Lithuanian Litas
    • + *
    • LTT - Lithuanian Talonas
    • + *
    • LUL - Luxembourg Financial Franc
    • + *
    • LUC - Luxembourgian Convertible Franc
    • + *
    • LUF - Luxembourgian Franc
    • + *
    • MOP - Macanese Pataca
    • + *
    • MKD - Macedonian Denar
    • + *
    • MKN - Macedonian Denar (1992–1993)
    • + *
    • MGA - Malagasy Ariary
    • + *
    • MGF - Malagasy Franc
    • + *
    • MWK - Malawian Kwacha
    • + *
    • MYR - Malaysian Ringgit
    • + *
    • MVR - Maldivian Rufiyaa
    • + *
    • MVP - Maldivian Rupee (1947–1981)
    • + *
    • MLF - Malian Franc
    • + *
    • MTL - Maltese Lira
    • + *
    • MTP - Maltese Pound
    • + *
    • MRU - Mauritanian Ouguiya
    • + *
    • MRO - Mauritanian Ouguiya (1973–2017)
    • + *
    • MUR - Mauritian Rupee
    • + *
    • MXV - Mexican Investment Unit
    • + *
    • MXN - Mexican Peso
    • + *
    • MXP - Mexican Silver Peso (1861–1992)
    • + *
    • MDC - Moldovan Cupon
    • + *
    • MDL - Moldovan Leu
    • + *
    • MCF - Monegasque Franc
    • + *
    • MNT - Mongolian Tugrik
    • + *
    • MAD - Moroccan Dirham
    • + *
    • MAF - Moroccan Franc
    • + *
    • MZE - Mozambican Escudo
    • + *
    • MZN - Mozambican Metical
    • + *
    • MZM - Mozambican Metical (1980–2006)
    • + *
    • MMK - Myanmar Kyat
    • + *
    • NAD - Namibian Dollar
    • + *
    • NPR - Nepalese Rupee
    • + *
    • ANG - Netherlands Antillean Guilder
    • + *
    • TWD - New Taiwan Dollar
    • + *
    • NZD - New Zealand Dollar
    • + *
    • NIO - Nicaraguan Córdoba
    • + *
    • NIC - Nicaraguan Córdoba (1988–1991)
    • + *
    • NGN - Nigerian Naira
    • + *
    • KPW - North Korean Won
    • + *
    • NOK - Norwegian Krone
    • + *
    • OMR - Omani Rial
    • + *
    • PKR - Pakistani Rupee
    • + *
    • XPD - Palladium
    • + *
    • PAB - Panamanian Balboa
    • + *
    • PGK - Papua New Guinean Kina
    • + *
    • PYG - Paraguayan Guarani
    • + *
    • PEI - Peruvian Inti
    • + *
    • PEN - Peruvian Sol
    • + *
    • PES - Peruvian Sol (1863–1965)
    • + *
    • PHP - Philippine Peso
    • + *
    • XPT - Platinum
    • + *
    • PLN - Polish Zloty
    • + *
    • PLZ - Polish Zloty (1950–1995)
    • + *
    • PTE - Portuguese Escudo
    • + *
    • GWE - Portuguese Guinea Escudo
    • + *
    • QAR - Qatari Rial
    • + *
    • XRE - RINET Funds
    • + *
    • RHD - Rhodesian Dollar
    • + *
    • RON - Romanian Leu
    • + *
    • ROL - Romanian Leu (1952–2006)
    • + *
    • RUB - Russian Ruble
    • + *
    • RUR - Russian Ruble (1991–1998)
    • + *
    • RWF - Rwandan Franc
    • + *
    • SVC - Salvadoran Colón
    • + *
    • WST - Samoan Tala
    • + *
    • SAR - Saudi Riyal
    • + *
    • RSD - Serbian Dinar
    • + *
    • CSD - Serbian Dinar (2002–2006)
    • + *
    • SCR - Seychellois Rupee
    • + *
    • SLL - Sierra Leonean Leone
    • + *
    • XAG - Silver
    • + *
    • SGD - Singapore Dollar
    • + *
    • SKK - Slovak Koruna
    • + *
    • SIT - Slovenian Tolar
    • + *
    • SBD - Solomon Islands Dollar
    • + *
    • SOS - Somali Shilling
    • + *
    • ZAR - South African Rand
    • + *
    • ZAL - South African Rand (financial)
    • + *
    • KRH - South Korean Hwan (1953–1962)
    • + *
    • KRW - South Korean Won
    • + *
    • KRO - South Korean Won (1945–1953)
    • + *
    • SSP - South Sudanese Pound
    • + *
    • SUR - Soviet Rouble
    • + *
    • ESP - Spanish Peseta
    • + *
    • ESA - Spanish Peseta (A account)
    • + *
    • ESB - Spanish Peseta (convertible account)
    • + *
    • XDR - Special Drawing Rights
    • + *
    • LKR - Sri Lankan Rupee
    • + *
    • SHP - St. Helena Pound
    • + *
    • XSU - Sucre
    • + *
    • SDD - Sudanese Dinar (1992–2007)
    • + *
    • SDG - Sudanese Pound
    • + *
    • SDP - Sudanese Pound (1957–1998)
    • + *
    • SRD - Surinamese Dollar
    • + *
    • SRG - Surinamese Guilder
    • + *
    • SZL - Swazi Lilangeni
    • + *
    • SEK - Swedish Krona
    • + *
    • CHF - Swiss Franc
    • + *
    • SYP - Syrian Pound
    • + *
    • STN - São Tomé & Príncipe Dobra
    • + *
    • STD - São Tomé & Príncipe Dobra (1977–2017)
    • + *
    • TVD - TVD
    • + *
    • TJR - Tajikistani Ruble
    • + *
    • TJS - Tajikistani Somoni
    • + *
    • TZS - Tanzanian Shilling
    • + *
    • XTS - Testing Currency Code
    • + *
    • THB - Thai Baht
    • + *
    • XXX - The codes assigned for transactions where no currency is involved
    • + *
    • TPE - Timorese Escudo
    • + *
    • TOP - Tongan Paʻanga
    • + *
    • TTD - Trinidad & Tobago Dollar
    • + *
    • TND - Tunisian Dinar
    • + *
    • TRY - Turkish Lira
    • + *
    • TRL - Turkish Lira (1922–2005)
    • + *
    • TMT - Turkmenistani Manat
    • + *
    • TMM - Turkmenistani Manat (1993–2009)
    • + *
    • USD - US Dollar
    • + *
    • USN - US Dollar (Next day)
    • + *
    • USS - US Dollar (Same day)
    • + *
    • UGX - Ugandan Shilling
    • + *
    • UGS - Ugandan Shilling (1966–1987)
    • + *
    • UAH - Ukrainian Hryvnia
    • + *
    • UAK - Ukrainian Karbovanets
    • + *
    • AED - United Arab Emirates Dirham
    • + *
    • UYW - Uruguayan Nominal Wage Index Unit
    • + *
    • UYU - Uruguayan Peso
    • + *
    • UYP - Uruguayan Peso (1975–1993)
    • + *
    • UYI - Uruguayan Peso (Indexed Units)
    • + *
    • UZS - Uzbekistani Som
    • + *
    • VUV - Vanuatu Vatu
    • + *
    • VES - Venezuelan Bolívar
    • + *
    • VEB - Venezuelan Bolívar (1871–2008)
    • + *
    • VEF - Venezuelan Bolívar (2008–2018)
    • + *
    • VND - Vietnamese Dong
    • + *
    • VNN - Vietnamese Dong (1978–1985)
    • + *
    • CHE - WIR Euro
    • + *
    • CHW - WIR Franc
    • + *
    • XOF - West African CFA Franc
    • + *
    • YDD - Yemeni Dinar
    • + *
    • YER - Yemeni Rial
    • + *
    • YUN - Yugoslavian Convertible Dinar (1990–1992)
    • + *
    • YUD - Yugoslavian Hard Dinar (1966–1990)
    • + *
    • YUM - Yugoslavian New Dinar (1994–2002)
    • + *
    • YUR - Yugoslavian Reformed Dinar (1992–1993)
    • + *
    • ZWN - ZWN
    • + *
    • ZRN - Zairean New Zaire (1993–1998)
    • + *
    • ZRZ - Zairean Zaire (1971–1993)
    • + *
    • ZMW - Zambian Kwacha
    • + *
    • ZMK - Zambian Kwacha (1968–2012)
    • + *
    • ZWD - Zimbabwean Dollar (1980–2008)
    • + *
    • ZWR - Zimbabwean Dollar (2008)
    • + *
    • ZWL - Zimbabwean Dollar (2009)
    • + *
    + */ @JsonSetter(value = "currency", nulls = Nulls.SKIP) - public Builder currency(Optional currency) { + public Builder currency(Optional currency) { this.currency = currency; return this; } - public Builder currency(TransactionCurrencyEnum currency) { + public Builder currency(PaymentCurrency currency) { this.currency = Optional.ofNullable(currency); return this; } + /** + *

    The payment's exchange rate.

    + */ @JsonSetter(value = "exchange_rate", nulls = Nulls.SKIP) public Builder exchangeRate(Optional exchangeRate) { this.exchangeRate = exchangeRate; @@ -833,6 +1168,9 @@ public Builder exchangeRate(String exchangeRate) { return this; } + /** + *

    The company the payment belongs to.

    + */ @JsonSetter(value = "company", nulls = Nulls.SKIP) public Builder company(Optional company) { this.company = company; @@ -844,6 +1182,9 @@ public Builder company(PaymentCompany company) { return this; } + /** + *

    The total amount of money being paid to the supplier, or customer, after taxes.

    + */ @JsonSetter(value = "total_amount", nulls = Nulls.SKIP) public Builder totalAmount(Optional totalAmount) { this.totalAmount = totalAmount; @@ -855,13 +1196,20 @@ public Builder totalAmount(Double totalAmount) { return this; } + /** + *

    The type of the invoice.

    + *
      + *
    • ACCOUNTS_PAYABLE - ACCOUNTS_PAYABLE
    • + *
    • ACCOUNTS_RECEIVABLE - ACCOUNTS_RECEIVABLE
    • + *
    + */ @JsonSetter(value = "type", nulls = Nulls.SKIP) - public Builder type(Optional type) { + public Builder type(Optional type) { this.type = type; return this; } - public Builder type(PaymentTypeEnum type) { + public Builder type(PaymentType type) { this.type = Optional.ofNullable(type); return this; } @@ -877,6 +1225,9 @@ public Builder trackingCategories(List> return this; } + /** + *

    The accounting period that the Payment was generated in.

    + */ @JsonSetter(value = "accounting_period", nulls = Nulls.SKIP) public Builder accountingPeriod(Optional accountingPeriod) { this.accountingPeriod = accountingPeriod; @@ -888,6 +1239,9 @@ public Builder accountingPeriod(PaymentAccountingPeriod accountingPeriod) { return this; } + /** + *

    A list of “Payment Applied to Lines” objects.

    + */ @JsonSetter(value = "applied_to_lines", nulls = Nulls.SKIP) public Builder appliedToLines(Optional> appliedToLines) { this.appliedToLines = appliedToLines; @@ -899,6 +1253,9 @@ public Builder appliedToLines(List appliedToLines) { return this; } + /** + *

    When the third party's payment entry was updated.

    + */ @JsonSetter(value = "remote_updated_at", nulls = Nulls.SKIP) public Builder remoteUpdatedAt(Optional remoteUpdatedAt) { this.remoteUpdatedAt = remoteUpdatedAt; @@ -910,6 +1267,9 @@ public Builder remoteUpdatedAt(OffsetDateTime remoteUpdatedAt) { return this; } + /** + *

    Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

    + */ @JsonSetter(value = "remote_was_deleted", nulls = Nulls.SKIP) public Builder remoteWasDeleted(Optional remoteWasDeleted) { this.remoteWasDeleted = remoteWasDeleted; diff --git a/src/main/java/com/merge/api/accounting/types/PaymentCurrency.java b/src/main/java/com/merge/api/accounting/types/PaymentCurrency.java new file mode 100644 index 000000000..6724e3a39 --- /dev/null +++ b/src/main/java/com/merge/api/accounting/types/PaymentCurrency.java @@ -0,0 +1,95 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.merge.api.accounting.types; + +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.databind.DeserializationContext; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.fasterxml.jackson.databind.deser.std.StdDeserializer; +import com.merge.api.core.ObjectMappers; +import java.io.IOException; +import java.util.Objects; + +@JsonDeserialize(using = PaymentCurrency.Deserializer.class) +public final class PaymentCurrency { + private final Object value; + + private final int type; + + private PaymentCurrency(Object value, int type) { + this.value = value; + this.type = type; + } + + @JsonValue + public Object get() { + return this.value; + } + + @SuppressWarnings("unchecked") + public T visit(Visitor visitor) { + if (this.type == 0) { + return visitor.visit((TransactionCurrencyEnum) this.value); + } else if (this.type == 1) { + return visitor.visit((String) this.value); + } + throw new IllegalStateException("Failed to visit value. This should never happen."); + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof PaymentCurrency && equalTo((PaymentCurrency) other); + } + + private boolean equalTo(PaymentCurrency other) { + return value.equals(other.value); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.value); + } + + @java.lang.Override + public String toString() { + return this.value.toString(); + } + + public static PaymentCurrency of(TransactionCurrencyEnum value) { + return new PaymentCurrency(value, 0); + } + + public static PaymentCurrency of(String value) { + return new PaymentCurrency(value, 1); + } + + public interface Visitor { + T visit(TransactionCurrencyEnum value); + + T visit(String value); + } + + static final class Deserializer extends StdDeserializer { + Deserializer() { + super(PaymentCurrency.class); + } + + @java.lang.Override + public PaymentCurrency deserialize(JsonParser p, DeserializationContext context) throws IOException { + Object value = p.readValueAs(Object.class); + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, TransactionCurrencyEnum.class)); + } catch (IllegalArgumentException e) { + } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, String.class)); + } catch (IllegalArgumentException e) { + } + throw new JsonParseException(p, "Failed to deserialize"); + } + } +} diff --git a/src/main/java/com/merge/api/accounting/types/PaymentEndpointRequest.java b/src/main/java/com/merge/api/accounting/types/PaymentEndpointRequest.java index 2018d5a40..0f27df81f 100644 --- a/src/main/java/com/merge/api/accounting/types/PaymentEndpointRequest.java +++ b/src/main/java/com/merge/api/accounting/types/PaymentEndpointRequest.java @@ -99,10 +99,16 @@ public interface ModelStage { public interface _FinalStage { PaymentEndpointRequest build(); + /** + *

    Whether to include debug fields (such as log file links) in the response.

    + */ _FinalStage isDebugMode(Optional isDebugMode); _FinalStage isDebugMode(Boolean isDebugMode); + /** + *

    Whether or not third-party updates should be run asynchronously.

    + */ _FinalStage runAsync(Optional runAsync); _FinalStage runAsync(Boolean runAsync); @@ -146,6 +152,9 @@ public _FinalStage runAsync(Boolean runAsync) { return this; } + /** + *

    Whether or not third-party updates should be run asynchronously.

    + */ @java.lang.Override @JsonSetter(value = "run_async", nulls = Nulls.SKIP) public _FinalStage runAsync(Optional runAsync) { @@ -163,6 +172,9 @@ public _FinalStage isDebugMode(Boolean isDebugMode) { return this; } + /** + *

    Whether to include debug fields (such as log file links) in the response.

    + */ @java.lang.Override @JsonSetter(value = "is_debug_mode", nulls = Nulls.SKIP) public _FinalStage isDebugMode(Optional isDebugMode) { diff --git a/src/main/java/com/merge/api/accounting/types/PaymentLineItem.java b/src/main/java/com/merge/api/accounting/types/PaymentLineItem.java index a6b684101..640d4b467 100644 --- a/src/main/java/com/merge/api/accounting/types/PaymentLineItem.java +++ b/src/main/java/com/merge/api/accounting/types/PaymentLineItem.java @@ -211,6 +211,9 @@ public Builder id(String id) { return this; } + /** + *

    The third-party API ID of the matching object.

    + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; @@ -222,6 +225,9 @@ public Builder remoteId(String remoteId) { return this; } + /** + *

    The datetime that this object was created by Merge.

    + */ @JsonSetter(value = "created_at", nulls = Nulls.SKIP) public Builder createdAt(Optional createdAt) { this.createdAt = createdAt; @@ -233,6 +239,9 @@ public Builder createdAt(OffsetDateTime createdAt) { return this; } + /** + *

    The datetime that this object was modified by Merge.

    + */ @JsonSetter(value = "modified_at", nulls = Nulls.SKIP) public Builder modifiedAt(Optional modifiedAt) { this.modifiedAt = modifiedAt; @@ -244,6 +253,9 @@ public Builder modifiedAt(OffsetDateTime modifiedAt) { return this; } + /** + *

    The amount being applied to the transaction.

    + */ @JsonSetter(value = "applied_amount", nulls = Nulls.SKIP) public Builder appliedAmount(Optional appliedAmount) { this.appliedAmount = appliedAmount; @@ -255,6 +267,9 @@ public Builder appliedAmount(String appliedAmount) { return this; } + /** + *

    The date the payment portion is applied.

    + */ @JsonSetter(value = "applied_date", nulls = Nulls.SKIP) public Builder appliedDate(Optional appliedDate) { this.appliedDate = appliedDate; @@ -266,6 +281,9 @@ public Builder appliedDate(OffsetDateTime appliedDate) { return this; } + /** + *

    The Merge ID of the transaction the payment portion is being applied to.

    + */ @JsonSetter(value = "related_object_id", nulls = Nulls.SKIP) public Builder relatedObjectId(Optional relatedObjectId) { this.relatedObjectId = relatedObjectId; @@ -277,6 +295,9 @@ public Builder relatedObjectId(String relatedObjectId) { return this; } + /** + *

    The type of transaction the payment portion is being applied to. Possible values include: INVOICE, JOURNAL_ENTRY, or CREDIT_NOTE.

    + */ @JsonSetter(value = "related_object_type", nulls = Nulls.SKIP) public Builder relatedObjectType(Optional relatedObjectType) { this.relatedObjectType = relatedObjectType; diff --git a/src/main/java/com/merge/api/accounting/types/PaymentLineItemRequest.java b/src/main/java/com/merge/api/accounting/types/PaymentLineItemRequest.java index 619fa7183..383bdc0fc 100644 --- a/src/main/java/com/merge/api/accounting/types/PaymentLineItemRequest.java +++ b/src/main/java/com/merge/api/accounting/types/PaymentLineItemRequest.java @@ -196,6 +196,9 @@ public Builder from(PaymentLineItemRequest other) { return this; } + /** + *

    The third-party API ID of the matching object.

    + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; @@ -207,6 +210,9 @@ public Builder remoteId(String remoteId) { return this; } + /** + *

    The amount being applied to the transaction.

    + */ @JsonSetter(value = "applied_amount", nulls = Nulls.SKIP) public Builder appliedAmount(Optional appliedAmount) { this.appliedAmount = appliedAmount; @@ -218,6 +224,9 @@ public Builder appliedAmount(String appliedAmount) { return this; } + /** + *

    The date the payment portion is applied.

    + */ @JsonSetter(value = "applied_date", nulls = Nulls.SKIP) public Builder appliedDate(Optional appliedDate) { this.appliedDate = appliedDate; @@ -229,6 +238,9 @@ public Builder appliedDate(OffsetDateTime appliedDate) { return this; } + /** + *

    The Merge ID of the transaction the payment portion is being applied to.

    + */ @JsonSetter(value = "related_object_id", nulls = Nulls.SKIP) public Builder relatedObjectId(Optional relatedObjectId) { this.relatedObjectId = relatedObjectId; @@ -240,6 +252,9 @@ public Builder relatedObjectId(String relatedObjectId) { return this; } + /** + *

    The type of transaction the payment portion is being applied to. Possible values include: INVOICE, JOURNAL_ENTRY, or CREDIT_NOTE.

    + */ @JsonSetter(value = "related_object_type", nulls = Nulls.SKIP) public Builder relatedObjectType(Optional relatedObjectType) { this.relatedObjectType = relatedObjectType; diff --git a/src/main/java/com/merge/api/accounting/types/PaymentMethod.java b/src/main/java/com/merge/api/accounting/types/PaymentMethod.java index ec1098824..e89a2d55c 100644 --- a/src/main/java/com/merge/api/accounting/types/PaymentMethod.java +++ b/src/main/java/com/merge/api/accounting/types/PaymentMethod.java @@ -32,7 +32,7 @@ public final class PaymentMethod { private final Optional modifiedAt; - private final MethodTypeEnum methodType; + private final PaymentMethodMethodType methodType; private final String name; @@ -51,7 +51,7 @@ private PaymentMethod( Optional remoteId, Optional createdAt, Optional modifiedAt, - MethodTypeEnum methodType, + PaymentMethodMethodType methodType, String name, Optional isActive, Optional remoteUpdatedAt, @@ -111,7 +111,7 @@ public Optional getModifiedAt() { * */ @JsonProperty("method_type") - public MethodTypeEnum getMethodType() { + public PaymentMethodMethodType getMethodType() { return methodType; } @@ -198,12 +198,24 @@ public static MethodTypeStage builder() { } public interface MethodTypeStage { - NameStage methodType(@NotNull MethodTypeEnum methodType); + /** + * The type of the payment method. + * + * * `CREDIT_CARD` - CREDIT_CARD + * * `DEBIT_CARD` - DEBIT_CARD + * * `ACH` - ACH + * * `CASH` - CASH + * * `CHECK` - CHECK + */ + NameStage methodType(@NotNull PaymentMethodMethodType methodType); Builder from(PaymentMethod other); } public interface NameStage { + /** + * The payment method’s name + */ _FinalStage name(@NotNull String name); } @@ -214,22 +226,37 @@ public interface _FinalStage { _FinalStage id(String id); + /** + *

    The third-party API ID of the matching object.

    + */ _FinalStage remoteId(Optional remoteId); _FinalStage remoteId(String remoteId); + /** + *

    The datetime that this object was created by Merge.

    + */ _FinalStage createdAt(Optional createdAt); _FinalStage createdAt(OffsetDateTime createdAt); + /** + *

    The datetime that this object was modified by Merge.

    + */ _FinalStage modifiedAt(Optional modifiedAt); _FinalStage modifiedAt(OffsetDateTime modifiedAt); + /** + *

    True if the payment method is active, False if not.

    + */ _FinalStage isActive(Optional isActive); _FinalStage isActive(Boolean isActive); + /** + *

    When the third party's payment method was updated.

    + */ _FinalStage remoteUpdatedAt(Optional remoteUpdatedAt); _FinalStage remoteUpdatedAt(OffsetDateTime remoteUpdatedAt); @@ -245,7 +272,7 @@ public interface _FinalStage { @JsonIgnoreProperties(ignoreUnknown = true) public static final class Builder implements MethodTypeStage, NameStage, _FinalStage { - private MethodTypeEnum methodType; + private PaymentMethodMethodType methodType; private String name; @@ -286,7 +313,13 @@ public Builder from(PaymentMethod other) { } /** - *

    The type of the payment method.

    + * The type of the payment method. + * + * * `CREDIT_CARD` - CREDIT_CARD + * * `DEBIT_CARD` - DEBIT_CARD + * * `ACH` - ACH + * * `CASH` - CASH + * * `CHECK` - CHECK

    The type of the payment method.

    *
      *
    • CREDIT_CARD - CREDIT_CARD
    • *
    • DEBIT_CARD - DEBIT_CARD
    • @@ -298,13 +331,13 @@ public Builder from(PaymentMethod other) { */ @java.lang.Override @JsonSetter("method_type") - public NameStage methodType(@NotNull MethodTypeEnum methodType) { + public NameStage methodType(@NotNull PaymentMethodMethodType methodType) { this.methodType = methodType; return this; } /** - *

      The payment method’s name

      + * The payment method’s name

      The payment method’s name

      * @return Reference to {@code this} so that method calls can be chained together. */ @java.lang.Override @@ -350,6 +383,9 @@ public _FinalStage remoteUpdatedAt(OffsetDateTime remoteUpdatedAt) { return this; } + /** + *

      When the third party's payment method was updated.

      + */ @java.lang.Override @JsonSetter(value = "remote_updated_at", nulls = Nulls.SKIP) public _FinalStage remoteUpdatedAt(Optional remoteUpdatedAt) { @@ -367,6 +403,9 @@ public _FinalStage isActive(Boolean isActive) { return this; } + /** + *

      True if the payment method is active, False if not.

      + */ @java.lang.Override @JsonSetter(value = "is_active", nulls = Nulls.SKIP) public _FinalStage isActive(Optional isActive) { @@ -384,6 +423,9 @@ public _FinalStage modifiedAt(OffsetDateTime modifiedAt) { return this; } + /** + *

      The datetime that this object was modified by Merge.

      + */ @java.lang.Override @JsonSetter(value = "modified_at", nulls = Nulls.SKIP) public _FinalStage modifiedAt(Optional modifiedAt) { @@ -401,6 +443,9 @@ public _FinalStage createdAt(OffsetDateTime createdAt) { return this; } + /** + *

      The datetime that this object was created by Merge.

      + */ @java.lang.Override @JsonSetter(value = "created_at", nulls = Nulls.SKIP) public _FinalStage createdAt(Optional createdAt) { @@ -418,6 +463,9 @@ public _FinalStage remoteId(String remoteId) { return this; } + /** + *

      The third-party API ID of the matching object.

      + */ @java.lang.Override @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public _FinalStage remoteId(Optional remoteId) { diff --git a/src/main/java/com/merge/api/accounting/types/PaymentMethodMethodType.java b/src/main/java/com/merge/api/accounting/types/PaymentMethodMethodType.java new file mode 100644 index 000000000..4d7b1ffdc --- /dev/null +++ b/src/main/java/com/merge/api/accounting/types/PaymentMethodMethodType.java @@ -0,0 +1,95 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.merge.api.accounting.types; + +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.databind.DeserializationContext; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.fasterxml.jackson.databind.deser.std.StdDeserializer; +import com.merge.api.core.ObjectMappers; +import java.io.IOException; +import java.util.Objects; + +@JsonDeserialize(using = PaymentMethodMethodType.Deserializer.class) +public final class PaymentMethodMethodType { + private final Object value; + + private final int type; + + private PaymentMethodMethodType(Object value, int type) { + this.value = value; + this.type = type; + } + + @JsonValue + public Object get() { + return this.value; + } + + @SuppressWarnings("unchecked") + public T visit(Visitor visitor) { + if (this.type == 0) { + return visitor.visit((MethodTypeEnum) this.value); + } else if (this.type == 1) { + return visitor.visit((String) this.value); + } + throw new IllegalStateException("Failed to visit value. This should never happen."); + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof PaymentMethodMethodType && equalTo((PaymentMethodMethodType) other); + } + + private boolean equalTo(PaymentMethodMethodType other) { + return value.equals(other.value); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.value); + } + + @java.lang.Override + public String toString() { + return this.value.toString(); + } + + public static PaymentMethodMethodType of(MethodTypeEnum value) { + return new PaymentMethodMethodType(value, 0); + } + + public static PaymentMethodMethodType of(String value) { + return new PaymentMethodMethodType(value, 1); + } + + public interface Visitor { + T visit(MethodTypeEnum value); + + T visit(String value); + } + + static final class Deserializer extends StdDeserializer { + Deserializer() { + super(PaymentMethodMethodType.class); + } + + @java.lang.Override + public PaymentMethodMethodType deserialize(JsonParser p, DeserializationContext context) throws IOException { + Object value = p.readValueAs(Object.class); + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, MethodTypeEnum.class)); + } catch (IllegalArgumentException e) { + } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, String.class)); + } catch (IllegalArgumentException e) { + } + throw new JsonParseException(p, "Failed to deserialize"); + } + } +} diff --git a/src/main/java/com/merge/api/accounting/types/PaymentMethodsListRequest.java b/src/main/java/com/merge/api/accounting/types/PaymentMethodsListRequest.java index 3fb1028f6..3417f92b0 100644 --- a/src/main/java/com/merge/api/accounting/types/PaymentMethodsListRequest.java +++ b/src/main/java/com/merge/api/accounting/types/PaymentMethodsListRequest.java @@ -147,6 +147,9 @@ public Builder from(PaymentMethodsListRequest other) { return this; } + /** + *

      The pagination cursor value.

      + */ @JsonSetter(value = "cursor", nulls = Nulls.SKIP) public Builder cursor(Optional cursor) { this.cursor = cursor; @@ -158,6 +161,9 @@ public Builder cursor(String cursor) { return this; } + /** + *

      Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

      + */ @JsonSetter(value = "include_deleted_data", nulls = Nulls.SKIP) public Builder includeDeletedData(Optional includeDeletedData) { this.includeDeletedData = includeDeletedData; @@ -169,6 +175,9 @@ public Builder includeDeletedData(Boolean includeDeletedData) { return this; } + /** + *

      Whether to include the original data Merge fetched from the third-party to produce these models.

      + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -180,6 +189,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

      Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

      + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; @@ -191,6 +203,9 @@ public Builder includeShellData(Boolean includeShellData) { return this; } + /** + *

      Number of results to return per page.

      + */ @JsonSetter(value = "page_size", nulls = Nulls.SKIP) public Builder pageSize(Optional pageSize) { this.pageSize = pageSize; diff --git a/src/main/java/com/merge/api/accounting/types/PaymentMethodsRetrieveRequest.java b/src/main/java/com/merge/api/accounting/types/PaymentMethodsRetrieveRequest.java index 3ccaa3b44..49f0d02d8 100644 --- a/src/main/java/com/merge/api/accounting/types/PaymentMethodsRetrieveRequest.java +++ b/src/main/java/com/merge/api/accounting/types/PaymentMethodsRetrieveRequest.java @@ -97,6 +97,9 @@ public Builder from(PaymentMethodsRetrieveRequest other) { return this; } + /** + *

      Whether to include the original data Merge fetched from the third-party to produce these models.

      + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -108,6 +111,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

      Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

      + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; diff --git a/src/main/java/com/merge/api/accounting/types/PaymentRequest.java b/src/main/java/com/merge/api/accounting/types/PaymentRequest.java index 33dfb5907..7ede2c853 100644 --- a/src/main/java/com/merge/api/accounting/types/PaymentRequest.java +++ b/src/main/java/com/merge/api/accounting/types/PaymentRequest.java @@ -31,7 +31,7 @@ public final class PaymentRequest { private final Optional paymentMethod; - private final Optional currency; + private final Optional currency; private final Optional exchangeRate; @@ -39,7 +39,7 @@ public final class PaymentRequest { private final Optional totalAmount; - private final Optional type; + private final Optional type; private final Optional>> trackingCategories; @@ -60,11 +60,11 @@ private PaymentRequest( Optional contact, Optional account, Optional paymentMethod, - Optional currency, + Optional currency, Optional exchangeRate, Optional company, Optional totalAmount, - Optional type, + Optional type, Optional>> trackingCategories, Optional accountingPeriod, Optional> appliedToLines, @@ -434,7 +434,7 @@ public Optional getPaymentMethod() { *
    */ @JsonProperty("currency") - public Optional getCurrency() { + public Optional getCurrency() { return currency; } @@ -470,7 +470,7 @@ public Optional getTotalAmount() { * */ @JsonProperty("type") - public Optional getType() { + public Optional getType() { return type; } @@ -578,7 +578,7 @@ public static final class Builder { private Optional paymentMethod = Optional.empty(); - private Optional currency = Optional.empty(); + private Optional currency = Optional.empty(); private Optional exchangeRate = Optional.empty(); @@ -586,7 +586,7 @@ public static final class Builder { private Optional totalAmount = Optional.empty(); - private Optional type = Optional.empty(); + private Optional type = Optional.empty(); private Optional>> trackingCategories = Optional.empty(); @@ -624,6 +624,9 @@ public Builder from(PaymentRequest other) { return this; } + /** + *

    The payment's transaction date.

    + */ @JsonSetter(value = "transaction_date", nulls = Nulls.SKIP) public Builder transactionDate(Optional transactionDate) { this.transactionDate = transactionDate; @@ -635,6 +638,9 @@ public Builder transactionDate(OffsetDateTime transactionDate) { return this; } + /** + *

    The supplier, or customer involved in the payment.

    + */ @JsonSetter(value = "contact", nulls = Nulls.SKIP) public Builder contact(Optional contact) { this.contact = contact; @@ -646,6 +652,9 @@ public Builder contact(PaymentRequestContact contact) { return this; } + /** + *

    The supplier’s or customer’s account in which the payment is made.

    + */ @JsonSetter(value = "account", nulls = Nulls.SKIP) public Builder account(Optional account) { this.account = account; @@ -657,6 +666,9 @@ public Builder account(PaymentRequestAccount account) { return this; } + /** + *

    The method which this payment was made by.

    + */ @JsonSetter(value = "payment_method", nulls = Nulls.SKIP) public Builder paymentMethod(Optional paymentMethod) { this.paymentMethod = paymentMethod; @@ -668,17 +680,331 @@ public Builder paymentMethod(PaymentRequestPaymentMethod paymentMethod) { return this; } + /** + *

    The payment's currency.

    + *
      + *
    • XUA - ADB Unit of Account
    • + *
    • AFN - Afghan Afghani
    • + *
    • AFA - Afghan Afghani (1927–2002)
    • + *
    • ALL - Albanian Lek
    • + *
    • ALK - Albanian Lek (1946–1965)
    • + *
    • DZD - Algerian Dinar
    • + *
    • ADP - Andorran Peseta
    • + *
    • AOA - Angolan Kwanza
    • + *
    • AOK - Angolan Kwanza (1977–1991)
    • + *
    • AON - Angolan New Kwanza (1990–2000)
    • + *
    • AOR - Angolan Readjusted Kwanza (1995–1999)
    • + *
    • ARA - Argentine Austral
    • + *
    • ARS - Argentine Peso
    • + *
    • ARM - Argentine Peso (1881–1970)
    • + *
    • ARP - Argentine Peso (1983–1985)
    • + *
    • ARL - Argentine Peso Ley (1970–1983)
    • + *
    • AMD - Armenian Dram
    • + *
    • AWG - Aruban Florin
    • + *
    • AUD - Australian Dollar
    • + *
    • ATS - Austrian Schilling
    • + *
    • AZN - Azerbaijani Manat
    • + *
    • AZM - Azerbaijani Manat (1993–2006)
    • + *
    • BSD - Bahamian Dollar
    • + *
    • BHD - Bahraini Dinar
    • + *
    • BDT - Bangladeshi Taka
    • + *
    • BBD - Barbadian Dollar
    • + *
    • BYN - Belarusian Ruble
    • + *
    • BYB - Belarusian Ruble (1994–1999)
    • + *
    • BYR - Belarusian Ruble (2000–2016)
    • + *
    • BEF - Belgian Franc
    • + *
    • BEC - Belgian Franc (convertible)
    • + *
    • BEL - Belgian Franc (financial)
    • + *
    • BZD - Belize Dollar
    • + *
    • BMD - Bermudan Dollar
    • + *
    • BTN - Bhutanese Ngultrum
    • + *
    • BOB - Bolivian Boliviano
    • + *
    • BOL - Bolivian Boliviano (1863–1963)
    • + *
    • BOV - Bolivian Mvdol
    • + *
    • BOP - Bolivian Peso
    • + *
    • BAM - Bosnia-Herzegovina Convertible Mark
    • + *
    • BAD - Bosnia-Herzegovina Dinar (1992–1994)
    • + *
    • BAN - Bosnia-Herzegovina New Dinar (1994–1997)
    • + *
    • BWP - Botswanan Pula
    • + *
    • BRC - Brazilian Cruzado (1986–1989)
    • + *
    • BRZ - Brazilian Cruzeiro (1942–1967)
    • + *
    • BRE - Brazilian Cruzeiro (1990–1993)
    • + *
    • BRR - Brazilian Cruzeiro (1993–1994)
    • + *
    • BRN - Brazilian New Cruzado (1989–1990)
    • + *
    • BRB - Brazilian New Cruzeiro (1967–1986)
    • + *
    • BRL - Brazilian Real
    • + *
    • GBP - British Pound
    • + *
    • BND - Brunei Dollar
    • + *
    • BGL - Bulgarian Hard Lev
    • + *
    • BGN - Bulgarian Lev
    • + *
    • BGO - Bulgarian Lev (1879–1952)
    • + *
    • BGM - Bulgarian Socialist Lev
    • + *
    • BUK - Burmese Kyat
    • + *
    • BIF - Burundian Franc
    • + *
    • XPF - CFP Franc
    • + *
    • KHR - Cambodian Riel
    • + *
    • CAD - Canadian Dollar
    • + *
    • CVE - Cape Verdean Escudo
    • + *
    • KYD - Cayman Islands Dollar
    • + *
    • XAF - Central African CFA Franc
    • + *
    • CLE - Chilean Escudo
    • + *
    • CLP - Chilean Peso
    • + *
    • CLF - Chilean Unit of Account (UF)
    • + *
    • CNX - Chinese People’s Bank Dollar
    • + *
    • CNY - Chinese Yuan
    • + *
    • CNH - Chinese Yuan (offshore)
    • + *
    • COP - Colombian Peso
    • + *
    • COU - Colombian Real Value Unit
    • + *
    • KMF - Comorian Franc
    • + *
    • CDF - Congolese Franc
    • + *
    • CRC - Costa Rican Colón
    • + *
    • HRD - Croatian Dinar
    • + *
    • HRK - Croatian Kuna
    • + *
    • CUC - Cuban Convertible Peso
    • + *
    • CUP - Cuban Peso
    • + *
    • CYP - Cypriot Pound
    • + *
    • CZK - Czech Koruna
    • + *
    • CSK - Czechoslovak Hard Koruna
    • + *
    • DKK - Danish Krone
    • + *
    • DJF - Djiboutian Franc
    • + *
    • DOP - Dominican Peso
    • + *
    • NLG - Dutch Guilder
    • + *
    • XCD - East Caribbean Dollar
    • + *
    • DDM - East German Mark
    • + *
    • ECS - Ecuadorian Sucre
    • + *
    • ECV - Ecuadorian Unit of Constant Value
    • + *
    • EGP - Egyptian Pound
    • + *
    • GQE - Equatorial Guinean Ekwele
    • + *
    • ERN - Eritrean Nakfa
    • + *
    • EEK - Estonian Kroon
    • + *
    • ETB - Ethiopian Birr
    • + *
    • EUR - Euro
    • + *
    • XBA - European Composite Unit
    • + *
    • XEU - European Currency Unit
    • + *
    • XBB - European Monetary Unit
    • + *
    • XBC - European Unit of Account (XBC)
    • + *
    • XBD - European Unit of Account (XBD)
    • + *
    • FKP - Falkland Islands Pound
    • + *
    • FJD - Fijian Dollar
    • + *
    • FIM - Finnish Markka
    • + *
    • FRF - French Franc
    • + *
    • XFO - French Gold Franc
    • + *
    • XFU - French UIC-Franc
    • + *
    • GMD - Gambian Dalasi
    • + *
    • GEK - Georgian Kupon Larit
    • + *
    • GEL - Georgian Lari
    • + *
    • DEM - German Mark
    • + *
    • GHS - Ghanaian Cedi
    • + *
    • GHC - Ghanaian Cedi (1979–2007)
    • + *
    • GIP - Gibraltar Pound
    • + *
    • XAU - Gold
    • + *
    • GRD - Greek Drachma
    • + *
    • GTQ - Guatemalan Quetzal
    • + *
    • GWP - Guinea-Bissau Peso
    • + *
    • GNF - Guinean Franc
    • + *
    • GNS - Guinean Syli
    • + *
    • GYD - Guyanaese Dollar
    • + *
    • HTG - Haitian Gourde
    • + *
    • HNL - Honduran Lempira
    • + *
    • HKD - Hong Kong Dollar
    • + *
    • HUF - Hungarian Forint
    • + *
    • IMP - IMP
    • + *
    • ISK - Icelandic Króna
    • + *
    • ISJ - Icelandic Króna (1918–1981)
    • + *
    • INR - Indian Rupee
    • + *
    • IDR - Indonesian Rupiah
    • + *
    • IRR - Iranian Rial
    • + *
    • IQD - Iraqi Dinar
    • + *
    • IEP - Irish Pound
    • + *
    • ILS - Israeli New Shekel
    • + *
    • ILP - Israeli Pound
    • + *
    • ILR - Israeli Shekel (1980–1985)
    • + *
    • ITL - Italian Lira
    • + *
    • JMD - Jamaican Dollar
    • + *
    • JPY - Japanese Yen
    • + *
    • JOD - Jordanian Dinar
    • + *
    • KZT - Kazakhstani Tenge
    • + *
    • KES - Kenyan Shilling
    • + *
    • KWD - Kuwaiti Dinar
    • + *
    • KGS - Kyrgystani Som
    • + *
    • LAK - Laotian Kip
    • + *
    • LVL - Latvian Lats
    • + *
    • LVR - Latvian Ruble
    • + *
    • LBP - Lebanese Pound
    • + *
    • LSL - Lesotho Loti
    • + *
    • LRD - Liberian Dollar
    • + *
    • LYD - Libyan Dinar
    • + *
    • LTL - Lithuanian Litas
    • + *
    • LTT - Lithuanian Talonas
    • + *
    • LUL - Luxembourg Financial Franc
    • + *
    • LUC - Luxembourgian Convertible Franc
    • + *
    • LUF - Luxembourgian Franc
    • + *
    • MOP - Macanese Pataca
    • + *
    • MKD - Macedonian Denar
    • + *
    • MKN - Macedonian Denar (1992–1993)
    • + *
    • MGA - Malagasy Ariary
    • + *
    • MGF - Malagasy Franc
    • + *
    • MWK - Malawian Kwacha
    • + *
    • MYR - Malaysian Ringgit
    • + *
    • MVR - Maldivian Rufiyaa
    • + *
    • MVP - Maldivian Rupee (1947–1981)
    • + *
    • MLF - Malian Franc
    • + *
    • MTL - Maltese Lira
    • + *
    • MTP - Maltese Pound
    • + *
    • MRU - Mauritanian Ouguiya
    • + *
    • MRO - Mauritanian Ouguiya (1973–2017)
    • + *
    • MUR - Mauritian Rupee
    • + *
    • MXV - Mexican Investment Unit
    • + *
    • MXN - Mexican Peso
    • + *
    • MXP - Mexican Silver Peso (1861–1992)
    • + *
    • MDC - Moldovan Cupon
    • + *
    • MDL - Moldovan Leu
    • + *
    • MCF - Monegasque Franc
    • + *
    • MNT - Mongolian Tugrik
    • + *
    • MAD - Moroccan Dirham
    • + *
    • MAF - Moroccan Franc
    • + *
    • MZE - Mozambican Escudo
    • + *
    • MZN - Mozambican Metical
    • + *
    • MZM - Mozambican Metical (1980–2006)
    • + *
    • MMK - Myanmar Kyat
    • + *
    • NAD - Namibian Dollar
    • + *
    • NPR - Nepalese Rupee
    • + *
    • ANG - Netherlands Antillean Guilder
    • + *
    • TWD - New Taiwan Dollar
    • + *
    • NZD - New Zealand Dollar
    • + *
    • NIO - Nicaraguan Córdoba
    • + *
    • NIC - Nicaraguan Córdoba (1988–1991)
    • + *
    • NGN - Nigerian Naira
    • + *
    • KPW - North Korean Won
    • + *
    • NOK - Norwegian Krone
    • + *
    • OMR - Omani Rial
    • + *
    • PKR - Pakistani Rupee
    • + *
    • XPD - Palladium
    • + *
    • PAB - Panamanian Balboa
    • + *
    • PGK - Papua New Guinean Kina
    • + *
    • PYG - Paraguayan Guarani
    • + *
    • PEI - Peruvian Inti
    • + *
    • PEN - Peruvian Sol
    • + *
    • PES - Peruvian Sol (1863–1965)
    • + *
    • PHP - Philippine Peso
    • + *
    • XPT - Platinum
    • + *
    • PLN - Polish Zloty
    • + *
    • PLZ - Polish Zloty (1950–1995)
    • + *
    • PTE - Portuguese Escudo
    • + *
    • GWE - Portuguese Guinea Escudo
    • + *
    • QAR - Qatari Rial
    • + *
    • XRE - RINET Funds
    • + *
    • RHD - Rhodesian Dollar
    • + *
    • RON - Romanian Leu
    • + *
    • ROL - Romanian Leu (1952–2006)
    • + *
    • RUB - Russian Ruble
    • + *
    • RUR - Russian Ruble (1991–1998)
    • + *
    • RWF - Rwandan Franc
    • + *
    • SVC - Salvadoran Colón
    • + *
    • WST - Samoan Tala
    • + *
    • SAR - Saudi Riyal
    • + *
    • RSD - Serbian Dinar
    • + *
    • CSD - Serbian Dinar (2002–2006)
    • + *
    • SCR - Seychellois Rupee
    • + *
    • SLL - Sierra Leonean Leone
    • + *
    • XAG - Silver
    • + *
    • SGD - Singapore Dollar
    • + *
    • SKK - Slovak Koruna
    • + *
    • SIT - Slovenian Tolar
    • + *
    • SBD - Solomon Islands Dollar
    • + *
    • SOS - Somali Shilling
    • + *
    • ZAR - South African Rand
    • + *
    • ZAL - South African Rand (financial)
    • + *
    • KRH - South Korean Hwan (1953–1962)
    • + *
    • KRW - South Korean Won
    • + *
    • KRO - South Korean Won (1945–1953)
    • + *
    • SSP - South Sudanese Pound
    • + *
    • SUR - Soviet Rouble
    • + *
    • ESP - Spanish Peseta
    • + *
    • ESA - Spanish Peseta (A account)
    • + *
    • ESB - Spanish Peseta (convertible account)
    • + *
    • XDR - Special Drawing Rights
    • + *
    • LKR - Sri Lankan Rupee
    • + *
    • SHP - St. Helena Pound
    • + *
    • XSU - Sucre
    • + *
    • SDD - Sudanese Dinar (1992–2007)
    • + *
    • SDG - Sudanese Pound
    • + *
    • SDP - Sudanese Pound (1957–1998)
    • + *
    • SRD - Surinamese Dollar
    • + *
    • SRG - Surinamese Guilder
    • + *
    • SZL - Swazi Lilangeni
    • + *
    • SEK - Swedish Krona
    • + *
    • CHF - Swiss Franc
    • + *
    • SYP - Syrian Pound
    • + *
    • STN - São Tomé & Príncipe Dobra
    • + *
    • STD - São Tomé & Príncipe Dobra (1977–2017)
    • + *
    • TVD - TVD
    • + *
    • TJR - Tajikistani Ruble
    • + *
    • TJS - Tajikistani Somoni
    • + *
    • TZS - Tanzanian Shilling
    • + *
    • XTS - Testing Currency Code
    • + *
    • THB - Thai Baht
    • + *
    • XXX - The codes assigned for transactions where no currency is involved
    • + *
    • TPE - Timorese Escudo
    • + *
    • TOP - Tongan Paʻanga
    • + *
    • TTD - Trinidad & Tobago Dollar
    • + *
    • TND - Tunisian Dinar
    • + *
    • TRY - Turkish Lira
    • + *
    • TRL - Turkish Lira (1922–2005)
    • + *
    • TMT - Turkmenistani Manat
    • + *
    • TMM - Turkmenistani Manat (1993–2009)
    • + *
    • USD - US Dollar
    • + *
    • USN - US Dollar (Next day)
    • + *
    • USS - US Dollar (Same day)
    • + *
    • UGX - Ugandan Shilling
    • + *
    • UGS - Ugandan Shilling (1966–1987)
    • + *
    • UAH - Ukrainian Hryvnia
    • + *
    • UAK - Ukrainian Karbovanets
    • + *
    • AED - United Arab Emirates Dirham
    • + *
    • UYW - Uruguayan Nominal Wage Index Unit
    • + *
    • UYU - Uruguayan Peso
    • + *
    • UYP - Uruguayan Peso (1975–1993)
    • + *
    • UYI - Uruguayan Peso (Indexed Units)
    • + *
    • UZS - Uzbekistani Som
    • + *
    • VUV - Vanuatu Vatu
    • + *
    • VES - Venezuelan Bolívar
    • + *
    • VEB - Venezuelan Bolívar (1871–2008)
    • + *
    • VEF - Venezuelan Bolívar (2008–2018)
    • + *
    • VND - Vietnamese Dong
    • + *
    • VNN - Vietnamese Dong (1978–1985)
    • + *
    • CHE - WIR Euro
    • + *
    • CHW - WIR Franc
    • + *
    • XOF - West African CFA Franc
    • + *
    • YDD - Yemeni Dinar
    • + *
    • YER - Yemeni Rial
    • + *
    • YUN - Yugoslavian Convertible Dinar (1990–1992)
    • + *
    • YUD - Yugoslavian Hard Dinar (1966–1990)
    • + *
    • YUM - Yugoslavian New Dinar (1994–2002)
    • + *
    • YUR - Yugoslavian Reformed Dinar (1992–1993)
    • + *
    • ZWN - ZWN
    • + *
    • ZRN - Zairean New Zaire (1993–1998)
    • + *
    • ZRZ - Zairean Zaire (1971–1993)
    • + *
    • ZMW - Zambian Kwacha
    • + *
    • ZMK - Zambian Kwacha (1968–2012)
    • + *
    • ZWD - Zimbabwean Dollar (1980–2008)
    • + *
    • ZWR - Zimbabwean Dollar (2008)
    • + *
    • ZWL - Zimbabwean Dollar (2009)
    • + *
    + */ @JsonSetter(value = "currency", nulls = Nulls.SKIP) - public Builder currency(Optional currency) { + public Builder currency(Optional currency) { this.currency = currency; return this; } - public Builder currency(TransactionCurrencyEnum currency) { + public Builder currency(PaymentRequestCurrency currency) { this.currency = Optional.ofNullable(currency); return this; } + /** + *

    The payment's exchange rate.

    + */ @JsonSetter(value = "exchange_rate", nulls = Nulls.SKIP) public Builder exchangeRate(Optional exchangeRate) { this.exchangeRate = exchangeRate; @@ -690,6 +1016,9 @@ public Builder exchangeRate(String exchangeRate) { return this; } + /** + *

    The company the payment belongs to.

    + */ @JsonSetter(value = "company", nulls = Nulls.SKIP) public Builder company(Optional company) { this.company = company; @@ -701,6 +1030,9 @@ public Builder company(PaymentRequestCompany company) { return this; } + /** + *

    The total amount of money being paid to the supplier, or customer, after taxes.

    + */ @JsonSetter(value = "total_amount", nulls = Nulls.SKIP) public Builder totalAmount(Optional totalAmount) { this.totalAmount = totalAmount; @@ -712,13 +1044,20 @@ public Builder totalAmount(Double totalAmount) { return this; } + /** + *

    The type of the invoice.

    + *
      + *
    • ACCOUNTS_PAYABLE - ACCOUNTS_PAYABLE
    • + *
    • ACCOUNTS_RECEIVABLE - ACCOUNTS_RECEIVABLE
    • + *
    + */ @JsonSetter(value = "type", nulls = Nulls.SKIP) - public Builder type(Optional type) { + public Builder type(Optional type) { this.type = type; return this; } - public Builder type(PaymentTypeEnum type) { + public Builder type(PaymentRequestType type) { this.type = Optional.ofNullable(type); return this; } @@ -735,6 +1074,9 @@ public Builder trackingCategories(ListThe accounting period that the Payment was generated in.

    + */ @JsonSetter(value = "accounting_period", nulls = Nulls.SKIP) public Builder accountingPeriod(Optional accountingPeriod) { this.accountingPeriod = accountingPeriod; @@ -746,6 +1088,9 @@ public Builder accountingPeriod(PaymentRequestAccountingPeriod accountingPeriod) return this; } + /** + *

    A list of “Payment Applied to Lines” objects.

    + */ @JsonSetter(value = "applied_to_lines", nulls = Nulls.SKIP) public Builder appliedToLines(Optional> appliedToLines) { this.appliedToLines = appliedToLines; diff --git a/src/main/java/com/merge/api/accounting/types/PaymentRequestCurrency.java b/src/main/java/com/merge/api/accounting/types/PaymentRequestCurrency.java new file mode 100644 index 000000000..c1e555978 --- /dev/null +++ b/src/main/java/com/merge/api/accounting/types/PaymentRequestCurrency.java @@ -0,0 +1,95 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.merge.api.accounting.types; + +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.databind.DeserializationContext; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.fasterxml.jackson.databind.deser.std.StdDeserializer; +import com.merge.api.core.ObjectMappers; +import java.io.IOException; +import java.util.Objects; + +@JsonDeserialize(using = PaymentRequestCurrency.Deserializer.class) +public final class PaymentRequestCurrency { + private final Object value; + + private final int type; + + private PaymentRequestCurrency(Object value, int type) { + this.value = value; + this.type = type; + } + + @JsonValue + public Object get() { + return this.value; + } + + @SuppressWarnings("unchecked") + public T visit(Visitor visitor) { + if (this.type == 0) { + return visitor.visit((TransactionCurrencyEnum) this.value); + } else if (this.type == 1) { + return visitor.visit((String) this.value); + } + throw new IllegalStateException("Failed to visit value. This should never happen."); + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof PaymentRequestCurrency && equalTo((PaymentRequestCurrency) other); + } + + private boolean equalTo(PaymentRequestCurrency other) { + return value.equals(other.value); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.value); + } + + @java.lang.Override + public String toString() { + return this.value.toString(); + } + + public static PaymentRequestCurrency of(TransactionCurrencyEnum value) { + return new PaymentRequestCurrency(value, 0); + } + + public static PaymentRequestCurrency of(String value) { + return new PaymentRequestCurrency(value, 1); + } + + public interface Visitor { + T visit(TransactionCurrencyEnum value); + + T visit(String value); + } + + static final class Deserializer extends StdDeserializer { + Deserializer() { + super(PaymentRequestCurrency.class); + } + + @java.lang.Override + public PaymentRequestCurrency deserialize(JsonParser p, DeserializationContext context) throws IOException { + Object value = p.readValueAs(Object.class); + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, TransactionCurrencyEnum.class)); + } catch (IllegalArgumentException e) { + } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, String.class)); + } catch (IllegalArgumentException e) { + } + throw new JsonParseException(p, "Failed to deserialize"); + } + } +} diff --git a/src/main/java/com/merge/api/accounting/types/PaymentRequestType.java b/src/main/java/com/merge/api/accounting/types/PaymentRequestType.java new file mode 100644 index 000000000..e698bae91 --- /dev/null +++ b/src/main/java/com/merge/api/accounting/types/PaymentRequestType.java @@ -0,0 +1,95 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.merge.api.accounting.types; + +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.databind.DeserializationContext; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.fasterxml.jackson.databind.deser.std.StdDeserializer; +import com.merge.api.core.ObjectMappers; +import java.io.IOException; +import java.util.Objects; + +@JsonDeserialize(using = PaymentRequestType.Deserializer.class) +public final class PaymentRequestType { + private final Object value; + + private final int type; + + private PaymentRequestType(Object value, int type) { + this.value = value; + this.type = type; + } + + @JsonValue + public Object get() { + return this.value; + } + + @SuppressWarnings("unchecked") + public T visit(Visitor visitor) { + if (this.type == 0) { + return visitor.visit((PaymentTypeEnum) this.value); + } else if (this.type == 1) { + return visitor.visit((String) this.value); + } + throw new IllegalStateException("Failed to visit value. This should never happen."); + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof PaymentRequestType && equalTo((PaymentRequestType) other); + } + + private boolean equalTo(PaymentRequestType other) { + return value.equals(other.value); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.value); + } + + @java.lang.Override + public String toString() { + return this.value.toString(); + } + + public static PaymentRequestType of(PaymentTypeEnum value) { + return new PaymentRequestType(value, 0); + } + + public static PaymentRequestType of(String value) { + return new PaymentRequestType(value, 1); + } + + public interface Visitor { + T visit(PaymentTypeEnum value); + + T visit(String value); + } + + static final class Deserializer extends StdDeserializer { + Deserializer() { + super(PaymentRequestType.class); + } + + @java.lang.Override + public PaymentRequestType deserialize(JsonParser p, DeserializationContext context) throws IOException { + Object value = p.readValueAs(Object.class); + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, PaymentTypeEnum.class)); + } catch (IllegalArgumentException e) { + } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, String.class)); + } catch (IllegalArgumentException e) { + } + throw new JsonParseException(p, "Failed to deserialize"); + } + } +} diff --git a/src/main/java/com/merge/api/accounting/types/PaymentTerm.java b/src/main/java/com/merge/api/accounting/types/PaymentTerm.java index eab77936c..1ec02c9ef 100644 --- a/src/main/java/com/merge/api/accounting/types/PaymentTerm.java +++ b/src/main/java/com/merge/api/accounting/types/PaymentTerm.java @@ -219,6 +219,9 @@ public static NameStage builder() { } public interface NameStage { + /** + * The name of the payment term. + */ _FinalStage name(@NotNull String name); Builder from(PaymentTerm other); @@ -231,34 +234,58 @@ public interface _FinalStage { _FinalStage id(String id); + /** + *

    The third-party API ID of the matching object.

    + */ _FinalStage remoteId(Optional remoteId); _FinalStage remoteId(String remoteId); + /** + *

    The datetime that this object was created by Merge.

    + */ _FinalStage createdAt(Optional createdAt); _FinalStage createdAt(OffsetDateTime createdAt); + /** + *

    The datetime that this object was modified by Merge.

    + */ _FinalStage modifiedAt(Optional modifiedAt); _FinalStage modifiedAt(OffsetDateTime modifiedAt); + /** + *

    True if the payment term is active, False if not.

    + */ _FinalStage isActive(Optional isActive); _FinalStage isActive(Boolean isActive); + /** + *

    The subsidiary that the payment term belongs to.

    + */ _FinalStage company(Optional company); _FinalStage company(PaymentTermCompany company); + /** + *

    The number of days after the invoice date that payment is due.

    + */ _FinalStage daysUntilDue(Optional daysUntilDue); _FinalStage daysUntilDue(Integer daysUntilDue); + /** + *

    The number of days the invoice must be paid before discounts expire.

    + */ _FinalStage discountDays(Optional discountDays); _FinalStage discountDays(Integer discountDays); + /** + *

    When the third party's payment term was modified.

    + */ _FinalStage remoteLastModifiedAt(Optional remoteLastModifiedAt); _FinalStage remoteLastModifiedAt(OffsetDateTime remoteLastModifiedAt); @@ -321,7 +348,7 @@ public Builder from(PaymentTerm other) { } /** - *

    The name of the payment term.

    + * The name of the payment term.

    The name of the payment term.

    * @return Reference to {@code this} so that method calls can be chained together. */ @java.lang.Override @@ -367,6 +394,9 @@ public _FinalStage remoteLastModifiedAt(OffsetDateTime remoteLastModifiedAt) { return this; } + /** + *

    When the third party's payment term was modified.

    + */ @java.lang.Override @JsonSetter(value = "remote_last_modified_at", nulls = Nulls.SKIP) public _FinalStage remoteLastModifiedAt(Optional remoteLastModifiedAt) { @@ -384,6 +414,9 @@ public _FinalStage discountDays(Integer discountDays) { return this; } + /** + *

    The number of days the invoice must be paid before discounts expire.

    + */ @java.lang.Override @JsonSetter(value = "discount_days", nulls = Nulls.SKIP) public _FinalStage discountDays(Optional discountDays) { @@ -401,6 +434,9 @@ public _FinalStage daysUntilDue(Integer daysUntilDue) { return this; } + /** + *

    The number of days after the invoice date that payment is due.

    + */ @java.lang.Override @JsonSetter(value = "days_until_due", nulls = Nulls.SKIP) public _FinalStage daysUntilDue(Optional daysUntilDue) { @@ -418,6 +454,9 @@ public _FinalStage company(PaymentTermCompany company) { return this; } + /** + *

    The subsidiary that the payment term belongs to.

    + */ @java.lang.Override @JsonSetter(value = "company", nulls = Nulls.SKIP) public _FinalStage company(Optional company) { @@ -435,6 +474,9 @@ public _FinalStage isActive(Boolean isActive) { return this; } + /** + *

    True if the payment term is active, False if not.

    + */ @java.lang.Override @JsonSetter(value = "is_active", nulls = Nulls.SKIP) public _FinalStage isActive(Optional isActive) { @@ -452,6 +494,9 @@ public _FinalStage modifiedAt(OffsetDateTime modifiedAt) { return this; } + /** + *

    The datetime that this object was modified by Merge.

    + */ @java.lang.Override @JsonSetter(value = "modified_at", nulls = Nulls.SKIP) public _FinalStage modifiedAt(Optional modifiedAt) { @@ -469,6 +514,9 @@ public _FinalStage createdAt(OffsetDateTime createdAt) { return this; } + /** + *

    The datetime that this object was created by Merge.

    + */ @java.lang.Override @JsonSetter(value = "created_at", nulls = Nulls.SKIP) public _FinalStage createdAt(Optional createdAt) { @@ -486,6 +534,9 @@ public _FinalStage remoteId(String remoteId) { return this; } + /** + *

    The third-party API ID of the matching object.

    + */ @java.lang.Override @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public _FinalStage remoteId(Optional remoteId) { diff --git a/src/main/java/com/merge/api/accounting/types/PaymentTermsListRequest.java b/src/main/java/com/merge/api/accounting/types/PaymentTermsListRequest.java index a52d85b99..c53bc58b6 100644 --- a/src/main/java/com/merge/api/accounting/types/PaymentTermsListRequest.java +++ b/src/main/java/com/merge/api/accounting/types/PaymentTermsListRequest.java @@ -170,6 +170,9 @@ public Builder from(PaymentTermsListRequest other) { return this; } + /** + *

    Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.

    + */ @JsonSetter(value = "expand", nulls = Nulls.SKIP) public Builder expand(Optional> expand) { this.expand = expand; @@ -186,6 +189,9 @@ public Builder expand(String expand) { return this; } + /** + *

    The pagination cursor value.

    + */ @JsonSetter(value = "cursor", nulls = Nulls.SKIP) public Builder cursor(Optional cursor) { this.cursor = cursor; @@ -197,6 +203,9 @@ public Builder cursor(String cursor) { return this; } + /** + *

    Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

    + */ @JsonSetter(value = "include_deleted_data", nulls = Nulls.SKIP) public Builder includeDeletedData(Optional includeDeletedData) { this.includeDeletedData = includeDeletedData; @@ -208,6 +217,9 @@ public Builder includeDeletedData(Boolean includeDeletedData) { return this; } + /** + *

    Whether to include the original data Merge fetched from the third-party to produce these models.

    + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -219,6 +231,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

    Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

    + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; @@ -230,6 +245,9 @@ public Builder includeShellData(Boolean includeShellData) { return this; } + /** + *

    Number of results to return per page.

    + */ @JsonSetter(value = "page_size", nulls = Nulls.SKIP) public Builder pageSize(Optional pageSize) { this.pageSize = pageSize; diff --git a/src/main/java/com/merge/api/accounting/types/PaymentTermsRetrieveRequest.java b/src/main/java/com/merge/api/accounting/types/PaymentTermsRetrieveRequest.java index b2a1d006c..6408c1345 100644 --- a/src/main/java/com/merge/api/accounting/types/PaymentTermsRetrieveRequest.java +++ b/src/main/java/com/merge/api/accounting/types/PaymentTermsRetrieveRequest.java @@ -116,6 +116,9 @@ public Builder from(PaymentTermsRetrieveRequest other) { return this; } + /** + *

    Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.

    + */ @JsonSetter(value = "expand", nulls = Nulls.SKIP) public Builder expand(Optional> expand) { this.expand = expand; @@ -132,6 +135,9 @@ public Builder expand(String expand) { return this; } + /** + *

    Whether to include the original data Merge fetched from the third-party to produce these models.

    + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -143,6 +149,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

    Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

    + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; diff --git a/src/main/java/com/merge/api/accounting/types/PaymentType.java b/src/main/java/com/merge/api/accounting/types/PaymentType.java new file mode 100644 index 000000000..f6003b9ef --- /dev/null +++ b/src/main/java/com/merge/api/accounting/types/PaymentType.java @@ -0,0 +1,95 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.merge.api.accounting.types; + +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.databind.DeserializationContext; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.fasterxml.jackson.databind.deser.std.StdDeserializer; +import com.merge.api.core.ObjectMappers; +import java.io.IOException; +import java.util.Objects; + +@JsonDeserialize(using = PaymentType.Deserializer.class) +public final class PaymentType { + private final Object value; + + private final int type; + + private PaymentType(Object value, int type) { + this.value = value; + this.type = type; + } + + @JsonValue + public Object get() { + return this.value; + } + + @SuppressWarnings("unchecked") + public T visit(Visitor visitor) { + if (this.type == 0) { + return visitor.visit((PaymentTypeEnum) this.value); + } else if (this.type == 1) { + return visitor.visit((String) this.value); + } + throw new IllegalStateException("Failed to visit value. This should never happen."); + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof PaymentType && equalTo((PaymentType) other); + } + + private boolean equalTo(PaymentType other) { + return value.equals(other.value); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.value); + } + + @java.lang.Override + public String toString() { + return this.value.toString(); + } + + public static PaymentType of(PaymentTypeEnum value) { + return new PaymentType(value, 0); + } + + public static PaymentType of(String value) { + return new PaymentType(value, 1); + } + + public interface Visitor { + T visit(PaymentTypeEnum value); + + T visit(String value); + } + + static final class Deserializer extends StdDeserializer { + Deserializer() { + super(PaymentType.class); + } + + @java.lang.Override + public PaymentType deserialize(JsonParser p, DeserializationContext context) throws IOException { + Object value = p.readValueAs(Object.class); + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, PaymentTypeEnum.class)); + } catch (IllegalArgumentException e) { + } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, String.class)); + } catch (IllegalArgumentException e) { + } + throw new JsonParseException(p, "Failed to deserialize"); + } + } +} diff --git a/src/main/java/com/merge/api/accounting/types/PaymentsLineItemsRemoteFieldClassesListRequest.java b/src/main/java/com/merge/api/accounting/types/PaymentsLineItemsRemoteFieldClassesListRequest.java index 0347ad39d..c27d272e5 100644 --- a/src/main/java/com/merge/api/accounting/types/PaymentsLineItemsRemoteFieldClassesListRequest.java +++ b/src/main/java/com/merge/api/accounting/types/PaymentsLineItemsRemoteFieldClassesListRequest.java @@ -30,6 +30,8 @@ public final class PaymentsLineItemsRemoteFieldClassesListRequest { private final Optional isCommonModelField; + private final Optional isCustom; + private final Optional pageSize; private final Map additionalProperties; @@ -40,6 +42,7 @@ private PaymentsLineItemsRemoteFieldClassesListRequest( Optional includeRemoteData, Optional includeShellData, Optional isCommonModelField, + Optional isCustom, Optional pageSize, Map additionalProperties) { this.cursor = cursor; @@ -47,6 +50,7 @@ private PaymentsLineItemsRemoteFieldClassesListRequest( this.includeRemoteData = includeRemoteData; this.includeShellData = includeShellData; this.isCommonModelField = isCommonModelField; + this.isCustom = isCustom; this.pageSize = pageSize; this.additionalProperties = additionalProperties; } @@ -91,6 +95,14 @@ public Optional getIsCommonModelField() { return isCommonModelField; } + /** + * @return If provided, will only return remote fields classes with this is_custom value + */ + @JsonProperty("is_custom") + public Optional getIsCustom() { + return isCustom; + } + /** * @return Number of results to return per page. */ @@ -117,6 +129,7 @@ private boolean equalTo(PaymentsLineItemsRemoteFieldClassesListRequest other) { && includeRemoteData.equals(other.includeRemoteData) && includeShellData.equals(other.includeShellData) && isCommonModelField.equals(other.isCommonModelField) + && isCustom.equals(other.isCustom) && pageSize.equals(other.pageSize); } @@ -128,6 +141,7 @@ public int hashCode() { this.includeRemoteData, this.includeShellData, this.isCommonModelField, + this.isCustom, this.pageSize); } @@ -152,6 +166,8 @@ public static final class Builder { private Optional isCommonModelField = Optional.empty(); + private Optional isCustom = Optional.empty(); + private Optional pageSize = Optional.empty(); @JsonAnySetter @@ -165,10 +181,14 @@ public Builder from(PaymentsLineItemsRemoteFieldClassesListRequest other) { includeRemoteData(other.getIncludeRemoteData()); includeShellData(other.getIncludeShellData()); isCommonModelField(other.getIsCommonModelField()); + isCustom(other.getIsCustom()); pageSize(other.getPageSize()); return this; } + /** + *

    The pagination cursor value.

    + */ @JsonSetter(value = "cursor", nulls = Nulls.SKIP) public Builder cursor(Optional cursor) { this.cursor = cursor; @@ -180,6 +200,9 @@ public Builder cursor(String cursor) { return this; } + /** + *

    Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

    + */ @JsonSetter(value = "include_deleted_data", nulls = Nulls.SKIP) public Builder includeDeletedData(Optional includeDeletedData) { this.includeDeletedData = includeDeletedData; @@ -191,6 +214,9 @@ public Builder includeDeletedData(Boolean includeDeletedData) { return this; } + /** + *

    Whether to include the original data Merge fetched from the third-party to produce these models.

    + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -202,6 +228,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

    Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

    + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; @@ -213,6 +242,9 @@ public Builder includeShellData(Boolean includeShellData) { return this; } + /** + *

    If provided, will only return remote field classes with this is_common_model_field value

    + */ @JsonSetter(value = "is_common_model_field", nulls = Nulls.SKIP) public Builder isCommonModelField(Optional isCommonModelField) { this.isCommonModelField = isCommonModelField; @@ -224,6 +256,23 @@ public Builder isCommonModelField(Boolean isCommonModelField) { return this; } + /** + *

    If provided, will only return remote fields classes with this is_custom value

    + */ + @JsonSetter(value = "is_custom", nulls = Nulls.SKIP) + public Builder isCustom(Optional isCustom) { + this.isCustom = isCustom; + return this; + } + + public Builder isCustom(Boolean isCustom) { + this.isCustom = Optional.ofNullable(isCustom); + return this; + } + + /** + *

    Number of results to return per page.

    + */ @JsonSetter(value = "page_size", nulls = Nulls.SKIP) public Builder pageSize(Optional pageSize) { this.pageSize = pageSize; @@ -242,6 +291,7 @@ public PaymentsLineItemsRemoteFieldClassesListRequest build() { includeRemoteData, includeShellData, isCommonModelField, + isCustom, pageSize, additionalProperties); } diff --git a/src/main/java/com/merge/api/accounting/types/PaymentsListRequest.java b/src/main/java/com/merge/api/accounting/types/PaymentsListRequest.java index 7659e693f..fe03a01ca 100644 --- a/src/main/java/com/merge/api/accounting/types/PaymentsListRequest.java +++ b/src/main/java/com/merge/api/accounting/types/PaymentsListRequest.java @@ -358,6 +358,9 @@ public Builder from(PaymentsListRequest other) { return this; } + /** + *

    Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.

    + */ @JsonSetter(value = "expand", nulls = Nulls.SKIP) public Builder expand(Optional> expand) { this.expand = expand; @@ -374,6 +377,9 @@ public Builder expand(PaymentsListRequestExpandItem expand) { return this; } + /** + *

    If provided, will only return payments for this account.

    + */ @JsonSetter(value = "account_id", nulls = Nulls.SKIP) public Builder accountId(Optional accountId) { this.accountId = accountId; @@ -385,6 +391,9 @@ public Builder accountId(String accountId) { return this; } + /** + *

    If provided, will only return payments for this company.

    + */ @JsonSetter(value = "company_id", nulls = Nulls.SKIP) public Builder companyId(Optional companyId) { this.companyId = companyId; @@ -396,6 +405,9 @@ public Builder companyId(String companyId) { return this; } + /** + *

    If provided, will only return payments for this contact.

    + */ @JsonSetter(value = "contact_id", nulls = Nulls.SKIP) public Builder contactId(Optional contactId) { this.contactId = contactId; @@ -407,6 +419,9 @@ public Builder contactId(String contactId) { return this; } + /** + *

    If provided, will only return objects created after this datetime.

    + */ @JsonSetter(value = "created_after", nulls = Nulls.SKIP) public Builder createdAfter(Optional createdAfter) { this.createdAfter = createdAfter; @@ -418,6 +433,9 @@ public Builder createdAfter(OffsetDateTime createdAfter) { return this; } + /** + *

    If provided, will only return objects created before this datetime.

    + */ @JsonSetter(value = "created_before", nulls = Nulls.SKIP) public Builder createdBefore(Optional createdBefore) { this.createdBefore = createdBefore; @@ -429,6 +447,9 @@ public Builder createdBefore(OffsetDateTime createdBefore) { return this; } + /** + *

    The pagination cursor value.

    + */ @JsonSetter(value = "cursor", nulls = Nulls.SKIP) public Builder cursor(Optional cursor) { this.cursor = cursor; @@ -440,6 +461,9 @@ public Builder cursor(String cursor) { return this; } + /** + *

    Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

    + */ @JsonSetter(value = "include_deleted_data", nulls = Nulls.SKIP) public Builder includeDeletedData(Optional includeDeletedData) { this.includeDeletedData = includeDeletedData; @@ -451,6 +475,9 @@ public Builder includeDeletedData(Boolean includeDeletedData) { return this; } + /** + *

    Whether to include the original data Merge fetched from the third-party to produce these models.

    + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -462,6 +489,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

    Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format.

    + */ @JsonSetter(value = "include_remote_fields", nulls = Nulls.SKIP) public Builder includeRemoteFields(Optional includeRemoteFields) { this.includeRemoteFields = includeRemoteFields; @@ -473,6 +503,9 @@ public Builder includeRemoteFields(Boolean includeRemoteFields) { return this; } + /** + *

    Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

    + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; @@ -484,6 +517,9 @@ public Builder includeShellData(Boolean includeShellData) { return this; } + /** + *

    If provided, only objects synced by Merge after this date time will be returned.

    + */ @JsonSetter(value = "modified_after", nulls = Nulls.SKIP) public Builder modifiedAfter(Optional modifiedAfter) { this.modifiedAfter = modifiedAfter; @@ -495,6 +531,9 @@ public Builder modifiedAfter(OffsetDateTime modifiedAfter) { return this; } + /** + *

    If provided, only objects synced by Merge before this date time will be returned.

    + */ @JsonSetter(value = "modified_before", nulls = Nulls.SKIP) public Builder modifiedBefore(Optional modifiedBefore) { this.modifiedBefore = modifiedBefore; @@ -506,6 +545,9 @@ public Builder modifiedBefore(OffsetDateTime modifiedBefore) { return this; } + /** + *

    Number of results to return per page.

    + */ @JsonSetter(value = "page_size", nulls = Nulls.SKIP) public Builder pageSize(Optional pageSize) { this.pageSize = pageSize; @@ -517,6 +559,9 @@ public Builder pageSize(Integer pageSize) { return this; } + /** + *

    The API provider's ID for the given object.

    + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; @@ -528,6 +573,9 @@ public Builder remoteId(String remoteId) { return this; } + /** + *

    If provided, will only return objects created after this datetime.

    + */ @JsonSetter(value = "transaction_date_after", nulls = Nulls.SKIP) public Builder transactionDateAfter(Optional transactionDateAfter) { this.transactionDateAfter = transactionDateAfter; @@ -539,6 +587,9 @@ public Builder transactionDateAfter(OffsetDateTime transactionDateAfter) { return this; } + /** + *

    If provided, will only return objects created before this datetime.

    + */ @JsonSetter(value = "transaction_date_before", nulls = Nulls.SKIP) public Builder transactionDateBefore(Optional transactionDateBefore) { this.transactionDateBefore = transactionDateBefore; diff --git a/src/main/java/com/merge/api/accounting/types/PaymentsRemoteFieldClassesListRequest.java b/src/main/java/com/merge/api/accounting/types/PaymentsRemoteFieldClassesListRequest.java index d1663b7c1..2da781632 100644 --- a/src/main/java/com/merge/api/accounting/types/PaymentsRemoteFieldClassesListRequest.java +++ b/src/main/java/com/merge/api/accounting/types/PaymentsRemoteFieldClassesListRequest.java @@ -30,6 +30,8 @@ public final class PaymentsRemoteFieldClassesListRequest { private final Optional isCommonModelField; + private final Optional isCustom; + private final Optional pageSize; private final Map additionalProperties; @@ -40,6 +42,7 @@ private PaymentsRemoteFieldClassesListRequest( Optional includeRemoteData, Optional includeShellData, Optional isCommonModelField, + Optional isCustom, Optional pageSize, Map additionalProperties) { this.cursor = cursor; @@ -47,6 +50,7 @@ private PaymentsRemoteFieldClassesListRequest( this.includeRemoteData = includeRemoteData; this.includeShellData = includeShellData; this.isCommonModelField = isCommonModelField; + this.isCustom = isCustom; this.pageSize = pageSize; this.additionalProperties = additionalProperties; } @@ -91,6 +95,14 @@ public Optional getIsCommonModelField() { return isCommonModelField; } + /** + * @return If provided, will only return remote fields classes with this is_custom value + */ + @JsonProperty("is_custom") + public Optional getIsCustom() { + return isCustom; + } + /** * @return Number of results to return per page. */ @@ -117,6 +129,7 @@ private boolean equalTo(PaymentsRemoteFieldClassesListRequest other) { && includeRemoteData.equals(other.includeRemoteData) && includeShellData.equals(other.includeShellData) && isCommonModelField.equals(other.isCommonModelField) + && isCustom.equals(other.isCustom) && pageSize.equals(other.pageSize); } @@ -128,6 +141,7 @@ public int hashCode() { this.includeRemoteData, this.includeShellData, this.isCommonModelField, + this.isCustom, this.pageSize); } @@ -152,6 +166,8 @@ public static final class Builder { private Optional isCommonModelField = Optional.empty(); + private Optional isCustom = Optional.empty(); + private Optional pageSize = Optional.empty(); @JsonAnySetter @@ -165,10 +181,14 @@ public Builder from(PaymentsRemoteFieldClassesListRequest other) { includeRemoteData(other.getIncludeRemoteData()); includeShellData(other.getIncludeShellData()); isCommonModelField(other.getIsCommonModelField()); + isCustom(other.getIsCustom()); pageSize(other.getPageSize()); return this; } + /** + *

    The pagination cursor value.

    + */ @JsonSetter(value = "cursor", nulls = Nulls.SKIP) public Builder cursor(Optional cursor) { this.cursor = cursor; @@ -180,6 +200,9 @@ public Builder cursor(String cursor) { return this; } + /** + *

    Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

    + */ @JsonSetter(value = "include_deleted_data", nulls = Nulls.SKIP) public Builder includeDeletedData(Optional includeDeletedData) { this.includeDeletedData = includeDeletedData; @@ -191,6 +214,9 @@ public Builder includeDeletedData(Boolean includeDeletedData) { return this; } + /** + *

    Whether to include the original data Merge fetched from the third-party to produce these models.

    + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -202,6 +228,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

    Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

    + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; @@ -213,6 +242,9 @@ public Builder includeShellData(Boolean includeShellData) { return this; } + /** + *

    If provided, will only return remote field classes with this is_common_model_field value

    + */ @JsonSetter(value = "is_common_model_field", nulls = Nulls.SKIP) public Builder isCommonModelField(Optional isCommonModelField) { this.isCommonModelField = isCommonModelField; @@ -224,6 +256,23 @@ public Builder isCommonModelField(Boolean isCommonModelField) { return this; } + /** + *

    If provided, will only return remote fields classes with this is_custom value

    + */ + @JsonSetter(value = "is_custom", nulls = Nulls.SKIP) + public Builder isCustom(Optional isCustom) { + this.isCustom = isCustom; + return this; + } + + public Builder isCustom(Boolean isCustom) { + this.isCustom = Optional.ofNullable(isCustom); + return this; + } + + /** + *

    Number of results to return per page.

    + */ @JsonSetter(value = "page_size", nulls = Nulls.SKIP) public Builder pageSize(Optional pageSize) { this.pageSize = pageSize; @@ -242,6 +291,7 @@ public PaymentsRemoteFieldClassesListRequest build() { includeRemoteData, includeShellData, isCommonModelField, + isCustom, pageSize, additionalProperties); } diff --git a/src/main/java/com/merge/api/accounting/types/PaymentsRetrieveRequest.java b/src/main/java/com/merge/api/accounting/types/PaymentsRetrieveRequest.java index cfa550d90..b1304e52e 100644 --- a/src/main/java/com/merge/api/accounting/types/PaymentsRetrieveRequest.java +++ b/src/main/java/com/merge/api/accounting/types/PaymentsRetrieveRequest.java @@ -132,6 +132,9 @@ public Builder from(PaymentsRetrieveRequest other) { return this; } + /** + *

    Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.

    + */ @JsonSetter(value = "expand", nulls = Nulls.SKIP) public Builder expand(Optional> expand) { this.expand = expand; @@ -148,6 +151,9 @@ public Builder expand(PaymentsRetrieveRequestExpandItem expand) { return this; } + /** + *

    Whether to include the original data Merge fetched from the third-party to produce these models.

    + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -159,6 +165,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

    Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format.

    + */ @JsonSetter(value = "include_remote_fields", nulls = Nulls.SKIP) public Builder includeRemoteFields(Optional includeRemoteFields) { this.includeRemoteFields = includeRemoteFields; @@ -170,6 +179,9 @@ public Builder includeRemoteFields(Boolean includeRemoteFields) { return this; } + /** + *

    Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

    + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; diff --git a/src/main/java/com/merge/api/accounting/types/PhoneNumbersRetrieveRequest.java b/src/main/java/com/merge/api/accounting/types/PhoneNumbersRetrieveRequest.java index 4750abbda..8f48be925 100644 --- a/src/main/java/com/merge/api/accounting/types/PhoneNumbersRetrieveRequest.java +++ b/src/main/java/com/merge/api/accounting/types/PhoneNumbersRetrieveRequest.java @@ -97,6 +97,9 @@ public Builder from(PhoneNumbersRetrieveRequest other) { return this; } + /** + *

    Whether to include the original data Merge fetched from the third-party to produce these models.

    + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -108,6 +111,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

    Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

    + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; diff --git a/src/main/java/com/merge/api/accounting/types/Project.java b/src/main/java/com/merge/api/accounting/types/Project.java new file mode 100644 index 000000000..f2ffaa842 --- /dev/null +++ b/src/main/java/com/merge/api/accounting/types/Project.java @@ -0,0 +1,488 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.merge.api.accounting.types; + +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.JsonNode; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.merge.api.core.ObjectMappers; +import java.time.OffsetDateTime; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import org.jetbrains.annotations.NotNull; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = Project.Builder.class) +public final class Project { + private final Optional id; + + private final Optional remoteId; + + private final Optional createdAt; + + private final Optional modifiedAt; + + private final String name; + + private final Optional isActive; + + private final Optional company; + + private final Optional contact; + + private final Optional> fieldMappings; + + private final Optional> remoteData; + + private final Map additionalProperties; + + private Project( + Optional id, + Optional remoteId, + Optional createdAt, + Optional modifiedAt, + String name, + Optional isActive, + Optional company, + Optional contact, + Optional> fieldMappings, + Optional> remoteData, + Map additionalProperties) { + this.id = id; + this.remoteId = remoteId; + this.createdAt = createdAt; + this.modifiedAt = modifiedAt; + this.name = name; + this.isActive = isActive; + this.company = company; + this.contact = contact; + this.fieldMappings = fieldMappings; + this.remoteData = remoteData; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("id") + public Optional getId() { + return id; + } + + /** + * @return The third-party API ID of the matching object. + */ + @JsonProperty("remote_id") + public Optional getRemoteId() { + return remoteId; + } + + /** + * @return The datetime that this object was created by Merge. + */ + @JsonProperty("created_at") + public Optional getCreatedAt() { + return createdAt; + } + + /** + * @return The datetime that this object was modified by Merge. + */ + @JsonProperty("modified_at") + public Optional getModifiedAt() { + return modifiedAt; + } + + /** + * @return The project’s name + */ + @JsonProperty("name") + public String getName() { + return name; + } + + /** + * @return True if the project is active, False if the project is not active. + */ + @JsonProperty("is_active") + public Optional getIsActive() { + return isActive; + } + + /** + * @return The subsidiary that the project belongs to. + */ + @JsonProperty("company") + public Optional getCompany() { + return company; + } + + /** + * @return The supplier, or customer involved in the project. + */ + @JsonProperty("contact") + public Optional getContact() { + return contact; + } + + @JsonProperty("field_mappings") + public Optional> getFieldMappings() { + return fieldMappings; + } + + @JsonProperty("remote_data") + public Optional> getRemoteData() { + return remoteData; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof Project && equalTo((Project) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(Project other) { + return id.equals(other.id) + && remoteId.equals(other.remoteId) + && createdAt.equals(other.createdAt) + && modifiedAt.equals(other.modifiedAt) + && name.equals(other.name) + && isActive.equals(other.isActive) + && company.equals(other.company) + && contact.equals(other.contact) + && fieldMappings.equals(other.fieldMappings) + && remoteData.equals(other.remoteData); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.id, + this.remoteId, + this.createdAt, + this.modifiedAt, + this.name, + this.isActive, + this.company, + this.contact, + this.fieldMappings, + this.remoteData); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static NameStage builder() { + return new Builder(); + } + + public interface NameStage { + /** + * The project’s name + */ + _FinalStage name(@NotNull String name); + + Builder from(Project other); + } + + public interface _FinalStage { + Project build(); + + _FinalStage id(Optional id); + + _FinalStage id(String id); + + /** + *

    The third-party API ID of the matching object.

    + */ + _FinalStage remoteId(Optional remoteId); + + _FinalStage remoteId(String remoteId); + + /** + *

    The datetime that this object was created by Merge.

    + */ + _FinalStage createdAt(Optional createdAt); + + _FinalStage createdAt(OffsetDateTime createdAt); + + /** + *

    The datetime that this object was modified by Merge.

    + */ + _FinalStage modifiedAt(Optional modifiedAt); + + _FinalStage modifiedAt(OffsetDateTime modifiedAt); + + /** + *

    True if the project is active, False if the project is not active.

    + */ + _FinalStage isActive(Optional isActive); + + _FinalStage isActive(Boolean isActive); + + /** + *

    The subsidiary that the project belongs to.

    + */ + _FinalStage company(Optional company); + + _FinalStage company(ProjectCompany company); + + /** + *

    The supplier, or customer involved in the project.

    + */ + _FinalStage contact(Optional contact); + + _FinalStage contact(ProjectContact contact); + + _FinalStage fieldMappings(Optional> fieldMappings); + + _FinalStage fieldMappings(Map fieldMappings); + + _FinalStage remoteData(Optional> remoteData); + + _FinalStage remoteData(List remoteData); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements NameStage, _FinalStage { + private String name; + + private Optional> remoteData = Optional.empty(); + + private Optional> fieldMappings = Optional.empty(); + + private Optional contact = Optional.empty(); + + private Optional company = Optional.empty(); + + private Optional isActive = Optional.empty(); + + private Optional modifiedAt = Optional.empty(); + + private Optional createdAt = Optional.empty(); + + private Optional remoteId = Optional.empty(); + + private Optional id = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(Project other) { + id(other.getId()); + remoteId(other.getRemoteId()); + createdAt(other.getCreatedAt()); + modifiedAt(other.getModifiedAt()); + name(other.getName()); + isActive(other.getIsActive()); + company(other.getCompany()); + contact(other.getContact()); + fieldMappings(other.getFieldMappings()); + remoteData(other.getRemoteData()); + return this; + } + + /** + * The project’s name

    The project’s name

    + * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("name") + public _FinalStage name(@NotNull String name) { + this.name = name; + return this; + } + + @java.lang.Override + public _FinalStage remoteData(List remoteData) { + this.remoteData = Optional.ofNullable(remoteData); + return this; + } + + @java.lang.Override + @JsonSetter(value = "remote_data", nulls = Nulls.SKIP) + public _FinalStage remoteData(Optional> remoteData) { + this.remoteData = remoteData; + return this; + } + + @java.lang.Override + public _FinalStage fieldMappings(Map fieldMappings) { + this.fieldMappings = Optional.ofNullable(fieldMappings); + return this; + } + + @java.lang.Override + @JsonSetter(value = "field_mappings", nulls = Nulls.SKIP) + public _FinalStage fieldMappings(Optional> fieldMappings) { + this.fieldMappings = fieldMappings; + return this; + } + + /** + *

    The supplier, or customer involved in the project.

    + * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage contact(ProjectContact contact) { + this.contact = Optional.ofNullable(contact); + return this; + } + + /** + *

    The supplier, or customer involved in the project.

    + */ + @java.lang.Override + @JsonSetter(value = "contact", nulls = Nulls.SKIP) + public _FinalStage contact(Optional contact) { + this.contact = contact; + return this; + } + + /** + *

    The subsidiary that the project belongs to.

    + * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage company(ProjectCompany company) { + this.company = Optional.ofNullable(company); + return this; + } + + /** + *

    The subsidiary that the project belongs to.

    + */ + @java.lang.Override + @JsonSetter(value = "company", nulls = Nulls.SKIP) + public _FinalStage company(Optional company) { + this.company = company; + return this; + } + + /** + *

    True if the project is active, False if the project is not active.

    + * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage isActive(Boolean isActive) { + this.isActive = Optional.ofNullable(isActive); + return this; + } + + /** + *

    True if the project is active, False if the project is not active.

    + */ + @java.lang.Override + @JsonSetter(value = "is_active", nulls = Nulls.SKIP) + public _FinalStage isActive(Optional isActive) { + this.isActive = isActive; + return this; + } + + /** + *

    The datetime that this object was modified by Merge.

    + * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage modifiedAt(OffsetDateTime modifiedAt) { + this.modifiedAt = Optional.ofNullable(modifiedAt); + return this; + } + + /** + *

    The datetime that this object was modified by Merge.

    + */ + @java.lang.Override + @JsonSetter(value = "modified_at", nulls = Nulls.SKIP) + public _FinalStage modifiedAt(Optional modifiedAt) { + this.modifiedAt = modifiedAt; + return this; + } + + /** + *

    The datetime that this object was created by Merge.

    + * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage createdAt(OffsetDateTime createdAt) { + this.createdAt = Optional.ofNullable(createdAt); + return this; + } + + /** + *

    The datetime that this object was created by Merge.

    + */ + @java.lang.Override + @JsonSetter(value = "created_at", nulls = Nulls.SKIP) + public _FinalStage createdAt(Optional createdAt) { + this.createdAt = createdAt; + return this; + } + + /** + *

    The third-party API ID of the matching object.

    + * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage remoteId(String remoteId) { + this.remoteId = Optional.ofNullable(remoteId); + return this; + } + + /** + *

    The third-party API ID of the matching object.

    + */ + @java.lang.Override + @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) + public _FinalStage remoteId(Optional remoteId) { + this.remoteId = remoteId; + return this; + } + + @java.lang.Override + public _FinalStage id(String id) { + this.id = Optional.ofNullable(id); + return this; + } + + @java.lang.Override + @JsonSetter(value = "id", nulls = Nulls.SKIP) + public _FinalStage id(Optional id) { + this.id = id; + return this; + } + + @java.lang.Override + public Project build() { + return new Project( + id, + remoteId, + createdAt, + modifiedAt, + name, + isActive, + company, + contact, + fieldMappings, + remoteData, + additionalProperties); + } + } +} diff --git a/src/main/java/com/merge/api/accounting/types/ProjectCompany.java b/src/main/java/com/merge/api/accounting/types/ProjectCompany.java new file mode 100644 index 000000000..93e497570 --- /dev/null +++ b/src/main/java/com/merge/api/accounting/types/ProjectCompany.java @@ -0,0 +1,95 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.merge.api.accounting.types; + +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.databind.DeserializationContext; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.fasterxml.jackson.databind.deser.std.StdDeserializer; +import com.merge.api.core.ObjectMappers; +import java.io.IOException; +import java.util.Objects; + +@JsonDeserialize(using = ProjectCompany.Deserializer.class) +public final class ProjectCompany { + private final Object value; + + private final int type; + + private ProjectCompany(Object value, int type) { + this.value = value; + this.type = type; + } + + @JsonValue + public Object get() { + return this.value; + } + + @SuppressWarnings("unchecked") + public T visit(Visitor visitor) { + if (this.type == 0) { + return visitor.visit((String) this.value); + } else if (this.type == 1) { + return visitor.visit((CompanyInfo) this.value); + } + throw new IllegalStateException("Failed to visit value. This should never happen."); + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof ProjectCompany && equalTo((ProjectCompany) other); + } + + private boolean equalTo(ProjectCompany other) { + return value.equals(other.value); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.value); + } + + @java.lang.Override + public String toString() { + return this.value.toString(); + } + + public static ProjectCompany of(String value) { + return new ProjectCompany(value, 0); + } + + public static ProjectCompany of(CompanyInfo value) { + return new ProjectCompany(value, 1); + } + + public interface Visitor { + T visit(String value); + + T visit(CompanyInfo value); + } + + static final class Deserializer extends StdDeserializer { + Deserializer() { + super(ProjectCompany.class); + } + + @java.lang.Override + public ProjectCompany deserialize(JsonParser p, DeserializationContext context) throws IOException { + Object value = p.readValueAs(Object.class); + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, String.class)); + } catch (IllegalArgumentException e) { + } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, CompanyInfo.class)); + } catch (IllegalArgumentException e) { + } + throw new JsonParseException(p, "Failed to deserialize"); + } + } +} diff --git a/src/main/java/com/merge/api/accounting/types/ProjectContact.java b/src/main/java/com/merge/api/accounting/types/ProjectContact.java new file mode 100644 index 000000000..6aa2b62cc --- /dev/null +++ b/src/main/java/com/merge/api/accounting/types/ProjectContact.java @@ -0,0 +1,95 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.merge.api.accounting.types; + +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.databind.DeserializationContext; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.fasterxml.jackson.databind.deser.std.StdDeserializer; +import com.merge.api.core.ObjectMappers; +import java.io.IOException; +import java.util.Objects; + +@JsonDeserialize(using = ProjectContact.Deserializer.class) +public final class ProjectContact { + private final Object value; + + private final int type; + + private ProjectContact(Object value, int type) { + this.value = value; + this.type = type; + } + + @JsonValue + public Object get() { + return this.value; + } + + @SuppressWarnings("unchecked") + public T visit(Visitor visitor) { + if (this.type == 0) { + return visitor.visit((String) this.value); + } else if (this.type == 1) { + return visitor.visit((Contact) this.value); + } + throw new IllegalStateException("Failed to visit value. This should never happen."); + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof ProjectContact && equalTo((ProjectContact) other); + } + + private boolean equalTo(ProjectContact other) { + return value.equals(other.value); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.value); + } + + @java.lang.Override + public String toString() { + return this.value.toString(); + } + + public static ProjectContact of(String value) { + return new ProjectContact(value, 0); + } + + public static ProjectContact of(Contact value) { + return new ProjectContact(value, 1); + } + + public interface Visitor { + T visit(String value); + + T visit(Contact value); + } + + static final class Deserializer extends StdDeserializer { + Deserializer() { + super(ProjectContact.class); + } + + @java.lang.Override + public ProjectContact deserialize(JsonParser p, DeserializationContext context) throws IOException { + Object value = p.readValueAs(Object.class); + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, String.class)); + } catch (IllegalArgumentException e) { + } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, Contact.class)); + } catch (IllegalArgumentException e) { + } + throw new JsonParseException(p, "Failed to deserialize"); + } + } +} diff --git a/src/main/java/com/merge/api/accounting/types/ProjectsListRequest.java b/src/main/java/com/merge/api/accounting/types/ProjectsListRequest.java new file mode 100644 index 000000000..dcac2268d --- /dev/null +++ b/src/main/java/com/merge/api/accounting/types/ProjectsListRequest.java @@ -0,0 +1,273 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.merge.api.accounting.types; + +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.merge.api.core.ObjectMappers; +import java.util.Collections; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = ProjectsListRequest.Builder.class) +public final class ProjectsListRequest { + private final Optional> expand; + + private final Optional cursor; + + private final Optional includeDeletedData; + + private final Optional includeRemoteData; + + private final Optional includeShellData; + + private final Optional pageSize; + + private final Map additionalProperties; + + private ProjectsListRequest( + Optional> expand, + Optional cursor, + Optional includeDeletedData, + Optional includeRemoteData, + Optional includeShellData, + Optional pageSize, + Map additionalProperties) { + this.expand = expand; + this.cursor = cursor; + this.includeDeletedData = includeDeletedData; + this.includeRemoteData = includeRemoteData; + this.includeShellData = includeShellData; + this.pageSize = pageSize; + this.additionalProperties = additionalProperties; + } + + /** + * @return Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. + */ + @JsonProperty("expand") + public Optional> getExpand() { + return expand; + } + + /** + * @return The pagination cursor value. + */ + @JsonProperty("cursor") + public Optional getCursor() { + return cursor; + } + + /** + * @return Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more. + */ + @JsonProperty("include_deleted_data") + public Optional getIncludeDeletedData() { + return includeDeletedData; + } + + /** + * @return Whether to include the original data Merge fetched from the third-party to produce these models. + */ + @JsonProperty("include_remote_data") + public Optional getIncludeRemoteData() { + return includeRemoteData; + } + + /** + * @return Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). + */ + @JsonProperty("include_shell_data") + public Optional getIncludeShellData() { + return includeShellData; + } + + /** + * @return Number of results to return per page. + */ + @JsonProperty("page_size") + public Optional getPageSize() { + return pageSize; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof ProjectsListRequest && equalTo((ProjectsListRequest) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(ProjectsListRequest other) { + return expand.equals(other.expand) + && cursor.equals(other.cursor) + && includeDeletedData.equals(other.includeDeletedData) + && includeRemoteData.equals(other.includeRemoteData) + && includeShellData.equals(other.includeShellData) + && pageSize.equals(other.pageSize); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.expand, + this.cursor, + this.includeDeletedData, + this.includeRemoteData, + this.includeShellData, + this.pageSize); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static Builder builder() { + return new Builder(); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder { + private Optional> expand = Optional.empty(); + + private Optional cursor = Optional.empty(); + + private Optional includeDeletedData = Optional.empty(); + + private Optional includeRemoteData = Optional.empty(); + + private Optional includeShellData = Optional.empty(); + + private Optional pageSize = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(ProjectsListRequest other) { + expand(other.getExpand()); + cursor(other.getCursor()); + includeDeletedData(other.getIncludeDeletedData()); + includeRemoteData(other.getIncludeRemoteData()); + includeShellData(other.getIncludeShellData()); + pageSize(other.getPageSize()); + return this; + } + + /** + *

    Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.

    + */ + @JsonSetter(value = "expand", nulls = Nulls.SKIP) + public Builder expand(Optional> expand) { + this.expand = expand; + return this; + } + + public Builder expand(List expand) { + this.expand = Optional.ofNullable(expand); + return this; + } + + public Builder expand(ProjectsListRequestExpandItem expand) { + this.expand = Optional.of(Collections.singletonList(expand)); + return this; + } + + /** + *

    The pagination cursor value.

    + */ + @JsonSetter(value = "cursor", nulls = Nulls.SKIP) + public Builder cursor(Optional cursor) { + this.cursor = cursor; + return this; + } + + public Builder cursor(String cursor) { + this.cursor = Optional.ofNullable(cursor); + return this; + } + + /** + *

    Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

    + */ + @JsonSetter(value = "include_deleted_data", nulls = Nulls.SKIP) + public Builder includeDeletedData(Optional includeDeletedData) { + this.includeDeletedData = includeDeletedData; + return this; + } + + public Builder includeDeletedData(Boolean includeDeletedData) { + this.includeDeletedData = Optional.ofNullable(includeDeletedData); + return this; + } + + /** + *

    Whether to include the original data Merge fetched from the third-party to produce these models.

    + */ + @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) + public Builder includeRemoteData(Optional includeRemoteData) { + this.includeRemoteData = includeRemoteData; + return this; + } + + public Builder includeRemoteData(Boolean includeRemoteData) { + this.includeRemoteData = Optional.ofNullable(includeRemoteData); + return this; + } + + /** + *

    Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

    + */ + @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) + public Builder includeShellData(Optional includeShellData) { + this.includeShellData = includeShellData; + return this; + } + + public Builder includeShellData(Boolean includeShellData) { + this.includeShellData = Optional.ofNullable(includeShellData); + return this; + } + + /** + *

    Number of results to return per page.

    + */ + @JsonSetter(value = "page_size", nulls = Nulls.SKIP) + public Builder pageSize(Optional pageSize) { + this.pageSize = pageSize; + return this; + } + + public Builder pageSize(Integer pageSize) { + this.pageSize = Optional.ofNullable(pageSize); + return this; + } + + public ProjectsListRequest build() { + return new ProjectsListRequest( + expand, + cursor, + includeDeletedData, + includeRemoteData, + includeShellData, + pageSize, + additionalProperties); + } + } +} diff --git a/src/main/java/com/merge/api/accounting/types/ProjectsListRequestExpandItem.java b/src/main/java/com/merge/api/accounting/types/ProjectsListRequestExpandItem.java new file mode 100644 index 000000000..ee616baa3 --- /dev/null +++ b/src/main/java/com/merge/api/accounting/types/ProjectsListRequestExpandItem.java @@ -0,0 +1,24 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.merge.api.accounting.types; + +import com.fasterxml.jackson.annotation.JsonValue; + +public enum ProjectsListRequestExpandItem { + COMPANY("company"), + + CONTACT("contact"); + + private final String value; + + ProjectsListRequestExpandItem(String value) { + this.value = value; + } + + @JsonValue + @java.lang.Override + public String toString() { + return this.value; + } +} diff --git a/src/main/java/com/merge/api/accounting/types/ProjectsRetrieveRequest.java b/src/main/java/com/merge/api/accounting/types/ProjectsRetrieveRequest.java new file mode 100644 index 000000000..57ffe9b64 --- /dev/null +++ b/src/main/java/com/merge/api/accounting/types/ProjectsRetrieveRequest.java @@ -0,0 +1,170 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.merge.api.accounting.types; + +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.merge.api.core.ObjectMappers; +import java.util.Collections; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = ProjectsRetrieveRequest.Builder.class) +public final class ProjectsRetrieveRequest { + private final Optional> expand; + + private final Optional includeRemoteData; + + private final Optional includeShellData; + + private final Map additionalProperties; + + private ProjectsRetrieveRequest( + Optional> expand, + Optional includeRemoteData, + Optional includeShellData, + Map additionalProperties) { + this.expand = expand; + this.includeRemoteData = includeRemoteData; + this.includeShellData = includeShellData; + this.additionalProperties = additionalProperties; + } + + /** + * @return Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. + */ + @JsonProperty("expand") + public Optional> getExpand() { + return expand; + } + + /** + * @return Whether to include the original data Merge fetched from the third-party to produce these models. + */ + @JsonProperty("include_remote_data") + public Optional getIncludeRemoteData() { + return includeRemoteData; + } + + /** + * @return Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). + */ + @JsonProperty("include_shell_data") + public Optional getIncludeShellData() { + return includeShellData; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof ProjectsRetrieveRequest && equalTo((ProjectsRetrieveRequest) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(ProjectsRetrieveRequest other) { + return expand.equals(other.expand) + && includeRemoteData.equals(other.includeRemoteData) + && includeShellData.equals(other.includeShellData); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.expand, this.includeRemoteData, this.includeShellData); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static Builder builder() { + return new Builder(); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder { + private Optional> expand = Optional.empty(); + + private Optional includeRemoteData = Optional.empty(); + + private Optional includeShellData = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(ProjectsRetrieveRequest other) { + expand(other.getExpand()); + includeRemoteData(other.getIncludeRemoteData()); + includeShellData(other.getIncludeShellData()); + return this; + } + + /** + *

    Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.

    + */ + @JsonSetter(value = "expand", nulls = Nulls.SKIP) + public Builder expand(Optional> expand) { + this.expand = expand; + return this; + } + + public Builder expand(List expand) { + this.expand = Optional.ofNullable(expand); + return this; + } + + public Builder expand(ProjectsRetrieveRequestExpandItem expand) { + this.expand = Optional.of(Collections.singletonList(expand)); + return this; + } + + /** + *

    Whether to include the original data Merge fetched from the third-party to produce these models.

    + */ + @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) + public Builder includeRemoteData(Optional includeRemoteData) { + this.includeRemoteData = includeRemoteData; + return this; + } + + public Builder includeRemoteData(Boolean includeRemoteData) { + this.includeRemoteData = Optional.ofNullable(includeRemoteData); + return this; + } + + /** + *

    Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

    + */ + @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) + public Builder includeShellData(Optional includeShellData) { + this.includeShellData = includeShellData; + return this; + } + + public Builder includeShellData(Boolean includeShellData) { + this.includeShellData = Optional.ofNullable(includeShellData); + return this; + } + + public ProjectsRetrieveRequest build() { + return new ProjectsRetrieveRequest(expand, includeRemoteData, includeShellData, additionalProperties); + } + } +} diff --git a/src/main/java/com/merge/api/accounting/types/ProjectsRetrieveRequestExpandItem.java b/src/main/java/com/merge/api/accounting/types/ProjectsRetrieveRequestExpandItem.java new file mode 100644 index 000000000..e30b133de --- /dev/null +++ b/src/main/java/com/merge/api/accounting/types/ProjectsRetrieveRequestExpandItem.java @@ -0,0 +1,24 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.merge.api.accounting.types; + +import com.fasterxml.jackson.annotation.JsonValue; + +public enum ProjectsRetrieveRequestExpandItem { + COMPANY("company"), + + CONTACT("contact"); + + private final String value; + + ProjectsRetrieveRequestExpandItem(String value) { + this.value = value; + } + + @JsonValue + @java.lang.Override + public String toString() { + return this.value; + } +} diff --git a/src/main/java/com/merge/api/accounting/types/PurchaseOrder.java b/src/main/java/com/merge/api/accounting/types/PurchaseOrder.java index c4b03ecf1..81bb65dd7 100644 --- a/src/main/java/com/merge/api/accounting/types/PurchaseOrder.java +++ b/src/main/java/com/merge/api/accounting/types/PurchaseOrder.java @@ -31,7 +31,7 @@ public final class PurchaseOrder { private final Optional modifiedAt; - private final Optional status; + private final Optional status; private final Optional issueDate; @@ -51,7 +51,7 @@ public final class PurchaseOrder { private final Optional totalAmount; - private final Optional currency; + private final Optional currency; private final Optional exchangeRate; @@ -84,7 +84,7 @@ private PurchaseOrder( Optional remoteId, Optional createdAt, Optional modifiedAt, - Optional status, + Optional status, Optional issueDate, Optional purchaseOrderNumber, Optional deliveryDate, @@ -94,7 +94,7 @@ private PurchaseOrder( Optional memo, Optional company, Optional totalAmount, - Optional currency, + Optional currency, Optional exchangeRate, Optional paymentTerm, Optional> lineItems, @@ -178,7 +178,7 @@ public Optional getModifiedAt() { * */ @JsonProperty("status") - public Optional getStatus() { + public Optional getStatus() { return status; } @@ -566,7 +566,7 @@ public Optional getTotalAmount() { * */ @JsonProperty("currency") - public Optional getCurrency() { + public Optional getCurrency() { return currency; } @@ -743,7 +743,7 @@ public static final class Builder { private Optional modifiedAt = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Optional issueDate = Optional.empty(); @@ -763,7 +763,7 @@ public static final class Builder { private Optional totalAmount = Optional.empty(); - private Optional currency = Optional.empty(); + private Optional currency = Optional.empty(); private Optional exchangeRate = Optional.empty(); @@ -836,6 +836,9 @@ public Builder id(String id) { return this; } + /** + *

    The third-party API ID of the matching object.

    + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; @@ -847,6 +850,9 @@ public Builder remoteId(String remoteId) { return this; } + /** + *

    The datetime that this object was created by Merge.

    + */ @JsonSetter(value = "created_at", nulls = Nulls.SKIP) public Builder createdAt(Optional createdAt) { this.createdAt = createdAt; @@ -858,6 +864,9 @@ public Builder createdAt(OffsetDateTime createdAt) { return this; } + /** + *

    The datetime that this object was modified by Merge.

    + */ @JsonSetter(value = "modified_at", nulls = Nulls.SKIP) public Builder modifiedAt(Optional modifiedAt) { this.modifiedAt = modifiedAt; @@ -869,17 +878,30 @@ public Builder modifiedAt(OffsetDateTime modifiedAt) { return this; } + /** + *

    The purchase order's status.

    + *
      + *
    • DRAFT - DRAFT
    • + *
    • SUBMITTED - SUBMITTED
    • + *
    • AUTHORIZED - AUTHORIZED
    • + *
    • BILLED - BILLED
    • + *
    • DELETED - DELETED
    • + *
    + */ @JsonSetter(value = "status", nulls = Nulls.SKIP) - public Builder status(Optional status) { + public Builder status(Optional status) { this.status = status; return this; } - public Builder status(PurchaseOrderStatusEnum status) { + public Builder status(PurchaseOrderStatus status) { this.status = Optional.ofNullable(status); return this; } + /** + *

    The purchase order's issue date.

    + */ @JsonSetter(value = "issue_date", nulls = Nulls.SKIP) public Builder issueDate(Optional issueDate) { this.issueDate = issueDate; @@ -891,6 +913,9 @@ public Builder issueDate(OffsetDateTime issueDate) { return this; } + /** + *

    The human-readable number of the purchase order.

    + */ @JsonSetter(value = "purchase_order_number", nulls = Nulls.SKIP) public Builder purchaseOrderNumber(Optional purchaseOrderNumber) { this.purchaseOrderNumber = purchaseOrderNumber; @@ -902,6 +927,9 @@ public Builder purchaseOrderNumber(String purchaseOrderNumber) { return this; } + /** + *

    The purchase order's delivery date.

    + */ @JsonSetter(value = "delivery_date", nulls = Nulls.SKIP) public Builder deliveryDate(Optional deliveryDate) { this.deliveryDate = deliveryDate; @@ -913,6 +941,9 @@ public Builder deliveryDate(OffsetDateTime deliveryDate) { return this; } + /** + *

    The purchase order's delivery address.

    + */ @JsonSetter(value = "delivery_address", nulls = Nulls.SKIP) public Builder deliveryAddress(Optional deliveryAddress) { this.deliveryAddress = deliveryAddress; @@ -924,6 +955,9 @@ public Builder deliveryAddress(PurchaseOrderDeliveryAddress deliveryAddress) { return this; } + /** + *

    The contact making the purchase order.

    + */ @JsonSetter(value = "customer", nulls = Nulls.SKIP) public Builder customer(Optional customer) { this.customer = customer; @@ -935,6 +969,9 @@ public Builder customer(String customer) { return this; } + /** + *

    The party fulfilling the purchase order.

    + */ @JsonSetter(value = "vendor", nulls = Nulls.SKIP) public Builder vendor(Optional vendor) { this.vendor = vendor; @@ -946,6 +983,9 @@ public Builder vendor(PurchaseOrderVendor vendor) { return this; } + /** + *

    A memo attached to the purchase order.

    + */ @JsonSetter(value = "memo", nulls = Nulls.SKIP) public Builder memo(Optional memo) { this.memo = memo; @@ -957,6 +997,9 @@ public Builder memo(String memo) { return this; } + /** + *

    The company the purchase order belongs to.

    + */ @JsonSetter(value = "company", nulls = Nulls.SKIP) public Builder company(Optional company) { this.company = company; @@ -968,6 +1011,9 @@ public Builder company(PurchaseOrderCompany company) { return this; } + /** + *

    The purchase order's total amount.

    + */ @JsonSetter(value = "total_amount", nulls = Nulls.SKIP) public Builder totalAmount(Optional totalAmount) { this.totalAmount = totalAmount; @@ -979,17 +1025,331 @@ public Builder totalAmount(Double totalAmount) { return this; } + /** + *

    The purchase order's currency.

    + *
      + *
    • XUA - ADB Unit of Account
    • + *
    • AFN - Afghan Afghani
    • + *
    • AFA - Afghan Afghani (1927–2002)
    • + *
    • ALL - Albanian Lek
    • + *
    • ALK - Albanian Lek (1946–1965)
    • + *
    • DZD - Algerian Dinar
    • + *
    • ADP - Andorran Peseta
    • + *
    • AOA - Angolan Kwanza
    • + *
    • AOK - Angolan Kwanza (1977–1991)
    • + *
    • AON - Angolan New Kwanza (1990–2000)
    • + *
    • AOR - Angolan Readjusted Kwanza (1995–1999)
    • + *
    • ARA - Argentine Austral
    • + *
    • ARS - Argentine Peso
    • + *
    • ARM - Argentine Peso (1881–1970)
    • + *
    • ARP - Argentine Peso (1983–1985)
    • + *
    • ARL - Argentine Peso Ley (1970–1983)
    • + *
    • AMD - Armenian Dram
    • + *
    • AWG - Aruban Florin
    • + *
    • AUD - Australian Dollar
    • + *
    • ATS - Austrian Schilling
    • + *
    • AZN - Azerbaijani Manat
    • + *
    • AZM - Azerbaijani Manat (1993–2006)
    • + *
    • BSD - Bahamian Dollar
    • + *
    • BHD - Bahraini Dinar
    • + *
    • BDT - Bangladeshi Taka
    • + *
    • BBD - Barbadian Dollar
    • + *
    • BYN - Belarusian Ruble
    • + *
    • BYB - Belarusian Ruble (1994–1999)
    • + *
    • BYR - Belarusian Ruble (2000–2016)
    • + *
    • BEF - Belgian Franc
    • + *
    • BEC - Belgian Franc (convertible)
    • + *
    • BEL - Belgian Franc (financial)
    • + *
    • BZD - Belize Dollar
    • + *
    • BMD - Bermudan Dollar
    • + *
    • BTN - Bhutanese Ngultrum
    • + *
    • BOB - Bolivian Boliviano
    • + *
    • BOL - Bolivian Boliviano (1863–1963)
    • + *
    • BOV - Bolivian Mvdol
    • + *
    • BOP - Bolivian Peso
    • + *
    • BAM - Bosnia-Herzegovina Convertible Mark
    • + *
    • BAD - Bosnia-Herzegovina Dinar (1992–1994)
    • + *
    • BAN - Bosnia-Herzegovina New Dinar (1994–1997)
    • + *
    • BWP - Botswanan Pula
    • + *
    • BRC - Brazilian Cruzado (1986–1989)
    • + *
    • BRZ - Brazilian Cruzeiro (1942–1967)
    • + *
    • BRE - Brazilian Cruzeiro (1990–1993)
    • + *
    • BRR - Brazilian Cruzeiro (1993–1994)
    • + *
    • BRN - Brazilian New Cruzado (1989–1990)
    • + *
    • BRB - Brazilian New Cruzeiro (1967–1986)
    • + *
    • BRL - Brazilian Real
    • + *
    • GBP - British Pound
    • + *
    • BND - Brunei Dollar
    • + *
    • BGL - Bulgarian Hard Lev
    • + *
    • BGN - Bulgarian Lev
    • + *
    • BGO - Bulgarian Lev (1879–1952)
    • + *
    • BGM - Bulgarian Socialist Lev
    • + *
    • BUK - Burmese Kyat
    • + *
    • BIF - Burundian Franc
    • + *
    • XPF - CFP Franc
    • + *
    • KHR - Cambodian Riel
    • + *
    • CAD - Canadian Dollar
    • + *
    • CVE - Cape Verdean Escudo
    • + *
    • KYD - Cayman Islands Dollar
    • + *
    • XAF - Central African CFA Franc
    • + *
    • CLE - Chilean Escudo
    • + *
    • CLP - Chilean Peso
    • + *
    • CLF - Chilean Unit of Account (UF)
    • + *
    • CNX - Chinese People’s Bank Dollar
    • + *
    • CNY - Chinese Yuan
    • + *
    • CNH - Chinese Yuan (offshore)
    • + *
    • COP - Colombian Peso
    • + *
    • COU - Colombian Real Value Unit
    • + *
    • KMF - Comorian Franc
    • + *
    • CDF - Congolese Franc
    • + *
    • CRC - Costa Rican Colón
    • + *
    • HRD - Croatian Dinar
    • + *
    • HRK - Croatian Kuna
    • + *
    • CUC - Cuban Convertible Peso
    • + *
    • CUP - Cuban Peso
    • + *
    • CYP - Cypriot Pound
    • + *
    • CZK - Czech Koruna
    • + *
    • CSK - Czechoslovak Hard Koruna
    • + *
    • DKK - Danish Krone
    • + *
    • DJF - Djiboutian Franc
    • + *
    • DOP - Dominican Peso
    • + *
    • NLG - Dutch Guilder
    • + *
    • XCD - East Caribbean Dollar
    • + *
    • DDM - East German Mark
    • + *
    • ECS - Ecuadorian Sucre
    • + *
    • ECV - Ecuadorian Unit of Constant Value
    • + *
    • EGP - Egyptian Pound
    • + *
    • GQE - Equatorial Guinean Ekwele
    • + *
    • ERN - Eritrean Nakfa
    • + *
    • EEK - Estonian Kroon
    • + *
    • ETB - Ethiopian Birr
    • + *
    • EUR - Euro
    • + *
    • XBA - European Composite Unit
    • + *
    • XEU - European Currency Unit
    • + *
    • XBB - European Monetary Unit
    • + *
    • XBC - European Unit of Account (XBC)
    • + *
    • XBD - European Unit of Account (XBD)
    • + *
    • FKP - Falkland Islands Pound
    • + *
    • FJD - Fijian Dollar
    • + *
    • FIM - Finnish Markka
    • + *
    • FRF - French Franc
    • + *
    • XFO - French Gold Franc
    • + *
    • XFU - French UIC-Franc
    • + *
    • GMD - Gambian Dalasi
    • + *
    • GEK - Georgian Kupon Larit
    • + *
    • GEL - Georgian Lari
    • + *
    • DEM - German Mark
    • + *
    • GHS - Ghanaian Cedi
    • + *
    • GHC - Ghanaian Cedi (1979–2007)
    • + *
    • GIP - Gibraltar Pound
    • + *
    • XAU - Gold
    • + *
    • GRD - Greek Drachma
    • + *
    • GTQ - Guatemalan Quetzal
    • + *
    • GWP - Guinea-Bissau Peso
    • + *
    • GNF - Guinean Franc
    • + *
    • GNS - Guinean Syli
    • + *
    • GYD - Guyanaese Dollar
    • + *
    • HTG - Haitian Gourde
    • + *
    • HNL - Honduran Lempira
    • + *
    • HKD - Hong Kong Dollar
    • + *
    • HUF - Hungarian Forint
    • + *
    • IMP - IMP
    • + *
    • ISK - Icelandic Króna
    • + *
    • ISJ - Icelandic Króna (1918–1981)
    • + *
    • INR - Indian Rupee
    • + *
    • IDR - Indonesian Rupiah
    • + *
    • IRR - Iranian Rial
    • + *
    • IQD - Iraqi Dinar
    • + *
    • IEP - Irish Pound
    • + *
    • ILS - Israeli New Shekel
    • + *
    • ILP - Israeli Pound
    • + *
    • ILR - Israeli Shekel (1980–1985)
    • + *
    • ITL - Italian Lira
    • + *
    • JMD - Jamaican Dollar
    • + *
    • JPY - Japanese Yen
    • + *
    • JOD - Jordanian Dinar
    • + *
    • KZT - Kazakhstani Tenge
    • + *
    • KES - Kenyan Shilling
    • + *
    • KWD - Kuwaiti Dinar
    • + *
    • KGS - Kyrgystani Som
    • + *
    • LAK - Laotian Kip
    • + *
    • LVL - Latvian Lats
    • + *
    • LVR - Latvian Ruble
    • + *
    • LBP - Lebanese Pound
    • + *
    • LSL - Lesotho Loti
    • + *
    • LRD - Liberian Dollar
    • + *
    • LYD - Libyan Dinar
    • + *
    • LTL - Lithuanian Litas
    • + *
    • LTT - Lithuanian Talonas
    • + *
    • LUL - Luxembourg Financial Franc
    • + *
    • LUC - Luxembourgian Convertible Franc
    • + *
    • LUF - Luxembourgian Franc
    • + *
    • MOP - Macanese Pataca
    • + *
    • MKD - Macedonian Denar
    • + *
    • MKN - Macedonian Denar (1992–1993)
    • + *
    • MGA - Malagasy Ariary
    • + *
    • MGF - Malagasy Franc
    • + *
    • MWK - Malawian Kwacha
    • + *
    • MYR - Malaysian Ringgit
    • + *
    • MVR - Maldivian Rufiyaa
    • + *
    • MVP - Maldivian Rupee (1947–1981)
    • + *
    • MLF - Malian Franc
    • + *
    • MTL - Maltese Lira
    • + *
    • MTP - Maltese Pound
    • + *
    • MRU - Mauritanian Ouguiya
    • + *
    • MRO - Mauritanian Ouguiya (1973–2017)
    • + *
    • MUR - Mauritian Rupee
    • + *
    • MXV - Mexican Investment Unit
    • + *
    • MXN - Mexican Peso
    • + *
    • MXP - Mexican Silver Peso (1861–1992)
    • + *
    • MDC - Moldovan Cupon
    • + *
    • MDL - Moldovan Leu
    • + *
    • MCF - Monegasque Franc
    • + *
    • MNT - Mongolian Tugrik
    • + *
    • MAD - Moroccan Dirham
    • + *
    • MAF - Moroccan Franc
    • + *
    • MZE - Mozambican Escudo
    • + *
    • MZN - Mozambican Metical
    • + *
    • MZM - Mozambican Metical (1980–2006)
    • + *
    • MMK - Myanmar Kyat
    • + *
    • NAD - Namibian Dollar
    • + *
    • NPR - Nepalese Rupee
    • + *
    • ANG - Netherlands Antillean Guilder
    • + *
    • TWD - New Taiwan Dollar
    • + *
    • NZD - New Zealand Dollar
    • + *
    • NIO - Nicaraguan Córdoba
    • + *
    • NIC - Nicaraguan Córdoba (1988–1991)
    • + *
    • NGN - Nigerian Naira
    • + *
    • KPW - North Korean Won
    • + *
    • NOK - Norwegian Krone
    • + *
    • OMR - Omani Rial
    • + *
    • PKR - Pakistani Rupee
    • + *
    • XPD - Palladium
    • + *
    • PAB - Panamanian Balboa
    • + *
    • PGK - Papua New Guinean Kina
    • + *
    • PYG - Paraguayan Guarani
    • + *
    • PEI - Peruvian Inti
    • + *
    • PEN - Peruvian Sol
    • + *
    • PES - Peruvian Sol (1863–1965)
    • + *
    • PHP - Philippine Peso
    • + *
    • XPT - Platinum
    • + *
    • PLN - Polish Zloty
    • + *
    • PLZ - Polish Zloty (1950–1995)
    • + *
    • PTE - Portuguese Escudo
    • + *
    • GWE - Portuguese Guinea Escudo
    • + *
    • QAR - Qatari Rial
    • + *
    • XRE - RINET Funds
    • + *
    • RHD - Rhodesian Dollar
    • + *
    • RON - Romanian Leu
    • + *
    • ROL - Romanian Leu (1952–2006)
    • + *
    • RUB - Russian Ruble
    • + *
    • RUR - Russian Ruble (1991–1998)
    • + *
    • RWF - Rwandan Franc
    • + *
    • SVC - Salvadoran Colón
    • + *
    • WST - Samoan Tala
    • + *
    • SAR - Saudi Riyal
    • + *
    • RSD - Serbian Dinar
    • + *
    • CSD - Serbian Dinar (2002–2006)
    • + *
    • SCR - Seychellois Rupee
    • + *
    • SLL - Sierra Leonean Leone
    • + *
    • XAG - Silver
    • + *
    • SGD - Singapore Dollar
    • + *
    • SKK - Slovak Koruna
    • + *
    • SIT - Slovenian Tolar
    • + *
    • SBD - Solomon Islands Dollar
    • + *
    • SOS - Somali Shilling
    • + *
    • ZAR - South African Rand
    • + *
    • ZAL - South African Rand (financial)
    • + *
    • KRH - South Korean Hwan (1953–1962)
    • + *
    • KRW - South Korean Won
    • + *
    • KRO - South Korean Won (1945–1953)
    • + *
    • SSP - South Sudanese Pound
    • + *
    • SUR - Soviet Rouble
    • + *
    • ESP - Spanish Peseta
    • + *
    • ESA - Spanish Peseta (A account)
    • + *
    • ESB - Spanish Peseta (convertible account)
    • + *
    • XDR - Special Drawing Rights
    • + *
    • LKR - Sri Lankan Rupee
    • + *
    • SHP - St. Helena Pound
    • + *
    • XSU - Sucre
    • + *
    • SDD - Sudanese Dinar (1992–2007)
    • + *
    • SDG - Sudanese Pound
    • + *
    • SDP - Sudanese Pound (1957–1998)
    • + *
    • SRD - Surinamese Dollar
    • + *
    • SRG - Surinamese Guilder
    • + *
    • SZL - Swazi Lilangeni
    • + *
    • SEK - Swedish Krona
    • + *
    • CHF - Swiss Franc
    • + *
    • SYP - Syrian Pound
    • + *
    • STN - São Tomé & Príncipe Dobra
    • + *
    • STD - São Tomé & Príncipe Dobra (1977–2017)
    • + *
    • TVD - TVD
    • + *
    • TJR - Tajikistani Ruble
    • + *
    • TJS - Tajikistani Somoni
    • + *
    • TZS - Tanzanian Shilling
    • + *
    • XTS - Testing Currency Code
    • + *
    • THB - Thai Baht
    • + *
    • XXX - The codes assigned for transactions where no currency is involved
    • + *
    • TPE - Timorese Escudo
    • + *
    • TOP - Tongan Paʻanga
    • + *
    • TTD - Trinidad & Tobago Dollar
    • + *
    • TND - Tunisian Dinar
    • + *
    • TRY - Turkish Lira
    • + *
    • TRL - Turkish Lira (1922–2005)
    • + *
    • TMT - Turkmenistani Manat
    • + *
    • TMM - Turkmenistani Manat (1993–2009)
    • + *
    • USD - US Dollar
    • + *
    • USN - US Dollar (Next day)
    • + *
    • USS - US Dollar (Same day)
    • + *
    • UGX - Ugandan Shilling
    • + *
    • UGS - Ugandan Shilling (1966–1987)
    • + *
    • UAH - Ukrainian Hryvnia
    • + *
    • UAK - Ukrainian Karbovanets
    • + *
    • AED - United Arab Emirates Dirham
    • + *
    • UYW - Uruguayan Nominal Wage Index Unit
    • + *
    • UYU - Uruguayan Peso
    • + *
    • UYP - Uruguayan Peso (1975–1993)
    • + *
    • UYI - Uruguayan Peso (Indexed Units)
    • + *
    • UZS - Uzbekistani Som
    • + *
    • VUV - Vanuatu Vatu
    • + *
    • VES - Venezuelan Bolívar
    • + *
    • VEB - Venezuelan Bolívar (1871–2008)
    • + *
    • VEF - Venezuelan Bolívar (2008–2018)
    • + *
    • VND - Vietnamese Dong
    • + *
    • VNN - Vietnamese Dong (1978–1985)
    • + *
    • CHE - WIR Euro
    • + *
    • CHW - WIR Franc
    • + *
    • XOF - West African CFA Franc
    • + *
    • YDD - Yemeni Dinar
    • + *
    • YER - Yemeni Rial
    • + *
    • YUN - Yugoslavian Convertible Dinar (1990–1992)
    • + *
    • YUD - Yugoslavian Hard Dinar (1966–1990)
    • + *
    • YUM - Yugoslavian New Dinar (1994–2002)
    • + *
    • YUR - Yugoslavian Reformed Dinar (1992–1993)
    • + *
    • ZWN - ZWN
    • + *
    • ZRN - Zairean New Zaire (1993–1998)
    • + *
    • ZRZ - Zairean Zaire (1971–1993)
    • + *
    • ZMW - Zambian Kwacha
    • + *
    • ZMK - Zambian Kwacha (1968–2012)
    • + *
    • ZWD - Zimbabwean Dollar (1980–2008)
    • + *
    • ZWR - Zimbabwean Dollar (2008)
    • + *
    • ZWL - Zimbabwean Dollar (2009)
    • + *
    + */ @JsonSetter(value = "currency", nulls = Nulls.SKIP) - public Builder currency(Optional currency) { + public Builder currency(Optional currency) { this.currency = currency; return this; } - public Builder currency(TransactionCurrencyEnum currency) { + public Builder currency(PurchaseOrderCurrency currency) { this.currency = Optional.ofNullable(currency); return this; } + /** + *

    The purchase order's exchange rate.

    + */ @JsonSetter(value = "exchange_rate", nulls = Nulls.SKIP) public Builder exchangeRate(Optional exchangeRate) { this.exchangeRate = exchangeRate; @@ -1001,6 +1361,9 @@ public Builder exchangeRate(String exchangeRate) { return this; } + /** + *

    The payment term that applies to this transaction.

    + */ @JsonSetter(value = "payment_term", nulls = Nulls.SKIP) public Builder paymentTerm(Optional paymentTerm) { this.paymentTerm = paymentTerm; @@ -1023,6 +1386,9 @@ public Builder lineItems(List lineItems) { return this; } + /** + *

    If the transaction is inclusive or exclusive of tax. True if inclusive, False if exclusive.

    + */ @JsonSetter(value = "inclusive_of_tax", nulls = Nulls.SKIP) public Builder inclusiveOfTax(Optional inclusiveOfTax) { this.inclusiveOfTax = inclusiveOfTax; @@ -1046,6 +1412,9 @@ public Builder trackingCategories(ListThe accounting period that the PurchaseOrder was generated in.

    + */ @JsonSetter(value = "accounting_period", nulls = Nulls.SKIP) public Builder accountingPeriod(Optional accountingPeriod) { this.accountingPeriod = accountingPeriod; @@ -1057,6 +1426,9 @@ public Builder accountingPeriod(PurchaseOrderAccountingPeriod accountingPeriod) return this; } + /** + *

    When the third party's purchase order note was created.

    + */ @JsonSetter(value = "remote_created_at", nulls = Nulls.SKIP) public Builder remoteCreatedAt(Optional remoteCreatedAt) { this.remoteCreatedAt = remoteCreatedAt; @@ -1068,6 +1440,9 @@ public Builder remoteCreatedAt(OffsetDateTime remoteCreatedAt) { return this; } + /** + *

    When the third party's purchase order note was updated.

    + */ @JsonSetter(value = "remote_updated_at", nulls = Nulls.SKIP) public Builder remoteUpdatedAt(Optional remoteUpdatedAt) { this.remoteUpdatedAt = remoteUpdatedAt; @@ -1079,6 +1454,9 @@ public Builder remoteUpdatedAt(OffsetDateTime remoteUpdatedAt) { return this; } + /** + *

    Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

    + */ @JsonSetter(value = "remote_was_deleted", nulls = Nulls.SKIP) public Builder remoteWasDeleted(Optional remoteWasDeleted) { this.remoteWasDeleted = remoteWasDeleted; diff --git a/src/main/java/com/merge/api/accounting/types/PurchaseOrderCurrency.java b/src/main/java/com/merge/api/accounting/types/PurchaseOrderCurrency.java new file mode 100644 index 000000000..21914f031 --- /dev/null +++ b/src/main/java/com/merge/api/accounting/types/PurchaseOrderCurrency.java @@ -0,0 +1,95 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.merge.api.accounting.types; + +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.databind.DeserializationContext; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.fasterxml.jackson.databind.deser.std.StdDeserializer; +import com.merge.api.core.ObjectMappers; +import java.io.IOException; +import java.util.Objects; + +@JsonDeserialize(using = PurchaseOrderCurrency.Deserializer.class) +public final class PurchaseOrderCurrency { + private final Object value; + + private final int type; + + private PurchaseOrderCurrency(Object value, int type) { + this.value = value; + this.type = type; + } + + @JsonValue + public Object get() { + return this.value; + } + + @SuppressWarnings("unchecked") + public T visit(Visitor visitor) { + if (this.type == 0) { + return visitor.visit((TransactionCurrencyEnum) this.value); + } else if (this.type == 1) { + return visitor.visit((String) this.value); + } + throw new IllegalStateException("Failed to visit value. This should never happen."); + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof PurchaseOrderCurrency && equalTo((PurchaseOrderCurrency) other); + } + + private boolean equalTo(PurchaseOrderCurrency other) { + return value.equals(other.value); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.value); + } + + @java.lang.Override + public String toString() { + return this.value.toString(); + } + + public static PurchaseOrderCurrency of(TransactionCurrencyEnum value) { + return new PurchaseOrderCurrency(value, 0); + } + + public static PurchaseOrderCurrency of(String value) { + return new PurchaseOrderCurrency(value, 1); + } + + public interface Visitor { + T visit(TransactionCurrencyEnum value); + + T visit(String value); + } + + static final class Deserializer extends StdDeserializer { + Deserializer() { + super(PurchaseOrderCurrency.class); + } + + @java.lang.Override + public PurchaseOrderCurrency deserialize(JsonParser p, DeserializationContext context) throws IOException { + Object value = p.readValueAs(Object.class); + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, TransactionCurrencyEnum.class)); + } catch (IllegalArgumentException e) { + } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, String.class)); + } catch (IllegalArgumentException e) { + } + throw new JsonParseException(p, "Failed to deserialize"); + } + } +} diff --git a/src/main/java/com/merge/api/accounting/types/PurchaseOrderEndpointRequest.java b/src/main/java/com/merge/api/accounting/types/PurchaseOrderEndpointRequest.java index 134a4082a..f6c870e2b 100644 --- a/src/main/java/com/merge/api/accounting/types/PurchaseOrderEndpointRequest.java +++ b/src/main/java/com/merge/api/accounting/types/PurchaseOrderEndpointRequest.java @@ -99,10 +99,16 @@ public interface ModelStage { public interface _FinalStage { PurchaseOrderEndpointRequest build(); + /** + *

    Whether to include debug fields (such as log file links) in the response.

    + */ _FinalStage isDebugMode(Optional isDebugMode); _FinalStage isDebugMode(Boolean isDebugMode); + /** + *

    Whether or not third-party updates should be run asynchronously.

    + */ _FinalStage runAsync(Optional runAsync); _FinalStage runAsync(Boolean runAsync); @@ -146,6 +152,9 @@ public _FinalStage runAsync(Boolean runAsync) { return this; } + /** + *

    Whether or not third-party updates should be run asynchronously.

    + */ @java.lang.Override @JsonSetter(value = "run_async", nulls = Nulls.SKIP) public _FinalStage runAsync(Optional runAsync) { @@ -163,6 +172,9 @@ public _FinalStage isDebugMode(Boolean isDebugMode) { return this; } + /** + *

    Whether to include debug fields (such as log file links) in the response.

    + */ @java.lang.Override @JsonSetter(value = "is_debug_mode", nulls = Nulls.SKIP) public _FinalStage isDebugMode(Optional isDebugMode) { diff --git a/src/main/java/com/merge/api/accounting/types/PurchaseOrderLineItem.java b/src/main/java/com/merge/api/accounting/types/PurchaseOrderLineItem.java index f84a1044c..8666d5d4c 100644 --- a/src/main/java/com/merge/api/accounting/types/PurchaseOrderLineItem.java +++ b/src/main/java/com/merge/api/accounting/types/PurchaseOrderLineItem.java @@ -48,7 +48,7 @@ public final class PurchaseOrderLineItem { private final Optional totalLineAmount; - private final Optional currency; + private final Optional currency; private final Optional taxRate; @@ -76,7 +76,7 @@ private PurchaseOrderLineItem( Optional>> trackingCategories, Optional taxAmount, Optional totalLineAmount, - Optional currency, + Optional currency, Optional taxRate, Optional exchangeRate, Optional company, @@ -515,7 +515,7 @@ public Optional getTotalLineAmount() { * */ @JsonProperty("currency") - public Optional getCurrency() { + public Optional getCurrency() { return currency; } @@ -650,7 +650,7 @@ public static final class Builder { private Optional totalLineAmount = Optional.empty(); - private Optional currency = Optional.empty(); + private Optional currency = Optional.empty(); private Optional taxRate = Optional.empty(); @@ -701,6 +701,9 @@ public Builder id(String id) { return this; } + /** + *

    The third-party API ID of the matching object.

    + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; @@ -712,6 +715,9 @@ public Builder remoteId(String remoteId) { return this; } + /** + *

    The datetime that this object was created by Merge.

    + */ @JsonSetter(value = "created_at", nulls = Nulls.SKIP) public Builder createdAt(Optional createdAt) { this.createdAt = createdAt; @@ -723,6 +729,9 @@ public Builder createdAt(OffsetDateTime createdAt) { return this; } + /** + *

    The datetime that this object was modified by Merge.

    + */ @JsonSetter(value = "modified_at", nulls = Nulls.SKIP) public Builder modifiedAt(Optional modifiedAt) { this.modifiedAt = modifiedAt; @@ -734,6 +743,9 @@ public Builder modifiedAt(OffsetDateTime modifiedAt) { return this; } + /** + *

    A description of the good being purchased.

    + */ @JsonSetter(value = "description", nulls = Nulls.SKIP) public Builder description(Optional description) { this.description = description; @@ -745,6 +757,9 @@ public Builder description(String description) { return this; } + /** + *

    The line item's unit price.

    + */ @JsonSetter(value = "unit_price", nulls = Nulls.SKIP) public Builder unitPrice(Optional unitPrice) { this.unitPrice = unitPrice; @@ -756,6 +771,9 @@ public Builder unitPrice(Double unitPrice) { return this; } + /** + *

    The line item's quantity.

    + */ @JsonSetter(value = "quantity", nulls = Nulls.SKIP) public Builder quantity(Optional quantity) { this.quantity = quantity; @@ -778,6 +796,9 @@ public Builder item(PurchaseOrderLineItemItem item) { return this; } + /** + *

    The purchase order line item's account.

    + */ @JsonSetter(value = "account", nulls = Nulls.SKIP) public Builder account(Optional account) { this.account = account; @@ -789,6 +810,9 @@ public Builder account(String account) { return this; } + /** + *

    The purchase order line item's associated tracking category.

    + */ @JsonSetter(value = "tracking_category", nulls = Nulls.SKIP) public Builder trackingCategory(Optional trackingCategory) { this.trackingCategory = trackingCategory; @@ -800,6 +824,9 @@ public Builder trackingCategory(String trackingCategory) { return this; } + /** + *

    The purchase order line item's associated tracking categories.

    + */ @JsonSetter(value = "tracking_categories", nulls = Nulls.SKIP) public Builder trackingCategories(Optional>> trackingCategories) { this.trackingCategories = trackingCategories; @@ -811,6 +838,9 @@ public Builder trackingCategories(List> trackingCategories) { return this; } + /** + *

    The purchase order line item's tax amount.

    + */ @JsonSetter(value = "tax_amount", nulls = Nulls.SKIP) public Builder taxAmount(Optional taxAmount) { this.taxAmount = taxAmount; @@ -822,6 +852,9 @@ public Builder taxAmount(String taxAmount) { return this; } + /** + *

    The purchase order line item's total amount.

    + */ @JsonSetter(value = "total_line_amount", nulls = Nulls.SKIP) public Builder totalLineAmount(Optional totalLineAmount) { this.totalLineAmount = totalLineAmount; @@ -833,17 +866,331 @@ public Builder totalLineAmount(String totalLineAmount) { return this; } + /** + *

    The purchase order line item's currency.

    + *
      + *
    • XUA - ADB Unit of Account
    • + *
    • AFN - Afghan Afghani
    • + *
    • AFA - Afghan Afghani (1927–2002)
    • + *
    • ALL - Albanian Lek
    • + *
    • ALK - Albanian Lek (1946–1965)
    • + *
    • DZD - Algerian Dinar
    • + *
    • ADP - Andorran Peseta
    • + *
    • AOA - Angolan Kwanza
    • + *
    • AOK - Angolan Kwanza (1977–1991)
    • + *
    • AON - Angolan New Kwanza (1990–2000)
    • + *
    • AOR - Angolan Readjusted Kwanza (1995–1999)
    • + *
    • ARA - Argentine Austral
    • + *
    • ARS - Argentine Peso
    • + *
    • ARM - Argentine Peso (1881–1970)
    • + *
    • ARP - Argentine Peso (1983–1985)
    • + *
    • ARL - Argentine Peso Ley (1970–1983)
    • + *
    • AMD - Armenian Dram
    • + *
    • AWG - Aruban Florin
    • + *
    • AUD - Australian Dollar
    • + *
    • ATS - Austrian Schilling
    • + *
    • AZN - Azerbaijani Manat
    • + *
    • AZM - Azerbaijani Manat (1993–2006)
    • + *
    • BSD - Bahamian Dollar
    • + *
    • BHD - Bahraini Dinar
    • + *
    • BDT - Bangladeshi Taka
    • + *
    • BBD - Barbadian Dollar
    • + *
    • BYN - Belarusian Ruble
    • + *
    • BYB - Belarusian Ruble (1994–1999)
    • + *
    • BYR - Belarusian Ruble (2000–2016)
    • + *
    • BEF - Belgian Franc
    • + *
    • BEC - Belgian Franc (convertible)
    • + *
    • BEL - Belgian Franc (financial)
    • + *
    • BZD - Belize Dollar
    • + *
    • BMD - Bermudan Dollar
    • + *
    • BTN - Bhutanese Ngultrum
    • + *
    • BOB - Bolivian Boliviano
    • + *
    • BOL - Bolivian Boliviano (1863–1963)
    • + *
    • BOV - Bolivian Mvdol
    • + *
    • BOP - Bolivian Peso
    • + *
    • BAM - Bosnia-Herzegovina Convertible Mark
    • + *
    • BAD - Bosnia-Herzegovina Dinar (1992–1994)
    • + *
    • BAN - Bosnia-Herzegovina New Dinar (1994–1997)
    • + *
    • BWP - Botswanan Pula
    • + *
    • BRC - Brazilian Cruzado (1986–1989)
    • + *
    • BRZ - Brazilian Cruzeiro (1942–1967)
    • + *
    • BRE - Brazilian Cruzeiro (1990–1993)
    • + *
    • BRR - Brazilian Cruzeiro (1993–1994)
    • + *
    • BRN - Brazilian New Cruzado (1989–1990)
    • + *
    • BRB - Brazilian New Cruzeiro (1967–1986)
    • + *
    • BRL - Brazilian Real
    • + *
    • GBP - British Pound
    • + *
    • BND - Brunei Dollar
    • + *
    • BGL - Bulgarian Hard Lev
    • + *
    • BGN - Bulgarian Lev
    • + *
    • BGO - Bulgarian Lev (1879–1952)
    • + *
    • BGM - Bulgarian Socialist Lev
    • + *
    • BUK - Burmese Kyat
    • + *
    • BIF - Burundian Franc
    • + *
    • XPF - CFP Franc
    • + *
    • KHR - Cambodian Riel
    • + *
    • CAD - Canadian Dollar
    • + *
    • CVE - Cape Verdean Escudo
    • + *
    • KYD - Cayman Islands Dollar
    • + *
    • XAF - Central African CFA Franc
    • + *
    • CLE - Chilean Escudo
    • + *
    • CLP - Chilean Peso
    • + *
    • CLF - Chilean Unit of Account (UF)
    • + *
    • CNX - Chinese People’s Bank Dollar
    • + *
    • CNY - Chinese Yuan
    • + *
    • CNH - Chinese Yuan (offshore)
    • + *
    • COP - Colombian Peso
    • + *
    • COU - Colombian Real Value Unit
    • + *
    • KMF - Comorian Franc
    • + *
    • CDF - Congolese Franc
    • + *
    • CRC - Costa Rican Colón
    • + *
    • HRD - Croatian Dinar
    • + *
    • HRK - Croatian Kuna
    • + *
    • CUC - Cuban Convertible Peso
    • + *
    • CUP - Cuban Peso
    • + *
    • CYP - Cypriot Pound
    • + *
    • CZK - Czech Koruna
    • + *
    • CSK - Czechoslovak Hard Koruna
    • + *
    • DKK - Danish Krone
    • + *
    • DJF - Djiboutian Franc
    • + *
    • DOP - Dominican Peso
    • + *
    • NLG - Dutch Guilder
    • + *
    • XCD - East Caribbean Dollar
    • + *
    • DDM - East German Mark
    • + *
    • ECS - Ecuadorian Sucre
    • + *
    • ECV - Ecuadorian Unit of Constant Value
    • + *
    • EGP - Egyptian Pound
    • + *
    • GQE - Equatorial Guinean Ekwele
    • + *
    • ERN - Eritrean Nakfa
    • + *
    • EEK - Estonian Kroon
    • + *
    • ETB - Ethiopian Birr
    • + *
    • EUR - Euro
    • + *
    • XBA - European Composite Unit
    • + *
    • XEU - European Currency Unit
    • + *
    • XBB - European Monetary Unit
    • + *
    • XBC - European Unit of Account (XBC)
    • + *
    • XBD - European Unit of Account (XBD)
    • + *
    • FKP - Falkland Islands Pound
    • + *
    • FJD - Fijian Dollar
    • + *
    • FIM - Finnish Markka
    • + *
    • FRF - French Franc
    • + *
    • XFO - French Gold Franc
    • + *
    • XFU - French UIC-Franc
    • + *
    • GMD - Gambian Dalasi
    • + *
    • GEK - Georgian Kupon Larit
    • + *
    • GEL - Georgian Lari
    • + *
    • DEM - German Mark
    • + *
    • GHS - Ghanaian Cedi
    • + *
    • GHC - Ghanaian Cedi (1979–2007)
    • + *
    • GIP - Gibraltar Pound
    • + *
    • XAU - Gold
    • + *
    • GRD - Greek Drachma
    • + *
    • GTQ - Guatemalan Quetzal
    • + *
    • GWP - Guinea-Bissau Peso
    • + *
    • GNF - Guinean Franc
    • + *
    • GNS - Guinean Syli
    • + *
    • GYD - Guyanaese Dollar
    • + *
    • HTG - Haitian Gourde
    • + *
    • HNL - Honduran Lempira
    • + *
    • HKD - Hong Kong Dollar
    • + *
    • HUF - Hungarian Forint
    • + *
    • IMP - IMP
    • + *
    • ISK - Icelandic Króna
    • + *
    • ISJ - Icelandic Króna (1918–1981)
    • + *
    • INR - Indian Rupee
    • + *
    • IDR - Indonesian Rupiah
    • + *
    • IRR - Iranian Rial
    • + *
    • IQD - Iraqi Dinar
    • + *
    • IEP - Irish Pound
    • + *
    • ILS - Israeli New Shekel
    • + *
    • ILP - Israeli Pound
    • + *
    • ILR - Israeli Shekel (1980–1985)
    • + *
    • ITL - Italian Lira
    • + *
    • JMD - Jamaican Dollar
    • + *
    • JPY - Japanese Yen
    • + *
    • JOD - Jordanian Dinar
    • + *
    • KZT - Kazakhstani Tenge
    • + *
    • KES - Kenyan Shilling
    • + *
    • KWD - Kuwaiti Dinar
    • + *
    • KGS - Kyrgystani Som
    • + *
    • LAK - Laotian Kip
    • + *
    • LVL - Latvian Lats
    • + *
    • LVR - Latvian Ruble
    • + *
    • LBP - Lebanese Pound
    • + *
    • LSL - Lesotho Loti
    • + *
    • LRD - Liberian Dollar
    • + *
    • LYD - Libyan Dinar
    • + *
    • LTL - Lithuanian Litas
    • + *
    • LTT - Lithuanian Talonas
    • + *
    • LUL - Luxembourg Financial Franc
    • + *
    • LUC - Luxembourgian Convertible Franc
    • + *
    • LUF - Luxembourgian Franc
    • + *
    • MOP - Macanese Pataca
    • + *
    • MKD - Macedonian Denar
    • + *
    • MKN - Macedonian Denar (1992–1993)
    • + *
    • MGA - Malagasy Ariary
    • + *
    • MGF - Malagasy Franc
    • + *
    • MWK - Malawian Kwacha
    • + *
    • MYR - Malaysian Ringgit
    • + *
    • MVR - Maldivian Rufiyaa
    • + *
    • MVP - Maldivian Rupee (1947–1981)
    • + *
    • MLF - Malian Franc
    • + *
    • MTL - Maltese Lira
    • + *
    • MTP - Maltese Pound
    • + *
    • MRU - Mauritanian Ouguiya
    • + *
    • MRO - Mauritanian Ouguiya (1973–2017)
    • + *
    • MUR - Mauritian Rupee
    • + *
    • MXV - Mexican Investment Unit
    • + *
    • MXN - Mexican Peso
    • + *
    • MXP - Mexican Silver Peso (1861–1992)
    • + *
    • MDC - Moldovan Cupon
    • + *
    • MDL - Moldovan Leu
    • + *
    • MCF - Monegasque Franc
    • + *
    • MNT - Mongolian Tugrik
    • + *
    • MAD - Moroccan Dirham
    • + *
    • MAF - Moroccan Franc
    • + *
    • MZE - Mozambican Escudo
    • + *
    • MZN - Mozambican Metical
    • + *
    • MZM - Mozambican Metical (1980–2006)
    • + *
    • MMK - Myanmar Kyat
    • + *
    • NAD - Namibian Dollar
    • + *
    • NPR - Nepalese Rupee
    • + *
    • ANG - Netherlands Antillean Guilder
    • + *
    • TWD - New Taiwan Dollar
    • + *
    • NZD - New Zealand Dollar
    • + *
    • NIO - Nicaraguan Córdoba
    • + *
    • NIC - Nicaraguan Córdoba (1988–1991)
    • + *
    • NGN - Nigerian Naira
    • + *
    • KPW - North Korean Won
    • + *
    • NOK - Norwegian Krone
    • + *
    • OMR - Omani Rial
    • + *
    • PKR - Pakistani Rupee
    • + *
    • XPD - Palladium
    • + *
    • PAB - Panamanian Balboa
    • + *
    • PGK - Papua New Guinean Kina
    • + *
    • PYG - Paraguayan Guarani
    • + *
    • PEI - Peruvian Inti
    • + *
    • PEN - Peruvian Sol
    • + *
    • PES - Peruvian Sol (1863–1965)
    • + *
    • PHP - Philippine Peso
    • + *
    • XPT - Platinum
    • + *
    • PLN - Polish Zloty
    • + *
    • PLZ - Polish Zloty (1950–1995)
    • + *
    • PTE - Portuguese Escudo
    • + *
    • GWE - Portuguese Guinea Escudo
    • + *
    • QAR - Qatari Rial
    • + *
    • XRE - RINET Funds
    • + *
    • RHD - Rhodesian Dollar
    • + *
    • RON - Romanian Leu
    • + *
    • ROL - Romanian Leu (1952–2006)
    • + *
    • RUB - Russian Ruble
    • + *
    • RUR - Russian Ruble (1991–1998)
    • + *
    • RWF - Rwandan Franc
    • + *
    • SVC - Salvadoran Colón
    • + *
    • WST - Samoan Tala
    • + *
    • SAR - Saudi Riyal
    • + *
    • RSD - Serbian Dinar
    • + *
    • CSD - Serbian Dinar (2002–2006)
    • + *
    • SCR - Seychellois Rupee
    • + *
    • SLL - Sierra Leonean Leone
    • + *
    • XAG - Silver
    • + *
    • SGD - Singapore Dollar
    • + *
    • SKK - Slovak Koruna
    • + *
    • SIT - Slovenian Tolar
    • + *
    • SBD - Solomon Islands Dollar
    • + *
    • SOS - Somali Shilling
    • + *
    • ZAR - South African Rand
    • + *
    • ZAL - South African Rand (financial)
    • + *
    • KRH - South Korean Hwan (1953–1962)
    • + *
    • KRW - South Korean Won
    • + *
    • KRO - South Korean Won (1945–1953)
    • + *
    • SSP - South Sudanese Pound
    • + *
    • SUR - Soviet Rouble
    • + *
    • ESP - Spanish Peseta
    • + *
    • ESA - Spanish Peseta (A account)
    • + *
    • ESB - Spanish Peseta (convertible account)
    • + *
    • XDR - Special Drawing Rights
    • + *
    • LKR - Sri Lankan Rupee
    • + *
    • SHP - St. Helena Pound
    • + *
    • XSU - Sucre
    • + *
    • SDD - Sudanese Dinar (1992–2007)
    • + *
    • SDG - Sudanese Pound
    • + *
    • SDP - Sudanese Pound (1957–1998)
    • + *
    • SRD - Surinamese Dollar
    • + *
    • SRG - Surinamese Guilder
    • + *
    • SZL - Swazi Lilangeni
    • + *
    • SEK - Swedish Krona
    • + *
    • CHF - Swiss Franc
    • + *
    • SYP - Syrian Pound
    • + *
    • STN - São Tomé & Príncipe Dobra
    • + *
    • STD - São Tomé & Príncipe Dobra (1977–2017)
    • + *
    • TVD - TVD
    • + *
    • TJR - Tajikistani Ruble
    • + *
    • TJS - Tajikistani Somoni
    • + *
    • TZS - Tanzanian Shilling
    • + *
    • XTS - Testing Currency Code
    • + *
    • THB - Thai Baht
    • + *
    • XXX - The codes assigned for transactions where no currency is involved
    • + *
    • TPE - Timorese Escudo
    • + *
    • TOP - Tongan Paʻanga
    • + *
    • TTD - Trinidad & Tobago Dollar
    • + *
    • TND - Tunisian Dinar
    • + *
    • TRY - Turkish Lira
    • + *
    • TRL - Turkish Lira (1922–2005)
    • + *
    • TMT - Turkmenistani Manat
    • + *
    • TMM - Turkmenistani Manat (1993–2009)
    • + *
    • USD - US Dollar
    • + *
    • USN - US Dollar (Next day)
    • + *
    • USS - US Dollar (Same day)
    • + *
    • UGX - Ugandan Shilling
    • + *
    • UGS - Ugandan Shilling (1966–1987)
    • + *
    • UAH - Ukrainian Hryvnia
    • + *
    • UAK - Ukrainian Karbovanets
    • + *
    • AED - United Arab Emirates Dirham
    • + *
    • UYW - Uruguayan Nominal Wage Index Unit
    • + *
    • UYU - Uruguayan Peso
    • + *
    • UYP - Uruguayan Peso (1975–1993)
    • + *
    • UYI - Uruguayan Peso (Indexed Units)
    • + *
    • UZS - Uzbekistani Som
    • + *
    • VUV - Vanuatu Vatu
    • + *
    • VES - Venezuelan Bolívar
    • + *
    • VEB - Venezuelan Bolívar (1871–2008)
    • + *
    • VEF - Venezuelan Bolívar (2008–2018)
    • + *
    • VND - Vietnamese Dong
    • + *
    • VNN - Vietnamese Dong (1978–1985)
    • + *
    • CHE - WIR Euro
    • + *
    • CHW - WIR Franc
    • + *
    • XOF - West African CFA Franc
    • + *
    • YDD - Yemeni Dinar
    • + *
    • YER - Yemeni Rial
    • + *
    • YUN - Yugoslavian Convertible Dinar (1990–1992)
    • + *
    • YUD - Yugoslavian Hard Dinar (1966–1990)
    • + *
    • YUM - Yugoslavian New Dinar (1994–2002)
    • + *
    • YUR - Yugoslavian Reformed Dinar (1992–1993)
    • + *
    • ZWN - ZWN
    • + *
    • ZRN - Zairean New Zaire (1993–1998)
    • + *
    • ZRZ - Zairean Zaire (1971–1993)
    • + *
    • ZMW - Zambian Kwacha
    • + *
    • ZMK - Zambian Kwacha (1968–2012)
    • + *
    • ZWD - Zimbabwean Dollar (1980–2008)
    • + *
    • ZWR - Zimbabwean Dollar (2008)
    • + *
    • ZWL - Zimbabwean Dollar (2009)
    • + *
    + */ @JsonSetter(value = "currency", nulls = Nulls.SKIP) - public Builder currency(Optional currency) { + public Builder currency(Optional currency) { this.currency = currency; return this; } - public Builder currency(TransactionCurrencyEnum currency) { + public Builder currency(PurchaseOrderLineItemCurrency currency) { this.currency = Optional.ofNullable(currency); return this; } + /** + *

    The tax rate that applies to this line item.

    + */ @JsonSetter(value = "tax_rate", nulls = Nulls.SKIP) public Builder taxRate(Optional taxRate) { this.taxRate = taxRate; @@ -855,6 +1202,9 @@ public Builder taxRate(String taxRate) { return this; } + /** + *

    The purchase order line item's exchange rate.

    + */ @JsonSetter(value = "exchange_rate", nulls = Nulls.SKIP) public Builder exchangeRate(Optional exchangeRate) { this.exchangeRate = exchangeRate; @@ -866,6 +1216,9 @@ public Builder exchangeRate(String exchangeRate) { return this; } + /** + *

    The company the purchase order line item belongs to.

    + */ @JsonSetter(value = "company", nulls = Nulls.SKIP) public Builder company(Optional company) { this.company = company; @@ -877,6 +1230,9 @@ public Builder company(String company) { return this; } + /** + *

    Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

    + */ @JsonSetter(value = "remote_was_deleted", nulls = Nulls.SKIP) public Builder remoteWasDeleted(Optional remoteWasDeleted) { this.remoteWasDeleted = remoteWasDeleted; diff --git a/src/main/java/com/merge/api/accounting/types/PurchaseOrderLineItemCurrency.java b/src/main/java/com/merge/api/accounting/types/PurchaseOrderLineItemCurrency.java new file mode 100644 index 000000000..7e8499cd7 --- /dev/null +++ b/src/main/java/com/merge/api/accounting/types/PurchaseOrderLineItemCurrency.java @@ -0,0 +1,96 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.merge.api.accounting.types; + +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.databind.DeserializationContext; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.fasterxml.jackson.databind.deser.std.StdDeserializer; +import com.merge.api.core.ObjectMappers; +import java.io.IOException; +import java.util.Objects; + +@JsonDeserialize(using = PurchaseOrderLineItemCurrency.Deserializer.class) +public final class PurchaseOrderLineItemCurrency { + private final Object value; + + private final int type; + + private PurchaseOrderLineItemCurrency(Object value, int type) { + this.value = value; + this.type = type; + } + + @JsonValue + public Object get() { + return this.value; + } + + @SuppressWarnings("unchecked") + public T visit(Visitor visitor) { + if (this.type == 0) { + return visitor.visit((TransactionCurrencyEnum) this.value); + } else if (this.type == 1) { + return visitor.visit((String) this.value); + } + throw new IllegalStateException("Failed to visit value. This should never happen."); + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof PurchaseOrderLineItemCurrency && equalTo((PurchaseOrderLineItemCurrency) other); + } + + private boolean equalTo(PurchaseOrderLineItemCurrency other) { + return value.equals(other.value); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.value); + } + + @java.lang.Override + public String toString() { + return this.value.toString(); + } + + public static PurchaseOrderLineItemCurrency of(TransactionCurrencyEnum value) { + return new PurchaseOrderLineItemCurrency(value, 0); + } + + public static PurchaseOrderLineItemCurrency of(String value) { + return new PurchaseOrderLineItemCurrency(value, 1); + } + + public interface Visitor { + T visit(TransactionCurrencyEnum value); + + T visit(String value); + } + + static final class Deserializer extends StdDeserializer { + Deserializer() { + super(PurchaseOrderLineItemCurrency.class); + } + + @java.lang.Override + public PurchaseOrderLineItemCurrency deserialize(JsonParser p, DeserializationContext context) + throws IOException { + Object value = p.readValueAs(Object.class); + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, TransactionCurrencyEnum.class)); + } catch (IllegalArgumentException e) { + } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, String.class)); + } catch (IllegalArgumentException e) { + } + throw new JsonParseException(p, "Failed to deserialize"); + } + } +} diff --git a/src/main/java/com/merge/api/accounting/types/PurchaseOrderLineItemRequest.java b/src/main/java/com/merge/api/accounting/types/PurchaseOrderLineItemRequest.java index 717a6e6ed..7e0d26746 100644 --- a/src/main/java/com/merge/api/accounting/types/PurchaseOrderLineItemRequest.java +++ b/src/main/java/com/merge/api/accounting/types/PurchaseOrderLineItemRequest.java @@ -42,7 +42,7 @@ public final class PurchaseOrderLineItemRequest { private final Optional totalLineAmount; - private final Optional currency; + private final Optional currency; private final Optional taxRate; @@ -69,7 +69,7 @@ private PurchaseOrderLineItemRequest( Optional>> trackingCategories, Optional taxAmount, Optional totalLineAmount, - Optional currency, + Optional currency, Optional taxRate, Optional exchangeRate, Optional company, @@ -486,7 +486,7 @@ public Optional getTotalLineAmount() { * */ @JsonProperty("currency") - public Optional getCurrency() { + public Optional getCurrency() { return currency; } @@ -613,7 +613,7 @@ public static final class Builder { private Optional totalLineAmount = Optional.empty(); - private Optional currency = Optional.empty(); + private Optional currency = Optional.empty(); private Optional taxRate = Optional.empty(); @@ -653,6 +653,9 @@ public Builder from(PurchaseOrderLineItemRequest other) { return this; } + /** + *

    The third-party API ID of the matching object.

    + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; @@ -664,6 +667,9 @@ public Builder remoteId(String remoteId) { return this; } + /** + *

    A description of the good being purchased.

    + */ @JsonSetter(value = "description", nulls = Nulls.SKIP) public Builder description(Optional description) { this.description = description; @@ -675,6 +681,9 @@ public Builder description(String description) { return this; } + /** + *

    The line item's unit price.

    + */ @JsonSetter(value = "unit_price", nulls = Nulls.SKIP) public Builder unitPrice(Optional unitPrice) { this.unitPrice = unitPrice; @@ -686,6 +695,9 @@ public Builder unitPrice(Double unitPrice) { return this; } + /** + *

    The line item's quantity.

    + */ @JsonSetter(value = "quantity", nulls = Nulls.SKIP) public Builder quantity(Optional quantity) { this.quantity = quantity; @@ -708,6 +720,9 @@ public Builder item(PurchaseOrderLineItemRequestItem item) { return this; } + /** + *

    The purchase order line item's account.

    + */ @JsonSetter(value = "account", nulls = Nulls.SKIP) public Builder account(Optional account) { this.account = account; @@ -719,6 +734,9 @@ public Builder account(String account) { return this; } + /** + *

    The purchase order line item's associated tracking category.

    + */ @JsonSetter(value = "tracking_category", nulls = Nulls.SKIP) public Builder trackingCategory(Optional trackingCategory) { this.trackingCategory = trackingCategory; @@ -730,6 +748,9 @@ public Builder trackingCategory(String trackingCategory) { return this; } + /** + *

    The purchase order line item's associated tracking categories.

    + */ @JsonSetter(value = "tracking_categories", nulls = Nulls.SKIP) public Builder trackingCategories(Optional>> trackingCategories) { this.trackingCategories = trackingCategories; @@ -741,6 +762,9 @@ public Builder trackingCategories(List> trackingCategories) { return this; } + /** + *

    The purchase order line item's tax amount.

    + */ @JsonSetter(value = "tax_amount", nulls = Nulls.SKIP) public Builder taxAmount(Optional taxAmount) { this.taxAmount = taxAmount; @@ -752,6 +776,9 @@ public Builder taxAmount(String taxAmount) { return this; } + /** + *

    The purchase order line item's total amount.

    + */ @JsonSetter(value = "total_line_amount", nulls = Nulls.SKIP) public Builder totalLineAmount(Optional totalLineAmount) { this.totalLineAmount = totalLineAmount; @@ -763,17 +790,331 @@ public Builder totalLineAmount(String totalLineAmount) { return this; } + /** + *

    The purchase order line item's currency.

    + *
      + *
    • XUA - ADB Unit of Account
    • + *
    • AFN - Afghan Afghani
    • + *
    • AFA - Afghan Afghani (1927–2002)
    • + *
    • ALL - Albanian Lek
    • + *
    • ALK - Albanian Lek (1946–1965)
    • + *
    • DZD - Algerian Dinar
    • + *
    • ADP - Andorran Peseta
    • + *
    • AOA - Angolan Kwanza
    • + *
    • AOK - Angolan Kwanza (1977–1991)
    • + *
    • AON - Angolan New Kwanza (1990–2000)
    • + *
    • AOR - Angolan Readjusted Kwanza (1995–1999)
    • + *
    • ARA - Argentine Austral
    • + *
    • ARS - Argentine Peso
    • + *
    • ARM - Argentine Peso (1881–1970)
    • + *
    • ARP - Argentine Peso (1983–1985)
    • + *
    • ARL - Argentine Peso Ley (1970–1983)
    • + *
    • AMD - Armenian Dram
    • + *
    • AWG - Aruban Florin
    • + *
    • AUD - Australian Dollar
    • + *
    • ATS - Austrian Schilling
    • + *
    • AZN - Azerbaijani Manat
    • + *
    • AZM - Azerbaijani Manat (1993–2006)
    • + *
    • BSD - Bahamian Dollar
    • + *
    • BHD - Bahraini Dinar
    • + *
    • BDT - Bangladeshi Taka
    • + *
    • BBD - Barbadian Dollar
    • + *
    • BYN - Belarusian Ruble
    • + *
    • BYB - Belarusian Ruble (1994–1999)
    • + *
    • BYR - Belarusian Ruble (2000–2016)
    • + *
    • BEF - Belgian Franc
    • + *
    • BEC - Belgian Franc (convertible)
    • + *
    • BEL - Belgian Franc (financial)
    • + *
    • BZD - Belize Dollar
    • + *
    • BMD - Bermudan Dollar
    • + *
    • BTN - Bhutanese Ngultrum
    • + *
    • BOB - Bolivian Boliviano
    • + *
    • BOL - Bolivian Boliviano (1863–1963)
    • + *
    • BOV - Bolivian Mvdol
    • + *
    • BOP - Bolivian Peso
    • + *
    • BAM - Bosnia-Herzegovina Convertible Mark
    • + *
    • BAD - Bosnia-Herzegovina Dinar (1992–1994)
    • + *
    • BAN - Bosnia-Herzegovina New Dinar (1994–1997)
    • + *
    • BWP - Botswanan Pula
    • + *
    • BRC - Brazilian Cruzado (1986–1989)
    • + *
    • BRZ - Brazilian Cruzeiro (1942–1967)
    • + *
    • BRE - Brazilian Cruzeiro (1990–1993)
    • + *
    • BRR - Brazilian Cruzeiro (1993–1994)
    • + *
    • BRN - Brazilian New Cruzado (1989–1990)
    • + *
    • BRB - Brazilian New Cruzeiro (1967–1986)
    • + *
    • BRL - Brazilian Real
    • + *
    • GBP - British Pound
    • + *
    • BND - Brunei Dollar
    • + *
    • BGL - Bulgarian Hard Lev
    • + *
    • BGN - Bulgarian Lev
    • + *
    • BGO - Bulgarian Lev (1879–1952)
    • + *
    • BGM - Bulgarian Socialist Lev
    • + *
    • BUK - Burmese Kyat
    • + *
    • BIF - Burundian Franc
    • + *
    • XPF - CFP Franc
    • + *
    • KHR - Cambodian Riel
    • + *
    • CAD - Canadian Dollar
    • + *
    • CVE - Cape Verdean Escudo
    • + *
    • KYD - Cayman Islands Dollar
    • + *
    • XAF - Central African CFA Franc
    • + *
    • CLE - Chilean Escudo
    • + *
    • CLP - Chilean Peso
    • + *
    • CLF - Chilean Unit of Account (UF)
    • + *
    • CNX - Chinese People’s Bank Dollar
    • + *
    • CNY - Chinese Yuan
    • + *
    • CNH - Chinese Yuan (offshore)
    • + *
    • COP - Colombian Peso
    • + *
    • COU - Colombian Real Value Unit
    • + *
    • KMF - Comorian Franc
    • + *
    • CDF - Congolese Franc
    • + *
    • CRC - Costa Rican Colón
    • + *
    • HRD - Croatian Dinar
    • + *
    • HRK - Croatian Kuna
    • + *
    • CUC - Cuban Convertible Peso
    • + *
    • CUP - Cuban Peso
    • + *
    • CYP - Cypriot Pound
    • + *
    • CZK - Czech Koruna
    • + *
    • CSK - Czechoslovak Hard Koruna
    • + *
    • DKK - Danish Krone
    • + *
    • DJF - Djiboutian Franc
    • + *
    • DOP - Dominican Peso
    • + *
    • NLG - Dutch Guilder
    • + *
    • XCD - East Caribbean Dollar
    • + *
    • DDM - East German Mark
    • + *
    • ECS - Ecuadorian Sucre
    • + *
    • ECV - Ecuadorian Unit of Constant Value
    • + *
    • EGP - Egyptian Pound
    • + *
    • GQE - Equatorial Guinean Ekwele
    • + *
    • ERN - Eritrean Nakfa
    • + *
    • EEK - Estonian Kroon
    • + *
    • ETB - Ethiopian Birr
    • + *
    • EUR - Euro
    • + *
    • XBA - European Composite Unit
    • + *
    • XEU - European Currency Unit
    • + *
    • XBB - European Monetary Unit
    • + *
    • XBC - European Unit of Account (XBC)
    • + *
    • XBD - European Unit of Account (XBD)
    • + *
    • FKP - Falkland Islands Pound
    • + *
    • FJD - Fijian Dollar
    • + *
    • FIM - Finnish Markka
    • + *
    • FRF - French Franc
    • + *
    • XFO - French Gold Franc
    • + *
    • XFU - French UIC-Franc
    • + *
    • GMD - Gambian Dalasi
    • + *
    • GEK - Georgian Kupon Larit
    • + *
    • GEL - Georgian Lari
    • + *
    • DEM - German Mark
    • + *
    • GHS - Ghanaian Cedi
    • + *
    • GHC - Ghanaian Cedi (1979–2007)
    • + *
    • GIP - Gibraltar Pound
    • + *
    • XAU - Gold
    • + *
    • GRD - Greek Drachma
    • + *
    • GTQ - Guatemalan Quetzal
    • + *
    • GWP - Guinea-Bissau Peso
    • + *
    • GNF - Guinean Franc
    • + *
    • GNS - Guinean Syli
    • + *
    • GYD - Guyanaese Dollar
    • + *
    • HTG - Haitian Gourde
    • + *
    • HNL - Honduran Lempira
    • + *
    • HKD - Hong Kong Dollar
    • + *
    • HUF - Hungarian Forint
    • + *
    • IMP - IMP
    • + *
    • ISK - Icelandic Króna
    • + *
    • ISJ - Icelandic Króna (1918–1981)
    • + *
    • INR - Indian Rupee
    • + *
    • IDR - Indonesian Rupiah
    • + *
    • IRR - Iranian Rial
    • + *
    • IQD - Iraqi Dinar
    • + *
    • IEP - Irish Pound
    • + *
    • ILS - Israeli New Shekel
    • + *
    • ILP - Israeli Pound
    • + *
    • ILR - Israeli Shekel (1980–1985)
    • + *
    • ITL - Italian Lira
    • + *
    • JMD - Jamaican Dollar
    • + *
    • JPY - Japanese Yen
    • + *
    • JOD - Jordanian Dinar
    • + *
    • KZT - Kazakhstani Tenge
    • + *
    • KES - Kenyan Shilling
    • + *
    • KWD - Kuwaiti Dinar
    • + *
    • KGS - Kyrgystani Som
    • + *
    • LAK - Laotian Kip
    • + *
    • LVL - Latvian Lats
    • + *
    • LVR - Latvian Ruble
    • + *
    • LBP - Lebanese Pound
    • + *
    • LSL - Lesotho Loti
    • + *
    • LRD - Liberian Dollar
    • + *
    • LYD - Libyan Dinar
    • + *
    • LTL - Lithuanian Litas
    • + *
    • LTT - Lithuanian Talonas
    • + *
    • LUL - Luxembourg Financial Franc
    • + *
    • LUC - Luxembourgian Convertible Franc
    • + *
    • LUF - Luxembourgian Franc
    • + *
    • MOP - Macanese Pataca
    • + *
    • MKD - Macedonian Denar
    • + *
    • MKN - Macedonian Denar (1992–1993)
    • + *
    • MGA - Malagasy Ariary
    • + *
    • MGF - Malagasy Franc
    • + *
    • MWK - Malawian Kwacha
    • + *
    • MYR - Malaysian Ringgit
    • + *
    • MVR - Maldivian Rufiyaa
    • + *
    • MVP - Maldivian Rupee (1947–1981)
    • + *
    • MLF - Malian Franc
    • + *
    • MTL - Maltese Lira
    • + *
    • MTP - Maltese Pound
    • + *
    • MRU - Mauritanian Ouguiya
    • + *
    • MRO - Mauritanian Ouguiya (1973–2017)
    • + *
    • MUR - Mauritian Rupee
    • + *
    • MXV - Mexican Investment Unit
    • + *
    • MXN - Mexican Peso
    • + *
    • MXP - Mexican Silver Peso (1861–1992)
    • + *
    • MDC - Moldovan Cupon
    • + *
    • MDL - Moldovan Leu
    • + *
    • MCF - Monegasque Franc
    • + *
    • MNT - Mongolian Tugrik
    • + *
    • MAD - Moroccan Dirham
    • + *
    • MAF - Moroccan Franc
    • + *
    • MZE - Mozambican Escudo
    • + *
    • MZN - Mozambican Metical
    • + *
    • MZM - Mozambican Metical (1980–2006)
    • + *
    • MMK - Myanmar Kyat
    • + *
    • NAD - Namibian Dollar
    • + *
    • NPR - Nepalese Rupee
    • + *
    • ANG - Netherlands Antillean Guilder
    • + *
    • TWD - New Taiwan Dollar
    • + *
    • NZD - New Zealand Dollar
    • + *
    • NIO - Nicaraguan Córdoba
    • + *
    • NIC - Nicaraguan Córdoba (1988–1991)
    • + *
    • NGN - Nigerian Naira
    • + *
    • KPW - North Korean Won
    • + *
    • NOK - Norwegian Krone
    • + *
    • OMR - Omani Rial
    • + *
    • PKR - Pakistani Rupee
    • + *
    • XPD - Palladium
    • + *
    • PAB - Panamanian Balboa
    • + *
    • PGK - Papua New Guinean Kina
    • + *
    • PYG - Paraguayan Guarani
    • + *
    • PEI - Peruvian Inti
    • + *
    • PEN - Peruvian Sol
    • + *
    • PES - Peruvian Sol (1863–1965)
    • + *
    • PHP - Philippine Peso
    • + *
    • XPT - Platinum
    • + *
    • PLN - Polish Zloty
    • + *
    • PLZ - Polish Zloty (1950–1995)
    • + *
    • PTE - Portuguese Escudo
    • + *
    • GWE - Portuguese Guinea Escudo
    • + *
    • QAR - Qatari Rial
    • + *
    • XRE - RINET Funds
    • + *
    • RHD - Rhodesian Dollar
    • + *
    • RON - Romanian Leu
    • + *
    • ROL - Romanian Leu (1952–2006)
    • + *
    • RUB - Russian Ruble
    • + *
    • RUR - Russian Ruble (1991–1998)
    • + *
    • RWF - Rwandan Franc
    • + *
    • SVC - Salvadoran Colón
    • + *
    • WST - Samoan Tala
    • + *
    • SAR - Saudi Riyal
    • + *
    • RSD - Serbian Dinar
    • + *
    • CSD - Serbian Dinar (2002–2006)
    • + *
    • SCR - Seychellois Rupee
    • + *
    • SLL - Sierra Leonean Leone
    • + *
    • XAG - Silver
    • + *
    • SGD - Singapore Dollar
    • + *
    • SKK - Slovak Koruna
    • + *
    • SIT - Slovenian Tolar
    • + *
    • SBD - Solomon Islands Dollar
    • + *
    • SOS - Somali Shilling
    • + *
    • ZAR - South African Rand
    • + *
    • ZAL - South African Rand (financial)
    • + *
    • KRH - South Korean Hwan (1953–1962)
    • + *
    • KRW - South Korean Won
    • + *
    • KRO - South Korean Won (1945–1953)
    • + *
    • SSP - South Sudanese Pound
    • + *
    • SUR - Soviet Rouble
    • + *
    • ESP - Spanish Peseta
    • + *
    • ESA - Spanish Peseta (A account)
    • + *
    • ESB - Spanish Peseta (convertible account)
    • + *
    • XDR - Special Drawing Rights
    • + *
    • LKR - Sri Lankan Rupee
    • + *
    • SHP - St. Helena Pound
    • + *
    • XSU - Sucre
    • + *
    • SDD - Sudanese Dinar (1992–2007)
    • + *
    • SDG - Sudanese Pound
    • + *
    • SDP - Sudanese Pound (1957–1998)
    • + *
    • SRD - Surinamese Dollar
    • + *
    • SRG - Surinamese Guilder
    • + *
    • SZL - Swazi Lilangeni
    • + *
    • SEK - Swedish Krona
    • + *
    • CHF - Swiss Franc
    • + *
    • SYP - Syrian Pound
    • + *
    • STN - São Tomé & Príncipe Dobra
    • + *
    • STD - São Tomé & Príncipe Dobra (1977–2017)
    • + *
    • TVD - TVD
    • + *
    • TJR - Tajikistani Ruble
    • + *
    • TJS - Tajikistani Somoni
    • + *
    • TZS - Tanzanian Shilling
    • + *
    • XTS - Testing Currency Code
    • + *
    • THB - Thai Baht
    • + *
    • XXX - The codes assigned for transactions where no currency is involved
    • + *
    • TPE - Timorese Escudo
    • + *
    • TOP - Tongan Paʻanga
    • + *
    • TTD - Trinidad & Tobago Dollar
    • + *
    • TND - Tunisian Dinar
    • + *
    • TRY - Turkish Lira
    • + *
    • TRL - Turkish Lira (1922–2005)
    • + *
    • TMT - Turkmenistani Manat
    • + *
    • TMM - Turkmenistani Manat (1993–2009)
    • + *
    • USD - US Dollar
    • + *
    • USN - US Dollar (Next day)
    • + *
    • USS - US Dollar (Same day)
    • + *
    • UGX - Ugandan Shilling
    • + *
    • UGS - Ugandan Shilling (1966–1987)
    • + *
    • UAH - Ukrainian Hryvnia
    • + *
    • UAK - Ukrainian Karbovanets
    • + *
    • AED - United Arab Emirates Dirham
    • + *
    • UYW - Uruguayan Nominal Wage Index Unit
    • + *
    • UYU - Uruguayan Peso
    • + *
    • UYP - Uruguayan Peso (1975–1993)
    • + *
    • UYI - Uruguayan Peso (Indexed Units)
    • + *
    • UZS - Uzbekistani Som
    • + *
    • VUV - Vanuatu Vatu
    • + *
    • VES - Venezuelan Bolívar
    • + *
    • VEB - Venezuelan Bolívar (1871–2008)
    • + *
    • VEF - Venezuelan Bolívar (2008–2018)
    • + *
    • VND - Vietnamese Dong
    • + *
    • VNN - Vietnamese Dong (1978–1985)
    • + *
    • CHE - WIR Euro
    • + *
    • CHW - WIR Franc
    • + *
    • XOF - West African CFA Franc
    • + *
    • YDD - Yemeni Dinar
    • + *
    • YER - Yemeni Rial
    • + *
    • YUN - Yugoslavian Convertible Dinar (1990–1992)
    • + *
    • YUD - Yugoslavian Hard Dinar (1966–1990)
    • + *
    • YUM - Yugoslavian New Dinar (1994–2002)
    • + *
    • YUR - Yugoslavian Reformed Dinar (1992–1993)
    • + *
    • ZWN - ZWN
    • + *
    • ZRN - Zairean New Zaire (1993–1998)
    • + *
    • ZRZ - Zairean Zaire (1971–1993)
    • + *
    • ZMW - Zambian Kwacha
    • + *
    • ZMK - Zambian Kwacha (1968–2012)
    • + *
    • ZWD - Zimbabwean Dollar (1980–2008)
    • + *
    • ZWR - Zimbabwean Dollar (2008)
    • + *
    • ZWL - Zimbabwean Dollar (2009)
    • + *
    + */ @JsonSetter(value = "currency", nulls = Nulls.SKIP) - public Builder currency(Optional currency) { + public Builder currency(Optional currency) { this.currency = currency; return this; } - public Builder currency(TransactionCurrencyEnum currency) { + public Builder currency(PurchaseOrderLineItemRequestCurrency currency) { this.currency = Optional.ofNullable(currency); return this; } + /** + *

    The tax rate that applies to this line item.

    + */ @JsonSetter(value = "tax_rate", nulls = Nulls.SKIP) public Builder taxRate(Optional taxRate) { this.taxRate = taxRate; @@ -785,6 +1126,9 @@ public Builder taxRate(String taxRate) { return this; } + /** + *

    The purchase order line item's exchange rate.

    + */ @JsonSetter(value = "exchange_rate", nulls = Nulls.SKIP) public Builder exchangeRate(Optional exchangeRate) { this.exchangeRate = exchangeRate; @@ -796,6 +1140,9 @@ public Builder exchangeRate(String exchangeRate) { return this; } + /** + *

    The company the purchase order line item belongs to.

    + */ @JsonSetter(value = "company", nulls = Nulls.SKIP) public Builder company(Optional company) { this.company = company; diff --git a/src/main/java/com/merge/api/accounting/types/PurchaseOrderLineItemRequestCurrency.java b/src/main/java/com/merge/api/accounting/types/PurchaseOrderLineItemRequestCurrency.java new file mode 100644 index 000000000..54d2be282 --- /dev/null +++ b/src/main/java/com/merge/api/accounting/types/PurchaseOrderLineItemRequestCurrency.java @@ -0,0 +1,97 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.merge.api.accounting.types; + +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.databind.DeserializationContext; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.fasterxml.jackson.databind.deser.std.StdDeserializer; +import com.merge.api.core.ObjectMappers; +import java.io.IOException; +import java.util.Objects; + +@JsonDeserialize(using = PurchaseOrderLineItemRequestCurrency.Deserializer.class) +public final class PurchaseOrderLineItemRequestCurrency { + private final Object value; + + private final int type; + + private PurchaseOrderLineItemRequestCurrency(Object value, int type) { + this.value = value; + this.type = type; + } + + @JsonValue + public Object get() { + return this.value; + } + + @SuppressWarnings("unchecked") + public T visit(Visitor visitor) { + if (this.type == 0) { + return visitor.visit((TransactionCurrencyEnum) this.value); + } else if (this.type == 1) { + return visitor.visit((String) this.value); + } + throw new IllegalStateException("Failed to visit value. This should never happen."); + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof PurchaseOrderLineItemRequestCurrency + && equalTo((PurchaseOrderLineItemRequestCurrency) other); + } + + private boolean equalTo(PurchaseOrderLineItemRequestCurrency other) { + return value.equals(other.value); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.value); + } + + @java.lang.Override + public String toString() { + return this.value.toString(); + } + + public static PurchaseOrderLineItemRequestCurrency of(TransactionCurrencyEnum value) { + return new PurchaseOrderLineItemRequestCurrency(value, 0); + } + + public static PurchaseOrderLineItemRequestCurrency of(String value) { + return new PurchaseOrderLineItemRequestCurrency(value, 1); + } + + public interface Visitor { + T visit(TransactionCurrencyEnum value); + + T visit(String value); + } + + static final class Deserializer extends StdDeserializer { + Deserializer() { + super(PurchaseOrderLineItemRequestCurrency.class); + } + + @java.lang.Override + public PurchaseOrderLineItemRequestCurrency deserialize(JsonParser p, DeserializationContext context) + throws IOException { + Object value = p.readValueAs(Object.class); + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, TransactionCurrencyEnum.class)); + } catch (IllegalArgumentException e) { + } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, String.class)); + } catch (IllegalArgumentException e) { + } + throw new JsonParseException(p, "Failed to deserialize"); + } + } +} diff --git a/src/main/java/com/merge/api/accounting/types/PurchaseOrderRequest.java b/src/main/java/com/merge/api/accounting/types/PurchaseOrderRequest.java index 81d8f992e..f0f9afb9b 100644 --- a/src/main/java/com/merge/api/accounting/types/PurchaseOrderRequest.java +++ b/src/main/java/com/merge/api/accounting/types/PurchaseOrderRequest.java @@ -23,7 +23,7 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = PurchaseOrderRequest.Builder.class) public final class PurchaseOrderRequest { - private final Optional status; + private final Optional status; private final Optional issueDate; @@ -43,7 +43,7 @@ public final class PurchaseOrderRequest { private final Optional paymentTerm; - private final Optional currency; + private final Optional currency; private final Optional inclusiveOfTax; @@ -62,7 +62,7 @@ public final class PurchaseOrderRequest { private final Map additionalProperties; private PurchaseOrderRequest( - Optional status, + Optional status, Optional issueDate, Optional deliveryDate, Optional deliveryAddress, @@ -72,7 +72,7 @@ private PurchaseOrderRequest( Optional company, Optional totalAmount, Optional paymentTerm, - Optional currency, + Optional currency, Optional inclusiveOfTax, Optional exchangeRate, Optional>> trackingCategories, @@ -113,7 +113,7 @@ private PurchaseOrderRequest( * */ @JsonProperty("status") - public Optional getStatus() { + public Optional getStatus() { return status; } @@ -501,7 +501,7 @@ public Optional getPaymentTerm() { * */ @JsonProperty("currency") - public Optional getCurrency() { + public Optional getCurrency() { return currency; } @@ -612,7 +612,7 @@ public static Builder builder() { @JsonIgnoreProperties(ignoreUnknown = true) public static final class Builder { - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Optional issueDate = Optional.empty(); @@ -632,7 +632,7 @@ public static final class Builder { private Optional paymentTerm = Optional.empty(); - private Optional currency = Optional.empty(); + private Optional currency = Optional.empty(); private Optional inclusiveOfTax = Optional.empty(); @@ -676,17 +676,30 @@ public Builder from(PurchaseOrderRequest other) { return this; } + /** + *

    The purchase order's status.

    + *
      + *
    • DRAFT - DRAFT
    • + *
    • SUBMITTED - SUBMITTED
    • + *
    • AUTHORIZED - AUTHORIZED
    • + *
    • BILLED - BILLED
    • + *
    • DELETED - DELETED
    • + *
    + */ @JsonSetter(value = "status", nulls = Nulls.SKIP) - public Builder status(Optional status) { + public Builder status(Optional status) { this.status = status; return this; } - public Builder status(PurchaseOrderStatusEnum status) { + public Builder status(PurchaseOrderRequestStatus status) { this.status = Optional.ofNullable(status); return this; } + /** + *

    The purchase order's issue date.

    + */ @JsonSetter(value = "issue_date", nulls = Nulls.SKIP) public Builder issueDate(Optional issueDate) { this.issueDate = issueDate; @@ -698,6 +711,9 @@ public Builder issueDate(OffsetDateTime issueDate) { return this; } + /** + *

    The purchase order's delivery date.

    + */ @JsonSetter(value = "delivery_date", nulls = Nulls.SKIP) public Builder deliveryDate(Optional deliveryDate) { this.deliveryDate = deliveryDate; @@ -709,6 +725,9 @@ public Builder deliveryDate(OffsetDateTime deliveryDate) { return this; } + /** + *

    The purchase order's delivery address.

    + */ @JsonSetter(value = "delivery_address", nulls = Nulls.SKIP) public Builder deliveryAddress(Optional deliveryAddress) { this.deliveryAddress = deliveryAddress; @@ -720,6 +739,9 @@ public Builder deliveryAddress(PurchaseOrderRequestDeliveryAddress deliveryAddre return this; } + /** + *

    The contact making the purchase order.

    + */ @JsonSetter(value = "customer", nulls = Nulls.SKIP) public Builder customer(Optional customer) { this.customer = customer; @@ -731,6 +753,9 @@ public Builder customer(String customer) { return this; } + /** + *

    The party fulfilling the purchase order.

    + */ @JsonSetter(value = "vendor", nulls = Nulls.SKIP) public Builder vendor(Optional vendor) { this.vendor = vendor; @@ -742,6 +767,9 @@ public Builder vendor(PurchaseOrderRequestVendor vendor) { return this; } + /** + *

    A memo attached to the purchase order.

    + */ @JsonSetter(value = "memo", nulls = Nulls.SKIP) public Builder memo(Optional memo) { this.memo = memo; @@ -753,6 +781,9 @@ public Builder memo(String memo) { return this; } + /** + *

    The company the purchase order belongs to.

    + */ @JsonSetter(value = "company", nulls = Nulls.SKIP) public Builder company(Optional company) { this.company = company; @@ -764,6 +795,9 @@ public Builder company(PurchaseOrderRequestCompany company) { return this; } + /** + *

    The purchase order's total amount.

    + */ @JsonSetter(value = "total_amount", nulls = Nulls.SKIP) public Builder totalAmount(Optional totalAmount) { this.totalAmount = totalAmount; @@ -775,6 +809,9 @@ public Builder totalAmount(Double totalAmount) { return this; } + /** + *

    The payment term that applies to this transaction.

    + */ @JsonSetter(value = "payment_term", nulls = Nulls.SKIP) public Builder paymentTerm(Optional paymentTerm) { this.paymentTerm = paymentTerm; @@ -786,17 +823,331 @@ public Builder paymentTerm(PurchaseOrderRequestPaymentTerm paymentTerm) { return this; } + /** + *

    The purchase order's currency.

    + *
      + *
    • XUA - ADB Unit of Account
    • + *
    • AFN - Afghan Afghani
    • + *
    • AFA - Afghan Afghani (1927–2002)
    • + *
    • ALL - Albanian Lek
    • + *
    • ALK - Albanian Lek (1946–1965)
    • + *
    • DZD - Algerian Dinar
    • + *
    • ADP - Andorran Peseta
    • + *
    • AOA - Angolan Kwanza
    • + *
    • AOK - Angolan Kwanza (1977–1991)
    • + *
    • AON - Angolan New Kwanza (1990–2000)
    • + *
    • AOR - Angolan Readjusted Kwanza (1995–1999)
    • + *
    • ARA - Argentine Austral
    • + *
    • ARS - Argentine Peso
    • + *
    • ARM - Argentine Peso (1881–1970)
    • + *
    • ARP - Argentine Peso (1983–1985)
    • + *
    • ARL - Argentine Peso Ley (1970–1983)
    • + *
    • AMD - Armenian Dram
    • + *
    • AWG - Aruban Florin
    • + *
    • AUD - Australian Dollar
    • + *
    • ATS - Austrian Schilling
    • + *
    • AZN - Azerbaijani Manat
    • + *
    • AZM - Azerbaijani Manat (1993–2006)
    • + *
    • BSD - Bahamian Dollar
    • + *
    • BHD - Bahraini Dinar
    • + *
    • BDT - Bangladeshi Taka
    • + *
    • BBD - Barbadian Dollar
    • + *
    • BYN - Belarusian Ruble
    • + *
    • BYB - Belarusian Ruble (1994–1999)
    • + *
    • BYR - Belarusian Ruble (2000–2016)
    • + *
    • BEF - Belgian Franc
    • + *
    • BEC - Belgian Franc (convertible)
    • + *
    • BEL - Belgian Franc (financial)
    • + *
    • BZD - Belize Dollar
    • + *
    • BMD - Bermudan Dollar
    • + *
    • BTN - Bhutanese Ngultrum
    • + *
    • BOB - Bolivian Boliviano
    • + *
    • BOL - Bolivian Boliviano (1863–1963)
    • + *
    • BOV - Bolivian Mvdol
    • + *
    • BOP - Bolivian Peso
    • + *
    • BAM - Bosnia-Herzegovina Convertible Mark
    • + *
    • BAD - Bosnia-Herzegovina Dinar (1992–1994)
    • + *
    • BAN - Bosnia-Herzegovina New Dinar (1994–1997)
    • + *
    • BWP - Botswanan Pula
    • + *
    • BRC - Brazilian Cruzado (1986–1989)
    • + *
    • BRZ - Brazilian Cruzeiro (1942–1967)
    • + *
    • BRE - Brazilian Cruzeiro (1990–1993)
    • + *
    • BRR - Brazilian Cruzeiro (1993–1994)
    • + *
    • BRN - Brazilian New Cruzado (1989–1990)
    • + *
    • BRB - Brazilian New Cruzeiro (1967–1986)
    • + *
    • BRL - Brazilian Real
    • + *
    • GBP - British Pound
    • + *
    • BND - Brunei Dollar
    • + *
    • BGL - Bulgarian Hard Lev
    • + *
    • BGN - Bulgarian Lev
    • + *
    • BGO - Bulgarian Lev (1879–1952)
    • + *
    • BGM - Bulgarian Socialist Lev
    • + *
    • BUK - Burmese Kyat
    • + *
    • BIF - Burundian Franc
    • + *
    • XPF - CFP Franc
    • + *
    • KHR - Cambodian Riel
    • + *
    • CAD - Canadian Dollar
    • + *
    • CVE - Cape Verdean Escudo
    • + *
    • KYD - Cayman Islands Dollar
    • + *
    • XAF - Central African CFA Franc
    • + *
    • CLE - Chilean Escudo
    • + *
    • CLP - Chilean Peso
    • + *
    • CLF - Chilean Unit of Account (UF)
    • + *
    • CNX - Chinese People’s Bank Dollar
    • + *
    • CNY - Chinese Yuan
    • + *
    • CNH - Chinese Yuan (offshore)
    • + *
    • COP - Colombian Peso
    • + *
    • COU - Colombian Real Value Unit
    • + *
    • KMF - Comorian Franc
    • + *
    • CDF - Congolese Franc
    • + *
    • CRC - Costa Rican Colón
    • + *
    • HRD - Croatian Dinar
    • + *
    • HRK - Croatian Kuna
    • + *
    • CUC - Cuban Convertible Peso
    • + *
    • CUP - Cuban Peso
    • + *
    • CYP - Cypriot Pound
    • + *
    • CZK - Czech Koruna
    • + *
    • CSK - Czechoslovak Hard Koruna
    • + *
    • DKK - Danish Krone
    • + *
    • DJF - Djiboutian Franc
    • + *
    • DOP - Dominican Peso
    • + *
    • NLG - Dutch Guilder
    • + *
    • XCD - East Caribbean Dollar
    • + *
    • DDM - East German Mark
    • + *
    • ECS - Ecuadorian Sucre
    • + *
    • ECV - Ecuadorian Unit of Constant Value
    • + *
    • EGP - Egyptian Pound
    • + *
    • GQE - Equatorial Guinean Ekwele
    • + *
    • ERN - Eritrean Nakfa
    • + *
    • EEK - Estonian Kroon
    • + *
    • ETB - Ethiopian Birr
    • + *
    • EUR - Euro
    • + *
    • XBA - European Composite Unit
    • + *
    • XEU - European Currency Unit
    • + *
    • XBB - European Monetary Unit
    • + *
    • XBC - European Unit of Account (XBC)
    • + *
    • XBD - European Unit of Account (XBD)
    • + *
    • FKP - Falkland Islands Pound
    • + *
    • FJD - Fijian Dollar
    • + *
    • FIM - Finnish Markka
    • + *
    • FRF - French Franc
    • + *
    • XFO - French Gold Franc
    • + *
    • XFU - French UIC-Franc
    • + *
    • GMD - Gambian Dalasi
    • + *
    • GEK - Georgian Kupon Larit
    • + *
    • GEL - Georgian Lari
    • + *
    • DEM - German Mark
    • + *
    • GHS - Ghanaian Cedi
    • + *
    • GHC - Ghanaian Cedi (1979–2007)
    • + *
    • GIP - Gibraltar Pound
    • + *
    • XAU - Gold
    • + *
    • GRD - Greek Drachma
    • + *
    • GTQ - Guatemalan Quetzal
    • + *
    • GWP - Guinea-Bissau Peso
    • + *
    • GNF - Guinean Franc
    • + *
    • GNS - Guinean Syli
    • + *
    • GYD - Guyanaese Dollar
    • + *
    • HTG - Haitian Gourde
    • + *
    • HNL - Honduran Lempira
    • + *
    • HKD - Hong Kong Dollar
    • + *
    • HUF - Hungarian Forint
    • + *
    • IMP - IMP
    • + *
    • ISK - Icelandic Króna
    • + *
    • ISJ - Icelandic Króna (1918–1981)
    • + *
    • INR - Indian Rupee
    • + *
    • IDR - Indonesian Rupiah
    • + *
    • IRR - Iranian Rial
    • + *
    • IQD - Iraqi Dinar
    • + *
    • IEP - Irish Pound
    • + *
    • ILS - Israeli New Shekel
    • + *
    • ILP - Israeli Pound
    • + *
    • ILR - Israeli Shekel (1980–1985)
    • + *
    • ITL - Italian Lira
    • + *
    • JMD - Jamaican Dollar
    • + *
    • JPY - Japanese Yen
    • + *
    • JOD - Jordanian Dinar
    • + *
    • KZT - Kazakhstani Tenge
    • + *
    • KES - Kenyan Shilling
    • + *
    • KWD - Kuwaiti Dinar
    • + *
    • KGS - Kyrgystani Som
    • + *
    • LAK - Laotian Kip
    • + *
    • LVL - Latvian Lats
    • + *
    • LVR - Latvian Ruble
    • + *
    • LBP - Lebanese Pound
    • + *
    • LSL - Lesotho Loti
    • + *
    • LRD - Liberian Dollar
    • + *
    • LYD - Libyan Dinar
    • + *
    • LTL - Lithuanian Litas
    • + *
    • LTT - Lithuanian Talonas
    • + *
    • LUL - Luxembourg Financial Franc
    • + *
    • LUC - Luxembourgian Convertible Franc
    • + *
    • LUF - Luxembourgian Franc
    • + *
    • MOP - Macanese Pataca
    • + *
    • MKD - Macedonian Denar
    • + *
    • MKN - Macedonian Denar (1992–1993)
    • + *
    • MGA - Malagasy Ariary
    • + *
    • MGF - Malagasy Franc
    • + *
    • MWK - Malawian Kwacha
    • + *
    • MYR - Malaysian Ringgit
    • + *
    • MVR - Maldivian Rufiyaa
    • + *
    • MVP - Maldivian Rupee (1947–1981)
    • + *
    • MLF - Malian Franc
    • + *
    • MTL - Maltese Lira
    • + *
    • MTP - Maltese Pound
    • + *
    • MRU - Mauritanian Ouguiya
    • + *
    • MRO - Mauritanian Ouguiya (1973–2017)
    • + *
    • MUR - Mauritian Rupee
    • + *
    • MXV - Mexican Investment Unit
    • + *
    • MXN - Mexican Peso
    • + *
    • MXP - Mexican Silver Peso (1861–1992)
    • + *
    • MDC - Moldovan Cupon
    • + *
    • MDL - Moldovan Leu
    • + *
    • MCF - Monegasque Franc
    • + *
    • MNT - Mongolian Tugrik
    • + *
    • MAD - Moroccan Dirham
    • + *
    • MAF - Moroccan Franc
    • + *
    • MZE - Mozambican Escudo
    • + *
    • MZN - Mozambican Metical
    • + *
    • MZM - Mozambican Metical (1980–2006)
    • + *
    • MMK - Myanmar Kyat
    • + *
    • NAD - Namibian Dollar
    • + *
    • NPR - Nepalese Rupee
    • + *
    • ANG - Netherlands Antillean Guilder
    • + *
    • TWD - New Taiwan Dollar
    • + *
    • NZD - New Zealand Dollar
    • + *
    • NIO - Nicaraguan Córdoba
    • + *
    • NIC - Nicaraguan Córdoba (1988–1991)
    • + *
    • NGN - Nigerian Naira
    • + *
    • KPW - North Korean Won
    • + *
    • NOK - Norwegian Krone
    • + *
    • OMR - Omani Rial
    • + *
    • PKR - Pakistani Rupee
    • + *
    • XPD - Palladium
    • + *
    • PAB - Panamanian Balboa
    • + *
    • PGK - Papua New Guinean Kina
    • + *
    • PYG - Paraguayan Guarani
    • + *
    • PEI - Peruvian Inti
    • + *
    • PEN - Peruvian Sol
    • + *
    • PES - Peruvian Sol (1863–1965)
    • + *
    • PHP - Philippine Peso
    • + *
    • XPT - Platinum
    • + *
    • PLN - Polish Zloty
    • + *
    • PLZ - Polish Zloty (1950–1995)
    • + *
    • PTE - Portuguese Escudo
    • + *
    • GWE - Portuguese Guinea Escudo
    • + *
    • QAR - Qatari Rial
    • + *
    • XRE - RINET Funds
    • + *
    • RHD - Rhodesian Dollar
    • + *
    • RON - Romanian Leu
    • + *
    • ROL - Romanian Leu (1952–2006)
    • + *
    • RUB - Russian Ruble
    • + *
    • RUR - Russian Ruble (1991–1998)
    • + *
    • RWF - Rwandan Franc
    • + *
    • SVC - Salvadoran Colón
    • + *
    • WST - Samoan Tala
    • + *
    • SAR - Saudi Riyal
    • + *
    • RSD - Serbian Dinar
    • + *
    • CSD - Serbian Dinar (2002–2006)
    • + *
    • SCR - Seychellois Rupee
    • + *
    • SLL - Sierra Leonean Leone
    • + *
    • XAG - Silver
    • + *
    • SGD - Singapore Dollar
    • + *
    • SKK - Slovak Koruna
    • + *
    • SIT - Slovenian Tolar
    • + *
    • SBD - Solomon Islands Dollar
    • + *
    • SOS - Somali Shilling
    • + *
    • ZAR - South African Rand
    • + *
    • ZAL - South African Rand (financial)
    • + *
    • KRH - South Korean Hwan (1953–1962)
    • + *
    • KRW - South Korean Won
    • + *
    • KRO - South Korean Won (1945–1953)
    • + *
    • SSP - South Sudanese Pound
    • + *
    • SUR - Soviet Rouble
    • + *
    • ESP - Spanish Peseta
    • + *
    • ESA - Spanish Peseta (A account)
    • + *
    • ESB - Spanish Peseta (convertible account)
    • + *
    • XDR - Special Drawing Rights
    • + *
    • LKR - Sri Lankan Rupee
    • + *
    • SHP - St. Helena Pound
    • + *
    • XSU - Sucre
    • + *
    • SDD - Sudanese Dinar (1992–2007)
    • + *
    • SDG - Sudanese Pound
    • + *
    • SDP - Sudanese Pound (1957–1998)
    • + *
    • SRD - Surinamese Dollar
    • + *
    • SRG - Surinamese Guilder
    • + *
    • SZL - Swazi Lilangeni
    • + *
    • SEK - Swedish Krona
    • + *
    • CHF - Swiss Franc
    • + *
    • SYP - Syrian Pound
    • + *
    • STN - São Tomé & Príncipe Dobra
    • + *
    • STD - São Tomé & Príncipe Dobra (1977–2017)
    • + *
    • TVD - TVD
    • + *
    • TJR - Tajikistani Ruble
    • + *
    • TJS - Tajikistani Somoni
    • + *
    • TZS - Tanzanian Shilling
    • + *
    • XTS - Testing Currency Code
    • + *
    • THB - Thai Baht
    • + *
    • XXX - The codes assigned for transactions where no currency is involved
    • + *
    • TPE - Timorese Escudo
    • + *
    • TOP - Tongan Paʻanga
    • + *
    • TTD - Trinidad & Tobago Dollar
    • + *
    • TND - Tunisian Dinar
    • + *
    • TRY - Turkish Lira
    • + *
    • TRL - Turkish Lira (1922–2005)
    • + *
    • TMT - Turkmenistani Manat
    • + *
    • TMM - Turkmenistani Manat (1993–2009)
    • + *
    • USD - US Dollar
    • + *
    • USN - US Dollar (Next day)
    • + *
    • USS - US Dollar (Same day)
    • + *
    • UGX - Ugandan Shilling
    • + *
    • UGS - Ugandan Shilling (1966–1987)
    • + *
    • UAH - Ukrainian Hryvnia
    • + *
    • UAK - Ukrainian Karbovanets
    • + *
    • AED - United Arab Emirates Dirham
    • + *
    • UYW - Uruguayan Nominal Wage Index Unit
    • + *
    • UYU - Uruguayan Peso
    • + *
    • UYP - Uruguayan Peso (1975–1993)
    • + *
    • UYI - Uruguayan Peso (Indexed Units)
    • + *
    • UZS - Uzbekistani Som
    • + *
    • VUV - Vanuatu Vatu
    • + *
    • VES - Venezuelan Bolívar
    • + *
    • VEB - Venezuelan Bolívar (1871–2008)
    • + *
    • VEF - Venezuelan Bolívar (2008–2018)
    • + *
    • VND - Vietnamese Dong
    • + *
    • VNN - Vietnamese Dong (1978–1985)
    • + *
    • CHE - WIR Euro
    • + *
    • CHW - WIR Franc
    • + *
    • XOF - West African CFA Franc
    • + *
    • YDD - Yemeni Dinar
    • + *
    • YER - Yemeni Rial
    • + *
    • YUN - Yugoslavian Convertible Dinar (1990–1992)
    • + *
    • YUD - Yugoslavian Hard Dinar (1966–1990)
    • + *
    • YUM - Yugoslavian New Dinar (1994–2002)
    • + *
    • YUR - Yugoslavian Reformed Dinar (1992–1993)
    • + *
    • ZWN - ZWN
    • + *
    • ZRN - Zairean New Zaire (1993–1998)
    • + *
    • ZRZ - Zairean Zaire (1971–1993)
    • + *
    • ZMW - Zambian Kwacha
    • + *
    • ZMK - Zambian Kwacha (1968–2012)
    • + *
    • ZWD - Zimbabwean Dollar (1980–2008)
    • + *
    • ZWR - Zimbabwean Dollar (2008)
    • + *
    • ZWL - Zimbabwean Dollar (2009)
    • + *
    + */ @JsonSetter(value = "currency", nulls = Nulls.SKIP) - public Builder currency(Optional currency) { + public Builder currency(Optional currency) { this.currency = currency; return this; } - public Builder currency(TransactionCurrencyEnum currency) { + public Builder currency(PurchaseOrderRequestCurrency currency) { this.currency = Optional.ofNullable(currency); return this; } + /** + *

    If the transaction is inclusive or exclusive of tax. True if inclusive, False if exclusive.

    + */ @JsonSetter(value = "inclusive_of_tax", nulls = Nulls.SKIP) public Builder inclusiveOfTax(Optional inclusiveOfTax) { this.inclusiveOfTax = inclusiveOfTax; @@ -808,6 +1159,9 @@ public Builder inclusiveOfTax(Boolean inclusiveOfTax) { return this; } + /** + *

    The purchase order's exchange rate.

    + */ @JsonSetter(value = "exchange_rate", nulls = Nulls.SKIP) public Builder exchangeRate(Optional exchangeRate) { this.exchangeRate = exchangeRate; diff --git a/src/main/java/com/merge/api/accounting/types/PurchaseOrderRequestCurrency.java b/src/main/java/com/merge/api/accounting/types/PurchaseOrderRequestCurrency.java new file mode 100644 index 000000000..eb12088d5 --- /dev/null +++ b/src/main/java/com/merge/api/accounting/types/PurchaseOrderRequestCurrency.java @@ -0,0 +1,96 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.merge.api.accounting.types; + +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.databind.DeserializationContext; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.fasterxml.jackson.databind.deser.std.StdDeserializer; +import com.merge.api.core.ObjectMappers; +import java.io.IOException; +import java.util.Objects; + +@JsonDeserialize(using = PurchaseOrderRequestCurrency.Deserializer.class) +public final class PurchaseOrderRequestCurrency { + private final Object value; + + private final int type; + + private PurchaseOrderRequestCurrency(Object value, int type) { + this.value = value; + this.type = type; + } + + @JsonValue + public Object get() { + return this.value; + } + + @SuppressWarnings("unchecked") + public T visit(Visitor visitor) { + if (this.type == 0) { + return visitor.visit((TransactionCurrencyEnum) this.value); + } else if (this.type == 1) { + return visitor.visit((String) this.value); + } + throw new IllegalStateException("Failed to visit value. This should never happen."); + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof PurchaseOrderRequestCurrency && equalTo((PurchaseOrderRequestCurrency) other); + } + + private boolean equalTo(PurchaseOrderRequestCurrency other) { + return value.equals(other.value); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.value); + } + + @java.lang.Override + public String toString() { + return this.value.toString(); + } + + public static PurchaseOrderRequestCurrency of(TransactionCurrencyEnum value) { + return new PurchaseOrderRequestCurrency(value, 0); + } + + public static PurchaseOrderRequestCurrency of(String value) { + return new PurchaseOrderRequestCurrency(value, 1); + } + + public interface Visitor { + T visit(TransactionCurrencyEnum value); + + T visit(String value); + } + + static final class Deserializer extends StdDeserializer { + Deserializer() { + super(PurchaseOrderRequestCurrency.class); + } + + @java.lang.Override + public PurchaseOrderRequestCurrency deserialize(JsonParser p, DeserializationContext context) + throws IOException { + Object value = p.readValueAs(Object.class); + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, TransactionCurrencyEnum.class)); + } catch (IllegalArgumentException e) { + } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, String.class)); + } catch (IllegalArgumentException e) { + } + throw new JsonParseException(p, "Failed to deserialize"); + } + } +} diff --git a/src/main/java/com/merge/api/accounting/types/PurchaseOrderRequestStatus.java b/src/main/java/com/merge/api/accounting/types/PurchaseOrderRequestStatus.java new file mode 100644 index 000000000..6dde6699a --- /dev/null +++ b/src/main/java/com/merge/api/accounting/types/PurchaseOrderRequestStatus.java @@ -0,0 +1,95 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.merge.api.accounting.types; + +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.databind.DeserializationContext; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.fasterxml.jackson.databind.deser.std.StdDeserializer; +import com.merge.api.core.ObjectMappers; +import java.io.IOException; +import java.util.Objects; + +@JsonDeserialize(using = PurchaseOrderRequestStatus.Deserializer.class) +public final class PurchaseOrderRequestStatus { + private final Object value; + + private final int type; + + private PurchaseOrderRequestStatus(Object value, int type) { + this.value = value; + this.type = type; + } + + @JsonValue + public Object get() { + return this.value; + } + + @SuppressWarnings("unchecked") + public T visit(Visitor visitor) { + if (this.type == 0) { + return visitor.visit((PurchaseOrderStatusEnum) this.value); + } else if (this.type == 1) { + return visitor.visit((String) this.value); + } + throw new IllegalStateException("Failed to visit value. This should never happen."); + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof PurchaseOrderRequestStatus && equalTo((PurchaseOrderRequestStatus) other); + } + + private boolean equalTo(PurchaseOrderRequestStatus other) { + return value.equals(other.value); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.value); + } + + @java.lang.Override + public String toString() { + return this.value.toString(); + } + + public static PurchaseOrderRequestStatus of(PurchaseOrderStatusEnum value) { + return new PurchaseOrderRequestStatus(value, 0); + } + + public static PurchaseOrderRequestStatus of(String value) { + return new PurchaseOrderRequestStatus(value, 1); + } + + public interface Visitor { + T visit(PurchaseOrderStatusEnum value); + + T visit(String value); + } + + static final class Deserializer extends StdDeserializer { + Deserializer() { + super(PurchaseOrderRequestStatus.class); + } + + @java.lang.Override + public PurchaseOrderRequestStatus deserialize(JsonParser p, DeserializationContext context) throws IOException { + Object value = p.readValueAs(Object.class); + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, PurchaseOrderStatusEnum.class)); + } catch (IllegalArgumentException e) { + } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, String.class)); + } catch (IllegalArgumentException e) { + } + throw new JsonParseException(p, "Failed to deserialize"); + } + } +} diff --git a/src/main/java/com/merge/api/accounting/types/PurchaseOrderStatus.java b/src/main/java/com/merge/api/accounting/types/PurchaseOrderStatus.java new file mode 100644 index 000000000..b8b529ca0 --- /dev/null +++ b/src/main/java/com/merge/api/accounting/types/PurchaseOrderStatus.java @@ -0,0 +1,95 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.merge.api.accounting.types; + +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.databind.DeserializationContext; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.fasterxml.jackson.databind.deser.std.StdDeserializer; +import com.merge.api.core.ObjectMappers; +import java.io.IOException; +import java.util.Objects; + +@JsonDeserialize(using = PurchaseOrderStatus.Deserializer.class) +public final class PurchaseOrderStatus { + private final Object value; + + private final int type; + + private PurchaseOrderStatus(Object value, int type) { + this.value = value; + this.type = type; + } + + @JsonValue + public Object get() { + return this.value; + } + + @SuppressWarnings("unchecked") + public T visit(Visitor visitor) { + if (this.type == 0) { + return visitor.visit((PurchaseOrderStatusEnum) this.value); + } else if (this.type == 1) { + return visitor.visit((String) this.value); + } + throw new IllegalStateException("Failed to visit value. This should never happen."); + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof PurchaseOrderStatus && equalTo((PurchaseOrderStatus) other); + } + + private boolean equalTo(PurchaseOrderStatus other) { + return value.equals(other.value); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.value); + } + + @java.lang.Override + public String toString() { + return this.value.toString(); + } + + public static PurchaseOrderStatus of(PurchaseOrderStatusEnum value) { + return new PurchaseOrderStatus(value, 0); + } + + public static PurchaseOrderStatus of(String value) { + return new PurchaseOrderStatus(value, 1); + } + + public interface Visitor { + T visit(PurchaseOrderStatusEnum value); + + T visit(String value); + } + + static final class Deserializer extends StdDeserializer { + Deserializer() { + super(PurchaseOrderStatus.class); + } + + @java.lang.Override + public PurchaseOrderStatus deserialize(JsonParser p, DeserializationContext context) throws IOException { + Object value = p.readValueAs(Object.class); + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, PurchaseOrderStatusEnum.class)); + } catch (IllegalArgumentException e) { + } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, String.class)); + } catch (IllegalArgumentException e) { + } + throw new JsonParseException(p, "Failed to deserialize"); + } + } +} diff --git a/src/main/java/com/merge/api/accounting/types/PurchaseOrdersLineItemsRemoteFieldClassesListRequest.java b/src/main/java/com/merge/api/accounting/types/PurchaseOrdersLineItemsRemoteFieldClassesListRequest.java index 0af110314..0ab86e22b 100644 --- a/src/main/java/com/merge/api/accounting/types/PurchaseOrdersLineItemsRemoteFieldClassesListRequest.java +++ b/src/main/java/com/merge/api/accounting/types/PurchaseOrdersLineItemsRemoteFieldClassesListRequest.java @@ -30,6 +30,8 @@ public final class PurchaseOrdersLineItemsRemoteFieldClassesListRequest { private final Optional isCommonModelField; + private final Optional isCustom; + private final Optional pageSize; private final Map additionalProperties; @@ -40,6 +42,7 @@ private PurchaseOrdersLineItemsRemoteFieldClassesListRequest( Optional includeRemoteData, Optional includeShellData, Optional isCommonModelField, + Optional isCustom, Optional pageSize, Map additionalProperties) { this.cursor = cursor; @@ -47,6 +50,7 @@ private PurchaseOrdersLineItemsRemoteFieldClassesListRequest( this.includeRemoteData = includeRemoteData; this.includeShellData = includeShellData; this.isCommonModelField = isCommonModelField; + this.isCustom = isCustom; this.pageSize = pageSize; this.additionalProperties = additionalProperties; } @@ -91,6 +95,14 @@ public Optional getIsCommonModelField() { return isCommonModelField; } + /** + * @return If provided, will only return remote fields classes with this is_custom value + */ + @JsonProperty("is_custom") + public Optional getIsCustom() { + return isCustom; + } + /** * @return Number of results to return per page. */ @@ -117,6 +129,7 @@ private boolean equalTo(PurchaseOrdersLineItemsRemoteFieldClassesListRequest oth && includeRemoteData.equals(other.includeRemoteData) && includeShellData.equals(other.includeShellData) && isCommonModelField.equals(other.isCommonModelField) + && isCustom.equals(other.isCustom) && pageSize.equals(other.pageSize); } @@ -128,6 +141,7 @@ public int hashCode() { this.includeRemoteData, this.includeShellData, this.isCommonModelField, + this.isCustom, this.pageSize); } @@ -152,6 +166,8 @@ public static final class Builder { private Optional isCommonModelField = Optional.empty(); + private Optional isCustom = Optional.empty(); + private Optional pageSize = Optional.empty(); @JsonAnySetter @@ -165,10 +181,14 @@ public Builder from(PurchaseOrdersLineItemsRemoteFieldClassesListRequest other) includeRemoteData(other.getIncludeRemoteData()); includeShellData(other.getIncludeShellData()); isCommonModelField(other.getIsCommonModelField()); + isCustom(other.getIsCustom()); pageSize(other.getPageSize()); return this; } + /** + *

    The pagination cursor value.

    + */ @JsonSetter(value = "cursor", nulls = Nulls.SKIP) public Builder cursor(Optional cursor) { this.cursor = cursor; @@ -180,6 +200,9 @@ public Builder cursor(String cursor) { return this; } + /** + *

    Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

    + */ @JsonSetter(value = "include_deleted_data", nulls = Nulls.SKIP) public Builder includeDeletedData(Optional includeDeletedData) { this.includeDeletedData = includeDeletedData; @@ -191,6 +214,9 @@ public Builder includeDeletedData(Boolean includeDeletedData) { return this; } + /** + *

    Whether to include the original data Merge fetched from the third-party to produce these models.

    + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -202,6 +228,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

    Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

    + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; @@ -213,6 +242,9 @@ public Builder includeShellData(Boolean includeShellData) { return this; } + /** + *

    If provided, will only return remote field classes with this is_common_model_field value

    + */ @JsonSetter(value = "is_common_model_field", nulls = Nulls.SKIP) public Builder isCommonModelField(Optional isCommonModelField) { this.isCommonModelField = isCommonModelField; @@ -224,6 +256,23 @@ public Builder isCommonModelField(Boolean isCommonModelField) { return this; } + /** + *

    If provided, will only return remote fields classes with this is_custom value

    + */ + @JsonSetter(value = "is_custom", nulls = Nulls.SKIP) + public Builder isCustom(Optional isCustom) { + this.isCustom = isCustom; + return this; + } + + public Builder isCustom(Boolean isCustom) { + this.isCustom = Optional.ofNullable(isCustom); + return this; + } + + /** + *

    Number of results to return per page.

    + */ @JsonSetter(value = "page_size", nulls = Nulls.SKIP) public Builder pageSize(Optional pageSize) { this.pageSize = pageSize; @@ -242,6 +291,7 @@ public PurchaseOrdersLineItemsRemoteFieldClassesListRequest build() { includeRemoteData, includeShellData, isCommonModelField, + isCustom, pageSize, additionalProperties); } diff --git a/src/main/java/com/merge/api/accounting/types/PurchaseOrdersListRequest.java b/src/main/java/com/merge/api/accounting/types/PurchaseOrdersListRequest.java index cdfb1e703..85f19b254 100644 --- a/src/main/java/com/merge/api/accounting/types/PurchaseOrdersListRequest.java +++ b/src/main/java/com/merge/api/accounting/types/PurchaseOrdersListRequest.java @@ -358,6 +358,9 @@ public Builder from(PurchaseOrdersListRequest other) { return this; } + /** + *

    Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.

    + */ @JsonSetter(value = "expand", nulls = Nulls.SKIP) public Builder expand(Optional> expand) { this.expand = expand; @@ -374,6 +377,9 @@ public Builder expand(PurchaseOrdersListRequestExpandItem expand) { return this; } + /** + *

    If provided, will only return purchase orders for this company.

    + */ @JsonSetter(value = "company_id", nulls = Nulls.SKIP) public Builder companyId(Optional companyId) { this.companyId = companyId; @@ -385,6 +391,9 @@ public Builder companyId(String companyId) { return this; } + /** + *

    If provided, will only return objects created after this datetime.

    + */ @JsonSetter(value = "created_after", nulls = Nulls.SKIP) public Builder createdAfter(Optional createdAfter) { this.createdAfter = createdAfter; @@ -396,6 +405,9 @@ public Builder createdAfter(OffsetDateTime createdAfter) { return this; } + /** + *

    If provided, will only return objects created before this datetime.

    + */ @JsonSetter(value = "created_before", nulls = Nulls.SKIP) public Builder createdBefore(Optional createdBefore) { this.createdBefore = createdBefore; @@ -407,6 +419,9 @@ public Builder createdBefore(OffsetDateTime createdBefore) { return this; } + /** + *

    The pagination cursor value.

    + */ @JsonSetter(value = "cursor", nulls = Nulls.SKIP) public Builder cursor(Optional cursor) { this.cursor = cursor; @@ -418,6 +433,9 @@ public Builder cursor(String cursor) { return this; } + /** + *

    Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

    + */ @JsonSetter(value = "include_deleted_data", nulls = Nulls.SKIP) public Builder includeDeletedData(Optional includeDeletedData) { this.includeDeletedData = includeDeletedData; @@ -429,6 +447,9 @@ public Builder includeDeletedData(Boolean includeDeletedData) { return this; } + /** + *

    Whether to include the original data Merge fetched from the third-party to produce these models.

    + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -440,6 +461,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

    Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format.

    + */ @JsonSetter(value = "include_remote_fields", nulls = Nulls.SKIP) public Builder includeRemoteFields(Optional includeRemoteFields) { this.includeRemoteFields = includeRemoteFields; @@ -451,6 +475,9 @@ public Builder includeRemoteFields(Boolean includeRemoteFields) { return this; } + /** + *

    Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

    + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; @@ -462,6 +489,9 @@ public Builder includeShellData(Boolean includeShellData) { return this; } + /** + *

    If provided, will only return objects created after this datetime.

    + */ @JsonSetter(value = "issue_date_after", nulls = Nulls.SKIP) public Builder issueDateAfter(Optional issueDateAfter) { this.issueDateAfter = issueDateAfter; @@ -473,6 +503,9 @@ public Builder issueDateAfter(OffsetDateTime issueDateAfter) { return this; } + /** + *

    If provided, will only return objects created before this datetime.

    + */ @JsonSetter(value = "issue_date_before", nulls = Nulls.SKIP) public Builder issueDateBefore(Optional issueDateBefore) { this.issueDateBefore = issueDateBefore; @@ -484,6 +517,9 @@ public Builder issueDateBefore(OffsetDateTime issueDateBefore) { return this; } + /** + *

    If provided, only objects synced by Merge after this date time will be returned.

    + */ @JsonSetter(value = "modified_after", nulls = Nulls.SKIP) public Builder modifiedAfter(Optional modifiedAfter) { this.modifiedAfter = modifiedAfter; @@ -495,6 +531,9 @@ public Builder modifiedAfter(OffsetDateTime modifiedAfter) { return this; } + /** + *

    If provided, only objects synced by Merge before this date time will be returned.

    + */ @JsonSetter(value = "modified_before", nulls = Nulls.SKIP) public Builder modifiedBefore(Optional modifiedBefore) { this.modifiedBefore = modifiedBefore; @@ -506,6 +545,9 @@ public Builder modifiedBefore(OffsetDateTime modifiedBefore) { return this; } + /** + *

    Number of results to return per page.

    + */ @JsonSetter(value = "page_size", nulls = Nulls.SKIP) public Builder pageSize(Optional pageSize) { this.pageSize = pageSize; @@ -517,6 +559,9 @@ public Builder pageSize(Integer pageSize) { return this; } + /** + *

    Deprecated. Use show_enum_origins.

    + */ @JsonSetter(value = "remote_fields", nulls = Nulls.SKIP) public Builder remoteFields(Optional remoteFields) { this.remoteFields = remoteFields; @@ -528,6 +573,9 @@ public Builder remoteFields(String remoteFields) { return this; } + /** + *

    The API provider's ID for the given object.

    + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; @@ -539,6 +587,9 @@ public Builder remoteId(String remoteId) { return this; } + /** + *

    A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. Learn more

    + */ @JsonSetter(value = "show_enum_origins", nulls = Nulls.SKIP) public Builder showEnumOrigins(Optional showEnumOrigins) { this.showEnumOrigins = showEnumOrigins; diff --git a/src/main/java/com/merge/api/accounting/types/PurchaseOrdersRemoteFieldClassesListRequest.java b/src/main/java/com/merge/api/accounting/types/PurchaseOrdersRemoteFieldClassesListRequest.java index edd220dfb..b97aa8c73 100644 --- a/src/main/java/com/merge/api/accounting/types/PurchaseOrdersRemoteFieldClassesListRequest.java +++ b/src/main/java/com/merge/api/accounting/types/PurchaseOrdersRemoteFieldClassesListRequest.java @@ -30,6 +30,8 @@ public final class PurchaseOrdersRemoteFieldClassesListRequest { private final Optional isCommonModelField; + private final Optional isCustom; + private final Optional pageSize; private final Map additionalProperties; @@ -40,6 +42,7 @@ private PurchaseOrdersRemoteFieldClassesListRequest( Optional includeRemoteData, Optional includeShellData, Optional isCommonModelField, + Optional isCustom, Optional pageSize, Map additionalProperties) { this.cursor = cursor; @@ -47,6 +50,7 @@ private PurchaseOrdersRemoteFieldClassesListRequest( this.includeRemoteData = includeRemoteData; this.includeShellData = includeShellData; this.isCommonModelField = isCommonModelField; + this.isCustom = isCustom; this.pageSize = pageSize; this.additionalProperties = additionalProperties; } @@ -91,6 +95,14 @@ public Optional getIsCommonModelField() { return isCommonModelField; } + /** + * @return If provided, will only return remote fields classes with this is_custom value + */ + @JsonProperty("is_custom") + public Optional getIsCustom() { + return isCustom; + } + /** * @return Number of results to return per page. */ @@ -117,6 +129,7 @@ private boolean equalTo(PurchaseOrdersRemoteFieldClassesListRequest other) { && includeRemoteData.equals(other.includeRemoteData) && includeShellData.equals(other.includeShellData) && isCommonModelField.equals(other.isCommonModelField) + && isCustom.equals(other.isCustom) && pageSize.equals(other.pageSize); } @@ -128,6 +141,7 @@ public int hashCode() { this.includeRemoteData, this.includeShellData, this.isCommonModelField, + this.isCustom, this.pageSize); } @@ -152,6 +166,8 @@ public static final class Builder { private Optional isCommonModelField = Optional.empty(); + private Optional isCustom = Optional.empty(); + private Optional pageSize = Optional.empty(); @JsonAnySetter @@ -165,10 +181,14 @@ public Builder from(PurchaseOrdersRemoteFieldClassesListRequest other) { includeRemoteData(other.getIncludeRemoteData()); includeShellData(other.getIncludeShellData()); isCommonModelField(other.getIsCommonModelField()); + isCustom(other.getIsCustom()); pageSize(other.getPageSize()); return this; } + /** + *

    The pagination cursor value.

    + */ @JsonSetter(value = "cursor", nulls = Nulls.SKIP) public Builder cursor(Optional cursor) { this.cursor = cursor; @@ -180,6 +200,9 @@ public Builder cursor(String cursor) { return this; } + /** + *

    Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

    + */ @JsonSetter(value = "include_deleted_data", nulls = Nulls.SKIP) public Builder includeDeletedData(Optional includeDeletedData) { this.includeDeletedData = includeDeletedData; @@ -191,6 +214,9 @@ public Builder includeDeletedData(Boolean includeDeletedData) { return this; } + /** + *

    Whether to include the original data Merge fetched from the third-party to produce these models.

    + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -202,6 +228,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

    Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

    + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; @@ -213,6 +242,9 @@ public Builder includeShellData(Boolean includeShellData) { return this; } + /** + *

    If provided, will only return remote field classes with this is_common_model_field value

    + */ @JsonSetter(value = "is_common_model_field", nulls = Nulls.SKIP) public Builder isCommonModelField(Optional isCommonModelField) { this.isCommonModelField = isCommonModelField; @@ -224,6 +256,23 @@ public Builder isCommonModelField(Boolean isCommonModelField) { return this; } + /** + *

    If provided, will only return remote fields classes with this is_custom value

    + */ + @JsonSetter(value = "is_custom", nulls = Nulls.SKIP) + public Builder isCustom(Optional isCustom) { + this.isCustom = isCustom; + return this; + } + + public Builder isCustom(Boolean isCustom) { + this.isCustom = Optional.ofNullable(isCustom); + return this; + } + + /** + *

    Number of results to return per page.

    + */ @JsonSetter(value = "page_size", nulls = Nulls.SKIP) public Builder pageSize(Optional pageSize) { this.pageSize = pageSize; @@ -242,6 +291,7 @@ public PurchaseOrdersRemoteFieldClassesListRequest build() { includeRemoteData, includeShellData, isCommonModelField, + isCustom, pageSize, additionalProperties); } diff --git a/src/main/java/com/merge/api/accounting/types/PurchaseOrdersRetrieveRequest.java b/src/main/java/com/merge/api/accounting/types/PurchaseOrdersRetrieveRequest.java index 8735e1cfc..8ad2a16f6 100644 --- a/src/main/java/com/merge/api/accounting/types/PurchaseOrdersRetrieveRequest.java +++ b/src/main/java/com/merge/api/accounting/types/PurchaseOrdersRetrieveRequest.java @@ -170,6 +170,9 @@ public Builder from(PurchaseOrdersRetrieveRequest other) { return this; } + /** + *

    Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.

    + */ @JsonSetter(value = "expand", nulls = Nulls.SKIP) public Builder expand(Optional> expand) { this.expand = expand; @@ -186,6 +189,9 @@ public Builder expand(PurchaseOrdersRetrieveRequestExpandItem expand) { return this; } + /** + *

    Whether to include the original data Merge fetched from the third-party to produce these models.

    + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -197,6 +203,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

    Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format.

    + */ @JsonSetter(value = "include_remote_fields", nulls = Nulls.SKIP) public Builder includeRemoteFields(Optional includeRemoteFields) { this.includeRemoteFields = includeRemoteFields; @@ -208,6 +217,9 @@ public Builder includeRemoteFields(Boolean includeRemoteFields) { return this; } + /** + *

    Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

    + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; @@ -219,6 +231,9 @@ public Builder includeShellData(Boolean includeShellData) { return this; } + /** + *

    Deprecated. Use show_enum_origins.

    + */ @JsonSetter(value = "remote_fields", nulls = Nulls.SKIP) public Builder remoteFields(Optional remoteFields) { this.remoteFields = remoteFields; @@ -230,6 +245,9 @@ public Builder remoteFields(String remoteFields) { return this; } + /** + *

    A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. Learn more

    + */ @JsonSetter(value = "show_enum_origins", nulls = Nulls.SKIP) public Builder showEnumOrigins(Optional showEnumOrigins) { this.showEnumOrigins = showEnumOrigins; diff --git a/src/main/java/com/merge/api/accounting/types/RemoteData.java b/src/main/java/com/merge/api/accounting/types/RemoteData.java index 80c8aaca1..676fcbf50 100644 --- a/src/main/java/com/merge/api/accounting/types/RemoteData.java +++ b/src/main/java/com/merge/api/accounting/types/RemoteData.java @@ -77,6 +77,9 @@ public static PathStage builder() { } public interface PathStage { + /** + * The third-party API path that is being called. + */ _FinalStage path(@NotNull String path); Builder from(RemoteData other); @@ -109,7 +112,7 @@ public Builder from(RemoteData other) { } /** - *

    The third-party API path that is being called.

    + * The third-party API path that is being called.

    The third-party API path that is being called.

    * @return Reference to {@code this} so that method calls can be chained together. */ @java.lang.Override diff --git a/src/main/java/com/merge/api/accounting/types/RemoteFieldApiResponse.java b/src/main/java/com/merge/api/accounting/types/RemoteFieldApiResponse.java index 9743e6ba2..24f9d365a 100644 --- a/src/main/java/com/merge/api/accounting/types/RemoteFieldApiResponse.java +++ b/src/main/java/com/merge/api/accounting/types/RemoteFieldApiResponse.java @@ -67,6 +67,8 @@ public final class RemoteFieldApiResponse { private final Optional> paymentMethod; + private final Optional> project; + private final Optional> paymentTerm; private final Map additionalProperties; @@ -95,6 +97,7 @@ private RemoteFieldApiResponse( Optional> bankFeedAccount, Optional> employee, Optional> paymentMethod, + Optional> project, Optional> paymentTerm, Map additionalProperties) { this.account = account; @@ -120,6 +123,7 @@ private RemoteFieldApiResponse( this.bankFeedAccount = bankFeedAccount; this.employee = employee; this.paymentMethod = paymentMethod; + this.project = project; this.paymentTerm = paymentTerm; this.additionalProperties = additionalProperties; } @@ -239,6 +243,11 @@ public Optional> getPaymentMethod() { return paymentMethod; } + @JsonProperty("Project") + public Optional> getProject() { + return project; + } + @JsonProperty("PaymentTerm") public Optional> getPaymentTerm() { return paymentTerm; @@ -279,6 +288,7 @@ private boolean equalTo(RemoteFieldApiResponse other) { && bankFeedAccount.equals(other.bankFeedAccount) && employee.equals(other.employee) && paymentMethod.equals(other.paymentMethod) + && project.equals(other.project) && paymentTerm.equals(other.paymentTerm); } @@ -308,6 +318,7 @@ public int hashCode() { this.bankFeedAccount, this.employee, this.paymentMethod, + this.project, this.paymentTerm); } @@ -368,6 +379,8 @@ public static final class Builder { private Optional> paymentMethod = Optional.empty(); + private Optional> project = Optional.empty(); + private Optional> paymentTerm = Optional.empty(); @JsonAnySetter @@ -399,6 +412,7 @@ public Builder from(RemoteFieldApiResponse other) { bankFeedAccount(other.getBankFeedAccount()); employee(other.getEmployee()); paymentMethod(other.getPaymentMethod()); + project(other.getProject()); paymentTerm(other.getPaymentTerm()); return this; } @@ -656,6 +670,17 @@ public Builder paymentMethod(List paymentMethod) { return this; } + @JsonSetter(value = "Project", nulls = Nulls.SKIP) + public Builder project(Optional> project) { + this.project = project; + return this; + } + + public Builder project(List project) { + this.project = Optional.ofNullable(project); + return this; + } + @JsonSetter(value = "PaymentTerm", nulls = Nulls.SKIP) public Builder paymentTerm(Optional> paymentTerm) { this.paymentTerm = paymentTerm; @@ -692,6 +717,7 @@ public RemoteFieldApiResponse build() { bankFeedAccount, employee, paymentMethod, + project, paymentTerm, additionalProperties); } diff --git a/src/main/java/com/merge/api/accounting/types/RemoteFieldsRetrieveRequest.java b/src/main/java/com/merge/api/accounting/types/RemoteFieldsRetrieveRequest.java index d5ccbfdee..3b0e7f9b5 100644 --- a/src/main/java/com/merge/api/accounting/types/RemoteFieldsRetrieveRequest.java +++ b/src/main/java/com/merge/api/accounting/types/RemoteFieldsRetrieveRequest.java @@ -97,6 +97,9 @@ public Builder from(RemoteFieldsRetrieveRequest other) { return this; } + /** + *

    A comma seperated list of Common Model names. If included, will only return Remote Fields for those Common Models.

    + */ @JsonSetter(value = "common_models", nulls = Nulls.SKIP) public Builder commonModels(Optional commonModels) { this.commonModels = commonModels; @@ -108,6 +111,9 @@ public Builder commonModels(String commonModels) { return this; } + /** + *

    If true, will include example values, where available, for remote fields in the 3rd party platform. These examples come from active data from your customers.

    + */ @JsonSetter(value = "include_example_values", nulls = Nulls.SKIP) public Builder includeExampleValues(Optional includeExampleValues) { this.includeExampleValues = includeExampleValues; diff --git a/src/main/java/com/merge/api/accounting/types/RemoteKeyForRegenerationRequest.java b/src/main/java/com/merge/api/accounting/types/RemoteKeyForRegenerationRequest.java index 2e9c0d510..ab18303d4 100644 --- a/src/main/java/com/merge/api/accounting/types/RemoteKeyForRegenerationRequest.java +++ b/src/main/java/com/merge/api/accounting/types/RemoteKeyForRegenerationRequest.java @@ -66,6 +66,9 @@ public static NameStage builder() { } public interface NameStage { + /** + * The name of the remote key + */ _FinalStage name(@NotNull String name); Builder from(RemoteKeyForRegenerationRequest other); @@ -91,7 +94,7 @@ public Builder from(RemoteKeyForRegenerationRequest other) { } /** - *

    The name of the remote key

    + * The name of the remote key

    The name of the remote key

    * @return Reference to {@code this} so that method calls can be chained together. */ @java.lang.Override diff --git a/src/main/java/com/merge/api/accounting/types/ReportItem.java b/src/main/java/com/merge/api/accounting/types/ReportItem.java index 8d9373165..2bb3861b5 100644 --- a/src/main/java/com/merge/api/accounting/types/ReportItem.java +++ b/src/main/java/com/merge/api/accounting/types/ReportItem.java @@ -202,6 +202,9 @@ public Builder from(ReportItem other) { return this; } + /** + *

    The third-party API ID of the matching object.

    + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; @@ -213,6 +216,9 @@ public Builder remoteId(String remoteId) { return this; } + /** + *

    The datetime that this object was created by Merge.

    + */ @JsonSetter(value = "created_at", nulls = Nulls.SKIP) public Builder createdAt(Optional createdAt) { this.createdAt = createdAt; @@ -224,6 +230,9 @@ public Builder createdAt(OffsetDateTime createdAt) { return this; } + /** + *

    The datetime that this object was modified by Merge.

    + */ @JsonSetter(value = "modified_at", nulls = Nulls.SKIP) public Builder modifiedAt(Optional modifiedAt) { this.modifiedAt = modifiedAt; @@ -235,6 +244,9 @@ public Builder modifiedAt(OffsetDateTime modifiedAt) { return this; } + /** + *

    The report item's name.

    + */ @JsonSetter(value = "name", nulls = Nulls.SKIP) public Builder name(Optional name) { this.name = name; @@ -246,6 +258,9 @@ public Builder name(String name) { return this; } + /** + *

    The report item's value.

    + */ @JsonSetter(value = "value", nulls = Nulls.SKIP) public Builder value(Optional value) { this.value = value; @@ -268,6 +283,9 @@ public Builder subItems(List> subItems) { return this; } + /** + *

    The company the report item belongs to.

    + */ @JsonSetter(value = "company", nulls = Nulls.SKIP) public Builder company(Optional company) { this.company = company; @@ -279,6 +297,9 @@ public Builder company(String company) { return this; } + /** + *

    Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

    + */ @JsonSetter(value = "remote_was_deleted", nulls = Nulls.SKIP) public Builder remoteWasDeleted(Optional remoteWasDeleted) { this.remoteWasDeleted = remoteWasDeleted; diff --git a/src/main/java/com/merge/api/accounting/types/SyncStatusListRequest.java b/src/main/java/com/merge/api/accounting/types/SyncStatusListRequest.java index 1975f081a..e95623702 100644 --- a/src/main/java/com/merge/api/accounting/types/SyncStatusListRequest.java +++ b/src/main/java/com/merge/api/accounting/types/SyncStatusListRequest.java @@ -95,6 +95,9 @@ public Builder from(SyncStatusListRequest other) { return this; } + /** + *

    The pagination cursor value.

    + */ @JsonSetter(value = "cursor", nulls = Nulls.SKIP) public Builder cursor(Optional cursor) { this.cursor = cursor; @@ -106,6 +109,9 @@ public Builder cursor(String cursor) { return this; } + /** + *

    Number of results to return per page.

    + */ @JsonSetter(value = "page_size", nulls = Nulls.SKIP) public Builder pageSize(Optional pageSize) { this.pageSize = pageSize; diff --git a/src/main/java/com/merge/api/accounting/types/TaxComponent.java b/src/main/java/com/merge/api/accounting/types/TaxComponent.java index 6ebec07fc..c5acb10a0 100644 --- a/src/main/java/com/merge/api/accounting/types/TaxComponent.java +++ b/src/main/java/com/merge/api/accounting/types/TaxComponent.java @@ -35,7 +35,7 @@ public final class TaxComponent { private final Optional isCompound; - private final Optional componentType; + private final Optional componentType; private final Optional remoteWasDeleted; @@ -49,7 +49,7 @@ private TaxComponent( Optional name, Optional rate, Optional isCompound, - Optional componentType, + Optional componentType, Optional remoteWasDeleted, Map additionalProperties) { this.id = id; @@ -125,7 +125,7 @@ public Optional getIsCompound() { * */ @JsonProperty("component_type") - public Optional getComponentType() { + public Optional getComponentType() { return componentType; } @@ -199,7 +199,7 @@ public static final class Builder { private Optional isCompound = Optional.empty(); - private Optional componentType = Optional.empty(); + private Optional componentType = Optional.empty(); private Optional remoteWasDeleted = Optional.empty(); @@ -232,6 +232,9 @@ public Builder id(String id) { return this; } + /** + *

    The third-party API ID of the matching object.

    + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; @@ -243,6 +246,9 @@ public Builder remoteId(String remoteId) { return this; } + /** + *

    The datetime that this object was created by Merge.

    + */ @JsonSetter(value = "created_at", nulls = Nulls.SKIP) public Builder createdAt(Optional createdAt) { this.createdAt = createdAt; @@ -254,6 +260,9 @@ public Builder createdAt(OffsetDateTime createdAt) { return this; } + /** + *

    The datetime that this object was modified by Merge.

    + */ @JsonSetter(value = "modified_at", nulls = Nulls.SKIP) public Builder modifiedAt(Optional modifiedAt) { this.modifiedAt = modifiedAt; @@ -265,6 +274,9 @@ public Builder modifiedAt(OffsetDateTime modifiedAt) { return this; } + /** + *

    The tax rate’s name.

    + */ @JsonSetter(value = "name", nulls = Nulls.SKIP) public Builder name(Optional name) { this.name = name; @@ -276,6 +288,9 @@ public Builder name(String name) { return this; } + /** + *

    The tax component’s rate.

    + */ @JsonSetter(value = "rate", nulls = Nulls.SKIP) public Builder rate(Optional rate) { this.rate = rate; @@ -287,6 +302,9 @@ public Builder rate(String rate) { return this; } + /** + *

    Returns True if the tax component is compound, False if not.

    + */ @JsonSetter(value = "is_compound", nulls = Nulls.SKIP) public Builder isCompound(Optional isCompound) { this.isCompound = isCompound; @@ -298,17 +316,27 @@ public Builder isCompound(Boolean isCompound) { return this; } + /** + *

    Returns PURCHASE if the tax component corresponds to a purchase tax or SALES if the tax component corresponds to a sales tax.

    + *
      + *
    • SALES - SALES
    • + *
    • PURCHASE - PURCHASE
    • + *
    + */ @JsonSetter(value = "component_type", nulls = Nulls.SKIP) - public Builder componentType(Optional componentType) { + public Builder componentType(Optional componentType) { this.componentType = componentType; return this; } - public Builder componentType(ComponentTypeEnum componentType) { + public Builder componentType(TaxComponentComponentType componentType) { this.componentType = Optional.ofNullable(componentType); return this; } + /** + *

    Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

    + */ @JsonSetter(value = "remote_was_deleted", nulls = Nulls.SKIP) public Builder remoteWasDeleted(Optional remoteWasDeleted) { this.remoteWasDeleted = remoteWasDeleted; diff --git a/src/main/java/com/merge/api/accounting/types/TaxComponentComponentType.java b/src/main/java/com/merge/api/accounting/types/TaxComponentComponentType.java new file mode 100644 index 000000000..f5e5859f3 --- /dev/null +++ b/src/main/java/com/merge/api/accounting/types/TaxComponentComponentType.java @@ -0,0 +1,95 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.merge.api.accounting.types; + +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.databind.DeserializationContext; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.fasterxml.jackson.databind.deser.std.StdDeserializer; +import com.merge.api.core.ObjectMappers; +import java.io.IOException; +import java.util.Objects; + +@JsonDeserialize(using = TaxComponentComponentType.Deserializer.class) +public final class TaxComponentComponentType { + private final Object value; + + private final int type; + + private TaxComponentComponentType(Object value, int type) { + this.value = value; + this.type = type; + } + + @JsonValue + public Object get() { + return this.value; + } + + @SuppressWarnings("unchecked") + public T visit(Visitor visitor) { + if (this.type == 0) { + return visitor.visit((ComponentTypeEnum) this.value); + } else if (this.type == 1) { + return visitor.visit((String) this.value); + } + throw new IllegalStateException("Failed to visit value. This should never happen."); + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof TaxComponentComponentType && equalTo((TaxComponentComponentType) other); + } + + private boolean equalTo(TaxComponentComponentType other) { + return value.equals(other.value); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.value); + } + + @java.lang.Override + public String toString() { + return this.value.toString(); + } + + public static TaxComponentComponentType of(ComponentTypeEnum value) { + return new TaxComponentComponentType(value, 0); + } + + public static TaxComponentComponentType of(String value) { + return new TaxComponentComponentType(value, 1); + } + + public interface Visitor { + T visit(ComponentTypeEnum value); + + T visit(String value); + } + + static final class Deserializer extends StdDeserializer { + Deserializer() { + super(TaxComponentComponentType.class); + } + + @java.lang.Override + public TaxComponentComponentType deserialize(JsonParser p, DeserializationContext context) throws IOException { + Object value = p.readValueAs(Object.class); + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, ComponentTypeEnum.class)); + } catch (IllegalArgumentException e) { + } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, String.class)); + } catch (IllegalArgumentException e) { + } + throw new JsonParseException(p, "Failed to deserialize"); + } + } +} diff --git a/src/main/java/com/merge/api/accounting/types/TaxRate.java b/src/main/java/com/merge/api/accounting/types/TaxRate.java index e36a65bfc..f40bc1482 100644 --- a/src/main/java/com/merge/api/accounting/types/TaxRate.java +++ b/src/main/java/com/merge/api/accounting/types/TaxRate.java @@ -39,7 +39,7 @@ public final class TaxRate { private final Optional description; - private final Optional status; + private final Optional status; private final Optional country; @@ -66,7 +66,7 @@ private TaxRate( Optional code, Optional name, Optional description, - Optional status, + Optional status, Optional country, Optional totalTaxRate, Optional effectiveTaxRate, @@ -163,7 +163,7 @@ public Optional getDescription() { * */ @JsonProperty("status") - public Optional getStatus() { + public Optional getStatus() { return status; } @@ -295,7 +295,7 @@ public static final class Builder { private Optional description = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); private Optional country = Optional.empty(); @@ -347,6 +347,9 @@ public Builder id(String id) { return this; } + /** + *

    The third-party API ID of the matching object.

    + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; @@ -358,6 +361,9 @@ public Builder remoteId(String remoteId) { return this; } + /** + *

    The datetime that this object was created by Merge.

    + */ @JsonSetter(value = "created_at", nulls = Nulls.SKIP) public Builder createdAt(Optional createdAt) { this.createdAt = createdAt; @@ -369,6 +375,9 @@ public Builder createdAt(OffsetDateTime createdAt) { return this; } + /** + *

    The datetime that this object was modified by Merge.

    + */ @JsonSetter(value = "modified_at", nulls = Nulls.SKIP) public Builder modifiedAt(Optional modifiedAt) { this.modifiedAt = modifiedAt; @@ -380,6 +389,9 @@ public Builder modifiedAt(OffsetDateTime modifiedAt) { return this; } + /** + *

    The subsidiary that the tax rate belongs to (in the case of multi-entity systems).

    + */ @JsonSetter(value = "company", nulls = Nulls.SKIP) public Builder company(Optional company) { this.company = company; @@ -391,6 +403,9 @@ public Builder company(TaxRateCompany company) { return this; } + /** + *

    The tax code associated with this tax rate or group of tax rates from the third-party platform.

    + */ @JsonSetter(value = "code", nulls = Nulls.SKIP) public Builder code(Optional code) { this.code = code; @@ -402,6 +417,9 @@ public Builder code(String code) { return this; } + /** + *

    The tax rate’s name.

    + */ @JsonSetter(value = "name", nulls = Nulls.SKIP) public Builder name(Optional name) { this.name = name; @@ -413,6 +431,9 @@ public Builder name(String name) { return this; } + /** + *

    The tax rate's description.

    + */ @JsonSetter(value = "description", nulls = Nulls.SKIP) public Builder description(Optional description) { this.description = description; @@ -424,17 +445,27 @@ public Builder description(String description) { return this; } + /** + *

    The tax rate’s status - ACTIVE if an active tax rate, ARCHIVED if not active.

    + *
      + *
    • ACTIVE - ACTIVE
    • + *
    • ARCHIVED - ARCHIVED
    • + *
    + */ @JsonSetter(value = "status", nulls = Nulls.SKIP) - public Builder status(Optional status) { + public Builder status(Optional status) { this.status = status; return this; } - public Builder status(Status7D1Enum status) { + public Builder status(TaxRateStatus status) { this.status = Optional.ofNullable(status); return this; } + /** + *

    The country the tax rate is associated with.

    + */ @JsonSetter(value = "country", nulls = Nulls.SKIP) public Builder country(Optional country) { this.country = country; @@ -446,6 +477,9 @@ public Builder country(String country) { return this; } + /** + *

    The tax’s total tax rate - sum of the tax components (not compounded).

    + */ @JsonSetter(value = "total_tax_rate", nulls = Nulls.SKIP) public Builder totalTaxRate(Optional totalTaxRate) { this.totalTaxRate = totalTaxRate; @@ -457,6 +491,9 @@ public Builder totalTaxRate(Double totalTaxRate) { return this; } + /** + *

    The tax rate’s effective tax rate - total amount of tax with compounding.

    + */ @JsonSetter(value = "effective_tax_rate", nulls = Nulls.SKIP) public Builder effectiveTaxRate(Optional effectiveTaxRate) { this.effectiveTaxRate = effectiveTaxRate; @@ -468,6 +505,9 @@ public Builder effectiveTaxRate(Double effectiveTaxRate) { return this; } + /** + *

    The related tax components of the tax rate.

    + */ @JsonSetter(value = "tax_components", nulls = Nulls.SKIP) public Builder taxComponents(Optional> taxComponents) { this.taxComponents = taxComponents; @@ -479,6 +519,9 @@ public Builder taxComponents(List taxComponents) { return this; } + /** + *

    Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

    + */ @JsonSetter(value = "remote_was_deleted", nulls = Nulls.SKIP) public Builder remoteWasDeleted(Optional remoteWasDeleted) { this.remoteWasDeleted = remoteWasDeleted; diff --git a/src/main/java/com/merge/api/accounting/types/TaxRateStatus.java b/src/main/java/com/merge/api/accounting/types/TaxRateStatus.java new file mode 100644 index 000000000..353bc0869 --- /dev/null +++ b/src/main/java/com/merge/api/accounting/types/TaxRateStatus.java @@ -0,0 +1,95 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.merge.api.accounting.types; + +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.databind.DeserializationContext; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.fasterxml.jackson.databind.deser.std.StdDeserializer; +import com.merge.api.core.ObjectMappers; +import java.io.IOException; +import java.util.Objects; + +@JsonDeserialize(using = TaxRateStatus.Deserializer.class) +public final class TaxRateStatus { + private final Object value; + + private final int type; + + private TaxRateStatus(Object value, int type) { + this.value = value; + this.type = type; + } + + @JsonValue + public Object get() { + return this.value; + } + + @SuppressWarnings("unchecked") + public T visit(Visitor visitor) { + if (this.type == 0) { + return visitor.visit((Status7D1Enum) this.value); + } else if (this.type == 1) { + return visitor.visit((String) this.value); + } + throw new IllegalStateException("Failed to visit value. This should never happen."); + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof TaxRateStatus && equalTo((TaxRateStatus) other); + } + + private boolean equalTo(TaxRateStatus other) { + return value.equals(other.value); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.value); + } + + @java.lang.Override + public String toString() { + return this.value.toString(); + } + + public static TaxRateStatus of(Status7D1Enum value) { + return new TaxRateStatus(value, 0); + } + + public static TaxRateStatus of(String value) { + return new TaxRateStatus(value, 1); + } + + public interface Visitor { + T visit(Status7D1Enum value); + + T visit(String value); + } + + static final class Deserializer extends StdDeserializer { + Deserializer() { + super(TaxRateStatus.class); + } + + @java.lang.Override + public TaxRateStatus deserialize(JsonParser p, DeserializationContext context) throws IOException { + Object value = p.readValueAs(Object.class); + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, Status7D1Enum.class)); + } catch (IllegalArgumentException e) { + } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, String.class)); + } catch (IllegalArgumentException e) { + } + throw new JsonParseException(p, "Failed to deserialize"); + } + } +} diff --git a/src/main/java/com/merge/api/accounting/types/TaxRatesListRequest.java b/src/main/java/com/merge/api/accounting/types/TaxRatesListRequest.java index 4cac573f2..8a2a3f07c 100644 --- a/src/main/java/com/merge/api/accounting/types/TaxRatesListRequest.java +++ b/src/main/java/com/merge/api/accounting/types/TaxRatesListRequest.java @@ -290,6 +290,9 @@ public Builder from(TaxRatesListRequest other) { return this; } + /** + *

    Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.

    + */ @JsonSetter(value = "expand", nulls = Nulls.SKIP) public Builder expand(Optional> expand) { this.expand = expand; @@ -306,6 +309,9 @@ public Builder expand(String expand) { return this; } + /** + *

    If provided, will only return tax rates for this company.

    + */ @JsonSetter(value = "company_id", nulls = Nulls.SKIP) public Builder companyId(Optional companyId) { this.companyId = companyId; @@ -317,6 +323,9 @@ public Builder companyId(String companyId) { return this; } + /** + *

    If provided, will only return objects created after this datetime.

    + */ @JsonSetter(value = "created_after", nulls = Nulls.SKIP) public Builder createdAfter(Optional createdAfter) { this.createdAfter = createdAfter; @@ -328,6 +337,9 @@ public Builder createdAfter(OffsetDateTime createdAfter) { return this; } + /** + *

    If provided, will only return objects created before this datetime.

    + */ @JsonSetter(value = "created_before", nulls = Nulls.SKIP) public Builder createdBefore(Optional createdBefore) { this.createdBefore = createdBefore; @@ -339,6 +351,9 @@ public Builder createdBefore(OffsetDateTime createdBefore) { return this; } + /** + *

    The pagination cursor value.

    + */ @JsonSetter(value = "cursor", nulls = Nulls.SKIP) public Builder cursor(Optional cursor) { this.cursor = cursor; @@ -350,6 +365,9 @@ public Builder cursor(String cursor) { return this; } + /** + *

    Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

    + */ @JsonSetter(value = "include_deleted_data", nulls = Nulls.SKIP) public Builder includeDeletedData(Optional includeDeletedData) { this.includeDeletedData = includeDeletedData; @@ -361,6 +379,9 @@ public Builder includeDeletedData(Boolean includeDeletedData) { return this; } + /** + *

    Whether to include the original data Merge fetched from the third-party to produce these models.

    + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -372,6 +393,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

    Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

    + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; @@ -383,6 +407,9 @@ public Builder includeShellData(Boolean includeShellData) { return this; } + /** + *

    If provided, only objects synced by Merge after this date time will be returned.

    + */ @JsonSetter(value = "modified_after", nulls = Nulls.SKIP) public Builder modifiedAfter(Optional modifiedAfter) { this.modifiedAfter = modifiedAfter; @@ -394,6 +421,9 @@ public Builder modifiedAfter(OffsetDateTime modifiedAfter) { return this; } + /** + *

    If provided, only objects synced by Merge before this date time will be returned.

    + */ @JsonSetter(value = "modified_before", nulls = Nulls.SKIP) public Builder modifiedBefore(Optional modifiedBefore) { this.modifiedBefore = modifiedBefore; @@ -405,6 +435,9 @@ public Builder modifiedBefore(OffsetDateTime modifiedBefore) { return this; } + /** + *

    If provided, will only return TaxRates with this name.

    + */ @JsonSetter(value = "name", nulls = Nulls.SKIP) public Builder name(Optional name) { this.name = name; @@ -416,6 +449,9 @@ public Builder name(String name) { return this; } + /** + *

    Number of results to return per page.

    + */ @JsonSetter(value = "page_size", nulls = Nulls.SKIP) public Builder pageSize(Optional pageSize) { this.pageSize = pageSize; @@ -427,6 +463,9 @@ public Builder pageSize(Integer pageSize) { return this; } + /** + *

    The API provider's ID for the given object.

    + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; diff --git a/src/main/java/com/merge/api/accounting/types/TaxRatesRetrieveRequest.java b/src/main/java/com/merge/api/accounting/types/TaxRatesRetrieveRequest.java index bc83a4034..d3c34015e 100644 --- a/src/main/java/com/merge/api/accounting/types/TaxRatesRetrieveRequest.java +++ b/src/main/java/com/merge/api/accounting/types/TaxRatesRetrieveRequest.java @@ -116,6 +116,9 @@ public Builder from(TaxRatesRetrieveRequest other) { return this; } + /** + *

    Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.

    + */ @JsonSetter(value = "expand", nulls = Nulls.SKIP) public Builder expand(Optional> expand) { this.expand = expand; @@ -132,6 +135,9 @@ public Builder expand(String expand) { return this; } + /** + *

    Whether to include the original data Merge fetched from the third-party to produce these models.

    + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -143,6 +149,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

    Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

    + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; diff --git a/src/main/java/com/merge/api/accounting/types/TrackingCategoriesListRequest.java b/src/main/java/com/merge/api/accounting/types/TrackingCategoriesListRequest.java index c4dd18b32..6718e4246 100644 --- a/src/main/java/com/merge/api/accounting/types/TrackingCategoriesListRequest.java +++ b/src/main/java/com/merge/api/accounting/types/TrackingCategoriesListRequest.java @@ -187,7 +187,7 @@ public Optional getModifiedBefore() { } /** - * @return If provided, will only return TrackingCategories with this name. + * @return If provided, will only return tracking categories with this name. */ @JsonProperty("name") public Optional getName() { @@ -358,6 +358,9 @@ public Builder from(TrackingCategoriesListRequest other) { return this; } + /** + *

    Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.

    + */ @JsonSetter(value = "expand", nulls = Nulls.SKIP) public Builder expand(Optional> expand) { this.expand = expand; @@ -374,6 +377,9 @@ public Builder expand(String expand) { return this; } + /** + *

    If provided, will only return tracking categories with this type.

    + */ @JsonSetter(value = "category_type", nulls = Nulls.SKIP) public Builder categoryType(Optional categoryType) { this.categoryType = categoryType; @@ -385,6 +391,9 @@ public Builder categoryType(String categoryType) { return this; } + /** + *

    If provided, will only return tracking categories for this company.

    + */ @JsonSetter(value = "company_id", nulls = Nulls.SKIP) public Builder companyId(Optional companyId) { this.companyId = companyId; @@ -396,6 +405,9 @@ public Builder companyId(String companyId) { return this; } + /** + *

    If provided, will only return objects created after this datetime.

    + */ @JsonSetter(value = "created_after", nulls = Nulls.SKIP) public Builder createdAfter(Optional createdAfter) { this.createdAfter = createdAfter; @@ -407,6 +419,9 @@ public Builder createdAfter(OffsetDateTime createdAfter) { return this; } + /** + *

    If provided, will only return objects created before this datetime.

    + */ @JsonSetter(value = "created_before", nulls = Nulls.SKIP) public Builder createdBefore(Optional createdBefore) { this.createdBefore = createdBefore; @@ -418,6 +433,9 @@ public Builder createdBefore(OffsetDateTime createdBefore) { return this; } + /** + *

    The pagination cursor value.

    + */ @JsonSetter(value = "cursor", nulls = Nulls.SKIP) public Builder cursor(Optional cursor) { this.cursor = cursor; @@ -429,6 +447,9 @@ public Builder cursor(String cursor) { return this; } + /** + *

    Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

    + */ @JsonSetter(value = "include_deleted_data", nulls = Nulls.SKIP) public Builder includeDeletedData(Optional includeDeletedData) { this.includeDeletedData = includeDeletedData; @@ -440,6 +461,9 @@ public Builder includeDeletedData(Boolean includeDeletedData) { return this; } + /** + *

    Whether to include the original data Merge fetched from the third-party to produce these models.

    + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -451,6 +475,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

    Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

    + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; @@ -462,6 +489,9 @@ public Builder includeShellData(Boolean includeShellData) { return this; } + /** + *

    If provided, only objects synced by Merge after this date time will be returned.

    + */ @JsonSetter(value = "modified_after", nulls = Nulls.SKIP) public Builder modifiedAfter(Optional modifiedAfter) { this.modifiedAfter = modifiedAfter; @@ -473,6 +503,9 @@ public Builder modifiedAfter(OffsetDateTime modifiedAfter) { return this; } + /** + *

    If provided, only objects synced by Merge before this date time will be returned.

    + */ @JsonSetter(value = "modified_before", nulls = Nulls.SKIP) public Builder modifiedBefore(Optional modifiedBefore) { this.modifiedBefore = modifiedBefore; @@ -484,6 +517,9 @@ public Builder modifiedBefore(OffsetDateTime modifiedBefore) { return this; } + /** + *

    If provided, will only return tracking categories with this name.

    + */ @JsonSetter(value = "name", nulls = Nulls.SKIP) public Builder name(Optional name) { this.name = name; @@ -495,6 +531,9 @@ public Builder name(String name) { return this; } + /** + *

    Number of results to return per page.

    + */ @JsonSetter(value = "page_size", nulls = Nulls.SKIP) public Builder pageSize(Optional pageSize) { this.pageSize = pageSize; @@ -506,6 +545,9 @@ public Builder pageSize(Integer pageSize) { return this; } + /** + *

    Deprecated. Use show_enum_origins.

    + */ @JsonSetter(value = "remote_fields", nulls = Nulls.SKIP) public Builder remoteFields(Optional remoteFields) { this.remoteFields = remoteFields; @@ -517,6 +559,9 @@ public Builder remoteFields(String remoteFields) { return this; } + /** + *

    The API provider's ID for the given object.

    + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; @@ -528,6 +573,9 @@ public Builder remoteId(String remoteId) { return this; } + /** + *

    A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. Learn more

    + */ @JsonSetter(value = "show_enum_origins", nulls = Nulls.SKIP) public Builder showEnumOrigins(Optional showEnumOrigins) { this.showEnumOrigins = showEnumOrigins; @@ -539,6 +587,9 @@ public Builder showEnumOrigins(String showEnumOrigins) { return this; } + /** + *

    If provided, will only return tracking categories with this status.

    + */ @JsonSetter(value = "status", nulls = Nulls.SKIP) public Builder status(Optional status) { this.status = status; diff --git a/src/main/java/com/merge/api/accounting/types/TrackingCategoriesRetrieveRequest.java b/src/main/java/com/merge/api/accounting/types/TrackingCategoriesRetrieveRequest.java index f720a03c3..5074a9189 100644 --- a/src/main/java/com/merge/api/accounting/types/TrackingCategoriesRetrieveRequest.java +++ b/src/main/java/com/merge/api/accounting/types/TrackingCategoriesRetrieveRequest.java @@ -149,6 +149,9 @@ public Builder from(TrackingCategoriesRetrieveRequest other) { return this; } + /** + *

    Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.

    + */ @JsonSetter(value = "expand", nulls = Nulls.SKIP) public Builder expand(Optional> expand) { this.expand = expand; @@ -165,6 +168,9 @@ public Builder expand(String expand) { return this; } + /** + *

    Whether to include the original data Merge fetched from the third-party to produce these models.

    + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -176,6 +182,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

    Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

    + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; @@ -187,6 +196,9 @@ public Builder includeShellData(Boolean includeShellData) { return this; } + /** + *

    Deprecated. Use show_enum_origins.

    + */ @JsonSetter(value = "remote_fields", nulls = Nulls.SKIP) public Builder remoteFields(Optional remoteFields) { this.remoteFields = remoteFields; @@ -198,6 +210,9 @@ public Builder remoteFields(String remoteFields) { return this; } + /** + *

    A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. Learn more

    + */ @JsonSetter(value = "show_enum_origins", nulls = Nulls.SKIP) public Builder showEnumOrigins(Optional showEnumOrigins) { this.showEnumOrigins = showEnumOrigins; diff --git a/src/main/java/com/merge/api/accounting/types/TrackingCategory.java b/src/main/java/com/merge/api/accounting/types/TrackingCategory.java index b54d7995e..595e44f3f 100644 --- a/src/main/java/com/merge/api/accounting/types/TrackingCategory.java +++ b/src/main/java/com/merge/api/accounting/types/TrackingCategory.java @@ -32,9 +32,9 @@ public final class TrackingCategory { private final Optional name; - private final Optional status; + private final Optional status; - private final Optional categoryType; + private final Optional categoryType; private final Optional parentCategory; @@ -52,8 +52,8 @@ private TrackingCategory( Optional createdAt, Optional modifiedAt, Optional name, - Optional status, - Optional categoryType, + Optional status, + Optional categoryType, Optional parentCategory, Optional company, Optional remoteWasDeleted, @@ -118,7 +118,7 @@ public Optional getName() { * */ @JsonProperty("status") - public Optional getStatus() { + public Optional getStatus() { return status; } @@ -130,7 +130,7 @@ public Optional getStatus() { * */ @JsonProperty("category_type") - public Optional getCategoryType() { + public Optional getCategoryType() { return categoryType; } @@ -222,9 +222,9 @@ public static final class Builder { private Optional name = Optional.empty(); - private Optional status = Optional.empty(); + private Optional status = Optional.empty(); - private Optional categoryType = Optional.empty(); + private Optional categoryType = Optional.empty(); private Optional parentCategory = Optional.empty(); @@ -265,6 +265,9 @@ public Builder id(String id) { return this; } + /** + *

    The third-party API ID of the matching object.

    + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; @@ -276,6 +279,9 @@ public Builder remoteId(String remoteId) { return this; } + /** + *

    The datetime that this object was created by Merge.

    + */ @JsonSetter(value = "created_at", nulls = Nulls.SKIP) public Builder createdAt(Optional createdAt) { this.createdAt = createdAt; @@ -287,6 +293,9 @@ public Builder createdAt(OffsetDateTime createdAt) { return this; } + /** + *

    The datetime that this object was modified by Merge.

    + */ @JsonSetter(value = "modified_at", nulls = Nulls.SKIP) public Builder modifiedAt(Optional modifiedAt) { this.modifiedAt = modifiedAt; @@ -298,6 +307,9 @@ public Builder modifiedAt(OffsetDateTime modifiedAt) { return this; } + /** + *

    The tracking category's name.

    + */ @JsonSetter(value = "name", nulls = Nulls.SKIP) public Builder name(Optional name) { this.name = name; @@ -309,24 +321,38 @@ public Builder name(String name) { return this; } + /** + *

    The tracking category's status.

    + *
      + *
    • ACTIVE - ACTIVE
    • + *
    • ARCHIVED - ARCHIVED
    • + *
    + */ @JsonSetter(value = "status", nulls = Nulls.SKIP) - public Builder status(Optional status) { + public Builder status(Optional status) { this.status = status; return this; } - public Builder status(Status7D1Enum status) { + public Builder status(TrackingCategoryStatus status) { this.status = Optional.ofNullable(status); return this; } + /** + *

    The tracking category’s type.

    + *
      + *
    • CLASS - CLASS
    • + *
    • DEPARTMENT - DEPARTMENT
    • + *
    + */ @JsonSetter(value = "category_type", nulls = Nulls.SKIP) - public Builder categoryType(Optional categoryType) { + public Builder categoryType(Optional categoryType) { this.categoryType = categoryType; return this; } - public Builder categoryType(CategoryTypeEnum categoryType) { + public Builder categoryType(TrackingCategoryCategoryType categoryType) { this.categoryType = Optional.ofNullable(categoryType); return this; } @@ -342,6 +368,9 @@ public Builder parentCategory(String parentCategory) { return this; } + /** + *

    The company the GeneralLedgerTransaction belongs to.

    + */ @JsonSetter(value = "company", nulls = Nulls.SKIP) public Builder company(Optional company) { this.company = company; @@ -353,6 +382,9 @@ public Builder company(TrackingCategoryCompany company) { return this; } + /** + *

    Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

    + */ @JsonSetter(value = "remote_was_deleted", nulls = Nulls.SKIP) public Builder remoteWasDeleted(Optional remoteWasDeleted) { this.remoteWasDeleted = remoteWasDeleted; diff --git a/src/main/java/com/merge/api/accounting/types/TrackingCategoryCategoryType.java b/src/main/java/com/merge/api/accounting/types/TrackingCategoryCategoryType.java new file mode 100644 index 000000000..a29eefb32 --- /dev/null +++ b/src/main/java/com/merge/api/accounting/types/TrackingCategoryCategoryType.java @@ -0,0 +1,96 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.merge.api.accounting.types; + +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.databind.DeserializationContext; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.fasterxml.jackson.databind.deser.std.StdDeserializer; +import com.merge.api.core.ObjectMappers; +import java.io.IOException; +import java.util.Objects; + +@JsonDeserialize(using = TrackingCategoryCategoryType.Deserializer.class) +public final class TrackingCategoryCategoryType { + private final Object value; + + private final int type; + + private TrackingCategoryCategoryType(Object value, int type) { + this.value = value; + this.type = type; + } + + @JsonValue + public Object get() { + return this.value; + } + + @SuppressWarnings("unchecked") + public T visit(Visitor visitor) { + if (this.type == 0) { + return visitor.visit((CategoryTypeEnum) this.value); + } else if (this.type == 1) { + return visitor.visit((String) this.value); + } + throw new IllegalStateException("Failed to visit value. This should never happen."); + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof TrackingCategoryCategoryType && equalTo((TrackingCategoryCategoryType) other); + } + + private boolean equalTo(TrackingCategoryCategoryType other) { + return value.equals(other.value); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.value); + } + + @java.lang.Override + public String toString() { + return this.value.toString(); + } + + public static TrackingCategoryCategoryType of(CategoryTypeEnum value) { + return new TrackingCategoryCategoryType(value, 0); + } + + public static TrackingCategoryCategoryType of(String value) { + return new TrackingCategoryCategoryType(value, 1); + } + + public interface Visitor { + T visit(CategoryTypeEnum value); + + T visit(String value); + } + + static final class Deserializer extends StdDeserializer { + Deserializer() { + super(TrackingCategoryCategoryType.class); + } + + @java.lang.Override + public TrackingCategoryCategoryType deserialize(JsonParser p, DeserializationContext context) + throws IOException { + Object value = p.readValueAs(Object.class); + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, CategoryTypeEnum.class)); + } catch (IllegalArgumentException e) { + } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, String.class)); + } catch (IllegalArgumentException e) { + } + throw new JsonParseException(p, "Failed to deserialize"); + } + } +} diff --git a/src/main/java/com/merge/api/accounting/types/TrackingCategoryStatus.java b/src/main/java/com/merge/api/accounting/types/TrackingCategoryStatus.java new file mode 100644 index 000000000..6943ae5ae --- /dev/null +++ b/src/main/java/com/merge/api/accounting/types/TrackingCategoryStatus.java @@ -0,0 +1,95 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.merge.api.accounting.types; + +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.databind.DeserializationContext; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.fasterxml.jackson.databind.deser.std.StdDeserializer; +import com.merge.api.core.ObjectMappers; +import java.io.IOException; +import java.util.Objects; + +@JsonDeserialize(using = TrackingCategoryStatus.Deserializer.class) +public final class TrackingCategoryStatus { + private final Object value; + + private final int type; + + private TrackingCategoryStatus(Object value, int type) { + this.value = value; + this.type = type; + } + + @JsonValue + public Object get() { + return this.value; + } + + @SuppressWarnings("unchecked") + public T visit(Visitor visitor) { + if (this.type == 0) { + return visitor.visit((Status7D1Enum) this.value); + } else if (this.type == 1) { + return visitor.visit((String) this.value); + } + throw new IllegalStateException("Failed to visit value. This should never happen."); + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof TrackingCategoryStatus && equalTo((TrackingCategoryStatus) other); + } + + private boolean equalTo(TrackingCategoryStatus other) { + return value.equals(other.value); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.value); + } + + @java.lang.Override + public String toString() { + return this.value.toString(); + } + + public static TrackingCategoryStatus of(Status7D1Enum value) { + return new TrackingCategoryStatus(value, 0); + } + + public static TrackingCategoryStatus of(String value) { + return new TrackingCategoryStatus(value, 1); + } + + public interface Visitor { + T visit(Status7D1Enum value); + + T visit(String value); + } + + static final class Deserializer extends StdDeserializer { + Deserializer() { + super(TrackingCategoryStatus.class); + } + + @java.lang.Override + public TrackingCategoryStatus deserialize(JsonParser p, DeserializationContext context) throws IOException { + Object value = p.readValueAs(Object.class); + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, Status7D1Enum.class)); + } catch (IllegalArgumentException e) { + } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, String.class)); + } catch (IllegalArgumentException e) { + } + throw new JsonParseException(p, "Failed to deserialize"); + } + } +} diff --git a/src/main/java/com/merge/api/accounting/types/Transaction.java b/src/main/java/com/merge/api/accounting/types/Transaction.java index b126a05a3..eecc843ef 100644 --- a/src/main/java/com/merge/api/accounting/types/Transaction.java +++ b/src/main/java/com/merge/api/accounting/types/Transaction.java @@ -45,7 +45,7 @@ public final class Transaction { private final Optional totalAmount; - private final Optional currency; + private final Optional currency; private final Optional exchangeRate; @@ -77,7 +77,7 @@ private Transaction( Optional contact, Optional inclusiveOfTax, Optional totalAmount, - Optional currency, + Optional currency, Optional exchangeRate, Optional company, Optional>> trackingCategories, @@ -507,7 +507,7 @@ public Optional getTotalAmount() { * */ @JsonProperty("currency") - public Optional getCurrency() { + public Optional getCurrency() { return currency; } @@ -655,7 +655,7 @@ public static final class Builder { private Optional totalAmount = Optional.empty(); - private Optional currency = Optional.empty(); + private Optional currency = Optional.empty(); private Optional exchangeRate = Optional.empty(); @@ -713,6 +713,9 @@ public Builder id(String id) { return this; } + /** + *

    The third-party API ID of the matching object.

    + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; @@ -724,6 +727,9 @@ public Builder remoteId(String remoteId) { return this; } + /** + *

    The datetime that this object was created by Merge.

    + */ @JsonSetter(value = "created_at", nulls = Nulls.SKIP) public Builder createdAt(Optional createdAt) { this.createdAt = createdAt; @@ -735,6 +741,9 @@ public Builder createdAt(OffsetDateTime createdAt) { return this; } + /** + *

    The datetime that this object was modified by Merge.

    + */ @JsonSetter(value = "modified_at", nulls = Nulls.SKIP) public Builder modifiedAt(Optional modifiedAt) { this.modifiedAt = modifiedAt; @@ -746,6 +755,9 @@ public Builder modifiedAt(OffsetDateTime modifiedAt) { return this; } + /** + *

    The type of transaction, which can by any transaction object not already included in Merge’s common model.

    + */ @JsonSetter(value = "transaction_type", nulls = Nulls.SKIP) public Builder transactionType(Optional transactionType) { this.transactionType = transactionType; @@ -757,6 +769,9 @@ public Builder transactionType(String transactionType) { return this; } + /** + *

    The transaction's number used for identifying purposes.

    + */ @JsonSetter(value = "number", nulls = Nulls.SKIP) public Builder number(Optional number) { this.number = number; @@ -768,6 +783,9 @@ public Builder number(String number) { return this; } + /** + *

    The date upon which the transaction occurred.

    + */ @JsonSetter(value = "transaction_date", nulls = Nulls.SKIP) public Builder transactionDate(Optional transactionDate) { this.transactionDate = transactionDate; @@ -779,6 +797,9 @@ public Builder transactionDate(OffsetDateTime transactionDate) { return this; } + /** + *

    The transaction's account.

    + */ @JsonSetter(value = "account", nulls = Nulls.SKIP) public Builder account(Optional account) { this.account = account; @@ -790,6 +811,9 @@ public Builder account(TransactionAccount account) { return this; } + /** + *

    The contact to whom the transaction relates to.

    + */ @JsonSetter(value = "contact", nulls = Nulls.SKIP) public Builder contact(Optional contact) { this.contact = contact; @@ -801,6 +825,9 @@ public Builder contact(TransactionContact contact) { return this; } + /** + *

    If the transaction is inclusive or exclusive of tax. True if inclusive, False if exclusive.

    + */ @JsonSetter(value = "inclusive_of_tax", nulls = Nulls.SKIP) public Builder inclusiveOfTax(Optional inclusiveOfTax) { this.inclusiveOfTax = inclusiveOfTax; @@ -812,6 +839,9 @@ public Builder inclusiveOfTax(Boolean inclusiveOfTax) { return this; } + /** + *

    The total amount being paid after taxes.

    + */ @JsonSetter(value = "total_amount", nulls = Nulls.SKIP) public Builder totalAmount(Optional totalAmount) { this.totalAmount = totalAmount; @@ -823,17 +853,331 @@ public Builder totalAmount(String totalAmount) { return this; } + /** + *

    The transaction's currency.

    + *
      + *
    • XUA - ADB Unit of Account
    • + *
    • AFN - Afghan Afghani
    • + *
    • AFA - Afghan Afghani (1927–2002)
    • + *
    • ALL - Albanian Lek
    • + *
    • ALK - Albanian Lek (1946–1965)
    • + *
    • DZD - Algerian Dinar
    • + *
    • ADP - Andorran Peseta
    • + *
    • AOA - Angolan Kwanza
    • + *
    • AOK - Angolan Kwanza (1977–1991)
    • + *
    • AON - Angolan New Kwanza (1990–2000)
    • + *
    • AOR - Angolan Readjusted Kwanza (1995–1999)
    • + *
    • ARA - Argentine Austral
    • + *
    • ARS - Argentine Peso
    • + *
    • ARM - Argentine Peso (1881–1970)
    • + *
    • ARP - Argentine Peso (1983–1985)
    • + *
    • ARL - Argentine Peso Ley (1970–1983)
    • + *
    • AMD - Armenian Dram
    • + *
    • AWG - Aruban Florin
    • + *
    • AUD - Australian Dollar
    • + *
    • ATS - Austrian Schilling
    • + *
    • AZN - Azerbaijani Manat
    • + *
    • AZM - Azerbaijani Manat (1993–2006)
    • + *
    • BSD - Bahamian Dollar
    • + *
    • BHD - Bahraini Dinar
    • + *
    • BDT - Bangladeshi Taka
    • + *
    • BBD - Barbadian Dollar
    • + *
    • BYN - Belarusian Ruble
    • + *
    • BYB - Belarusian Ruble (1994–1999)
    • + *
    • BYR - Belarusian Ruble (2000–2016)
    • + *
    • BEF - Belgian Franc
    • + *
    • BEC - Belgian Franc (convertible)
    • + *
    • BEL - Belgian Franc (financial)
    • + *
    • BZD - Belize Dollar
    • + *
    • BMD - Bermudan Dollar
    • + *
    • BTN - Bhutanese Ngultrum
    • + *
    • BOB - Bolivian Boliviano
    • + *
    • BOL - Bolivian Boliviano (1863–1963)
    • + *
    • BOV - Bolivian Mvdol
    • + *
    • BOP - Bolivian Peso
    • + *
    • BAM - Bosnia-Herzegovina Convertible Mark
    • + *
    • BAD - Bosnia-Herzegovina Dinar (1992–1994)
    • + *
    • BAN - Bosnia-Herzegovina New Dinar (1994–1997)
    • + *
    • BWP - Botswanan Pula
    • + *
    • BRC - Brazilian Cruzado (1986–1989)
    • + *
    • BRZ - Brazilian Cruzeiro (1942–1967)
    • + *
    • BRE - Brazilian Cruzeiro (1990–1993)
    • + *
    • BRR - Brazilian Cruzeiro (1993–1994)
    • + *
    • BRN - Brazilian New Cruzado (1989–1990)
    • + *
    • BRB - Brazilian New Cruzeiro (1967–1986)
    • + *
    • BRL - Brazilian Real
    • + *
    • GBP - British Pound
    • + *
    • BND - Brunei Dollar
    • + *
    • BGL - Bulgarian Hard Lev
    • + *
    • BGN - Bulgarian Lev
    • + *
    • BGO - Bulgarian Lev (1879–1952)
    • + *
    • BGM - Bulgarian Socialist Lev
    • + *
    • BUK - Burmese Kyat
    • + *
    • BIF - Burundian Franc
    • + *
    • XPF - CFP Franc
    • + *
    • KHR - Cambodian Riel
    • + *
    • CAD - Canadian Dollar
    • + *
    • CVE - Cape Verdean Escudo
    • + *
    • KYD - Cayman Islands Dollar
    • + *
    • XAF - Central African CFA Franc
    • + *
    • CLE - Chilean Escudo
    • + *
    • CLP - Chilean Peso
    • + *
    • CLF - Chilean Unit of Account (UF)
    • + *
    • CNX - Chinese People’s Bank Dollar
    • + *
    • CNY - Chinese Yuan
    • + *
    • CNH - Chinese Yuan (offshore)
    • + *
    • COP - Colombian Peso
    • + *
    • COU - Colombian Real Value Unit
    • + *
    • KMF - Comorian Franc
    • + *
    • CDF - Congolese Franc
    • + *
    • CRC - Costa Rican Colón
    • + *
    • HRD - Croatian Dinar
    • + *
    • HRK - Croatian Kuna
    • + *
    • CUC - Cuban Convertible Peso
    • + *
    • CUP - Cuban Peso
    • + *
    • CYP - Cypriot Pound
    • + *
    • CZK - Czech Koruna
    • + *
    • CSK - Czechoslovak Hard Koruna
    • + *
    • DKK - Danish Krone
    • + *
    • DJF - Djiboutian Franc
    • + *
    • DOP - Dominican Peso
    • + *
    • NLG - Dutch Guilder
    • + *
    • XCD - East Caribbean Dollar
    • + *
    • DDM - East German Mark
    • + *
    • ECS - Ecuadorian Sucre
    • + *
    • ECV - Ecuadorian Unit of Constant Value
    • + *
    • EGP - Egyptian Pound
    • + *
    • GQE - Equatorial Guinean Ekwele
    • + *
    • ERN - Eritrean Nakfa
    • + *
    • EEK - Estonian Kroon
    • + *
    • ETB - Ethiopian Birr
    • + *
    • EUR - Euro
    • + *
    • XBA - European Composite Unit
    • + *
    • XEU - European Currency Unit
    • + *
    • XBB - European Monetary Unit
    • + *
    • XBC - European Unit of Account (XBC)
    • + *
    • XBD - European Unit of Account (XBD)
    • + *
    • FKP - Falkland Islands Pound
    • + *
    • FJD - Fijian Dollar
    • + *
    • FIM - Finnish Markka
    • + *
    • FRF - French Franc
    • + *
    • XFO - French Gold Franc
    • + *
    • XFU - French UIC-Franc
    • + *
    • GMD - Gambian Dalasi
    • + *
    • GEK - Georgian Kupon Larit
    • + *
    • GEL - Georgian Lari
    • + *
    • DEM - German Mark
    • + *
    • GHS - Ghanaian Cedi
    • + *
    • GHC - Ghanaian Cedi (1979–2007)
    • + *
    • GIP - Gibraltar Pound
    • + *
    • XAU - Gold
    • + *
    • GRD - Greek Drachma
    • + *
    • GTQ - Guatemalan Quetzal
    • + *
    • GWP - Guinea-Bissau Peso
    • + *
    • GNF - Guinean Franc
    • + *
    • GNS - Guinean Syli
    • + *
    • GYD - Guyanaese Dollar
    • + *
    • HTG - Haitian Gourde
    • + *
    • HNL - Honduran Lempira
    • + *
    • HKD - Hong Kong Dollar
    • + *
    • HUF - Hungarian Forint
    • + *
    • IMP - IMP
    • + *
    • ISK - Icelandic Króna
    • + *
    • ISJ - Icelandic Króna (1918–1981)
    • + *
    • INR - Indian Rupee
    • + *
    • IDR - Indonesian Rupiah
    • + *
    • IRR - Iranian Rial
    • + *
    • IQD - Iraqi Dinar
    • + *
    • IEP - Irish Pound
    • + *
    • ILS - Israeli New Shekel
    • + *
    • ILP - Israeli Pound
    • + *
    • ILR - Israeli Shekel (1980–1985)
    • + *
    • ITL - Italian Lira
    • + *
    • JMD - Jamaican Dollar
    • + *
    • JPY - Japanese Yen
    • + *
    • JOD - Jordanian Dinar
    • + *
    • KZT - Kazakhstani Tenge
    • + *
    • KES - Kenyan Shilling
    • + *
    • KWD - Kuwaiti Dinar
    • + *
    • KGS - Kyrgystani Som
    • + *
    • LAK - Laotian Kip
    • + *
    • LVL - Latvian Lats
    • + *
    • LVR - Latvian Ruble
    • + *
    • LBP - Lebanese Pound
    • + *
    • LSL - Lesotho Loti
    • + *
    • LRD - Liberian Dollar
    • + *
    • LYD - Libyan Dinar
    • + *
    • LTL - Lithuanian Litas
    • + *
    • LTT - Lithuanian Talonas
    • + *
    • LUL - Luxembourg Financial Franc
    • + *
    • LUC - Luxembourgian Convertible Franc
    • + *
    • LUF - Luxembourgian Franc
    • + *
    • MOP - Macanese Pataca
    • + *
    • MKD - Macedonian Denar
    • + *
    • MKN - Macedonian Denar (1992–1993)
    • + *
    • MGA - Malagasy Ariary
    • + *
    • MGF - Malagasy Franc
    • + *
    • MWK - Malawian Kwacha
    • + *
    • MYR - Malaysian Ringgit
    • + *
    • MVR - Maldivian Rufiyaa
    • + *
    • MVP - Maldivian Rupee (1947–1981)
    • + *
    • MLF - Malian Franc
    • + *
    • MTL - Maltese Lira
    • + *
    • MTP - Maltese Pound
    • + *
    • MRU - Mauritanian Ouguiya
    • + *
    • MRO - Mauritanian Ouguiya (1973–2017)
    • + *
    • MUR - Mauritian Rupee
    • + *
    • MXV - Mexican Investment Unit
    • + *
    • MXN - Mexican Peso
    • + *
    • MXP - Mexican Silver Peso (1861–1992)
    • + *
    • MDC - Moldovan Cupon
    • + *
    • MDL - Moldovan Leu
    • + *
    • MCF - Monegasque Franc
    • + *
    • MNT - Mongolian Tugrik
    • + *
    • MAD - Moroccan Dirham
    • + *
    • MAF - Moroccan Franc
    • + *
    • MZE - Mozambican Escudo
    • + *
    • MZN - Mozambican Metical
    • + *
    • MZM - Mozambican Metical (1980–2006)
    • + *
    • MMK - Myanmar Kyat
    • + *
    • NAD - Namibian Dollar
    • + *
    • NPR - Nepalese Rupee
    • + *
    • ANG - Netherlands Antillean Guilder
    • + *
    • TWD - New Taiwan Dollar
    • + *
    • NZD - New Zealand Dollar
    • + *
    • NIO - Nicaraguan Córdoba
    • + *
    • NIC - Nicaraguan Córdoba (1988–1991)
    • + *
    • NGN - Nigerian Naira
    • + *
    • KPW - North Korean Won
    • + *
    • NOK - Norwegian Krone
    • + *
    • OMR - Omani Rial
    • + *
    • PKR - Pakistani Rupee
    • + *
    • XPD - Palladium
    • + *
    • PAB - Panamanian Balboa
    • + *
    • PGK - Papua New Guinean Kina
    • + *
    • PYG - Paraguayan Guarani
    • + *
    • PEI - Peruvian Inti
    • + *
    • PEN - Peruvian Sol
    • + *
    • PES - Peruvian Sol (1863–1965)
    • + *
    • PHP - Philippine Peso
    • + *
    • XPT - Platinum
    • + *
    • PLN - Polish Zloty
    • + *
    • PLZ - Polish Zloty (1950–1995)
    • + *
    • PTE - Portuguese Escudo
    • + *
    • GWE - Portuguese Guinea Escudo
    • + *
    • QAR - Qatari Rial
    • + *
    • XRE - RINET Funds
    • + *
    • RHD - Rhodesian Dollar
    • + *
    • RON - Romanian Leu
    • + *
    • ROL - Romanian Leu (1952–2006)
    • + *
    • RUB - Russian Ruble
    • + *
    • RUR - Russian Ruble (1991–1998)
    • + *
    • RWF - Rwandan Franc
    • + *
    • SVC - Salvadoran Colón
    • + *
    • WST - Samoan Tala
    • + *
    • SAR - Saudi Riyal
    • + *
    • RSD - Serbian Dinar
    • + *
    • CSD - Serbian Dinar (2002–2006)
    • + *
    • SCR - Seychellois Rupee
    • + *
    • SLL - Sierra Leonean Leone
    • + *
    • XAG - Silver
    • + *
    • SGD - Singapore Dollar
    • + *
    • SKK - Slovak Koruna
    • + *
    • SIT - Slovenian Tolar
    • + *
    • SBD - Solomon Islands Dollar
    • + *
    • SOS - Somali Shilling
    • + *
    • ZAR - South African Rand
    • + *
    • ZAL - South African Rand (financial)
    • + *
    • KRH - South Korean Hwan (1953–1962)
    • + *
    • KRW - South Korean Won
    • + *
    • KRO - South Korean Won (1945–1953)
    • + *
    • SSP - South Sudanese Pound
    • + *
    • SUR - Soviet Rouble
    • + *
    • ESP - Spanish Peseta
    • + *
    • ESA - Spanish Peseta (A account)
    • + *
    • ESB - Spanish Peseta (convertible account)
    • + *
    • XDR - Special Drawing Rights
    • + *
    • LKR - Sri Lankan Rupee
    • + *
    • SHP - St. Helena Pound
    • + *
    • XSU - Sucre
    • + *
    • SDD - Sudanese Dinar (1992–2007)
    • + *
    • SDG - Sudanese Pound
    • + *
    • SDP - Sudanese Pound (1957–1998)
    • + *
    • SRD - Surinamese Dollar
    • + *
    • SRG - Surinamese Guilder
    • + *
    • SZL - Swazi Lilangeni
    • + *
    • SEK - Swedish Krona
    • + *
    • CHF - Swiss Franc
    • + *
    • SYP - Syrian Pound
    • + *
    • STN - São Tomé & Príncipe Dobra
    • + *
    • STD - São Tomé & Príncipe Dobra (1977–2017)
    • + *
    • TVD - TVD
    • + *
    • TJR - Tajikistani Ruble
    • + *
    • TJS - Tajikistani Somoni
    • + *
    • TZS - Tanzanian Shilling
    • + *
    • XTS - Testing Currency Code
    • + *
    • THB - Thai Baht
    • + *
    • XXX - The codes assigned for transactions where no currency is involved
    • + *
    • TPE - Timorese Escudo
    • + *
    • TOP - Tongan Paʻanga
    • + *
    • TTD - Trinidad & Tobago Dollar
    • + *
    • TND - Tunisian Dinar
    • + *
    • TRY - Turkish Lira
    • + *
    • TRL - Turkish Lira (1922–2005)
    • + *
    • TMT - Turkmenistani Manat
    • + *
    • TMM - Turkmenistani Manat (1993–2009)
    • + *
    • USD - US Dollar
    • + *
    • USN - US Dollar (Next day)
    • + *
    • USS - US Dollar (Same day)
    • + *
    • UGX - Ugandan Shilling
    • + *
    • UGS - Ugandan Shilling (1966–1987)
    • + *
    • UAH - Ukrainian Hryvnia
    • + *
    • UAK - Ukrainian Karbovanets
    • + *
    • AED - United Arab Emirates Dirham
    • + *
    • UYW - Uruguayan Nominal Wage Index Unit
    • + *
    • UYU - Uruguayan Peso
    • + *
    • UYP - Uruguayan Peso (1975–1993)
    • + *
    • UYI - Uruguayan Peso (Indexed Units)
    • + *
    • UZS - Uzbekistani Som
    • + *
    • VUV - Vanuatu Vatu
    • + *
    • VES - Venezuelan Bolívar
    • + *
    • VEB - Venezuelan Bolívar (1871–2008)
    • + *
    • VEF - Venezuelan Bolívar (2008–2018)
    • + *
    • VND - Vietnamese Dong
    • + *
    • VNN - Vietnamese Dong (1978–1985)
    • + *
    • CHE - WIR Euro
    • + *
    • CHW - WIR Franc
    • + *
    • XOF - West African CFA Franc
    • + *
    • YDD - Yemeni Dinar
    • + *
    • YER - Yemeni Rial
    • + *
    • YUN - Yugoslavian Convertible Dinar (1990–1992)
    • + *
    • YUD - Yugoslavian Hard Dinar (1966–1990)
    • + *
    • YUM - Yugoslavian New Dinar (1994–2002)
    • + *
    • YUR - Yugoslavian Reformed Dinar (1992–1993)
    • + *
    • ZWN - ZWN
    • + *
    • ZRN - Zairean New Zaire (1993–1998)
    • + *
    • ZRZ - Zairean Zaire (1971–1993)
    • + *
    • ZMW - Zambian Kwacha
    • + *
    • ZMK - Zambian Kwacha (1968–2012)
    • + *
    • ZWD - Zimbabwean Dollar (1980–2008)
    • + *
    • ZWR - Zimbabwean Dollar (2008)
    • + *
    • ZWL - Zimbabwean Dollar (2009)
    • + *
    + */ @JsonSetter(value = "currency", nulls = Nulls.SKIP) - public Builder currency(Optional currency) { + public Builder currency(Optional currency) { this.currency = currency; return this; } - public Builder currency(TransactionCurrencyEnum currency) { + public Builder currency(TransactionCurrency currency) { this.currency = Optional.ofNullable(currency); return this; } + /** + *

    The transaction's exchange rate.

    + */ @JsonSetter(value = "exchange_rate", nulls = Nulls.SKIP) public Builder exchangeRate(Optional exchangeRate) { this.exchangeRate = exchangeRate; @@ -845,6 +1189,9 @@ public Builder exchangeRate(String exchangeRate) { return this; } + /** + *

    The company the transaction belongs to.

    + */ @JsonSetter(value = "company", nulls = Nulls.SKIP) public Builder company(Optional company) { this.company = company; @@ -879,6 +1226,9 @@ public Builder lineItems(List lineItems) { return this; } + /** + *

    Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

    + */ @JsonSetter(value = "remote_was_deleted", nulls = Nulls.SKIP) public Builder remoteWasDeleted(Optional remoteWasDeleted) { this.remoteWasDeleted = remoteWasDeleted; @@ -890,6 +1240,9 @@ public Builder remoteWasDeleted(Boolean remoteWasDeleted) { return this; } + /** + *

    The accounting period that the Transaction was generated in.

    + */ @JsonSetter(value = "accounting_period", nulls = Nulls.SKIP) public Builder accountingPeriod(Optional accountingPeriod) { this.accountingPeriod = accountingPeriod; diff --git a/src/main/java/com/merge/api/accounting/types/TransactionCurrency.java b/src/main/java/com/merge/api/accounting/types/TransactionCurrency.java new file mode 100644 index 000000000..19e0707ca --- /dev/null +++ b/src/main/java/com/merge/api/accounting/types/TransactionCurrency.java @@ -0,0 +1,95 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.merge.api.accounting.types; + +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.databind.DeserializationContext; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.fasterxml.jackson.databind.deser.std.StdDeserializer; +import com.merge.api.core.ObjectMappers; +import java.io.IOException; +import java.util.Objects; + +@JsonDeserialize(using = TransactionCurrency.Deserializer.class) +public final class TransactionCurrency { + private final Object value; + + private final int type; + + private TransactionCurrency(Object value, int type) { + this.value = value; + this.type = type; + } + + @JsonValue + public Object get() { + return this.value; + } + + @SuppressWarnings("unchecked") + public T visit(Visitor visitor) { + if (this.type == 0) { + return visitor.visit((TransactionCurrencyEnum) this.value); + } else if (this.type == 1) { + return visitor.visit((String) this.value); + } + throw new IllegalStateException("Failed to visit value. This should never happen."); + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof TransactionCurrency && equalTo((TransactionCurrency) other); + } + + private boolean equalTo(TransactionCurrency other) { + return value.equals(other.value); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.value); + } + + @java.lang.Override + public String toString() { + return this.value.toString(); + } + + public static TransactionCurrency of(TransactionCurrencyEnum value) { + return new TransactionCurrency(value, 0); + } + + public static TransactionCurrency of(String value) { + return new TransactionCurrency(value, 1); + } + + public interface Visitor { + T visit(TransactionCurrencyEnum value); + + T visit(String value); + } + + static final class Deserializer extends StdDeserializer { + Deserializer() { + super(TransactionCurrency.class); + } + + @java.lang.Override + public TransactionCurrency deserialize(JsonParser p, DeserializationContext context) throws IOException { + Object value = p.readValueAs(Object.class); + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, TransactionCurrencyEnum.class)); + } catch (IllegalArgumentException e) { + } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, String.class)); + } catch (IllegalArgumentException e) { + } + throw new JsonParseException(p, "Failed to deserialize"); + } + } +} diff --git a/src/main/java/com/merge/api/accounting/types/TransactionLineItem.java b/src/main/java/com/merge/api/accounting/types/TransactionLineItem.java index 0120f2f54..e5a7e71ef 100644 --- a/src/main/java/com/merge/api/accounting/types/TransactionLineItem.java +++ b/src/main/java/com/merge/api/accounting/types/TransactionLineItem.java @@ -48,7 +48,7 @@ public final class TransactionLineItem { private final Optional taxRate; - private final Optional currency; + private final Optional currency; private final Optional exchangeRate; @@ -72,7 +72,7 @@ private TransactionLineItem( Optional>> trackingCategories, Optional totalLineAmount, Optional taxRate, - Optional currency, + Optional currency, Optional exchangeRate, Optional company, Optional remoteWasDeleted, @@ -507,7 +507,7 @@ public Optional getTaxRate() { * */ @JsonProperty("currency") - public Optional getCurrency() { + public Optional getCurrency() { return currency; } @@ -625,7 +625,7 @@ public static final class Builder { private Optional taxRate = Optional.empty(); - private Optional currency = Optional.empty(); + private Optional currency = Optional.empty(); private Optional exchangeRate = Optional.empty(); @@ -670,6 +670,9 @@ public Builder id(String id) { return this; } + /** + *

    The third-party API ID of the matching object.

    + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; @@ -681,6 +684,9 @@ public Builder remoteId(String remoteId) { return this; } + /** + *

    The datetime that this object was created by Merge.

    + */ @JsonSetter(value = "created_at", nulls = Nulls.SKIP) public Builder createdAt(Optional createdAt) { this.createdAt = createdAt; @@ -692,6 +698,9 @@ public Builder createdAt(OffsetDateTime createdAt) { return this; } + /** + *

    The datetime that this object was modified by Merge.

    + */ @JsonSetter(value = "modified_at", nulls = Nulls.SKIP) public Builder modifiedAt(Optional modifiedAt) { this.modifiedAt = modifiedAt; @@ -703,6 +712,9 @@ public Builder modifiedAt(OffsetDateTime modifiedAt) { return this; } + /** + *

    An internal note used by the business to clarify purpose of the transaction.

    + */ @JsonSetter(value = "memo", nulls = Nulls.SKIP) public Builder memo(Optional memo) { this.memo = memo; @@ -714,6 +726,9 @@ public Builder memo(String memo) { return this; } + /** + *

    The line item's unit price.

    + */ @JsonSetter(value = "unit_price", nulls = Nulls.SKIP) public Builder unitPrice(Optional unitPrice) { this.unitPrice = unitPrice; @@ -725,6 +740,9 @@ public Builder unitPrice(String unitPrice) { return this; } + /** + *

    The line item's quantity.

    + */ @JsonSetter(value = "quantity", nulls = Nulls.SKIP) public Builder quantity(Optional quantity) { this.quantity = quantity; @@ -747,6 +765,9 @@ public Builder item(TransactionLineItemItem item) { return this; } + /** + *

    The line item's account.

    + */ @JsonSetter(value = "account", nulls = Nulls.SKIP) public Builder account(Optional account) { this.account = account; @@ -758,6 +779,9 @@ public Builder account(String account) { return this; } + /** + *

    The line's associated tracking category.

    + */ @JsonSetter(value = "tracking_category", nulls = Nulls.SKIP) public Builder trackingCategory(Optional trackingCategory) { this.trackingCategory = trackingCategory; @@ -769,6 +793,9 @@ public Builder trackingCategory(String trackingCategory) { return this; } + /** + *

    The transaction line item's associated tracking categories.

    + */ @JsonSetter(value = "tracking_categories", nulls = Nulls.SKIP) public Builder trackingCategories(Optional>> trackingCategories) { this.trackingCategories = trackingCategories; @@ -780,6 +807,9 @@ public Builder trackingCategories(List> trackingCategories) { return this; } + /** + *

    The line item's total.

    + */ @JsonSetter(value = "total_line_amount", nulls = Nulls.SKIP) public Builder totalLineAmount(Optional totalLineAmount) { this.totalLineAmount = totalLineAmount; @@ -791,6 +821,9 @@ public Builder totalLineAmount(String totalLineAmount) { return this; } + /** + *

    The tax rate that applies to this line item.

    + */ @JsonSetter(value = "tax_rate", nulls = Nulls.SKIP) public Builder taxRate(Optional taxRate) { this.taxRate = taxRate; @@ -802,17 +835,331 @@ public Builder taxRate(String taxRate) { return this; } + /** + *

    The line item's currency.

    + *
      + *
    • XUA - ADB Unit of Account
    • + *
    • AFN - Afghan Afghani
    • + *
    • AFA - Afghan Afghani (1927–2002)
    • + *
    • ALL - Albanian Lek
    • + *
    • ALK - Albanian Lek (1946–1965)
    • + *
    • DZD - Algerian Dinar
    • + *
    • ADP - Andorran Peseta
    • + *
    • AOA - Angolan Kwanza
    • + *
    • AOK - Angolan Kwanza (1977–1991)
    • + *
    • AON - Angolan New Kwanza (1990–2000)
    • + *
    • AOR - Angolan Readjusted Kwanza (1995–1999)
    • + *
    • ARA - Argentine Austral
    • + *
    • ARS - Argentine Peso
    • + *
    • ARM - Argentine Peso (1881–1970)
    • + *
    • ARP - Argentine Peso (1983–1985)
    • + *
    • ARL - Argentine Peso Ley (1970–1983)
    • + *
    • AMD - Armenian Dram
    • + *
    • AWG - Aruban Florin
    • + *
    • AUD - Australian Dollar
    • + *
    • ATS - Austrian Schilling
    • + *
    • AZN - Azerbaijani Manat
    • + *
    • AZM - Azerbaijani Manat (1993–2006)
    • + *
    • BSD - Bahamian Dollar
    • + *
    • BHD - Bahraini Dinar
    • + *
    • BDT - Bangladeshi Taka
    • + *
    • BBD - Barbadian Dollar
    • + *
    • BYN - Belarusian Ruble
    • + *
    • BYB - Belarusian Ruble (1994–1999)
    • + *
    • BYR - Belarusian Ruble (2000–2016)
    • + *
    • BEF - Belgian Franc
    • + *
    • BEC - Belgian Franc (convertible)
    • + *
    • BEL - Belgian Franc (financial)
    • + *
    • BZD - Belize Dollar
    • + *
    • BMD - Bermudan Dollar
    • + *
    • BTN - Bhutanese Ngultrum
    • + *
    • BOB - Bolivian Boliviano
    • + *
    • BOL - Bolivian Boliviano (1863–1963)
    • + *
    • BOV - Bolivian Mvdol
    • + *
    • BOP - Bolivian Peso
    • + *
    • BAM - Bosnia-Herzegovina Convertible Mark
    • + *
    • BAD - Bosnia-Herzegovina Dinar (1992–1994)
    • + *
    • BAN - Bosnia-Herzegovina New Dinar (1994–1997)
    • + *
    • BWP - Botswanan Pula
    • + *
    • BRC - Brazilian Cruzado (1986–1989)
    • + *
    • BRZ - Brazilian Cruzeiro (1942–1967)
    • + *
    • BRE - Brazilian Cruzeiro (1990–1993)
    • + *
    • BRR - Brazilian Cruzeiro (1993–1994)
    • + *
    • BRN - Brazilian New Cruzado (1989–1990)
    • + *
    • BRB - Brazilian New Cruzeiro (1967–1986)
    • + *
    • BRL - Brazilian Real
    • + *
    • GBP - British Pound
    • + *
    • BND - Brunei Dollar
    • + *
    • BGL - Bulgarian Hard Lev
    • + *
    • BGN - Bulgarian Lev
    • + *
    • BGO - Bulgarian Lev (1879–1952)
    • + *
    • BGM - Bulgarian Socialist Lev
    • + *
    • BUK - Burmese Kyat
    • + *
    • BIF - Burundian Franc
    • + *
    • XPF - CFP Franc
    • + *
    • KHR - Cambodian Riel
    • + *
    • CAD - Canadian Dollar
    • + *
    • CVE - Cape Verdean Escudo
    • + *
    • KYD - Cayman Islands Dollar
    • + *
    • XAF - Central African CFA Franc
    • + *
    • CLE - Chilean Escudo
    • + *
    • CLP - Chilean Peso
    • + *
    • CLF - Chilean Unit of Account (UF)
    • + *
    • CNX - Chinese People’s Bank Dollar
    • + *
    • CNY - Chinese Yuan
    • + *
    • CNH - Chinese Yuan (offshore)
    • + *
    • COP - Colombian Peso
    • + *
    • COU - Colombian Real Value Unit
    • + *
    • KMF - Comorian Franc
    • + *
    • CDF - Congolese Franc
    • + *
    • CRC - Costa Rican Colón
    • + *
    • HRD - Croatian Dinar
    • + *
    • HRK - Croatian Kuna
    • + *
    • CUC - Cuban Convertible Peso
    • + *
    • CUP - Cuban Peso
    • + *
    • CYP - Cypriot Pound
    • + *
    • CZK - Czech Koruna
    • + *
    • CSK - Czechoslovak Hard Koruna
    • + *
    • DKK - Danish Krone
    • + *
    • DJF - Djiboutian Franc
    • + *
    • DOP - Dominican Peso
    • + *
    • NLG - Dutch Guilder
    • + *
    • XCD - East Caribbean Dollar
    • + *
    • DDM - East German Mark
    • + *
    • ECS - Ecuadorian Sucre
    • + *
    • ECV - Ecuadorian Unit of Constant Value
    • + *
    • EGP - Egyptian Pound
    • + *
    • GQE - Equatorial Guinean Ekwele
    • + *
    • ERN - Eritrean Nakfa
    • + *
    • EEK - Estonian Kroon
    • + *
    • ETB - Ethiopian Birr
    • + *
    • EUR - Euro
    • + *
    • XBA - European Composite Unit
    • + *
    • XEU - European Currency Unit
    • + *
    • XBB - European Monetary Unit
    • + *
    • XBC - European Unit of Account (XBC)
    • + *
    • XBD - European Unit of Account (XBD)
    • + *
    • FKP - Falkland Islands Pound
    • + *
    • FJD - Fijian Dollar
    • + *
    • FIM - Finnish Markka
    • + *
    • FRF - French Franc
    • + *
    • XFO - French Gold Franc
    • + *
    • XFU - French UIC-Franc
    • + *
    • GMD - Gambian Dalasi
    • + *
    • GEK - Georgian Kupon Larit
    • + *
    • GEL - Georgian Lari
    • + *
    • DEM - German Mark
    • + *
    • GHS - Ghanaian Cedi
    • + *
    • GHC - Ghanaian Cedi (1979–2007)
    • + *
    • GIP - Gibraltar Pound
    • + *
    • XAU - Gold
    • + *
    • GRD - Greek Drachma
    • + *
    • GTQ - Guatemalan Quetzal
    • + *
    • GWP - Guinea-Bissau Peso
    • + *
    • GNF - Guinean Franc
    • + *
    • GNS - Guinean Syli
    • + *
    • GYD - Guyanaese Dollar
    • + *
    • HTG - Haitian Gourde
    • + *
    • HNL - Honduran Lempira
    • + *
    • HKD - Hong Kong Dollar
    • + *
    • HUF - Hungarian Forint
    • + *
    • IMP - IMP
    • + *
    • ISK - Icelandic Króna
    • + *
    • ISJ - Icelandic Króna (1918–1981)
    • + *
    • INR - Indian Rupee
    • + *
    • IDR - Indonesian Rupiah
    • + *
    • IRR - Iranian Rial
    • + *
    • IQD - Iraqi Dinar
    • + *
    • IEP - Irish Pound
    • + *
    • ILS - Israeli New Shekel
    • + *
    • ILP - Israeli Pound
    • + *
    • ILR - Israeli Shekel (1980–1985)
    • + *
    • ITL - Italian Lira
    • + *
    • JMD - Jamaican Dollar
    • + *
    • JPY - Japanese Yen
    • + *
    • JOD - Jordanian Dinar
    • + *
    • KZT - Kazakhstani Tenge
    • + *
    • KES - Kenyan Shilling
    • + *
    • KWD - Kuwaiti Dinar
    • + *
    • KGS - Kyrgystani Som
    • + *
    • LAK - Laotian Kip
    • + *
    • LVL - Latvian Lats
    • + *
    • LVR - Latvian Ruble
    • + *
    • LBP - Lebanese Pound
    • + *
    • LSL - Lesotho Loti
    • + *
    • LRD - Liberian Dollar
    • + *
    • LYD - Libyan Dinar
    • + *
    • LTL - Lithuanian Litas
    • + *
    • LTT - Lithuanian Talonas
    • + *
    • LUL - Luxembourg Financial Franc
    • + *
    • LUC - Luxembourgian Convertible Franc
    • + *
    • LUF - Luxembourgian Franc
    • + *
    • MOP - Macanese Pataca
    • + *
    • MKD - Macedonian Denar
    • + *
    • MKN - Macedonian Denar (1992–1993)
    • + *
    • MGA - Malagasy Ariary
    • + *
    • MGF - Malagasy Franc
    • + *
    • MWK - Malawian Kwacha
    • + *
    • MYR - Malaysian Ringgit
    • + *
    • MVR - Maldivian Rufiyaa
    • + *
    • MVP - Maldivian Rupee (1947–1981)
    • + *
    • MLF - Malian Franc
    • + *
    • MTL - Maltese Lira
    • + *
    • MTP - Maltese Pound
    • + *
    • MRU - Mauritanian Ouguiya
    • + *
    • MRO - Mauritanian Ouguiya (1973–2017)
    • + *
    • MUR - Mauritian Rupee
    • + *
    • MXV - Mexican Investment Unit
    • + *
    • MXN - Mexican Peso
    • + *
    • MXP - Mexican Silver Peso (1861–1992)
    • + *
    • MDC - Moldovan Cupon
    • + *
    • MDL - Moldovan Leu
    • + *
    • MCF - Monegasque Franc
    • + *
    • MNT - Mongolian Tugrik
    • + *
    • MAD - Moroccan Dirham
    • + *
    • MAF - Moroccan Franc
    • + *
    • MZE - Mozambican Escudo
    • + *
    • MZN - Mozambican Metical
    • + *
    • MZM - Mozambican Metical (1980–2006)
    • + *
    • MMK - Myanmar Kyat
    • + *
    • NAD - Namibian Dollar
    • + *
    • NPR - Nepalese Rupee
    • + *
    • ANG - Netherlands Antillean Guilder
    • + *
    • TWD - New Taiwan Dollar
    • + *
    • NZD - New Zealand Dollar
    • + *
    • NIO - Nicaraguan Córdoba
    • + *
    • NIC - Nicaraguan Córdoba (1988–1991)
    • + *
    • NGN - Nigerian Naira
    • + *
    • KPW - North Korean Won
    • + *
    • NOK - Norwegian Krone
    • + *
    • OMR - Omani Rial
    • + *
    • PKR - Pakistani Rupee
    • + *
    • XPD - Palladium
    • + *
    • PAB - Panamanian Balboa
    • + *
    • PGK - Papua New Guinean Kina
    • + *
    • PYG - Paraguayan Guarani
    • + *
    • PEI - Peruvian Inti
    • + *
    • PEN - Peruvian Sol
    • + *
    • PES - Peruvian Sol (1863–1965)
    • + *
    • PHP - Philippine Peso
    • + *
    • XPT - Platinum
    • + *
    • PLN - Polish Zloty
    • + *
    • PLZ - Polish Zloty (1950–1995)
    • + *
    • PTE - Portuguese Escudo
    • + *
    • GWE - Portuguese Guinea Escudo
    • + *
    • QAR - Qatari Rial
    • + *
    • XRE - RINET Funds
    • + *
    • RHD - Rhodesian Dollar
    • + *
    • RON - Romanian Leu
    • + *
    • ROL - Romanian Leu (1952–2006)
    • + *
    • RUB - Russian Ruble
    • + *
    • RUR - Russian Ruble (1991–1998)
    • + *
    • RWF - Rwandan Franc
    • + *
    • SVC - Salvadoran Colón
    • + *
    • WST - Samoan Tala
    • + *
    • SAR - Saudi Riyal
    • + *
    • RSD - Serbian Dinar
    • + *
    • CSD - Serbian Dinar (2002–2006)
    • + *
    • SCR - Seychellois Rupee
    • + *
    • SLL - Sierra Leonean Leone
    • + *
    • XAG - Silver
    • + *
    • SGD - Singapore Dollar
    • + *
    • SKK - Slovak Koruna
    • + *
    • SIT - Slovenian Tolar
    • + *
    • SBD - Solomon Islands Dollar
    • + *
    • SOS - Somali Shilling
    • + *
    • ZAR - South African Rand
    • + *
    • ZAL - South African Rand (financial)
    • + *
    • KRH - South Korean Hwan (1953–1962)
    • + *
    • KRW - South Korean Won
    • + *
    • KRO - South Korean Won (1945–1953)
    • + *
    • SSP - South Sudanese Pound
    • + *
    • SUR - Soviet Rouble
    • + *
    • ESP - Spanish Peseta
    • + *
    • ESA - Spanish Peseta (A account)
    • + *
    • ESB - Spanish Peseta (convertible account)
    • + *
    • XDR - Special Drawing Rights
    • + *
    • LKR - Sri Lankan Rupee
    • + *
    • SHP - St. Helena Pound
    • + *
    • XSU - Sucre
    • + *
    • SDD - Sudanese Dinar (1992–2007)
    • + *
    • SDG - Sudanese Pound
    • + *
    • SDP - Sudanese Pound (1957–1998)
    • + *
    • SRD - Surinamese Dollar
    • + *
    • SRG - Surinamese Guilder
    • + *
    • SZL - Swazi Lilangeni
    • + *
    • SEK - Swedish Krona
    • + *
    • CHF - Swiss Franc
    • + *
    • SYP - Syrian Pound
    • + *
    • STN - São Tomé & Príncipe Dobra
    • + *
    • STD - São Tomé & Príncipe Dobra (1977–2017)
    • + *
    • TVD - TVD
    • + *
    • TJR - Tajikistani Ruble
    • + *
    • TJS - Tajikistani Somoni
    • + *
    • TZS - Tanzanian Shilling
    • + *
    • XTS - Testing Currency Code
    • + *
    • THB - Thai Baht
    • + *
    • XXX - The codes assigned for transactions where no currency is involved
    • + *
    • TPE - Timorese Escudo
    • + *
    • TOP - Tongan Paʻanga
    • + *
    • TTD - Trinidad & Tobago Dollar
    • + *
    • TND - Tunisian Dinar
    • + *
    • TRY - Turkish Lira
    • + *
    • TRL - Turkish Lira (1922–2005)
    • + *
    • TMT - Turkmenistani Manat
    • + *
    • TMM - Turkmenistani Manat (1993–2009)
    • + *
    • USD - US Dollar
    • + *
    • USN - US Dollar (Next day)
    • + *
    • USS - US Dollar (Same day)
    • + *
    • UGX - Ugandan Shilling
    • + *
    • UGS - Ugandan Shilling (1966–1987)
    • + *
    • UAH - Ukrainian Hryvnia
    • + *
    • UAK - Ukrainian Karbovanets
    • + *
    • AED - United Arab Emirates Dirham
    • + *
    • UYW - Uruguayan Nominal Wage Index Unit
    • + *
    • UYU - Uruguayan Peso
    • + *
    • UYP - Uruguayan Peso (1975–1993)
    • + *
    • UYI - Uruguayan Peso (Indexed Units)
    • + *
    • UZS - Uzbekistani Som
    • + *
    • VUV - Vanuatu Vatu
    • + *
    • VES - Venezuelan Bolívar
    • + *
    • VEB - Venezuelan Bolívar (1871–2008)
    • + *
    • VEF - Venezuelan Bolívar (2008–2018)
    • + *
    • VND - Vietnamese Dong
    • + *
    • VNN - Vietnamese Dong (1978–1985)
    • + *
    • CHE - WIR Euro
    • + *
    • CHW - WIR Franc
    • + *
    • XOF - West African CFA Franc
    • + *
    • YDD - Yemeni Dinar
    • + *
    • YER - Yemeni Rial
    • + *
    • YUN - Yugoslavian Convertible Dinar (1990–1992)
    • + *
    • YUD - Yugoslavian Hard Dinar (1966–1990)
    • + *
    • YUM - Yugoslavian New Dinar (1994–2002)
    • + *
    • YUR - Yugoslavian Reformed Dinar (1992–1993)
    • + *
    • ZWN - ZWN
    • + *
    • ZRN - Zairean New Zaire (1993–1998)
    • + *
    • ZRZ - Zairean Zaire (1971–1993)
    • + *
    • ZMW - Zambian Kwacha
    • + *
    • ZMK - Zambian Kwacha (1968–2012)
    • + *
    • ZWD - Zimbabwean Dollar (1980–2008)
    • + *
    • ZWR - Zimbabwean Dollar (2008)
    • + *
    • ZWL - Zimbabwean Dollar (2009)
    • + *
    + */ @JsonSetter(value = "currency", nulls = Nulls.SKIP) - public Builder currency(Optional currency) { + public Builder currency(Optional currency) { this.currency = currency; return this; } - public Builder currency(TransactionCurrencyEnum currency) { + public Builder currency(TransactionLineItemCurrency currency) { this.currency = Optional.ofNullable(currency); return this; } + /** + *

    The line item's exchange rate.

    + */ @JsonSetter(value = "exchange_rate", nulls = Nulls.SKIP) public Builder exchangeRate(Optional exchangeRate) { this.exchangeRate = exchangeRate; @@ -824,6 +1171,9 @@ public Builder exchangeRate(String exchangeRate) { return this; } + /** + *

    The company the line belongs to.

    + */ @JsonSetter(value = "company", nulls = Nulls.SKIP) public Builder company(Optional company) { this.company = company; @@ -835,6 +1185,9 @@ public Builder company(String company) { return this; } + /** + *

    Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

    + */ @JsonSetter(value = "remote_was_deleted", nulls = Nulls.SKIP) public Builder remoteWasDeleted(Optional remoteWasDeleted) { this.remoteWasDeleted = remoteWasDeleted; diff --git a/src/main/java/com/merge/api/accounting/types/TransactionLineItemCurrency.java b/src/main/java/com/merge/api/accounting/types/TransactionLineItemCurrency.java new file mode 100644 index 000000000..76f252329 --- /dev/null +++ b/src/main/java/com/merge/api/accounting/types/TransactionLineItemCurrency.java @@ -0,0 +1,96 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.merge.api.accounting.types; + +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.databind.DeserializationContext; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.fasterxml.jackson.databind.deser.std.StdDeserializer; +import com.merge.api.core.ObjectMappers; +import java.io.IOException; +import java.util.Objects; + +@JsonDeserialize(using = TransactionLineItemCurrency.Deserializer.class) +public final class TransactionLineItemCurrency { + private final Object value; + + private final int type; + + private TransactionLineItemCurrency(Object value, int type) { + this.value = value; + this.type = type; + } + + @JsonValue + public Object get() { + return this.value; + } + + @SuppressWarnings("unchecked") + public T visit(Visitor visitor) { + if (this.type == 0) { + return visitor.visit((TransactionCurrencyEnum) this.value); + } else if (this.type == 1) { + return visitor.visit((String) this.value); + } + throw new IllegalStateException("Failed to visit value. This should never happen."); + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof TransactionLineItemCurrency && equalTo((TransactionLineItemCurrency) other); + } + + private boolean equalTo(TransactionLineItemCurrency other) { + return value.equals(other.value); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.value); + } + + @java.lang.Override + public String toString() { + return this.value.toString(); + } + + public static TransactionLineItemCurrency of(TransactionCurrencyEnum value) { + return new TransactionLineItemCurrency(value, 0); + } + + public static TransactionLineItemCurrency of(String value) { + return new TransactionLineItemCurrency(value, 1); + } + + public interface Visitor { + T visit(TransactionCurrencyEnum value); + + T visit(String value); + } + + static final class Deserializer extends StdDeserializer { + Deserializer() { + super(TransactionLineItemCurrency.class); + } + + @java.lang.Override + public TransactionLineItemCurrency deserialize(JsonParser p, DeserializationContext context) + throws IOException { + Object value = p.readValueAs(Object.class); + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, TransactionCurrencyEnum.class)); + } catch (IllegalArgumentException e) { + } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, String.class)); + } catch (IllegalArgumentException e) { + } + throw new JsonParseException(p, "Failed to deserialize"); + } + } +} diff --git a/src/main/java/com/merge/api/accounting/types/TransactionsListRequest.java b/src/main/java/com/merge/api/accounting/types/TransactionsListRequest.java index c7d9012b6..de7923c65 100644 --- a/src/main/java/com/merge/api/accounting/types/TransactionsListRequest.java +++ b/src/main/java/com/merge/api/accounting/types/TransactionsListRequest.java @@ -307,6 +307,9 @@ public Builder from(TransactionsListRequest other) { return this; } + /** + *

    Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.

    + */ @JsonSetter(value = "expand", nulls = Nulls.SKIP) public Builder expand(Optional> expand) { this.expand = expand; @@ -323,6 +326,9 @@ public Builder expand(TransactionsListRequestExpandItem expand) { return this; } + /** + *

    If provided, will only return accounting transactions for this company.

    + */ @JsonSetter(value = "company_id", nulls = Nulls.SKIP) public Builder companyId(Optional companyId) { this.companyId = companyId; @@ -334,6 +340,9 @@ public Builder companyId(String companyId) { return this; } + /** + *

    If provided, will only return objects created after this datetime.

    + */ @JsonSetter(value = "created_after", nulls = Nulls.SKIP) public Builder createdAfter(Optional createdAfter) { this.createdAfter = createdAfter; @@ -345,6 +354,9 @@ public Builder createdAfter(OffsetDateTime createdAfter) { return this; } + /** + *

    If provided, will only return objects created before this datetime.

    + */ @JsonSetter(value = "created_before", nulls = Nulls.SKIP) public Builder createdBefore(Optional createdBefore) { this.createdBefore = createdBefore; @@ -356,6 +368,9 @@ public Builder createdBefore(OffsetDateTime createdBefore) { return this; } + /** + *

    The pagination cursor value.

    + */ @JsonSetter(value = "cursor", nulls = Nulls.SKIP) public Builder cursor(Optional cursor) { this.cursor = cursor; @@ -367,6 +382,9 @@ public Builder cursor(String cursor) { return this; } + /** + *

    Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

    + */ @JsonSetter(value = "include_deleted_data", nulls = Nulls.SKIP) public Builder includeDeletedData(Optional includeDeletedData) { this.includeDeletedData = includeDeletedData; @@ -378,6 +396,9 @@ public Builder includeDeletedData(Boolean includeDeletedData) { return this; } + /** + *

    Whether to include the original data Merge fetched from the third-party to produce these models.

    + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -389,6 +410,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

    Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

    + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; @@ -400,6 +424,9 @@ public Builder includeShellData(Boolean includeShellData) { return this; } + /** + *

    If provided, only objects synced by Merge after this date time will be returned.

    + */ @JsonSetter(value = "modified_after", nulls = Nulls.SKIP) public Builder modifiedAfter(Optional modifiedAfter) { this.modifiedAfter = modifiedAfter; @@ -411,6 +438,9 @@ public Builder modifiedAfter(OffsetDateTime modifiedAfter) { return this; } + /** + *

    If provided, only objects synced by Merge before this date time will be returned.

    + */ @JsonSetter(value = "modified_before", nulls = Nulls.SKIP) public Builder modifiedBefore(Optional modifiedBefore) { this.modifiedBefore = modifiedBefore; @@ -422,6 +452,9 @@ public Builder modifiedBefore(OffsetDateTime modifiedBefore) { return this; } + /** + *

    Number of results to return per page.

    + */ @JsonSetter(value = "page_size", nulls = Nulls.SKIP) public Builder pageSize(Optional pageSize) { this.pageSize = pageSize; @@ -433,6 +466,9 @@ public Builder pageSize(Integer pageSize) { return this; } + /** + *

    The API provider's ID for the given object.

    + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; @@ -444,6 +480,9 @@ public Builder remoteId(String remoteId) { return this; } + /** + *

    If provided, will only return objects created after this datetime.

    + */ @JsonSetter(value = "transaction_date_after", nulls = Nulls.SKIP) public Builder transactionDateAfter(Optional transactionDateAfter) { this.transactionDateAfter = transactionDateAfter; @@ -455,6 +494,9 @@ public Builder transactionDateAfter(OffsetDateTime transactionDateAfter) { return this; } + /** + *

    If provided, will only return objects created before this datetime.

    + */ @JsonSetter(value = "transaction_date_before", nulls = Nulls.SKIP) public Builder transactionDateBefore(Optional transactionDateBefore) { this.transactionDateBefore = transactionDateBefore; diff --git a/src/main/java/com/merge/api/accounting/types/TransactionsRetrieveRequest.java b/src/main/java/com/merge/api/accounting/types/TransactionsRetrieveRequest.java index 573656154..498d3a801 100644 --- a/src/main/java/com/merge/api/accounting/types/TransactionsRetrieveRequest.java +++ b/src/main/java/com/merge/api/accounting/types/TransactionsRetrieveRequest.java @@ -116,6 +116,9 @@ public Builder from(TransactionsRetrieveRequest other) { return this; } + /** + *

    Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.

    + */ @JsonSetter(value = "expand", nulls = Nulls.SKIP) public Builder expand(Optional> expand) { this.expand = expand; @@ -132,6 +135,9 @@ public Builder expand(TransactionsRetrieveRequestExpandItem expand) { return this; } + /** + *

    Whether to include the original data Merge fetched from the third-party to produce these models.

    + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -143,6 +149,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

    Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

    + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; diff --git a/src/main/java/com/merge/api/accounting/types/Type2BbEnum.java b/src/main/java/com/merge/api/accounting/types/Type2BbEnum.java new file mode 100644 index 000000000..22d8fd561 --- /dev/null +++ b/src/main/java/com/merge/api/accounting/types/Type2BbEnum.java @@ -0,0 +1,28 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.merge.api.accounting.types; + +import com.fasterxml.jackson.annotation.JsonValue; + +public enum Type2BbEnum { + INVENTORY("INVENTORY"), + + NON_INVENTORY("NON_INVENTORY"), + + SERVICE("SERVICE"), + + UNKNOWN("UNKNOWN"); + + private final String value; + + Type2BbEnum(String value) { + this.value = value; + } + + @JsonValue + @java.lang.Override + public String toString() { + return this.value; + } +} diff --git a/src/main/java/com/merge/api/accounting/types/VendorCredit.java b/src/main/java/com/merge/api/accounting/types/VendorCredit.java index a7311fbad..e11139317 100644 --- a/src/main/java/com/merge/api/accounting/types/VendorCredit.java +++ b/src/main/java/com/merge/api/accounting/types/VendorCredit.java @@ -39,7 +39,7 @@ public final class VendorCredit { private final Optional totalAmount; - private final Optional currency; + private final Optional currency; private final Optional exchangeRate; @@ -72,7 +72,7 @@ private VendorCredit( Optional transactionDate, Optional vendor, Optional totalAmount, - Optional currency, + Optional currency, Optional exchangeRate, Optional inclusiveOfTax, Optional company, @@ -479,7 +479,7 @@ public Optional getTotalAmount() { * */ @JsonProperty("currency") - public Optional getCurrency() { + public Optional getCurrency() { return currency; } @@ -635,7 +635,7 @@ public static final class Builder { private Optional totalAmount = Optional.empty(); - private Optional currency = Optional.empty(); + private Optional currency = Optional.empty(); private Optional exchangeRate = Optional.empty(); @@ -696,6 +696,9 @@ public Builder id(String id) { return this; } + /** + *

    The third-party API ID of the matching object.

    + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; @@ -707,6 +710,9 @@ public Builder remoteId(String remoteId) { return this; } + /** + *

    The datetime that this object was created by Merge.

    + */ @JsonSetter(value = "created_at", nulls = Nulls.SKIP) public Builder createdAt(Optional createdAt) { this.createdAt = createdAt; @@ -718,6 +724,9 @@ public Builder createdAt(OffsetDateTime createdAt) { return this; } + /** + *

    The datetime that this object was modified by Merge.

    + */ @JsonSetter(value = "modified_at", nulls = Nulls.SKIP) public Builder modifiedAt(Optional modifiedAt) { this.modifiedAt = modifiedAt; @@ -729,6 +738,9 @@ public Builder modifiedAt(OffsetDateTime modifiedAt) { return this; } + /** + *

    The vendor credit's number.

    + */ @JsonSetter(value = "number", nulls = Nulls.SKIP) public Builder number(Optional number) { this.number = number; @@ -740,6 +752,9 @@ public Builder number(String number) { return this; } + /** + *

    The vendor credit's transaction date.

    + */ @JsonSetter(value = "transaction_date", nulls = Nulls.SKIP) public Builder transactionDate(Optional transactionDate) { this.transactionDate = transactionDate; @@ -751,6 +766,9 @@ public Builder transactionDate(OffsetDateTime transactionDate) { return this; } + /** + *

    The vendor that owes the gift or refund.

    + */ @JsonSetter(value = "vendor", nulls = Nulls.SKIP) public Builder vendor(Optional vendor) { this.vendor = vendor; @@ -762,6 +780,9 @@ public Builder vendor(VendorCreditVendor vendor) { return this; } + /** + *

    The vendor credit's total amount.

    + */ @JsonSetter(value = "total_amount", nulls = Nulls.SKIP) public Builder totalAmount(Optional totalAmount) { this.totalAmount = totalAmount; @@ -773,17 +794,331 @@ public Builder totalAmount(Double totalAmount) { return this; } + /** + *

    The vendor credit's currency.

    + *
      + *
    • XUA - ADB Unit of Account
    • + *
    • AFN - Afghan Afghani
    • + *
    • AFA - Afghan Afghani (1927–2002)
    • + *
    • ALL - Albanian Lek
    • + *
    • ALK - Albanian Lek (1946–1965)
    • + *
    • DZD - Algerian Dinar
    • + *
    • ADP - Andorran Peseta
    • + *
    • AOA - Angolan Kwanza
    • + *
    • AOK - Angolan Kwanza (1977–1991)
    • + *
    • AON - Angolan New Kwanza (1990–2000)
    • + *
    • AOR - Angolan Readjusted Kwanza (1995–1999)
    • + *
    • ARA - Argentine Austral
    • + *
    • ARS - Argentine Peso
    • + *
    • ARM - Argentine Peso (1881–1970)
    • + *
    • ARP - Argentine Peso (1983–1985)
    • + *
    • ARL - Argentine Peso Ley (1970–1983)
    • + *
    • AMD - Armenian Dram
    • + *
    • AWG - Aruban Florin
    • + *
    • AUD - Australian Dollar
    • + *
    • ATS - Austrian Schilling
    • + *
    • AZN - Azerbaijani Manat
    • + *
    • AZM - Azerbaijani Manat (1993–2006)
    • + *
    • BSD - Bahamian Dollar
    • + *
    • BHD - Bahraini Dinar
    • + *
    • BDT - Bangladeshi Taka
    • + *
    • BBD - Barbadian Dollar
    • + *
    • BYN - Belarusian Ruble
    • + *
    • BYB - Belarusian Ruble (1994–1999)
    • + *
    • BYR - Belarusian Ruble (2000–2016)
    • + *
    • BEF - Belgian Franc
    • + *
    • BEC - Belgian Franc (convertible)
    • + *
    • BEL - Belgian Franc (financial)
    • + *
    • BZD - Belize Dollar
    • + *
    • BMD - Bermudan Dollar
    • + *
    • BTN - Bhutanese Ngultrum
    • + *
    • BOB - Bolivian Boliviano
    • + *
    • BOL - Bolivian Boliviano (1863–1963)
    • + *
    • BOV - Bolivian Mvdol
    • + *
    • BOP - Bolivian Peso
    • + *
    • BAM - Bosnia-Herzegovina Convertible Mark
    • + *
    • BAD - Bosnia-Herzegovina Dinar (1992–1994)
    • + *
    • BAN - Bosnia-Herzegovina New Dinar (1994–1997)
    • + *
    • BWP - Botswanan Pula
    • + *
    • BRC - Brazilian Cruzado (1986–1989)
    • + *
    • BRZ - Brazilian Cruzeiro (1942–1967)
    • + *
    • BRE - Brazilian Cruzeiro (1990–1993)
    • + *
    • BRR - Brazilian Cruzeiro (1993–1994)
    • + *
    • BRN - Brazilian New Cruzado (1989–1990)
    • + *
    • BRB - Brazilian New Cruzeiro (1967–1986)
    • + *
    • BRL - Brazilian Real
    • + *
    • GBP - British Pound
    • + *
    • BND - Brunei Dollar
    • + *
    • BGL - Bulgarian Hard Lev
    • + *
    • BGN - Bulgarian Lev
    • + *
    • BGO - Bulgarian Lev (1879–1952)
    • + *
    • BGM - Bulgarian Socialist Lev
    • + *
    • BUK - Burmese Kyat
    • + *
    • BIF - Burundian Franc
    • + *
    • XPF - CFP Franc
    • + *
    • KHR - Cambodian Riel
    • + *
    • CAD - Canadian Dollar
    • + *
    • CVE - Cape Verdean Escudo
    • + *
    • KYD - Cayman Islands Dollar
    • + *
    • XAF - Central African CFA Franc
    • + *
    • CLE - Chilean Escudo
    • + *
    • CLP - Chilean Peso
    • + *
    • CLF - Chilean Unit of Account (UF)
    • + *
    • CNX - Chinese People’s Bank Dollar
    • + *
    • CNY - Chinese Yuan
    • + *
    • CNH - Chinese Yuan (offshore)
    • + *
    • COP - Colombian Peso
    • + *
    • COU - Colombian Real Value Unit
    • + *
    • KMF - Comorian Franc
    • + *
    • CDF - Congolese Franc
    • + *
    • CRC - Costa Rican Colón
    • + *
    • HRD - Croatian Dinar
    • + *
    • HRK - Croatian Kuna
    • + *
    • CUC - Cuban Convertible Peso
    • + *
    • CUP - Cuban Peso
    • + *
    • CYP - Cypriot Pound
    • + *
    • CZK - Czech Koruna
    • + *
    • CSK - Czechoslovak Hard Koruna
    • + *
    • DKK - Danish Krone
    • + *
    • DJF - Djiboutian Franc
    • + *
    • DOP - Dominican Peso
    • + *
    • NLG - Dutch Guilder
    • + *
    • XCD - East Caribbean Dollar
    • + *
    • DDM - East German Mark
    • + *
    • ECS - Ecuadorian Sucre
    • + *
    • ECV - Ecuadorian Unit of Constant Value
    • + *
    • EGP - Egyptian Pound
    • + *
    • GQE - Equatorial Guinean Ekwele
    • + *
    • ERN - Eritrean Nakfa
    • + *
    • EEK - Estonian Kroon
    • + *
    • ETB - Ethiopian Birr
    • + *
    • EUR - Euro
    • + *
    • XBA - European Composite Unit
    • + *
    • XEU - European Currency Unit
    • + *
    • XBB - European Monetary Unit
    • + *
    • XBC - European Unit of Account (XBC)
    • + *
    • XBD - European Unit of Account (XBD)
    • + *
    • FKP - Falkland Islands Pound
    • + *
    • FJD - Fijian Dollar
    • + *
    • FIM - Finnish Markka
    • + *
    • FRF - French Franc
    • + *
    • XFO - French Gold Franc
    • + *
    • XFU - French UIC-Franc
    • + *
    • GMD - Gambian Dalasi
    • + *
    • GEK - Georgian Kupon Larit
    • + *
    • GEL - Georgian Lari
    • + *
    • DEM - German Mark
    • + *
    • GHS - Ghanaian Cedi
    • + *
    • GHC - Ghanaian Cedi (1979–2007)
    • + *
    • GIP - Gibraltar Pound
    • + *
    • XAU - Gold
    • + *
    • GRD - Greek Drachma
    • + *
    • GTQ - Guatemalan Quetzal
    • + *
    • GWP - Guinea-Bissau Peso
    • + *
    • GNF - Guinean Franc
    • + *
    • GNS - Guinean Syli
    • + *
    • GYD - Guyanaese Dollar
    • + *
    • HTG - Haitian Gourde
    • + *
    • HNL - Honduran Lempira
    • + *
    • HKD - Hong Kong Dollar
    • + *
    • HUF - Hungarian Forint
    • + *
    • IMP - IMP
    • + *
    • ISK - Icelandic Króna
    • + *
    • ISJ - Icelandic Króna (1918–1981)
    • + *
    • INR - Indian Rupee
    • + *
    • IDR - Indonesian Rupiah
    • + *
    • IRR - Iranian Rial
    • + *
    • IQD - Iraqi Dinar
    • + *
    • IEP - Irish Pound
    • + *
    • ILS - Israeli New Shekel
    • + *
    • ILP - Israeli Pound
    • + *
    • ILR - Israeli Shekel (1980–1985)
    • + *
    • ITL - Italian Lira
    • + *
    • JMD - Jamaican Dollar
    • + *
    • JPY - Japanese Yen
    • + *
    • JOD - Jordanian Dinar
    • + *
    • KZT - Kazakhstani Tenge
    • + *
    • KES - Kenyan Shilling
    • + *
    • KWD - Kuwaiti Dinar
    • + *
    • KGS - Kyrgystani Som
    • + *
    • LAK - Laotian Kip
    • + *
    • LVL - Latvian Lats
    • + *
    • LVR - Latvian Ruble
    • + *
    • LBP - Lebanese Pound
    • + *
    • LSL - Lesotho Loti
    • + *
    • LRD - Liberian Dollar
    • + *
    • LYD - Libyan Dinar
    • + *
    • LTL - Lithuanian Litas
    • + *
    • LTT - Lithuanian Talonas
    • + *
    • LUL - Luxembourg Financial Franc
    • + *
    • LUC - Luxembourgian Convertible Franc
    • + *
    • LUF - Luxembourgian Franc
    • + *
    • MOP - Macanese Pataca
    • + *
    • MKD - Macedonian Denar
    • + *
    • MKN - Macedonian Denar (1992–1993)
    • + *
    • MGA - Malagasy Ariary
    • + *
    • MGF - Malagasy Franc
    • + *
    • MWK - Malawian Kwacha
    • + *
    • MYR - Malaysian Ringgit
    • + *
    • MVR - Maldivian Rufiyaa
    • + *
    • MVP - Maldivian Rupee (1947–1981)
    • + *
    • MLF - Malian Franc
    • + *
    • MTL - Maltese Lira
    • + *
    • MTP - Maltese Pound
    • + *
    • MRU - Mauritanian Ouguiya
    • + *
    • MRO - Mauritanian Ouguiya (1973–2017)
    • + *
    • MUR - Mauritian Rupee
    • + *
    • MXV - Mexican Investment Unit
    • + *
    • MXN - Mexican Peso
    • + *
    • MXP - Mexican Silver Peso (1861–1992)
    • + *
    • MDC - Moldovan Cupon
    • + *
    • MDL - Moldovan Leu
    • + *
    • MCF - Monegasque Franc
    • + *
    • MNT - Mongolian Tugrik
    • + *
    • MAD - Moroccan Dirham
    • + *
    • MAF - Moroccan Franc
    • + *
    • MZE - Mozambican Escudo
    • + *
    • MZN - Mozambican Metical
    • + *
    • MZM - Mozambican Metical (1980–2006)
    • + *
    • MMK - Myanmar Kyat
    • + *
    • NAD - Namibian Dollar
    • + *
    • NPR - Nepalese Rupee
    • + *
    • ANG - Netherlands Antillean Guilder
    • + *
    • TWD - New Taiwan Dollar
    • + *
    • NZD - New Zealand Dollar
    • + *
    • NIO - Nicaraguan Córdoba
    • + *
    • NIC - Nicaraguan Córdoba (1988–1991)
    • + *
    • NGN - Nigerian Naira
    • + *
    • KPW - North Korean Won
    • + *
    • NOK - Norwegian Krone
    • + *
    • OMR - Omani Rial
    • + *
    • PKR - Pakistani Rupee
    • + *
    • XPD - Palladium
    • + *
    • PAB - Panamanian Balboa
    • + *
    • PGK - Papua New Guinean Kina
    • + *
    • PYG - Paraguayan Guarani
    • + *
    • PEI - Peruvian Inti
    • + *
    • PEN - Peruvian Sol
    • + *
    • PES - Peruvian Sol (1863–1965)
    • + *
    • PHP - Philippine Peso
    • + *
    • XPT - Platinum
    • + *
    • PLN - Polish Zloty
    • + *
    • PLZ - Polish Zloty (1950–1995)
    • + *
    • PTE - Portuguese Escudo
    • + *
    • GWE - Portuguese Guinea Escudo
    • + *
    • QAR - Qatari Rial
    • + *
    • XRE - RINET Funds
    • + *
    • RHD - Rhodesian Dollar
    • + *
    • RON - Romanian Leu
    • + *
    • ROL - Romanian Leu (1952–2006)
    • + *
    • RUB - Russian Ruble
    • + *
    • RUR - Russian Ruble (1991–1998)
    • + *
    • RWF - Rwandan Franc
    • + *
    • SVC - Salvadoran Colón
    • + *
    • WST - Samoan Tala
    • + *
    • SAR - Saudi Riyal
    • + *
    • RSD - Serbian Dinar
    • + *
    • CSD - Serbian Dinar (2002–2006)
    • + *
    • SCR - Seychellois Rupee
    • + *
    • SLL - Sierra Leonean Leone
    • + *
    • XAG - Silver
    • + *
    • SGD - Singapore Dollar
    • + *
    • SKK - Slovak Koruna
    • + *
    • SIT - Slovenian Tolar
    • + *
    • SBD - Solomon Islands Dollar
    • + *
    • SOS - Somali Shilling
    • + *
    • ZAR - South African Rand
    • + *
    • ZAL - South African Rand (financial)
    • + *
    • KRH - South Korean Hwan (1953–1962)
    • + *
    • KRW - South Korean Won
    • + *
    • KRO - South Korean Won (1945–1953)
    • + *
    • SSP - South Sudanese Pound
    • + *
    • SUR - Soviet Rouble
    • + *
    • ESP - Spanish Peseta
    • + *
    • ESA - Spanish Peseta (A account)
    • + *
    • ESB - Spanish Peseta (convertible account)
    • + *
    • XDR - Special Drawing Rights
    • + *
    • LKR - Sri Lankan Rupee
    • + *
    • SHP - St. Helena Pound
    • + *
    • XSU - Sucre
    • + *
    • SDD - Sudanese Dinar (1992–2007)
    • + *
    • SDG - Sudanese Pound
    • + *
    • SDP - Sudanese Pound (1957–1998)
    • + *
    • SRD - Surinamese Dollar
    • + *
    • SRG - Surinamese Guilder
    • + *
    • SZL - Swazi Lilangeni
    • + *
    • SEK - Swedish Krona
    • + *
    • CHF - Swiss Franc
    • + *
    • SYP - Syrian Pound
    • + *
    • STN - São Tomé & Príncipe Dobra
    • + *
    • STD - São Tomé & Príncipe Dobra (1977–2017)
    • + *
    • TVD - TVD
    • + *
    • TJR - Tajikistani Ruble
    • + *
    • TJS - Tajikistani Somoni
    • + *
    • TZS - Tanzanian Shilling
    • + *
    • XTS - Testing Currency Code
    • + *
    • THB - Thai Baht
    • + *
    • XXX - The codes assigned for transactions where no currency is involved
    • + *
    • TPE - Timorese Escudo
    • + *
    • TOP - Tongan Paʻanga
    • + *
    • TTD - Trinidad & Tobago Dollar
    • + *
    • TND - Tunisian Dinar
    • + *
    • TRY - Turkish Lira
    • + *
    • TRL - Turkish Lira (1922–2005)
    • + *
    • TMT - Turkmenistani Manat
    • + *
    • TMM - Turkmenistani Manat (1993–2009)
    • + *
    • USD - US Dollar
    • + *
    • USN - US Dollar (Next day)
    • + *
    • USS - US Dollar (Same day)
    • + *
    • UGX - Ugandan Shilling
    • + *
    • UGS - Ugandan Shilling (1966–1987)
    • + *
    • UAH - Ukrainian Hryvnia
    • + *
    • UAK - Ukrainian Karbovanets
    • + *
    • AED - United Arab Emirates Dirham
    • + *
    • UYW - Uruguayan Nominal Wage Index Unit
    • + *
    • UYU - Uruguayan Peso
    • + *
    • UYP - Uruguayan Peso (1975–1993)
    • + *
    • UYI - Uruguayan Peso (Indexed Units)
    • + *
    • UZS - Uzbekistani Som
    • + *
    • VUV - Vanuatu Vatu
    • + *
    • VES - Venezuelan Bolívar
    • + *
    • VEB - Venezuelan Bolívar (1871–2008)
    • + *
    • VEF - Venezuelan Bolívar (2008–2018)
    • + *
    • VND - Vietnamese Dong
    • + *
    • VNN - Vietnamese Dong (1978–1985)
    • + *
    • CHE - WIR Euro
    • + *
    • CHW - WIR Franc
    • + *
    • XOF - West African CFA Franc
    • + *
    • YDD - Yemeni Dinar
    • + *
    • YER - Yemeni Rial
    • + *
    • YUN - Yugoslavian Convertible Dinar (1990–1992)
    • + *
    • YUD - Yugoslavian Hard Dinar (1966–1990)
    • + *
    • YUM - Yugoslavian New Dinar (1994–2002)
    • + *
    • YUR - Yugoslavian Reformed Dinar (1992–1993)
    • + *
    • ZWN - ZWN
    • + *
    • ZRN - Zairean New Zaire (1993–1998)
    • + *
    • ZRZ - Zairean Zaire (1971–1993)
    • + *
    • ZMW - Zambian Kwacha
    • + *
    • ZMK - Zambian Kwacha (1968–2012)
    • + *
    • ZWD - Zimbabwean Dollar (1980–2008)
    • + *
    • ZWR - Zimbabwean Dollar (2008)
    • + *
    • ZWL - Zimbabwean Dollar (2009)
    • + *
    + */ @JsonSetter(value = "currency", nulls = Nulls.SKIP) - public Builder currency(Optional currency) { + public Builder currency(Optional currency) { this.currency = currency; return this; } - public Builder currency(TransactionCurrencyEnum currency) { + public Builder currency(VendorCreditCurrency currency) { this.currency = Optional.ofNullable(currency); return this; } + /** + *

    The vendor credit's exchange rate.

    + */ @JsonSetter(value = "exchange_rate", nulls = Nulls.SKIP) public Builder exchangeRate(Optional exchangeRate) { this.exchangeRate = exchangeRate; @@ -795,6 +1130,9 @@ public Builder exchangeRate(String exchangeRate) { return this; } + /** + *

    If the transaction is inclusive or exclusive of tax. True if inclusive, False if exclusive.

    + */ @JsonSetter(value = "inclusive_of_tax", nulls = Nulls.SKIP) public Builder inclusiveOfTax(Optional inclusiveOfTax) { this.inclusiveOfTax = inclusiveOfTax; @@ -806,6 +1144,9 @@ public Builder inclusiveOfTax(Boolean inclusiveOfTax) { return this; } + /** + *

    The company the vendor credit belongs to.

    + */ @JsonSetter(value = "company", nulls = Nulls.SKIP) public Builder company(Optional company) { this.company = company; @@ -840,6 +1181,9 @@ public Builder trackingCategories(ListA list of VendorCredit Applied to Lines objects.

    + */ @JsonSetter(value = "applied_to_lines", nulls = Nulls.SKIP) public Builder appliedToLines(Optional> appliedToLines) { this.appliedToLines = appliedToLines; @@ -851,6 +1195,9 @@ public Builder appliedToLines(List applied return this; } + /** + *

    Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

    + */ @JsonSetter(value = "remote_was_deleted", nulls = Nulls.SKIP) public Builder remoteWasDeleted(Optional remoteWasDeleted) { this.remoteWasDeleted = remoteWasDeleted; @@ -862,6 +1209,9 @@ public Builder remoteWasDeleted(Boolean remoteWasDeleted) { return this; } + /** + *

    The accounting period that the VendorCredit was generated in.

    + */ @JsonSetter(value = "accounting_period", nulls = Nulls.SKIP) public Builder accountingPeriod(Optional accountingPeriod) { this.accountingPeriod = accountingPeriod; diff --git a/src/main/java/com/merge/api/accounting/types/VendorCreditApplyLineForInvoice.java b/src/main/java/com/merge/api/accounting/types/VendorCreditApplyLineForInvoice.java index 6384f1ec7..f498806e8 100644 --- a/src/main/java/com/merge/api/accounting/types/VendorCreditApplyLineForInvoice.java +++ b/src/main/java/com/merge/api/accounting/types/VendorCreditApplyLineForInvoice.java @@ -183,6 +183,9 @@ public Builder from(VendorCreditApplyLineForInvoice other) { return this; } + /** + *

    The third-party API ID of the matching object.

    + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; @@ -194,6 +197,9 @@ public Builder remoteId(String remoteId) { return this; } + /** + *

    The datetime that this object was created by Merge.

    + */ @JsonSetter(value = "created_at", nulls = Nulls.SKIP) public Builder createdAt(Optional createdAt) { this.createdAt = createdAt; @@ -205,6 +211,9 @@ public Builder createdAt(OffsetDateTime createdAt) { return this; } + /** + *

    The datetime that this object was modified by Merge.

    + */ @JsonSetter(value = "modified_at", nulls = Nulls.SKIP) public Builder modifiedAt(Optional modifiedAt) { this.modifiedAt = modifiedAt; @@ -227,6 +236,9 @@ public Builder vendorCredit(VendorCreditApplyLineForInvoiceVendorCredit vendorCr return this; } + /** + *

    Date that the vendor credit is applied to the invoice.

    + */ @JsonSetter(value = "applied_date", nulls = Nulls.SKIP) public Builder appliedDate(Optional appliedDate) { this.appliedDate = appliedDate; @@ -238,6 +250,9 @@ public Builder appliedDate(OffsetDateTime appliedDate) { return this; } + /** + *

    The amount of the VendorCredit applied to the invoice.

    + */ @JsonSetter(value = "applied_amount", nulls = Nulls.SKIP) public Builder appliedAmount(Optional appliedAmount) { this.appliedAmount = appliedAmount; @@ -249,6 +264,9 @@ public Builder appliedAmount(String appliedAmount) { return this; } + /** + *

    Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

    + */ @JsonSetter(value = "remote_was_deleted", nulls = Nulls.SKIP) public Builder remoteWasDeleted(Optional remoteWasDeleted) { this.remoteWasDeleted = remoteWasDeleted; diff --git a/src/main/java/com/merge/api/accounting/types/VendorCreditApplyLineForVendorCredit.java b/src/main/java/com/merge/api/accounting/types/VendorCreditApplyLineForVendorCredit.java index cd2bc3d5f..972776945 100644 --- a/src/main/java/com/merge/api/accounting/types/VendorCreditApplyLineForVendorCredit.java +++ b/src/main/java/com/merge/api/accounting/types/VendorCreditApplyLineForVendorCredit.java @@ -184,6 +184,9 @@ public Builder from(VendorCreditApplyLineForVendorCredit other) { return this; } + /** + *

    The third-party API ID of the matching object.

    + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; @@ -195,6 +198,9 @@ public Builder remoteId(String remoteId) { return this; } + /** + *

    The datetime that this object was created by Merge.

    + */ @JsonSetter(value = "created_at", nulls = Nulls.SKIP) public Builder createdAt(Optional createdAt) { this.createdAt = createdAt; @@ -206,6 +212,9 @@ public Builder createdAt(OffsetDateTime createdAt) { return this; } + /** + *

    The datetime that this object was modified by Merge.

    + */ @JsonSetter(value = "modified_at", nulls = Nulls.SKIP) public Builder modifiedAt(Optional modifiedAt) { this.modifiedAt = modifiedAt; @@ -228,6 +237,9 @@ public Builder invoice(VendorCreditApplyLineForVendorCreditInvoice invoice) { return this; } + /** + *

    Date that the vendor credit is applied to the invoice.

    + */ @JsonSetter(value = "applied_date", nulls = Nulls.SKIP) public Builder appliedDate(Optional appliedDate) { this.appliedDate = appliedDate; @@ -239,6 +251,9 @@ public Builder appliedDate(OffsetDateTime appliedDate) { return this; } + /** + *

    The amount of the VendorCredit applied to the invoice.

    + */ @JsonSetter(value = "applied_amount", nulls = Nulls.SKIP) public Builder appliedAmount(Optional appliedAmount) { this.appliedAmount = appliedAmount; @@ -250,6 +265,9 @@ public Builder appliedAmount(String appliedAmount) { return this; } + /** + *

    Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

    + */ @JsonSetter(value = "remote_was_deleted", nulls = Nulls.SKIP) public Builder remoteWasDeleted(Optional remoteWasDeleted) { this.remoteWasDeleted = remoteWasDeleted; diff --git a/src/main/java/com/merge/api/accounting/types/VendorCreditApplyLineForVendorCreditRequest.java b/src/main/java/com/merge/api/accounting/types/VendorCreditApplyLineForVendorCreditRequest.java index b4a6481aa..0e6b42900 100644 --- a/src/main/java/com/merge/api/accounting/types/VendorCreditApplyLineForVendorCreditRequest.java +++ b/src/main/java/com/merge/api/accounting/types/VendorCreditApplyLineForVendorCreditRequest.java @@ -162,6 +162,9 @@ public Builder from(VendorCreditApplyLineForVendorCreditRequest other) { return this; } + /** + *

    The third-party API ID of the matching object.

    + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; @@ -184,6 +187,9 @@ public Builder invoice(VendorCreditApplyLineForVendorCreditRequestInvoice invoic return this; } + /** + *

    Date that the vendor credit is applied to the invoice.

    + */ @JsonSetter(value = "applied_date", nulls = Nulls.SKIP) public Builder appliedDate(Optional appliedDate) { this.appliedDate = appliedDate; @@ -195,6 +201,9 @@ public Builder appliedDate(OffsetDateTime appliedDate) { return this; } + /** + *

    The amount of the VendorCredit applied to the invoice.

    + */ @JsonSetter(value = "applied_amount", nulls = Nulls.SKIP) public Builder appliedAmount(Optional appliedAmount) { this.appliedAmount = appliedAmount; diff --git a/src/main/java/com/merge/api/accounting/types/VendorCreditCurrency.java b/src/main/java/com/merge/api/accounting/types/VendorCreditCurrency.java new file mode 100644 index 000000000..f8b73786b --- /dev/null +++ b/src/main/java/com/merge/api/accounting/types/VendorCreditCurrency.java @@ -0,0 +1,95 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.merge.api.accounting.types; + +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.databind.DeserializationContext; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.fasterxml.jackson.databind.deser.std.StdDeserializer; +import com.merge.api.core.ObjectMappers; +import java.io.IOException; +import java.util.Objects; + +@JsonDeserialize(using = VendorCreditCurrency.Deserializer.class) +public final class VendorCreditCurrency { + private final Object value; + + private final int type; + + private VendorCreditCurrency(Object value, int type) { + this.value = value; + this.type = type; + } + + @JsonValue + public Object get() { + return this.value; + } + + @SuppressWarnings("unchecked") + public T visit(Visitor visitor) { + if (this.type == 0) { + return visitor.visit((TransactionCurrencyEnum) this.value); + } else if (this.type == 1) { + return visitor.visit((String) this.value); + } + throw new IllegalStateException("Failed to visit value. This should never happen."); + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof VendorCreditCurrency && equalTo((VendorCreditCurrency) other); + } + + private boolean equalTo(VendorCreditCurrency other) { + return value.equals(other.value); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.value); + } + + @java.lang.Override + public String toString() { + return this.value.toString(); + } + + public static VendorCreditCurrency of(TransactionCurrencyEnum value) { + return new VendorCreditCurrency(value, 0); + } + + public static VendorCreditCurrency of(String value) { + return new VendorCreditCurrency(value, 1); + } + + public interface Visitor { + T visit(TransactionCurrencyEnum value); + + T visit(String value); + } + + static final class Deserializer extends StdDeserializer { + Deserializer() { + super(VendorCreditCurrency.class); + } + + @java.lang.Override + public VendorCreditCurrency deserialize(JsonParser p, DeserializationContext context) throws IOException { + Object value = p.readValueAs(Object.class); + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, TransactionCurrencyEnum.class)); + } catch (IllegalArgumentException e) { + } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, String.class)); + } catch (IllegalArgumentException e) { + } + throw new JsonParseException(p, "Failed to deserialize"); + } + } +} diff --git a/src/main/java/com/merge/api/accounting/types/VendorCreditEndpointRequest.java b/src/main/java/com/merge/api/accounting/types/VendorCreditEndpointRequest.java index 9241a1587..74955dff9 100644 --- a/src/main/java/com/merge/api/accounting/types/VendorCreditEndpointRequest.java +++ b/src/main/java/com/merge/api/accounting/types/VendorCreditEndpointRequest.java @@ -99,10 +99,16 @@ public interface ModelStage { public interface _FinalStage { VendorCreditEndpointRequest build(); + /** + *

    Whether to include debug fields (such as log file links) in the response.

    + */ _FinalStage isDebugMode(Optional isDebugMode); _FinalStage isDebugMode(Boolean isDebugMode); + /** + *

    Whether or not third-party updates should be run asynchronously.

    + */ _FinalStage runAsync(Optional runAsync); _FinalStage runAsync(Boolean runAsync); @@ -146,6 +152,9 @@ public _FinalStage runAsync(Boolean runAsync) { return this; } + /** + *

    Whether or not third-party updates should be run asynchronously.

    + */ @java.lang.Override @JsonSetter(value = "run_async", nulls = Nulls.SKIP) public _FinalStage runAsync(Optional runAsync) { @@ -163,6 +172,9 @@ public _FinalStage isDebugMode(Boolean isDebugMode) { return this; } + /** + *

    Whether to include debug fields (such as log file links) in the response.

    + */ @java.lang.Override @JsonSetter(value = "is_debug_mode", nulls = Nulls.SKIP) public _FinalStage isDebugMode(Optional isDebugMode) { diff --git a/src/main/java/com/merge/api/accounting/types/VendorCreditLine.java b/src/main/java/com/merge/api/accounting/types/VendorCreditLine.java index 6302f41d9..6e4fbad84 100644 --- a/src/main/java/com/merge/api/accounting/types/VendorCreditLine.java +++ b/src/main/java/com/merge/api/accounting/types/VendorCreditLine.java @@ -42,6 +42,10 @@ public final class VendorCreditLine { private final Optional company; + private final Optional project; + + private final Optional contact; + private final Optional taxRate; private final Optional exchangeRate; @@ -61,6 +65,8 @@ private VendorCreditLine( Optional description, Optional account, Optional company, + Optional project, + Optional contact, Optional taxRate, Optional exchangeRate, Optional remoteWasDeleted, @@ -75,6 +81,8 @@ private VendorCreditLine( this.description = description; this.account = account; this.company = company; + this.project = project; + this.contact = contact; this.taxRate = taxRate; this.exchangeRate = exchangeRate; this.remoteWasDeleted = remoteWasDeleted; @@ -158,6 +166,16 @@ public Optional getCompany() { return company; } + @JsonProperty("project") + public Optional getProject() { + return project; + } + + @JsonProperty("contact") + public Optional getContact() { + return contact; + } + /** * @return The tax rate that applies to this line item. */ @@ -204,6 +222,8 @@ private boolean equalTo(VendorCreditLine other) { && description.equals(other.description) && account.equals(other.account) && company.equals(other.company) + && project.equals(other.project) + && contact.equals(other.contact) && taxRate.equals(other.taxRate) && exchangeRate.equals(other.exchangeRate) && remoteWasDeleted.equals(other.remoteWasDeleted); @@ -222,6 +242,8 @@ public int hashCode() { this.description, this.account, this.company, + this.project, + this.contact, this.taxRate, this.exchangeRate, this.remoteWasDeleted); @@ -258,6 +280,10 @@ public static final class Builder { private Optional company = Optional.empty(); + private Optional project = Optional.empty(); + + private Optional contact = Optional.empty(); + private Optional taxRate = Optional.empty(); private Optional exchangeRate = Optional.empty(); @@ -280,6 +306,8 @@ public Builder from(VendorCreditLine other) { description(other.getDescription()); account(other.getAccount()); company(other.getCompany()); + project(other.getProject()); + contact(other.getContact()); taxRate(other.getTaxRate()); exchangeRate(other.getExchangeRate()); remoteWasDeleted(other.getRemoteWasDeleted()); @@ -297,6 +325,9 @@ public Builder id(String id) { return this; } + /** + *

    The third-party API ID of the matching object.

    + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; @@ -308,6 +339,9 @@ public Builder remoteId(String remoteId) { return this; } + /** + *

    The datetime that this object was created by Merge.

    + */ @JsonSetter(value = "created_at", nulls = Nulls.SKIP) public Builder createdAt(Optional createdAt) { this.createdAt = createdAt; @@ -319,6 +353,9 @@ public Builder createdAt(OffsetDateTime createdAt) { return this; } + /** + *

    The datetime that this object was modified by Merge.

    + */ @JsonSetter(value = "modified_at", nulls = Nulls.SKIP) public Builder modifiedAt(Optional modifiedAt) { this.modifiedAt = modifiedAt; @@ -330,6 +367,9 @@ public Builder modifiedAt(OffsetDateTime modifiedAt) { return this; } + /** + *

    The full value of the credit.

    + */ @JsonSetter(value = "net_amount", nulls = Nulls.SKIP) public Builder netAmount(Optional netAmount) { this.netAmount = netAmount; @@ -341,6 +381,9 @@ public Builder netAmount(Double netAmount) { return this; } + /** + *

    The line's associated tracking category.

    + */ @JsonSetter(value = "tracking_category", nulls = Nulls.SKIP) public Builder trackingCategory(Optional trackingCategory) { this.trackingCategory = trackingCategory; @@ -352,6 +395,9 @@ public Builder trackingCategory(String trackingCategory) { return this; } + /** + *

    The vendor credit line item's associated tracking categories.

    + */ @JsonSetter(value = "tracking_categories", nulls = Nulls.SKIP) public Builder trackingCategories(Optional>> trackingCategories) { this.trackingCategories = trackingCategories; @@ -363,6 +409,9 @@ public Builder trackingCategories(List> trackingCategories) { return this; } + /** + *

    The line's description.

    + */ @JsonSetter(value = "description", nulls = Nulls.SKIP) public Builder description(Optional description) { this.description = description; @@ -374,6 +423,9 @@ public Builder description(String description) { return this; } + /** + *

    The line's account.

    + */ @JsonSetter(value = "account", nulls = Nulls.SKIP) public Builder account(Optional account) { this.account = account; @@ -385,6 +437,9 @@ public Builder account(VendorCreditLineAccount account) { return this; } + /** + *

    The company the line belongs to.

    + */ @JsonSetter(value = "company", nulls = Nulls.SKIP) public Builder company(Optional company) { this.company = company; @@ -396,6 +451,31 @@ public Builder company(String company) { return this; } + @JsonSetter(value = "project", nulls = Nulls.SKIP) + public Builder project(Optional project) { + this.project = project; + return this; + } + + public Builder project(VendorCreditLineProject project) { + this.project = Optional.ofNullable(project); + return this; + } + + @JsonSetter(value = "contact", nulls = Nulls.SKIP) + public Builder contact(Optional contact) { + this.contact = contact; + return this; + } + + public Builder contact(VendorCreditLineContact contact) { + this.contact = Optional.ofNullable(contact); + return this; + } + + /** + *

    The tax rate that applies to this line item.

    + */ @JsonSetter(value = "tax_rate", nulls = Nulls.SKIP) public Builder taxRate(Optional taxRate) { this.taxRate = taxRate; @@ -407,6 +487,9 @@ public Builder taxRate(String taxRate) { return this; } + /** + *

    The vendor credit line item's exchange rate.

    + */ @JsonSetter(value = "exchange_rate", nulls = Nulls.SKIP) public Builder exchangeRate(Optional exchangeRate) { this.exchangeRate = exchangeRate; @@ -418,6 +501,9 @@ public Builder exchangeRate(String exchangeRate) { return this; } + /** + *

    Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

    + */ @JsonSetter(value = "remote_was_deleted", nulls = Nulls.SKIP) public Builder remoteWasDeleted(Optional remoteWasDeleted) { this.remoteWasDeleted = remoteWasDeleted; @@ -441,6 +527,8 @@ public VendorCreditLine build() { description, account, company, + project, + contact, taxRate, exchangeRate, remoteWasDeleted, diff --git a/src/main/java/com/merge/api/accounting/types/VendorCreditLineContact.java b/src/main/java/com/merge/api/accounting/types/VendorCreditLineContact.java new file mode 100644 index 000000000..28b27d5d2 --- /dev/null +++ b/src/main/java/com/merge/api/accounting/types/VendorCreditLineContact.java @@ -0,0 +1,95 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.merge.api.accounting.types; + +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.databind.DeserializationContext; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.fasterxml.jackson.databind.deser.std.StdDeserializer; +import com.merge.api.core.ObjectMappers; +import java.io.IOException; +import java.util.Objects; + +@JsonDeserialize(using = VendorCreditLineContact.Deserializer.class) +public final class VendorCreditLineContact { + private final Object value; + + private final int type; + + private VendorCreditLineContact(Object value, int type) { + this.value = value; + this.type = type; + } + + @JsonValue + public Object get() { + return this.value; + } + + @SuppressWarnings("unchecked") + public T visit(Visitor visitor) { + if (this.type == 0) { + return visitor.visit((String) this.value); + } else if (this.type == 1) { + return visitor.visit((Contact) this.value); + } + throw new IllegalStateException("Failed to visit value. This should never happen."); + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof VendorCreditLineContact && equalTo((VendorCreditLineContact) other); + } + + private boolean equalTo(VendorCreditLineContact other) { + return value.equals(other.value); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.value); + } + + @java.lang.Override + public String toString() { + return this.value.toString(); + } + + public static VendorCreditLineContact of(String value) { + return new VendorCreditLineContact(value, 0); + } + + public static VendorCreditLineContact of(Contact value) { + return new VendorCreditLineContact(value, 1); + } + + public interface Visitor { + T visit(String value); + + T visit(Contact value); + } + + static final class Deserializer extends StdDeserializer { + Deserializer() { + super(VendorCreditLineContact.class); + } + + @java.lang.Override + public VendorCreditLineContact deserialize(JsonParser p, DeserializationContext context) throws IOException { + Object value = p.readValueAs(Object.class); + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, String.class)); + } catch (IllegalArgumentException e) { + } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, Contact.class)); + } catch (IllegalArgumentException e) { + } + throw new JsonParseException(p, "Failed to deserialize"); + } + } +} diff --git a/src/main/java/com/merge/api/accounting/types/VendorCreditLineProject.java b/src/main/java/com/merge/api/accounting/types/VendorCreditLineProject.java new file mode 100644 index 000000000..006a165f7 --- /dev/null +++ b/src/main/java/com/merge/api/accounting/types/VendorCreditLineProject.java @@ -0,0 +1,95 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.merge.api.accounting.types; + +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.databind.DeserializationContext; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.fasterxml.jackson.databind.deser.std.StdDeserializer; +import com.merge.api.core.ObjectMappers; +import java.io.IOException; +import java.util.Objects; + +@JsonDeserialize(using = VendorCreditLineProject.Deserializer.class) +public final class VendorCreditLineProject { + private final Object value; + + private final int type; + + private VendorCreditLineProject(Object value, int type) { + this.value = value; + this.type = type; + } + + @JsonValue + public Object get() { + return this.value; + } + + @SuppressWarnings("unchecked") + public T visit(Visitor visitor) { + if (this.type == 0) { + return visitor.visit((String) this.value); + } else if (this.type == 1) { + return visitor.visit((Project) this.value); + } + throw new IllegalStateException("Failed to visit value. This should never happen."); + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof VendorCreditLineProject && equalTo((VendorCreditLineProject) other); + } + + private boolean equalTo(VendorCreditLineProject other) { + return value.equals(other.value); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.value); + } + + @java.lang.Override + public String toString() { + return this.value.toString(); + } + + public static VendorCreditLineProject of(String value) { + return new VendorCreditLineProject(value, 0); + } + + public static VendorCreditLineProject of(Project value) { + return new VendorCreditLineProject(value, 1); + } + + public interface Visitor { + T visit(String value); + + T visit(Project value); + } + + static final class Deserializer extends StdDeserializer { + Deserializer() { + super(VendorCreditLineProject.class); + } + + @java.lang.Override + public VendorCreditLineProject deserialize(JsonParser p, DeserializationContext context) throws IOException { + Object value = p.readValueAs(Object.class); + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, String.class)); + } catch (IllegalArgumentException e) { + } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, Project.class)); + } catch (IllegalArgumentException e) { + } + throw new JsonParseException(p, "Failed to deserialize"); + } + } +} diff --git a/src/main/java/com/merge/api/accounting/types/VendorCreditLineRequest.java b/src/main/java/com/merge/api/accounting/types/VendorCreditLineRequest.java index 99969da9a..d1beb04ec 100644 --- a/src/main/java/com/merge/api/accounting/types/VendorCreditLineRequest.java +++ b/src/main/java/com/merge/api/accounting/types/VendorCreditLineRequest.java @@ -36,6 +36,10 @@ public final class VendorCreditLineRequest { private final Optional company; + private final Optional project; + + private final Optional contact; + private final Optional taxRate; private final Optional exchangeRate; @@ -54,6 +58,8 @@ private VendorCreditLineRequest( Optional description, Optional account, Optional company, + Optional project, + Optional contact, Optional taxRate, Optional exchangeRate, Optional> integrationParams, @@ -66,6 +72,8 @@ private VendorCreditLineRequest( this.description = description; this.account = account; this.company = company; + this.project = project; + this.contact = contact; this.taxRate = taxRate; this.exchangeRate = exchangeRate; this.integrationParams = integrationParams; @@ -129,6 +137,16 @@ public Optional getCompany() { return company; } + @JsonProperty("project") + public Optional getProject() { + return project; + } + + @JsonProperty("contact") + public Optional getContact() { + return contact; + } + /** * @return The tax rate that applies to this line item. */ @@ -174,6 +192,8 @@ private boolean equalTo(VendorCreditLineRequest other) { && description.equals(other.description) && account.equals(other.account) && company.equals(other.company) + && project.equals(other.project) + && contact.equals(other.contact) && taxRate.equals(other.taxRate) && exchangeRate.equals(other.exchangeRate) && integrationParams.equals(other.integrationParams) @@ -190,6 +210,8 @@ public int hashCode() { this.description, this.account, this.company, + this.project, + this.contact, this.taxRate, this.exchangeRate, this.integrationParams, @@ -221,6 +243,10 @@ public static final class Builder { private Optional company = Optional.empty(); + private Optional project = Optional.empty(); + + private Optional contact = Optional.empty(); + private Optional taxRate = Optional.empty(); private Optional exchangeRate = Optional.empty(); @@ -242,6 +268,8 @@ public Builder from(VendorCreditLineRequest other) { description(other.getDescription()); account(other.getAccount()); company(other.getCompany()); + project(other.getProject()); + contact(other.getContact()); taxRate(other.getTaxRate()); exchangeRate(other.getExchangeRate()); integrationParams(other.getIntegrationParams()); @@ -249,6 +277,9 @@ public Builder from(VendorCreditLineRequest other) { return this; } + /** + *

    The third-party API ID of the matching object.

    + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; @@ -260,6 +291,9 @@ public Builder remoteId(String remoteId) { return this; } + /** + *

    The full value of the credit.

    + */ @JsonSetter(value = "net_amount", nulls = Nulls.SKIP) public Builder netAmount(Optional netAmount) { this.netAmount = netAmount; @@ -271,6 +305,9 @@ public Builder netAmount(Double netAmount) { return this; } + /** + *

    The line's associated tracking category.

    + */ @JsonSetter(value = "tracking_category", nulls = Nulls.SKIP) public Builder trackingCategory(Optional trackingCategory) { this.trackingCategory = trackingCategory; @@ -282,6 +319,9 @@ public Builder trackingCategory(String trackingCategory) { return this; } + /** + *

    The vendor credit line item's associated tracking categories.

    + */ @JsonSetter(value = "tracking_categories", nulls = Nulls.SKIP) public Builder trackingCategories(Optional>> trackingCategories) { this.trackingCategories = trackingCategories; @@ -293,6 +333,9 @@ public Builder trackingCategories(List> trackingCategories) { return this; } + /** + *

    The line's description.

    + */ @JsonSetter(value = "description", nulls = Nulls.SKIP) public Builder description(Optional description) { this.description = description; @@ -304,6 +347,9 @@ public Builder description(String description) { return this; } + /** + *

    The line's account.

    + */ @JsonSetter(value = "account", nulls = Nulls.SKIP) public Builder account(Optional account) { this.account = account; @@ -315,6 +361,9 @@ public Builder account(VendorCreditLineRequestAccount account) { return this; } + /** + *

    The company the line belongs to.

    + */ @JsonSetter(value = "company", nulls = Nulls.SKIP) public Builder company(Optional company) { this.company = company; @@ -326,6 +375,31 @@ public Builder company(String company) { return this; } + @JsonSetter(value = "project", nulls = Nulls.SKIP) + public Builder project(Optional project) { + this.project = project; + return this; + } + + public Builder project(VendorCreditLineRequestProject project) { + this.project = Optional.ofNullable(project); + return this; + } + + @JsonSetter(value = "contact", nulls = Nulls.SKIP) + public Builder contact(Optional contact) { + this.contact = contact; + return this; + } + + public Builder contact(VendorCreditLineRequestContact contact) { + this.contact = Optional.ofNullable(contact); + return this; + } + + /** + *

    The tax rate that applies to this line item.

    + */ @JsonSetter(value = "tax_rate", nulls = Nulls.SKIP) public Builder taxRate(Optional taxRate) { this.taxRate = taxRate; @@ -337,6 +411,9 @@ public Builder taxRate(String taxRate) { return this; } + /** + *

    The vendor credit line item's exchange rate.

    + */ @JsonSetter(value = "exchange_rate", nulls = Nulls.SKIP) public Builder exchangeRate(Optional exchangeRate) { this.exchangeRate = exchangeRate; @@ -379,6 +456,8 @@ public VendorCreditLineRequest build() { description, account, company, + project, + contact, taxRate, exchangeRate, integrationParams, diff --git a/src/main/java/com/merge/api/accounting/types/VendorCreditLineRequestContact.java b/src/main/java/com/merge/api/accounting/types/VendorCreditLineRequestContact.java new file mode 100644 index 000000000..001d73c6e --- /dev/null +++ b/src/main/java/com/merge/api/accounting/types/VendorCreditLineRequestContact.java @@ -0,0 +1,96 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.merge.api.accounting.types; + +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.databind.DeserializationContext; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.fasterxml.jackson.databind.deser.std.StdDeserializer; +import com.merge.api.core.ObjectMappers; +import java.io.IOException; +import java.util.Objects; + +@JsonDeserialize(using = VendorCreditLineRequestContact.Deserializer.class) +public final class VendorCreditLineRequestContact { + private final Object value; + + private final int type; + + private VendorCreditLineRequestContact(Object value, int type) { + this.value = value; + this.type = type; + } + + @JsonValue + public Object get() { + return this.value; + } + + @SuppressWarnings("unchecked") + public T visit(Visitor visitor) { + if (this.type == 0) { + return visitor.visit((String) this.value); + } else if (this.type == 1) { + return visitor.visit((Contact) this.value); + } + throw new IllegalStateException("Failed to visit value. This should never happen."); + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof VendorCreditLineRequestContact && equalTo((VendorCreditLineRequestContact) other); + } + + private boolean equalTo(VendorCreditLineRequestContact other) { + return value.equals(other.value); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.value); + } + + @java.lang.Override + public String toString() { + return this.value.toString(); + } + + public static VendorCreditLineRequestContact of(String value) { + return new VendorCreditLineRequestContact(value, 0); + } + + public static VendorCreditLineRequestContact of(Contact value) { + return new VendorCreditLineRequestContact(value, 1); + } + + public interface Visitor { + T visit(String value); + + T visit(Contact value); + } + + static final class Deserializer extends StdDeserializer { + Deserializer() { + super(VendorCreditLineRequestContact.class); + } + + @java.lang.Override + public VendorCreditLineRequestContact deserialize(JsonParser p, DeserializationContext context) + throws IOException { + Object value = p.readValueAs(Object.class); + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, String.class)); + } catch (IllegalArgumentException e) { + } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, Contact.class)); + } catch (IllegalArgumentException e) { + } + throw new JsonParseException(p, "Failed to deserialize"); + } + } +} diff --git a/src/main/java/com/merge/api/accounting/types/VendorCreditLineRequestProject.java b/src/main/java/com/merge/api/accounting/types/VendorCreditLineRequestProject.java new file mode 100644 index 000000000..2561ab5b1 --- /dev/null +++ b/src/main/java/com/merge/api/accounting/types/VendorCreditLineRequestProject.java @@ -0,0 +1,96 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.merge.api.accounting.types; + +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.databind.DeserializationContext; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.fasterxml.jackson.databind.deser.std.StdDeserializer; +import com.merge.api.core.ObjectMappers; +import java.io.IOException; +import java.util.Objects; + +@JsonDeserialize(using = VendorCreditLineRequestProject.Deserializer.class) +public final class VendorCreditLineRequestProject { + private final Object value; + + private final int type; + + private VendorCreditLineRequestProject(Object value, int type) { + this.value = value; + this.type = type; + } + + @JsonValue + public Object get() { + return this.value; + } + + @SuppressWarnings("unchecked") + public T visit(Visitor visitor) { + if (this.type == 0) { + return visitor.visit((String) this.value); + } else if (this.type == 1) { + return visitor.visit((Project) this.value); + } + throw new IllegalStateException("Failed to visit value. This should never happen."); + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof VendorCreditLineRequestProject && equalTo((VendorCreditLineRequestProject) other); + } + + private boolean equalTo(VendorCreditLineRequestProject other) { + return value.equals(other.value); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.value); + } + + @java.lang.Override + public String toString() { + return this.value.toString(); + } + + public static VendorCreditLineRequestProject of(String value) { + return new VendorCreditLineRequestProject(value, 0); + } + + public static VendorCreditLineRequestProject of(Project value) { + return new VendorCreditLineRequestProject(value, 1); + } + + public interface Visitor { + T visit(String value); + + T visit(Project value); + } + + static final class Deserializer extends StdDeserializer { + Deserializer() { + super(VendorCreditLineRequestProject.class); + } + + @java.lang.Override + public VendorCreditLineRequestProject deserialize(JsonParser p, DeserializationContext context) + throws IOException { + Object value = p.readValueAs(Object.class); + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, String.class)); + } catch (IllegalArgumentException e) { + } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, Project.class)); + } catch (IllegalArgumentException e) { + } + throw new JsonParseException(p, "Failed to deserialize"); + } + } +} diff --git a/src/main/java/com/merge/api/accounting/types/VendorCreditRequest.java b/src/main/java/com/merge/api/accounting/types/VendorCreditRequest.java index 65c41b3de..33d3ccd9d 100644 --- a/src/main/java/com/merge/api/accounting/types/VendorCreditRequest.java +++ b/src/main/java/com/merge/api/accounting/types/VendorCreditRequest.java @@ -31,7 +31,7 @@ public final class VendorCreditRequest { private final Optional totalAmount; - private final Optional currency; + private final Optional currency; private final Optional exchangeRate; @@ -56,7 +56,7 @@ private VendorCreditRequest( Optional transactionDate, Optional vendor, Optional totalAmount, - Optional currency, + Optional currency, Optional exchangeRate, Optional inclusiveOfTax, Optional company, @@ -426,7 +426,7 @@ public Optional getTotalAmount() { * */ @JsonProperty("currency") - public Optional getCurrency() { + public Optional getCurrency() { return currency; } @@ -549,7 +549,7 @@ public static final class Builder { private Optional totalAmount = Optional.empty(); - private Optional currency = Optional.empty(); + private Optional currency = Optional.empty(); private Optional exchangeRate = Optional.empty(); @@ -590,6 +590,9 @@ public Builder from(VendorCreditRequest other) { return this; } + /** + *

    The vendor credit's number.

    + */ @JsonSetter(value = "number", nulls = Nulls.SKIP) public Builder number(Optional number) { this.number = number; @@ -601,6 +604,9 @@ public Builder number(String number) { return this; } + /** + *

    The vendor credit's transaction date.

    + */ @JsonSetter(value = "transaction_date", nulls = Nulls.SKIP) public Builder transactionDate(Optional transactionDate) { this.transactionDate = transactionDate; @@ -612,6 +618,9 @@ public Builder transactionDate(OffsetDateTime transactionDate) { return this; } + /** + *

    The vendor that owes the gift or refund.

    + */ @JsonSetter(value = "vendor", nulls = Nulls.SKIP) public Builder vendor(Optional vendor) { this.vendor = vendor; @@ -623,6 +632,9 @@ public Builder vendor(VendorCreditRequestVendor vendor) { return this; } + /** + *

    The vendor credit's total amount.

    + */ @JsonSetter(value = "total_amount", nulls = Nulls.SKIP) public Builder totalAmount(Optional totalAmount) { this.totalAmount = totalAmount; @@ -634,17 +646,331 @@ public Builder totalAmount(Double totalAmount) { return this; } + /** + *

    The vendor credit's currency.

    + *
      + *
    • XUA - ADB Unit of Account
    • + *
    • AFN - Afghan Afghani
    • + *
    • AFA - Afghan Afghani (1927–2002)
    • + *
    • ALL - Albanian Lek
    • + *
    • ALK - Albanian Lek (1946–1965)
    • + *
    • DZD - Algerian Dinar
    • + *
    • ADP - Andorran Peseta
    • + *
    • AOA - Angolan Kwanza
    • + *
    • AOK - Angolan Kwanza (1977–1991)
    • + *
    • AON - Angolan New Kwanza (1990–2000)
    • + *
    • AOR - Angolan Readjusted Kwanza (1995–1999)
    • + *
    • ARA - Argentine Austral
    • + *
    • ARS - Argentine Peso
    • + *
    • ARM - Argentine Peso (1881–1970)
    • + *
    • ARP - Argentine Peso (1983–1985)
    • + *
    • ARL - Argentine Peso Ley (1970–1983)
    • + *
    • AMD - Armenian Dram
    • + *
    • AWG - Aruban Florin
    • + *
    • AUD - Australian Dollar
    • + *
    • ATS - Austrian Schilling
    • + *
    • AZN - Azerbaijani Manat
    • + *
    • AZM - Azerbaijani Manat (1993–2006)
    • + *
    • BSD - Bahamian Dollar
    • + *
    • BHD - Bahraini Dinar
    • + *
    • BDT - Bangladeshi Taka
    • + *
    • BBD - Barbadian Dollar
    • + *
    • BYN - Belarusian Ruble
    • + *
    • BYB - Belarusian Ruble (1994–1999)
    • + *
    • BYR - Belarusian Ruble (2000–2016)
    • + *
    • BEF - Belgian Franc
    • + *
    • BEC - Belgian Franc (convertible)
    • + *
    • BEL - Belgian Franc (financial)
    • + *
    • BZD - Belize Dollar
    • + *
    • BMD - Bermudan Dollar
    • + *
    • BTN - Bhutanese Ngultrum
    • + *
    • BOB - Bolivian Boliviano
    • + *
    • BOL - Bolivian Boliviano (1863–1963)
    • + *
    • BOV - Bolivian Mvdol
    • + *
    • BOP - Bolivian Peso
    • + *
    • BAM - Bosnia-Herzegovina Convertible Mark
    • + *
    • BAD - Bosnia-Herzegovina Dinar (1992–1994)
    • + *
    • BAN - Bosnia-Herzegovina New Dinar (1994–1997)
    • + *
    • BWP - Botswanan Pula
    • + *
    • BRC - Brazilian Cruzado (1986–1989)
    • + *
    • BRZ - Brazilian Cruzeiro (1942–1967)
    • + *
    • BRE - Brazilian Cruzeiro (1990–1993)
    • + *
    • BRR - Brazilian Cruzeiro (1993–1994)
    • + *
    • BRN - Brazilian New Cruzado (1989–1990)
    • + *
    • BRB - Brazilian New Cruzeiro (1967–1986)
    • + *
    • BRL - Brazilian Real
    • + *
    • GBP - British Pound
    • + *
    • BND - Brunei Dollar
    • + *
    • BGL - Bulgarian Hard Lev
    • + *
    • BGN - Bulgarian Lev
    • + *
    • BGO - Bulgarian Lev (1879–1952)
    • + *
    • BGM - Bulgarian Socialist Lev
    • + *
    • BUK - Burmese Kyat
    • + *
    • BIF - Burundian Franc
    • + *
    • XPF - CFP Franc
    • + *
    • KHR - Cambodian Riel
    • + *
    • CAD - Canadian Dollar
    • + *
    • CVE - Cape Verdean Escudo
    • + *
    • KYD - Cayman Islands Dollar
    • + *
    • XAF - Central African CFA Franc
    • + *
    • CLE - Chilean Escudo
    • + *
    • CLP - Chilean Peso
    • + *
    • CLF - Chilean Unit of Account (UF)
    • + *
    • CNX - Chinese People’s Bank Dollar
    • + *
    • CNY - Chinese Yuan
    • + *
    • CNH - Chinese Yuan (offshore)
    • + *
    • COP - Colombian Peso
    • + *
    • COU - Colombian Real Value Unit
    • + *
    • KMF - Comorian Franc
    • + *
    • CDF - Congolese Franc
    • + *
    • CRC - Costa Rican Colón
    • + *
    • HRD - Croatian Dinar
    • + *
    • HRK - Croatian Kuna
    • + *
    • CUC - Cuban Convertible Peso
    • + *
    • CUP - Cuban Peso
    • + *
    • CYP - Cypriot Pound
    • + *
    • CZK - Czech Koruna
    • + *
    • CSK - Czechoslovak Hard Koruna
    • + *
    • DKK - Danish Krone
    • + *
    • DJF - Djiboutian Franc
    • + *
    • DOP - Dominican Peso
    • + *
    • NLG - Dutch Guilder
    • + *
    • XCD - East Caribbean Dollar
    • + *
    • DDM - East German Mark
    • + *
    • ECS - Ecuadorian Sucre
    • + *
    • ECV - Ecuadorian Unit of Constant Value
    • + *
    • EGP - Egyptian Pound
    • + *
    • GQE - Equatorial Guinean Ekwele
    • + *
    • ERN - Eritrean Nakfa
    • + *
    • EEK - Estonian Kroon
    • + *
    • ETB - Ethiopian Birr
    • + *
    • EUR - Euro
    • + *
    • XBA - European Composite Unit
    • + *
    • XEU - European Currency Unit
    • + *
    • XBB - European Monetary Unit
    • + *
    • XBC - European Unit of Account (XBC)
    • + *
    • XBD - European Unit of Account (XBD)
    • + *
    • FKP - Falkland Islands Pound
    • + *
    • FJD - Fijian Dollar
    • + *
    • FIM - Finnish Markka
    • + *
    • FRF - French Franc
    • + *
    • XFO - French Gold Franc
    • + *
    • XFU - French UIC-Franc
    • + *
    • GMD - Gambian Dalasi
    • + *
    • GEK - Georgian Kupon Larit
    • + *
    • GEL - Georgian Lari
    • + *
    • DEM - German Mark
    • + *
    • GHS - Ghanaian Cedi
    • + *
    • GHC - Ghanaian Cedi (1979–2007)
    • + *
    • GIP - Gibraltar Pound
    • + *
    • XAU - Gold
    • + *
    • GRD - Greek Drachma
    • + *
    • GTQ - Guatemalan Quetzal
    • + *
    • GWP - Guinea-Bissau Peso
    • + *
    • GNF - Guinean Franc
    • + *
    • GNS - Guinean Syli
    • + *
    • GYD - Guyanaese Dollar
    • + *
    • HTG - Haitian Gourde
    • + *
    • HNL - Honduran Lempira
    • + *
    • HKD - Hong Kong Dollar
    • + *
    • HUF - Hungarian Forint
    • + *
    • IMP - IMP
    • + *
    • ISK - Icelandic Króna
    • + *
    • ISJ - Icelandic Króna (1918–1981)
    • + *
    • INR - Indian Rupee
    • + *
    • IDR - Indonesian Rupiah
    • + *
    • IRR - Iranian Rial
    • + *
    • IQD - Iraqi Dinar
    • + *
    • IEP - Irish Pound
    • + *
    • ILS - Israeli New Shekel
    • + *
    • ILP - Israeli Pound
    • + *
    • ILR - Israeli Shekel (1980–1985)
    • + *
    • ITL - Italian Lira
    • + *
    • JMD - Jamaican Dollar
    • + *
    • JPY - Japanese Yen
    • + *
    • JOD - Jordanian Dinar
    • + *
    • KZT - Kazakhstani Tenge
    • + *
    • KES - Kenyan Shilling
    • + *
    • KWD - Kuwaiti Dinar
    • + *
    • KGS - Kyrgystani Som
    • + *
    • LAK - Laotian Kip
    • + *
    • LVL - Latvian Lats
    • + *
    • LVR - Latvian Ruble
    • + *
    • LBP - Lebanese Pound
    • + *
    • LSL - Lesotho Loti
    • + *
    • LRD - Liberian Dollar
    • + *
    • LYD - Libyan Dinar
    • + *
    • LTL - Lithuanian Litas
    • + *
    • LTT - Lithuanian Talonas
    • + *
    • LUL - Luxembourg Financial Franc
    • + *
    • LUC - Luxembourgian Convertible Franc
    • + *
    • LUF - Luxembourgian Franc
    • + *
    • MOP - Macanese Pataca
    • + *
    • MKD - Macedonian Denar
    • + *
    • MKN - Macedonian Denar (1992–1993)
    • + *
    • MGA - Malagasy Ariary
    • + *
    • MGF - Malagasy Franc
    • + *
    • MWK - Malawian Kwacha
    • + *
    • MYR - Malaysian Ringgit
    • + *
    • MVR - Maldivian Rufiyaa
    • + *
    • MVP - Maldivian Rupee (1947–1981)
    • + *
    • MLF - Malian Franc
    • + *
    • MTL - Maltese Lira
    • + *
    • MTP - Maltese Pound
    • + *
    • MRU - Mauritanian Ouguiya
    • + *
    • MRO - Mauritanian Ouguiya (1973–2017)
    • + *
    • MUR - Mauritian Rupee
    • + *
    • MXV - Mexican Investment Unit
    • + *
    • MXN - Mexican Peso
    • + *
    • MXP - Mexican Silver Peso (1861–1992)
    • + *
    • MDC - Moldovan Cupon
    • + *
    • MDL - Moldovan Leu
    • + *
    • MCF - Monegasque Franc
    • + *
    • MNT - Mongolian Tugrik
    • + *
    • MAD - Moroccan Dirham
    • + *
    • MAF - Moroccan Franc
    • + *
    • MZE - Mozambican Escudo
    • + *
    • MZN - Mozambican Metical
    • + *
    • MZM - Mozambican Metical (1980–2006)
    • + *
    • MMK - Myanmar Kyat
    • + *
    • NAD - Namibian Dollar
    • + *
    • NPR - Nepalese Rupee
    • + *
    • ANG - Netherlands Antillean Guilder
    • + *
    • TWD - New Taiwan Dollar
    • + *
    • NZD - New Zealand Dollar
    • + *
    • NIO - Nicaraguan Córdoba
    • + *
    • NIC - Nicaraguan Córdoba (1988–1991)
    • + *
    • NGN - Nigerian Naira
    • + *
    • KPW - North Korean Won
    • + *
    • NOK - Norwegian Krone
    • + *
    • OMR - Omani Rial
    • + *
    • PKR - Pakistani Rupee
    • + *
    • XPD - Palladium
    • + *
    • PAB - Panamanian Balboa
    • + *
    • PGK - Papua New Guinean Kina
    • + *
    • PYG - Paraguayan Guarani
    • + *
    • PEI - Peruvian Inti
    • + *
    • PEN - Peruvian Sol
    • + *
    • PES - Peruvian Sol (1863–1965)
    • + *
    • PHP - Philippine Peso
    • + *
    • XPT - Platinum
    • + *
    • PLN - Polish Zloty
    • + *
    • PLZ - Polish Zloty (1950–1995)
    • + *
    • PTE - Portuguese Escudo
    • + *
    • GWE - Portuguese Guinea Escudo
    • + *
    • QAR - Qatari Rial
    • + *
    • XRE - RINET Funds
    • + *
    • RHD - Rhodesian Dollar
    • + *
    • RON - Romanian Leu
    • + *
    • ROL - Romanian Leu (1952–2006)
    • + *
    • RUB - Russian Ruble
    • + *
    • RUR - Russian Ruble (1991–1998)
    • + *
    • RWF - Rwandan Franc
    • + *
    • SVC - Salvadoran Colón
    • + *
    • WST - Samoan Tala
    • + *
    • SAR - Saudi Riyal
    • + *
    • RSD - Serbian Dinar
    • + *
    • CSD - Serbian Dinar (2002–2006)
    • + *
    • SCR - Seychellois Rupee
    • + *
    • SLL - Sierra Leonean Leone
    • + *
    • XAG - Silver
    • + *
    • SGD - Singapore Dollar
    • + *
    • SKK - Slovak Koruna
    • + *
    • SIT - Slovenian Tolar
    • + *
    • SBD - Solomon Islands Dollar
    • + *
    • SOS - Somali Shilling
    • + *
    • ZAR - South African Rand
    • + *
    • ZAL - South African Rand (financial)
    • + *
    • KRH - South Korean Hwan (1953–1962)
    • + *
    • KRW - South Korean Won
    • + *
    • KRO - South Korean Won (1945–1953)
    • + *
    • SSP - South Sudanese Pound
    • + *
    • SUR - Soviet Rouble
    • + *
    • ESP - Spanish Peseta
    • + *
    • ESA - Spanish Peseta (A account)
    • + *
    • ESB - Spanish Peseta (convertible account)
    • + *
    • XDR - Special Drawing Rights
    • + *
    • LKR - Sri Lankan Rupee
    • + *
    • SHP - St. Helena Pound
    • + *
    • XSU - Sucre
    • + *
    • SDD - Sudanese Dinar (1992–2007)
    • + *
    • SDG - Sudanese Pound
    • + *
    • SDP - Sudanese Pound (1957–1998)
    • + *
    • SRD - Surinamese Dollar
    • + *
    • SRG - Surinamese Guilder
    • + *
    • SZL - Swazi Lilangeni
    • + *
    • SEK - Swedish Krona
    • + *
    • CHF - Swiss Franc
    • + *
    • SYP - Syrian Pound
    • + *
    • STN - São Tomé & Príncipe Dobra
    • + *
    • STD - São Tomé & Príncipe Dobra (1977–2017)
    • + *
    • TVD - TVD
    • + *
    • TJR - Tajikistani Ruble
    • + *
    • TJS - Tajikistani Somoni
    • + *
    • TZS - Tanzanian Shilling
    • + *
    • XTS - Testing Currency Code
    • + *
    • THB - Thai Baht
    • + *
    • XXX - The codes assigned for transactions where no currency is involved
    • + *
    • TPE - Timorese Escudo
    • + *
    • TOP - Tongan Paʻanga
    • + *
    • TTD - Trinidad & Tobago Dollar
    • + *
    • TND - Tunisian Dinar
    • + *
    • TRY - Turkish Lira
    • + *
    • TRL - Turkish Lira (1922–2005)
    • + *
    • TMT - Turkmenistani Manat
    • + *
    • TMM - Turkmenistani Manat (1993–2009)
    • + *
    • USD - US Dollar
    • + *
    • USN - US Dollar (Next day)
    • + *
    • USS - US Dollar (Same day)
    • + *
    • UGX - Ugandan Shilling
    • + *
    • UGS - Ugandan Shilling (1966–1987)
    • + *
    • UAH - Ukrainian Hryvnia
    • + *
    • UAK - Ukrainian Karbovanets
    • + *
    • AED - United Arab Emirates Dirham
    • + *
    • UYW - Uruguayan Nominal Wage Index Unit
    • + *
    • UYU - Uruguayan Peso
    • + *
    • UYP - Uruguayan Peso (1975–1993)
    • + *
    • UYI - Uruguayan Peso (Indexed Units)
    • + *
    • UZS - Uzbekistani Som
    • + *
    • VUV - Vanuatu Vatu
    • + *
    • VES - Venezuelan Bolívar
    • + *
    • VEB - Venezuelan Bolívar (1871–2008)
    • + *
    • VEF - Venezuelan Bolívar (2008–2018)
    • + *
    • VND - Vietnamese Dong
    • + *
    • VNN - Vietnamese Dong (1978–1985)
    • + *
    • CHE - WIR Euro
    • + *
    • CHW - WIR Franc
    • + *
    • XOF - West African CFA Franc
    • + *
    • YDD - Yemeni Dinar
    • + *
    • YER - Yemeni Rial
    • + *
    • YUN - Yugoslavian Convertible Dinar (1990–1992)
    • + *
    • YUD - Yugoslavian Hard Dinar (1966–1990)
    • + *
    • YUM - Yugoslavian New Dinar (1994–2002)
    • + *
    • YUR - Yugoslavian Reformed Dinar (1992–1993)
    • + *
    • ZWN - ZWN
    • + *
    • ZRN - Zairean New Zaire (1993–1998)
    • + *
    • ZRZ - Zairean Zaire (1971–1993)
    • + *
    • ZMW - Zambian Kwacha
    • + *
    • ZMK - Zambian Kwacha (1968–2012)
    • + *
    • ZWD - Zimbabwean Dollar (1980–2008)
    • + *
    • ZWR - Zimbabwean Dollar (2008)
    • + *
    • ZWL - Zimbabwean Dollar (2009)
    • + *
    + */ @JsonSetter(value = "currency", nulls = Nulls.SKIP) - public Builder currency(Optional currency) { + public Builder currency(Optional currency) { this.currency = currency; return this; } - public Builder currency(TransactionCurrencyEnum currency) { + public Builder currency(VendorCreditRequestCurrency currency) { this.currency = Optional.ofNullable(currency); return this; } + /** + *

    The vendor credit's exchange rate.

    + */ @JsonSetter(value = "exchange_rate", nulls = Nulls.SKIP) public Builder exchangeRate(Optional exchangeRate) { this.exchangeRate = exchangeRate; @@ -656,6 +982,9 @@ public Builder exchangeRate(String exchangeRate) { return this; } + /** + *

    If the transaction is inclusive or exclusive of tax. True if inclusive, False if exclusive.

    + */ @JsonSetter(value = "inclusive_of_tax", nulls = Nulls.SKIP) public Builder inclusiveOfTax(Optional inclusiveOfTax) { this.inclusiveOfTax = inclusiveOfTax; @@ -667,6 +996,9 @@ public Builder inclusiveOfTax(Boolean inclusiveOfTax) { return this; } + /** + *

    The company the vendor credit belongs to.

    + */ @JsonSetter(value = "company", nulls = Nulls.SKIP) public Builder company(Optional company) { this.company = company; @@ -691,6 +1023,9 @@ public Builder trackingCategories( return this; } + /** + *

    A list of VendorCredit Applied to Lines objects.

    + */ @JsonSetter(value = "applied_to_lines", nulls = Nulls.SKIP) public Builder appliedToLines(Optional> appliedToLines) { this.appliedToLines = appliedToLines; @@ -702,6 +1037,9 @@ public Builder appliedToLines(List return this; } + /** + *

    The accounting period that the VendorCredit was generated in.

    + */ @JsonSetter(value = "accounting_period", nulls = Nulls.SKIP) public Builder accountingPeriod(Optional accountingPeriod) { this.accountingPeriod = accountingPeriod; diff --git a/src/main/java/com/merge/api/accounting/types/VendorCreditRequestCurrency.java b/src/main/java/com/merge/api/accounting/types/VendorCreditRequestCurrency.java new file mode 100644 index 000000000..abd3970e7 --- /dev/null +++ b/src/main/java/com/merge/api/accounting/types/VendorCreditRequestCurrency.java @@ -0,0 +1,96 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.merge.api.accounting.types; + +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.databind.DeserializationContext; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.fasterxml.jackson.databind.deser.std.StdDeserializer; +import com.merge.api.core.ObjectMappers; +import java.io.IOException; +import java.util.Objects; + +@JsonDeserialize(using = VendorCreditRequestCurrency.Deserializer.class) +public final class VendorCreditRequestCurrency { + private final Object value; + + private final int type; + + private VendorCreditRequestCurrency(Object value, int type) { + this.value = value; + this.type = type; + } + + @JsonValue + public Object get() { + return this.value; + } + + @SuppressWarnings("unchecked") + public T visit(Visitor visitor) { + if (this.type == 0) { + return visitor.visit((TransactionCurrencyEnum) this.value); + } else if (this.type == 1) { + return visitor.visit((String) this.value); + } + throw new IllegalStateException("Failed to visit value. This should never happen."); + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof VendorCreditRequestCurrency && equalTo((VendorCreditRequestCurrency) other); + } + + private boolean equalTo(VendorCreditRequestCurrency other) { + return value.equals(other.value); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.value); + } + + @java.lang.Override + public String toString() { + return this.value.toString(); + } + + public static VendorCreditRequestCurrency of(TransactionCurrencyEnum value) { + return new VendorCreditRequestCurrency(value, 0); + } + + public static VendorCreditRequestCurrency of(String value) { + return new VendorCreditRequestCurrency(value, 1); + } + + public interface Visitor { + T visit(TransactionCurrencyEnum value); + + T visit(String value); + } + + static final class Deserializer extends StdDeserializer { + Deserializer() { + super(VendorCreditRequestCurrency.class); + } + + @java.lang.Override + public VendorCreditRequestCurrency deserialize(JsonParser p, DeserializationContext context) + throws IOException { + Object value = p.readValueAs(Object.class); + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, TransactionCurrencyEnum.class)); + } catch (IllegalArgumentException e) { + } + try { + return of(ObjectMappers.JSON_MAPPER.convertValue(value, String.class)); + } catch (IllegalArgumentException e) { + } + throw new JsonParseException(p, "Failed to deserialize"); + } + } +} diff --git a/src/main/java/com/merge/api/accounting/types/VendorCreditsListRequest.java b/src/main/java/com/merge/api/accounting/types/VendorCreditsListRequest.java index 911a3eeee..79d4716c5 100644 --- a/src/main/java/com/merge/api/accounting/types/VendorCreditsListRequest.java +++ b/src/main/java/com/merge/api/accounting/types/VendorCreditsListRequest.java @@ -307,6 +307,9 @@ public Builder from(VendorCreditsListRequest other) { return this; } + /** + *

    Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.

    + */ @JsonSetter(value = "expand", nulls = Nulls.SKIP) public Builder expand(Optional> expand) { this.expand = expand; @@ -323,6 +326,9 @@ public Builder expand(VendorCreditsListRequestExpandItem expand) { return this; } + /** + *

    If provided, will only return vendor credits for this company.

    + */ @JsonSetter(value = "company_id", nulls = Nulls.SKIP) public Builder companyId(Optional companyId) { this.companyId = companyId; @@ -334,6 +340,9 @@ public Builder companyId(String companyId) { return this; } + /** + *

    If provided, will only return objects created after this datetime.

    + */ @JsonSetter(value = "created_after", nulls = Nulls.SKIP) public Builder createdAfter(Optional createdAfter) { this.createdAfter = createdAfter; @@ -345,6 +354,9 @@ public Builder createdAfter(OffsetDateTime createdAfter) { return this; } + /** + *

    If provided, will only return objects created before this datetime.

    + */ @JsonSetter(value = "created_before", nulls = Nulls.SKIP) public Builder createdBefore(Optional createdBefore) { this.createdBefore = createdBefore; @@ -356,6 +368,9 @@ public Builder createdBefore(OffsetDateTime createdBefore) { return this; } + /** + *

    The pagination cursor value.

    + */ @JsonSetter(value = "cursor", nulls = Nulls.SKIP) public Builder cursor(Optional cursor) { this.cursor = cursor; @@ -367,6 +382,9 @@ public Builder cursor(String cursor) { return this; } + /** + *

    Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

    + */ @JsonSetter(value = "include_deleted_data", nulls = Nulls.SKIP) public Builder includeDeletedData(Optional includeDeletedData) { this.includeDeletedData = includeDeletedData; @@ -378,6 +396,9 @@ public Builder includeDeletedData(Boolean includeDeletedData) { return this; } + /** + *

    Whether to include the original data Merge fetched from the third-party to produce these models.

    + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -389,6 +410,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

    Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

    + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; @@ -400,6 +424,9 @@ public Builder includeShellData(Boolean includeShellData) { return this; } + /** + *

    If provided, only objects synced by Merge after this date time will be returned.

    + */ @JsonSetter(value = "modified_after", nulls = Nulls.SKIP) public Builder modifiedAfter(Optional modifiedAfter) { this.modifiedAfter = modifiedAfter; @@ -411,6 +438,9 @@ public Builder modifiedAfter(OffsetDateTime modifiedAfter) { return this; } + /** + *

    If provided, only objects synced by Merge before this date time will be returned.

    + */ @JsonSetter(value = "modified_before", nulls = Nulls.SKIP) public Builder modifiedBefore(Optional modifiedBefore) { this.modifiedBefore = modifiedBefore; @@ -422,6 +452,9 @@ public Builder modifiedBefore(OffsetDateTime modifiedBefore) { return this; } + /** + *

    Number of results to return per page.

    + */ @JsonSetter(value = "page_size", nulls = Nulls.SKIP) public Builder pageSize(Optional pageSize) { this.pageSize = pageSize; @@ -433,6 +466,9 @@ public Builder pageSize(Integer pageSize) { return this; } + /** + *

    The API provider's ID for the given object.

    + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; @@ -444,6 +480,9 @@ public Builder remoteId(String remoteId) { return this; } + /** + *

    If provided, will only return objects created after this datetime.

    + */ @JsonSetter(value = "transaction_date_after", nulls = Nulls.SKIP) public Builder transactionDateAfter(Optional transactionDateAfter) { this.transactionDateAfter = transactionDateAfter; @@ -455,6 +494,9 @@ public Builder transactionDateAfter(OffsetDateTime transactionDateAfter) { return this; } + /** + *

    If provided, will only return objects created before this datetime.

    + */ @JsonSetter(value = "transaction_date_before", nulls = Nulls.SKIP) public Builder transactionDateBefore(Optional transactionDateBefore) { this.transactionDateBefore = transactionDateBefore; diff --git a/src/main/java/com/merge/api/accounting/types/VendorCreditsRetrieveRequest.java b/src/main/java/com/merge/api/accounting/types/VendorCreditsRetrieveRequest.java index ddbe30140..c9a331ad1 100644 --- a/src/main/java/com/merge/api/accounting/types/VendorCreditsRetrieveRequest.java +++ b/src/main/java/com/merge/api/accounting/types/VendorCreditsRetrieveRequest.java @@ -116,6 +116,9 @@ public Builder from(VendorCreditsRetrieveRequest other) { return this; } + /** + *

    Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.

    + */ @JsonSetter(value = "expand", nulls = Nulls.SKIP) public Builder expand(Optional> expand) { this.expand = expand; @@ -132,6 +135,9 @@ public Builder expand(VendorCreditsRetrieveRequestExpandItem expand) { return this; } + /** + *

    Whether to include the original data Merge fetched from the third-party to produce these models.

    + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -143,6 +149,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

    Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

    + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; diff --git a/src/main/java/com/merge/api/ats/types/AccountDetails.java b/src/main/java/com/merge/api/ats/types/AccountDetails.java index 990971ea6..13f85dea0 100644 --- a/src/main/java/com/merge/api/ats/types/AccountDetails.java +++ b/src/main/java/com/merge/api/ats/types/AccountDetails.java @@ -340,6 +340,9 @@ public Builder webhookListenerUrl(String webhookListenerUrl) { return this; } + /** + *

    Whether a Production Linked Account's credentials match another existing Production Linked Account. This field is null for Test Linked Accounts, incomplete Production Linked Accounts, and ignored duplicate Production Linked Account sets.

    + */ @JsonSetter(value = "is_duplicate", nulls = Nulls.SKIP) public Builder isDuplicate(Optional isDuplicate) { this.isDuplicate = isDuplicate; @@ -362,6 +365,9 @@ public Builder accountType(String accountType) { return this; } + /** + *

    The time at which account completes the linking flow.

    + */ @JsonSetter(value = "completed_at", nulls = Nulls.SKIP) public Builder completedAt(Optional completedAt) { this.completedAt = completedAt; diff --git a/src/main/java/com/merge/api/ats/types/AccountDetailsAndActions.java b/src/main/java/com/merge/api/ats/types/AccountDetailsAndActions.java index 4d2f7dba1..432deb6c4 100644 --- a/src/main/java/com/merge/api/ats/types/AccountDetailsAndActions.java +++ b/src/main/java/com/merge/api/ats/types/AccountDetailsAndActions.java @@ -251,10 +251,16 @@ public interface _FinalStage { _FinalStage endUserOriginId(String endUserOriginId); + /** + *

    The tenant or domain the customer has provided access to.

    + */ _FinalStage subdomain(Optional subdomain); _FinalStage subdomain(String subdomain); + /** + *

    Whether a Production Linked Account's credentials match another existing Production Linked Account. This field is null for Test Linked Accounts, incomplete Production Linked Accounts, and ignored duplicate Production Linked Account sets.

    + */ _FinalStage isDuplicate(Optional isDuplicate); _FinalStage isDuplicate(Boolean isDuplicate); @@ -395,6 +401,9 @@ public _FinalStage isDuplicate(Boolean isDuplicate) { return this; } + /** + *

    Whether a Production Linked Account's credentials match another existing Production Linked Account. This field is null for Test Linked Accounts, incomplete Production Linked Accounts, and ignored duplicate Production Linked Account sets.

    + */ @java.lang.Override @JsonSetter(value = "is_duplicate", nulls = Nulls.SKIP) public _FinalStage isDuplicate(Optional isDuplicate) { @@ -412,6 +421,9 @@ public _FinalStage subdomain(String subdomain) { return this; } + /** + *

    The tenant or domain the customer has provided access to.

    + */ @java.lang.Override @JsonSetter(value = "subdomain", nulls = Nulls.SKIP) public _FinalStage subdomain(Optional subdomain) { diff --git a/src/main/java/com/merge/api/ats/types/AccountIntegration.java b/src/main/java/com/merge/api/ats/types/AccountIntegration.java index 7a91982bf..0422f155f 100644 --- a/src/main/java/com/merge/api/ats/types/AccountIntegration.java +++ b/src/main/java/com/merge/api/ats/types/AccountIntegration.java @@ -196,6 +196,9 @@ public static NameStage builder() { } public interface NameStage { + /** + * Company name. + */ _FinalStage name(@NotNull String name); Builder from(AccountIntegration other); @@ -204,22 +207,37 @@ public interface NameStage { public interface _FinalStage { AccountIntegration build(); + /** + *

    Optional. This shortened name appears in places with limited space, usually in conjunction with the platform's logo (e.g., Merge Link menu).<br><br>Example: <i>Workforce Now (in lieu of ADP Workforce Now), SuccessFactors (in lieu of SAP SuccessFactors)</i>

    + */ _FinalStage abbreviatedName(Optional abbreviatedName); _FinalStage abbreviatedName(String abbreviatedName); + /** + *

    Category or categories this integration belongs to. Multiple categories should be comma separated, i.e. [ats, hris].

    + */ _FinalStage categories(Optional> categories); _FinalStage categories(List categories); + /** + *

    Company logo in rectangular shape.

    + */ _FinalStage image(Optional image); _FinalStage image(String image); + /** + *

    Company logo in square shape.

    + */ _FinalStage squareImage(Optional squareImage); _FinalStage squareImage(String squareImage); + /** + *

    The color of this integration used for buttons and text throughout the app and landing pages. <b>Choose a darker, saturated color.</b>

    + */ _FinalStage color(Optional color); _FinalStage color(String color); @@ -228,14 +246,23 @@ public interface _FinalStage { _FinalStage slug(String slug); + /** + *

    Mapping of API endpoints to documentation urls for support. Example: {'GET': [['/common-model-scopes', 'https://docs.merge.dev/accounting/common-model-scopes/#common_model_scopes_retrieve'],['/common-model-actions', 'https://docs.merge.dev/accounting/common-model-actions/#common_model_actions_retrieve']], 'POST': []}

    + */ _FinalStage apiEndpointsToDocumentationUrls(Optional> apiEndpointsToDocumentationUrls); _FinalStage apiEndpointsToDocumentationUrls(Map apiEndpointsToDocumentationUrls); + /** + *

    Setup guide URL for third party webhook creation. Exposed in Merge Docs.

    + */ _FinalStage webhookSetupGuideUrl(Optional webhookSetupGuideUrl); _FinalStage webhookSetupGuideUrl(String webhookSetupGuideUrl); + /** + *

    Category or categories this integration is in beta status for.

    + */ _FinalStage categoryBetaStatus(Optional> categoryBetaStatus); _FinalStage categoryBetaStatus(Map categoryBetaStatus); @@ -284,7 +311,7 @@ public Builder from(AccountIntegration other) { } /** - *

    Company name.

    + * Company name.

    Company name.

    * @return Reference to {@code this} so that method calls can be chained together. */ @java.lang.Override @@ -304,6 +331,9 @@ public _FinalStage categoryBetaStatus(Map categoryBetaStatus) return this; } + /** + *

    Category or categories this integration is in beta status for.

    + */ @java.lang.Override @JsonSetter(value = "category_beta_status", nulls = Nulls.SKIP) public _FinalStage categoryBetaStatus(Optional> categoryBetaStatus) { @@ -321,6 +351,9 @@ public _FinalStage webhookSetupGuideUrl(String webhookSetupGuideUrl) { return this; } + /** + *

    Setup guide URL for third party webhook creation. Exposed in Merge Docs.

    + */ @java.lang.Override @JsonSetter(value = "webhook_setup_guide_url", nulls = Nulls.SKIP) public _FinalStage webhookSetupGuideUrl(Optional webhookSetupGuideUrl) { @@ -338,6 +371,9 @@ public _FinalStage apiEndpointsToDocumentationUrls(Map apiEndp return this; } + /** + *

    Mapping of API endpoints to documentation urls for support. Example: {'GET': [['/common-model-scopes', 'https://docs.merge.dev/accounting/common-model-scopes/#common_model_scopes_retrieve'],['/common-model-actions', 'https://docs.merge.dev/accounting/common-model-actions/#common_model_actions_retrieve']], 'POST': []}

    + */ @java.lang.Override @JsonSetter(value = "api_endpoints_to_documentation_urls", nulls = Nulls.SKIP) public _FinalStage apiEndpointsToDocumentationUrls( @@ -369,6 +405,9 @@ public _FinalStage color(String color) { return this; } + /** + *

    The color of this integration used for buttons and text throughout the app and landing pages. <b>Choose a darker, saturated color.</b>

    + */ @java.lang.Override @JsonSetter(value = "color", nulls = Nulls.SKIP) public _FinalStage color(Optional color) { @@ -386,6 +425,9 @@ public _FinalStage squareImage(String squareImage) { return this; } + /** + *

    Company logo in square shape.

    + */ @java.lang.Override @JsonSetter(value = "square_image", nulls = Nulls.SKIP) public _FinalStage squareImage(Optional squareImage) { @@ -403,6 +445,9 @@ public _FinalStage image(String image) { return this; } + /** + *

    Company logo in rectangular shape.

    + */ @java.lang.Override @JsonSetter(value = "image", nulls = Nulls.SKIP) public _FinalStage image(Optional image) { @@ -420,6 +465,9 @@ public _FinalStage categories(List categories) { return this; } + /** + *

    Category or categories this integration belongs to. Multiple categories should be comma separated, i.e. [ats, hris].

    + */ @java.lang.Override @JsonSetter(value = "categories", nulls = Nulls.SKIP) public _FinalStage categories(Optional> categories) { @@ -437,6 +485,9 @@ public _FinalStage abbreviatedName(String abbreviatedName) { return this; } + /** + *

    Optional. This shortened name appears in places with limited space, usually in conjunction with the platform's logo (e.g., Merge Link menu).<br><br>Example: <i>Workforce Now (in lieu of ADP Workforce Now), SuccessFactors (in lieu of SAP SuccessFactors)</i>

    + */ @java.lang.Override @JsonSetter(value = "abbreviated_name", nulls = Nulls.SKIP) public _FinalStage abbreviatedName(Optional abbreviatedName) { diff --git a/src/main/java/com/merge/api/ats/types/ActivitiesListRequest.java b/src/main/java/com/merge/api/ats/types/ActivitiesListRequest.java index ab14ee463..982c573c6 100644 --- a/src/main/java/com/merge/api/ats/types/ActivitiesListRequest.java +++ b/src/main/java/com/merge/api/ats/types/ActivitiesListRequest.java @@ -307,6 +307,9 @@ public Builder from(ActivitiesListRequest other) { return this; } + /** + *

    Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.

    + */ @JsonSetter(value = "expand", nulls = Nulls.SKIP) public Builder expand(Optional> expand) { this.expand = expand; @@ -323,6 +326,9 @@ public Builder expand(String expand) { return this; } + /** + *

    If provided, will only return objects created after this datetime.

    + */ @JsonSetter(value = "created_after", nulls = Nulls.SKIP) public Builder createdAfter(Optional createdAfter) { this.createdAfter = createdAfter; @@ -334,6 +340,9 @@ public Builder createdAfter(OffsetDateTime createdAfter) { return this; } + /** + *

    If provided, will only return objects created before this datetime.

    + */ @JsonSetter(value = "created_before", nulls = Nulls.SKIP) public Builder createdBefore(Optional createdBefore) { this.createdBefore = createdBefore; @@ -345,6 +354,9 @@ public Builder createdBefore(OffsetDateTime createdBefore) { return this; } + /** + *

    The pagination cursor value.

    + */ @JsonSetter(value = "cursor", nulls = Nulls.SKIP) public Builder cursor(Optional cursor) { this.cursor = cursor; @@ -356,6 +368,9 @@ public Builder cursor(String cursor) { return this; } + /** + *

    Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

    + */ @JsonSetter(value = "include_deleted_data", nulls = Nulls.SKIP) public Builder includeDeletedData(Optional includeDeletedData) { this.includeDeletedData = includeDeletedData; @@ -367,6 +382,9 @@ public Builder includeDeletedData(Boolean includeDeletedData) { return this; } + /** + *

    Whether to include the original data Merge fetched from the third-party to produce these models.

    + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -378,6 +396,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

    Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

    + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; @@ -389,6 +410,9 @@ public Builder includeShellData(Boolean includeShellData) { return this; } + /** + *

    If provided, only objects synced by Merge after this date time will be returned.

    + */ @JsonSetter(value = "modified_after", nulls = Nulls.SKIP) public Builder modifiedAfter(Optional modifiedAfter) { this.modifiedAfter = modifiedAfter; @@ -400,6 +424,9 @@ public Builder modifiedAfter(OffsetDateTime modifiedAfter) { return this; } + /** + *

    If provided, only objects synced by Merge before this date time will be returned.

    + */ @JsonSetter(value = "modified_before", nulls = Nulls.SKIP) public Builder modifiedBefore(Optional modifiedBefore) { this.modifiedBefore = modifiedBefore; @@ -411,6 +438,9 @@ public Builder modifiedBefore(OffsetDateTime modifiedBefore) { return this; } + /** + *

    Number of results to return per page.

    + */ @JsonSetter(value = "page_size", nulls = Nulls.SKIP) public Builder pageSize(Optional pageSize) { this.pageSize = pageSize; @@ -422,6 +452,9 @@ public Builder pageSize(Integer pageSize) { return this; } + /** + *

    Deprecated. Use show_enum_origins.

    + */ @JsonSetter(value = "remote_fields", nulls = Nulls.SKIP) public Builder remoteFields(Optional remoteFields) { this.remoteFields = remoteFields; @@ -433,6 +466,9 @@ public Builder remoteFields(ActivitiesListRequestRemoteFields remoteFields) { return this; } + /** + *

    The API provider's ID for the given object.

    + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; @@ -444,6 +480,9 @@ public Builder remoteId(String remoteId) { return this; } + /** + *

    A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. Learn more

    + */ @JsonSetter(value = "show_enum_origins", nulls = Nulls.SKIP) public Builder showEnumOrigins(Optional showEnumOrigins) { this.showEnumOrigins = showEnumOrigins; @@ -455,6 +494,9 @@ public Builder showEnumOrigins(ActivitiesListRequestShowEnumOrigins showEnumOrig return this; } + /** + *

    If provided, will only return activities done by this user.

    + */ @JsonSetter(value = "user_id", nulls = Nulls.SKIP) public Builder userId(Optional userId) { this.userId = userId; diff --git a/src/main/java/com/merge/api/ats/types/ActivitiesRetrieveRequest.java b/src/main/java/com/merge/api/ats/types/ActivitiesRetrieveRequest.java index 7110e2ee7..9ef3ab2d4 100644 --- a/src/main/java/com/merge/api/ats/types/ActivitiesRetrieveRequest.java +++ b/src/main/java/com/merge/api/ats/types/ActivitiesRetrieveRequest.java @@ -149,6 +149,9 @@ public Builder from(ActivitiesRetrieveRequest other) { return this; } + /** + *

    Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.

    + */ @JsonSetter(value = "expand", nulls = Nulls.SKIP) public Builder expand(Optional> expand) { this.expand = expand; @@ -165,6 +168,9 @@ public Builder expand(String expand) { return this; } + /** + *

    Whether to include the original data Merge fetched from the third-party to produce these models.

    + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -176,6 +182,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

    Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

    + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; @@ -187,6 +196,9 @@ public Builder includeShellData(Boolean includeShellData) { return this; } + /** + *

    Deprecated. Use show_enum_origins.

    + */ @JsonSetter(value = "remote_fields", nulls = Nulls.SKIP) public Builder remoteFields(Optional remoteFields) { this.remoteFields = remoteFields; @@ -198,6 +210,9 @@ public Builder remoteFields(ActivitiesRetrieveRequestRemoteFields remoteFields) return this; } + /** + *

    A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. Learn more

    + */ @JsonSetter(value = "show_enum_origins", nulls = Nulls.SKIP) public Builder showEnumOrigins(Optional showEnumOrigins) { this.showEnumOrigins = showEnumOrigins; diff --git a/src/main/java/com/merge/api/ats/types/Activity.java b/src/main/java/com/merge/api/ats/types/Activity.java index 6a2ac5ba7..cfe6b18b8 100644 --- a/src/main/java/com/merge/api/ats/types/Activity.java +++ b/src/main/java/com/merge/api/ats/types/Activity.java @@ -316,6 +316,9 @@ public Builder id(String id) { return this; } + /** + *

    The third-party API ID of the matching object.

    + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; @@ -327,6 +330,9 @@ public Builder remoteId(String remoteId) { return this; } + /** + *

    The datetime that this object was created by Merge.

    + */ @JsonSetter(value = "created_at", nulls = Nulls.SKIP) public Builder createdAt(Optional createdAt) { this.createdAt = createdAt; @@ -338,6 +344,9 @@ public Builder createdAt(OffsetDateTime createdAt) { return this; } + /** + *

    The datetime that this object was modified by Merge.

    + */ @JsonSetter(value = "modified_at", nulls = Nulls.SKIP) public Builder modifiedAt(Optional modifiedAt) { this.modifiedAt = modifiedAt; @@ -349,6 +358,9 @@ public Builder modifiedAt(OffsetDateTime modifiedAt) { return this; } + /** + *

    The user that performed the action.

    + */ @JsonSetter(value = "user", nulls = Nulls.SKIP) public Builder user(Optional user) { this.user = user; @@ -360,6 +372,9 @@ public Builder user(ActivityUser user) { return this; } + /** + *

    When the third party's activity was created.

    + */ @JsonSetter(value = "remote_created_at", nulls = Nulls.SKIP) public Builder remoteCreatedAt(Optional remoteCreatedAt) { this.remoteCreatedAt = remoteCreatedAt; @@ -371,6 +386,14 @@ public Builder remoteCreatedAt(OffsetDateTime remoteCreatedAt) { return this; } + /** + *

    The activity's type.

    + *
      + *
    • NOTE - NOTE
    • + *
    • EMAIL - EMAIL
    • + *
    • OTHER - OTHER
    • + *
    + */ @JsonSetter(value = "activity_type", nulls = Nulls.SKIP) public Builder activityType(Optional activityType) { this.activityType = activityType; @@ -382,6 +405,9 @@ public Builder activityType(ActivityTypeEnum activityType) { return this; } + /** + *

    The activity's subject.

    + */ @JsonSetter(value = "subject", nulls = Nulls.SKIP) public Builder subject(Optional subject) { this.subject = subject; @@ -393,6 +419,9 @@ public Builder subject(String subject) { return this; } + /** + *

    The activity's body.

    + */ @JsonSetter(value = "body", nulls = Nulls.SKIP) public Builder body(Optional body) { this.body = body; @@ -404,6 +433,14 @@ public Builder body(String body) { return this; } + /** + *

    The activity's visibility.

    + *
      + *
    • ADMIN_ONLY - ADMIN_ONLY
    • + *
    • PUBLIC - PUBLIC
    • + *
    • PRIVATE - PRIVATE
    • + *
    + */ @JsonSetter(value = "visibility", nulls = Nulls.SKIP) public Builder visibility(Optional visibility) { this.visibility = visibility; @@ -426,6 +463,9 @@ public Builder candidate(String candidate) { return this; } + /** + *

    Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

    + */ @JsonSetter(value = "remote_was_deleted", nulls = Nulls.SKIP) public Builder remoteWasDeleted(Optional remoteWasDeleted) { this.remoteWasDeleted = remoteWasDeleted; diff --git a/src/main/java/com/merge/api/ats/types/ActivityEndpointRequest.java b/src/main/java/com/merge/api/ats/types/ActivityEndpointRequest.java index 42aa07e1a..5c0fa172e 100644 --- a/src/main/java/com/merge/api/ats/types/ActivityEndpointRequest.java +++ b/src/main/java/com/merge/api/ats/types/ActivityEndpointRequest.java @@ -115,10 +115,16 @@ public interface RemoteUserIdStage { public interface _FinalStage { ActivityEndpointRequest build(); + /** + *

    Whether to include debug fields (such as log file links) in the response.

    + */ _FinalStage isDebugMode(Optional isDebugMode); _FinalStage isDebugMode(Boolean isDebugMode); + /** + *

    Whether or not third-party updates should be run asynchronously.

    + */ _FinalStage runAsync(Optional runAsync); _FinalStage runAsync(Boolean runAsync); @@ -172,6 +178,9 @@ public _FinalStage runAsync(Boolean runAsync) { return this; } + /** + *

    Whether or not third-party updates should be run asynchronously.

    + */ @java.lang.Override @JsonSetter(value = "run_async", nulls = Nulls.SKIP) public _FinalStage runAsync(Optional runAsync) { @@ -189,6 +198,9 @@ public _FinalStage isDebugMode(Boolean isDebugMode) { return this; } + /** + *

    Whether to include debug fields (such as log file links) in the response.

    + */ @java.lang.Override @JsonSetter(value = "is_debug_mode", nulls = Nulls.SKIP) public _FinalStage isDebugMode(Optional isDebugMode) { diff --git a/src/main/java/com/merge/api/ats/types/ActivityRequest.java b/src/main/java/com/merge/api/ats/types/ActivityRequest.java index a3630642c..1280d18b0 100644 --- a/src/main/java/com/merge/api/ats/types/ActivityRequest.java +++ b/src/main/java/com/merge/api/ats/types/ActivityRequest.java @@ -204,6 +204,9 @@ public Builder from(ActivityRequest other) { return this; } + /** + *

    The user that performed the action.

    + */ @JsonSetter(value = "user", nulls = Nulls.SKIP) public Builder user(Optional user) { this.user = user; @@ -215,6 +218,14 @@ public Builder user(ActivityRequestUser user) { return this; } + /** + *

    The activity's type.

    + *
      + *
    • NOTE - NOTE
    • + *
    • EMAIL - EMAIL
    • + *
    • OTHER - OTHER
    • + *
    + */ @JsonSetter(value = "activity_type", nulls = Nulls.SKIP) public Builder activityType(Optional activityType) { this.activityType = activityType; @@ -226,6 +237,9 @@ public Builder activityType(ActivityTypeEnum activityType) { return this; } + /** + *

    The activity's subject.

    + */ @JsonSetter(value = "subject", nulls = Nulls.SKIP) public Builder subject(Optional subject) { this.subject = subject; @@ -237,6 +251,9 @@ public Builder subject(String subject) { return this; } + /** + *

    The activity's body.

    + */ @JsonSetter(value = "body", nulls = Nulls.SKIP) public Builder body(Optional body) { this.body = body; @@ -248,6 +265,14 @@ public Builder body(String body) { return this; } + /** + *

    The activity's visibility.

    + *
      + *
    • ADMIN_ONLY - ADMIN_ONLY
    • + *
    • PUBLIC - PUBLIC
    • + *
    • PRIVATE - PRIVATE
    • + *
    + */ @JsonSetter(value = "visibility", nulls = Nulls.SKIP) public Builder visibility(Optional visibility) { this.visibility = visibility; diff --git a/src/main/java/com/merge/api/ats/types/Application.java b/src/main/java/com/merge/api/ats/types/Application.java index 2f359e576..c7fea6991 100644 --- a/src/main/java/com/merge/api/ats/types/Application.java +++ b/src/main/java/com/merge/api/ats/types/Application.java @@ -354,6 +354,9 @@ public Builder id(String id) { return this; } + /** + *

    The third-party API ID of the matching object.

    + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; @@ -365,6 +368,9 @@ public Builder remoteId(String remoteId) { return this; } + /** + *

    The datetime that this object was created by Merge.

    + */ @JsonSetter(value = "created_at", nulls = Nulls.SKIP) public Builder createdAt(Optional createdAt) { this.createdAt = createdAt; @@ -376,6 +382,9 @@ public Builder createdAt(OffsetDateTime createdAt) { return this; } + /** + *

    The datetime that this object was modified by Merge.

    + */ @JsonSetter(value = "modified_at", nulls = Nulls.SKIP) public Builder modifiedAt(Optional modifiedAt) { this.modifiedAt = modifiedAt; @@ -387,6 +396,9 @@ public Builder modifiedAt(OffsetDateTime modifiedAt) { return this; } + /** + *

    The candidate applying.

    + */ @JsonSetter(value = "candidate", nulls = Nulls.SKIP) public Builder candidate(Optional candidate) { this.candidate = candidate; @@ -398,6 +410,9 @@ public Builder candidate(ApplicationCandidate candidate) { return this; } + /** + *

    The job being applied for.

    + */ @JsonSetter(value = "job", nulls = Nulls.SKIP) public Builder job(Optional job) { this.job = job; @@ -409,6 +424,9 @@ public Builder job(ApplicationJob job) { return this; } + /** + *

    When the application was submitted.

    + */ @JsonSetter(value = "applied_at", nulls = Nulls.SKIP) public Builder appliedAt(Optional appliedAt) { this.appliedAt = appliedAt; @@ -420,6 +438,9 @@ public Builder appliedAt(OffsetDateTime appliedAt) { return this; } + /** + *

    When the application was rejected.

    + */ @JsonSetter(value = "rejected_at", nulls = Nulls.SKIP) public Builder rejectedAt(Optional rejectedAt) { this.rejectedAt = rejectedAt; @@ -442,6 +463,9 @@ public Builder offers(List> offers) { return this; } + /** + *

    The application's source.

    + */ @JsonSetter(value = "source", nulls = Nulls.SKIP) public Builder source(Optional source) { this.source = source; @@ -453,6 +477,9 @@ public Builder source(String source) { return this; } + /** + *

    The user credited for this application.

    + */ @JsonSetter(value = "credited_to", nulls = Nulls.SKIP) public Builder creditedTo(Optional creditedTo) { this.creditedTo = creditedTo; @@ -477,6 +504,9 @@ public Builder screeningQuestionAnswers( return this; } + /** + *

    The application's current stage.

    + */ @JsonSetter(value = "current_stage", nulls = Nulls.SKIP) public Builder currentStage(Optional currentStage) { this.currentStage = currentStage; @@ -488,6 +518,9 @@ public Builder currentStage(ApplicationCurrentStage currentStage) { return this; } + /** + *

    The application's reason for rejection.

    + */ @JsonSetter(value = "reject_reason", nulls = Nulls.SKIP) public Builder rejectReason(Optional rejectReason) { this.rejectReason = rejectReason; @@ -499,6 +532,9 @@ public Builder rejectReason(ApplicationRejectReason rejectReason) { return this; } + /** + *

    Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

    + */ @JsonSetter(value = "remote_was_deleted", nulls = Nulls.SKIP) public Builder remoteWasDeleted(Optional remoteWasDeleted) { this.remoteWasDeleted = remoteWasDeleted; diff --git a/src/main/java/com/merge/api/ats/types/ApplicationEndpointRequest.java b/src/main/java/com/merge/api/ats/types/ApplicationEndpointRequest.java index 00af91b1a..cda224403 100644 --- a/src/main/java/com/merge/api/ats/types/ApplicationEndpointRequest.java +++ b/src/main/java/com/merge/api/ats/types/ApplicationEndpointRequest.java @@ -115,10 +115,16 @@ public interface RemoteUserIdStage { public interface _FinalStage { ApplicationEndpointRequest build(); + /** + *

    Whether to include debug fields (such as log file links) in the response.

    + */ _FinalStage isDebugMode(Optional isDebugMode); _FinalStage isDebugMode(Boolean isDebugMode); + /** + *

    Whether or not third-party updates should be run asynchronously.

    + */ _FinalStage runAsync(Optional runAsync); _FinalStage runAsync(Boolean runAsync); @@ -172,6 +178,9 @@ public _FinalStage runAsync(Boolean runAsync) { return this; } + /** + *

    Whether or not third-party updates should be run asynchronously.

    + */ @java.lang.Override @JsonSetter(value = "run_async", nulls = Nulls.SKIP) public _FinalStage runAsync(Optional runAsync) { @@ -189,6 +198,9 @@ public _FinalStage isDebugMode(Boolean isDebugMode) { return this; } + /** + *

    Whether to include debug fields (such as log file links) in the response.

    + */ @java.lang.Override @JsonSetter(value = "is_debug_mode", nulls = Nulls.SKIP) public _FinalStage isDebugMode(Optional isDebugMode) { diff --git a/src/main/java/com/merge/api/ats/types/ApplicationRequest.java b/src/main/java/com/merge/api/ats/types/ApplicationRequest.java index 86b323dae..c7e113dec 100644 --- a/src/main/java/com/merge/api/ats/types/ApplicationRequest.java +++ b/src/main/java/com/merge/api/ats/types/ApplicationRequest.java @@ -276,6 +276,9 @@ public Builder from(ApplicationRequest other) { return this; } + /** + *

    The candidate applying.

    + */ @JsonSetter(value = "candidate", nulls = Nulls.SKIP) public Builder candidate(Optional candidate) { this.candidate = candidate; @@ -287,6 +290,9 @@ public Builder candidate(ApplicationRequestCandidate candidate) { return this; } + /** + *

    The job being applied for.

    + */ @JsonSetter(value = "job", nulls = Nulls.SKIP) public Builder job(Optional job) { this.job = job; @@ -298,6 +304,9 @@ public Builder job(ApplicationRequestJob job) { return this; } + /** + *

    When the application was submitted.

    + */ @JsonSetter(value = "applied_at", nulls = Nulls.SKIP) public Builder appliedAt(Optional appliedAt) { this.appliedAt = appliedAt; @@ -309,6 +318,9 @@ public Builder appliedAt(OffsetDateTime appliedAt) { return this; } + /** + *

    When the application was rejected.

    + */ @JsonSetter(value = "rejected_at", nulls = Nulls.SKIP) public Builder rejectedAt(Optional rejectedAt) { this.rejectedAt = rejectedAt; @@ -331,6 +343,9 @@ public Builder offers(List> offers) { return this; } + /** + *

    The application's source.

    + */ @JsonSetter(value = "source", nulls = Nulls.SKIP) public Builder source(Optional source) { this.source = source; @@ -342,6 +357,9 @@ public Builder source(String source) { return this; } + /** + *

    The user credited for this application.

    + */ @JsonSetter(value = "credited_to", nulls = Nulls.SKIP) public Builder creditedTo(Optional creditedTo) { this.creditedTo = creditedTo; @@ -366,6 +384,9 @@ public Builder screeningQuestionAnswers( return this; } + /** + *

    The application's current stage.

    + */ @JsonSetter(value = "current_stage", nulls = Nulls.SKIP) public Builder currentStage(Optional currentStage) { this.currentStage = currentStage; @@ -377,6 +398,9 @@ public Builder currentStage(ApplicationRequestCurrentStage currentStage) { return this; } + /** + *

    The application's reason for rejection.

    + */ @JsonSetter(value = "reject_reason", nulls = Nulls.SKIP) public Builder rejectReason(Optional rejectReason) { this.rejectReason = rejectReason; diff --git a/src/main/java/com/merge/api/ats/types/ApplicationsListRequest.java b/src/main/java/com/merge/api/ats/types/ApplicationsListRequest.java index 9501e1ae0..884496705 100644 --- a/src/main/java/com/merge/api/ats/types/ApplicationsListRequest.java +++ b/src/main/java/com/merge/api/ats/types/ApplicationsListRequest.java @@ -358,6 +358,9 @@ public Builder from(ApplicationsListRequest other) { return this; } + /** + *

    Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.

    + */ @JsonSetter(value = "expand", nulls = Nulls.SKIP) public Builder expand(Optional> expand) { this.expand = expand; @@ -374,6 +377,9 @@ public Builder expand(ApplicationsListRequestExpandItem expand) { return this; } + /** + *

    If provided, will only return applications for this candidate.

    + */ @JsonSetter(value = "candidate_id", nulls = Nulls.SKIP) public Builder candidateId(Optional candidateId) { this.candidateId = candidateId; @@ -385,6 +391,9 @@ public Builder candidateId(String candidateId) { return this; } + /** + *

    If provided, will only return objects created after this datetime.

    + */ @JsonSetter(value = "created_after", nulls = Nulls.SKIP) public Builder createdAfter(Optional createdAfter) { this.createdAfter = createdAfter; @@ -396,6 +405,9 @@ public Builder createdAfter(OffsetDateTime createdAfter) { return this; } + /** + *

    If provided, will only return objects created before this datetime.

    + */ @JsonSetter(value = "created_before", nulls = Nulls.SKIP) public Builder createdBefore(Optional createdBefore) { this.createdBefore = createdBefore; @@ -407,6 +419,9 @@ public Builder createdBefore(OffsetDateTime createdBefore) { return this; } + /** + *

    If provided, will only return applications credited to this user.

    + */ @JsonSetter(value = "credited_to_id", nulls = Nulls.SKIP) public Builder creditedToId(Optional creditedToId) { this.creditedToId = creditedToId; @@ -418,6 +433,9 @@ public Builder creditedToId(String creditedToId) { return this; } + /** + *

    If provided, will only return applications at this interview stage.

    + */ @JsonSetter(value = "current_stage_id", nulls = Nulls.SKIP) public Builder currentStageId(Optional currentStageId) { this.currentStageId = currentStageId; @@ -429,6 +447,9 @@ public Builder currentStageId(String currentStageId) { return this; } + /** + *

    The pagination cursor value.

    + */ @JsonSetter(value = "cursor", nulls = Nulls.SKIP) public Builder cursor(Optional cursor) { this.cursor = cursor; @@ -440,6 +461,9 @@ public Builder cursor(String cursor) { return this; } + /** + *

    Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

    + */ @JsonSetter(value = "include_deleted_data", nulls = Nulls.SKIP) public Builder includeDeletedData(Optional includeDeletedData) { this.includeDeletedData = includeDeletedData; @@ -451,6 +475,9 @@ public Builder includeDeletedData(Boolean includeDeletedData) { return this; } + /** + *

    Whether to include the original data Merge fetched from the third-party to produce these models.

    + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -462,6 +489,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

    Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

    + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; @@ -473,6 +503,9 @@ public Builder includeShellData(Boolean includeShellData) { return this; } + /** + *

    If provided, will only return applications for this job.

    + */ @JsonSetter(value = "job_id", nulls = Nulls.SKIP) public Builder jobId(Optional jobId) { this.jobId = jobId; @@ -484,6 +517,9 @@ public Builder jobId(String jobId) { return this; } + /** + *

    If provided, only objects synced by Merge after this date time will be returned.

    + */ @JsonSetter(value = "modified_after", nulls = Nulls.SKIP) public Builder modifiedAfter(Optional modifiedAfter) { this.modifiedAfter = modifiedAfter; @@ -495,6 +531,9 @@ public Builder modifiedAfter(OffsetDateTime modifiedAfter) { return this; } + /** + *

    If provided, only objects synced by Merge before this date time will be returned.

    + */ @JsonSetter(value = "modified_before", nulls = Nulls.SKIP) public Builder modifiedBefore(Optional modifiedBefore) { this.modifiedBefore = modifiedBefore; @@ -506,6 +545,9 @@ public Builder modifiedBefore(OffsetDateTime modifiedBefore) { return this; } + /** + *

    Number of results to return per page.

    + */ @JsonSetter(value = "page_size", nulls = Nulls.SKIP) public Builder pageSize(Optional pageSize) { this.pageSize = pageSize; @@ -517,6 +559,9 @@ public Builder pageSize(Integer pageSize) { return this; } + /** + *

    If provided, will only return applications with this reject reason.

    + */ @JsonSetter(value = "reject_reason_id", nulls = Nulls.SKIP) public Builder rejectReasonId(Optional rejectReasonId) { this.rejectReasonId = rejectReasonId; @@ -528,6 +573,9 @@ public Builder rejectReasonId(String rejectReasonId) { return this; } + /** + *

    The API provider's ID for the given object.

    + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; @@ -539,6 +587,9 @@ public Builder remoteId(String remoteId) { return this; } + /** + *

    If provided, will only return applications with this source.

    + */ @JsonSetter(value = "source", nulls = Nulls.SKIP) public Builder source(Optional source) { this.source = source; diff --git a/src/main/java/com/merge/api/ats/types/ApplicationsMetaPostRetrieveRequest.java b/src/main/java/com/merge/api/ats/types/ApplicationsMetaPostRetrieveRequest.java index c26caa43f..1c0fe14ff 100644 --- a/src/main/java/com/merge/api/ats/types/ApplicationsMetaPostRetrieveRequest.java +++ b/src/main/java/com/merge/api/ats/types/ApplicationsMetaPostRetrieveRequest.java @@ -82,6 +82,9 @@ public Builder from(ApplicationsMetaPostRetrieveRequest other) { return this; } + /** + *

    The template ID associated with the nested application in the request.

    + */ @JsonSetter(value = "application_remote_template_id", nulls = Nulls.SKIP) public Builder applicationRemoteTemplateId(Optional applicationRemoteTemplateId) { this.applicationRemoteTemplateId = applicationRemoteTemplateId; diff --git a/src/main/java/com/merge/api/ats/types/ApplicationsRetrieveRequest.java b/src/main/java/com/merge/api/ats/types/ApplicationsRetrieveRequest.java index 25dfc0945..f649ce4b5 100644 --- a/src/main/java/com/merge/api/ats/types/ApplicationsRetrieveRequest.java +++ b/src/main/java/com/merge/api/ats/types/ApplicationsRetrieveRequest.java @@ -116,6 +116,9 @@ public Builder from(ApplicationsRetrieveRequest other) { return this; } + /** + *

    Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.

    + */ @JsonSetter(value = "expand", nulls = Nulls.SKIP) public Builder expand(Optional> expand) { this.expand = expand; @@ -132,6 +135,9 @@ public Builder expand(ApplicationsRetrieveRequestExpandItem expand) { return this; } + /** + *

    Whether to include the original data Merge fetched from the third-party to produce these models.

    + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -143,6 +149,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

    Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

    + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; diff --git a/src/main/java/com/merge/api/ats/types/Attachment.java b/src/main/java/com/merge/api/ats/types/Attachment.java index 6578926ce..37907c612 100644 --- a/src/main/java/com/merge/api/ats/types/Attachment.java +++ b/src/main/java/com/merge/api/ats/types/Attachment.java @@ -264,6 +264,9 @@ public Builder id(String id) { return this; } + /** + *

    The third-party API ID of the matching object.

    + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; @@ -275,6 +278,9 @@ public Builder remoteId(String remoteId) { return this; } + /** + *

    The datetime that this object was created by Merge.

    + */ @JsonSetter(value = "created_at", nulls = Nulls.SKIP) public Builder createdAt(Optional createdAt) { this.createdAt = createdAt; @@ -286,6 +292,9 @@ public Builder createdAt(OffsetDateTime createdAt) { return this; } + /** + *

    The datetime that this object was modified by Merge.

    + */ @JsonSetter(value = "modified_at", nulls = Nulls.SKIP) public Builder modifiedAt(Optional modifiedAt) { this.modifiedAt = modifiedAt; @@ -297,6 +306,9 @@ public Builder modifiedAt(OffsetDateTime modifiedAt) { return this; } + /** + *

    The attachment's name.

    + */ @JsonSetter(value = "file_name", nulls = Nulls.SKIP) public Builder fileName(Optional fileName) { this.fileName = fileName; @@ -308,6 +320,9 @@ public Builder fileName(String fileName) { return this; } + /** + *

    The attachment's url.

    + */ @JsonSetter(value = "file_url", nulls = Nulls.SKIP) public Builder fileUrl(Optional fileUrl) { this.fileUrl = fileUrl; @@ -330,6 +345,15 @@ public Builder candidate(String candidate) { return this; } + /** + *

    The attachment's type.

    + *
      + *
    • RESUME - RESUME
    • + *
    • COVER_LETTER - COVER_LETTER
    • + *
    • OFFER_LETTER - OFFER_LETTER
    • + *
    • OTHER - OTHER
    • + *
    + */ @JsonSetter(value = "attachment_type", nulls = Nulls.SKIP) public Builder attachmentType(Optional attachmentType) { this.attachmentType = attachmentType; @@ -341,6 +365,9 @@ public Builder attachmentType(AttachmentTypeEnum attachmentType) { return this; } + /** + *

    Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

    + */ @JsonSetter(value = "remote_was_deleted", nulls = Nulls.SKIP) public Builder remoteWasDeleted(Optional remoteWasDeleted) { this.remoteWasDeleted = remoteWasDeleted; diff --git a/src/main/java/com/merge/api/ats/types/AttachmentEndpointRequest.java b/src/main/java/com/merge/api/ats/types/AttachmentEndpointRequest.java index 6747c25b7..f3c64e4ca 100644 --- a/src/main/java/com/merge/api/ats/types/AttachmentEndpointRequest.java +++ b/src/main/java/com/merge/api/ats/types/AttachmentEndpointRequest.java @@ -115,10 +115,16 @@ public interface RemoteUserIdStage { public interface _FinalStage { AttachmentEndpointRequest build(); + /** + *

    Whether to include debug fields (such as log file links) in the response.

    + */ _FinalStage isDebugMode(Optional isDebugMode); _FinalStage isDebugMode(Boolean isDebugMode); + /** + *

    Whether or not third-party updates should be run asynchronously.

    + */ _FinalStage runAsync(Optional runAsync); _FinalStage runAsync(Boolean runAsync); @@ -172,6 +178,9 @@ public _FinalStage runAsync(Boolean runAsync) { return this; } + /** + *

    Whether or not third-party updates should be run asynchronously.

    + */ @java.lang.Override @JsonSetter(value = "run_async", nulls = Nulls.SKIP) public _FinalStage runAsync(Optional runAsync) { @@ -189,6 +198,9 @@ public _FinalStage isDebugMode(Boolean isDebugMode) { return this; } + /** + *

    Whether to include debug fields (such as log file links) in the response.

    + */ @java.lang.Override @JsonSetter(value = "is_debug_mode", nulls = Nulls.SKIP) public _FinalStage isDebugMode(Optional isDebugMode) { diff --git a/src/main/java/com/merge/api/ats/types/AttachmentRequest.java b/src/main/java/com/merge/api/ats/types/AttachmentRequest.java index ca14d669e..d012ce662 100644 --- a/src/main/java/com/merge/api/ats/types/AttachmentRequest.java +++ b/src/main/java/com/merge/api/ats/types/AttachmentRequest.java @@ -169,6 +169,9 @@ public Builder from(AttachmentRequest other) { return this; } + /** + *

    The attachment's name.

    + */ @JsonSetter(value = "file_name", nulls = Nulls.SKIP) public Builder fileName(Optional fileName) { this.fileName = fileName; @@ -180,6 +183,9 @@ public Builder fileName(String fileName) { return this; } + /** + *

    The attachment's url.

    + */ @JsonSetter(value = "file_url", nulls = Nulls.SKIP) public Builder fileUrl(Optional fileUrl) { this.fileUrl = fileUrl; @@ -202,6 +208,15 @@ public Builder candidate(String candidate) { return this; } + /** + *

    The attachment's type.

    + *
      + *
    • RESUME - RESUME
    • + *
    • COVER_LETTER - COVER_LETTER
    • + *
    • OFFER_LETTER - OFFER_LETTER
    • + *
    • OTHER - OTHER
    • + *
    + */ @JsonSetter(value = "attachment_type", nulls = Nulls.SKIP) public Builder attachmentType(Optional attachmentType) { this.attachmentType = attachmentType; diff --git a/src/main/java/com/merge/api/ats/types/AttachmentsListRequest.java b/src/main/java/com/merge/api/ats/types/AttachmentsListRequest.java index 295b24dbb..08fee160b 100644 --- a/src/main/java/com/merge/api/ats/types/AttachmentsListRequest.java +++ b/src/main/java/com/merge/api/ats/types/AttachmentsListRequest.java @@ -307,6 +307,9 @@ public Builder from(AttachmentsListRequest other) { return this; } + /** + *

    Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.

    + */ @JsonSetter(value = "expand", nulls = Nulls.SKIP) public Builder expand(Optional> expand) { this.expand = expand; @@ -323,6 +326,9 @@ public Builder expand(String expand) { return this; } + /** + *

    If provided, will only return attachments for this candidate.

    + */ @JsonSetter(value = "candidate_id", nulls = Nulls.SKIP) public Builder candidateId(Optional candidateId) { this.candidateId = candidateId; @@ -334,6 +340,9 @@ public Builder candidateId(String candidateId) { return this; } + /** + *

    If provided, will only return objects created after this datetime.

    + */ @JsonSetter(value = "created_after", nulls = Nulls.SKIP) public Builder createdAfter(Optional createdAfter) { this.createdAfter = createdAfter; @@ -345,6 +354,9 @@ public Builder createdAfter(OffsetDateTime createdAfter) { return this; } + /** + *

    If provided, will only return objects created before this datetime.

    + */ @JsonSetter(value = "created_before", nulls = Nulls.SKIP) public Builder createdBefore(Optional createdBefore) { this.createdBefore = createdBefore; @@ -356,6 +368,9 @@ public Builder createdBefore(OffsetDateTime createdBefore) { return this; } + /** + *

    The pagination cursor value.

    + */ @JsonSetter(value = "cursor", nulls = Nulls.SKIP) public Builder cursor(Optional cursor) { this.cursor = cursor; @@ -367,6 +382,9 @@ public Builder cursor(String cursor) { return this; } + /** + *

    Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

    + */ @JsonSetter(value = "include_deleted_data", nulls = Nulls.SKIP) public Builder includeDeletedData(Optional includeDeletedData) { this.includeDeletedData = includeDeletedData; @@ -378,6 +396,9 @@ public Builder includeDeletedData(Boolean includeDeletedData) { return this; } + /** + *

    Whether to include the original data Merge fetched from the third-party to produce these models.

    + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -389,6 +410,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

    Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

    + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; @@ -400,6 +424,9 @@ public Builder includeShellData(Boolean includeShellData) { return this; } + /** + *

    If provided, only objects synced by Merge after this date time will be returned.

    + */ @JsonSetter(value = "modified_after", nulls = Nulls.SKIP) public Builder modifiedAfter(Optional modifiedAfter) { this.modifiedAfter = modifiedAfter; @@ -411,6 +438,9 @@ public Builder modifiedAfter(OffsetDateTime modifiedAfter) { return this; } + /** + *

    If provided, only objects synced by Merge before this date time will be returned.

    + */ @JsonSetter(value = "modified_before", nulls = Nulls.SKIP) public Builder modifiedBefore(Optional modifiedBefore) { this.modifiedBefore = modifiedBefore; @@ -422,6 +452,9 @@ public Builder modifiedBefore(OffsetDateTime modifiedBefore) { return this; } + /** + *

    Number of results to return per page.

    + */ @JsonSetter(value = "page_size", nulls = Nulls.SKIP) public Builder pageSize(Optional pageSize) { this.pageSize = pageSize; @@ -433,6 +466,9 @@ public Builder pageSize(Integer pageSize) { return this; } + /** + *

    Deprecated. Use show_enum_origins.

    + */ @JsonSetter(value = "remote_fields", nulls = Nulls.SKIP) public Builder remoteFields(Optional remoteFields) { this.remoteFields = remoteFields; @@ -444,6 +480,9 @@ public Builder remoteFields(String remoteFields) { return this; } + /** + *

    The API provider's ID for the given object.

    + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; @@ -455,6 +494,9 @@ public Builder remoteId(String remoteId) { return this; } + /** + *

    A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. Learn more

    + */ @JsonSetter(value = "show_enum_origins", nulls = Nulls.SKIP) public Builder showEnumOrigins(Optional showEnumOrigins) { this.showEnumOrigins = showEnumOrigins; diff --git a/src/main/java/com/merge/api/ats/types/AttachmentsRetrieveRequest.java b/src/main/java/com/merge/api/ats/types/AttachmentsRetrieveRequest.java index dbcc26c31..fff610e32 100644 --- a/src/main/java/com/merge/api/ats/types/AttachmentsRetrieveRequest.java +++ b/src/main/java/com/merge/api/ats/types/AttachmentsRetrieveRequest.java @@ -149,6 +149,9 @@ public Builder from(AttachmentsRetrieveRequest other) { return this; } + /** + *

    Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.

    + */ @JsonSetter(value = "expand", nulls = Nulls.SKIP) public Builder expand(Optional> expand) { this.expand = expand; @@ -165,6 +168,9 @@ public Builder expand(String expand) { return this; } + /** + *

    Whether to include the original data Merge fetched from the third-party to produce these models.

    + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -176,6 +182,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

    Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

    + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; @@ -187,6 +196,9 @@ public Builder includeShellData(Boolean includeShellData) { return this; } + /** + *

    Deprecated. Use show_enum_origins.

    + */ @JsonSetter(value = "remote_fields", nulls = Nulls.SKIP) public Builder remoteFields(Optional remoteFields) { this.remoteFields = remoteFields; @@ -198,6 +210,9 @@ public Builder remoteFields(String remoteFields) { return this; } + /** + *

    A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. Learn more

    + */ @JsonSetter(value = "show_enum_origins", nulls = Nulls.SKIP) public Builder showEnumOrigins(Optional showEnumOrigins) { this.showEnumOrigins = showEnumOrigins; diff --git a/src/main/java/com/merge/api/ats/types/AuditLogEvent.java b/src/main/java/com/merge/api/ats/types/AuditLogEvent.java index 771884f81..f73ad3a60 100644 --- a/src/main/java/com/merge/api/ats/types/AuditLogEvent.java +++ b/src/main/java/com/merge/api/ats/types/AuditLogEvent.java @@ -210,6 +210,16 @@ public static RoleStage builder() { } public interface RoleStage { + /** + * Designates the role of the user (or SYSTEM/API if action not taken by a user) at the time of this Event occurring. + * + * * `ADMIN` - ADMIN + * * `DEVELOPER` - DEVELOPER + * * `MEMBER` - MEMBER + * * `API` - API + * * `SYSTEM` - SYSTEM + * * `MERGE_TEAM` - MERGE_TEAM + */ IpAddressStage role(@NotNull RoleEnum role); Builder from(AuditLogEvent other); @@ -220,6 +230,52 @@ public interface IpAddressStage { } public interface EventTypeStage { + /** + * Designates the type of event that occurred. + * + * * `CREATED_REMOTE_PRODUCTION_API_KEY` - CREATED_REMOTE_PRODUCTION_API_KEY + * * `DELETED_REMOTE_PRODUCTION_API_KEY` - DELETED_REMOTE_PRODUCTION_API_KEY + * * `CREATED_TEST_API_KEY` - CREATED_TEST_API_KEY + * * `DELETED_TEST_API_KEY` - DELETED_TEST_API_KEY + * * `REGENERATED_PRODUCTION_API_KEY` - REGENERATED_PRODUCTION_API_KEY + * * `INVITED_USER` - INVITED_USER + * * `TWO_FACTOR_AUTH_ENABLED` - TWO_FACTOR_AUTH_ENABLED + * * `TWO_FACTOR_AUTH_DISABLED` - TWO_FACTOR_AUTH_DISABLED + * * `DELETED_LINKED_ACCOUNT` - DELETED_LINKED_ACCOUNT + * * `DELETED_ALL_COMMON_MODELS_FOR_LINKED_ACCOUNT` - DELETED_ALL_COMMON_MODELS_FOR_LINKED_ACCOUNT + * * `CREATED_DESTINATION` - CREATED_DESTINATION + * * `DELETED_DESTINATION` - DELETED_DESTINATION + * * `CHANGED_DESTINATION` - CHANGED_DESTINATION + * * `CHANGED_SCOPES` - CHANGED_SCOPES + * * `CHANGED_PERSONAL_INFORMATION` - CHANGED_PERSONAL_INFORMATION + * * `CHANGED_ORGANIZATION_SETTINGS` - CHANGED_ORGANIZATION_SETTINGS + * * `ENABLED_INTEGRATION` - ENABLED_INTEGRATION + * * `DISABLED_INTEGRATION` - DISABLED_INTEGRATION + * * `ENABLED_CATEGORY` - ENABLED_CATEGORY + * * `DISABLED_CATEGORY` - DISABLED_CATEGORY + * * `CHANGED_PASSWORD` - CHANGED_PASSWORD + * * `RESET_PASSWORD` - RESET_PASSWORD + * * `ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION` - ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION + * * `ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT` - ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT + * * `DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION` - DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION + * * `DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT` - DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT + * * `CREATED_INTEGRATION_WIDE_FIELD_MAPPING` - CREATED_INTEGRATION_WIDE_FIELD_MAPPING + * * `CREATED_LINKED_ACCOUNT_FIELD_MAPPING` - CREATED_LINKED_ACCOUNT_FIELD_MAPPING + * * `CHANGED_INTEGRATION_WIDE_FIELD_MAPPING` - CHANGED_INTEGRATION_WIDE_FIELD_MAPPING + * * `CHANGED_LINKED_ACCOUNT_FIELD_MAPPING` - CHANGED_LINKED_ACCOUNT_FIELD_MAPPING + * * `DELETED_INTEGRATION_WIDE_FIELD_MAPPING` - DELETED_INTEGRATION_WIDE_FIELD_MAPPING + * * `DELETED_LINKED_ACCOUNT_FIELD_MAPPING` - DELETED_LINKED_ACCOUNT_FIELD_MAPPING + * * `CREATED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE` - CREATED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE + * * `CHANGED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE` - CHANGED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE + * * `DELETED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE` - DELETED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE + * * `FORCED_LINKED_ACCOUNT_RESYNC` - FORCED_LINKED_ACCOUNT_RESYNC + * * `MUTED_ISSUE` - MUTED_ISSUE + * * `GENERATED_MAGIC_LINK` - GENERATED_MAGIC_LINK + * * `ENABLED_MERGE_WEBHOOK` - ENABLED_MERGE_WEBHOOK + * * `DISABLED_MERGE_WEBHOOK` - DISABLED_MERGE_WEBHOOK + * * `MERGE_WEBHOOK_TARGET_CHANGED` - MERGE_WEBHOOK_TARGET_CHANGED + * * `END_USER_CREDENTIALS_ACCESSED` - END_USER_CREDENTIALS_ACCESSED + */ EventDescriptionStage eventType(@NotNull EventTypeEnum eventType); } @@ -234,10 +290,16 @@ public interface _FinalStage { _FinalStage id(String id); + /** + *

    The User's full name at the time of this Event occurring.

    + */ _FinalStage userName(Optional userName); _FinalStage userName(String userName); + /** + *

    The User's email at the time of this Event occurring.

    + */ _FinalStage userEmail(Optional userEmail); _FinalStage userEmail(String userEmail); @@ -285,7 +347,14 @@ public Builder from(AuditLogEvent other) { } /** - *

    Designates the role of the user (or SYSTEM/API if action not taken by a user) at the time of this Event occurring.

    + * Designates the role of the user (or SYSTEM/API if action not taken by a user) at the time of this Event occurring. + * + * * `ADMIN` - ADMIN + * * `DEVELOPER` - DEVELOPER + * * `MEMBER` - MEMBER + * * `API` - API + * * `SYSTEM` - SYSTEM + * * `MERGE_TEAM` - MERGE_TEAM

    Designates the role of the user (or SYSTEM/API if action not taken by a user) at the time of this Event occurring.

    *
      *
    • ADMIN - ADMIN
    • *
    • DEVELOPER - DEVELOPER
    • @@ -311,7 +380,50 @@ public EventTypeStage ipAddress(@NotNull String ipAddress) { } /** - *

      Designates the type of event that occurred.

      + * Designates the type of event that occurred. + * + * * `CREATED_REMOTE_PRODUCTION_API_KEY` - CREATED_REMOTE_PRODUCTION_API_KEY + * * `DELETED_REMOTE_PRODUCTION_API_KEY` - DELETED_REMOTE_PRODUCTION_API_KEY + * * `CREATED_TEST_API_KEY` - CREATED_TEST_API_KEY + * * `DELETED_TEST_API_KEY` - DELETED_TEST_API_KEY + * * `REGENERATED_PRODUCTION_API_KEY` - REGENERATED_PRODUCTION_API_KEY + * * `INVITED_USER` - INVITED_USER + * * `TWO_FACTOR_AUTH_ENABLED` - TWO_FACTOR_AUTH_ENABLED + * * `TWO_FACTOR_AUTH_DISABLED` - TWO_FACTOR_AUTH_DISABLED + * * `DELETED_LINKED_ACCOUNT` - DELETED_LINKED_ACCOUNT + * * `DELETED_ALL_COMMON_MODELS_FOR_LINKED_ACCOUNT` - DELETED_ALL_COMMON_MODELS_FOR_LINKED_ACCOUNT + * * `CREATED_DESTINATION` - CREATED_DESTINATION + * * `DELETED_DESTINATION` - DELETED_DESTINATION + * * `CHANGED_DESTINATION` - CHANGED_DESTINATION + * * `CHANGED_SCOPES` - CHANGED_SCOPES + * * `CHANGED_PERSONAL_INFORMATION` - CHANGED_PERSONAL_INFORMATION + * * `CHANGED_ORGANIZATION_SETTINGS` - CHANGED_ORGANIZATION_SETTINGS + * * `ENABLED_INTEGRATION` - ENABLED_INTEGRATION + * * `DISABLED_INTEGRATION` - DISABLED_INTEGRATION + * * `ENABLED_CATEGORY` - ENABLED_CATEGORY + * * `DISABLED_CATEGORY` - DISABLED_CATEGORY + * * `CHANGED_PASSWORD` - CHANGED_PASSWORD + * * `RESET_PASSWORD` - RESET_PASSWORD + * * `ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION` - ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION + * * `ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT` - ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT + * * `DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION` - DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION + * * `DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT` - DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT + * * `CREATED_INTEGRATION_WIDE_FIELD_MAPPING` - CREATED_INTEGRATION_WIDE_FIELD_MAPPING + * * `CREATED_LINKED_ACCOUNT_FIELD_MAPPING` - CREATED_LINKED_ACCOUNT_FIELD_MAPPING + * * `CHANGED_INTEGRATION_WIDE_FIELD_MAPPING` - CHANGED_INTEGRATION_WIDE_FIELD_MAPPING + * * `CHANGED_LINKED_ACCOUNT_FIELD_MAPPING` - CHANGED_LINKED_ACCOUNT_FIELD_MAPPING + * * `DELETED_INTEGRATION_WIDE_FIELD_MAPPING` - DELETED_INTEGRATION_WIDE_FIELD_MAPPING + * * `DELETED_LINKED_ACCOUNT_FIELD_MAPPING` - DELETED_LINKED_ACCOUNT_FIELD_MAPPING + * * `CREATED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE` - CREATED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE + * * `CHANGED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE` - CHANGED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE + * * `DELETED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE` - DELETED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE + * * `FORCED_LINKED_ACCOUNT_RESYNC` - FORCED_LINKED_ACCOUNT_RESYNC + * * `MUTED_ISSUE` - MUTED_ISSUE + * * `GENERATED_MAGIC_LINK` - GENERATED_MAGIC_LINK + * * `ENABLED_MERGE_WEBHOOK` - ENABLED_MERGE_WEBHOOK + * * `DISABLED_MERGE_WEBHOOK` - DISABLED_MERGE_WEBHOOK + * * `MERGE_WEBHOOK_TARGET_CHANGED` - MERGE_WEBHOOK_TARGET_CHANGED + * * `END_USER_CREDENTIALS_ACCESSED` - END_USER_CREDENTIALS_ACCESSED

      Designates the type of event that occurred.

      *
        *
      • CREATED_REMOTE_PRODUCTION_API_KEY - CREATED_REMOTE_PRODUCTION_API_KEY
      • *
      • DELETED_REMOTE_PRODUCTION_API_KEY - DELETED_REMOTE_PRODUCTION_API_KEY
      • @@ -395,6 +507,9 @@ public _FinalStage userEmail(String userEmail) { return this; } + /** + *

        The User's email at the time of this Event occurring.

        + */ @java.lang.Override @JsonSetter(value = "user_email", nulls = Nulls.SKIP) public _FinalStage userEmail(Optional userEmail) { @@ -412,6 +527,9 @@ public _FinalStage userName(String userName) { return this; } + /** + *

        The User's full name at the time of this Event occurring.

        + */ @java.lang.Override @JsonSetter(value = "user_name", nulls = Nulls.SKIP) public _FinalStage userName(Optional userName) { diff --git a/src/main/java/com/merge/api/ats/types/AuditTrailListRequest.java b/src/main/java/com/merge/api/ats/types/AuditTrailListRequest.java index 2a4e2c481..605c1a920 100644 --- a/src/main/java/com/merge/api/ats/types/AuditTrailListRequest.java +++ b/src/main/java/com/merge/api/ats/types/AuditTrailListRequest.java @@ -162,6 +162,9 @@ public Builder from(AuditTrailListRequest other) { return this; } + /** + *

        The pagination cursor value.

        + */ @JsonSetter(value = "cursor", nulls = Nulls.SKIP) public Builder cursor(Optional cursor) { this.cursor = cursor; @@ -173,6 +176,9 @@ public Builder cursor(String cursor) { return this; } + /** + *

        If included, will only include audit trail events that occurred before this time

        + */ @JsonSetter(value = "end_date", nulls = Nulls.SKIP) public Builder endDate(Optional endDate) { this.endDate = endDate; @@ -184,6 +190,9 @@ public Builder endDate(String endDate) { return this; } + /** + *

        If included, will only include events with the given event type. Possible values include: CREATED_REMOTE_PRODUCTION_API_KEY, DELETED_REMOTE_PRODUCTION_API_KEY, CREATED_TEST_API_KEY, DELETED_TEST_API_KEY, REGENERATED_PRODUCTION_API_KEY, INVITED_USER, TWO_FACTOR_AUTH_ENABLED, TWO_FACTOR_AUTH_DISABLED, DELETED_LINKED_ACCOUNT, DELETED_ALL_COMMON_MODELS_FOR_LINKED_ACCOUNT, CREATED_DESTINATION, DELETED_DESTINATION, CHANGED_DESTINATION, CHANGED_SCOPES, CHANGED_PERSONAL_INFORMATION, CHANGED_ORGANIZATION_SETTINGS, ENABLED_INTEGRATION, DISABLED_INTEGRATION, ENABLED_CATEGORY, DISABLED_CATEGORY, CHANGED_PASSWORD, RESET_PASSWORD, ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION, ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT, DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION, DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT, CREATED_INTEGRATION_WIDE_FIELD_MAPPING, CREATED_LINKED_ACCOUNT_FIELD_MAPPING, CHANGED_INTEGRATION_WIDE_FIELD_MAPPING, CHANGED_LINKED_ACCOUNT_FIELD_MAPPING, DELETED_INTEGRATION_WIDE_FIELD_MAPPING, DELETED_LINKED_ACCOUNT_FIELD_MAPPING, CREATED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE, CHANGED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE, DELETED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE, FORCED_LINKED_ACCOUNT_RESYNC, MUTED_ISSUE, GENERATED_MAGIC_LINK, ENABLED_MERGE_WEBHOOK, DISABLED_MERGE_WEBHOOK, MERGE_WEBHOOK_TARGET_CHANGED, END_USER_CREDENTIALS_ACCESSED

        + */ @JsonSetter(value = "event_type", nulls = Nulls.SKIP) public Builder eventType(Optional eventType) { this.eventType = eventType; @@ -195,6 +204,9 @@ public Builder eventType(String eventType) { return this; } + /** + *

        Number of results to return per page.

        + */ @JsonSetter(value = "page_size", nulls = Nulls.SKIP) public Builder pageSize(Optional pageSize) { this.pageSize = pageSize; @@ -206,6 +218,9 @@ public Builder pageSize(Integer pageSize) { return this; } + /** + *

        If included, will only include audit trail events that occurred after this time

        + */ @JsonSetter(value = "start_date", nulls = Nulls.SKIP) public Builder startDate(Optional startDate) { this.startDate = startDate; @@ -217,6 +232,9 @@ public Builder startDate(String startDate) { return this; } + /** + *

        If provided, this will return events associated with the specified user email. Please note that the email address reflects the user's email at the time of the event, and may not be their current email.

        + */ @JsonSetter(value = "user_email", nulls = Nulls.SKIP) public Builder userEmail(Optional userEmail) { this.userEmail = userEmail; diff --git a/src/main/java/com/merge/api/ats/types/Candidate.java b/src/main/java/com/merge/api/ats/types/Candidate.java index 05e01b2e3..274b1c3d5 100644 --- a/src/main/java/com/merge/api/ats/types/Candidate.java +++ b/src/main/java/com/merge/api/ats/types/Candidate.java @@ -453,6 +453,9 @@ public Builder id(String id) { return this; } + /** + *

        The third-party API ID of the matching object.

        + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; @@ -464,6 +467,9 @@ public Builder remoteId(String remoteId) { return this; } + /** + *

        The datetime that this object was created by Merge.

        + */ @JsonSetter(value = "created_at", nulls = Nulls.SKIP) public Builder createdAt(Optional createdAt) { this.createdAt = createdAt; @@ -475,6 +481,9 @@ public Builder createdAt(OffsetDateTime createdAt) { return this; } + /** + *

        The datetime that this object was modified by Merge.

        + */ @JsonSetter(value = "modified_at", nulls = Nulls.SKIP) public Builder modifiedAt(Optional modifiedAt) { this.modifiedAt = modifiedAt; @@ -486,6 +495,9 @@ public Builder modifiedAt(OffsetDateTime modifiedAt) { return this; } + /** + *

        The candidate's first name.

        + */ @JsonSetter(value = "first_name", nulls = Nulls.SKIP) public Builder firstName(Optional firstName) { this.firstName = firstName; @@ -497,6 +509,9 @@ public Builder firstName(String firstName) { return this; } + /** + *

        The candidate's last name.

        + */ @JsonSetter(value = "last_name", nulls = Nulls.SKIP) public Builder lastName(Optional lastName) { this.lastName = lastName; @@ -508,6 +523,9 @@ public Builder lastName(String lastName) { return this; } + /** + *

        The candidate's current company.

        + */ @JsonSetter(value = "company", nulls = Nulls.SKIP) public Builder company(Optional company) { this.company = company; @@ -519,6 +537,9 @@ public Builder company(String company) { return this; } + /** + *

        The candidate's current title.

        + */ @JsonSetter(value = "title", nulls = Nulls.SKIP) public Builder title(Optional title) { this.title = title; @@ -530,6 +551,9 @@ public Builder title(String title) { return this; } + /** + *

        When the third party's candidate was created.

        + */ @JsonSetter(value = "remote_created_at", nulls = Nulls.SKIP) public Builder remoteCreatedAt(Optional remoteCreatedAt) { this.remoteCreatedAt = remoteCreatedAt; @@ -541,6 +565,9 @@ public Builder remoteCreatedAt(OffsetDateTime remoteCreatedAt) { return this; } + /** + *

        When the third party's candidate was updated.

        + */ @JsonSetter(value = "remote_updated_at", nulls = Nulls.SKIP) public Builder remoteUpdatedAt(Optional remoteUpdatedAt) { this.remoteUpdatedAt = remoteUpdatedAt; @@ -552,6 +579,9 @@ public Builder remoteUpdatedAt(OffsetDateTime remoteUpdatedAt) { return this; } + /** + *

        When the most recent interaction with the candidate occurred.

        + */ @JsonSetter(value = "last_interaction_at", nulls = Nulls.SKIP) public Builder lastInteractionAt(Optional lastInteractionAt) { this.lastInteractionAt = lastInteractionAt; @@ -563,6 +593,9 @@ public Builder lastInteractionAt(OffsetDateTime lastInteractionAt) { return this; } + /** + *

        Whether or not the candidate is private.

        + */ @JsonSetter(value = "is_private", nulls = Nulls.SKIP) public Builder isPrivate(Optional isPrivate) { this.isPrivate = isPrivate; @@ -574,6 +607,9 @@ public Builder isPrivate(Boolean isPrivate) { return this; } + /** + *

        Whether or not the candidate can be emailed.

        + */ @JsonSetter(value = "can_email", nulls = Nulls.SKIP) public Builder canEmail(Optional canEmail) { this.canEmail = canEmail; @@ -585,6 +621,9 @@ public Builder canEmail(Boolean canEmail) { return this; } + /** + *

        The candidate's locations.

        + */ @JsonSetter(value = "locations", nulls = Nulls.SKIP) public Builder locations(Optional>> locations) { this.locations = locations; @@ -629,6 +668,9 @@ public Builder urls(List urls) { return this; } + /** + *

        Array of Tag names as strings.

        + */ @JsonSetter(value = "tags", nulls = Nulls.SKIP) public Builder tags(Optional>> tags) { this.tags = tags; @@ -640,6 +682,9 @@ public Builder tags(List> tags) { return this; } + /** + *

        Array of Application object IDs.

        + */ @JsonSetter(value = "applications", nulls = Nulls.SKIP) public Builder applications(Optional>> applications) { this.applications = applications; @@ -651,6 +696,9 @@ public Builder applications(List> applicatio return this; } + /** + *

        Array of Attachment object IDs.

        + */ @JsonSetter(value = "attachments", nulls = Nulls.SKIP) public Builder attachments(Optional>> attachments) { this.attachments = attachments; @@ -662,6 +710,9 @@ public Builder attachments(List> attachments) return this; } + /** + *

        Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

        + */ @JsonSetter(value = "remote_was_deleted", nulls = Nulls.SKIP) public Builder remoteWasDeleted(Optional remoteWasDeleted) { this.remoteWasDeleted = remoteWasDeleted; diff --git a/src/main/java/com/merge/api/ats/types/CandidateEndpointRequest.java b/src/main/java/com/merge/api/ats/types/CandidateEndpointRequest.java index 221fe5da9..704e91453 100644 --- a/src/main/java/com/merge/api/ats/types/CandidateEndpointRequest.java +++ b/src/main/java/com/merge/api/ats/types/CandidateEndpointRequest.java @@ -115,10 +115,16 @@ public interface RemoteUserIdStage { public interface _FinalStage { CandidateEndpointRequest build(); + /** + *

        Whether to include debug fields (such as log file links) in the response.

        + */ _FinalStage isDebugMode(Optional isDebugMode); _FinalStage isDebugMode(Boolean isDebugMode); + /** + *

        Whether or not third-party updates should be run asynchronously.

        + */ _FinalStage runAsync(Optional runAsync); _FinalStage runAsync(Boolean runAsync); @@ -172,6 +178,9 @@ public _FinalStage runAsync(Boolean runAsync) { return this; } + /** + *

        Whether or not third-party updates should be run asynchronously.

        + */ @java.lang.Override @JsonSetter(value = "run_async", nulls = Nulls.SKIP) public _FinalStage runAsync(Optional runAsync) { @@ -189,6 +198,9 @@ public _FinalStage isDebugMode(Boolean isDebugMode) { return this; } + /** + *

        Whether to include debug fields (such as log file links) in the response.

        + */ @java.lang.Override @JsonSetter(value = "is_debug_mode", nulls = Nulls.SKIP) public _FinalStage isDebugMode(Optional isDebugMode) { diff --git a/src/main/java/com/merge/api/ats/types/CandidateRequest.java b/src/main/java/com/merge/api/ats/types/CandidateRequest.java index 5d4e82cdd..34fbbf7a7 100644 --- a/src/main/java/com/merge/api/ats/types/CandidateRequest.java +++ b/src/main/java/com/merge/api/ats/types/CandidateRequest.java @@ -340,6 +340,9 @@ public Builder from(CandidateRequest other) { return this; } + /** + *

        The candidate's first name.

        + */ @JsonSetter(value = "first_name", nulls = Nulls.SKIP) public Builder firstName(Optional firstName) { this.firstName = firstName; @@ -351,6 +354,9 @@ public Builder firstName(String firstName) { return this; } + /** + *

        The candidate's last name.

        + */ @JsonSetter(value = "last_name", nulls = Nulls.SKIP) public Builder lastName(Optional lastName) { this.lastName = lastName; @@ -362,6 +368,9 @@ public Builder lastName(String lastName) { return this; } + /** + *

        The candidate's current company.

        + */ @JsonSetter(value = "company", nulls = Nulls.SKIP) public Builder company(Optional company) { this.company = company; @@ -373,6 +382,9 @@ public Builder company(String company) { return this; } + /** + *

        The candidate's current title.

        + */ @JsonSetter(value = "title", nulls = Nulls.SKIP) public Builder title(Optional title) { this.title = title; @@ -384,6 +396,9 @@ public Builder title(String title) { return this; } + /** + *

        When the most recent interaction with the candidate occurred.

        + */ @JsonSetter(value = "last_interaction_at", nulls = Nulls.SKIP) public Builder lastInteractionAt(Optional lastInteractionAt) { this.lastInteractionAt = lastInteractionAt; @@ -395,6 +410,9 @@ public Builder lastInteractionAt(OffsetDateTime lastInteractionAt) { return this; } + /** + *

        Whether or not the candidate is private.

        + */ @JsonSetter(value = "is_private", nulls = Nulls.SKIP) public Builder isPrivate(Optional isPrivate) { this.isPrivate = isPrivate; @@ -406,6 +424,9 @@ public Builder isPrivate(Boolean isPrivate) { return this; } + /** + *

        Whether or not the candidate can be emailed.

        + */ @JsonSetter(value = "can_email", nulls = Nulls.SKIP) public Builder canEmail(Optional canEmail) { this.canEmail = canEmail; @@ -417,6 +438,9 @@ public Builder canEmail(Boolean canEmail) { return this; } + /** + *

        The candidate's locations.

        + */ @JsonSetter(value = "locations", nulls = Nulls.SKIP) public Builder locations(Optional>> locations) { this.locations = locations; @@ -461,6 +485,9 @@ public Builder urls(List urls) { return this; } + /** + *

        Array of Tag names as strings.

        + */ @JsonSetter(value = "tags", nulls = Nulls.SKIP) public Builder tags(Optional>> tags) { this.tags = tags; @@ -472,6 +499,9 @@ public Builder tags(List> tags) { return this; } + /** + *

        Array of Application object IDs.

        + */ @JsonSetter(value = "applications", nulls = Nulls.SKIP) public Builder applications(Optional>> applications) { this.applications = applications; @@ -483,6 +513,9 @@ public Builder applications(List> app return this; } + /** + *

        Array of Attachment object IDs.

        + */ @JsonSetter(value = "attachments", nulls = Nulls.SKIP) public Builder attachments(Optional>> attachments) { this.attachments = attachments; diff --git a/src/main/java/com/merge/api/ats/types/CandidatesListRequest.java b/src/main/java/com/merge/api/ats/types/CandidatesListRequest.java index 59e0bb429..b2721928a 100644 --- a/src/main/java/com/merge/api/ats/types/CandidatesListRequest.java +++ b/src/main/java/com/merge/api/ats/types/CandidatesListRequest.java @@ -324,6 +324,9 @@ public Builder from(CandidatesListRequest other) { return this; } + /** + *

        Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.

        + */ @JsonSetter(value = "expand", nulls = Nulls.SKIP) public Builder expand(Optional> expand) { this.expand = expand; @@ -340,6 +343,9 @@ public Builder expand(CandidatesListRequestExpandItem expand) { return this; } + /** + *

        If provided, will only return objects created after this datetime.

        + */ @JsonSetter(value = "created_after", nulls = Nulls.SKIP) public Builder createdAfter(Optional createdAfter) { this.createdAfter = createdAfter; @@ -351,6 +357,9 @@ public Builder createdAfter(OffsetDateTime createdAfter) { return this; } + /** + *

        If provided, will only return objects created before this datetime.

        + */ @JsonSetter(value = "created_before", nulls = Nulls.SKIP) public Builder createdBefore(Optional createdBefore) { this.createdBefore = createdBefore; @@ -362,6 +371,9 @@ public Builder createdBefore(OffsetDateTime createdBefore) { return this; } + /** + *

        The pagination cursor value.

        + */ @JsonSetter(value = "cursor", nulls = Nulls.SKIP) public Builder cursor(Optional cursor) { this.cursor = cursor; @@ -373,6 +385,9 @@ public Builder cursor(String cursor) { return this; } + /** + *

        If provided, will only return candidates with these email addresses; multiple addresses can be separated by commas.

        + */ @JsonSetter(value = "email_addresses", nulls = Nulls.SKIP) public Builder emailAddresses(Optional emailAddresses) { this.emailAddresses = emailAddresses; @@ -384,6 +399,9 @@ public Builder emailAddresses(String emailAddresses) { return this; } + /** + *

        If provided, will only return candidates with this first name.

        + */ @JsonSetter(value = "first_name", nulls = Nulls.SKIP) public Builder firstName(Optional firstName) { this.firstName = firstName; @@ -395,6 +413,9 @@ public Builder firstName(String firstName) { return this; } + /** + *

        Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

        + */ @JsonSetter(value = "include_deleted_data", nulls = Nulls.SKIP) public Builder includeDeletedData(Optional includeDeletedData) { this.includeDeletedData = includeDeletedData; @@ -406,6 +427,9 @@ public Builder includeDeletedData(Boolean includeDeletedData) { return this; } + /** + *

        Whether to include the original data Merge fetched from the third-party to produce these models.

        + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -417,6 +441,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

        Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

        + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; @@ -428,6 +455,9 @@ public Builder includeShellData(Boolean includeShellData) { return this; } + /** + *

        If provided, will only return candidates with this last name.

        + */ @JsonSetter(value = "last_name", nulls = Nulls.SKIP) public Builder lastName(Optional lastName) { this.lastName = lastName; @@ -439,6 +469,9 @@ public Builder lastName(String lastName) { return this; } + /** + *

        If provided, only objects synced by Merge after this date time will be returned.

        + */ @JsonSetter(value = "modified_after", nulls = Nulls.SKIP) public Builder modifiedAfter(Optional modifiedAfter) { this.modifiedAfter = modifiedAfter; @@ -450,6 +483,9 @@ public Builder modifiedAfter(OffsetDateTime modifiedAfter) { return this; } + /** + *

        If provided, only objects synced by Merge before this date time will be returned.

        + */ @JsonSetter(value = "modified_before", nulls = Nulls.SKIP) public Builder modifiedBefore(Optional modifiedBefore) { this.modifiedBefore = modifiedBefore; @@ -461,6 +497,9 @@ public Builder modifiedBefore(OffsetDateTime modifiedBefore) { return this; } + /** + *

        Number of results to return per page.

        + */ @JsonSetter(value = "page_size", nulls = Nulls.SKIP) public Builder pageSize(Optional pageSize) { this.pageSize = pageSize; @@ -472,6 +511,9 @@ public Builder pageSize(Integer pageSize) { return this; } + /** + *

        The API provider's ID for the given object.

        + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; @@ -483,6 +525,9 @@ public Builder remoteId(String remoteId) { return this; } + /** + *

        If provided, will only return candidates with these tags; multiple tags can be separated by commas.

        + */ @JsonSetter(value = "tags", nulls = Nulls.SKIP) public Builder tags(Optional tags) { this.tags = tags; diff --git a/src/main/java/com/merge/api/ats/types/CandidatesRetrieveRequest.java b/src/main/java/com/merge/api/ats/types/CandidatesRetrieveRequest.java index acc3cec56..9d6bf798a 100644 --- a/src/main/java/com/merge/api/ats/types/CandidatesRetrieveRequest.java +++ b/src/main/java/com/merge/api/ats/types/CandidatesRetrieveRequest.java @@ -116,6 +116,9 @@ public Builder from(CandidatesRetrieveRequest other) { return this; } + /** + *

        Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.

        + */ @JsonSetter(value = "expand", nulls = Nulls.SKIP) public Builder expand(Optional> expand) { this.expand = expand; @@ -132,6 +135,9 @@ public Builder expand(CandidatesRetrieveRequestExpandItem expand) { return this; } + /** + *

        Whether to include the original data Merge fetched from the third-party to produce these models.

        + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -143,6 +149,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

        Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

        + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; diff --git a/src/main/java/com/merge/api/ats/types/CommonModelScopeApi.java b/src/main/java/com/merge/api/ats/types/CommonModelScopeApi.java index 8b7726971..f6574f2de 100644 --- a/src/main/java/com/merge/api/ats/types/CommonModelScopeApi.java +++ b/src/main/java/com/merge/api/ats/types/CommonModelScopeApi.java @@ -82,6 +82,9 @@ public Builder from(CommonModelScopeApi other) { return this; } + /** + *

        The common models you want to update the scopes for

        + */ @JsonSetter(value = "common_models", nulls = Nulls.SKIP) public Builder commonModels(List commonModels) { this.commonModels.clear(); diff --git a/src/main/java/com/merge/api/ats/types/CreateFieldMappingRequest.java b/src/main/java/com/merge/api/ats/types/CreateFieldMappingRequest.java index 94c5035fa..84fb22ffa 100644 --- a/src/main/java/com/merge/api/ats/types/CreateFieldMappingRequest.java +++ b/src/main/java/com/merge/api/ats/types/CreateFieldMappingRequest.java @@ -158,34 +158,55 @@ public static TargetFieldNameStage builder() { } public interface TargetFieldNameStage { + /** + * The name of the target field you want this remote field to map to. + */ TargetFieldDescriptionStage targetFieldName(@NotNull String targetFieldName); Builder from(CreateFieldMappingRequest other); } public interface TargetFieldDescriptionStage { + /** + * The description of the target field you want this remote field to map to. + */ RemoteMethodStage targetFieldDescription(@NotNull String targetFieldDescription); } public interface RemoteMethodStage { + /** + * The method of the remote endpoint where the remote field is coming from. + */ RemoteUrlPathStage remoteMethod(@NotNull String remoteMethod); } public interface RemoteUrlPathStage { + /** + * The path of the remote endpoint where the remote field is coming from. + */ CommonModelNameStage remoteUrlPath(@NotNull String remoteUrlPath); } public interface CommonModelNameStage { + /** + * The name of the Common Model that the remote field corresponds to in a given category. + */ _FinalStage commonModelName(@NotNull String commonModelName); } public interface _FinalStage { CreateFieldMappingRequest build(); + /** + *

        If true, remote fields metadata is excluded from each field mapping instance (i.e. remote_fields.remote_key_name and remote_fields.schema will be null). This will increase the speed of the request since these fields require some calculations.

        + */ _FinalStage excludeRemoteFieldMetadata(Optional excludeRemoteFieldMetadata); _FinalStage excludeRemoteFieldMetadata(Boolean excludeRemoteFieldMetadata); + /** + *

        The field traversal path of the remote field listed when you hit the GET /remote-fields endpoint.

        + */ _FinalStage remoteFieldTraversalPath(List remoteFieldTraversalPath); _FinalStage addRemoteFieldTraversalPath(JsonNode remoteFieldTraversalPath); @@ -233,7 +254,7 @@ public Builder from(CreateFieldMappingRequest other) { } /** - *

        The name of the target field you want this remote field to map to.

        + * The name of the target field you want this remote field to map to.

        The name of the target field you want this remote field to map to.

        * @return Reference to {@code this} so that method calls can be chained together. */ @java.lang.Override @@ -244,7 +265,7 @@ public TargetFieldDescriptionStage targetFieldName(@NotNull String targetFieldNa } /** - *

        The description of the target field you want this remote field to map to.

        + * The description of the target field you want this remote field to map to.

        The description of the target field you want this remote field to map to.

        * @return Reference to {@code this} so that method calls can be chained together. */ @java.lang.Override @@ -255,7 +276,7 @@ public RemoteMethodStage targetFieldDescription(@NotNull String targetFieldDescr } /** - *

        The method of the remote endpoint where the remote field is coming from.

        + * The method of the remote endpoint where the remote field is coming from.

        The method of the remote endpoint where the remote field is coming from.

        * @return Reference to {@code this} so that method calls can be chained together. */ @java.lang.Override @@ -266,7 +287,7 @@ public RemoteUrlPathStage remoteMethod(@NotNull String remoteMethod) { } /** - *

        The path of the remote endpoint where the remote field is coming from.

        + * The path of the remote endpoint where the remote field is coming from.

        The path of the remote endpoint where the remote field is coming from.

        * @return Reference to {@code this} so that method calls can be chained together. */ @java.lang.Override @@ -277,7 +298,7 @@ public CommonModelNameStage remoteUrlPath(@NotNull String remoteUrlPath) { } /** - *

        The name of the Common Model that the remote field corresponds to in a given category.

        + * The name of the Common Model that the remote field corresponds to in a given category.

        The name of the Common Model that the remote field corresponds to in a given category.

        * @return Reference to {@code this} so that method calls can be chained together. */ @java.lang.Override @@ -307,6 +328,9 @@ public _FinalStage addRemoteFieldTraversalPath(JsonNode remoteFieldTraversalPath return this; } + /** + *

        The field traversal path of the remote field listed when you hit the GET /remote-fields endpoint.

        + */ @java.lang.Override @JsonSetter(value = "remote_field_traversal_path", nulls = Nulls.SKIP) public _FinalStage remoteFieldTraversalPath(List remoteFieldTraversalPath) { @@ -325,6 +349,9 @@ public _FinalStage excludeRemoteFieldMetadata(Boolean excludeRemoteFieldMetadata return this; } + /** + *

        If true, remote fields metadata is excluded from each field mapping instance (i.e. remote_fields.remote_key_name and remote_fields.schema will be null). This will increase the speed of the request since these fields require some calculations.

        + */ @java.lang.Override @JsonSetter(value = "exclude_remote_field_metadata", nulls = Nulls.SKIP) public _FinalStage excludeRemoteFieldMetadata(Optional excludeRemoteFieldMetadata) { diff --git a/src/main/java/com/merge/api/ats/types/DataPassthroughRequest.java b/src/main/java/com/merge/api/ats/types/DataPassthroughRequest.java index 6abf232fe..ed1d5c573 100644 --- a/src/main/java/com/merge/api/ats/types/DataPassthroughRequest.java +++ b/src/main/java/com/merge/api/ats/types/DataPassthroughRequest.java @@ -171,24 +171,39 @@ public interface MethodStage { } public interface PathStage { + /** + * The path of the request in the third party's platform. + */ _FinalStage path(@NotNull String path); } public interface _FinalStage { DataPassthroughRequest build(); + /** + *

        An optional override of the third party's base url for the request.

        + */ _FinalStage baseUrlOverride(Optional baseUrlOverride); _FinalStage baseUrlOverride(String baseUrlOverride); + /** + *

        The data with the request. You must include a request_format parameter matching the data's format

        + */ _FinalStage data(Optional data); _FinalStage data(String data); + /** + *

        Pass an array of MultipartFormField objects in here instead of using the data param if request_format is set to MULTIPART.

        + */ _FinalStage multipartFormData(Optional> multipartFormData); _FinalStage multipartFormData(List multipartFormData); + /** + *

        The headers to use for the request (Merge will handle the account's authorization headers). Content-Type header is required for passthrough. Choose content type corresponding to expected format of receiving server.

        + */ _FinalStage headers(Optional> headers); _FinalStage headers(Map headers); @@ -197,6 +212,9 @@ public interface _FinalStage { _FinalStage requestFormat(RequestFormatEnum requestFormat); + /** + *

        Optional. If true, the response will always be an object of the form {"type": T, "value": ...} where T will be one of string, boolean, number, null, array, object.

        + */ _FinalStage normalizeResponse(Optional normalizeResponse); _FinalStage normalizeResponse(Boolean normalizeResponse); @@ -246,7 +264,7 @@ public PathStage method(@NotNull MethodEnum method) { } /** - *

        The path of the request in the third party's platform.

        + * The path of the request in the third party's platform.

        The path of the request in the third party's platform.

        * @return Reference to {@code this} so that method calls can be chained together. */ @java.lang.Override @@ -266,6 +284,9 @@ public _FinalStage normalizeResponse(Boolean normalizeResponse) { return this; } + /** + *

        Optional. If true, the response will always be an object of the form {"type": T, "value": ...} where T will be one of string, boolean, number, null, array, object.

        + */ @java.lang.Override @JsonSetter(value = "normalize_response", nulls = Nulls.SKIP) public _FinalStage normalizeResponse(Optional normalizeResponse) { @@ -296,6 +317,9 @@ public _FinalStage headers(Map headers) { return this; } + /** + *

        The headers to use for the request (Merge will handle the account's authorization headers). Content-Type header is required for passthrough. Choose content type corresponding to expected format of receiving server.

        + */ @java.lang.Override @JsonSetter(value = "headers", nulls = Nulls.SKIP) public _FinalStage headers(Optional> headers) { @@ -313,6 +337,9 @@ public _FinalStage multipartFormData(List multipartFo return this; } + /** + *

        Pass an array of MultipartFormField objects in here instead of using the data param if request_format is set to MULTIPART.

        + */ @java.lang.Override @JsonSetter(value = "multipart_form_data", nulls = Nulls.SKIP) public _FinalStage multipartFormData(Optional> multipartFormData) { @@ -330,6 +357,9 @@ public _FinalStage data(String data) { return this; } + /** + *

        The data with the request. You must include a request_format parameter matching the data's format

        + */ @java.lang.Override @JsonSetter(value = "data", nulls = Nulls.SKIP) public _FinalStage data(Optional data) { @@ -347,6 +377,9 @@ public _FinalStage baseUrlOverride(String baseUrlOverride) { return this; } + /** + *

        An optional override of the third party's base url for the request.

        + */ @java.lang.Override @JsonSetter(value = "base_url_override", nulls = Nulls.SKIP) public _FinalStage baseUrlOverride(Optional baseUrlOverride) { diff --git a/src/main/java/com/merge/api/ats/types/Department.java b/src/main/java/com/merge/api/ats/types/Department.java index e89016c33..de86970fb 100644 --- a/src/main/java/com/merge/api/ats/types/Department.java +++ b/src/main/java/com/merge/api/ats/types/Department.java @@ -207,6 +207,9 @@ public Builder id(String id) { return this; } + /** + *

        The third-party API ID of the matching object.

        + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; @@ -218,6 +221,9 @@ public Builder remoteId(String remoteId) { return this; } + /** + *

        The datetime that this object was created by Merge.

        + */ @JsonSetter(value = "created_at", nulls = Nulls.SKIP) public Builder createdAt(Optional createdAt) { this.createdAt = createdAt; @@ -229,6 +235,9 @@ public Builder createdAt(OffsetDateTime createdAt) { return this; } + /** + *

        The datetime that this object was modified by Merge.

        + */ @JsonSetter(value = "modified_at", nulls = Nulls.SKIP) public Builder modifiedAt(Optional modifiedAt) { this.modifiedAt = modifiedAt; @@ -240,6 +249,9 @@ public Builder modifiedAt(OffsetDateTime modifiedAt) { return this; } + /** + *

        The department's name.

        + */ @JsonSetter(value = "name", nulls = Nulls.SKIP) public Builder name(Optional name) { this.name = name; @@ -251,6 +263,9 @@ public Builder name(String name) { return this; } + /** + *

        Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

        + */ @JsonSetter(value = "remote_was_deleted", nulls = Nulls.SKIP) public Builder remoteWasDeleted(Optional remoteWasDeleted) { this.remoteWasDeleted = remoteWasDeleted; diff --git a/src/main/java/com/merge/api/ats/types/DepartmentsListRequest.java b/src/main/java/com/merge/api/ats/types/DepartmentsListRequest.java index 01a217fd3..23e3ed9ed 100644 --- a/src/main/java/com/merge/api/ats/types/DepartmentsListRequest.java +++ b/src/main/java/com/merge/api/ats/types/DepartmentsListRequest.java @@ -237,6 +237,9 @@ public Builder from(DepartmentsListRequest other) { return this; } + /** + *

        If provided, will only return objects created after this datetime.

        + */ @JsonSetter(value = "created_after", nulls = Nulls.SKIP) public Builder createdAfter(Optional createdAfter) { this.createdAfter = createdAfter; @@ -248,6 +251,9 @@ public Builder createdAfter(OffsetDateTime createdAfter) { return this; } + /** + *

        If provided, will only return objects created before this datetime.

        + */ @JsonSetter(value = "created_before", nulls = Nulls.SKIP) public Builder createdBefore(Optional createdBefore) { this.createdBefore = createdBefore; @@ -259,6 +265,9 @@ public Builder createdBefore(OffsetDateTime createdBefore) { return this; } + /** + *

        The pagination cursor value.

        + */ @JsonSetter(value = "cursor", nulls = Nulls.SKIP) public Builder cursor(Optional cursor) { this.cursor = cursor; @@ -270,6 +279,9 @@ public Builder cursor(String cursor) { return this; } + /** + *

        Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

        + */ @JsonSetter(value = "include_deleted_data", nulls = Nulls.SKIP) public Builder includeDeletedData(Optional includeDeletedData) { this.includeDeletedData = includeDeletedData; @@ -281,6 +293,9 @@ public Builder includeDeletedData(Boolean includeDeletedData) { return this; } + /** + *

        Whether to include the original data Merge fetched from the third-party to produce these models.

        + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -292,6 +307,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

        Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

        + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; @@ -303,6 +321,9 @@ public Builder includeShellData(Boolean includeShellData) { return this; } + /** + *

        If provided, only objects synced by Merge after this date time will be returned.

        + */ @JsonSetter(value = "modified_after", nulls = Nulls.SKIP) public Builder modifiedAfter(Optional modifiedAfter) { this.modifiedAfter = modifiedAfter; @@ -314,6 +335,9 @@ public Builder modifiedAfter(OffsetDateTime modifiedAfter) { return this; } + /** + *

        If provided, only objects synced by Merge before this date time will be returned.

        + */ @JsonSetter(value = "modified_before", nulls = Nulls.SKIP) public Builder modifiedBefore(Optional modifiedBefore) { this.modifiedBefore = modifiedBefore; @@ -325,6 +349,9 @@ public Builder modifiedBefore(OffsetDateTime modifiedBefore) { return this; } + /** + *

        Number of results to return per page.

        + */ @JsonSetter(value = "page_size", nulls = Nulls.SKIP) public Builder pageSize(Optional pageSize) { this.pageSize = pageSize; @@ -336,6 +363,9 @@ public Builder pageSize(Integer pageSize) { return this; } + /** + *

        The API provider's ID for the given object.

        + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; diff --git a/src/main/java/com/merge/api/ats/types/DepartmentsRetrieveRequest.java b/src/main/java/com/merge/api/ats/types/DepartmentsRetrieveRequest.java index 29510dcca..bcb5af54d 100644 --- a/src/main/java/com/merge/api/ats/types/DepartmentsRetrieveRequest.java +++ b/src/main/java/com/merge/api/ats/types/DepartmentsRetrieveRequest.java @@ -97,6 +97,9 @@ public Builder from(DepartmentsRetrieveRequest other) { return this; } + /** + *

        Whether to include the original data Merge fetched from the third-party to produce these models.

        + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -108,6 +111,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

        Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

        + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; diff --git a/src/main/java/com/merge/api/ats/types/Eeoc.java b/src/main/java/com/merge/api/ats/types/Eeoc.java index 2c9df6097..dbaa3658e 100644 --- a/src/main/java/com/merge/api/ats/types/Eeoc.java +++ b/src/main/java/com/merge/api/ats/types/Eeoc.java @@ -319,6 +319,9 @@ public Builder id(String id) { return this; } + /** + *

        The third-party API ID of the matching object.

        + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; @@ -330,6 +333,9 @@ public Builder remoteId(String remoteId) { return this; } + /** + *

        The datetime that this object was created by Merge.

        + */ @JsonSetter(value = "created_at", nulls = Nulls.SKIP) public Builder createdAt(Optional createdAt) { this.createdAt = createdAt; @@ -341,6 +347,9 @@ public Builder createdAt(OffsetDateTime createdAt) { return this; } + /** + *

        The datetime that this object was modified by Merge.

        + */ @JsonSetter(value = "modified_at", nulls = Nulls.SKIP) public Builder modifiedAt(Optional modifiedAt) { this.modifiedAt = modifiedAt; @@ -352,6 +361,9 @@ public Builder modifiedAt(OffsetDateTime modifiedAt) { return this; } + /** + *

        The candidate being represented.

        + */ @JsonSetter(value = "candidate", nulls = Nulls.SKIP) public Builder candidate(Optional candidate) { this.candidate = candidate; @@ -363,6 +375,9 @@ public Builder candidate(EeocCandidate candidate) { return this; } + /** + *

        When the information was submitted.

        + */ @JsonSetter(value = "submitted_at", nulls = Nulls.SKIP) public Builder submittedAt(Optional submittedAt) { this.submittedAt = submittedAt; @@ -374,6 +389,19 @@ public Builder submittedAt(OffsetDateTime submittedAt) { return this; } + /** + *

        The candidate's race.

        + *
          + *
        • AMERICAN_INDIAN_OR_ALASKAN_NATIVE - AMERICAN_INDIAN_OR_ALASKAN_NATIVE
        • + *
        • ASIAN - ASIAN
        • + *
        • BLACK_OR_AFRICAN_AMERICAN - BLACK_OR_AFRICAN_AMERICAN
        • + *
        • HISPANIC_OR_LATINO - HISPANIC_OR_LATINO
        • + *
        • WHITE - WHITE
        • + *
        • NATIVE_HAWAIIAN_OR_OTHER_PACIFIC_ISLANDER - NATIVE_HAWAIIAN_OR_OTHER_PACIFIC_ISLANDER
        • + *
        • TWO_OR_MORE_RACES - TWO_OR_MORE_RACES
        • + *
        • DECLINE_TO_SELF_IDENTIFY - DECLINE_TO_SELF_IDENTIFY
        • + *
        + */ @JsonSetter(value = "race", nulls = Nulls.SKIP) public Builder race(Optional race) { this.race = race; @@ -385,6 +413,16 @@ public Builder race(RaceEnum race) { return this; } + /** + *

        The candidate's gender.

        + *
          + *
        • MALE - MALE
        • + *
        • FEMALE - FEMALE
        • + *
        • NON-BINARY - NON-BINARY
        • + *
        • OTHER - OTHER
        • + *
        • DECLINE_TO_SELF_IDENTIFY - DECLINE_TO_SELF_IDENTIFY
        • + *
        + */ @JsonSetter(value = "gender", nulls = Nulls.SKIP) public Builder gender(Optional gender) { this.gender = gender; @@ -396,6 +434,14 @@ public Builder gender(GenderEnum gender) { return this; } + /** + *

        The candidate's veteran status.

        + *
          + *
        • I_AM_NOT_A_PROTECTED_VETERAN - I_AM_NOT_A_PROTECTED_VETERAN
        • + *
        • I_IDENTIFY_AS_ONE_OR_MORE_OF_THE_CLASSIFICATIONS_OF_A_PROTECTED_VETERAN - I_IDENTIFY_AS_ONE_OR_MORE_OF_THE_CLASSIFICATIONS_OF_A_PROTECTED_VETERAN
        • + *
        • I_DONT_WISH_TO_ANSWER - I_DONT_WISH_TO_ANSWER
        • + *
        + */ @JsonSetter(value = "veteran_status", nulls = Nulls.SKIP) public Builder veteranStatus(Optional veteranStatus) { this.veteranStatus = veteranStatus; @@ -407,6 +453,14 @@ public Builder veteranStatus(VeteranStatusEnum veteranStatus) { return this; } + /** + *

        The candidate's disability status.

        + *
          + *
        • YES_I_HAVE_A_DISABILITY_OR_PREVIOUSLY_HAD_A_DISABILITY - YES_I_HAVE_A_DISABILITY_OR_PREVIOUSLY_HAD_A_DISABILITY
        • + *
        • NO_I_DONT_HAVE_A_DISABILITY - NO_I_DONT_HAVE_A_DISABILITY
        • + *
        • I_DONT_WISH_TO_ANSWER - I_DONT_WISH_TO_ANSWER
        • + *
        + */ @JsonSetter(value = "disability_status", nulls = Nulls.SKIP) public Builder disabilityStatus(Optional disabilityStatus) { this.disabilityStatus = disabilityStatus; @@ -418,6 +472,9 @@ public Builder disabilityStatus(DisabilityStatusEnum disabilityStatus) { return this; } + /** + *

        Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

        + */ @JsonSetter(value = "remote_was_deleted", nulls = Nulls.SKIP) public Builder remoteWasDeleted(Optional remoteWasDeleted) { this.remoteWasDeleted = remoteWasDeleted; diff --git a/src/main/java/com/merge/api/ats/types/EeocsListRequest.java b/src/main/java/com/merge/api/ats/types/EeocsListRequest.java index 9dbf5e26d..60862372b 100644 --- a/src/main/java/com/merge/api/ats/types/EeocsListRequest.java +++ b/src/main/java/com/merge/api/ats/types/EeocsListRequest.java @@ -307,6 +307,9 @@ public Builder from(EeocsListRequest other) { return this; } + /** + *

        Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.

        + */ @JsonSetter(value = "expand", nulls = Nulls.SKIP) public Builder expand(Optional> expand) { this.expand = expand; @@ -323,6 +326,9 @@ public Builder expand(String expand) { return this; } + /** + *

        If provided, will only return EEOC info for this candidate.

        + */ @JsonSetter(value = "candidate_id", nulls = Nulls.SKIP) public Builder candidateId(Optional candidateId) { this.candidateId = candidateId; @@ -334,6 +340,9 @@ public Builder candidateId(String candidateId) { return this; } + /** + *

        If provided, will only return objects created after this datetime.

        + */ @JsonSetter(value = "created_after", nulls = Nulls.SKIP) public Builder createdAfter(Optional createdAfter) { this.createdAfter = createdAfter; @@ -345,6 +354,9 @@ public Builder createdAfter(OffsetDateTime createdAfter) { return this; } + /** + *

        If provided, will only return objects created before this datetime.

        + */ @JsonSetter(value = "created_before", nulls = Nulls.SKIP) public Builder createdBefore(Optional createdBefore) { this.createdBefore = createdBefore; @@ -356,6 +368,9 @@ public Builder createdBefore(OffsetDateTime createdBefore) { return this; } + /** + *

        The pagination cursor value.

        + */ @JsonSetter(value = "cursor", nulls = Nulls.SKIP) public Builder cursor(Optional cursor) { this.cursor = cursor; @@ -367,6 +382,9 @@ public Builder cursor(String cursor) { return this; } + /** + *

        Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

        + */ @JsonSetter(value = "include_deleted_data", nulls = Nulls.SKIP) public Builder includeDeletedData(Optional includeDeletedData) { this.includeDeletedData = includeDeletedData; @@ -378,6 +396,9 @@ public Builder includeDeletedData(Boolean includeDeletedData) { return this; } + /** + *

        Whether to include the original data Merge fetched from the third-party to produce these models.

        + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -389,6 +410,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

        Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

        + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; @@ -400,6 +424,9 @@ public Builder includeShellData(Boolean includeShellData) { return this; } + /** + *

        If provided, only objects synced by Merge after this date time will be returned.

        + */ @JsonSetter(value = "modified_after", nulls = Nulls.SKIP) public Builder modifiedAfter(Optional modifiedAfter) { this.modifiedAfter = modifiedAfter; @@ -411,6 +438,9 @@ public Builder modifiedAfter(OffsetDateTime modifiedAfter) { return this; } + /** + *

        If provided, only objects synced by Merge before this date time will be returned.

        + */ @JsonSetter(value = "modified_before", nulls = Nulls.SKIP) public Builder modifiedBefore(Optional modifiedBefore) { this.modifiedBefore = modifiedBefore; @@ -422,6 +452,9 @@ public Builder modifiedBefore(OffsetDateTime modifiedBefore) { return this; } + /** + *

        Number of results to return per page.

        + */ @JsonSetter(value = "page_size", nulls = Nulls.SKIP) public Builder pageSize(Optional pageSize) { this.pageSize = pageSize; @@ -433,6 +466,9 @@ public Builder pageSize(Integer pageSize) { return this; } + /** + *

        Deprecated. Use show_enum_origins.

        + */ @JsonSetter(value = "remote_fields", nulls = Nulls.SKIP) public Builder remoteFields(Optional remoteFields) { this.remoteFields = remoteFields; @@ -444,6 +480,9 @@ public Builder remoteFields(EeocsListRequestRemoteFields remoteFields) { return this; } + /** + *

        The API provider's ID for the given object.

        + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; @@ -455,6 +494,9 @@ public Builder remoteId(String remoteId) { return this; } + /** + *

        A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. Learn more

        + */ @JsonSetter(value = "show_enum_origins", nulls = Nulls.SKIP) public Builder showEnumOrigins(Optional showEnumOrigins) { this.showEnumOrigins = showEnumOrigins; diff --git a/src/main/java/com/merge/api/ats/types/EeocsRetrieveRequest.java b/src/main/java/com/merge/api/ats/types/EeocsRetrieveRequest.java index 4acd5a3c8..dbf508aea 100644 --- a/src/main/java/com/merge/api/ats/types/EeocsRetrieveRequest.java +++ b/src/main/java/com/merge/api/ats/types/EeocsRetrieveRequest.java @@ -149,6 +149,9 @@ public Builder from(EeocsRetrieveRequest other) { return this; } + /** + *

        Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.

        + */ @JsonSetter(value = "expand", nulls = Nulls.SKIP) public Builder expand(Optional> expand) { this.expand = expand; @@ -165,6 +168,9 @@ public Builder expand(String expand) { return this; } + /** + *

        Whether to include the original data Merge fetched from the third-party to produce these models.

        + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -176,6 +182,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

        Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

        + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; @@ -187,6 +196,9 @@ public Builder includeShellData(Boolean includeShellData) { return this; } + /** + *

        Deprecated. Use show_enum_origins.

        + */ @JsonSetter(value = "remote_fields", nulls = Nulls.SKIP) public Builder remoteFields(Optional remoteFields) { this.remoteFields = remoteFields; @@ -198,6 +210,9 @@ public Builder remoteFields(EeocsRetrieveRequestRemoteFields remoteFields) { return this; } + /** + *

        A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. Learn more

        + */ @JsonSetter(value = "show_enum_origins", nulls = Nulls.SKIP) public Builder showEnumOrigins(Optional showEnumOrigins) { this.showEnumOrigins = showEnumOrigins; diff --git a/src/main/java/com/merge/api/ats/types/EmailAddress.java b/src/main/java/com/merge/api/ats/types/EmailAddress.java index 5717a016c..d755682c3 100644 --- a/src/main/java/com/merge/api/ats/types/EmailAddress.java +++ b/src/main/java/com/merge/api/ats/types/EmailAddress.java @@ -152,6 +152,9 @@ public Builder from(EmailAddress other) { return this; } + /** + *

        The datetime that this object was created by Merge.

        + */ @JsonSetter(value = "created_at", nulls = Nulls.SKIP) public Builder createdAt(Optional createdAt) { this.createdAt = createdAt; @@ -163,6 +166,9 @@ public Builder createdAt(OffsetDateTime createdAt) { return this; } + /** + *

        The datetime that this object was modified by Merge.

        + */ @JsonSetter(value = "modified_at", nulls = Nulls.SKIP) public Builder modifiedAt(Optional modifiedAt) { this.modifiedAt = modifiedAt; @@ -174,6 +180,9 @@ public Builder modifiedAt(OffsetDateTime modifiedAt) { return this; } + /** + *

        The email address.

        + */ @JsonSetter(value = "value", nulls = Nulls.SKIP) public Builder value(Optional value) { this.value = value; @@ -185,6 +194,14 @@ public Builder value(String value) { return this; } + /** + *

        The type of email address.

        + *
          + *
        • PERSONAL - PERSONAL
        • + *
        • WORK - WORK
        • + *
        • OTHER - OTHER
        • + *
        + */ @JsonSetter(value = "email_address_type", nulls = Nulls.SKIP) public Builder emailAddressType(Optional emailAddressType) { this.emailAddressType = emailAddressType; @@ -196,6 +213,9 @@ public Builder emailAddressType(EmailAddressTypeEnum emailAddressType) { return this; } + /** + *

        Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

        + */ @JsonSetter(value = "remote_was_deleted", nulls = Nulls.SKIP) public Builder remoteWasDeleted(Optional remoteWasDeleted) { this.remoteWasDeleted = remoteWasDeleted; diff --git a/src/main/java/com/merge/api/ats/types/EmailAddressRequest.java b/src/main/java/com/merge/api/ats/types/EmailAddressRequest.java index 2601b9c03..16894b016 100644 --- a/src/main/java/com/merge/api/ats/types/EmailAddressRequest.java +++ b/src/main/java/com/merge/api/ats/types/EmailAddressRequest.java @@ -130,6 +130,9 @@ public Builder from(EmailAddressRequest other) { return this; } + /** + *

        The email address.

        + */ @JsonSetter(value = "value", nulls = Nulls.SKIP) public Builder value(Optional value) { this.value = value; @@ -141,6 +144,14 @@ public Builder value(String value) { return this; } + /** + *

        The type of email address.

        + *
          + *
        • PERSONAL - PERSONAL
        • + *
        • WORK - WORK
        • + *
        • OTHER - OTHER
        • + *
        + */ @JsonSetter(value = "email_address_type", nulls = Nulls.SKIP) public Builder emailAddressType(Optional emailAddressType) { this.emailAddressType = emailAddressType; diff --git a/src/main/java/com/merge/api/ats/types/EndUserDetailsRequest.java b/src/main/java/com/merge/api/ats/types/EndUserDetailsRequest.java index a2264c7ba..b4d52023d 100644 --- a/src/main/java/com/merge/api/ats/types/EndUserDetailsRequest.java +++ b/src/main/java/com/merge/api/ats/types/EndUserDetailsRequest.java @@ -249,48 +249,78 @@ public static EndUserEmailAddressStage builder() { } public interface EndUserEmailAddressStage { + /** + * Your end user's email address. This is purely for identification purposes - setting this value will not cause any emails to be sent. + */ EndUserOrganizationNameStage endUserEmailAddress(@NotNull String endUserEmailAddress); Builder from(EndUserDetailsRequest other); } public interface EndUserOrganizationNameStage { + /** + * Your end user's organization. + */ EndUserOriginIdStage endUserOrganizationName(@NotNull String endUserOrganizationName); } public interface EndUserOriginIdStage { + /** + * This unique identifier typically represents the ID for your end user in your product's database. This value must be distinct from other Linked Accounts' unique identifiers. + */ _FinalStage endUserOriginId(@NotNull String endUserOriginId); } public interface _FinalStage { EndUserDetailsRequest build(); + /** + *

        The integration categories to show in Merge Link.

        + */ _FinalStage categories(List categories); _FinalStage addCategories(CategoriesEnum categories); _FinalStage addAllCategories(List categories); + /** + *

        The slug of a specific pre-selected integration for this linking flow token. For examples of slugs, see https://docs.merge.dev/guides/merge-link/single-integration/.

        + */ _FinalStage integration(Optional integration); _FinalStage integration(String integration); + /** + *

        An integer number of minutes between [30, 720 or 10080 if for a Magic Link URL] for how long this token is valid. Defaults to 30.

        + */ _FinalStage linkExpiryMins(Optional linkExpiryMins); _FinalStage linkExpiryMins(Integer linkExpiryMins); + /** + *

        Whether to generate a Magic Link URL. Defaults to false. For more information on Magic Link, see https://merge.dev/blog/integrations-fast-say-hello-to-magic-link.

        + */ _FinalStage shouldCreateMagicLinkUrl(Optional shouldCreateMagicLinkUrl); _FinalStage shouldCreateMagicLinkUrl(Boolean shouldCreateMagicLinkUrl); + /** + *

        Whether to generate a Magic Link URL on the Admin Needed screen during the linking flow. Defaults to false. For more information on Magic Link, see https://merge.dev/blog/integrations-fast-say-hello-to-magic-link.

        + */ _FinalStage hideAdminMagicLink(Optional hideAdminMagicLink); _FinalStage hideAdminMagicLink(Boolean hideAdminMagicLink); + /** + *

        An array of objects to specify the models and fields that will be disabled for a given Linked Account. Each object uses model_id, enabled_actions, and disabled_fields to specify the model, method, and fields that are scoped for a given Linked Account.

        + */ _FinalStage commonModels(Optional> commonModels); _FinalStage commonModels(List commonModels); + /** + *

        When creating a Link Token, you can set permissions for Common Models that will apply to the account that is going to be linked. Any model or field not specified in link token payload will default to existing settings.

        + */ _FinalStage categoryCommonModelScopes( Optional>>> categoryCommonModelScopes); @@ -298,14 +328,27 @@ _FinalStage categoryCommonModelScopes( _FinalStage categoryCommonModelScopes( Map>> categoryCommonModelScopes); + /** + *

        The following subset of IETF language tags can be used to configure localization.

        + *
          + *
        • en - en
        • + *
        • de - de
        • + *
        + */ _FinalStage language(Optional language); _FinalStage language(LanguageEnum language); + /** + *

        The boolean that indicates whether initial, periodic, and force syncs will be disabled.

        + */ _FinalStage areSyncsDisabled(Optional areSyncsDisabled); _FinalStage areSyncsDisabled(Boolean areSyncsDisabled); + /** + *

        A JSON object containing integration-specific configuration options.

        + */ _FinalStage integrationSpecificConfig(Optional> integrationSpecificConfig); _FinalStage integrationSpecificConfig(Map integrationSpecificConfig); @@ -365,7 +408,7 @@ public Builder from(EndUserDetailsRequest other) { } /** - *

        Your end user's email address. This is purely for identification purposes - setting this value will not cause any emails to be sent.

        + * Your end user's email address. This is purely for identification purposes - setting this value will not cause any emails to be sent.

        Your end user's email address. This is purely for identification purposes - setting this value will not cause any emails to be sent.

        * @return Reference to {@code this} so that method calls can be chained together. */ @java.lang.Override @@ -376,7 +419,7 @@ public EndUserOrganizationNameStage endUserEmailAddress(@NotNull String endUserE } /** - *

        Your end user's organization.

        + * Your end user's organization.

        Your end user's organization.

        * @return Reference to {@code this} so that method calls can be chained together. */ @java.lang.Override @@ -387,7 +430,7 @@ public EndUserOriginIdStage endUserOrganizationName(@NotNull String endUserOrgan } /** - *

        This unique identifier typically represents the ID for your end user in your product's database. This value must be distinct from other Linked Accounts' unique identifiers.

        + * This unique identifier typically represents the ID for your end user in your product's database. This value must be distinct from other Linked Accounts' unique identifiers.

        This unique identifier typically represents the ID for your end user in your product's database. This value must be distinct from other Linked Accounts' unique identifiers.

        * @return Reference to {@code this} so that method calls can be chained together. */ @java.lang.Override @@ -407,6 +450,9 @@ public _FinalStage integrationSpecificConfig(Map integrationSp return this; } + /** + *

        A JSON object containing integration-specific configuration options.

        + */ @java.lang.Override @JsonSetter(value = "integration_specific_config", nulls = Nulls.SKIP) public _FinalStage integrationSpecificConfig(Optional> integrationSpecificConfig) { @@ -424,6 +470,9 @@ public _FinalStage areSyncsDisabled(Boolean areSyncsDisabled) { return this; } + /** + *

        The boolean that indicates whether initial, periodic, and force syncs will be disabled.

        + */ @java.lang.Override @JsonSetter(value = "are_syncs_disabled", nulls = Nulls.SKIP) public _FinalStage areSyncsDisabled(Optional areSyncsDisabled) { @@ -445,6 +494,13 @@ public _FinalStage language(LanguageEnum language) { return this; } + /** + *

        The following subset of IETF language tags can be used to configure localization.

        + *
          + *
        • en - en
        • + *
        • de - de
        • + *
        + */ @java.lang.Override @JsonSetter(value = "language", nulls = Nulls.SKIP) public _FinalStage language(Optional language) { @@ -463,6 +519,9 @@ public _FinalStage categoryCommonModelScopes( return this; } + /** + *

        When creating a Link Token, you can set permissions for Common Models that will apply to the account that is going to be linked. Any model or field not specified in link token payload will default to existing settings.

        + */ @java.lang.Override @JsonSetter(value = "category_common_model_scopes", nulls = Nulls.SKIP) public _FinalStage categoryCommonModelScopes( @@ -482,6 +541,9 @@ public _FinalStage commonModels(List commonModels) return this; } + /** + *

        An array of objects to specify the models and fields that will be disabled for a given Linked Account. Each object uses model_id, enabled_actions, and disabled_fields to specify the model, method, and fields that are scoped for a given Linked Account.

        + */ @java.lang.Override @JsonSetter(value = "common_models", nulls = Nulls.SKIP) public _FinalStage commonModels(Optional> commonModels) { @@ -499,6 +561,9 @@ public _FinalStage hideAdminMagicLink(Boolean hideAdminMagicLink) { return this; } + /** + *

        Whether to generate a Magic Link URL on the Admin Needed screen during the linking flow. Defaults to false. For more information on Magic Link, see https://merge.dev/blog/integrations-fast-say-hello-to-magic-link.

        + */ @java.lang.Override @JsonSetter(value = "hide_admin_magic_link", nulls = Nulls.SKIP) public _FinalStage hideAdminMagicLink(Optional hideAdminMagicLink) { @@ -516,6 +581,9 @@ public _FinalStage shouldCreateMagicLinkUrl(Boolean shouldCreateMagicLinkUrl) { return this; } + /** + *

        Whether to generate a Magic Link URL. Defaults to false. For more information on Magic Link, see https://merge.dev/blog/integrations-fast-say-hello-to-magic-link.

        + */ @java.lang.Override @JsonSetter(value = "should_create_magic_link_url", nulls = Nulls.SKIP) public _FinalStage shouldCreateMagicLinkUrl(Optional shouldCreateMagicLinkUrl) { @@ -533,6 +601,9 @@ public _FinalStage linkExpiryMins(Integer linkExpiryMins) { return this; } + /** + *

        An integer number of minutes between [30, 720 or 10080 if for a Magic Link URL] for how long this token is valid. Defaults to 30.

        + */ @java.lang.Override @JsonSetter(value = "link_expiry_mins", nulls = Nulls.SKIP) public _FinalStage linkExpiryMins(Optional linkExpiryMins) { @@ -550,6 +621,9 @@ public _FinalStage integration(String integration) { return this; } + /** + *

        The slug of a specific pre-selected integration for this linking flow token. For examples of slugs, see https://docs.merge.dev/guides/merge-link/single-integration/.

        + */ @java.lang.Override @JsonSetter(value = "integration", nulls = Nulls.SKIP) public _FinalStage integration(Optional integration) { @@ -577,6 +651,9 @@ public _FinalStage addCategories(CategoriesEnum categories) { return this; } + /** + *

        The integration categories to show in Merge Link.

        + */ @java.lang.Override @JsonSetter(value = "categories", nulls = Nulls.SKIP) public _FinalStage categories(List categories) { diff --git a/src/main/java/com/merge/api/ats/types/FieldMappingsRetrieveRequest.java b/src/main/java/com/merge/api/ats/types/FieldMappingsRetrieveRequest.java index bb1fb769d..5c6f6c442 100644 --- a/src/main/java/com/merge/api/ats/types/FieldMappingsRetrieveRequest.java +++ b/src/main/java/com/merge/api/ats/types/FieldMappingsRetrieveRequest.java @@ -81,6 +81,9 @@ public Builder from(FieldMappingsRetrieveRequest other) { return this; } + /** + *

        If true, remote fields metadata is excluded from each field mapping instance (i.e. remote_fields.remote_key_name and remote_fields.schema will be null). This will increase the speed of the request since these fields require some calculations.

        + */ @JsonSetter(value = "exclude_remote_field_metadata", nulls = Nulls.SKIP) public Builder excludeRemoteFieldMetadata(Optional excludeRemoteFieldMetadata) { this.excludeRemoteFieldMetadata = excludeRemoteFieldMetadata; diff --git a/src/main/java/com/merge/api/ats/types/GenerateRemoteKeyRequest.java b/src/main/java/com/merge/api/ats/types/GenerateRemoteKeyRequest.java index ea22e52d6..c69c4919c 100644 --- a/src/main/java/com/merge/api/ats/types/GenerateRemoteKeyRequest.java +++ b/src/main/java/com/merge/api/ats/types/GenerateRemoteKeyRequest.java @@ -66,6 +66,9 @@ public static NameStage builder() { } public interface NameStage { + /** + * The name of the remote key + */ _FinalStage name(@NotNull String name); Builder from(GenerateRemoteKeyRequest other); @@ -91,7 +94,7 @@ public Builder from(GenerateRemoteKeyRequest other) { } /** - *

        The name of the remote key

        + * The name of the remote key

        The name of the remote key

        * @return Reference to {@code this} so that method calls can be chained together. */ @java.lang.Override diff --git a/src/main/java/com/merge/api/ats/types/InterviewsListRequest.java b/src/main/java/com/merge/api/ats/types/InterviewsListRequest.java index 80dfdd324..049c44c7a 100644 --- a/src/main/java/com/merge/api/ats/types/InterviewsListRequest.java +++ b/src/main/java/com/merge/api/ats/types/InterviewsListRequest.java @@ -358,6 +358,9 @@ public Builder from(InterviewsListRequest other) { return this; } + /** + *

        Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.

        + */ @JsonSetter(value = "expand", nulls = Nulls.SKIP) public Builder expand(Optional> expand) { this.expand = expand; @@ -374,6 +377,9 @@ public Builder expand(InterviewsListRequestExpandItem expand) { return this; } + /** + *

        If provided, will only return interviews for this application.

        + */ @JsonSetter(value = "application_id", nulls = Nulls.SKIP) public Builder applicationId(Optional applicationId) { this.applicationId = applicationId; @@ -385,6 +391,9 @@ public Builder applicationId(String applicationId) { return this; } + /** + *

        If provided, will only return objects created after this datetime.

        + */ @JsonSetter(value = "created_after", nulls = Nulls.SKIP) public Builder createdAfter(Optional createdAfter) { this.createdAfter = createdAfter; @@ -396,6 +405,9 @@ public Builder createdAfter(OffsetDateTime createdAfter) { return this; } + /** + *

        If provided, will only return objects created before this datetime.

        + */ @JsonSetter(value = "created_before", nulls = Nulls.SKIP) public Builder createdBefore(Optional createdBefore) { this.createdBefore = createdBefore; @@ -407,6 +419,9 @@ public Builder createdBefore(OffsetDateTime createdBefore) { return this; } + /** + *

        The pagination cursor value.

        + */ @JsonSetter(value = "cursor", nulls = Nulls.SKIP) public Builder cursor(Optional cursor) { this.cursor = cursor; @@ -418,6 +433,9 @@ public Builder cursor(String cursor) { return this; } + /** + *

        Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

        + */ @JsonSetter(value = "include_deleted_data", nulls = Nulls.SKIP) public Builder includeDeletedData(Optional includeDeletedData) { this.includeDeletedData = includeDeletedData; @@ -429,6 +447,9 @@ public Builder includeDeletedData(Boolean includeDeletedData) { return this; } + /** + *

        Whether to include the original data Merge fetched from the third-party to produce these models.

        + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -440,6 +461,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

        Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

        + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; @@ -451,6 +475,9 @@ public Builder includeShellData(Boolean includeShellData) { return this; } + /** + *

        If provided, wll only return interviews organized for this job.

        + */ @JsonSetter(value = "job_id", nulls = Nulls.SKIP) public Builder jobId(Optional jobId) { this.jobId = jobId; @@ -462,6 +489,9 @@ public Builder jobId(String jobId) { return this; } + /** + *

        If provided, will only return interviews at this stage.

        + */ @JsonSetter(value = "job_interview_stage_id", nulls = Nulls.SKIP) public Builder jobInterviewStageId(Optional jobInterviewStageId) { this.jobInterviewStageId = jobInterviewStageId; @@ -473,6 +503,9 @@ public Builder jobInterviewStageId(String jobInterviewStageId) { return this; } + /** + *

        If provided, only objects synced by Merge after this date time will be returned.

        + */ @JsonSetter(value = "modified_after", nulls = Nulls.SKIP) public Builder modifiedAfter(Optional modifiedAfter) { this.modifiedAfter = modifiedAfter; @@ -484,6 +517,9 @@ public Builder modifiedAfter(OffsetDateTime modifiedAfter) { return this; } + /** + *

        If provided, only objects synced by Merge before this date time will be returned.

        + */ @JsonSetter(value = "modified_before", nulls = Nulls.SKIP) public Builder modifiedBefore(Optional modifiedBefore) { this.modifiedBefore = modifiedBefore; @@ -495,6 +531,9 @@ public Builder modifiedBefore(OffsetDateTime modifiedBefore) { return this; } + /** + *

        If provided, will only return interviews organized by this user.

        + */ @JsonSetter(value = "organizer_id", nulls = Nulls.SKIP) public Builder organizerId(Optional organizerId) { this.organizerId = organizerId; @@ -506,6 +545,9 @@ public Builder organizerId(String organizerId) { return this; } + /** + *

        Number of results to return per page.

        + */ @JsonSetter(value = "page_size", nulls = Nulls.SKIP) public Builder pageSize(Optional pageSize) { this.pageSize = pageSize; @@ -517,6 +559,9 @@ public Builder pageSize(Integer pageSize) { return this; } + /** + *

        Deprecated. Use show_enum_origins.

        + */ @JsonSetter(value = "remote_fields", nulls = Nulls.SKIP) public Builder remoteFields(Optional remoteFields) { this.remoteFields = remoteFields; @@ -528,6 +573,9 @@ public Builder remoteFields(String remoteFields) { return this; } + /** + *

        The API provider's ID for the given object.

        + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; @@ -539,6 +587,9 @@ public Builder remoteId(String remoteId) { return this; } + /** + *

        A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. Learn more

        + */ @JsonSetter(value = "show_enum_origins", nulls = Nulls.SKIP) public Builder showEnumOrigins(Optional showEnumOrigins) { this.showEnumOrigins = showEnumOrigins; diff --git a/src/main/java/com/merge/api/ats/types/InterviewsRetrieveRequest.java b/src/main/java/com/merge/api/ats/types/InterviewsRetrieveRequest.java index a760fed70..678419832 100644 --- a/src/main/java/com/merge/api/ats/types/InterviewsRetrieveRequest.java +++ b/src/main/java/com/merge/api/ats/types/InterviewsRetrieveRequest.java @@ -149,6 +149,9 @@ public Builder from(InterviewsRetrieveRequest other) { return this; } + /** + *

        Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.

        + */ @JsonSetter(value = "expand", nulls = Nulls.SKIP) public Builder expand(Optional> expand) { this.expand = expand; @@ -165,6 +168,9 @@ public Builder expand(InterviewsRetrieveRequestExpandItem expand) { return this; } + /** + *

        Whether to include the original data Merge fetched from the third-party to produce these models.

        + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -176,6 +182,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

        Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

        + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; @@ -187,6 +196,9 @@ public Builder includeShellData(Boolean includeShellData) { return this; } + /** + *

        Deprecated. Use show_enum_origins.

        + */ @JsonSetter(value = "remote_fields", nulls = Nulls.SKIP) public Builder remoteFields(Optional remoteFields) { this.remoteFields = remoteFields; @@ -198,6 +210,9 @@ public Builder remoteFields(String remoteFields) { return this; } + /** + *

        A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. Learn more

        + */ @JsonSetter(value = "show_enum_origins", nulls = Nulls.SKIP) public Builder showEnumOrigins(Optional showEnumOrigins) { this.showEnumOrigins = showEnumOrigins; diff --git a/src/main/java/com/merge/api/ats/types/Issue.java b/src/main/java/com/merge/api/ats/types/Issue.java index a6d784c17..0a2ce80d0 100644 --- a/src/main/java/com/merge/api/ats/types/Issue.java +++ b/src/main/java/com/merge/api/ats/types/Issue.java @@ -167,6 +167,13 @@ public interface _FinalStage { _FinalStage id(String id); + /** + *

        Status of the issue. Options: ('ONGOING', 'RESOLVED')

        + *
          + *
        • ONGOING - ONGOING
        • + *
        • RESOLVED - RESOLVED
        • + *
        + */ _FinalStage status(Optional status); _FinalStage status(IssueStatusEnum status); @@ -314,6 +321,13 @@ public _FinalStage status(IssueStatusEnum status) { return this; } + /** + *

        Status of the issue. Options: ('ONGOING', 'RESOLVED')

        + *
          + *
        • ONGOING - ONGOING
        • + *
        • RESOLVED - RESOLVED
        • + *
        + */ @java.lang.Override @JsonSetter(value = "status", nulls = Nulls.SKIP) public _FinalStage status(Optional status) { diff --git a/src/main/java/com/merge/api/ats/types/IssuesListRequest.java b/src/main/java/com/merge/api/ats/types/IssuesListRequest.java index 4054cf5ce..91e1fb998 100644 --- a/src/main/java/com/merge/api/ats/types/IssuesListRequest.java +++ b/src/main/java/com/merge/api/ats/types/IssuesListRequest.java @@ -311,6 +311,9 @@ public Builder accountToken(String accountToken) { return this; } + /** + *

        The pagination cursor value.

        + */ @JsonSetter(value = "cursor", nulls = Nulls.SKIP) public Builder cursor(Optional cursor) { this.cursor = cursor; @@ -322,6 +325,9 @@ public Builder cursor(String cursor) { return this; } + /** + *

        If included, will only include issues whose most recent action occurred before this time

        + */ @JsonSetter(value = "end_date", nulls = Nulls.SKIP) public Builder endDate(Optional endDate) { this.endDate = endDate; @@ -344,6 +350,9 @@ public Builder endUserOrganizationName(String endUserOrganizationName) { return this; } + /** + *

        If provided, will only return issues whose first incident time was after this datetime.

        + */ @JsonSetter(value = "first_incident_time_after", nulls = Nulls.SKIP) public Builder firstIncidentTimeAfter(Optional firstIncidentTimeAfter) { this.firstIncidentTimeAfter = firstIncidentTimeAfter; @@ -355,6 +364,9 @@ public Builder firstIncidentTimeAfter(OffsetDateTime firstIncidentTimeAfter) { return this; } + /** + *

        If provided, will only return issues whose first incident time was before this datetime.

        + */ @JsonSetter(value = "first_incident_time_before", nulls = Nulls.SKIP) public Builder firstIncidentTimeBefore(Optional firstIncidentTimeBefore) { this.firstIncidentTimeBefore = firstIncidentTimeBefore; @@ -366,6 +378,9 @@ public Builder firstIncidentTimeBefore(OffsetDateTime firstIncidentTimeBefore) { return this; } + /** + *

        If true, will include muted issues

        + */ @JsonSetter(value = "include_muted", nulls = Nulls.SKIP) public Builder includeMuted(Optional includeMuted) { this.includeMuted = includeMuted; @@ -388,6 +403,9 @@ public Builder integrationName(String integrationName) { return this; } + /** + *

        If provided, will only return issues whose last incident time was after this datetime.

        + */ @JsonSetter(value = "last_incident_time_after", nulls = Nulls.SKIP) public Builder lastIncidentTimeAfter(Optional lastIncidentTimeAfter) { this.lastIncidentTimeAfter = lastIncidentTimeAfter; @@ -399,6 +417,9 @@ public Builder lastIncidentTimeAfter(OffsetDateTime lastIncidentTimeAfter) { return this; } + /** + *

        If provided, will only return issues whose last incident time was before this datetime.

        + */ @JsonSetter(value = "last_incident_time_before", nulls = Nulls.SKIP) public Builder lastIncidentTimeBefore(Optional lastIncidentTimeBefore) { this.lastIncidentTimeBefore = lastIncidentTimeBefore; @@ -410,6 +431,9 @@ public Builder lastIncidentTimeBefore(OffsetDateTime lastIncidentTimeBefore) { return this; } + /** + *

        If provided, will only include issues pertaining to the linked account passed in.

        + */ @JsonSetter(value = "linked_account_id", nulls = Nulls.SKIP) public Builder linkedAccountId(Optional linkedAccountId) { this.linkedAccountId = linkedAccountId; @@ -421,6 +445,9 @@ public Builder linkedAccountId(String linkedAccountId) { return this; } + /** + *

        Number of results to return per page.

        + */ @JsonSetter(value = "page_size", nulls = Nulls.SKIP) public Builder pageSize(Optional pageSize) { this.pageSize = pageSize; @@ -432,6 +459,9 @@ public Builder pageSize(Integer pageSize) { return this; } + /** + *

        If included, will only include issues whose most recent action occurred after this time

        + */ @JsonSetter(value = "start_date", nulls = Nulls.SKIP) public Builder startDate(Optional startDate) { this.startDate = startDate; @@ -443,6 +473,13 @@ public Builder startDate(String startDate) { return this; } + /** + *

        Status of the issue. Options: ('ONGOING', 'RESOLVED')

        + *
          + *
        • ONGOING - ONGOING
        • + *
        • RESOLVED - RESOLVED
        • + *
        + */ @JsonSetter(value = "status", nulls = Nulls.SKIP) public Builder status(Optional status) { this.status = status; diff --git a/src/main/java/com/merge/api/ats/types/Job.java b/src/main/java/com/merge/api/ats/types/Job.java index e6fe49d31..d7cee04a2 100644 --- a/src/main/java/com/merge/api/ats/types/Job.java +++ b/src/main/java/com/merge/api/ats/types/Job.java @@ -437,6 +437,9 @@ public Builder id(String id) { return this; } + /** + *

        The third-party API ID of the matching object.

        + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; @@ -448,6 +451,9 @@ public Builder remoteId(String remoteId) { return this; } + /** + *

        The datetime that this object was created by Merge.

        + */ @JsonSetter(value = "created_at", nulls = Nulls.SKIP) public Builder createdAt(Optional createdAt) { this.createdAt = createdAt; @@ -459,6 +465,9 @@ public Builder createdAt(OffsetDateTime createdAt) { return this; } + /** + *

        The datetime that this object was modified by Merge.

        + */ @JsonSetter(value = "modified_at", nulls = Nulls.SKIP) public Builder modifiedAt(Optional modifiedAt) { this.modifiedAt = modifiedAt; @@ -470,6 +479,9 @@ public Builder modifiedAt(OffsetDateTime modifiedAt) { return this; } + /** + *

        The job's name.

        + */ @JsonSetter(value = "name", nulls = Nulls.SKIP) public Builder name(Optional name) { this.name = name; @@ -481,6 +493,9 @@ public Builder name(String name) { return this; } + /** + *

        The job's description.

        + */ @JsonSetter(value = "description", nulls = Nulls.SKIP) public Builder description(Optional description) { this.description = description; @@ -492,6 +507,9 @@ public Builder description(String description) { return this; } + /** + *

        The job's code. Typically an additional identifier used to reference the particular job that is displayed on the ATS.

        + */ @JsonSetter(value = "code", nulls = Nulls.SKIP) public Builder code(Optional code) { this.code = code; @@ -503,6 +521,16 @@ public Builder code(String code) { return this; } + /** + *

        The job's status.

        + *
          + *
        • OPEN - OPEN
        • + *
        • CLOSED - CLOSED
        • + *
        • DRAFT - DRAFT
        • + *
        • ARCHIVED - ARCHIVED
        • + *
        • PENDING - PENDING
        • + *
        + */ @JsonSetter(value = "status", nulls = Nulls.SKIP) public Builder status(Optional status) { this.status = status; @@ -514,6 +542,14 @@ public Builder status(JobStatusEnum status) { return this; } + /** + *

        The job's type.

        + *
          + *
        • POSTING - POSTING
        • + *
        • REQUISITION - REQUISITION
        • + *
        • PROFILE - PROFILE
        • + *
        + */ @JsonSetter(value = "type", nulls = Nulls.SKIP) public Builder type(Optional type) { this.type = type; @@ -525,6 +561,9 @@ public Builder type(JobTypeEnum type) { return this; } + /** + *

        IDs of JobPosting objects that serve as job postings for this Job.

        + */ @JsonSetter(value = "job_postings", nulls = Nulls.SKIP) public Builder jobPostings(Optional>> jobPostings) { this.jobPostings = jobPostings; @@ -547,6 +586,9 @@ public Builder jobPostingUrls(List jobPostingUrls) { return this; } + /** + *

        When the third party's job was created.

        + */ @JsonSetter(value = "remote_created_at", nulls = Nulls.SKIP) public Builder remoteCreatedAt(Optional remoteCreatedAt) { this.remoteCreatedAt = remoteCreatedAt; @@ -558,6 +600,9 @@ public Builder remoteCreatedAt(OffsetDateTime remoteCreatedAt) { return this; } + /** + *

        When the third party's job was updated.

        + */ @JsonSetter(value = "remote_updated_at", nulls = Nulls.SKIP) public Builder remoteUpdatedAt(Optional remoteUpdatedAt) { this.remoteUpdatedAt = remoteUpdatedAt; @@ -569,6 +614,9 @@ public Builder remoteUpdatedAt(OffsetDateTime remoteUpdatedAt) { return this; } + /** + *

        Whether the job is confidential.

        + */ @JsonSetter(value = "confidential", nulls = Nulls.SKIP) public Builder confidential(Optional confidential) { this.confidential = confidential; @@ -580,6 +628,9 @@ public Builder confidential(Boolean confidential) { return this; } + /** + *

        IDs of Department objects for this Job.

        + */ @JsonSetter(value = "departments", nulls = Nulls.SKIP) public Builder departments(Optional>> departments) { this.departments = departments; @@ -591,6 +642,9 @@ public Builder departments(List> departments) { return this; } + /** + *

        IDs of Office objects for this Job.

        + */ @JsonSetter(value = "offices", nulls = Nulls.SKIP) public Builder offices(Optional>> offices) { this.offices = offices; @@ -602,6 +656,9 @@ public Builder offices(List> offices) { return this; } + /** + *

        IDs of RemoteUser objects that serve as hiring managers for this Job.

        + */ @JsonSetter(value = "hiring_managers", nulls = Nulls.SKIP) public Builder hiringManagers(Optional>> hiringManagers) { this.hiringManagers = hiringManagers; @@ -613,6 +670,9 @@ public Builder hiringManagers(List> hiringManage return this; } + /** + *

        IDs of RemoteUser objects that serve as recruiters for this Job.

        + */ @JsonSetter(value = "recruiters", nulls = Nulls.SKIP) public Builder recruiters(Optional>> recruiters) { this.recruiters = recruiters; @@ -624,6 +684,9 @@ public Builder recruiters(List> recruiters) { return this; } + /** + *

        Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

        + */ @JsonSetter(value = "remote_was_deleted", nulls = Nulls.SKIP) public Builder remoteWasDeleted(Optional remoteWasDeleted) { this.remoteWasDeleted = remoteWasDeleted; diff --git a/src/main/java/com/merge/api/ats/types/JobInterviewStage.java b/src/main/java/com/merge/api/ats/types/JobInterviewStage.java index 3ad6e3043..cf1f24bd7 100644 --- a/src/main/java/com/merge/api/ats/types/JobInterviewStage.java +++ b/src/main/java/com/merge/api/ats/types/JobInterviewStage.java @@ -241,6 +241,9 @@ public Builder id(String id) { return this; } + /** + *

        The third-party API ID of the matching object.

        + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; @@ -252,6 +255,9 @@ public Builder remoteId(String remoteId) { return this; } + /** + *

        The datetime that this object was created by Merge.

        + */ @JsonSetter(value = "created_at", nulls = Nulls.SKIP) public Builder createdAt(Optional createdAt) { this.createdAt = createdAt; @@ -263,6 +269,9 @@ public Builder createdAt(OffsetDateTime createdAt) { return this; } + /** + *

        The datetime that this object was modified by Merge.

        + */ @JsonSetter(value = "modified_at", nulls = Nulls.SKIP) public Builder modifiedAt(Optional modifiedAt) { this.modifiedAt = modifiedAt; @@ -274,6 +283,9 @@ public Builder modifiedAt(OffsetDateTime modifiedAt) { return this; } + /** + *

        Standard stage names are offered by ATS systems but can be modified by users.

        + */ @JsonSetter(value = "name", nulls = Nulls.SKIP) public Builder name(Optional name) { this.name = name; @@ -285,6 +297,9 @@ public Builder name(String name) { return this; } + /** + *

        This field is populated only if the stage is specific to a particular job. If the stage is generic, this field will not be populated.

        + */ @JsonSetter(value = "job", nulls = Nulls.SKIP) public Builder job(Optional job) { this.job = job; @@ -296,6 +311,9 @@ public Builder job(JobInterviewStageJob job) { return this; } + /** + *

        The stage’s order, with the lowest values ordered first. If the third-party does not return details on the order of stages, this field will not be populated.

        + */ @JsonSetter(value = "stage_order", nulls = Nulls.SKIP) public Builder stageOrder(Optional stageOrder) { this.stageOrder = stageOrder; @@ -307,6 +325,9 @@ public Builder stageOrder(Integer stageOrder) { return this; } + /** + *

        Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

        + */ @JsonSetter(value = "remote_was_deleted", nulls = Nulls.SKIP) public Builder remoteWasDeleted(Optional remoteWasDeleted) { this.remoteWasDeleted = remoteWasDeleted; diff --git a/src/main/java/com/merge/api/ats/types/JobInterviewStagesListRequest.java b/src/main/java/com/merge/api/ats/types/JobInterviewStagesListRequest.java index 83cea40fb..9cce5eac0 100644 --- a/src/main/java/com/merge/api/ats/types/JobInterviewStagesListRequest.java +++ b/src/main/java/com/merge/api/ats/types/JobInterviewStagesListRequest.java @@ -273,6 +273,9 @@ public Builder from(JobInterviewStagesListRequest other) { return this; } + /** + *

        Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.

        + */ @JsonSetter(value = "expand", nulls = Nulls.SKIP) public Builder expand(Optional> expand) { this.expand = expand; @@ -289,6 +292,9 @@ public Builder expand(String expand) { return this; } + /** + *

        If provided, will only return objects created after this datetime.

        + */ @JsonSetter(value = "created_after", nulls = Nulls.SKIP) public Builder createdAfter(Optional createdAfter) { this.createdAfter = createdAfter; @@ -300,6 +306,9 @@ public Builder createdAfter(OffsetDateTime createdAfter) { return this; } + /** + *

        If provided, will only return objects created before this datetime.

        + */ @JsonSetter(value = "created_before", nulls = Nulls.SKIP) public Builder createdBefore(Optional createdBefore) { this.createdBefore = createdBefore; @@ -311,6 +320,9 @@ public Builder createdBefore(OffsetDateTime createdBefore) { return this; } + /** + *

        The pagination cursor value.

        + */ @JsonSetter(value = "cursor", nulls = Nulls.SKIP) public Builder cursor(Optional cursor) { this.cursor = cursor; @@ -322,6 +334,9 @@ public Builder cursor(String cursor) { return this; } + /** + *

        Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

        + */ @JsonSetter(value = "include_deleted_data", nulls = Nulls.SKIP) public Builder includeDeletedData(Optional includeDeletedData) { this.includeDeletedData = includeDeletedData; @@ -333,6 +348,9 @@ public Builder includeDeletedData(Boolean includeDeletedData) { return this; } + /** + *

        Whether to include the original data Merge fetched from the third-party to produce these models.

        + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -344,6 +362,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

        Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

        + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; @@ -355,6 +376,9 @@ public Builder includeShellData(Boolean includeShellData) { return this; } + /** + *

        If provided, will only return interview stages for this job.

        + */ @JsonSetter(value = "job_id", nulls = Nulls.SKIP) public Builder jobId(Optional jobId) { this.jobId = jobId; @@ -366,6 +390,9 @@ public Builder jobId(String jobId) { return this; } + /** + *

        If provided, only objects synced by Merge after this date time will be returned.

        + */ @JsonSetter(value = "modified_after", nulls = Nulls.SKIP) public Builder modifiedAfter(Optional modifiedAfter) { this.modifiedAfter = modifiedAfter; @@ -377,6 +404,9 @@ public Builder modifiedAfter(OffsetDateTime modifiedAfter) { return this; } + /** + *

        If provided, only objects synced by Merge before this date time will be returned.

        + */ @JsonSetter(value = "modified_before", nulls = Nulls.SKIP) public Builder modifiedBefore(Optional modifiedBefore) { this.modifiedBefore = modifiedBefore; @@ -388,6 +418,9 @@ public Builder modifiedBefore(OffsetDateTime modifiedBefore) { return this; } + /** + *

        Number of results to return per page.

        + */ @JsonSetter(value = "page_size", nulls = Nulls.SKIP) public Builder pageSize(Optional pageSize) { this.pageSize = pageSize; @@ -399,6 +432,9 @@ public Builder pageSize(Integer pageSize) { return this; } + /** + *

        The API provider's ID for the given object.

        + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; diff --git a/src/main/java/com/merge/api/ats/types/JobInterviewStagesRetrieveRequest.java b/src/main/java/com/merge/api/ats/types/JobInterviewStagesRetrieveRequest.java index 2df6e04fb..a83c23de7 100644 --- a/src/main/java/com/merge/api/ats/types/JobInterviewStagesRetrieveRequest.java +++ b/src/main/java/com/merge/api/ats/types/JobInterviewStagesRetrieveRequest.java @@ -116,6 +116,9 @@ public Builder from(JobInterviewStagesRetrieveRequest other) { return this; } + /** + *

        Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.

        + */ @JsonSetter(value = "expand", nulls = Nulls.SKIP) public Builder expand(Optional> expand) { this.expand = expand; @@ -132,6 +135,9 @@ public Builder expand(String expand) { return this; } + /** + *

        Whether to include the original data Merge fetched from the third-party to produce these models.

        + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -143,6 +149,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

        Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

        + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; diff --git a/src/main/java/com/merge/api/ats/types/JobPosting.java b/src/main/java/com/merge/api/ats/types/JobPosting.java index 5789fdd64..66aaf40da 100644 --- a/src/main/java/com/merge/api/ats/types/JobPosting.java +++ b/src/main/java/com/merge/api/ats/types/JobPosting.java @@ -333,6 +333,9 @@ public Builder id(String id) { return this; } + /** + *

        The third-party API ID of the matching object.

        + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; @@ -344,6 +347,9 @@ public Builder remoteId(String remoteId) { return this; } + /** + *

        The datetime that this object was created by Merge.

        + */ @JsonSetter(value = "created_at", nulls = Nulls.SKIP) public Builder createdAt(Optional createdAt) { this.createdAt = createdAt; @@ -355,6 +361,9 @@ public Builder createdAt(OffsetDateTime createdAt) { return this; } + /** + *

        The datetime that this object was modified by Merge.

        + */ @JsonSetter(value = "modified_at", nulls = Nulls.SKIP) public Builder modifiedAt(Optional modifiedAt) { this.modifiedAt = modifiedAt; @@ -366,6 +375,9 @@ public Builder modifiedAt(OffsetDateTime modifiedAt) { return this; } + /** + *

        The job posting’s title.

        + */ @JsonSetter(value = "title", nulls = Nulls.SKIP) public Builder title(Optional title) { this.title = title; @@ -377,6 +389,9 @@ public Builder title(String title) { return this; } + /** + *

        The Url object is used to represent hyperlinks for a candidate to apply to a given job.

        + */ @JsonSetter(value = "job_posting_urls", nulls = Nulls.SKIP) public Builder jobPostingUrls(Optional> jobPostingUrls) { this.jobPostingUrls = jobPostingUrls; @@ -388,6 +403,9 @@ public Builder jobPostingUrls(List jobPostingUrls) return this; } + /** + *

        ID of Job object for this JobPosting.

        + */ @JsonSetter(value = "job", nulls = Nulls.SKIP) public Builder job(Optional job) { this.job = job; @@ -399,6 +417,16 @@ public Builder job(JobPostingJob job) { return this; } + /** + *

        The job posting's status.

        + *
          + *
        • PUBLISHED - PUBLISHED
        • + *
        • CLOSED - CLOSED
        • + *
        • DRAFT - DRAFT
        • + *
        • INTERNAL - INTERNAL
        • + *
        • PENDING - PENDING
        • + *
        + */ @JsonSetter(value = "status", nulls = Nulls.SKIP) public Builder status(Optional status) { this.status = status; @@ -410,6 +438,9 @@ public Builder status(JobPostingStatusEnum status) { return this; } + /** + *

        The job posting’s content.

        + */ @JsonSetter(value = "content", nulls = Nulls.SKIP) public Builder content(Optional content) { this.content = content; @@ -421,6 +452,9 @@ public Builder content(String content) { return this; } + /** + *

        When the third party's job posting was created.

        + */ @JsonSetter(value = "remote_created_at", nulls = Nulls.SKIP) public Builder remoteCreatedAt(Optional remoteCreatedAt) { this.remoteCreatedAt = remoteCreatedAt; @@ -432,6 +466,9 @@ public Builder remoteCreatedAt(OffsetDateTime remoteCreatedAt) { return this; } + /** + *

        When the third party's job posting was updated.

        + */ @JsonSetter(value = "remote_updated_at", nulls = Nulls.SKIP) public Builder remoteUpdatedAt(Optional remoteUpdatedAt) { this.remoteUpdatedAt = remoteUpdatedAt; @@ -443,6 +480,9 @@ public Builder remoteUpdatedAt(OffsetDateTime remoteUpdatedAt) { return this; } + /** + *

        Indicates whether the job posting is internal or external.

        + */ @JsonSetter(value = "is_internal", nulls = Nulls.SKIP) public Builder isInternal(Optional isInternal) { this.isInternal = isInternal; @@ -454,6 +494,9 @@ public Builder isInternal(Boolean isInternal) { return this; } + /** + *

        Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

        + */ @JsonSetter(value = "remote_was_deleted", nulls = Nulls.SKIP) public Builder remoteWasDeleted(Optional remoteWasDeleted) { this.remoteWasDeleted = remoteWasDeleted; diff --git a/src/main/java/com/merge/api/ats/types/JobPostingsListRequest.java b/src/main/java/com/merge/api/ats/types/JobPostingsListRequest.java index 15f0b8665..4a9307524 100644 --- a/src/main/java/com/merge/api/ats/types/JobPostingsListRequest.java +++ b/src/main/java/com/merge/api/ats/types/JobPostingsListRequest.java @@ -280,6 +280,9 @@ public Builder from(JobPostingsListRequest other) { return this; } + /** + *

        Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.

        + */ @JsonSetter(value = "expand", nulls = Nulls.SKIP) public Builder expand(Optional> expand) { this.expand = expand; @@ -296,6 +299,9 @@ public Builder expand(String expand) { return this; } + /** + *

        If provided, will only return objects created after this datetime.

        + */ @JsonSetter(value = "created_after", nulls = Nulls.SKIP) public Builder createdAfter(Optional createdAfter) { this.createdAfter = createdAfter; @@ -307,6 +313,9 @@ public Builder createdAfter(OffsetDateTime createdAfter) { return this; } + /** + *

        If provided, will only return objects created before this datetime.

        + */ @JsonSetter(value = "created_before", nulls = Nulls.SKIP) public Builder createdBefore(Optional createdBefore) { this.createdBefore = createdBefore; @@ -318,6 +327,9 @@ public Builder createdBefore(OffsetDateTime createdBefore) { return this; } + /** + *

        The pagination cursor value.

        + */ @JsonSetter(value = "cursor", nulls = Nulls.SKIP) public Builder cursor(Optional cursor) { this.cursor = cursor; @@ -329,6 +341,9 @@ public Builder cursor(String cursor) { return this; } + /** + *

        Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

        + */ @JsonSetter(value = "include_deleted_data", nulls = Nulls.SKIP) public Builder includeDeletedData(Optional includeDeletedData) { this.includeDeletedData = includeDeletedData; @@ -340,6 +355,9 @@ public Builder includeDeletedData(Boolean includeDeletedData) { return this; } + /** + *

        Whether to include the original data Merge fetched from the third-party to produce these models.

        + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -351,6 +369,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

        Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

        + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; @@ -362,6 +383,9 @@ public Builder includeShellData(Boolean includeShellData) { return this; } + /** + *

        If provided, only objects synced by Merge after this date time will be returned.

        + */ @JsonSetter(value = "modified_after", nulls = Nulls.SKIP) public Builder modifiedAfter(Optional modifiedAfter) { this.modifiedAfter = modifiedAfter; @@ -373,6 +397,9 @@ public Builder modifiedAfter(OffsetDateTime modifiedAfter) { return this; } + /** + *

        If provided, only objects synced by Merge before this date time will be returned.

        + */ @JsonSetter(value = "modified_before", nulls = Nulls.SKIP) public Builder modifiedBefore(Optional modifiedBefore) { this.modifiedBefore = modifiedBefore; @@ -384,6 +411,9 @@ public Builder modifiedBefore(OffsetDateTime modifiedBefore) { return this; } + /** + *

        Number of results to return per page.

        + */ @JsonSetter(value = "page_size", nulls = Nulls.SKIP) public Builder pageSize(Optional pageSize) { this.pageSize = pageSize; @@ -395,6 +425,9 @@ public Builder pageSize(Integer pageSize) { return this; } + /** + *

        The API provider's ID for the given object.

        + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; @@ -406,6 +439,16 @@ public Builder remoteId(String remoteId) { return this; } + /** + *

        If provided, will only return Job Postings with this status. Options: ('PUBLISHED', 'CLOSED', 'DRAFT', 'INTERNAL', 'PENDING')

        + *
          + *
        • PUBLISHED - PUBLISHED
        • + *
        • CLOSED - CLOSED
        • + *
        • DRAFT - DRAFT
        • + *
        • INTERNAL - INTERNAL
        • + *
        • PENDING - PENDING
        • + *
        + */ @JsonSetter(value = "status", nulls = Nulls.SKIP) public Builder status(Optional status) { this.status = status; diff --git a/src/main/java/com/merge/api/ats/types/JobPostingsRetrieveRequest.java b/src/main/java/com/merge/api/ats/types/JobPostingsRetrieveRequest.java index a669b4b2f..8fd3a8730 100644 --- a/src/main/java/com/merge/api/ats/types/JobPostingsRetrieveRequest.java +++ b/src/main/java/com/merge/api/ats/types/JobPostingsRetrieveRequest.java @@ -116,6 +116,9 @@ public Builder from(JobPostingsRetrieveRequest other) { return this; } + /** + *

        Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.

        + */ @JsonSetter(value = "expand", nulls = Nulls.SKIP) public Builder expand(Optional> expand) { this.expand = expand; @@ -132,6 +135,9 @@ public Builder expand(String expand) { return this; } + /** + *

        Whether to include the original data Merge fetched from the third-party to produce these models.

        + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -143,6 +149,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

        Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

        + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; diff --git a/src/main/java/com/merge/api/ats/types/JobsListRequest.java b/src/main/java/com/merge/api/ats/types/JobsListRequest.java index 66717c76d..5014df543 100644 --- a/src/main/java/com/merge/api/ats/types/JobsListRequest.java +++ b/src/main/java/com/merge/api/ats/types/JobsListRequest.java @@ -348,6 +348,9 @@ public Builder from(JobsListRequest other) { return this; } + /** + *

        Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.

        + */ @JsonSetter(value = "expand", nulls = Nulls.SKIP) public Builder expand(Optional> expand) { this.expand = expand; @@ -364,6 +367,9 @@ public Builder expand(JobsListRequestExpandItem expand) { return this; } + /** + *

        If provided, will only return jobs with this code.

        + */ @JsonSetter(value = "code", nulls = Nulls.SKIP) public Builder code(Optional code) { this.code = code; @@ -375,6 +381,9 @@ public Builder code(String code) { return this; } + /** + *

        If provided, will only return objects created after this datetime.

        + */ @JsonSetter(value = "created_after", nulls = Nulls.SKIP) public Builder createdAfter(Optional createdAfter) { this.createdAfter = createdAfter; @@ -386,6 +395,9 @@ public Builder createdAfter(OffsetDateTime createdAfter) { return this; } + /** + *

        If provided, will only return objects created before this datetime.

        + */ @JsonSetter(value = "created_before", nulls = Nulls.SKIP) public Builder createdBefore(Optional createdBefore) { this.createdBefore = createdBefore; @@ -397,6 +409,9 @@ public Builder createdBefore(OffsetDateTime createdBefore) { return this; } + /** + *

        The pagination cursor value.

        + */ @JsonSetter(value = "cursor", nulls = Nulls.SKIP) public Builder cursor(Optional cursor) { this.cursor = cursor; @@ -408,6 +423,9 @@ public Builder cursor(String cursor) { return this; } + /** + *

        Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

        + */ @JsonSetter(value = "include_deleted_data", nulls = Nulls.SKIP) public Builder includeDeletedData(Optional includeDeletedData) { this.includeDeletedData = includeDeletedData; @@ -419,6 +437,9 @@ public Builder includeDeletedData(Boolean includeDeletedData) { return this; } + /** + *

        Whether to include the original data Merge fetched from the third-party to produce these models.

        + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -430,6 +451,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

        Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

        + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; @@ -441,6 +465,9 @@ public Builder includeShellData(Boolean includeShellData) { return this; } + /** + *

        If provided, only objects synced by Merge after this date time will be returned.

        + */ @JsonSetter(value = "modified_after", nulls = Nulls.SKIP) public Builder modifiedAfter(Optional modifiedAfter) { this.modifiedAfter = modifiedAfter; @@ -452,6 +479,9 @@ public Builder modifiedAfter(OffsetDateTime modifiedAfter) { return this; } + /** + *

        If provided, only objects synced by Merge before this date time will be returned.

        + */ @JsonSetter(value = "modified_before", nulls = Nulls.SKIP) public Builder modifiedBefore(Optional modifiedBefore) { this.modifiedBefore = modifiedBefore; @@ -463,6 +493,9 @@ public Builder modifiedBefore(OffsetDateTime modifiedBefore) { return this; } + /** + *

        If provided, will only return jobs for this office; multiple offices can be separated by commas.

        + */ @JsonSetter(value = "offices", nulls = Nulls.SKIP) public Builder offices(Optional offices) { this.offices = offices; @@ -474,6 +507,9 @@ public Builder offices(String offices) { return this; } + /** + *

        Number of results to return per page.

        + */ @JsonSetter(value = "page_size", nulls = Nulls.SKIP) public Builder pageSize(Optional pageSize) { this.pageSize = pageSize; @@ -485,6 +521,9 @@ public Builder pageSize(Integer pageSize) { return this; } + /** + *

        Deprecated. Use show_enum_origins.

        + */ @JsonSetter(value = "remote_fields", nulls = Nulls.SKIP) public Builder remoteFields(Optional remoteFields) { this.remoteFields = remoteFields; @@ -496,6 +535,9 @@ public Builder remoteFields(String remoteFields) { return this; } + /** + *

        The API provider's ID for the given object.

        + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; @@ -507,6 +549,9 @@ public Builder remoteId(String remoteId) { return this; } + /** + *

        A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. Learn more

        + */ @JsonSetter(value = "show_enum_origins", nulls = Nulls.SKIP) public Builder showEnumOrigins(Optional showEnumOrigins) { this.showEnumOrigins = showEnumOrigins; @@ -518,6 +563,16 @@ public Builder showEnumOrigins(String showEnumOrigins) { return this; } + /** + *

        If provided, will only return jobs with this status. Options: ('OPEN', 'CLOSED', 'DRAFT', 'ARCHIVED', 'PENDING')

        + *
          + *
        • OPEN - OPEN
        • + *
        • CLOSED - CLOSED
        • + *
        • DRAFT - DRAFT
        • + *
        • ARCHIVED - ARCHIVED
        • + *
        • PENDING - PENDING
        • + *
        + */ @JsonSetter(value = "status", nulls = Nulls.SKIP) public Builder status(Optional status) { this.status = status; diff --git a/src/main/java/com/merge/api/ats/types/JobsRetrieveRequest.java b/src/main/java/com/merge/api/ats/types/JobsRetrieveRequest.java index 9dd4d9e8f..732f006f6 100644 --- a/src/main/java/com/merge/api/ats/types/JobsRetrieveRequest.java +++ b/src/main/java/com/merge/api/ats/types/JobsRetrieveRequest.java @@ -149,6 +149,9 @@ public Builder from(JobsRetrieveRequest other) { return this; } + /** + *

        Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.

        + */ @JsonSetter(value = "expand", nulls = Nulls.SKIP) public Builder expand(Optional> expand) { this.expand = expand; @@ -165,6 +168,9 @@ public Builder expand(JobsRetrieveRequestExpandItem expand) { return this; } + /** + *

        Whether to include the original data Merge fetched from the third-party to produce these models.

        + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -176,6 +182,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

        Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

        + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; @@ -187,6 +196,9 @@ public Builder includeShellData(Boolean includeShellData) { return this; } + /** + *

        Deprecated. Use show_enum_origins.

        + */ @JsonSetter(value = "remote_fields", nulls = Nulls.SKIP) public Builder remoteFields(Optional remoteFields) { this.remoteFields = remoteFields; @@ -198,6 +210,9 @@ public Builder remoteFields(String remoteFields) { return this; } + /** + *

        A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. Learn more

        + */ @JsonSetter(value = "show_enum_origins", nulls = Nulls.SKIP) public Builder showEnumOrigins(Optional showEnumOrigins) { this.showEnumOrigins = showEnumOrigins; diff --git a/src/main/java/com/merge/api/ats/types/JobsScreeningQuestionsListRequest.java b/src/main/java/com/merge/api/ats/types/JobsScreeningQuestionsListRequest.java index 4a49cf340..52a738579 100644 --- a/src/main/java/com/merge/api/ats/types/JobsScreeningQuestionsListRequest.java +++ b/src/main/java/com/merge/api/ats/types/JobsScreeningQuestionsListRequest.java @@ -170,6 +170,9 @@ public Builder from(JobsScreeningQuestionsListRequest other) { return this; } + /** + *

        Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.

        + */ @JsonSetter(value = "expand", nulls = Nulls.SKIP) public Builder expand(Optional> expand) { this.expand = expand; @@ -186,6 +189,9 @@ public Builder expand(JobsScreeningQuestionsListRequestExpandItem expand) { return this; } + /** + *

        The pagination cursor value.

        + */ @JsonSetter(value = "cursor", nulls = Nulls.SKIP) public Builder cursor(Optional cursor) { this.cursor = cursor; @@ -197,6 +203,9 @@ public Builder cursor(String cursor) { return this; } + /** + *

        Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

        + */ @JsonSetter(value = "include_deleted_data", nulls = Nulls.SKIP) public Builder includeDeletedData(Optional includeDeletedData) { this.includeDeletedData = includeDeletedData; @@ -208,6 +217,9 @@ public Builder includeDeletedData(Boolean includeDeletedData) { return this; } + /** + *

        Whether to include the original data Merge fetched from the third-party to produce these models.

        + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -219,6 +231,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

        Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

        + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; @@ -230,6 +245,9 @@ public Builder includeShellData(Boolean includeShellData) { return this; } + /** + *

        Number of results to return per page.

        + */ @JsonSetter(value = "page_size", nulls = Nulls.SKIP) public Builder pageSize(Optional pageSize) { this.pageSize = pageSize; diff --git a/src/main/java/com/merge/api/ats/types/LinkedAccountCommonModelScopeDeserializerRequest.java b/src/main/java/com/merge/api/ats/types/LinkedAccountCommonModelScopeDeserializerRequest.java index aaecfa73c..f7a795bfb 100644 --- a/src/main/java/com/merge/api/ats/types/LinkedAccountCommonModelScopeDeserializerRequest.java +++ b/src/main/java/com/merge/api/ats/types/LinkedAccountCommonModelScopeDeserializerRequest.java @@ -84,6 +84,9 @@ public Builder from(LinkedAccountCommonModelScopeDeserializerRequest other) { return this; } + /** + *

        The common models you want to update the scopes for

        + */ @JsonSetter(value = "common_models", nulls = Nulls.SKIP) public Builder commonModels(List commonModels) { this.commonModels.clear(); diff --git a/src/main/java/com/merge/api/ats/types/LinkedAccountsListRequest.java b/src/main/java/com/merge/api/ats/types/LinkedAccountsListRequest.java index 594bdedcb..099dbe8b9 100644 --- a/src/main/java/com/merge/api/ats/types/LinkedAccountsListRequest.java +++ b/src/main/java/com/merge/api/ats/types/LinkedAccountsListRequest.java @@ -293,6 +293,18 @@ public Builder from(LinkedAccountsListRequest other) { return this; } + /** + *

        Options: accounting, ats, crm, filestorage, hris, mktg, ticketing

        + *
          + *
        • hris - hris
        • + *
        • ats - ats
        • + *
        • accounting - accounting
        • + *
        • ticketing - ticketing
        • + *
        • crm - crm
        • + *
        • mktg - mktg
        • + *
        • filestorage - filestorage
        • + *
        + */ @JsonSetter(value = "category", nulls = Nulls.SKIP) public Builder category(Optional category) { this.category = category; @@ -304,6 +316,9 @@ public Builder category(LinkedAccountsListRequestCategory category) { return this; } + /** + *

        The pagination cursor value.

        + */ @JsonSetter(value = "cursor", nulls = Nulls.SKIP) public Builder cursor(Optional cursor) { this.cursor = cursor; @@ -315,6 +330,9 @@ public Builder cursor(String cursor) { return this; } + /** + *

        If provided, will only return linked accounts associated with the given email address.

        + */ @JsonSetter(value = "end_user_email_address", nulls = Nulls.SKIP) public Builder endUserEmailAddress(Optional endUserEmailAddress) { this.endUserEmailAddress = endUserEmailAddress; @@ -326,6 +344,9 @@ public Builder endUserEmailAddress(String endUserEmailAddress) { return this; } + /** + *

        If provided, will only return linked accounts associated with the given organization name.

        + */ @JsonSetter(value = "end_user_organization_name", nulls = Nulls.SKIP) public Builder endUserOrganizationName(Optional endUserOrganizationName) { this.endUserOrganizationName = endUserOrganizationName; @@ -337,6 +358,9 @@ public Builder endUserOrganizationName(String endUserOrganizationName) { return this; } + /** + *

        If provided, will only return linked accounts associated with the given origin ID.

        + */ @JsonSetter(value = "end_user_origin_id", nulls = Nulls.SKIP) public Builder endUserOriginId(Optional endUserOriginId) { this.endUserOriginId = endUserOriginId; @@ -348,6 +372,9 @@ public Builder endUserOriginId(String endUserOriginId) { return this; } + /** + *

        Comma-separated list of EndUser origin IDs, making it possible to specify multiple EndUsers at once.

        + */ @JsonSetter(value = "end_user_origin_ids", nulls = Nulls.SKIP) public Builder endUserOriginIds(Optional endUserOriginIds) { this.endUserOriginIds = endUserOriginIds; @@ -370,6 +397,9 @@ public Builder id(String id) { return this; } + /** + *

        Comma-separated list of LinkedAccount IDs, making it possible to specify multiple LinkedAccounts at once.

        + */ @JsonSetter(value = "ids", nulls = Nulls.SKIP) public Builder ids(Optional ids) { this.ids = ids; @@ -381,6 +411,9 @@ public Builder ids(String ids) { return this; } + /** + *

        If true, will include complete production duplicates of the account specified by the id query parameter in the response. id must be for a complete production linked account.

        + */ @JsonSetter(value = "include_duplicates", nulls = Nulls.SKIP) public Builder includeDuplicates(Optional includeDuplicates) { this.includeDuplicates = includeDuplicates; @@ -392,6 +425,9 @@ public Builder includeDuplicates(Boolean includeDuplicates) { return this; } + /** + *

        If provided, will only return linked accounts associated with the given integration name.

        + */ @JsonSetter(value = "integration_name", nulls = Nulls.SKIP) public Builder integrationName(Optional integrationName) { this.integrationName = integrationName; @@ -403,6 +439,9 @@ public Builder integrationName(String integrationName) { return this; } + /** + *

        If included, will only include test linked accounts. If not included, will only include non-test linked accounts.

        + */ @JsonSetter(value = "is_test_account", nulls = Nulls.SKIP) public Builder isTestAccount(Optional isTestAccount) { this.isTestAccount = isTestAccount; @@ -414,6 +453,9 @@ public Builder isTestAccount(String isTestAccount) { return this; } + /** + *

        Number of results to return per page.

        + */ @JsonSetter(value = "page_size", nulls = Nulls.SKIP) public Builder pageSize(Optional pageSize) { this.pageSize = pageSize; @@ -425,6 +467,9 @@ public Builder pageSize(Integer pageSize) { return this; } + /** + *

        Filter by status. Options: COMPLETE, IDLE, INCOMPLETE, RELINK_NEEDED

        + */ @JsonSetter(value = "status", nulls = Nulls.SKIP) public Builder status(Optional status) { this.status = status; diff --git a/src/main/java/com/merge/api/ats/types/MultipartFormFieldRequest.java b/src/main/java/com/merge/api/ats/types/MultipartFormFieldRequest.java index 33e8a5c6b..238ad0520 100644 --- a/src/main/java/com/merge/api/ats/types/MultipartFormFieldRequest.java +++ b/src/main/java/com/merge/api/ats/types/MultipartFormFieldRequest.java @@ -127,26 +127,46 @@ public static NameStage builder() { } public interface NameStage { + /** + * The name of the form field + */ DataStage name(@NotNull String name); Builder from(MultipartFormFieldRequest other); } public interface DataStage { + /** + * The data for the form field. + */ _FinalStage data(@NotNull String data); } public interface _FinalStage { MultipartFormFieldRequest build(); + /** + *

        The encoding of the value of data. Defaults to RAW if not defined.

        + *
          + *
        • RAW - RAW
        • + *
        • BASE64 - BASE64
        • + *
        • GZIP_BASE64 - GZIP_BASE64
        • + *
        + */ _FinalStage encoding(Optional encoding); _FinalStage encoding(EncodingEnum encoding); + /** + *

        The file name of the form field, if the field is for a file.

        + */ _FinalStage fileName(Optional fileName); _FinalStage fileName(String fileName); + /** + *

        The MIME type of the file, if the field is for a file.

        + */ _FinalStage contentType(Optional contentType); _FinalStage contentType(String contentType); @@ -180,7 +200,7 @@ public Builder from(MultipartFormFieldRequest other) { } /** - *

        The name of the form field

        + * The name of the form field

        The name of the form field

        * @return Reference to {@code this} so that method calls can be chained together. */ @java.lang.Override @@ -191,7 +211,7 @@ public DataStage name(@NotNull String name) { } /** - *

        The data for the form field.

        + * The data for the form field.

        The data for the form field.

        * @return Reference to {@code this} so that method calls can be chained together. */ @java.lang.Override @@ -211,6 +231,9 @@ public _FinalStage contentType(String contentType) { return this; } + /** + *

        The MIME type of the file, if the field is for a file.

        + */ @java.lang.Override @JsonSetter(value = "content_type", nulls = Nulls.SKIP) public _FinalStage contentType(Optional contentType) { @@ -228,6 +251,9 @@ public _FinalStage fileName(String fileName) { return this; } + /** + *

        The file name of the form field, if the field is for a file.

        + */ @java.lang.Override @JsonSetter(value = "file_name", nulls = Nulls.SKIP) public _FinalStage fileName(Optional fileName) { @@ -250,6 +276,14 @@ public _FinalStage encoding(EncodingEnum encoding) { return this; } + /** + *

        The encoding of the value of data. Defaults to RAW if not defined.

        + *
          + *
        • RAW - RAW
        • + *
        • BASE64 - BASE64
        • + *
        • GZIP_BASE64 - GZIP_BASE64
        • + *
        + */ @java.lang.Override @JsonSetter(value = "encoding", nulls = Nulls.SKIP) public _FinalStage encoding(Optional encoding) { diff --git a/src/main/java/com/merge/api/ats/types/Offer.java b/src/main/java/com/merge/api/ats/types/Offer.java index e056b7e46..c9793866b 100644 --- a/src/main/java/com/merge/api/ats/types/Offer.java +++ b/src/main/java/com/merge/api/ats/types/Offer.java @@ -320,6 +320,9 @@ public Builder id(String id) { return this; } + /** + *

        The third-party API ID of the matching object.

        + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; @@ -331,6 +334,9 @@ public Builder remoteId(String remoteId) { return this; } + /** + *

        The datetime that this object was created by Merge.

        + */ @JsonSetter(value = "created_at", nulls = Nulls.SKIP) public Builder createdAt(Optional createdAt) { this.createdAt = createdAt; @@ -342,6 +348,9 @@ public Builder createdAt(OffsetDateTime createdAt) { return this; } + /** + *

        The datetime that this object was modified by Merge.

        + */ @JsonSetter(value = "modified_at", nulls = Nulls.SKIP) public Builder modifiedAt(Optional modifiedAt) { this.modifiedAt = modifiedAt; @@ -353,6 +362,9 @@ public Builder modifiedAt(OffsetDateTime modifiedAt) { return this; } + /** + *

        The application who is receiving the offer.

        + */ @JsonSetter(value = "application", nulls = Nulls.SKIP) public Builder application(Optional application) { this.application = application; @@ -364,6 +376,9 @@ public Builder application(OfferApplication application) { return this; } + /** + *

        The user who created the offer.

        + */ @JsonSetter(value = "creator", nulls = Nulls.SKIP) public Builder creator(Optional creator) { this.creator = creator; @@ -375,6 +390,9 @@ public Builder creator(OfferCreator creator) { return this; } + /** + *

        When the third party's offer was created.

        + */ @JsonSetter(value = "remote_created_at", nulls = Nulls.SKIP) public Builder remoteCreatedAt(Optional remoteCreatedAt) { this.remoteCreatedAt = remoteCreatedAt; @@ -386,6 +404,9 @@ public Builder remoteCreatedAt(OffsetDateTime remoteCreatedAt) { return this; } + /** + *

        When the offer was closed.

        + */ @JsonSetter(value = "closed_at", nulls = Nulls.SKIP) public Builder closedAt(Optional closedAt) { this.closedAt = closedAt; @@ -397,6 +418,9 @@ public Builder closedAt(OffsetDateTime closedAt) { return this; } + /** + *

        When the offer was sent.

        + */ @JsonSetter(value = "sent_at", nulls = Nulls.SKIP) public Builder sentAt(Optional sentAt) { this.sentAt = sentAt; @@ -408,6 +432,9 @@ public Builder sentAt(OffsetDateTime sentAt) { return this; } + /** + *

        The employment start date on the offer.

        + */ @JsonSetter(value = "start_date", nulls = Nulls.SKIP) public Builder startDate(Optional startDate) { this.startDate = startDate; @@ -419,6 +446,20 @@ public Builder startDate(OffsetDateTime startDate) { return this; } + /** + *

        The offer's status.

        + *
          + *
        • DRAFT - DRAFT
        • + *
        • APPROVAL-SENT - APPROVAL-SENT
        • + *
        • APPROVED - APPROVED
        • + *
        • SENT - SENT
        • + *
        • SENT-MANUALLY - SENT-MANUALLY
        • + *
        • OPENED - OPENED
        • + *
        • DENIED - DENIED
        • + *
        • SIGNED - SIGNED
        • + *
        • DEPRECATED - DEPRECATED
        • + *
        + */ @JsonSetter(value = "status", nulls = Nulls.SKIP) public Builder status(Optional status) { this.status = status; @@ -430,6 +471,9 @@ public Builder status(OfferStatusEnum status) { return this; } + /** + *

        Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

        + */ @JsonSetter(value = "remote_was_deleted", nulls = Nulls.SKIP) public Builder remoteWasDeleted(Optional remoteWasDeleted) { this.remoteWasDeleted = remoteWasDeleted; diff --git a/src/main/java/com/merge/api/ats/types/OffersListRequest.java b/src/main/java/com/merge/api/ats/types/OffersListRequest.java index 2309d8e6a..a72ad7e72 100644 --- a/src/main/java/com/merge/api/ats/types/OffersListRequest.java +++ b/src/main/java/com/merge/api/ats/types/OffersListRequest.java @@ -324,6 +324,9 @@ public Builder from(OffersListRequest other) { return this; } + /** + *

        Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.

        + */ @JsonSetter(value = "expand", nulls = Nulls.SKIP) public Builder expand(Optional> expand) { this.expand = expand; @@ -340,6 +343,9 @@ public Builder expand(OffersListRequestExpandItem expand) { return this; } + /** + *

        If provided, will only return offers for this application.

        + */ @JsonSetter(value = "application_id", nulls = Nulls.SKIP) public Builder applicationId(Optional applicationId) { this.applicationId = applicationId; @@ -351,6 +357,9 @@ public Builder applicationId(String applicationId) { return this; } + /** + *

        If provided, will only return objects created after this datetime.

        + */ @JsonSetter(value = "created_after", nulls = Nulls.SKIP) public Builder createdAfter(Optional createdAfter) { this.createdAfter = createdAfter; @@ -362,6 +371,9 @@ public Builder createdAfter(OffsetDateTime createdAfter) { return this; } + /** + *

        If provided, will only return objects created before this datetime.

        + */ @JsonSetter(value = "created_before", nulls = Nulls.SKIP) public Builder createdBefore(Optional createdBefore) { this.createdBefore = createdBefore; @@ -373,6 +385,9 @@ public Builder createdBefore(OffsetDateTime createdBefore) { return this; } + /** + *

        If provided, will only return offers created by this user.

        + */ @JsonSetter(value = "creator_id", nulls = Nulls.SKIP) public Builder creatorId(Optional creatorId) { this.creatorId = creatorId; @@ -384,6 +399,9 @@ public Builder creatorId(String creatorId) { return this; } + /** + *

        The pagination cursor value.

        + */ @JsonSetter(value = "cursor", nulls = Nulls.SKIP) public Builder cursor(Optional cursor) { this.cursor = cursor; @@ -395,6 +413,9 @@ public Builder cursor(String cursor) { return this; } + /** + *

        Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

        + */ @JsonSetter(value = "include_deleted_data", nulls = Nulls.SKIP) public Builder includeDeletedData(Optional includeDeletedData) { this.includeDeletedData = includeDeletedData; @@ -406,6 +427,9 @@ public Builder includeDeletedData(Boolean includeDeletedData) { return this; } + /** + *

        Whether to include the original data Merge fetched from the third-party to produce these models.

        + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -417,6 +441,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

        Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

        + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; @@ -428,6 +455,9 @@ public Builder includeShellData(Boolean includeShellData) { return this; } + /** + *

        If provided, only objects synced by Merge after this date time will be returned.

        + */ @JsonSetter(value = "modified_after", nulls = Nulls.SKIP) public Builder modifiedAfter(Optional modifiedAfter) { this.modifiedAfter = modifiedAfter; @@ -439,6 +469,9 @@ public Builder modifiedAfter(OffsetDateTime modifiedAfter) { return this; } + /** + *

        If provided, only objects synced by Merge before this date time will be returned.

        + */ @JsonSetter(value = "modified_before", nulls = Nulls.SKIP) public Builder modifiedBefore(Optional modifiedBefore) { this.modifiedBefore = modifiedBefore; @@ -450,6 +483,9 @@ public Builder modifiedBefore(OffsetDateTime modifiedBefore) { return this; } + /** + *

        Number of results to return per page.

        + */ @JsonSetter(value = "page_size", nulls = Nulls.SKIP) public Builder pageSize(Optional pageSize) { this.pageSize = pageSize; @@ -461,6 +497,9 @@ public Builder pageSize(Integer pageSize) { return this; } + /** + *

        Deprecated. Use show_enum_origins.

        + */ @JsonSetter(value = "remote_fields", nulls = Nulls.SKIP) public Builder remoteFields(Optional remoteFields) { this.remoteFields = remoteFields; @@ -472,6 +511,9 @@ public Builder remoteFields(String remoteFields) { return this; } + /** + *

        The API provider's ID for the given object.

        + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; @@ -483,6 +525,9 @@ public Builder remoteId(String remoteId) { return this; } + /** + *

        A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. Learn more

        + */ @JsonSetter(value = "show_enum_origins", nulls = Nulls.SKIP) public Builder showEnumOrigins(Optional showEnumOrigins) { this.showEnumOrigins = showEnumOrigins; diff --git a/src/main/java/com/merge/api/ats/types/OffersRetrieveRequest.java b/src/main/java/com/merge/api/ats/types/OffersRetrieveRequest.java index 5c4f785f5..89a7bb0f1 100644 --- a/src/main/java/com/merge/api/ats/types/OffersRetrieveRequest.java +++ b/src/main/java/com/merge/api/ats/types/OffersRetrieveRequest.java @@ -149,6 +149,9 @@ public Builder from(OffersRetrieveRequest other) { return this; } + /** + *

        Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.

        + */ @JsonSetter(value = "expand", nulls = Nulls.SKIP) public Builder expand(Optional> expand) { this.expand = expand; @@ -165,6 +168,9 @@ public Builder expand(OffersRetrieveRequestExpandItem expand) { return this; } + /** + *

        Whether to include the original data Merge fetched from the third-party to produce these models.

        + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -176,6 +182,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

        Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

        + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; @@ -187,6 +196,9 @@ public Builder includeShellData(Boolean includeShellData) { return this; } + /** + *

        Deprecated. Use show_enum_origins.

        + */ @JsonSetter(value = "remote_fields", nulls = Nulls.SKIP) public Builder remoteFields(Optional remoteFields) { this.remoteFields = remoteFields; @@ -198,6 +210,9 @@ public Builder remoteFields(String remoteFields) { return this; } + /** + *

        A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. Learn more

        + */ @JsonSetter(value = "show_enum_origins", nulls = Nulls.SKIP) public Builder showEnumOrigins(Optional showEnumOrigins) { this.showEnumOrigins = showEnumOrigins; diff --git a/src/main/java/com/merge/api/ats/types/Office.java b/src/main/java/com/merge/api/ats/types/Office.java index d3e9ff05c..92ef9013f 100644 --- a/src/main/java/com/merge/api/ats/types/Office.java +++ b/src/main/java/com/merge/api/ats/types/Office.java @@ -224,6 +224,9 @@ public Builder id(String id) { return this; } + /** + *

        The third-party API ID of the matching object.

        + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; @@ -235,6 +238,9 @@ public Builder remoteId(String remoteId) { return this; } + /** + *

        The datetime that this object was created by Merge.

        + */ @JsonSetter(value = "created_at", nulls = Nulls.SKIP) public Builder createdAt(Optional createdAt) { this.createdAt = createdAt; @@ -246,6 +252,9 @@ public Builder createdAt(OffsetDateTime createdAt) { return this; } + /** + *

        The datetime that this object was modified by Merge.

        + */ @JsonSetter(value = "modified_at", nulls = Nulls.SKIP) public Builder modifiedAt(Optional modifiedAt) { this.modifiedAt = modifiedAt; @@ -257,6 +266,9 @@ public Builder modifiedAt(OffsetDateTime modifiedAt) { return this; } + /** + *

        The office's name.

        + */ @JsonSetter(value = "name", nulls = Nulls.SKIP) public Builder name(Optional name) { this.name = name; @@ -268,6 +280,9 @@ public Builder name(String name) { return this; } + /** + *

        The office's location.

        + */ @JsonSetter(value = "location", nulls = Nulls.SKIP) public Builder location(Optional location) { this.location = location; @@ -279,6 +294,9 @@ public Builder location(String location) { return this; } + /** + *

        Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

        + */ @JsonSetter(value = "remote_was_deleted", nulls = Nulls.SKIP) public Builder remoteWasDeleted(Optional remoteWasDeleted) { this.remoteWasDeleted = remoteWasDeleted; diff --git a/src/main/java/com/merge/api/ats/types/OfficesListRequest.java b/src/main/java/com/merge/api/ats/types/OfficesListRequest.java index 73d6b5ded..21317ceae 100644 --- a/src/main/java/com/merge/api/ats/types/OfficesListRequest.java +++ b/src/main/java/com/merge/api/ats/types/OfficesListRequest.java @@ -237,6 +237,9 @@ public Builder from(OfficesListRequest other) { return this; } + /** + *

        If provided, will only return objects created after this datetime.

        + */ @JsonSetter(value = "created_after", nulls = Nulls.SKIP) public Builder createdAfter(Optional createdAfter) { this.createdAfter = createdAfter; @@ -248,6 +251,9 @@ public Builder createdAfter(OffsetDateTime createdAfter) { return this; } + /** + *

        If provided, will only return objects created before this datetime.

        + */ @JsonSetter(value = "created_before", nulls = Nulls.SKIP) public Builder createdBefore(Optional createdBefore) { this.createdBefore = createdBefore; @@ -259,6 +265,9 @@ public Builder createdBefore(OffsetDateTime createdBefore) { return this; } + /** + *

        The pagination cursor value.

        + */ @JsonSetter(value = "cursor", nulls = Nulls.SKIP) public Builder cursor(Optional cursor) { this.cursor = cursor; @@ -270,6 +279,9 @@ public Builder cursor(String cursor) { return this; } + /** + *

        Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

        + */ @JsonSetter(value = "include_deleted_data", nulls = Nulls.SKIP) public Builder includeDeletedData(Optional includeDeletedData) { this.includeDeletedData = includeDeletedData; @@ -281,6 +293,9 @@ public Builder includeDeletedData(Boolean includeDeletedData) { return this; } + /** + *

        Whether to include the original data Merge fetched from the third-party to produce these models.

        + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -292,6 +307,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

        Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

        + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; @@ -303,6 +321,9 @@ public Builder includeShellData(Boolean includeShellData) { return this; } + /** + *

        If provided, only objects synced by Merge after this date time will be returned.

        + */ @JsonSetter(value = "modified_after", nulls = Nulls.SKIP) public Builder modifiedAfter(Optional modifiedAfter) { this.modifiedAfter = modifiedAfter; @@ -314,6 +335,9 @@ public Builder modifiedAfter(OffsetDateTime modifiedAfter) { return this; } + /** + *

        If provided, only objects synced by Merge before this date time will be returned.

        + */ @JsonSetter(value = "modified_before", nulls = Nulls.SKIP) public Builder modifiedBefore(Optional modifiedBefore) { this.modifiedBefore = modifiedBefore; @@ -325,6 +349,9 @@ public Builder modifiedBefore(OffsetDateTime modifiedBefore) { return this; } + /** + *

        Number of results to return per page.

        + */ @JsonSetter(value = "page_size", nulls = Nulls.SKIP) public Builder pageSize(Optional pageSize) { this.pageSize = pageSize; @@ -336,6 +363,9 @@ public Builder pageSize(Integer pageSize) { return this; } + /** + *

        The API provider's ID for the given object.

        + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; diff --git a/src/main/java/com/merge/api/ats/types/OfficesRetrieveRequest.java b/src/main/java/com/merge/api/ats/types/OfficesRetrieveRequest.java index 832bff785..fccd68dd6 100644 --- a/src/main/java/com/merge/api/ats/types/OfficesRetrieveRequest.java +++ b/src/main/java/com/merge/api/ats/types/OfficesRetrieveRequest.java @@ -97,6 +97,9 @@ public Builder from(OfficesRetrieveRequest other) { return this; } + /** + *

        Whether to include the original data Merge fetched from the third-party to produce these models.

        + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -108,6 +111,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

        Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

        + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; diff --git a/src/main/java/com/merge/api/ats/types/PatchedCandidateEndpointRequest.java b/src/main/java/com/merge/api/ats/types/PatchedCandidateEndpointRequest.java index 03fe18e50..620466e77 100644 --- a/src/main/java/com/merge/api/ats/types/PatchedCandidateEndpointRequest.java +++ b/src/main/java/com/merge/api/ats/types/PatchedCandidateEndpointRequest.java @@ -115,10 +115,16 @@ public interface RemoteUserIdStage { public interface _FinalStage { PatchedCandidateEndpointRequest build(); + /** + *

        Whether to include debug fields (such as log file links) in the response.

        + */ _FinalStage isDebugMode(Optional isDebugMode); _FinalStage isDebugMode(Boolean isDebugMode); + /** + *

        Whether or not third-party updates should be run asynchronously.

        + */ _FinalStage runAsync(Optional runAsync); _FinalStage runAsync(Boolean runAsync); @@ -172,6 +178,9 @@ public _FinalStage runAsync(Boolean runAsync) { return this; } + /** + *

        Whether or not third-party updates should be run asynchronously.

        + */ @java.lang.Override @JsonSetter(value = "run_async", nulls = Nulls.SKIP) public _FinalStage runAsync(Optional runAsync) { @@ -189,6 +198,9 @@ public _FinalStage isDebugMode(Boolean isDebugMode) { return this; } + /** + *

        Whether to include debug fields (such as log file links) in the response.

        + */ @java.lang.Override @JsonSetter(value = "is_debug_mode", nulls = Nulls.SKIP) public _FinalStage isDebugMode(Optional isDebugMode) { diff --git a/src/main/java/com/merge/api/ats/types/PatchedCandidateRequest.java b/src/main/java/com/merge/api/ats/types/PatchedCandidateRequest.java index 0236bd821..706ee2fd4 100644 --- a/src/main/java/com/merge/api/ats/types/PatchedCandidateRequest.java +++ b/src/main/java/com/merge/api/ats/types/PatchedCandidateRequest.java @@ -340,6 +340,9 @@ public Builder from(PatchedCandidateRequest other) { return this; } + /** + *

        The candidate's first name.

        + */ @JsonSetter(value = "first_name", nulls = Nulls.SKIP) public Builder firstName(Optional firstName) { this.firstName = firstName; @@ -351,6 +354,9 @@ public Builder firstName(String firstName) { return this; } + /** + *

        The candidate's last name.

        + */ @JsonSetter(value = "last_name", nulls = Nulls.SKIP) public Builder lastName(Optional lastName) { this.lastName = lastName; @@ -362,6 +368,9 @@ public Builder lastName(String lastName) { return this; } + /** + *

        The candidate's current company.

        + */ @JsonSetter(value = "company", nulls = Nulls.SKIP) public Builder company(Optional company) { this.company = company; @@ -373,6 +382,9 @@ public Builder company(String company) { return this; } + /** + *

        The candidate's current title.

        + */ @JsonSetter(value = "title", nulls = Nulls.SKIP) public Builder title(Optional title) { this.title = title; @@ -384,6 +396,9 @@ public Builder title(String title) { return this; } + /** + *

        When the most recent interaction with the candidate occurred.

        + */ @JsonSetter(value = "last_interaction_at", nulls = Nulls.SKIP) public Builder lastInteractionAt(Optional lastInteractionAt) { this.lastInteractionAt = lastInteractionAt; @@ -395,6 +410,9 @@ public Builder lastInteractionAt(OffsetDateTime lastInteractionAt) { return this; } + /** + *

        Whether or not the candidate is private.

        + */ @JsonSetter(value = "is_private", nulls = Nulls.SKIP) public Builder isPrivate(Optional isPrivate) { this.isPrivate = isPrivate; @@ -406,6 +424,9 @@ public Builder isPrivate(Boolean isPrivate) { return this; } + /** + *

        Whether or not the candidate can be emailed.

        + */ @JsonSetter(value = "can_email", nulls = Nulls.SKIP) public Builder canEmail(Optional canEmail) { this.canEmail = canEmail; @@ -417,6 +438,9 @@ public Builder canEmail(Boolean canEmail) { return this; } + /** + *

        The candidate's locations.

        + */ @JsonSetter(value = "locations", nulls = Nulls.SKIP) public Builder locations(Optional>> locations) { this.locations = locations; @@ -461,6 +485,9 @@ public Builder urls(List urls) { return this; } + /** + *

        Array of Tag names as strings.

        + */ @JsonSetter(value = "tags", nulls = Nulls.SKIP) public Builder tags(Optional>> tags) { this.tags = tags; @@ -472,6 +499,9 @@ public Builder tags(List> tags) { return this; } + /** + *

        Array of Application object IDs.

        + */ @JsonSetter(value = "applications", nulls = Nulls.SKIP) public Builder applications(Optional>> applications) { this.applications = applications; @@ -483,6 +513,9 @@ public Builder applications(List> applications) { return this; } + /** + *

        Array of Attachment object IDs.

        + */ @JsonSetter(value = "attachments", nulls = Nulls.SKIP) public Builder attachments(Optional>> attachments) { this.attachments = attachments; diff --git a/src/main/java/com/merge/api/ats/types/PatchedEditFieldMappingRequest.java b/src/main/java/com/merge/api/ats/types/PatchedEditFieldMappingRequest.java index 2c6400d03..8152e9e50 100644 --- a/src/main/java/com/merge/api/ats/types/PatchedEditFieldMappingRequest.java +++ b/src/main/java/com/merge/api/ats/types/PatchedEditFieldMappingRequest.java @@ -116,6 +116,9 @@ public Builder from(PatchedEditFieldMappingRequest other) { return this; } + /** + *

        The field traversal path of the remote field listed when you hit the GET /remote-fields endpoint.

        + */ @JsonSetter(value = "remote_field_traversal_path", nulls = Nulls.SKIP) public Builder remoteFieldTraversalPath(Optional> remoteFieldTraversalPath) { this.remoteFieldTraversalPath = remoteFieldTraversalPath; @@ -127,6 +130,9 @@ public Builder remoteFieldTraversalPath(List remoteFieldTraversalPath) return this; } + /** + *

        The method of the remote endpoint where the remote field is coming from.

        + */ @JsonSetter(value = "remote_method", nulls = Nulls.SKIP) public Builder remoteMethod(Optional remoteMethod) { this.remoteMethod = remoteMethod; @@ -138,6 +144,9 @@ public Builder remoteMethod(String remoteMethod) { return this; } + /** + *

        The path of the remote endpoint where the remote field is coming from.

        + */ @JsonSetter(value = "remote_url_path", nulls = Nulls.SKIP) public Builder remoteUrlPath(Optional remoteUrlPath) { this.remoteUrlPath = remoteUrlPath; diff --git a/src/main/java/com/merge/api/ats/types/PhoneNumber.java b/src/main/java/com/merge/api/ats/types/PhoneNumber.java index 27dece06a..05b5dfb61 100644 --- a/src/main/java/com/merge/api/ats/types/PhoneNumber.java +++ b/src/main/java/com/merge/api/ats/types/PhoneNumber.java @@ -154,6 +154,9 @@ public Builder from(PhoneNumber other) { return this; } + /** + *

        The datetime that this object was created by Merge.

        + */ @JsonSetter(value = "created_at", nulls = Nulls.SKIP) public Builder createdAt(Optional createdAt) { this.createdAt = createdAt; @@ -165,6 +168,9 @@ public Builder createdAt(OffsetDateTime createdAt) { return this; } + /** + *

        The datetime that this object was modified by Merge.

        + */ @JsonSetter(value = "modified_at", nulls = Nulls.SKIP) public Builder modifiedAt(Optional modifiedAt) { this.modifiedAt = modifiedAt; @@ -176,6 +182,9 @@ public Builder modifiedAt(OffsetDateTime modifiedAt) { return this; } + /** + *

        The phone number.

        + */ @JsonSetter(value = "value", nulls = Nulls.SKIP) public Builder value(Optional value) { this.value = value; @@ -187,6 +196,16 @@ public Builder value(String value) { return this; } + /** + *

        The type of phone number.

        + *
          + *
        • HOME - HOME
        • + *
        • WORK - WORK
        • + *
        • MOBILE - MOBILE
        • + *
        • SKYPE - SKYPE
        • + *
        • OTHER - OTHER
        • + *
        + */ @JsonSetter(value = "phone_number_type", nulls = Nulls.SKIP) public Builder phoneNumberType(Optional phoneNumberType) { this.phoneNumberType = phoneNumberType; @@ -198,6 +217,9 @@ public Builder phoneNumberType(PhoneNumberTypeEnum phoneNumberType) { return this; } + /** + *

        Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

        + */ @JsonSetter(value = "remote_was_deleted", nulls = Nulls.SKIP) public Builder remoteWasDeleted(Optional remoteWasDeleted) { this.remoteWasDeleted = remoteWasDeleted; diff --git a/src/main/java/com/merge/api/ats/types/PhoneNumberRequest.java b/src/main/java/com/merge/api/ats/types/PhoneNumberRequest.java index 04f02636a..3d95f2a84 100644 --- a/src/main/java/com/merge/api/ats/types/PhoneNumberRequest.java +++ b/src/main/java/com/merge/api/ats/types/PhoneNumberRequest.java @@ -132,6 +132,9 @@ public Builder from(PhoneNumberRequest other) { return this; } + /** + *

        The phone number.

        + */ @JsonSetter(value = "value", nulls = Nulls.SKIP) public Builder value(Optional value) { this.value = value; @@ -143,6 +146,16 @@ public Builder value(String value) { return this; } + /** + *

        The type of phone number.

        + *
          + *
        • HOME - HOME
        • + *
        • WORK - WORK
        • + *
        • MOBILE - MOBILE
        • + *
        • SKYPE - SKYPE
        • + *
        • OTHER - OTHER
        • + *
        + */ @JsonSetter(value = "phone_number_type", nulls = Nulls.SKIP) public Builder phoneNumberType(Optional phoneNumberType) { this.phoneNumberType = phoneNumberType; diff --git a/src/main/java/com/merge/api/ats/types/RejectReason.java b/src/main/java/com/merge/api/ats/types/RejectReason.java index 1dd86e0b5..1a69dcbc1 100644 --- a/src/main/java/com/merge/api/ats/types/RejectReason.java +++ b/src/main/java/com/merge/api/ats/types/RejectReason.java @@ -207,6 +207,9 @@ public Builder id(String id) { return this; } + /** + *

        The third-party API ID of the matching object.

        + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; @@ -218,6 +221,9 @@ public Builder remoteId(String remoteId) { return this; } + /** + *

        The datetime that this object was created by Merge.

        + */ @JsonSetter(value = "created_at", nulls = Nulls.SKIP) public Builder createdAt(Optional createdAt) { this.createdAt = createdAt; @@ -229,6 +235,9 @@ public Builder createdAt(OffsetDateTime createdAt) { return this; } + /** + *

        The datetime that this object was modified by Merge.

        + */ @JsonSetter(value = "modified_at", nulls = Nulls.SKIP) public Builder modifiedAt(Optional modifiedAt) { this.modifiedAt = modifiedAt; @@ -240,6 +249,9 @@ public Builder modifiedAt(OffsetDateTime modifiedAt) { return this; } + /** + *

        The rejection reason’s name.

        + */ @JsonSetter(value = "name", nulls = Nulls.SKIP) public Builder name(Optional name) { this.name = name; @@ -251,6 +263,9 @@ public Builder name(String name) { return this; } + /** + *

        Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

        + */ @JsonSetter(value = "remote_was_deleted", nulls = Nulls.SKIP) public Builder remoteWasDeleted(Optional remoteWasDeleted) { this.remoteWasDeleted = remoteWasDeleted; diff --git a/src/main/java/com/merge/api/ats/types/RejectReasonsListRequest.java b/src/main/java/com/merge/api/ats/types/RejectReasonsListRequest.java index 4c6077728..fbcd79bf5 100644 --- a/src/main/java/com/merge/api/ats/types/RejectReasonsListRequest.java +++ b/src/main/java/com/merge/api/ats/types/RejectReasonsListRequest.java @@ -237,6 +237,9 @@ public Builder from(RejectReasonsListRequest other) { return this; } + /** + *

        If provided, will only return objects created after this datetime.

        + */ @JsonSetter(value = "created_after", nulls = Nulls.SKIP) public Builder createdAfter(Optional createdAfter) { this.createdAfter = createdAfter; @@ -248,6 +251,9 @@ public Builder createdAfter(OffsetDateTime createdAfter) { return this; } + /** + *

        If provided, will only return objects created before this datetime.

        + */ @JsonSetter(value = "created_before", nulls = Nulls.SKIP) public Builder createdBefore(Optional createdBefore) { this.createdBefore = createdBefore; @@ -259,6 +265,9 @@ public Builder createdBefore(OffsetDateTime createdBefore) { return this; } + /** + *

        The pagination cursor value.

        + */ @JsonSetter(value = "cursor", nulls = Nulls.SKIP) public Builder cursor(Optional cursor) { this.cursor = cursor; @@ -270,6 +279,9 @@ public Builder cursor(String cursor) { return this; } + /** + *

        Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

        + */ @JsonSetter(value = "include_deleted_data", nulls = Nulls.SKIP) public Builder includeDeletedData(Optional includeDeletedData) { this.includeDeletedData = includeDeletedData; @@ -281,6 +293,9 @@ public Builder includeDeletedData(Boolean includeDeletedData) { return this; } + /** + *

        Whether to include the original data Merge fetched from the third-party to produce these models.

        + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -292,6 +307,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

        Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

        + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; @@ -303,6 +321,9 @@ public Builder includeShellData(Boolean includeShellData) { return this; } + /** + *

        If provided, only objects synced by Merge after this date time will be returned.

        + */ @JsonSetter(value = "modified_after", nulls = Nulls.SKIP) public Builder modifiedAfter(Optional modifiedAfter) { this.modifiedAfter = modifiedAfter; @@ -314,6 +335,9 @@ public Builder modifiedAfter(OffsetDateTime modifiedAfter) { return this; } + /** + *

        If provided, only objects synced by Merge before this date time will be returned.

        + */ @JsonSetter(value = "modified_before", nulls = Nulls.SKIP) public Builder modifiedBefore(Optional modifiedBefore) { this.modifiedBefore = modifiedBefore; @@ -325,6 +349,9 @@ public Builder modifiedBefore(OffsetDateTime modifiedBefore) { return this; } + /** + *

        Number of results to return per page.

        + */ @JsonSetter(value = "page_size", nulls = Nulls.SKIP) public Builder pageSize(Optional pageSize) { this.pageSize = pageSize; @@ -336,6 +363,9 @@ public Builder pageSize(Integer pageSize) { return this; } + /** + *

        The API provider's ID for the given object.

        + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; diff --git a/src/main/java/com/merge/api/ats/types/RejectReasonsRetrieveRequest.java b/src/main/java/com/merge/api/ats/types/RejectReasonsRetrieveRequest.java index 22abe3083..4d2a2b985 100644 --- a/src/main/java/com/merge/api/ats/types/RejectReasonsRetrieveRequest.java +++ b/src/main/java/com/merge/api/ats/types/RejectReasonsRetrieveRequest.java @@ -97,6 +97,9 @@ public Builder from(RejectReasonsRetrieveRequest other) { return this; } + /** + *

        Whether to include the original data Merge fetched from the third-party to produce these models.

        + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -108,6 +111,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

        Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

        + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; diff --git a/src/main/java/com/merge/api/ats/types/RemoteData.java b/src/main/java/com/merge/api/ats/types/RemoteData.java index 29a9929b3..b00ac0737 100644 --- a/src/main/java/com/merge/api/ats/types/RemoteData.java +++ b/src/main/java/com/merge/api/ats/types/RemoteData.java @@ -77,6 +77,9 @@ public static PathStage builder() { } public interface PathStage { + /** + * The third-party API path that is being called. + */ _FinalStage path(@NotNull String path); Builder from(RemoteData other); @@ -109,7 +112,7 @@ public Builder from(RemoteData other) { } /** - *

        The third-party API path that is being called.

        + * The third-party API path that is being called.

        The third-party API path that is being called.

        * @return Reference to {@code this} so that method calls can be chained together. */ @java.lang.Override diff --git a/src/main/java/com/merge/api/ats/types/RemoteFieldsRetrieveRequest.java b/src/main/java/com/merge/api/ats/types/RemoteFieldsRetrieveRequest.java index 85f5f72ec..47b11607a 100644 --- a/src/main/java/com/merge/api/ats/types/RemoteFieldsRetrieveRequest.java +++ b/src/main/java/com/merge/api/ats/types/RemoteFieldsRetrieveRequest.java @@ -97,6 +97,9 @@ public Builder from(RemoteFieldsRetrieveRequest other) { return this; } + /** + *

        A comma seperated list of Common Model names. If included, will only return Remote Fields for those Common Models.

        + */ @JsonSetter(value = "common_models", nulls = Nulls.SKIP) public Builder commonModels(Optional commonModels) { this.commonModels = commonModels; @@ -108,6 +111,9 @@ public Builder commonModels(String commonModels) { return this; } + /** + *

        If true, will include example values, where available, for remote fields in the 3rd party platform. These examples come from active data from your customers.

        + */ @JsonSetter(value = "include_example_values", nulls = Nulls.SKIP) public Builder includeExampleValues(Optional includeExampleValues) { this.includeExampleValues = includeExampleValues; diff --git a/src/main/java/com/merge/api/ats/types/RemoteKeyForRegenerationRequest.java b/src/main/java/com/merge/api/ats/types/RemoteKeyForRegenerationRequest.java index 194d5b050..b79e95324 100644 --- a/src/main/java/com/merge/api/ats/types/RemoteKeyForRegenerationRequest.java +++ b/src/main/java/com/merge/api/ats/types/RemoteKeyForRegenerationRequest.java @@ -66,6 +66,9 @@ public static NameStage builder() { } public interface NameStage { + /** + * The name of the remote key + */ _FinalStage name(@NotNull String name); Builder from(RemoteKeyForRegenerationRequest other); @@ -91,7 +94,7 @@ public Builder from(RemoteKeyForRegenerationRequest other) { } /** - *

        The name of the remote key

        + * The name of the remote key

        The name of the remote key

        * @return Reference to {@code this} so that method calls can be chained together. */ @java.lang.Override diff --git a/src/main/java/com/merge/api/ats/types/RemoteUser.java b/src/main/java/com/merge/api/ats/types/RemoteUser.java index 9c1268649..b85a01b61 100644 --- a/src/main/java/com/merge/api/ats/types/RemoteUser.java +++ b/src/main/java/com/merge/api/ats/types/RemoteUser.java @@ -299,6 +299,9 @@ public Builder id(String id) { return this; } + /** + *

        The third-party API ID of the matching object.

        + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; @@ -310,6 +313,9 @@ public Builder remoteId(String remoteId) { return this; } + /** + *

        The datetime that this object was created by Merge.

        + */ @JsonSetter(value = "created_at", nulls = Nulls.SKIP) public Builder createdAt(Optional createdAt) { this.createdAt = createdAt; @@ -321,6 +327,9 @@ public Builder createdAt(OffsetDateTime createdAt) { return this; } + /** + *

        The datetime that this object was modified by Merge.

        + */ @JsonSetter(value = "modified_at", nulls = Nulls.SKIP) public Builder modifiedAt(Optional modifiedAt) { this.modifiedAt = modifiedAt; @@ -332,6 +341,9 @@ public Builder modifiedAt(OffsetDateTime modifiedAt) { return this; } + /** + *

        The user's first name.

        + */ @JsonSetter(value = "first_name", nulls = Nulls.SKIP) public Builder firstName(Optional firstName) { this.firstName = firstName; @@ -343,6 +355,9 @@ public Builder firstName(String firstName) { return this; } + /** + *

        The user's last name.

        + */ @JsonSetter(value = "last_name", nulls = Nulls.SKIP) public Builder lastName(Optional lastName) { this.lastName = lastName; @@ -354,6 +369,9 @@ public Builder lastName(String lastName) { return this; } + /** + *

        The user's email.

        + */ @JsonSetter(value = "email", nulls = Nulls.SKIP) public Builder email(Optional email) { this.email = email; @@ -365,6 +383,9 @@ public Builder email(String email) { return this; } + /** + *

        Whether the user's account had been disabled.

        + */ @JsonSetter(value = "disabled", nulls = Nulls.SKIP) public Builder disabled(Optional disabled) { this.disabled = disabled; @@ -376,6 +397,9 @@ public Builder disabled(Boolean disabled) { return this; } + /** + *

        When the third party's user was created.

        + */ @JsonSetter(value = "remote_created_at", nulls = Nulls.SKIP) public Builder remoteCreatedAt(Optional remoteCreatedAt) { this.remoteCreatedAt = remoteCreatedAt; @@ -387,6 +411,16 @@ public Builder remoteCreatedAt(OffsetDateTime remoteCreatedAt) { return this; } + /** + *

        The user's role.

        + *
          + *
        • SUPER_ADMIN - SUPER_ADMIN
        • + *
        • ADMIN - ADMIN
        • + *
        • TEAM_MEMBER - TEAM_MEMBER
        • + *
        • LIMITED_TEAM_MEMBER - LIMITED_TEAM_MEMBER
        • + *
        • INTERVIEWER - INTERVIEWER
        • + *
        + */ @JsonSetter(value = "access_role", nulls = Nulls.SKIP) public Builder accessRole(Optional accessRole) { this.accessRole = accessRole; @@ -398,6 +432,9 @@ public Builder accessRole(AccessRoleEnum accessRole) { return this; } + /** + *

        Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

        + */ @JsonSetter(value = "remote_was_deleted", nulls = Nulls.SKIP) public Builder remoteWasDeleted(Optional remoteWasDeleted) { this.remoteWasDeleted = remoteWasDeleted; diff --git a/src/main/java/com/merge/api/ats/types/ScheduledInterview.java b/src/main/java/com/merge/api/ats/types/ScheduledInterview.java index 1c2c1d0e3..e18719f24 100644 --- a/src/main/java/com/merge/api/ats/types/ScheduledInterview.java +++ b/src/main/java/com/merge/api/ats/types/ScheduledInterview.java @@ -365,6 +365,9 @@ public Builder id(String id) { return this; } + /** + *

        The third-party API ID of the matching object.

        + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; @@ -376,6 +379,9 @@ public Builder remoteId(String remoteId) { return this; } + /** + *

        The datetime that this object was created by Merge.

        + */ @JsonSetter(value = "created_at", nulls = Nulls.SKIP) public Builder createdAt(Optional createdAt) { this.createdAt = createdAt; @@ -387,6 +393,9 @@ public Builder createdAt(OffsetDateTime createdAt) { return this; } + /** + *

        The datetime that this object was modified by Merge.

        + */ @JsonSetter(value = "modified_at", nulls = Nulls.SKIP) public Builder modifiedAt(Optional modifiedAt) { this.modifiedAt = modifiedAt; @@ -398,6 +407,9 @@ public Builder modifiedAt(OffsetDateTime modifiedAt) { return this; } + /** + *

        The application being interviewed.

        + */ @JsonSetter(value = "application", nulls = Nulls.SKIP) public Builder application(Optional application) { this.application = application; @@ -409,6 +421,9 @@ public Builder application(ScheduledInterviewApplication application) { return this; } + /** + *

        The stage of the interview.

        + */ @JsonSetter(value = "job_interview_stage", nulls = Nulls.SKIP) public Builder jobInterviewStage(Optional jobInterviewStage) { this.jobInterviewStage = jobInterviewStage; @@ -420,6 +435,9 @@ public Builder jobInterviewStage(ScheduledInterviewJobInterviewStage jobIntervie return this; } + /** + *

        The user organizing the interview.

        + */ @JsonSetter(value = "organizer", nulls = Nulls.SKIP) public Builder organizer(Optional organizer) { this.organizer = organizer; @@ -431,6 +449,9 @@ public Builder organizer(ScheduledInterviewOrganizer organizer) { return this; } + /** + *

        Array of RemoteUser IDs.

        + */ @JsonSetter(value = "interviewers", nulls = Nulls.SKIP) public Builder interviewers(Optional>> interviewers) { this.interviewers = interviewers; @@ -442,6 +463,9 @@ public Builder interviewers(List> i return this; } + /** + *

        The interview's location.

        + */ @JsonSetter(value = "location", nulls = Nulls.SKIP) public Builder location(Optional location) { this.location = location; @@ -453,6 +477,9 @@ public Builder location(String location) { return this; } + /** + *

        When the interview was started.

        + */ @JsonSetter(value = "start_at", nulls = Nulls.SKIP) public Builder startAt(Optional startAt) { this.startAt = startAt; @@ -464,6 +491,9 @@ public Builder startAt(OffsetDateTime startAt) { return this; } + /** + *

        When the interview was ended.

        + */ @JsonSetter(value = "end_at", nulls = Nulls.SKIP) public Builder endAt(Optional endAt) { this.endAt = endAt; @@ -475,6 +505,9 @@ public Builder endAt(OffsetDateTime endAt) { return this; } + /** + *

        When the third party's interview was created.

        + */ @JsonSetter(value = "remote_created_at", nulls = Nulls.SKIP) public Builder remoteCreatedAt(Optional remoteCreatedAt) { this.remoteCreatedAt = remoteCreatedAt; @@ -486,6 +519,9 @@ public Builder remoteCreatedAt(OffsetDateTime remoteCreatedAt) { return this; } + /** + *

        When the third party's interview was updated.

        + */ @JsonSetter(value = "remote_updated_at", nulls = Nulls.SKIP) public Builder remoteUpdatedAt(Optional remoteUpdatedAt) { this.remoteUpdatedAt = remoteUpdatedAt; @@ -497,6 +533,14 @@ public Builder remoteUpdatedAt(OffsetDateTime remoteUpdatedAt) { return this; } + /** + *

        The interview's status.

        + *
          + *
        • SCHEDULED - SCHEDULED
        • + *
        • AWAITING_FEEDBACK - AWAITING_FEEDBACK
        • + *
        • COMPLETE - COMPLETE
        • + *
        + */ @JsonSetter(value = "status", nulls = Nulls.SKIP) public Builder status(Optional status) { this.status = status; @@ -508,6 +552,9 @@ public Builder status(ScheduledInterviewStatusEnum status) { return this; } + /** + *

        Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

        + */ @JsonSetter(value = "remote_was_deleted", nulls = Nulls.SKIP) public Builder remoteWasDeleted(Optional remoteWasDeleted) { this.remoteWasDeleted = remoteWasDeleted; diff --git a/src/main/java/com/merge/api/ats/types/ScheduledInterviewEndpointRequest.java b/src/main/java/com/merge/api/ats/types/ScheduledInterviewEndpointRequest.java index 072d1deca..761c8e7d9 100644 --- a/src/main/java/com/merge/api/ats/types/ScheduledInterviewEndpointRequest.java +++ b/src/main/java/com/merge/api/ats/types/ScheduledInterviewEndpointRequest.java @@ -115,10 +115,16 @@ public interface RemoteUserIdStage { public interface _FinalStage { ScheduledInterviewEndpointRequest build(); + /** + *

        Whether to include debug fields (such as log file links) in the response.

        + */ _FinalStage isDebugMode(Optional isDebugMode); _FinalStage isDebugMode(Boolean isDebugMode); + /** + *

        Whether or not third-party updates should be run asynchronously.

        + */ _FinalStage runAsync(Optional runAsync); _FinalStage runAsync(Boolean runAsync); @@ -172,6 +178,9 @@ public _FinalStage runAsync(Boolean runAsync) { return this; } + /** + *

        Whether or not third-party updates should be run asynchronously.

        + */ @java.lang.Override @JsonSetter(value = "run_async", nulls = Nulls.SKIP) public _FinalStage runAsync(Optional runAsync) { @@ -189,6 +198,9 @@ public _FinalStage isDebugMode(Boolean isDebugMode) { return this; } + /** + *

        Whether to include debug fields (such as log file links) in the response.

        + */ @java.lang.Override @JsonSetter(value = "is_debug_mode", nulls = Nulls.SKIP) public _FinalStage isDebugMode(Optional isDebugMode) { diff --git a/src/main/java/com/merge/api/ats/types/ScheduledInterviewRequest.java b/src/main/java/com/merge/api/ats/types/ScheduledInterviewRequest.java index 696642167..3ceb6cde7 100644 --- a/src/main/java/com/merge/api/ats/types/ScheduledInterviewRequest.java +++ b/src/main/java/com/merge/api/ats/types/ScheduledInterviewRequest.java @@ -238,6 +238,9 @@ public Builder from(ScheduledInterviewRequest other) { return this; } + /** + *

        The application being interviewed.

        + */ @JsonSetter(value = "application", nulls = Nulls.SKIP) public Builder application(Optional application) { this.application = application; @@ -249,6 +252,9 @@ public Builder application(ScheduledInterviewRequestApplication application) { return this; } + /** + *

        The stage of the interview.

        + */ @JsonSetter(value = "job_interview_stage", nulls = Nulls.SKIP) public Builder jobInterviewStage(Optional jobInterviewStage) { this.jobInterviewStage = jobInterviewStage; @@ -260,6 +266,9 @@ public Builder jobInterviewStage(ScheduledInterviewRequestJobInterviewStage jobI return this; } + /** + *

        The user organizing the interview.

        + */ @JsonSetter(value = "organizer", nulls = Nulls.SKIP) public Builder organizer(Optional organizer) { this.organizer = organizer; @@ -271,6 +280,9 @@ public Builder organizer(ScheduledInterviewRequestOrganizer organizer) { return this; } + /** + *

        Array of RemoteUser IDs.

        + */ @JsonSetter(value = "interviewers", nulls = Nulls.SKIP) public Builder interviewers(Optional>> interviewers) { this.interviewers = interviewers; @@ -282,6 +294,9 @@ public Builder interviewers(ListThe interview's location.

        + */ @JsonSetter(value = "location", nulls = Nulls.SKIP) public Builder location(Optional location) { this.location = location; @@ -293,6 +308,9 @@ public Builder location(String location) { return this; } + /** + *

        When the interview was started.

        + */ @JsonSetter(value = "start_at", nulls = Nulls.SKIP) public Builder startAt(Optional startAt) { this.startAt = startAt; @@ -304,6 +322,9 @@ public Builder startAt(OffsetDateTime startAt) { return this; } + /** + *

        When the interview was ended.

        + */ @JsonSetter(value = "end_at", nulls = Nulls.SKIP) public Builder endAt(Optional endAt) { this.endAt = endAt; @@ -315,6 +336,14 @@ public Builder endAt(OffsetDateTime endAt) { return this; } + /** + *

        The interview's status.

        + *
          + *
        • SCHEDULED - SCHEDULED
        • + *
        • AWAITING_FEEDBACK - AWAITING_FEEDBACK
        • + *
        • COMPLETE - COMPLETE
        • + *
        + */ @JsonSetter(value = "status", nulls = Nulls.SKIP) public Builder status(Optional status) { this.status = status; diff --git a/src/main/java/com/merge/api/ats/types/Scorecard.java b/src/main/java/com/merge/api/ats/types/Scorecard.java index 42c3a4c63..ef11eea0b 100644 --- a/src/main/java/com/merge/api/ats/types/Scorecard.java +++ b/src/main/java/com/merge/api/ats/types/Scorecard.java @@ -299,6 +299,9 @@ public Builder id(String id) { return this; } + /** + *

        The third-party API ID of the matching object.

        + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; @@ -310,6 +313,9 @@ public Builder remoteId(String remoteId) { return this; } + /** + *

        The datetime that this object was created by Merge.

        + */ @JsonSetter(value = "created_at", nulls = Nulls.SKIP) public Builder createdAt(Optional createdAt) { this.createdAt = createdAt; @@ -321,6 +327,9 @@ public Builder createdAt(OffsetDateTime createdAt) { return this; } + /** + *

        The datetime that this object was modified by Merge.

        + */ @JsonSetter(value = "modified_at", nulls = Nulls.SKIP) public Builder modifiedAt(Optional modifiedAt) { this.modifiedAt = modifiedAt; @@ -332,6 +341,9 @@ public Builder modifiedAt(OffsetDateTime modifiedAt) { return this; } + /** + *

        The application being scored.

        + */ @JsonSetter(value = "application", nulls = Nulls.SKIP) public Builder application(Optional application) { this.application = application; @@ -343,6 +355,9 @@ public Builder application(ScorecardApplication application) { return this; } + /** + *

        The interview being scored.

        + */ @JsonSetter(value = "interview", nulls = Nulls.SKIP) public Builder interview(Optional interview) { this.interview = interview; @@ -354,6 +369,9 @@ public Builder interview(ScorecardInterview interview) { return this; } + /** + *

        The interviewer doing the scoring.

        + */ @JsonSetter(value = "interviewer", nulls = Nulls.SKIP) public Builder interviewer(Optional interviewer) { this.interviewer = interviewer; @@ -365,6 +383,9 @@ public Builder interviewer(ScorecardInterviewer interviewer) { return this; } + /** + *

        When the third party's scorecard was created.

        + */ @JsonSetter(value = "remote_created_at", nulls = Nulls.SKIP) public Builder remoteCreatedAt(Optional remoteCreatedAt) { this.remoteCreatedAt = remoteCreatedAt; @@ -376,6 +397,9 @@ public Builder remoteCreatedAt(OffsetDateTime remoteCreatedAt) { return this; } + /** + *

        When the scorecard was submitted.

        + */ @JsonSetter(value = "submitted_at", nulls = Nulls.SKIP) public Builder submittedAt(Optional submittedAt) { this.submittedAt = submittedAt; @@ -387,6 +411,16 @@ public Builder submittedAt(OffsetDateTime submittedAt) { return this; } + /** + *

        The inteviewer's recommendation.

        + *
          + *
        • DEFINITELY_NO - DEFINITELY_NO
        • + *
        • NO - NO
        • + *
        • YES - YES
        • + *
        • STRONG_YES - STRONG_YES
        • + *
        • NO_DECISION - NO_DECISION
        • + *
        + */ @JsonSetter(value = "overall_recommendation", nulls = Nulls.SKIP) public Builder overallRecommendation(Optional overallRecommendation) { this.overallRecommendation = overallRecommendation; @@ -398,6 +432,9 @@ public Builder overallRecommendation(OverallRecommendationEnum overallRecommenda return this; } + /** + *

        Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

        + */ @JsonSetter(value = "remote_was_deleted", nulls = Nulls.SKIP) public Builder remoteWasDeleted(Optional remoteWasDeleted) { this.remoteWasDeleted = remoteWasDeleted; diff --git a/src/main/java/com/merge/api/ats/types/ScorecardsListRequest.java b/src/main/java/com/merge/api/ats/types/ScorecardsListRequest.java index 4eb0e3bb4..f517e5cee 100644 --- a/src/main/java/com/merge/api/ats/types/ScorecardsListRequest.java +++ b/src/main/java/com/merge/api/ats/types/ScorecardsListRequest.java @@ -341,6 +341,9 @@ public Builder from(ScorecardsListRequest other) { return this; } + /** + *

        Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.

        + */ @JsonSetter(value = "expand", nulls = Nulls.SKIP) public Builder expand(Optional> expand) { this.expand = expand; @@ -357,6 +360,9 @@ public Builder expand(ScorecardsListRequestExpandItem expand) { return this; } + /** + *

        If provided, will only return scorecards for this application.

        + */ @JsonSetter(value = "application_id", nulls = Nulls.SKIP) public Builder applicationId(Optional applicationId) { this.applicationId = applicationId; @@ -368,6 +374,9 @@ public Builder applicationId(String applicationId) { return this; } + /** + *

        If provided, will only return objects created after this datetime.

        + */ @JsonSetter(value = "created_after", nulls = Nulls.SKIP) public Builder createdAfter(Optional createdAfter) { this.createdAfter = createdAfter; @@ -379,6 +388,9 @@ public Builder createdAfter(OffsetDateTime createdAfter) { return this; } + /** + *

        If provided, will only return objects created before this datetime.

        + */ @JsonSetter(value = "created_before", nulls = Nulls.SKIP) public Builder createdBefore(Optional createdBefore) { this.createdBefore = createdBefore; @@ -390,6 +402,9 @@ public Builder createdBefore(OffsetDateTime createdBefore) { return this; } + /** + *

        The pagination cursor value.

        + */ @JsonSetter(value = "cursor", nulls = Nulls.SKIP) public Builder cursor(Optional cursor) { this.cursor = cursor; @@ -401,6 +416,9 @@ public Builder cursor(String cursor) { return this; } + /** + *

        Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

        + */ @JsonSetter(value = "include_deleted_data", nulls = Nulls.SKIP) public Builder includeDeletedData(Optional includeDeletedData) { this.includeDeletedData = includeDeletedData; @@ -412,6 +430,9 @@ public Builder includeDeletedData(Boolean includeDeletedData) { return this; } + /** + *

        Whether to include the original data Merge fetched from the third-party to produce these models.

        + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -423,6 +444,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

        Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

        + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; @@ -434,6 +458,9 @@ public Builder includeShellData(Boolean includeShellData) { return this; } + /** + *

        If provided, will only return scorecards for this interview.

        + */ @JsonSetter(value = "interview_id", nulls = Nulls.SKIP) public Builder interviewId(Optional interviewId) { this.interviewId = interviewId; @@ -445,6 +472,9 @@ public Builder interviewId(String interviewId) { return this; } + /** + *

        If provided, will only return scorecards for this interviewer.

        + */ @JsonSetter(value = "interviewer_id", nulls = Nulls.SKIP) public Builder interviewerId(Optional interviewerId) { this.interviewerId = interviewerId; @@ -456,6 +486,9 @@ public Builder interviewerId(String interviewerId) { return this; } + /** + *

        If provided, only objects synced by Merge after this date time will be returned.

        + */ @JsonSetter(value = "modified_after", nulls = Nulls.SKIP) public Builder modifiedAfter(Optional modifiedAfter) { this.modifiedAfter = modifiedAfter; @@ -467,6 +500,9 @@ public Builder modifiedAfter(OffsetDateTime modifiedAfter) { return this; } + /** + *

        If provided, only objects synced by Merge before this date time will be returned.

        + */ @JsonSetter(value = "modified_before", nulls = Nulls.SKIP) public Builder modifiedBefore(Optional modifiedBefore) { this.modifiedBefore = modifiedBefore; @@ -478,6 +514,9 @@ public Builder modifiedBefore(OffsetDateTime modifiedBefore) { return this; } + /** + *

        Number of results to return per page.

        + */ @JsonSetter(value = "page_size", nulls = Nulls.SKIP) public Builder pageSize(Optional pageSize) { this.pageSize = pageSize; @@ -489,6 +528,9 @@ public Builder pageSize(Integer pageSize) { return this; } + /** + *

        Deprecated. Use show_enum_origins.

        + */ @JsonSetter(value = "remote_fields", nulls = Nulls.SKIP) public Builder remoteFields(Optional remoteFields) { this.remoteFields = remoteFields; @@ -500,6 +542,9 @@ public Builder remoteFields(String remoteFields) { return this; } + /** + *

        The API provider's ID for the given object.

        + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; @@ -511,6 +556,9 @@ public Builder remoteId(String remoteId) { return this; } + /** + *

        A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. Learn more

        + */ @JsonSetter(value = "show_enum_origins", nulls = Nulls.SKIP) public Builder showEnumOrigins(Optional showEnumOrigins) { this.showEnumOrigins = showEnumOrigins; diff --git a/src/main/java/com/merge/api/ats/types/ScorecardsRetrieveRequest.java b/src/main/java/com/merge/api/ats/types/ScorecardsRetrieveRequest.java index b011805ce..9bd2c1fac 100644 --- a/src/main/java/com/merge/api/ats/types/ScorecardsRetrieveRequest.java +++ b/src/main/java/com/merge/api/ats/types/ScorecardsRetrieveRequest.java @@ -149,6 +149,9 @@ public Builder from(ScorecardsRetrieveRequest other) { return this; } + /** + *

        Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.

        + */ @JsonSetter(value = "expand", nulls = Nulls.SKIP) public Builder expand(Optional> expand) { this.expand = expand; @@ -165,6 +168,9 @@ public Builder expand(ScorecardsRetrieveRequestExpandItem expand) { return this; } + /** + *

        Whether to include the original data Merge fetched from the third-party to produce these models.

        + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -176,6 +182,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

        Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

        + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; @@ -187,6 +196,9 @@ public Builder includeShellData(Boolean includeShellData) { return this; } + /** + *

        Deprecated. Use show_enum_origins.

        + */ @JsonSetter(value = "remote_fields", nulls = Nulls.SKIP) public Builder remoteFields(Optional remoteFields) { this.remoteFields = remoteFields; @@ -198,6 +210,9 @@ public Builder remoteFields(String remoteFields) { return this; } + /** + *

        A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. Learn more

        + */ @JsonSetter(value = "show_enum_origins", nulls = Nulls.SKIP) public Builder showEnumOrigins(Optional showEnumOrigins) { this.showEnumOrigins = showEnumOrigins; diff --git a/src/main/java/com/merge/api/ats/types/ScreeningQuestion.java b/src/main/java/com/merge/api/ats/types/ScreeningQuestion.java index 1a16baf8f..873aba332 100644 --- a/src/main/java/com/merge/api/ats/types/ScreeningQuestion.java +++ b/src/main/java/com/merge/api/ats/types/ScreeningQuestion.java @@ -271,6 +271,9 @@ public Builder id(String id) { return this; } + /** + *

        The third-party API ID of the matching object.

        + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; @@ -282,6 +285,9 @@ public Builder remoteId(String remoteId) { return this; } + /** + *

        The datetime that this object was created by Merge.

        + */ @JsonSetter(value = "created_at", nulls = Nulls.SKIP) public Builder createdAt(Optional createdAt) { this.createdAt = createdAt; @@ -293,6 +299,9 @@ public Builder createdAt(OffsetDateTime createdAt) { return this; } + /** + *

        The datetime that this object was modified by Merge.

        + */ @JsonSetter(value = "modified_at", nulls = Nulls.SKIP) public Builder modifiedAt(Optional modifiedAt) { this.modifiedAt = modifiedAt; @@ -304,6 +313,9 @@ public Builder modifiedAt(OffsetDateTime modifiedAt) { return this; } + /** + *

        The job associated with the screening question.

        + */ @JsonSetter(value = "job", nulls = Nulls.SKIP) public Builder job(Optional job) { this.job = job; @@ -315,6 +327,9 @@ public Builder job(ScreeningQuestionJob job) { return this; } + /** + *

        The description of the screening question

        + */ @JsonSetter(value = "description", nulls = Nulls.SKIP) public Builder description(Optional description) { this.description = description; @@ -326,6 +341,9 @@ public Builder description(String description) { return this; } + /** + *

        The title of the screening question

        + */ @JsonSetter(value = "title", nulls = Nulls.SKIP) public Builder title(Optional title) { this.title = title; @@ -337,6 +355,19 @@ public Builder title(String title) { return this; } + /** + *

        The data type for the screening question.

        + *
          + *
        • DATE - DATE
        • + *
        • FILE - FILE
        • + *
        • SINGLE_SELECT - SINGLE_SELECT
        • + *
        • MULTI_SELECT - MULTI_SELECT
        • + *
        • SINGLE_LINE_TEXT - SINGLE_LINE_TEXT
        • + *
        • MULTI_LINE_TEXT - MULTI_LINE_TEXT
        • + *
        • NUMERIC - NUMERIC
        • + *
        • BOOLEAN - BOOLEAN
        • + *
        + */ @JsonSetter(value = "type", nulls = Nulls.SKIP) public Builder type(Optional type) { this.type = type; @@ -348,6 +379,9 @@ public Builder type(ScreeningQuestionTypeEnum type) { return this; } + /** + *

        Whether or not the screening question is required.

        + */ @JsonSetter(value = "required", nulls = Nulls.SKIP) public Builder required(Optional required) { this.required = required; @@ -370,6 +404,9 @@ public Builder options(List options) { return this; } + /** + *

        Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

        + */ @JsonSetter(value = "remote_was_deleted", nulls = Nulls.SKIP) public Builder remoteWasDeleted(Optional remoteWasDeleted) { this.remoteWasDeleted = remoteWasDeleted; diff --git a/src/main/java/com/merge/api/ats/types/ScreeningQuestionAnswer.java b/src/main/java/com/merge/api/ats/types/ScreeningQuestionAnswer.java index 570692942..084e4f839 100644 --- a/src/main/java/com/merge/api/ats/types/ScreeningQuestionAnswer.java +++ b/src/main/java/com/merge/api/ats/types/ScreeningQuestionAnswer.java @@ -194,6 +194,9 @@ public Builder id(String id) { return this; } + /** + *

        The third-party API ID of the matching object.

        + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; @@ -205,6 +208,9 @@ public Builder remoteId(String remoteId) { return this; } + /** + *

        The datetime that this object was created by Merge.

        + */ @JsonSetter(value = "created_at", nulls = Nulls.SKIP) public Builder createdAt(Optional createdAt) { this.createdAt = createdAt; @@ -216,6 +222,9 @@ public Builder createdAt(OffsetDateTime createdAt) { return this; } + /** + *

        The datetime that this object was modified by Merge.

        + */ @JsonSetter(value = "modified_at", nulls = Nulls.SKIP) public Builder modifiedAt(Optional modifiedAt) { this.modifiedAt = modifiedAt; @@ -227,6 +236,9 @@ public Builder modifiedAt(OffsetDateTime modifiedAt) { return this; } + /** + *

        The screening question associated with the candidate’s answer. To determine the data type of the answer, you can expand on the screening question by adding screening_question_answers.question to the expand query parameter.

        + */ @JsonSetter(value = "question", nulls = Nulls.SKIP) public Builder question(Optional question) { this.question = question; @@ -238,6 +250,9 @@ public Builder question(ScreeningQuestionAnswerQuestion question) { return this; } + /** + *

        The candidate’s response to the screening question.

        + */ @JsonSetter(value = "answer", nulls = Nulls.SKIP) public Builder answer(Optional answer) { this.answer = answer; @@ -249,6 +264,9 @@ public Builder answer(String answer) { return this; } + /** + *

        Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

        + */ @JsonSetter(value = "remote_was_deleted", nulls = Nulls.SKIP) public Builder remoteWasDeleted(Optional remoteWasDeleted) { this.remoteWasDeleted = remoteWasDeleted; diff --git a/src/main/java/com/merge/api/ats/types/ScreeningQuestionAnswerRequest.java b/src/main/java/com/merge/api/ats/types/ScreeningQuestionAnswerRequest.java index b5fb6d210..0cccf180d 100644 --- a/src/main/java/com/merge/api/ats/types/ScreeningQuestionAnswerRequest.java +++ b/src/main/java/com/merge/api/ats/types/ScreeningQuestionAnswerRequest.java @@ -142,6 +142,9 @@ public Builder from(ScreeningQuestionAnswerRequest other) { return this; } + /** + *

        The third-party API ID of the matching object.

        + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; @@ -153,6 +156,9 @@ public Builder remoteId(String remoteId) { return this; } + /** + *

        The screening question associated with the candidate’s answer. To determine the data type of the answer, you can expand on the screening question by adding screening_question_answers.question to the expand query parameter.

        + */ @JsonSetter(value = "question", nulls = Nulls.SKIP) public Builder question(Optional question) { this.question = question; @@ -164,6 +170,9 @@ public Builder question(ScreeningQuestionAnswerRequestQuestion question) { return this; } + /** + *

        The candidate’s response to the screening question.

        + */ @JsonSetter(value = "answer", nulls = Nulls.SKIP) public Builder answer(Optional answer) { this.answer = answer; diff --git a/src/main/java/com/merge/api/ats/types/ScreeningQuestionOption.java b/src/main/java/com/merge/api/ats/types/ScreeningQuestionOption.java index d6288f79c..bbea353ae 100644 --- a/src/main/java/com/merge/api/ats/types/ScreeningQuestionOption.java +++ b/src/main/java/com/merge/api/ats/types/ScreeningQuestionOption.java @@ -171,6 +171,9 @@ public Builder id(String id) { return this; } + /** + *

        The third-party API ID of the matching object.

        + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; @@ -182,6 +185,9 @@ public Builder remoteId(String remoteId) { return this; } + /** + *

        The datetime that this object was created by Merge.

        + */ @JsonSetter(value = "created_at", nulls = Nulls.SKIP) public Builder createdAt(Optional createdAt) { this.createdAt = createdAt; @@ -193,6 +199,9 @@ public Builder createdAt(OffsetDateTime createdAt) { return this; } + /** + *

        The datetime that this object was modified by Merge.

        + */ @JsonSetter(value = "modified_at", nulls = Nulls.SKIP) public Builder modifiedAt(Optional modifiedAt) { this.modifiedAt = modifiedAt; @@ -204,6 +213,9 @@ public Builder modifiedAt(OffsetDateTime modifiedAt) { return this; } + /** + *

        Available response options

        + */ @JsonSetter(value = "label", nulls = Nulls.SKIP) public Builder label(Optional label) { this.label = label; @@ -215,6 +227,9 @@ public Builder label(String label) { return this; } + /** + *

        Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

        + */ @JsonSetter(value = "remote_was_deleted", nulls = Nulls.SKIP) public Builder remoteWasDeleted(Optional remoteWasDeleted) { this.remoteWasDeleted = remoteWasDeleted; diff --git a/src/main/java/com/merge/api/ats/types/SyncStatusListRequest.java b/src/main/java/com/merge/api/ats/types/SyncStatusListRequest.java index ec23b632b..118fb03f0 100644 --- a/src/main/java/com/merge/api/ats/types/SyncStatusListRequest.java +++ b/src/main/java/com/merge/api/ats/types/SyncStatusListRequest.java @@ -95,6 +95,9 @@ public Builder from(SyncStatusListRequest other) { return this; } + /** + *

        The pagination cursor value.

        + */ @JsonSetter(value = "cursor", nulls = Nulls.SKIP) public Builder cursor(Optional cursor) { this.cursor = cursor; @@ -106,6 +109,9 @@ public Builder cursor(String cursor) { return this; } + /** + *

        Number of results to return per page.

        + */ @JsonSetter(value = "page_size", nulls = Nulls.SKIP) public Builder pageSize(Optional pageSize) { this.pageSize = pageSize; diff --git a/src/main/java/com/merge/api/ats/types/Tag.java b/src/main/java/com/merge/api/ats/types/Tag.java index 75a7bca5e..84ec83f79 100644 --- a/src/main/java/com/merge/api/ats/types/Tag.java +++ b/src/main/java/com/merge/api/ats/types/Tag.java @@ -182,6 +182,9 @@ public Builder from(Tag other) { return this; } + /** + *

        The third-party API ID of the matching object.

        + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; @@ -193,6 +196,9 @@ public Builder remoteId(String remoteId) { return this; } + /** + *

        The datetime that this object was created by Merge.

        + */ @JsonSetter(value = "created_at", nulls = Nulls.SKIP) public Builder createdAt(Optional createdAt) { this.createdAt = createdAt; @@ -204,6 +210,9 @@ public Builder createdAt(OffsetDateTime createdAt) { return this; } + /** + *

        The datetime that this object was modified by Merge.

        + */ @JsonSetter(value = "modified_at", nulls = Nulls.SKIP) public Builder modifiedAt(Optional modifiedAt) { this.modifiedAt = modifiedAt; @@ -215,6 +224,9 @@ public Builder modifiedAt(OffsetDateTime modifiedAt) { return this; } + /** + *

        The tag's name.

        + */ @JsonSetter(value = "name", nulls = Nulls.SKIP) public Builder name(Optional name) { this.name = name; @@ -226,6 +238,9 @@ public Builder name(String name) { return this; } + /** + *

        Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

        + */ @JsonSetter(value = "remote_was_deleted", nulls = Nulls.SKIP) public Builder remoteWasDeleted(Optional remoteWasDeleted) { this.remoteWasDeleted = remoteWasDeleted; diff --git a/src/main/java/com/merge/api/ats/types/TagsListRequest.java b/src/main/java/com/merge/api/ats/types/TagsListRequest.java index db5f04315..4c5e68590 100644 --- a/src/main/java/com/merge/api/ats/types/TagsListRequest.java +++ b/src/main/java/com/merge/api/ats/types/TagsListRequest.java @@ -237,6 +237,9 @@ public Builder from(TagsListRequest other) { return this; } + /** + *

        If provided, will only return objects created after this datetime.

        + */ @JsonSetter(value = "created_after", nulls = Nulls.SKIP) public Builder createdAfter(Optional createdAfter) { this.createdAfter = createdAfter; @@ -248,6 +251,9 @@ public Builder createdAfter(OffsetDateTime createdAfter) { return this; } + /** + *

        If provided, will only return objects created before this datetime.

        + */ @JsonSetter(value = "created_before", nulls = Nulls.SKIP) public Builder createdBefore(Optional createdBefore) { this.createdBefore = createdBefore; @@ -259,6 +265,9 @@ public Builder createdBefore(OffsetDateTime createdBefore) { return this; } + /** + *

        The pagination cursor value.

        + */ @JsonSetter(value = "cursor", nulls = Nulls.SKIP) public Builder cursor(Optional cursor) { this.cursor = cursor; @@ -270,6 +279,9 @@ public Builder cursor(String cursor) { return this; } + /** + *

        Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

        + */ @JsonSetter(value = "include_deleted_data", nulls = Nulls.SKIP) public Builder includeDeletedData(Optional includeDeletedData) { this.includeDeletedData = includeDeletedData; @@ -281,6 +293,9 @@ public Builder includeDeletedData(Boolean includeDeletedData) { return this; } + /** + *

        Whether to include the original data Merge fetched from the third-party to produce these models.

        + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -292,6 +307,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

        Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

        + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; @@ -303,6 +321,9 @@ public Builder includeShellData(Boolean includeShellData) { return this; } + /** + *

        If provided, only objects synced by Merge after this date time will be returned.

        + */ @JsonSetter(value = "modified_after", nulls = Nulls.SKIP) public Builder modifiedAfter(Optional modifiedAfter) { this.modifiedAfter = modifiedAfter; @@ -314,6 +335,9 @@ public Builder modifiedAfter(OffsetDateTime modifiedAfter) { return this; } + /** + *

        If provided, only objects synced by Merge before this date time will be returned.

        + */ @JsonSetter(value = "modified_before", nulls = Nulls.SKIP) public Builder modifiedBefore(Optional modifiedBefore) { this.modifiedBefore = modifiedBefore; @@ -325,6 +349,9 @@ public Builder modifiedBefore(OffsetDateTime modifiedBefore) { return this; } + /** + *

        Number of results to return per page.

        + */ @JsonSetter(value = "page_size", nulls = Nulls.SKIP) public Builder pageSize(Optional pageSize) { this.pageSize = pageSize; @@ -336,6 +363,9 @@ public Builder pageSize(Integer pageSize) { return this; } + /** + *

        The API provider's ID for the given object.

        + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; diff --git a/src/main/java/com/merge/api/ats/types/UpdateApplicationStageRequest.java b/src/main/java/com/merge/api/ats/types/UpdateApplicationStageRequest.java index 7430fc157..2a3a116ee 100644 --- a/src/main/java/com/merge/api/ats/types/UpdateApplicationStageRequest.java +++ b/src/main/java/com/merge/api/ats/types/UpdateApplicationStageRequest.java @@ -127,6 +127,9 @@ public Builder from(UpdateApplicationStageRequest other) { return this; } + /** + *

        Whether to include debug fields (such as log file links) in the response.

        + */ @JsonSetter(value = "is_debug_mode", nulls = Nulls.SKIP) public Builder isDebugMode(Optional isDebugMode) { this.isDebugMode = isDebugMode; @@ -138,6 +141,9 @@ public Builder isDebugMode(Boolean isDebugMode) { return this; } + /** + *

        Whether or not third-party updates should be run asynchronously.

        + */ @JsonSetter(value = "run_async", nulls = Nulls.SKIP) public Builder runAsync(Optional runAsync) { this.runAsync = runAsync; @@ -149,6 +155,9 @@ public Builder runAsync(Boolean runAsync) { return this; } + /** + *

        The interview stage to move the application to.

        + */ @JsonSetter(value = "job_interview_stage", nulls = Nulls.SKIP) public Builder jobInterviewStage(Optional jobInterviewStage) { this.jobInterviewStage = jobInterviewStage; diff --git a/src/main/java/com/merge/api/ats/types/Url.java b/src/main/java/com/merge/api/ats/types/Url.java index 90eac4536..c39b27167 100644 --- a/src/main/java/com/merge/api/ats/types/Url.java +++ b/src/main/java/com/merge/api/ats/types/Url.java @@ -156,6 +156,9 @@ public Builder from(Url other) { return this; } + /** + *

        The datetime that this object was created by Merge.

        + */ @JsonSetter(value = "created_at", nulls = Nulls.SKIP) public Builder createdAt(Optional createdAt) { this.createdAt = createdAt; @@ -167,6 +170,9 @@ public Builder createdAt(OffsetDateTime createdAt) { return this; } + /** + *

        The datetime that this object was modified by Merge.

        + */ @JsonSetter(value = "modified_at", nulls = Nulls.SKIP) public Builder modifiedAt(Optional modifiedAt) { this.modifiedAt = modifiedAt; @@ -178,6 +184,9 @@ public Builder modifiedAt(OffsetDateTime modifiedAt) { return this; } + /** + *

        The site's url.

        + */ @JsonSetter(value = "value", nulls = Nulls.SKIP) public Builder value(Optional value) { this.value = value; @@ -189,6 +198,18 @@ public Builder value(String value) { return this; } + /** + *

        The type of site.

        + *
          + *
        • PERSONAL - PERSONAL
        • + *
        • COMPANY - COMPANY
        • + *
        • PORTFOLIO - PORTFOLIO
        • + *
        • BLOG - BLOG
        • + *
        • SOCIAL_MEDIA - SOCIAL_MEDIA
        • + *
        • OTHER - OTHER
        • + *
        • JOB_POSTING - JOB_POSTING
        • + *
        + */ @JsonSetter(value = "url_type", nulls = Nulls.SKIP) public Builder urlType(Optional urlType) { this.urlType = urlType; @@ -200,6 +221,9 @@ public Builder urlType(UrlTypeEnum urlType) { return this; } + /** + *

        Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

        + */ @JsonSetter(value = "remote_was_deleted", nulls = Nulls.SKIP) public Builder remoteWasDeleted(Optional remoteWasDeleted) { this.remoteWasDeleted = remoteWasDeleted; diff --git a/src/main/java/com/merge/api/ats/types/UrlRequest.java b/src/main/java/com/merge/api/ats/types/UrlRequest.java index 443403e68..b85bcb325 100644 --- a/src/main/java/com/merge/api/ats/types/UrlRequest.java +++ b/src/main/java/com/merge/api/ats/types/UrlRequest.java @@ -134,6 +134,9 @@ public Builder from(UrlRequest other) { return this; } + /** + *

        The site's url.

        + */ @JsonSetter(value = "value", nulls = Nulls.SKIP) public Builder value(Optional value) { this.value = value; @@ -145,6 +148,18 @@ public Builder value(String value) { return this; } + /** + *

        The type of site.

        + *
          + *
        • PERSONAL - PERSONAL
        • + *
        • COMPANY - COMPANY
        • + *
        • PORTFOLIO - PORTFOLIO
        • + *
        • BLOG - BLOG
        • + *
        • SOCIAL_MEDIA - SOCIAL_MEDIA
        • + *
        • OTHER - OTHER
        • + *
        • JOB_POSTING - JOB_POSTING
        • + *
        + */ @JsonSetter(value = "url_type", nulls = Nulls.SKIP) public Builder urlType(Optional urlType) { this.urlType = urlType; diff --git a/src/main/java/com/merge/api/ats/types/UsersListRequest.java b/src/main/java/com/merge/api/ats/types/UsersListRequest.java index 1e3bf2a1c..e26e628e1 100644 --- a/src/main/java/com/merge/api/ats/types/UsersListRequest.java +++ b/src/main/java/com/merge/api/ats/types/UsersListRequest.java @@ -288,6 +288,9 @@ public Builder from(UsersListRequest other) { return this; } + /** + *

        If provided, will only return objects created after this datetime.

        + */ @JsonSetter(value = "created_after", nulls = Nulls.SKIP) public Builder createdAfter(Optional createdAfter) { this.createdAfter = createdAfter; @@ -299,6 +302,9 @@ public Builder createdAfter(OffsetDateTime createdAfter) { return this; } + /** + *

        If provided, will only return objects created before this datetime.

        + */ @JsonSetter(value = "created_before", nulls = Nulls.SKIP) public Builder createdBefore(Optional createdBefore) { this.createdBefore = createdBefore; @@ -310,6 +316,9 @@ public Builder createdBefore(OffsetDateTime createdBefore) { return this; } + /** + *

        The pagination cursor value.

        + */ @JsonSetter(value = "cursor", nulls = Nulls.SKIP) public Builder cursor(Optional cursor) { this.cursor = cursor; @@ -321,6 +330,9 @@ public Builder cursor(String cursor) { return this; } + /** + *

        If provided, will only return remote users with the given email address

        + */ @JsonSetter(value = "email", nulls = Nulls.SKIP) public Builder email(Optional email) { this.email = email; @@ -332,6 +344,9 @@ public Builder email(String email) { return this; } + /** + *

        Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

        + */ @JsonSetter(value = "include_deleted_data", nulls = Nulls.SKIP) public Builder includeDeletedData(Optional includeDeletedData) { this.includeDeletedData = includeDeletedData; @@ -343,6 +358,9 @@ public Builder includeDeletedData(Boolean includeDeletedData) { return this; } + /** + *

        Whether to include the original data Merge fetched from the third-party to produce these models.

        + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -354,6 +372,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

        Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

        + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; @@ -365,6 +386,9 @@ public Builder includeShellData(Boolean includeShellData) { return this; } + /** + *

        If provided, only objects synced by Merge after this date time will be returned.

        + */ @JsonSetter(value = "modified_after", nulls = Nulls.SKIP) public Builder modifiedAfter(Optional modifiedAfter) { this.modifiedAfter = modifiedAfter; @@ -376,6 +400,9 @@ public Builder modifiedAfter(OffsetDateTime modifiedAfter) { return this; } + /** + *

        If provided, only objects synced by Merge before this date time will be returned.

        + */ @JsonSetter(value = "modified_before", nulls = Nulls.SKIP) public Builder modifiedBefore(Optional modifiedBefore) { this.modifiedBefore = modifiedBefore; @@ -387,6 +414,9 @@ public Builder modifiedBefore(OffsetDateTime modifiedBefore) { return this; } + /** + *

        Number of results to return per page.

        + */ @JsonSetter(value = "page_size", nulls = Nulls.SKIP) public Builder pageSize(Optional pageSize) { this.pageSize = pageSize; @@ -398,6 +428,9 @@ public Builder pageSize(Integer pageSize) { return this; } + /** + *

        Deprecated. Use show_enum_origins.

        + */ @JsonSetter(value = "remote_fields", nulls = Nulls.SKIP) public Builder remoteFields(Optional remoteFields) { this.remoteFields = remoteFields; @@ -409,6 +442,9 @@ public Builder remoteFields(String remoteFields) { return this; } + /** + *

        The API provider's ID for the given object.

        + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; @@ -420,6 +456,9 @@ public Builder remoteId(String remoteId) { return this; } + /** + *

        A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. Learn more

        + */ @JsonSetter(value = "show_enum_origins", nulls = Nulls.SKIP) public Builder showEnumOrigins(Optional showEnumOrigins) { this.showEnumOrigins = showEnumOrigins; diff --git a/src/main/java/com/merge/api/ats/types/UsersRetrieveRequest.java b/src/main/java/com/merge/api/ats/types/UsersRetrieveRequest.java index 13f850c3c..e0d0d02e0 100644 --- a/src/main/java/com/merge/api/ats/types/UsersRetrieveRequest.java +++ b/src/main/java/com/merge/api/ats/types/UsersRetrieveRequest.java @@ -130,6 +130,9 @@ public Builder from(UsersRetrieveRequest other) { return this; } + /** + *

        Whether to include the original data Merge fetched from the third-party to produce these models.

        + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -141,6 +144,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

        Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

        + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; @@ -152,6 +158,9 @@ public Builder includeShellData(Boolean includeShellData) { return this; } + /** + *

        Deprecated. Use show_enum_origins.

        + */ @JsonSetter(value = "remote_fields", nulls = Nulls.SKIP) public Builder remoteFields(Optional remoteFields) { this.remoteFields = remoteFields; @@ -163,6 +172,9 @@ public Builder remoteFields(String remoteFields) { return this; } + /** + *

        A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. Learn more

        + */ @JsonSetter(value = "show_enum_origins", nulls = Nulls.SKIP) public Builder showEnumOrigins(Optional showEnumOrigins) { this.showEnumOrigins = showEnumOrigins; diff --git a/src/main/java/com/merge/api/core/ClientOptions.java b/src/main/java/com/merge/api/core/ClientOptions.java index 448cbf418..578478eca 100644 --- a/src/main/java/com/merge/api/core/ClientOptions.java +++ b/src/main/java/com/merge/api/core/ClientOptions.java @@ -32,10 +32,10 @@ private ClientOptions( this.headers.putAll(headers); this.headers.putAll(new HashMap() { { - put("User-Agent", "dev.merge:merge-java-client/2.0.0"); + put("User-Agent", "dev.merge:merge-java-client/2.0.1"); put("X-Fern-Language", "JAVA"); put("X-Fern-SDK-Name", "com.merge.fern:api-sdk"); - put("X-Fern-SDK-Version", "2.0.0"); + put("X-Fern-SDK-Version", "2.0.1"); } }); this.headerSuppliers = headerSuppliers; diff --git a/src/main/java/com/merge/api/crm/types/Account.java b/src/main/java/com/merge/api/crm/types/Account.java index 0ddb03849..4e9c6f97d 100644 --- a/src/main/java/com/merge/api/crm/types/Account.java +++ b/src/main/java/com/merge/api/crm/types/Account.java @@ -385,6 +385,9 @@ public Builder id(String id) { return this; } + /** + *

        The third-party API ID of the matching object.

        + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; @@ -396,6 +399,9 @@ public Builder remoteId(String remoteId) { return this; } + /** + *

        The datetime that this object was created by Merge.

        + */ @JsonSetter(value = "created_at", nulls = Nulls.SKIP) public Builder createdAt(Optional createdAt) { this.createdAt = createdAt; @@ -407,6 +413,9 @@ public Builder createdAt(OffsetDateTime createdAt) { return this; } + /** + *

        The datetime that this object was modified by Merge.

        + */ @JsonSetter(value = "modified_at", nulls = Nulls.SKIP) public Builder modifiedAt(Optional modifiedAt) { this.modifiedAt = modifiedAt; @@ -418,6 +427,9 @@ public Builder modifiedAt(OffsetDateTime modifiedAt) { return this; } + /** + *

        The account's owner.

        + */ @JsonSetter(value = "owner", nulls = Nulls.SKIP) public Builder owner(Optional owner) { this.owner = owner; @@ -429,6 +441,9 @@ public Builder owner(AccountOwner owner) { return this; } + /** + *

        The account's name.

        + */ @JsonSetter(value = "name", nulls = Nulls.SKIP) public Builder name(Optional name) { this.name = name; @@ -440,6 +455,9 @@ public Builder name(String name) { return this; } + /** + *

        The account's description.

        + */ @JsonSetter(value = "description", nulls = Nulls.SKIP) public Builder description(Optional description) { this.description = description; @@ -451,6 +469,9 @@ public Builder description(String description) { return this; } + /** + *

        The account's industry.

        + */ @JsonSetter(value = "industry", nulls = Nulls.SKIP) public Builder industry(Optional industry) { this.industry = industry; @@ -462,6 +483,9 @@ public Builder industry(String industry) { return this; } + /** + *

        The account's website.

        + */ @JsonSetter(value = "website", nulls = Nulls.SKIP) public Builder website(Optional website) { this.website = website; @@ -473,6 +497,9 @@ public Builder website(String website) { return this; } + /** + *

        The account's number of employees.

        + */ @JsonSetter(value = "number_of_employees", nulls = Nulls.SKIP) public Builder numberOfEmployees(Optional numberOfEmployees) { this.numberOfEmployees = numberOfEmployees; @@ -506,6 +533,9 @@ public Builder phoneNumbers(List phoneNumbers) { return this; } + /** + *

        The last date (either most recent or furthest in the future) of when an activity occurs in an account.

        + */ @JsonSetter(value = "last_activity_at", nulls = Nulls.SKIP) public Builder lastActivityAt(Optional lastActivityAt) { this.lastActivityAt = lastActivityAt; @@ -517,6 +547,9 @@ public Builder lastActivityAt(OffsetDateTime lastActivityAt) { return this; } + /** + *

        When the CRM system account data was last modified by a user with a login.

        + */ @JsonSetter(value = "remote_updated_at", nulls = Nulls.SKIP) public Builder remoteUpdatedAt(Optional remoteUpdatedAt) { this.remoteUpdatedAt = remoteUpdatedAt; @@ -528,6 +561,9 @@ public Builder remoteUpdatedAt(OffsetDateTime remoteUpdatedAt) { return this; } + /** + *

        When the third party's account was created.

        + */ @JsonSetter(value = "remote_created_at", nulls = Nulls.SKIP) public Builder remoteCreatedAt(Optional remoteCreatedAt) { this.remoteCreatedAt = remoteCreatedAt; @@ -539,6 +575,9 @@ public Builder remoteCreatedAt(OffsetDateTime remoteCreatedAt) { return this; } + /** + *

        Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

        + */ @JsonSetter(value = "remote_was_deleted", nulls = Nulls.SKIP) public Builder remoteWasDeleted(Optional remoteWasDeleted) { this.remoteWasDeleted = remoteWasDeleted; diff --git a/src/main/java/com/merge/api/crm/types/AccountDetails.java b/src/main/java/com/merge/api/crm/types/AccountDetails.java index 56ce0b8a9..cde4cdfe1 100644 --- a/src/main/java/com/merge/api/crm/types/AccountDetails.java +++ b/src/main/java/com/merge/api/crm/types/AccountDetails.java @@ -340,6 +340,9 @@ public Builder webhookListenerUrl(String webhookListenerUrl) { return this; } + /** + *

        Whether a Production Linked Account's credentials match another existing Production Linked Account. This field is null for Test Linked Accounts, incomplete Production Linked Accounts, and ignored duplicate Production Linked Account sets.

        + */ @JsonSetter(value = "is_duplicate", nulls = Nulls.SKIP) public Builder isDuplicate(Optional isDuplicate) { this.isDuplicate = isDuplicate; @@ -362,6 +365,9 @@ public Builder accountType(String accountType) { return this; } + /** + *

        The time at which account completes the linking flow.

        + */ @JsonSetter(value = "completed_at", nulls = Nulls.SKIP) public Builder completedAt(Optional completedAt) { this.completedAt = completedAt; diff --git a/src/main/java/com/merge/api/crm/types/AccountDetailsAndActions.java b/src/main/java/com/merge/api/crm/types/AccountDetailsAndActions.java index cb797e4a6..7e468224a 100644 --- a/src/main/java/com/merge/api/crm/types/AccountDetailsAndActions.java +++ b/src/main/java/com/merge/api/crm/types/AccountDetailsAndActions.java @@ -251,10 +251,16 @@ public interface _FinalStage { _FinalStage endUserOriginId(String endUserOriginId); + /** + *

        The tenant or domain the customer has provided access to.

        + */ _FinalStage subdomain(Optional subdomain); _FinalStage subdomain(String subdomain); + /** + *

        Whether a Production Linked Account's credentials match another existing Production Linked Account. This field is null for Test Linked Accounts, incomplete Production Linked Accounts, and ignored duplicate Production Linked Account sets.

        + */ _FinalStage isDuplicate(Optional isDuplicate); _FinalStage isDuplicate(Boolean isDuplicate); @@ -395,6 +401,9 @@ public _FinalStage isDuplicate(Boolean isDuplicate) { return this; } + /** + *

        Whether a Production Linked Account's credentials match another existing Production Linked Account. This field is null for Test Linked Accounts, incomplete Production Linked Accounts, and ignored duplicate Production Linked Account sets.

        + */ @java.lang.Override @JsonSetter(value = "is_duplicate", nulls = Nulls.SKIP) public _FinalStage isDuplicate(Optional isDuplicate) { @@ -412,6 +421,9 @@ public _FinalStage subdomain(String subdomain) { return this; } + /** + *

        The tenant or domain the customer has provided access to.

        + */ @java.lang.Override @JsonSetter(value = "subdomain", nulls = Nulls.SKIP) public _FinalStage subdomain(Optional subdomain) { diff --git a/src/main/java/com/merge/api/crm/types/AccountIntegration.java b/src/main/java/com/merge/api/crm/types/AccountIntegration.java index 18dbeaac2..a12c9158c 100644 --- a/src/main/java/com/merge/api/crm/types/AccountIntegration.java +++ b/src/main/java/com/merge/api/crm/types/AccountIntegration.java @@ -196,6 +196,9 @@ public static NameStage builder() { } public interface NameStage { + /** + * Company name. + */ _FinalStage name(@NotNull String name); Builder from(AccountIntegration other); @@ -204,22 +207,37 @@ public interface NameStage { public interface _FinalStage { AccountIntegration build(); + /** + *

        Optional. This shortened name appears in places with limited space, usually in conjunction with the platform's logo (e.g., Merge Link menu).<br><br>Example: <i>Workforce Now (in lieu of ADP Workforce Now), SuccessFactors (in lieu of SAP SuccessFactors)</i>

        + */ _FinalStage abbreviatedName(Optional abbreviatedName); _FinalStage abbreviatedName(String abbreviatedName); + /** + *

        Category or categories this integration belongs to. Multiple categories should be comma separated, i.e. [ats, hris].

        + */ _FinalStage categories(Optional> categories); _FinalStage categories(List categories); + /** + *

        Company logo in rectangular shape.

        + */ _FinalStage image(Optional image); _FinalStage image(String image); + /** + *

        Company logo in square shape.

        + */ _FinalStage squareImage(Optional squareImage); _FinalStage squareImage(String squareImage); + /** + *

        The color of this integration used for buttons and text throughout the app and landing pages. <b>Choose a darker, saturated color.</b>

        + */ _FinalStage color(Optional color); _FinalStage color(String color); @@ -228,14 +246,23 @@ public interface _FinalStage { _FinalStage slug(String slug); + /** + *

        Mapping of API endpoints to documentation urls for support. Example: {'GET': [['/common-model-scopes', 'https://docs.merge.dev/accounting/common-model-scopes/#common_model_scopes_retrieve'],['/common-model-actions', 'https://docs.merge.dev/accounting/common-model-actions/#common_model_actions_retrieve']], 'POST': []}

        + */ _FinalStage apiEndpointsToDocumentationUrls(Optional> apiEndpointsToDocumentationUrls); _FinalStage apiEndpointsToDocumentationUrls(Map apiEndpointsToDocumentationUrls); + /** + *

        Setup guide URL for third party webhook creation. Exposed in Merge Docs.

        + */ _FinalStage webhookSetupGuideUrl(Optional webhookSetupGuideUrl); _FinalStage webhookSetupGuideUrl(String webhookSetupGuideUrl); + /** + *

        Category or categories this integration is in beta status for.

        + */ _FinalStage categoryBetaStatus(Optional> categoryBetaStatus); _FinalStage categoryBetaStatus(Map categoryBetaStatus); @@ -284,7 +311,7 @@ public Builder from(AccountIntegration other) { } /** - *

        Company name.

        + * Company name.

        Company name.

        * @return Reference to {@code this} so that method calls can be chained together. */ @java.lang.Override @@ -304,6 +331,9 @@ public _FinalStage categoryBetaStatus(Map categoryBetaStatus) return this; } + /** + *

        Category or categories this integration is in beta status for.

        + */ @java.lang.Override @JsonSetter(value = "category_beta_status", nulls = Nulls.SKIP) public _FinalStage categoryBetaStatus(Optional> categoryBetaStatus) { @@ -321,6 +351,9 @@ public _FinalStage webhookSetupGuideUrl(String webhookSetupGuideUrl) { return this; } + /** + *

        Setup guide URL for third party webhook creation. Exposed in Merge Docs.

        + */ @java.lang.Override @JsonSetter(value = "webhook_setup_guide_url", nulls = Nulls.SKIP) public _FinalStage webhookSetupGuideUrl(Optional webhookSetupGuideUrl) { @@ -338,6 +371,9 @@ public _FinalStage apiEndpointsToDocumentationUrls(Map apiEndp return this; } + /** + *

        Mapping of API endpoints to documentation urls for support. Example: {'GET': [['/common-model-scopes', 'https://docs.merge.dev/accounting/common-model-scopes/#common_model_scopes_retrieve'],['/common-model-actions', 'https://docs.merge.dev/accounting/common-model-actions/#common_model_actions_retrieve']], 'POST': []}

        + */ @java.lang.Override @JsonSetter(value = "api_endpoints_to_documentation_urls", nulls = Nulls.SKIP) public _FinalStage apiEndpointsToDocumentationUrls( @@ -369,6 +405,9 @@ public _FinalStage color(String color) { return this; } + /** + *

        The color of this integration used for buttons and text throughout the app and landing pages. <b>Choose a darker, saturated color.</b>

        + */ @java.lang.Override @JsonSetter(value = "color", nulls = Nulls.SKIP) public _FinalStage color(Optional color) { @@ -386,6 +425,9 @@ public _FinalStage squareImage(String squareImage) { return this; } + /** + *

        Company logo in square shape.

        + */ @java.lang.Override @JsonSetter(value = "square_image", nulls = Nulls.SKIP) public _FinalStage squareImage(Optional squareImage) { @@ -403,6 +445,9 @@ public _FinalStage image(String image) { return this; } + /** + *

        Company logo in rectangular shape.

        + */ @java.lang.Override @JsonSetter(value = "image", nulls = Nulls.SKIP) public _FinalStage image(Optional image) { @@ -420,6 +465,9 @@ public _FinalStage categories(List categories) { return this; } + /** + *

        Category or categories this integration belongs to. Multiple categories should be comma separated, i.e. [ats, hris].

        + */ @java.lang.Override @JsonSetter(value = "categories", nulls = Nulls.SKIP) public _FinalStage categories(Optional> categories) { @@ -437,6 +485,9 @@ public _FinalStage abbreviatedName(String abbreviatedName) { return this; } + /** + *

        Optional. This shortened name appears in places with limited space, usually in conjunction with the platform's logo (e.g., Merge Link menu).<br><br>Example: <i>Workforce Now (in lieu of ADP Workforce Now), SuccessFactors (in lieu of SAP SuccessFactors)</i>

        + */ @java.lang.Override @JsonSetter(value = "abbreviated_name", nulls = Nulls.SKIP) public _FinalStage abbreviatedName(Optional abbreviatedName) { diff --git a/src/main/java/com/merge/api/crm/types/AccountRequest.java b/src/main/java/com/merge/api/crm/types/AccountRequest.java index a9b2293b5..4779d0e87 100644 --- a/src/main/java/com/merge/api/crm/types/AccountRequest.java +++ b/src/main/java/com/merge/api/crm/types/AccountRequest.java @@ -244,6 +244,9 @@ public Builder from(AccountRequest other) { return this; } + /** + *

        The account's owner.

        + */ @JsonSetter(value = "owner", nulls = Nulls.SKIP) public Builder owner(Optional owner) { this.owner = owner; @@ -255,6 +258,9 @@ public Builder owner(AccountRequestOwner owner) { return this; } + /** + *

        The account's name.

        + */ @JsonSetter(value = "name", nulls = Nulls.SKIP) public Builder name(Optional name) { this.name = name; @@ -266,6 +272,9 @@ public Builder name(String name) { return this; } + /** + *

        The account's description.

        + */ @JsonSetter(value = "description", nulls = Nulls.SKIP) public Builder description(Optional description) { this.description = description; @@ -277,6 +286,9 @@ public Builder description(String description) { return this; } + /** + *

        The account's industry.

        + */ @JsonSetter(value = "industry", nulls = Nulls.SKIP) public Builder industry(Optional industry) { this.industry = industry; @@ -288,6 +300,9 @@ public Builder industry(String industry) { return this; } + /** + *

        The account's website.

        + */ @JsonSetter(value = "website", nulls = Nulls.SKIP) public Builder website(Optional website) { this.website = website; @@ -299,6 +314,9 @@ public Builder website(String website) { return this; } + /** + *

        The account's number of employees.

        + */ @JsonSetter(value = "number_of_employees", nulls = Nulls.SKIP) public Builder numberOfEmployees(Optional numberOfEmployees) { this.numberOfEmployees = numberOfEmployees; @@ -321,6 +339,9 @@ public Builder addresses(List addresses) { return this; } + /** + *

        The last date (either most recent or furthest in the future) of when an activity occurs in an account.

        + */ @JsonSetter(value = "last_activity_at", nulls = Nulls.SKIP) public Builder lastActivityAt(Optional lastActivityAt) { this.lastActivityAt = lastActivityAt; diff --git a/src/main/java/com/merge/api/crm/types/AccountsListRequest.java b/src/main/java/com/merge/api/crm/types/AccountsListRequest.java index 25aeeaf71..b302164a4 100644 --- a/src/main/java/com/merge/api/crm/types/AccountsListRequest.java +++ b/src/main/java/com/merge/api/crm/types/AccountsListRequest.java @@ -307,6 +307,9 @@ public Builder from(AccountsListRequest other) { return this; } + /** + *

        Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.

        + */ @JsonSetter(value = "expand", nulls = Nulls.SKIP) public Builder expand(Optional> expand) { this.expand = expand; @@ -323,6 +326,9 @@ public Builder expand(String expand) { return this; } + /** + *

        If provided, will only return objects created after this datetime.

        + */ @JsonSetter(value = "created_after", nulls = Nulls.SKIP) public Builder createdAfter(Optional createdAfter) { this.createdAfter = createdAfter; @@ -334,6 +340,9 @@ public Builder createdAfter(OffsetDateTime createdAfter) { return this; } + /** + *

        If provided, will only return objects created before this datetime.

        + */ @JsonSetter(value = "created_before", nulls = Nulls.SKIP) public Builder createdBefore(Optional createdBefore) { this.createdBefore = createdBefore; @@ -345,6 +354,9 @@ public Builder createdBefore(OffsetDateTime createdBefore) { return this; } + /** + *

        The pagination cursor value.

        + */ @JsonSetter(value = "cursor", nulls = Nulls.SKIP) public Builder cursor(Optional cursor) { this.cursor = cursor; @@ -356,6 +368,9 @@ public Builder cursor(String cursor) { return this; } + /** + *

        Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

        + */ @JsonSetter(value = "include_deleted_data", nulls = Nulls.SKIP) public Builder includeDeletedData(Optional includeDeletedData) { this.includeDeletedData = includeDeletedData; @@ -367,6 +382,9 @@ public Builder includeDeletedData(Boolean includeDeletedData) { return this; } + /** + *

        Whether to include the original data Merge fetched from the third-party to produce these models.

        + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -378,6 +396,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

        Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format.

        + */ @JsonSetter(value = "include_remote_fields", nulls = Nulls.SKIP) public Builder includeRemoteFields(Optional includeRemoteFields) { this.includeRemoteFields = includeRemoteFields; @@ -389,6 +410,9 @@ public Builder includeRemoteFields(Boolean includeRemoteFields) { return this; } + /** + *

        Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

        + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; @@ -400,6 +424,9 @@ public Builder includeShellData(Boolean includeShellData) { return this; } + /** + *

        If provided, only objects synced by Merge after this date time will be returned.

        + */ @JsonSetter(value = "modified_after", nulls = Nulls.SKIP) public Builder modifiedAfter(Optional modifiedAfter) { this.modifiedAfter = modifiedAfter; @@ -411,6 +438,9 @@ public Builder modifiedAfter(OffsetDateTime modifiedAfter) { return this; } + /** + *

        If provided, only objects synced by Merge before this date time will be returned.

        + */ @JsonSetter(value = "modified_before", nulls = Nulls.SKIP) public Builder modifiedBefore(Optional modifiedBefore) { this.modifiedBefore = modifiedBefore; @@ -422,6 +452,9 @@ public Builder modifiedBefore(OffsetDateTime modifiedBefore) { return this; } + /** + *

        If provided, will only return accounts with this name.

        + */ @JsonSetter(value = "name", nulls = Nulls.SKIP) public Builder name(Optional name) { this.name = name; @@ -433,6 +466,9 @@ public Builder name(String name) { return this; } + /** + *

        If provided, will only return accounts with this owner.

        + */ @JsonSetter(value = "owner_id", nulls = Nulls.SKIP) public Builder ownerId(Optional ownerId) { this.ownerId = ownerId; @@ -444,6 +480,9 @@ public Builder ownerId(String ownerId) { return this; } + /** + *

        Number of results to return per page.

        + */ @JsonSetter(value = "page_size", nulls = Nulls.SKIP) public Builder pageSize(Optional pageSize) { this.pageSize = pageSize; @@ -455,6 +494,9 @@ public Builder pageSize(Integer pageSize) { return this; } + /** + *

        The API provider's ID for the given object.

        + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; diff --git a/src/main/java/com/merge/api/crm/types/AccountsRemoteFieldClassesListRequest.java b/src/main/java/com/merge/api/crm/types/AccountsRemoteFieldClassesListRequest.java index f6c88086b..1fe02ec70 100644 --- a/src/main/java/com/merge/api/crm/types/AccountsRemoteFieldClassesListRequest.java +++ b/src/main/java/com/merge/api/crm/types/AccountsRemoteFieldClassesListRequest.java @@ -186,6 +186,9 @@ public Builder from(AccountsRemoteFieldClassesListRequest other) { return this; } + /** + *

        The pagination cursor value.

        + */ @JsonSetter(value = "cursor", nulls = Nulls.SKIP) public Builder cursor(Optional cursor) { this.cursor = cursor; @@ -197,6 +200,9 @@ public Builder cursor(String cursor) { return this; } + /** + *

        Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

        + */ @JsonSetter(value = "include_deleted_data", nulls = Nulls.SKIP) public Builder includeDeletedData(Optional includeDeletedData) { this.includeDeletedData = includeDeletedData; @@ -208,6 +214,9 @@ public Builder includeDeletedData(Boolean includeDeletedData) { return this; } + /** + *

        Whether to include the original data Merge fetched from the third-party to produce these models.

        + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -219,6 +228,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

        Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format.

        + */ @JsonSetter(value = "include_remote_fields", nulls = Nulls.SKIP) public Builder includeRemoteFields(Optional includeRemoteFields) { this.includeRemoteFields = includeRemoteFields; @@ -230,6 +242,9 @@ public Builder includeRemoteFields(Boolean includeRemoteFields) { return this; } + /** + *

        Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

        + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; @@ -241,6 +256,9 @@ public Builder includeShellData(Boolean includeShellData) { return this; } + /** + *

        If provided, will only return remote field classes with this is_common_model_field value

        + */ @JsonSetter(value = "is_common_model_field", nulls = Nulls.SKIP) public Builder isCommonModelField(Optional isCommonModelField) { this.isCommonModelField = isCommonModelField; @@ -252,6 +270,9 @@ public Builder isCommonModelField(Boolean isCommonModelField) { return this; } + /** + *

        Number of results to return per page.

        + */ @JsonSetter(value = "page_size", nulls = Nulls.SKIP) public Builder pageSize(Optional pageSize) { this.pageSize = pageSize; diff --git a/src/main/java/com/merge/api/crm/types/AccountsRetrieveRequest.java b/src/main/java/com/merge/api/crm/types/AccountsRetrieveRequest.java index 44011cda2..34492d31b 100644 --- a/src/main/java/com/merge/api/crm/types/AccountsRetrieveRequest.java +++ b/src/main/java/com/merge/api/crm/types/AccountsRetrieveRequest.java @@ -132,6 +132,9 @@ public Builder from(AccountsRetrieveRequest other) { return this; } + /** + *

        Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.

        + */ @JsonSetter(value = "expand", nulls = Nulls.SKIP) public Builder expand(Optional> expand) { this.expand = expand; @@ -148,6 +151,9 @@ public Builder expand(String expand) { return this; } + /** + *

        Whether to include the original data Merge fetched from the third-party to produce these models.

        + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -159,6 +165,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

        Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format.

        + */ @JsonSetter(value = "include_remote_fields", nulls = Nulls.SKIP) public Builder includeRemoteFields(Optional includeRemoteFields) { this.includeRemoteFields = includeRemoteFields; @@ -170,6 +179,9 @@ public Builder includeRemoteFields(Boolean includeRemoteFields) { return this; } + /** + *

        Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

        + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; diff --git a/src/main/java/com/merge/api/crm/types/Address.java b/src/main/java/com/merge/api/crm/types/Address.java index 28a5c73b1..2b7cf16fa 100644 --- a/src/main/java/com/merge/api/crm/types/Address.java +++ b/src/main/java/com/merge/api/crm/types/Address.java @@ -475,6 +475,9 @@ public Builder from(Address other) { return this; } + /** + *

        The datetime that this object was created by Merge.

        + */ @JsonSetter(value = "created_at", nulls = Nulls.SKIP) public Builder createdAt(Optional createdAt) { this.createdAt = createdAt; @@ -486,6 +489,9 @@ public Builder createdAt(OffsetDateTime createdAt) { return this; } + /** + *

        The datetime that this object was modified by Merge.

        + */ @JsonSetter(value = "modified_at", nulls = Nulls.SKIP) public Builder modifiedAt(Optional modifiedAt) { this.modifiedAt = modifiedAt; @@ -497,6 +503,9 @@ public Builder modifiedAt(OffsetDateTime modifiedAt) { return this; } + /** + *

        Line 1 of the address's street.

        + */ @JsonSetter(value = "street_1", nulls = Nulls.SKIP) public Builder street1(Optional street1) { this.street1 = street1; @@ -508,6 +517,9 @@ public Builder street1(String street1) { return this; } + /** + *

        Line 2 of the address's street.

        + */ @JsonSetter(value = "street_2", nulls = Nulls.SKIP) public Builder street2(Optional street2) { this.street2 = street2; @@ -519,6 +531,9 @@ public Builder street2(String street2) { return this; } + /** + *

        The address's city.

        + */ @JsonSetter(value = "city", nulls = Nulls.SKIP) public Builder city(Optional city) { this.city = city; @@ -530,6 +545,9 @@ public Builder city(String city) { return this; } + /** + *

        The address's state.

        + */ @JsonSetter(value = "state", nulls = Nulls.SKIP) public Builder state(Optional state) { this.state = state; @@ -541,6 +559,9 @@ public Builder state(String state) { return this; } + /** + *

        The address's postal code.

        + */ @JsonSetter(value = "postal_code", nulls = Nulls.SKIP) public Builder postalCode(Optional postalCode) { this.postalCode = postalCode; @@ -552,6 +573,260 @@ public Builder postalCode(String postalCode) { return this; } + /** + *

        The address's country.

        + *
          + *
        • AF - Afghanistan
        • + *
        • AX - Åland Islands
        • + *
        • AL - Albania
        • + *
        • DZ - Algeria
        • + *
        • AS - American Samoa
        • + *
        • AD - Andorra
        • + *
        • AO - Angola
        • + *
        • AI - Anguilla
        • + *
        • AQ - Antarctica
        • + *
        • AG - Antigua and Barbuda
        • + *
        • AR - Argentina
        • + *
        • AM - Armenia
        • + *
        • AW - Aruba
        • + *
        • AU - Australia
        • + *
        • AT - Austria
        • + *
        • AZ - Azerbaijan
        • + *
        • BS - Bahamas
        • + *
        • BH - Bahrain
        • + *
        • BD - Bangladesh
        • + *
        • BB - Barbados
        • + *
        • BY - Belarus
        • + *
        • BE - Belgium
        • + *
        • BZ - Belize
        • + *
        • BJ - Benin
        • + *
        • BM - Bermuda
        • + *
        • BT - Bhutan
        • + *
        • BO - Bolivia
        • + *
        • BQ - Bonaire, Sint Eustatius and Saba
        • + *
        • BA - Bosnia and Herzegovina
        • + *
        • BW - Botswana
        • + *
        • BV - Bouvet Island
        • + *
        • BR - Brazil
        • + *
        • IO - British Indian Ocean Territory
        • + *
        • BN - Brunei
        • + *
        • BG - Bulgaria
        • + *
        • BF - Burkina Faso
        • + *
        • BI - Burundi
        • + *
        • CV - Cabo Verde
        • + *
        • KH - Cambodia
        • + *
        • CM - Cameroon
        • + *
        • CA - Canada
        • + *
        • KY - Cayman Islands
        • + *
        • CF - Central African Republic
        • + *
        • TD - Chad
        • + *
        • CL - Chile
        • + *
        • CN - China
        • + *
        • CX - Christmas Island
        • + *
        • CC - Cocos (Keeling) Islands
        • + *
        • CO - Colombia
        • + *
        • KM - Comoros
        • + *
        • CG - Congo
        • + *
        • CD - Congo (the Democratic Republic of the)
        • + *
        • CK - Cook Islands
        • + *
        • CR - Costa Rica
        • + *
        • CI - Côte d'Ivoire
        • + *
        • HR - Croatia
        • + *
        • CU - Cuba
        • + *
        • CW - Curaçao
        • + *
        • CY - Cyprus
        • + *
        • CZ - Czechia
        • + *
        • DK - Denmark
        • + *
        • DJ - Djibouti
        • + *
        • DM - Dominica
        • + *
        • DO - Dominican Republic
        • + *
        • EC - Ecuador
        • + *
        • EG - Egypt
        • + *
        • SV - El Salvador
        • + *
        • GQ - Equatorial Guinea
        • + *
        • ER - Eritrea
        • + *
        • EE - Estonia
        • + *
        • SZ - Eswatini
        • + *
        • ET - Ethiopia
        • + *
        • FK - Falkland Islands (Malvinas)
        • + *
        • FO - Faroe Islands
        • + *
        • FJ - Fiji
        • + *
        • FI - Finland
        • + *
        • FR - France
        • + *
        • GF - French Guiana
        • + *
        • PF - French Polynesia
        • + *
        • TF - French Southern Territories
        • + *
        • GA - Gabon
        • + *
        • GM - Gambia
        • + *
        • GE - Georgia
        • + *
        • DE - Germany
        • + *
        • GH - Ghana
        • + *
        • GI - Gibraltar
        • + *
        • GR - Greece
        • + *
        • GL - Greenland
        • + *
        • GD - Grenada
        • + *
        • GP - Guadeloupe
        • + *
        • GU - Guam
        • + *
        • GT - Guatemala
        • + *
        • GG - Guernsey
        • + *
        • GN - Guinea
        • + *
        • GW - Guinea-Bissau
        • + *
        • GY - Guyana
        • + *
        • HT - Haiti
        • + *
        • HM - Heard Island and McDonald Islands
        • + *
        • VA - Holy See
        • + *
        • HN - Honduras
        • + *
        • HK - Hong Kong
        • + *
        • HU - Hungary
        • + *
        • IS - Iceland
        • + *
        • IN - India
        • + *
        • ID - Indonesia
        • + *
        • IR - Iran
        • + *
        • IQ - Iraq
        • + *
        • IE - Ireland
        • + *
        • IM - Isle of Man
        • + *
        • IL - Israel
        • + *
        • IT - Italy
        • + *
        • JM - Jamaica
        • + *
        • JP - Japan
        • + *
        • JE - Jersey
        • + *
        • JO - Jordan
        • + *
        • KZ - Kazakhstan
        • + *
        • KE - Kenya
        • + *
        • KI - Kiribati
        • + *
        • KW - Kuwait
        • + *
        • KG - Kyrgyzstan
        • + *
        • LA - Laos
        • + *
        • LV - Latvia
        • + *
        • LB - Lebanon
        • + *
        • LS - Lesotho
        • + *
        • LR - Liberia
        • + *
        • LY - Libya
        • + *
        • LI - Liechtenstein
        • + *
        • LT - Lithuania
        • + *
        • LU - Luxembourg
        • + *
        • MO - Macao
        • + *
        • MG - Madagascar
        • + *
        • MW - Malawi
        • + *
        • MY - Malaysia
        • + *
        • MV - Maldives
        • + *
        • ML - Mali
        • + *
        • MT - Malta
        • + *
        • MH - Marshall Islands
        • + *
        • MQ - Martinique
        • + *
        • MR - Mauritania
        • + *
        • MU - Mauritius
        • + *
        • YT - Mayotte
        • + *
        • MX - Mexico
        • + *
        • FM - Micronesia (Federated States of)
        • + *
        • MD - Moldova
        • + *
        • MC - Monaco
        • + *
        • MN - Mongolia
        • + *
        • ME - Montenegro
        • + *
        • MS - Montserrat
        • + *
        • MA - Morocco
        • + *
        • MZ - Mozambique
        • + *
        • MM - Myanmar
        • + *
        • NA - Namibia
        • + *
        • NR - Nauru
        • + *
        • NP - Nepal
        • + *
        • NL - Netherlands
        • + *
        • NC - New Caledonia
        • + *
        • NZ - New Zealand
        • + *
        • NI - Nicaragua
        • + *
        • NE - Niger
        • + *
        • NG - Nigeria
        • + *
        • NU - Niue
        • + *
        • NF - Norfolk Island
        • + *
        • KP - North Korea
        • + *
        • MK - North Macedonia
        • + *
        • MP - Northern Mariana Islands
        • + *
        • NO - Norway
        • + *
        • OM - Oman
        • + *
        • PK - Pakistan
        • + *
        • PW - Palau
        • + *
        • PS - Palestine, State of
        • + *
        • PA - Panama
        • + *
        • PG - Papua New Guinea
        • + *
        • PY - Paraguay
        • + *
        • PE - Peru
        • + *
        • PH - Philippines
        • + *
        • PN - Pitcairn
        • + *
        • PL - Poland
        • + *
        • PT - Portugal
        • + *
        • PR - Puerto Rico
        • + *
        • QA - Qatar
        • + *
        • RE - Réunion
        • + *
        • RO - Romania
        • + *
        • RU - Russia
        • + *
        • RW - Rwanda
        • + *
        • BL - Saint Barthélemy
        • + *
        • SH - Saint Helena, Ascension and Tristan da Cunha
        • + *
        • KN - Saint Kitts and Nevis
        • + *
        • LC - Saint Lucia
        • + *
        • MF - Saint Martin (French part)
        • + *
        • PM - Saint Pierre and Miquelon
        • + *
        • VC - Saint Vincent and the Grenadines
        • + *
        • WS - Samoa
        • + *
        • SM - San Marino
        • + *
        • ST - Sao Tome and Principe
        • + *
        • SA - Saudi Arabia
        • + *
        • SN - Senegal
        • + *
        • RS - Serbia
        • + *
        • SC - Seychelles
        • + *
        • SL - Sierra Leone
        • + *
        • SG - Singapore
        • + *
        • SX - Sint Maarten (Dutch part)
        • + *
        • SK - Slovakia
        • + *
        • SI - Slovenia
        • + *
        • SB - Solomon Islands
        • + *
        • SO - Somalia
        • + *
        • ZA - South Africa
        • + *
        • GS - South Georgia and the South Sandwich Islands
        • + *
        • KR - South Korea
        • + *
        • SS - South Sudan
        • + *
        • ES - Spain
        • + *
        • LK - Sri Lanka
        • + *
        • SD - Sudan
        • + *
        • SR - Suriname
        • + *
        • SJ - Svalbard and Jan Mayen
        • + *
        • SE - Sweden
        • + *
        • CH - Switzerland
        • + *
        • SY - Syria
        • + *
        • TW - Taiwan
        • + *
        • TJ - Tajikistan
        • + *
        • TZ - Tanzania
        • + *
        • TH - Thailand
        • + *
        • TL - Timor-Leste
        • + *
        • TG - Togo
        • + *
        • TK - Tokelau
        • + *
        • TO - Tonga
        • + *
        • TT - Trinidad and Tobago
        • + *
        • TN - Tunisia
        • + *
        • TR - Turkey
        • + *
        • TM - Turkmenistan
        • + *
        • TC - Turks and Caicos Islands
        • + *
        • TV - Tuvalu
        • + *
        • UG - Uganda
        • + *
        • UA - Ukraine
        • + *
        • AE - United Arab Emirates
        • + *
        • GB - United Kingdom
        • + *
        • UM - United States Minor Outlying Islands
        • + *
        • US - United States of America
        • + *
        • UY - Uruguay
        • + *
        • UZ - Uzbekistan
        • + *
        • VU - Vanuatu
        • + *
        • VE - Venezuela
        • + *
        • VN - Vietnam
        • + *
        • VG - Virgin Islands (British)
        • + *
        • VI - Virgin Islands (U.S.)
        • + *
        • WF - Wallis and Futuna
        • + *
        • EH - Western Sahara
        • + *
        • YE - Yemen
        • + *
        • ZM - Zambia
        • + *
        • ZW - Zimbabwe
        • + *
        + */ @JsonSetter(value = "country", nulls = Nulls.SKIP) public Builder country(Optional country) { this.country = country; @@ -563,6 +838,13 @@ public Builder country(CountryEnum country) { return this; } + /** + *

        The address type.

        + *
          + *
        • BILLING - BILLING
        • + *
        • SHIPPING - SHIPPING
        • + *
        + */ @JsonSetter(value = "address_type", nulls = Nulls.SKIP) public Builder addressType(Optional addressType) { this.addressType = addressType; diff --git a/src/main/java/com/merge/api/crm/types/AddressRequest.java b/src/main/java/com/merge/api/crm/types/AddressRequest.java index 622673cea..061771839 100644 --- a/src/main/java/com/merge/api/crm/types/AddressRequest.java +++ b/src/main/java/com/merge/api/crm/types/AddressRequest.java @@ -469,6 +469,9 @@ public Builder from(AddressRequest other) { return this; } + /** + *

        Line 1 of the address's street.

        + */ @JsonSetter(value = "street_1", nulls = Nulls.SKIP) public Builder street1(Optional street1) { this.street1 = street1; @@ -480,6 +483,9 @@ public Builder street1(String street1) { return this; } + /** + *

        Line 2 of the address's street.

        + */ @JsonSetter(value = "street_2", nulls = Nulls.SKIP) public Builder street2(Optional street2) { this.street2 = street2; @@ -491,6 +497,9 @@ public Builder street2(String street2) { return this; } + /** + *

        The address's city.

        + */ @JsonSetter(value = "city", nulls = Nulls.SKIP) public Builder city(Optional city) { this.city = city; @@ -502,6 +511,9 @@ public Builder city(String city) { return this; } + /** + *

        The address's state.

        + */ @JsonSetter(value = "state", nulls = Nulls.SKIP) public Builder state(Optional state) { this.state = state; @@ -513,6 +525,9 @@ public Builder state(String state) { return this; } + /** + *

        The address's postal code.

        + */ @JsonSetter(value = "postal_code", nulls = Nulls.SKIP) public Builder postalCode(Optional postalCode) { this.postalCode = postalCode; @@ -524,6 +539,260 @@ public Builder postalCode(String postalCode) { return this; } + /** + *

        The address's country.

        + *
          + *
        • AF - Afghanistan
        • + *
        • AX - Åland Islands
        • + *
        • AL - Albania
        • + *
        • DZ - Algeria
        • + *
        • AS - American Samoa
        • + *
        • AD - Andorra
        • + *
        • AO - Angola
        • + *
        • AI - Anguilla
        • + *
        • AQ - Antarctica
        • + *
        • AG - Antigua and Barbuda
        • + *
        • AR - Argentina
        • + *
        • AM - Armenia
        • + *
        • AW - Aruba
        • + *
        • AU - Australia
        • + *
        • AT - Austria
        • + *
        • AZ - Azerbaijan
        • + *
        • BS - Bahamas
        • + *
        • BH - Bahrain
        • + *
        • BD - Bangladesh
        • + *
        • BB - Barbados
        • + *
        • BY - Belarus
        • + *
        • BE - Belgium
        • + *
        • BZ - Belize
        • + *
        • BJ - Benin
        • + *
        • BM - Bermuda
        • + *
        • BT - Bhutan
        • + *
        • BO - Bolivia
        • + *
        • BQ - Bonaire, Sint Eustatius and Saba
        • + *
        • BA - Bosnia and Herzegovina
        • + *
        • BW - Botswana
        • + *
        • BV - Bouvet Island
        • + *
        • BR - Brazil
        • + *
        • IO - British Indian Ocean Territory
        • + *
        • BN - Brunei
        • + *
        • BG - Bulgaria
        • + *
        • BF - Burkina Faso
        • + *
        • BI - Burundi
        • + *
        • CV - Cabo Verde
        • + *
        • KH - Cambodia
        • + *
        • CM - Cameroon
        • + *
        • CA - Canada
        • + *
        • KY - Cayman Islands
        • + *
        • CF - Central African Republic
        • + *
        • TD - Chad
        • + *
        • CL - Chile
        • + *
        • CN - China
        • + *
        • CX - Christmas Island
        • + *
        • CC - Cocos (Keeling) Islands
        • + *
        • CO - Colombia
        • + *
        • KM - Comoros
        • + *
        • CG - Congo
        • + *
        • CD - Congo (the Democratic Republic of the)
        • + *
        • CK - Cook Islands
        • + *
        • CR - Costa Rica
        • + *
        • CI - Côte d'Ivoire
        • + *
        • HR - Croatia
        • + *
        • CU - Cuba
        • + *
        • CW - Curaçao
        • + *
        • CY - Cyprus
        • + *
        • CZ - Czechia
        • + *
        • DK - Denmark
        • + *
        • DJ - Djibouti
        • + *
        • DM - Dominica
        • + *
        • DO - Dominican Republic
        • + *
        • EC - Ecuador
        • + *
        • EG - Egypt
        • + *
        • SV - El Salvador
        • + *
        • GQ - Equatorial Guinea
        • + *
        • ER - Eritrea
        • + *
        • EE - Estonia
        • + *
        • SZ - Eswatini
        • + *
        • ET - Ethiopia
        • + *
        • FK - Falkland Islands (Malvinas)
        • + *
        • FO - Faroe Islands
        • + *
        • FJ - Fiji
        • + *
        • FI - Finland
        • + *
        • FR - France
        • + *
        • GF - French Guiana
        • + *
        • PF - French Polynesia
        • + *
        • TF - French Southern Territories
        • + *
        • GA - Gabon
        • + *
        • GM - Gambia
        • + *
        • GE - Georgia
        • + *
        • DE - Germany
        • + *
        • GH - Ghana
        • + *
        • GI - Gibraltar
        • + *
        • GR - Greece
        • + *
        • GL - Greenland
        • + *
        • GD - Grenada
        • + *
        • GP - Guadeloupe
        • + *
        • GU - Guam
        • + *
        • GT - Guatemala
        • + *
        • GG - Guernsey
        • + *
        • GN - Guinea
        • + *
        • GW - Guinea-Bissau
        • + *
        • GY - Guyana
        • + *
        • HT - Haiti
        • + *
        • HM - Heard Island and McDonald Islands
        • + *
        • VA - Holy See
        • + *
        • HN - Honduras
        • + *
        • HK - Hong Kong
        • + *
        • HU - Hungary
        • + *
        • IS - Iceland
        • + *
        • IN - India
        • + *
        • ID - Indonesia
        • + *
        • IR - Iran
        • + *
        • IQ - Iraq
        • + *
        • IE - Ireland
        • + *
        • IM - Isle of Man
        • + *
        • IL - Israel
        • + *
        • IT - Italy
        • + *
        • JM - Jamaica
        • + *
        • JP - Japan
        • + *
        • JE - Jersey
        • + *
        • JO - Jordan
        • + *
        • KZ - Kazakhstan
        • + *
        • KE - Kenya
        • + *
        • KI - Kiribati
        • + *
        • KW - Kuwait
        • + *
        • KG - Kyrgyzstan
        • + *
        • LA - Laos
        • + *
        • LV - Latvia
        • + *
        • LB - Lebanon
        • + *
        • LS - Lesotho
        • + *
        • LR - Liberia
        • + *
        • LY - Libya
        • + *
        • LI - Liechtenstein
        • + *
        • LT - Lithuania
        • + *
        • LU - Luxembourg
        • + *
        • MO - Macao
        • + *
        • MG - Madagascar
        • + *
        • MW - Malawi
        • + *
        • MY - Malaysia
        • + *
        • MV - Maldives
        • + *
        • ML - Mali
        • + *
        • MT - Malta
        • + *
        • MH - Marshall Islands
        • + *
        • MQ - Martinique
        • + *
        • MR - Mauritania
        • + *
        • MU - Mauritius
        • + *
        • YT - Mayotte
        • + *
        • MX - Mexico
        • + *
        • FM - Micronesia (Federated States of)
        • + *
        • MD - Moldova
        • + *
        • MC - Monaco
        • + *
        • MN - Mongolia
        • + *
        • ME - Montenegro
        • + *
        • MS - Montserrat
        • + *
        • MA - Morocco
        • + *
        • MZ - Mozambique
        • + *
        • MM - Myanmar
        • + *
        • NA - Namibia
        • + *
        • NR - Nauru
        • + *
        • NP - Nepal
        • + *
        • NL - Netherlands
        • + *
        • NC - New Caledonia
        • + *
        • NZ - New Zealand
        • + *
        • NI - Nicaragua
        • + *
        • NE - Niger
        • + *
        • NG - Nigeria
        • + *
        • NU - Niue
        • + *
        • NF - Norfolk Island
        • + *
        • KP - North Korea
        • + *
        • MK - North Macedonia
        • + *
        • MP - Northern Mariana Islands
        • + *
        • NO - Norway
        • + *
        • OM - Oman
        • + *
        • PK - Pakistan
        • + *
        • PW - Palau
        • + *
        • PS - Palestine, State of
        • + *
        • PA - Panama
        • + *
        • PG - Papua New Guinea
        • + *
        • PY - Paraguay
        • + *
        • PE - Peru
        • + *
        • PH - Philippines
        • + *
        • PN - Pitcairn
        • + *
        • PL - Poland
        • + *
        • PT - Portugal
        • + *
        • PR - Puerto Rico
        • + *
        • QA - Qatar
        • + *
        • RE - Réunion
        • + *
        • RO - Romania
        • + *
        • RU - Russia
        • + *
        • RW - Rwanda
        • + *
        • BL - Saint Barthélemy
        • + *
        • SH - Saint Helena, Ascension and Tristan da Cunha
        • + *
        • KN - Saint Kitts and Nevis
        • + *
        • LC - Saint Lucia
        • + *
        • MF - Saint Martin (French part)
        • + *
        • PM - Saint Pierre and Miquelon
        • + *
        • VC - Saint Vincent and the Grenadines
        • + *
        • WS - Samoa
        • + *
        • SM - San Marino
        • + *
        • ST - Sao Tome and Principe
        • + *
        • SA - Saudi Arabia
        • + *
        • SN - Senegal
        • + *
        • RS - Serbia
        • + *
        • SC - Seychelles
        • + *
        • SL - Sierra Leone
        • + *
        • SG - Singapore
        • + *
        • SX - Sint Maarten (Dutch part)
        • + *
        • SK - Slovakia
        • + *
        • SI - Slovenia
        • + *
        • SB - Solomon Islands
        • + *
        • SO - Somalia
        • + *
        • ZA - South Africa
        • + *
        • GS - South Georgia and the South Sandwich Islands
        • + *
        • KR - South Korea
        • + *
        • SS - South Sudan
        • + *
        • ES - Spain
        • + *
        • LK - Sri Lanka
        • + *
        • SD - Sudan
        • + *
        • SR - Suriname
        • + *
        • SJ - Svalbard and Jan Mayen
        • + *
        • SE - Sweden
        • + *
        • CH - Switzerland
        • + *
        • SY - Syria
        • + *
        • TW - Taiwan
        • + *
        • TJ - Tajikistan
        • + *
        • TZ - Tanzania
        • + *
        • TH - Thailand
        • + *
        • TL - Timor-Leste
        • + *
        • TG - Togo
        • + *
        • TK - Tokelau
        • + *
        • TO - Tonga
        • + *
        • TT - Trinidad and Tobago
        • + *
        • TN - Tunisia
        • + *
        • TR - Turkey
        • + *
        • TM - Turkmenistan
        • + *
        • TC - Turks and Caicos Islands
        • + *
        • TV - Tuvalu
        • + *
        • UG - Uganda
        • + *
        • UA - Ukraine
        • + *
        • AE - United Arab Emirates
        • + *
        • GB - United Kingdom
        • + *
        • UM - United States Minor Outlying Islands
        • + *
        • US - United States of America
        • + *
        • UY - Uruguay
        • + *
        • UZ - Uzbekistan
        • + *
        • VU - Vanuatu
        • + *
        • VE - Venezuela
        • + *
        • VN - Vietnam
        • + *
        • VG - Virgin Islands (British)
        • + *
        • VI - Virgin Islands (U.S.)
        • + *
        • WF - Wallis and Futuna
        • + *
        • EH - Western Sahara
        • + *
        • YE - Yemen
        • + *
        • ZM - Zambia
        • + *
        • ZW - Zimbabwe
        • + *
        + */ @JsonSetter(value = "country", nulls = Nulls.SKIP) public Builder country(Optional country) { this.country = country; @@ -535,6 +804,13 @@ public Builder country(CountryEnum country) { return this; } + /** + *

        The address type.

        + *
          + *
        • BILLING - BILLING
        • + *
        • SHIPPING - SHIPPING
        • + *
        + */ @JsonSetter(value = "address_type", nulls = Nulls.SKIP) public Builder addressType(Optional addressType) { this.addressType = addressType; diff --git a/src/main/java/com/merge/api/crm/types/Association.java b/src/main/java/com/merge/api/crm/types/Association.java index 9c42abfbb..d0b9729dc 100644 --- a/src/main/java/com/merge/api/crm/types/Association.java +++ b/src/main/java/com/merge/api/crm/types/Association.java @@ -142,6 +142,9 @@ public Builder from(Association other) { return this; } + /** + *

        The datetime that this object was created by Merge.

        + */ @JsonSetter(value = "created_at", nulls = Nulls.SKIP) public Builder createdAt(Optional createdAt) { this.createdAt = createdAt; @@ -153,6 +156,9 @@ public Builder createdAt(OffsetDateTime createdAt) { return this; } + /** + *

        The datetime that this object was modified by Merge.

        + */ @JsonSetter(value = "modified_at", nulls = Nulls.SKIP) public Builder modifiedAt(Optional modifiedAt) { this.modifiedAt = modifiedAt; @@ -186,6 +192,9 @@ public Builder targetObject(String targetObject) { return this; } + /** + *

        The association type the association belongs to.

        + */ @JsonSetter(value = "association_type", nulls = Nulls.SKIP) public Builder associationType(Optional associationType) { this.associationType = associationType; diff --git a/src/main/java/com/merge/api/crm/types/AssociationSubType.java b/src/main/java/com/merge/api/crm/types/AssociationSubType.java index d370d615f..ce586153e 100644 --- a/src/main/java/com/merge/api/crm/types/AssociationSubType.java +++ b/src/main/java/com/merge/api/crm/types/AssociationSubType.java @@ -136,6 +136,9 @@ public Builder id(String id) { return this; } + /** + *

        The datetime that this object was created by Merge.

        + */ @JsonSetter(value = "created_at", nulls = Nulls.SKIP) public Builder createdAt(Optional createdAt) { this.createdAt = createdAt; @@ -147,6 +150,9 @@ public Builder createdAt(OffsetDateTime createdAt) { return this; } + /** + *

        The datetime that this object was modified by Merge.

        + */ @JsonSetter(value = "modified_at", nulls = Nulls.SKIP) public Builder modifiedAt(Optional modifiedAt) { this.modifiedAt = modifiedAt; diff --git a/src/main/java/com/merge/api/crm/types/AssociationType.java b/src/main/java/com/merge/api/crm/types/AssociationType.java index b28b7b351..c05d9d041 100644 --- a/src/main/java/com/merge/api/crm/types/AssociationType.java +++ b/src/main/java/com/merge/api/crm/types/AssociationType.java @@ -232,6 +232,9 @@ public Builder id(String id) { return this; } + /** + *

        The third-party API ID of the matching object.

        + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; @@ -243,6 +246,9 @@ public Builder remoteId(String remoteId) { return this; } + /** + *

        The datetime that this object was created by Merge.

        + */ @JsonSetter(value = "created_at", nulls = Nulls.SKIP) public Builder createdAt(Optional createdAt) { this.createdAt = createdAt; @@ -254,6 +260,9 @@ public Builder createdAt(OffsetDateTime createdAt) { return this; } + /** + *

        The datetime that this object was modified by Merge.

        + */ @JsonSetter(value = "modified_at", nulls = Nulls.SKIP) public Builder modifiedAt(Optional modifiedAt) { this.modifiedAt = modifiedAt; @@ -265,6 +274,9 @@ public Builder modifiedAt(OffsetDateTime modifiedAt) { return this; } + /** + *

        The class of the source object (Custom Object or Common Model) for the association type.

        + */ @JsonSetter(value = "source_object_class", nulls = Nulls.SKIP) public Builder sourceObjectClass(Optional> sourceObjectClass) { this.sourceObjectClass = sourceObjectClass; diff --git a/src/main/java/com/merge/api/crm/types/AuditLogEvent.java b/src/main/java/com/merge/api/crm/types/AuditLogEvent.java index 1cd04d82e..38ecb8633 100644 --- a/src/main/java/com/merge/api/crm/types/AuditLogEvent.java +++ b/src/main/java/com/merge/api/crm/types/AuditLogEvent.java @@ -210,6 +210,16 @@ public static RoleStage builder() { } public interface RoleStage { + /** + * Designates the role of the user (or SYSTEM/API if action not taken by a user) at the time of this Event occurring. + * + * * `ADMIN` - ADMIN + * * `DEVELOPER` - DEVELOPER + * * `MEMBER` - MEMBER + * * `API` - API + * * `SYSTEM` - SYSTEM + * * `MERGE_TEAM` - MERGE_TEAM + */ IpAddressStage role(@NotNull RoleEnum role); Builder from(AuditLogEvent other); @@ -220,6 +230,52 @@ public interface IpAddressStage { } public interface EventTypeStage { + /** + * Designates the type of event that occurred. + * + * * `CREATED_REMOTE_PRODUCTION_API_KEY` - CREATED_REMOTE_PRODUCTION_API_KEY + * * `DELETED_REMOTE_PRODUCTION_API_KEY` - DELETED_REMOTE_PRODUCTION_API_KEY + * * `CREATED_TEST_API_KEY` - CREATED_TEST_API_KEY + * * `DELETED_TEST_API_KEY` - DELETED_TEST_API_KEY + * * `REGENERATED_PRODUCTION_API_KEY` - REGENERATED_PRODUCTION_API_KEY + * * `INVITED_USER` - INVITED_USER + * * `TWO_FACTOR_AUTH_ENABLED` - TWO_FACTOR_AUTH_ENABLED + * * `TWO_FACTOR_AUTH_DISABLED` - TWO_FACTOR_AUTH_DISABLED + * * `DELETED_LINKED_ACCOUNT` - DELETED_LINKED_ACCOUNT + * * `DELETED_ALL_COMMON_MODELS_FOR_LINKED_ACCOUNT` - DELETED_ALL_COMMON_MODELS_FOR_LINKED_ACCOUNT + * * `CREATED_DESTINATION` - CREATED_DESTINATION + * * `DELETED_DESTINATION` - DELETED_DESTINATION + * * `CHANGED_DESTINATION` - CHANGED_DESTINATION + * * `CHANGED_SCOPES` - CHANGED_SCOPES + * * `CHANGED_PERSONAL_INFORMATION` - CHANGED_PERSONAL_INFORMATION + * * `CHANGED_ORGANIZATION_SETTINGS` - CHANGED_ORGANIZATION_SETTINGS + * * `ENABLED_INTEGRATION` - ENABLED_INTEGRATION + * * `DISABLED_INTEGRATION` - DISABLED_INTEGRATION + * * `ENABLED_CATEGORY` - ENABLED_CATEGORY + * * `DISABLED_CATEGORY` - DISABLED_CATEGORY + * * `CHANGED_PASSWORD` - CHANGED_PASSWORD + * * `RESET_PASSWORD` - RESET_PASSWORD + * * `ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION` - ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION + * * `ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT` - ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT + * * `DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION` - DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION + * * `DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT` - DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT + * * `CREATED_INTEGRATION_WIDE_FIELD_MAPPING` - CREATED_INTEGRATION_WIDE_FIELD_MAPPING + * * `CREATED_LINKED_ACCOUNT_FIELD_MAPPING` - CREATED_LINKED_ACCOUNT_FIELD_MAPPING + * * `CHANGED_INTEGRATION_WIDE_FIELD_MAPPING` - CHANGED_INTEGRATION_WIDE_FIELD_MAPPING + * * `CHANGED_LINKED_ACCOUNT_FIELD_MAPPING` - CHANGED_LINKED_ACCOUNT_FIELD_MAPPING + * * `DELETED_INTEGRATION_WIDE_FIELD_MAPPING` - DELETED_INTEGRATION_WIDE_FIELD_MAPPING + * * `DELETED_LINKED_ACCOUNT_FIELD_MAPPING` - DELETED_LINKED_ACCOUNT_FIELD_MAPPING + * * `CREATED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE` - CREATED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE + * * `CHANGED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE` - CHANGED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE + * * `DELETED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE` - DELETED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE + * * `FORCED_LINKED_ACCOUNT_RESYNC` - FORCED_LINKED_ACCOUNT_RESYNC + * * `MUTED_ISSUE` - MUTED_ISSUE + * * `GENERATED_MAGIC_LINK` - GENERATED_MAGIC_LINK + * * `ENABLED_MERGE_WEBHOOK` - ENABLED_MERGE_WEBHOOK + * * `DISABLED_MERGE_WEBHOOK` - DISABLED_MERGE_WEBHOOK + * * `MERGE_WEBHOOK_TARGET_CHANGED` - MERGE_WEBHOOK_TARGET_CHANGED + * * `END_USER_CREDENTIALS_ACCESSED` - END_USER_CREDENTIALS_ACCESSED + */ EventDescriptionStage eventType(@NotNull EventTypeEnum eventType); } @@ -234,10 +290,16 @@ public interface _FinalStage { _FinalStage id(String id); + /** + *

        The User's full name at the time of this Event occurring.

        + */ _FinalStage userName(Optional userName); _FinalStage userName(String userName); + /** + *

        The User's email at the time of this Event occurring.

        + */ _FinalStage userEmail(Optional userEmail); _FinalStage userEmail(String userEmail); @@ -285,7 +347,14 @@ public Builder from(AuditLogEvent other) { } /** - *

        Designates the role of the user (or SYSTEM/API if action not taken by a user) at the time of this Event occurring.

        + * Designates the role of the user (or SYSTEM/API if action not taken by a user) at the time of this Event occurring. + * + * * `ADMIN` - ADMIN + * * `DEVELOPER` - DEVELOPER + * * `MEMBER` - MEMBER + * * `API` - API + * * `SYSTEM` - SYSTEM + * * `MERGE_TEAM` - MERGE_TEAM

        Designates the role of the user (or SYSTEM/API if action not taken by a user) at the time of this Event occurring.

        *
          *
        • ADMIN - ADMIN
        • *
        • DEVELOPER - DEVELOPER
        • @@ -311,7 +380,50 @@ public EventTypeStage ipAddress(@NotNull String ipAddress) { } /** - *

          Designates the type of event that occurred.

          + * Designates the type of event that occurred. + * + * * `CREATED_REMOTE_PRODUCTION_API_KEY` - CREATED_REMOTE_PRODUCTION_API_KEY + * * `DELETED_REMOTE_PRODUCTION_API_KEY` - DELETED_REMOTE_PRODUCTION_API_KEY + * * `CREATED_TEST_API_KEY` - CREATED_TEST_API_KEY + * * `DELETED_TEST_API_KEY` - DELETED_TEST_API_KEY + * * `REGENERATED_PRODUCTION_API_KEY` - REGENERATED_PRODUCTION_API_KEY + * * `INVITED_USER` - INVITED_USER + * * `TWO_FACTOR_AUTH_ENABLED` - TWO_FACTOR_AUTH_ENABLED + * * `TWO_FACTOR_AUTH_DISABLED` - TWO_FACTOR_AUTH_DISABLED + * * `DELETED_LINKED_ACCOUNT` - DELETED_LINKED_ACCOUNT + * * `DELETED_ALL_COMMON_MODELS_FOR_LINKED_ACCOUNT` - DELETED_ALL_COMMON_MODELS_FOR_LINKED_ACCOUNT + * * `CREATED_DESTINATION` - CREATED_DESTINATION + * * `DELETED_DESTINATION` - DELETED_DESTINATION + * * `CHANGED_DESTINATION` - CHANGED_DESTINATION + * * `CHANGED_SCOPES` - CHANGED_SCOPES + * * `CHANGED_PERSONAL_INFORMATION` - CHANGED_PERSONAL_INFORMATION + * * `CHANGED_ORGANIZATION_SETTINGS` - CHANGED_ORGANIZATION_SETTINGS + * * `ENABLED_INTEGRATION` - ENABLED_INTEGRATION + * * `DISABLED_INTEGRATION` - DISABLED_INTEGRATION + * * `ENABLED_CATEGORY` - ENABLED_CATEGORY + * * `DISABLED_CATEGORY` - DISABLED_CATEGORY + * * `CHANGED_PASSWORD` - CHANGED_PASSWORD + * * `RESET_PASSWORD` - RESET_PASSWORD + * * `ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION` - ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION + * * `ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT` - ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT + * * `DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION` - DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION + * * `DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT` - DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT + * * `CREATED_INTEGRATION_WIDE_FIELD_MAPPING` - CREATED_INTEGRATION_WIDE_FIELD_MAPPING + * * `CREATED_LINKED_ACCOUNT_FIELD_MAPPING` - CREATED_LINKED_ACCOUNT_FIELD_MAPPING + * * `CHANGED_INTEGRATION_WIDE_FIELD_MAPPING` - CHANGED_INTEGRATION_WIDE_FIELD_MAPPING + * * `CHANGED_LINKED_ACCOUNT_FIELD_MAPPING` - CHANGED_LINKED_ACCOUNT_FIELD_MAPPING + * * `DELETED_INTEGRATION_WIDE_FIELD_MAPPING` - DELETED_INTEGRATION_WIDE_FIELD_MAPPING + * * `DELETED_LINKED_ACCOUNT_FIELD_MAPPING` - DELETED_LINKED_ACCOUNT_FIELD_MAPPING + * * `CREATED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE` - CREATED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE + * * `CHANGED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE` - CHANGED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE + * * `DELETED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE` - DELETED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE + * * `FORCED_LINKED_ACCOUNT_RESYNC` - FORCED_LINKED_ACCOUNT_RESYNC + * * `MUTED_ISSUE` - MUTED_ISSUE + * * `GENERATED_MAGIC_LINK` - GENERATED_MAGIC_LINK + * * `ENABLED_MERGE_WEBHOOK` - ENABLED_MERGE_WEBHOOK + * * `DISABLED_MERGE_WEBHOOK` - DISABLED_MERGE_WEBHOOK + * * `MERGE_WEBHOOK_TARGET_CHANGED` - MERGE_WEBHOOK_TARGET_CHANGED + * * `END_USER_CREDENTIALS_ACCESSED` - END_USER_CREDENTIALS_ACCESSED

          Designates the type of event that occurred.

          *
            *
          • CREATED_REMOTE_PRODUCTION_API_KEY - CREATED_REMOTE_PRODUCTION_API_KEY
          • *
          • DELETED_REMOTE_PRODUCTION_API_KEY - DELETED_REMOTE_PRODUCTION_API_KEY
          • @@ -395,6 +507,9 @@ public _FinalStage userEmail(String userEmail) { return this; } + /** + *

            The User's email at the time of this Event occurring.

            + */ @java.lang.Override @JsonSetter(value = "user_email", nulls = Nulls.SKIP) public _FinalStage userEmail(Optional userEmail) { @@ -412,6 +527,9 @@ public _FinalStage userName(String userName) { return this; } + /** + *

            The User's full name at the time of this Event occurring.

            + */ @java.lang.Override @JsonSetter(value = "user_name", nulls = Nulls.SKIP) public _FinalStage userName(Optional userName) { diff --git a/src/main/java/com/merge/api/crm/types/AuditTrailListRequest.java b/src/main/java/com/merge/api/crm/types/AuditTrailListRequest.java index 6a6003aa8..7f37f20ae 100644 --- a/src/main/java/com/merge/api/crm/types/AuditTrailListRequest.java +++ b/src/main/java/com/merge/api/crm/types/AuditTrailListRequest.java @@ -162,6 +162,9 @@ public Builder from(AuditTrailListRequest other) { return this; } + /** + *

            The pagination cursor value.

            + */ @JsonSetter(value = "cursor", nulls = Nulls.SKIP) public Builder cursor(Optional cursor) { this.cursor = cursor; @@ -173,6 +176,9 @@ public Builder cursor(String cursor) { return this; } + /** + *

            If included, will only include audit trail events that occurred before this time

            + */ @JsonSetter(value = "end_date", nulls = Nulls.SKIP) public Builder endDate(Optional endDate) { this.endDate = endDate; @@ -184,6 +190,9 @@ public Builder endDate(String endDate) { return this; } + /** + *

            If included, will only include events with the given event type. Possible values include: CREATED_REMOTE_PRODUCTION_API_KEY, DELETED_REMOTE_PRODUCTION_API_KEY, CREATED_TEST_API_KEY, DELETED_TEST_API_KEY, REGENERATED_PRODUCTION_API_KEY, INVITED_USER, TWO_FACTOR_AUTH_ENABLED, TWO_FACTOR_AUTH_DISABLED, DELETED_LINKED_ACCOUNT, DELETED_ALL_COMMON_MODELS_FOR_LINKED_ACCOUNT, CREATED_DESTINATION, DELETED_DESTINATION, CHANGED_DESTINATION, CHANGED_SCOPES, CHANGED_PERSONAL_INFORMATION, CHANGED_ORGANIZATION_SETTINGS, ENABLED_INTEGRATION, DISABLED_INTEGRATION, ENABLED_CATEGORY, DISABLED_CATEGORY, CHANGED_PASSWORD, RESET_PASSWORD, ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION, ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT, DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION, DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT, CREATED_INTEGRATION_WIDE_FIELD_MAPPING, CREATED_LINKED_ACCOUNT_FIELD_MAPPING, CHANGED_INTEGRATION_WIDE_FIELD_MAPPING, CHANGED_LINKED_ACCOUNT_FIELD_MAPPING, DELETED_INTEGRATION_WIDE_FIELD_MAPPING, DELETED_LINKED_ACCOUNT_FIELD_MAPPING, CREATED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE, CHANGED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE, DELETED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE, FORCED_LINKED_ACCOUNT_RESYNC, MUTED_ISSUE, GENERATED_MAGIC_LINK, ENABLED_MERGE_WEBHOOK, DISABLED_MERGE_WEBHOOK, MERGE_WEBHOOK_TARGET_CHANGED, END_USER_CREDENTIALS_ACCESSED

            + */ @JsonSetter(value = "event_type", nulls = Nulls.SKIP) public Builder eventType(Optional eventType) { this.eventType = eventType; @@ -195,6 +204,9 @@ public Builder eventType(String eventType) { return this; } + /** + *

            Number of results to return per page.

            + */ @JsonSetter(value = "page_size", nulls = Nulls.SKIP) public Builder pageSize(Optional pageSize) { this.pageSize = pageSize; @@ -206,6 +218,9 @@ public Builder pageSize(Integer pageSize) { return this; } + /** + *

            If included, will only include audit trail events that occurred after this time

            + */ @JsonSetter(value = "start_date", nulls = Nulls.SKIP) public Builder startDate(Optional startDate) { this.startDate = startDate; @@ -217,6 +232,9 @@ public Builder startDate(String startDate) { return this; } + /** + *

            If provided, this will return events associated with the specified user email. Please note that the email address reflects the user's email at the time of the event, and may not be their current email.

            + */ @JsonSetter(value = "user_email", nulls = Nulls.SKIP) public Builder userEmail(Optional userEmail) { this.userEmail = userEmail; diff --git a/src/main/java/com/merge/api/crm/types/CommonModelScopeApi.java b/src/main/java/com/merge/api/crm/types/CommonModelScopeApi.java index 202c3b928..d691b2ae5 100644 --- a/src/main/java/com/merge/api/crm/types/CommonModelScopeApi.java +++ b/src/main/java/com/merge/api/crm/types/CommonModelScopeApi.java @@ -82,6 +82,9 @@ public Builder from(CommonModelScopeApi other) { return this; } + /** + *

            The common models you want to update the scopes for

            + */ @JsonSetter(value = "common_models", nulls = Nulls.SKIP) public Builder commonModels(List commonModels) { this.commonModels.clear(); diff --git a/src/main/java/com/merge/api/crm/types/Contact.java b/src/main/java/com/merge/api/crm/types/Contact.java index f8b171481..9a1cdac4e 100644 --- a/src/main/java/com/merge/api/crm/types/Contact.java +++ b/src/main/java/com/merge/api/crm/types/Contact.java @@ -348,6 +348,9 @@ public Builder id(String id) { return this; } + /** + *

            The third-party API ID of the matching object.

            + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; @@ -359,6 +362,9 @@ public Builder remoteId(String remoteId) { return this; } + /** + *

            The datetime that this object was created by Merge.

            + */ @JsonSetter(value = "created_at", nulls = Nulls.SKIP) public Builder createdAt(Optional createdAt) { this.createdAt = createdAt; @@ -370,6 +376,9 @@ public Builder createdAt(OffsetDateTime createdAt) { return this; } + /** + *

            The datetime that this object was modified by Merge.

            + */ @JsonSetter(value = "modified_at", nulls = Nulls.SKIP) public Builder modifiedAt(Optional modifiedAt) { this.modifiedAt = modifiedAt; @@ -381,6 +390,9 @@ public Builder modifiedAt(OffsetDateTime modifiedAt) { return this; } + /** + *

            The contact's first name.

            + */ @JsonSetter(value = "first_name", nulls = Nulls.SKIP) public Builder firstName(Optional firstName) { this.firstName = firstName; @@ -392,6 +404,9 @@ public Builder firstName(String firstName) { return this; } + /** + *

            The contact's last name.

            + */ @JsonSetter(value = "last_name", nulls = Nulls.SKIP) public Builder lastName(Optional lastName) { this.lastName = lastName; @@ -403,6 +418,9 @@ public Builder lastName(String lastName) { return this; } + /** + *

            The contact's account.

            + */ @JsonSetter(value = "account", nulls = Nulls.SKIP) public Builder account(Optional account) { this.account = account; @@ -414,6 +432,9 @@ public Builder account(ContactAccount account) { return this; } + /** + *

            The contact's owner.

            + */ @JsonSetter(value = "owner", nulls = Nulls.SKIP) public Builder owner(Optional owner) { this.owner = owner; @@ -458,6 +479,9 @@ public Builder phoneNumbers(List phoneNumbers) { return this; } + /** + *

            When the contact's last activity occurred.

            + */ @JsonSetter(value = "last_activity_at", nulls = Nulls.SKIP) public Builder lastActivityAt(Optional lastActivityAt) { this.lastActivityAt = lastActivityAt; @@ -469,6 +493,9 @@ public Builder lastActivityAt(OffsetDateTime lastActivityAt) { return this; } + /** + *

            When the third party's contact was created.

            + */ @JsonSetter(value = "remote_created_at", nulls = Nulls.SKIP) public Builder remoteCreatedAt(Optional remoteCreatedAt) { this.remoteCreatedAt = remoteCreatedAt; @@ -480,6 +507,9 @@ public Builder remoteCreatedAt(OffsetDateTime remoteCreatedAt) { return this; } + /** + *

            Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

            + */ @JsonSetter(value = "remote_was_deleted", nulls = Nulls.SKIP) public Builder remoteWasDeleted(Optional remoteWasDeleted) { this.remoteWasDeleted = remoteWasDeleted; diff --git a/src/main/java/com/merge/api/crm/types/ContactRequest.java b/src/main/java/com/merge/api/crm/types/ContactRequest.java index 5c8aa608a..a86d5b785 100644 --- a/src/main/java/com/merge/api/crm/types/ContactRequest.java +++ b/src/main/java/com/merge/api/crm/types/ContactRequest.java @@ -238,6 +238,9 @@ public Builder from(ContactRequest other) { return this; } + /** + *

            The contact's first name.

            + */ @JsonSetter(value = "first_name", nulls = Nulls.SKIP) public Builder firstName(Optional firstName) { this.firstName = firstName; @@ -249,6 +252,9 @@ public Builder firstName(String firstName) { return this; } + /** + *

            The contact's last name.

            + */ @JsonSetter(value = "last_name", nulls = Nulls.SKIP) public Builder lastName(Optional lastName) { this.lastName = lastName; @@ -260,6 +266,9 @@ public Builder lastName(String lastName) { return this; } + /** + *

            The contact's account.

            + */ @JsonSetter(value = "account", nulls = Nulls.SKIP) public Builder account(Optional account) { this.account = account; @@ -271,6 +280,9 @@ public Builder account(ContactRequestAccount account) { return this; } + /** + *

            The contact's owner.

            + */ @JsonSetter(value = "owner", nulls = Nulls.SKIP) public Builder owner(Optional owner) { this.owner = owner; @@ -315,6 +327,9 @@ public Builder phoneNumbers(List phoneNumbers) { return this; } + /** + *

            When the contact's last activity occurred.

            + */ @JsonSetter(value = "last_activity_at", nulls = Nulls.SKIP) public Builder lastActivityAt(Optional lastActivityAt) { this.lastActivityAt = lastActivityAt; diff --git a/src/main/java/com/merge/api/crm/types/ContactsListRequest.java b/src/main/java/com/merge/api/crm/types/ContactsListRequest.java index a784ed4ca..9e4d37005 100644 --- a/src/main/java/com/merge/api/crm/types/ContactsListRequest.java +++ b/src/main/java/com/merge/api/crm/types/ContactsListRequest.java @@ -324,6 +324,9 @@ public Builder from(ContactsListRequest other) { return this; } + /** + *

            Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.

            + */ @JsonSetter(value = "expand", nulls = Nulls.SKIP) public Builder expand(Optional> expand) { this.expand = expand; @@ -340,6 +343,9 @@ public Builder expand(ContactsListRequestExpandItem expand) { return this; } + /** + *

            If provided, will only return contacts with this account.

            + */ @JsonSetter(value = "account_id", nulls = Nulls.SKIP) public Builder accountId(Optional accountId) { this.accountId = accountId; @@ -351,6 +357,9 @@ public Builder accountId(String accountId) { return this; } + /** + *

            If provided, will only return objects created after this datetime.

            + */ @JsonSetter(value = "created_after", nulls = Nulls.SKIP) public Builder createdAfter(Optional createdAfter) { this.createdAfter = createdAfter; @@ -362,6 +371,9 @@ public Builder createdAfter(OffsetDateTime createdAfter) { return this; } + /** + *

            If provided, will only return objects created before this datetime.

            + */ @JsonSetter(value = "created_before", nulls = Nulls.SKIP) public Builder createdBefore(Optional createdBefore) { this.createdBefore = createdBefore; @@ -373,6 +385,9 @@ public Builder createdBefore(OffsetDateTime createdBefore) { return this; } + /** + *

            The pagination cursor value.

            + */ @JsonSetter(value = "cursor", nulls = Nulls.SKIP) public Builder cursor(Optional cursor) { this.cursor = cursor; @@ -384,6 +399,9 @@ public Builder cursor(String cursor) { return this; } + /** + *

            If provided, will only return contacts matching the email addresses; multiple email_addresses can be separated by commas.

            + */ @JsonSetter(value = "email_addresses", nulls = Nulls.SKIP) public Builder emailAddresses(Optional emailAddresses) { this.emailAddresses = emailAddresses; @@ -395,6 +413,9 @@ public Builder emailAddresses(String emailAddresses) { return this; } + /** + *

            Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

            + */ @JsonSetter(value = "include_deleted_data", nulls = Nulls.SKIP) public Builder includeDeletedData(Optional includeDeletedData) { this.includeDeletedData = includeDeletedData; @@ -406,6 +427,9 @@ public Builder includeDeletedData(Boolean includeDeletedData) { return this; } + /** + *

            Whether to include the original data Merge fetched from the third-party to produce these models.

            + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -417,6 +441,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

            Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format.

            + */ @JsonSetter(value = "include_remote_fields", nulls = Nulls.SKIP) public Builder includeRemoteFields(Optional includeRemoteFields) { this.includeRemoteFields = includeRemoteFields; @@ -428,6 +455,9 @@ public Builder includeRemoteFields(Boolean includeRemoteFields) { return this; } + /** + *

            Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

            + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; @@ -439,6 +469,9 @@ public Builder includeShellData(Boolean includeShellData) { return this; } + /** + *

            If provided, only objects synced by Merge after this date time will be returned.

            + */ @JsonSetter(value = "modified_after", nulls = Nulls.SKIP) public Builder modifiedAfter(Optional modifiedAfter) { this.modifiedAfter = modifiedAfter; @@ -450,6 +483,9 @@ public Builder modifiedAfter(OffsetDateTime modifiedAfter) { return this; } + /** + *

            If provided, only objects synced by Merge before this date time will be returned.

            + */ @JsonSetter(value = "modified_before", nulls = Nulls.SKIP) public Builder modifiedBefore(Optional modifiedBefore) { this.modifiedBefore = modifiedBefore; @@ -461,6 +497,9 @@ public Builder modifiedBefore(OffsetDateTime modifiedBefore) { return this; } + /** + *

            Number of results to return per page.

            + */ @JsonSetter(value = "page_size", nulls = Nulls.SKIP) public Builder pageSize(Optional pageSize) { this.pageSize = pageSize; @@ -472,6 +511,9 @@ public Builder pageSize(Integer pageSize) { return this; } + /** + *

            If provided, will only return contacts matching the phone numbers; multiple phone numbers can be separated by commas.

            + */ @JsonSetter(value = "phone_numbers", nulls = Nulls.SKIP) public Builder phoneNumbers(Optional phoneNumbers) { this.phoneNumbers = phoneNumbers; @@ -483,6 +525,9 @@ public Builder phoneNumbers(String phoneNumbers) { return this; } + /** + *

            The API provider's ID for the given object.

            + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; diff --git a/src/main/java/com/merge/api/crm/types/ContactsRemoteFieldClassesListRequest.java b/src/main/java/com/merge/api/crm/types/ContactsRemoteFieldClassesListRequest.java index b582cd54a..de2b2167a 100644 --- a/src/main/java/com/merge/api/crm/types/ContactsRemoteFieldClassesListRequest.java +++ b/src/main/java/com/merge/api/crm/types/ContactsRemoteFieldClassesListRequest.java @@ -186,6 +186,9 @@ public Builder from(ContactsRemoteFieldClassesListRequest other) { return this; } + /** + *

            The pagination cursor value.

            + */ @JsonSetter(value = "cursor", nulls = Nulls.SKIP) public Builder cursor(Optional cursor) { this.cursor = cursor; @@ -197,6 +200,9 @@ public Builder cursor(String cursor) { return this; } + /** + *

            Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

            + */ @JsonSetter(value = "include_deleted_data", nulls = Nulls.SKIP) public Builder includeDeletedData(Optional includeDeletedData) { this.includeDeletedData = includeDeletedData; @@ -208,6 +214,9 @@ public Builder includeDeletedData(Boolean includeDeletedData) { return this; } + /** + *

            Whether to include the original data Merge fetched from the third-party to produce these models.

            + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -219,6 +228,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

            Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format.

            + */ @JsonSetter(value = "include_remote_fields", nulls = Nulls.SKIP) public Builder includeRemoteFields(Optional includeRemoteFields) { this.includeRemoteFields = includeRemoteFields; @@ -230,6 +242,9 @@ public Builder includeRemoteFields(Boolean includeRemoteFields) { return this; } + /** + *

            Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

            + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; @@ -241,6 +256,9 @@ public Builder includeShellData(Boolean includeShellData) { return this; } + /** + *

            If provided, will only return remote field classes with this is_common_model_field value

            + */ @JsonSetter(value = "is_common_model_field", nulls = Nulls.SKIP) public Builder isCommonModelField(Optional isCommonModelField) { this.isCommonModelField = isCommonModelField; @@ -252,6 +270,9 @@ public Builder isCommonModelField(Boolean isCommonModelField) { return this; } + /** + *

            Number of results to return per page.

            + */ @JsonSetter(value = "page_size", nulls = Nulls.SKIP) public Builder pageSize(Optional pageSize) { this.pageSize = pageSize; diff --git a/src/main/java/com/merge/api/crm/types/ContactsRetrieveRequest.java b/src/main/java/com/merge/api/crm/types/ContactsRetrieveRequest.java index 4555f4558..bff5e7e65 100644 --- a/src/main/java/com/merge/api/crm/types/ContactsRetrieveRequest.java +++ b/src/main/java/com/merge/api/crm/types/ContactsRetrieveRequest.java @@ -132,6 +132,9 @@ public Builder from(ContactsRetrieveRequest other) { return this; } + /** + *

            Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.

            + */ @JsonSetter(value = "expand", nulls = Nulls.SKIP) public Builder expand(Optional> expand) { this.expand = expand; @@ -148,6 +151,9 @@ public Builder expand(ContactsRetrieveRequestExpandItem expand) { return this; } + /** + *

            Whether to include the original data Merge fetched from the third-party to produce these models.

            + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -159,6 +165,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

            Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format.

            + */ @JsonSetter(value = "include_remote_fields", nulls = Nulls.SKIP) public Builder includeRemoteFields(Optional includeRemoteFields) { this.includeRemoteFields = includeRemoteFields; @@ -170,6 +179,9 @@ public Builder includeRemoteFields(Boolean includeRemoteFields) { return this; } + /** + *

            Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

            + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; diff --git a/src/main/java/com/merge/api/crm/types/CreateFieldMappingRequest.java b/src/main/java/com/merge/api/crm/types/CreateFieldMappingRequest.java index 671fe6356..5261ac496 100644 --- a/src/main/java/com/merge/api/crm/types/CreateFieldMappingRequest.java +++ b/src/main/java/com/merge/api/crm/types/CreateFieldMappingRequest.java @@ -158,34 +158,55 @@ public static TargetFieldNameStage builder() { } public interface TargetFieldNameStage { + /** + * The name of the target field you want this remote field to map to. + */ TargetFieldDescriptionStage targetFieldName(@NotNull String targetFieldName); Builder from(CreateFieldMappingRequest other); } public interface TargetFieldDescriptionStage { + /** + * The description of the target field you want this remote field to map to. + */ RemoteMethodStage targetFieldDescription(@NotNull String targetFieldDescription); } public interface RemoteMethodStage { + /** + * The method of the remote endpoint where the remote field is coming from. + */ RemoteUrlPathStage remoteMethod(@NotNull String remoteMethod); } public interface RemoteUrlPathStage { + /** + * The path of the remote endpoint where the remote field is coming from. + */ CommonModelNameStage remoteUrlPath(@NotNull String remoteUrlPath); } public interface CommonModelNameStage { + /** + * The name of the Common Model that the remote field corresponds to in a given category. + */ _FinalStage commonModelName(@NotNull String commonModelName); } public interface _FinalStage { CreateFieldMappingRequest build(); + /** + *

            If true, remote fields metadata is excluded from each field mapping instance (i.e. remote_fields.remote_key_name and remote_fields.schema will be null). This will increase the speed of the request since these fields require some calculations.

            + */ _FinalStage excludeRemoteFieldMetadata(Optional excludeRemoteFieldMetadata); _FinalStage excludeRemoteFieldMetadata(Boolean excludeRemoteFieldMetadata); + /** + *

            The field traversal path of the remote field listed when you hit the GET /remote-fields endpoint.

            + */ _FinalStage remoteFieldTraversalPath(List remoteFieldTraversalPath); _FinalStage addRemoteFieldTraversalPath(JsonNode remoteFieldTraversalPath); @@ -233,7 +254,7 @@ public Builder from(CreateFieldMappingRequest other) { } /** - *

            The name of the target field you want this remote field to map to.

            + * The name of the target field you want this remote field to map to.

            The name of the target field you want this remote field to map to.

            * @return Reference to {@code this} so that method calls can be chained together. */ @java.lang.Override @@ -244,7 +265,7 @@ public TargetFieldDescriptionStage targetFieldName(@NotNull String targetFieldNa } /** - *

            The description of the target field you want this remote field to map to.

            + * The description of the target field you want this remote field to map to.

            The description of the target field you want this remote field to map to.

            * @return Reference to {@code this} so that method calls can be chained together. */ @java.lang.Override @@ -255,7 +276,7 @@ public RemoteMethodStage targetFieldDescription(@NotNull String targetFieldDescr } /** - *

            The method of the remote endpoint where the remote field is coming from.

            + * The method of the remote endpoint where the remote field is coming from.

            The method of the remote endpoint where the remote field is coming from.

            * @return Reference to {@code this} so that method calls can be chained together. */ @java.lang.Override @@ -266,7 +287,7 @@ public RemoteUrlPathStage remoteMethod(@NotNull String remoteMethod) { } /** - *

            The path of the remote endpoint where the remote field is coming from.

            + * The path of the remote endpoint where the remote field is coming from.

            The path of the remote endpoint where the remote field is coming from.

            * @return Reference to {@code this} so that method calls can be chained together. */ @java.lang.Override @@ -277,7 +298,7 @@ public CommonModelNameStage remoteUrlPath(@NotNull String remoteUrlPath) { } /** - *

            The name of the Common Model that the remote field corresponds to in a given category.

            + * The name of the Common Model that the remote field corresponds to in a given category.

            The name of the Common Model that the remote field corresponds to in a given category.

            * @return Reference to {@code this} so that method calls can be chained together. */ @java.lang.Override @@ -307,6 +328,9 @@ public _FinalStage addRemoteFieldTraversalPath(JsonNode remoteFieldTraversalPath return this; } + /** + *

            The field traversal path of the remote field listed when you hit the GET /remote-fields endpoint.

            + */ @java.lang.Override @JsonSetter(value = "remote_field_traversal_path", nulls = Nulls.SKIP) public _FinalStage remoteFieldTraversalPath(List remoteFieldTraversalPath) { @@ -325,6 +349,9 @@ public _FinalStage excludeRemoteFieldMetadata(Boolean excludeRemoteFieldMetadata return this; } + /** + *

            If true, remote fields metadata is excluded from each field mapping instance (i.e. remote_fields.remote_key_name and remote_fields.schema will be null). This will increase the speed of the request since these fields require some calculations.

            + */ @java.lang.Override @JsonSetter(value = "exclude_remote_field_metadata", nulls = Nulls.SKIP) public _FinalStage excludeRemoteFieldMetadata(Optional excludeRemoteFieldMetadata) { diff --git a/src/main/java/com/merge/api/crm/types/CrmAccountEndpointRequest.java b/src/main/java/com/merge/api/crm/types/CrmAccountEndpointRequest.java index bd4ba281d..e0fa16c6b 100644 --- a/src/main/java/com/merge/api/crm/types/CrmAccountEndpointRequest.java +++ b/src/main/java/com/merge/api/crm/types/CrmAccountEndpointRequest.java @@ -99,10 +99,16 @@ public interface ModelStage { public interface _FinalStage { CrmAccountEndpointRequest build(); + /** + *

            Whether to include debug fields (such as log file links) in the response.

            + */ _FinalStage isDebugMode(Optional isDebugMode); _FinalStage isDebugMode(Boolean isDebugMode); + /** + *

            Whether or not third-party updates should be run asynchronously.

            + */ _FinalStage runAsync(Optional runAsync); _FinalStage runAsync(Boolean runAsync); @@ -146,6 +152,9 @@ public _FinalStage runAsync(Boolean runAsync) { return this; } + /** + *

            Whether or not third-party updates should be run asynchronously.

            + */ @java.lang.Override @JsonSetter(value = "run_async", nulls = Nulls.SKIP) public _FinalStage runAsync(Optional runAsync) { @@ -163,6 +172,9 @@ public _FinalStage isDebugMode(Boolean isDebugMode) { return this; } + /** + *

            Whether to include debug fields (such as log file links) in the response.

            + */ @java.lang.Override @JsonSetter(value = "is_debug_mode", nulls = Nulls.SKIP) public _FinalStage isDebugMode(Optional isDebugMode) { diff --git a/src/main/java/com/merge/api/crm/types/CrmAssociationTypeEndpointRequest.java b/src/main/java/com/merge/api/crm/types/CrmAssociationTypeEndpointRequest.java index 075633985..bcf02c0d6 100644 --- a/src/main/java/com/merge/api/crm/types/CrmAssociationTypeEndpointRequest.java +++ b/src/main/java/com/merge/api/crm/types/CrmAssociationTypeEndpointRequest.java @@ -99,10 +99,16 @@ public interface ModelStage { public interface _FinalStage { CrmAssociationTypeEndpointRequest build(); + /** + *

            Whether to include debug fields (such as log file links) in the response.

            + */ _FinalStage isDebugMode(Optional isDebugMode); _FinalStage isDebugMode(Boolean isDebugMode); + /** + *

            Whether or not third-party updates should be run asynchronously.

            + */ _FinalStage runAsync(Optional runAsync); _FinalStage runAsync(Boolean runAsync); @@ -146,6 +152,9 @@ public _FinalStage runAsync(Boolean runAsync) { return this; } + /** + *

            Whether or not third-party updates should be run asynchronously.

            + */ @java.lang.Override @JsonSetter(value = "run_async", nulls = Nulls.SKIP) public _FinalStage runAsync(Optional runAsync) { @@ -163,6 +172,9 @@ public _FinalStage isDebugMode(Boolean isDebugMode) { return this; } + /** + *

            Whether to include debug fields (such as log file links) in the response.

            + */ @java.lang.Override @JsonSetter(value = "is_debug_mode", nulls = Nulls.SKIP) public _FinalStage isDebugMode(Optional isDebugMode) { diff --git a/src/main/java/com/merge/api/crm/types/CrmContactEndpointRequest.java b/src/main/java/com/merge/api/crm/types/CrmContactEndpointRequest.java index aac4bb74e..49efa9e16 100644 --- a/src/main/java/com/merge/api/crm/types/CrmContactEndpointRequest.java +++ b/src/main/java/com/merge/api/crm/types/CrmContactEndpointRequest.java @@ -99,10 +99,16 @@ public interface ModelStage { public interface _FinalStage { CrmContactEndpointRequest build(); + /** + *

            Whether to include debug fields (such as log file links) in the response.

            + */ _FinalStage isDebugMode(Optional isDebugMode); _FinalStage isDebugMode(Boolean isDebugMode); + /** + *

            Whether or not third-party updates should be run asynchronously.

            + */ _FinalStage runAsync(Optional runAsync); _FinalStage runAsync(Boolean runAsync); @@ -146,6 +152,9 @@ public _FinalStage runAsync(Boolean runAsync) { return this; } + /** + *

            Whether or not third-party updates should be run asynchronously.

            + */ @java.lang.Override @JsonSetter(value = "run_async", nulls = Nulls.SKIP) public _FinalStage runAsync(Optional runAsync) { @@ -163,6 +172,9 @@ public _FinalStage isDebugMode(Boolean isDebugMode) { return this; } + /** + *

            Whether to include debug fields (such as log file links) in the response.

            + */ @java.lang.Override @JsonSetter(value = "is_debug_mode", nulls = Nulls.SKIP) public _FinalStage isDebugMode(Optional isDebugMode) { diff --git a/src/main/java/com/merge/api/crm/types/CrmCustomObjectEndpointRequest.java b/src/main/java/com/merge/api/crm/types/CrmCustomObjectEndpointRequest.java index c7584f5f5..82e24ea45 100644 --- a/src/main/java/com/merge/api/crm/types/CrmCustomObjectEndpointRequest.java +++ b/src/main/java/com/merge/api/crm/types/CrmCustomObjectEndpointRequest.java @@ -99,10 +99,16 @@ public interface ModelStage { public interface _FinalStage { CrmCustomObjectEndpointRequest build(); + /** + *

            Whether to include debug fields (such as log file links) in the response.

            + */ _FinalStage isDebugMode(Optional isDebugMode); _FinalStage isDebugMode(Boolean isDebugMode); + /** + *

            Whether or not third-party updates should be run asynchronously.

            + */ _FinalStage runAsync(Optional runAsync); _FinalStage runAsync(Boolean runAsync); @@ -146,6 +152,9 @@ public _FinalStage runAsync(Boolean runAsync) { return this; } + /** + *

            Whether or not third-party updates should be run asynchronously.

            + */ @java.lang.Override @JsonSetter(value = "run_async", nulls = Nulls.SKIP) public _FinalStage runAsync(Optional runAsync) { @@ -163,6 +172,9 @@ public _FinalStage isDebugMode(Boolean isDebugMode) { return this; } + /** + *

            Whether to include debug fields (such as log file links) in the response.

            + */ @java.lang.Override @JsonSetter(value = "is_debug_mode", nulls = Nulls.SKIP) public _FinalStage isDebugMode(Optional isDebugMode) { diff --git a/src/main/java/com/merge/api/crm/types/CustomObject.java b/src/main/java/com/merge/api/crm/types/CustomObject.java index 0b4f604fb..fdd413877 100644 --- a/src/main/java/com/merge/api/crm/types/CustomObject.java +++ b/src/main/java/com/merge/api/crm/types/CustomObject.java @@ -193,6 +193,9 @@ public Builder id(String id) { return this; } + /** + *

            The third-party API ID of the matching object.

            + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; @@ -204,6 +207,9 @@ public Builder remoteId(String remoteId) { return this; } + /** + *

            The datetime that this object was created by Merge.

            + */ @JsonSetter(value = "created_at", nulls = Nulls.SKIP) public Builder createdAt(Optional createdAt) { this.createdAt = createdAt; @@ -215,6 +221,9 @@ public Builder createdAt(OffsetDateTime createdAt) { return this; } + /** + *

            The datetime that this object was modified by Merge.

            + */ @JsonSetter(value = "modified_at", nulls = Nulls.SKIP) public Builder modifiedAt(Optional modifiedAt) { this.modifiedAt = modifiedAt; @@ -226,6 +235,9 @@ public Builder modifiedAt(OffsetDateTime modifiedAt) { return this; } + /** + *

            The custom object class the custom object record belongs to.

            + */ @JsonSetter(value = "object_class", nulls = Nulls.SKIP) public Builder objectClass(Optional objectClass) { this.objectClass = objectClass; @@ -237,6 +249,9 @@ public Builder objectClass(String objectClass) { return this; } + /** + *

            The fields and values contained within the custom object record.

            + */ @JsonSetter(value = "fields", nulls = Nulls.SKIP) public Builder fields(Optional> fields) { this.fields = fields; diff --git a/src/main/java/com/merge/api/crm/types/CustomObjectClass.java b/src/main/java/com/merge/api/crm/types/CustomObjectClass.java index a1b27ae7e..9e33155aa 100644 --- a/src/main/java/com/merge/api/crm/types/CustomObjectClass.java +++ b/src/main/java/com/merge/api/crm/types/CustomObjectClass.java @@ -221,6 +221,9 @@ public Builder id(String id) { return this; } + /** + *

            The third-party API ID of the matching object.

            + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; @@ -254,6 +257,9 @@ public Builder modifiedAt(OffsetDateTime modifiedAt) { return this; } + /** + *

            The custom object class's name.

            + */ @JsonSetter(value = "name", nulls = Nulls.SKIP) public Builder name(Optional name) { this.name = name; @@ -265,6 +271,9 @@ public Builder name(String name) { return this; } + /** + *

            The custom object class's description.

            + */ @JsonSetter(value = "description", nulls = Nulls.SKIP) public Builder description(Optional description) { this.description = description; @@ -276,6 +285,9 @@ public Builder description(String description) { return this; } + /** + *

            The custom object class's singular and plural labels.

            + */ @JsonSetter(value = "labels", nulls = Nulls.SKIP) public Builder labels(Optional>> labels) { this.labels = labels; @@ -298,6 +310,9 @@ public Builder fields(List fields) { return this; } + /** + *

            The types of associations with other models that the custom object class can have.

            + */ @JsonSetter(value = "association_types", nulls = Nulls.SKIP) public Builder associationTypes(Optional>> associationTypes) { this.associationTypes = associationTypes; diff --git a/src/main/java/com/merge/api/crm/types/CustomObjectClassesAssociationTypesListRequest.java b/src/main/java/com/merge/api/crm/types/CustomObjectClassesAssociationTypesListRequest.java index 330c509be..64c0c06d5 100644 --- a/src/main/java/com/merge/api/crm/types/CustomObjectClassesAssociationTypesListRequest.java +++ b/src/main/java/com/merge/api/crm/types/CustomObjectClassesAssociationTypesListRequest.java @@ -257,6 +257,9 @@ public Builder from(CustomObjectClassesAssociationTypesListRequest other) { return this; } + /** + *

            Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.

            + */ @JsonSetter(value = "expand", nulls = Nulls.SKIP) public Builder expand(Optional> expand) { this.expand = expand; @@ -273,6 +276,9 @@ public Builder expand(String expand) { return this; } + /** + *

            If provided, will only return objects created after this datetime.

            + */ @JsonSetter(value = "created_after", nulls = Nulls.SKIP) public Builder createdAfter(Optional createdAfter) { this.createdAfter = createdAfter; @@ -284,6 +290,9 @@ public Builder createdAfter(OffsetDateTime createdAfter) { return this; } + /** + *

            If provided, will only return objects created before this datetime.

            + */ @JsonSetter(value = "created_before", nulls = Nulls.SKIP) public Builder createdBefore(Optional createdBefore) { this.createdBefore = createdBefore; @@ -295,6 +304,9 @@ public Builder createdBefore(OffsetDateTime createdBefore) { return this; } + /** + *

            The pagination cursor value.

            + */ @JsonSetter(value = "cursor", nulls = Nulls.SKIP) public Builder cursor(Optional cursor) { this.cursor = cursor; @@ -306,6 +318,9 @@ public Builder cursor(String cursor) { return this; } + /** + *

            Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

            + */ @JsonSetter(value = "include_deleted_data", nulls = Nulls.SKIP) public Builder includeDeletedData(Optional includeDeletedData) { this.includeDeletedData = includeDeletedData; @@ -317,6 +332,9 @@ public Builder includeDeletedData(Boolean includeDeletedData) { return this; } + /** + *

            Whether to include the original data Merge fetched from the third-party to produce these models.

            + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -328,6 +346,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

            Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

            + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; @@ -339,6 +360,9 @@ public Builder includeShellData(Boolean includeShellData) { return this; } + /** + *

            If provided, only objects synced by Merge after this date time will be returned.

            + */ @JsonSetter(value = "modified_after", nulls = Nulls.SKIP) public Builder modifiedAfter(Optional modifiedAfter) { this.modifiedAfter = modifiedAfter; @@ -350,6 +374,9 @@ public Builder modifiedAfter(OffsetDateTime modifiedAfter) { return this; } + /** + *

            If provided, only objects synced by Merge before this date time will be returned.

            + */ @JsonSetter(value = "modified_before", nulls = Nulls.SKIP) public Builder modifiedBefore(Optional modifiedBefore) { this.modifiedBefore = modifiedBefore; @@ -361,6 +388,9 @@ public Builder modifiedBefore(OffsetDateTime modifiedBefore) { return this; } + /** + *

            Number of results to return per page.

            + */ @JsonSetter(value = "page_size", nulls = Nulls.SKIP) public Builder pageSize(Optional pageSize) { this.pageSize = pageSize; @@ -372,6 +402,9 @@ public Builder pageSize(Integer pageSize) { return this; } + /** + *

            The API provider's ID for the given object.

            + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; diff --git a/src/main/java/com/merge/api/crm/types/CustomObjectClassesAssociationTypesRetrieveRequest.java b/src/main/java/com/merge/api/crm/types/CustomObjectClassesAssociationTypesRetrieveRequest.java index 94d5c9b2e..21e186f99 100644 --- a/src/main/java/com/merge/api/crm/types/CustomObjectClassesAssociationTypesRetrieveRequest.java +++ b/src/main/java/com/merge/api/crm/types/CustomObjectClassesAssociationTypesRetrieveRequest.java @@ -117,6 +117,9 @@ public Builder from(CustomObjectClassesAssociationTypesRetrieveRequest other) { return this; } + /** + *

            Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.

            + */ @JsonSetter(value = "expand", nulls = Nulls.SKIP) public Builder expand(Optional> expand) { this.expand = expand; @@ -133,6 +136,9 @@ public Builder expand(String expand) { return this; } + /** + *

            Whether to include the original data Merge fetched from the third-party to produce these models.

            + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -144,6 +150,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

            Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

            + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; diff --git a/src/main/java/com/merge/api/crm/types/CustomObjectClassesCustomObjectsAssociationsListRequest.java b/src/main/java/com/merge/api/crm/types/CustomObjectClassesCustomObjectsAssociationsListRequest.java index ce96d6534..612155551 100644 --- a/src/main/java/com/merge/api/crm/types/CustomObjectClassesCustomObjectsAssociationsListRequest.java +++ b/src/main/java/com/merge/api/crm/types/CustomObjectClassesCustomObjectsAssociationsListRequest.java @@ -274,6 +274,9 @@ public Builder from(CustomObjectClassesCustomObjectsAssociationsListRequest othe return this; } + /** + *

            Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.

            + */ @JsonSetter(value = "expand", nulls = Nulls.SKIP) public Builder expand(Optional> expand) { this.expand = expand; @@ -290,6 +293,9 @@ public Builder expand(String expand) { return this; } + /** + *

            If provided, will only return opportunities with this association_type.

            + */ @JsonSetter(value = "association_type_id", nulls = Nulls.SKIP) public Builder associationTypeId(Optional associationTypeId) { this.associationTypeId = associationTypeId; @@ -301,6 +307,9 @@ public Builder associationTypeId(String associationTypeId) { return this; } + /** + *

            If provided, will only return objects created after this datetime.

            + */ @JsonSetter(value = "created_after", nulls = Nulls.SKIP) public Builder createdAfter(Optional createdAfter) { this.createdAfter = createdAfter; @@ -312,6 +321,9 @@ public Builder createdAfter(OffsetDateTime createdAfter) { return this; } + /** + *

            If provided, will only return objects created before this datetime.

            + */ @JsonSetter(value = "created_before", nulls = Nulls.SKIP) public Builder createdBefore(Optional createdBefore) { this.createdBefore = createdBefore; @@ -323,6 +335,9 @@ public Builder createdBefore(OffsetDateTime createdBefore) { return this; } + /** + *

            The pagination cursor value.

            + */ @JsonSetter(value = "cursor", nulls = Nulls.SKIP) public Builder cursor(Optional cursor) { this.cursor = cursor; @@ -334,6 +349,9 @@ public Builder cursor(String cursor) { return this; } + /** + *

            Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

            + */ @JsonSetter(value = "include_deleted_data", nulls = Nulls.SKIP) public Builder includeDeletedData(Optional includeDeletedData) { this.includeDeletedData = includeDeletedData; @@ -345,6 +363,9 @@ public Builder includeDeletedData(Boolean includeDeletedData) { return this; } + /** + *

            Whether to include the original data Merge fetched from the third-party to produce these models.

            + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -356,6 +377,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

            Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

            + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; @@ -367,6 +391,9 @@ public Builder includeShellData(Boolean includeShellData) { return this; } + /** + *

            If provided, only objects synced by Merge after this date time will be returned.

            + */ @JsonSetter(value = "modified_after", nulls = Nulls.SKIP) public Builder modifiedAfter(Optional modifiedAfter) { this.modifiedAfter = modifiedAfter; @@ -378,6 +405,9 @@ public Builder modifiedAfter(OffsetDateTime modifiedAfter) { return this; } + /** + *

            If provided, only objects synced by Merge before this date time will be returned.

            + */ @JsonSetter(value = "modified_before", nulls = Nulls.SKIP) public Builder modifiedBefore(Optional modifiedBefore) { this.modifiedBefore = modifiedBefore; @@ -389,6 +419,9 @@ public Builder modifiedBefore(OffsetDateTime modifiedBefore) { return this; } + /** + *

            Number of results to return per page.

            + */ @JsonSetter(value = "page_size", nulls = Nulls.SKIP) public Builder pageSize(Optional pageSize) { this.pageSize = pageSize; @@ -400,6 +433,9 @@ public Builder pageSize(Integer pageSize) { return this; } + /** + *

            The API provider's ID for the given object.

            + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; diff --git a/src/main/java/com/merge/api/crm/types/CustomObjectClassesCustomObjectsAssociationsUpdateRequest.java b/src/main/java/com/merge/api/crm/types/CustomObjectClassesCustomObjectsAssociationsUpdateRequest.java index ffeb773a4..f1c4bdd39 100644 --- a/src/main/java/com/merge/api/crm/types/CustomObjectClassesCustomObjectsAssociationsUpdateRequest.java +++ b/src/main/java/com/merge/api/crm/types/CustomObjectClassesCustomObjectsAssociationsUpdateRequest.java @@ -96,6 +96,9 @@ public Builder from(CustomObjectClassesCustomObjectsAssociationsUpdateRequest ot return this; } + /** + *

            Whether to include debug fields (such as log file links) in the response.

            + */ @JsonSetter(value = "is_debug_mode", nulls = Nulls.SKIP) public Builder isDebugMode(Optional isDebugMode) { this.isDebugMode = isDebugMode; @@ -107,6 +110,9 @@ public Builder isDebugMode(Boolean isDebugMode) { return this; } + /** + *

            Whether or not third-party updates should be run asynchronously.

            + */ @JsonSetter(value = "run_async", nulls = Nulls.SKIP) public Builder runAsync(Optional runAsync) { this.runAsync = runAsync; diff --git a/src/main/java/com/merge/api/crm/types/CustomObjectClassesCustomObjectsListRequest.java b/src/main/java/com/merge/api/crm/types/CustomObjectClassesCustomObjectsListRequest.java index 205e272e9..e2d594db4 100644 --- a/src/main/java/com/merge/api/crm/types/CustomObjectClassesCustomObjectsListRequest.java +++ b/src/main/java/com/merge/api/crm/types/CustomObjectClassesCustomObjectsListRequest.java @@ -255,6 +255,9 @@ public Builder from(CustomObjectClassesCustomObjectsListRequest other) { return this; } + /** + *

            If provided, will only return objects created after this datetime.

            + */ @JsonSetter(value = "created_after", nulls = Nulls.SKIP) public Builder createdAfter(Optional createdAfter) { this.createdAfter = createdAfter; @@ -266,6 +269,9 @@ public Builder createdAfter(OffsetDateTime createdAfter) { return this; } + /** + *

            If provided, will only return objects created before this datetime.

            + */ @JsonSetter(value = "created_before", nulls = Nulls.SKIP) public Builder createdBefore(Optional createdBefore) { this.createdBefore = createdBefore; @@ -277,6 +283,9 @@ public Builder createdBefore(OffsetDateTime createdBefore) { return this; } + /** + *

            The pagination cursor value.

            + */ @JsonSetter(value = "cursor", nulls = Nulls.SKIP) public Builder cursor(Optional cursor) { this.cursor = cursor; @@ -288,6 +297,9 @@ public Builder cursor(String cursor) { return this; } + /** + *

            Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

            + */ @JsonSetter(value = "include_deleted_data", nulls = Nulls.SKIP) public Builder includeDeletedData(Optional includeDeletedData) { this.includeDeletedData = includeDeletedData; @@ -299,6 +311,9 @@ public Builder includeDeletedData(Boolean includeDeletedData) { return this; } + /** + *

            Whether to include the original data Merge fetched from the third-party to produce these models.

            + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -310,6 +325,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

            Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format.

            + */ @JsonSetter(value = "include_remote_fields", nulls = Nulls.SKIP) public Builder includeRemoteFields(Optional includeRemoteFields) { this.includeRemoteFields = includeRemoteFields; @@ -321,6 +339,9 @@ public Builder includeRemoteFields(Boolean includeRemoteFields) { return this; } + /** + *

            Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

            + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; @@ -332,6 +353,9 @@ public Builder includeShellData(Boolean includeShellData) { return this; } + /** + *

            If provided, only objects synced by Merge after this date time will be returned.

            + */ @JsonSetter(value = "modified_after", nulls = Nulls.SKIP) public Builder modifiedAfter(Optional modifiedAfter) { this.modifiedAfter = modifiedAfter; @@ -343,6 +367,9 @@ public Builder modifiedAfter(OffsetDateTime modifiedAfter) { return this; } + /** + *

            If provided, only objects synced by Merge before this date time will be returned.

            + */ @JsonSetter(value = "modified_before", nulls = Nulls.SKIP) public Builder modifiedBefore(Optional modifiedBefore) { this.modifiedBefore = modifiedBefore; @@ -354,6 +381,9 @@ public Builder modifiedBefore(OffsetDateTime modifiedBefore) { return this; } + /** + *

            Number of results to return per page.

            + */ @JsonSetter(value = "page_size", nulls = Nulls.SKIP) public Builder pageSize(Optional pageSize) { this.pageSize = pageSize; @@ -365,6 +395,9 @@ public Builder pageSize(Integer pageSize) { return this; } + /** + *

            The API provider's ID for the given object.

            + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; diff --git a/src/main/java/com/merge/api/crm/types/CustomObjectClassesCustomObjectsRemoteFieldClassesListRequest.java b/src/main/java/com/merge/api/crm/types/CustomObjectClassesCustomObjectsRemoteFieldClassesListRequest.java index b284a3814..959843de8 100644 --- a/src/main/java/com/merge/api/crm/types/CustomObjectClassesCustomObjectsRemoteFieldClassesListRequest.java +++ b/src/main/java/com/merge/api/crm/types/CustomObjectClassesCustomObjectsRemoteFieldClassesListRequest.java @@ -186,6 +186,9 @@ public Builder from(CustomObjectClassesCustomObjectsRemoteFieldClassesListReques return this; } + /** + *

            The pagination cursor value.

            + */ @JsonSetter(value = "cursor", nulls = Nulls.SKIP) public Builder cursor(Optional cursor) { this.cursor = cursor; @@ -197,6 +200,9 @@ public Builder cursor(String cursor) { return this; } + /** + *

            Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

            + */ @JsonSetter(value = "include_deleted_data", nulls = Nulls.SKIP) public Builder includeDeletedData(Optional includeDeletedData) { this.includeDeletedData = includeDeletedData; @@ -208,6 +214,9 @@ public Builder includeDeletedData(Boolean includeDeletedData) { return this; } + /** + *

            Whether to include the original data Merge fetched from the third-party to produce these models.

            + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -219,6 +228,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

            Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format.

            + */ @JsonSetter(value = "include_remote_fields", nulls = Nulls.SKIP) public Builder includeRemoteFields(Optional includeRemoteFields) { this.includeRemoteFields = includeRemoteFields; @@ -230,6 +242,9 @@ public Builder includeRemoteFields(Boolean includeRemoteFields) { return this; } + /** + *

            Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

            + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; @@ -241,6 +256,9 @@ public Builder includeShellData(Boolean includeShellData) { return this; } + /** + *

            If provided, will only return remote field classes with this is_common_model_field value

            + */ @JsonSetter(value = "is_common_model_field", nulls = Nulls.SKIP) public Builder isCommonModelField(Optional isCommonModelField) { this.isCommonModelField = isCommonModelField; @@ -252,6 +270,9 @@ public Builder isCommonModelField(Boolean isCommonModelField) { return this; } + /** + *

            Number of results to return per page.

            + */ @JsonSetter(value = "page_size", nulls = Nulls.SKIP) public Builder pageSize(Optional pageSize) { this.pageSize = pageSize; diff --git a/src/main/java/com/merge/api/crm/types/CustomObjectClassesCustomObjectsRetrieveRequest.java b/src/main/java/com/merge/api/crm/types/CustomObjectClassesCustomObjectsRetrieveRequest.java index ba2af3615..0ce690df1 100644 --- a/src/main/java/com/merge/api/crm/types/CustomObjectClassesCustomObjectsRetrieveRequest.java +++ b/src/main/java/com/merge/api/crm/types/CustomObjectClassesCustomObjectsRetrieveRequest.java @@ -115,6 +115,9 @@ public Builder from(CustomObjectClassesCustomObjectsRetrieveRequest other) { return this; } + /** + *

            Whether to include the original data Merge fetched from the third-party to produce these models.

            + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -126,6 +129,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

            Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format.

            + */ @JsonSetter(value = "include_remote_fields", nulls = Nulls.SKIP) public Builder includeRemoteFields(Optional includeRemoteFields) { this.includeRemoteFields = includeRemoteFields; @@ -137,6 +143,9 @@ public Builder includeRemoteFields(Boolean includeRemoteFields) { return this; } + /** + *

            Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

            + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; diff --git a/src/main/java/com/merge/api/crm/types/CustomObjectClassesListRequest.java b/src/main/java/com/merge/api/crm/types/CustomObjectClassesListRequest.java index 57bb9d210..9b965796e 100644 --- a/src/main/java/com/merge/api/crm/types/CustomObjectClassesListRequest.java +++ b/src/main/java/com/merge/api/crm/types/CustomObjectClassesListRequest.java @@ -256,6 +256,9 @@ public Builder from(CustomObjectClassesListRequest other) { return this; } + /** + *

            Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.

            + */ @JsonSetter(value = "expand", nulls = Nulls.SKIP) public Builder expand(Optional> expand) { this.expand = expand; @@ -272,6 +275,9 @@ public Builder expand(String expand) { return this; } + /** + *

            If provided, will only return objects created after this datetime.

            + */ @JsonSetter(value = "created_after", nulls = Nulls.SKIP) public Builder createdAfter(Optional createdAfter) { this.createdAfter = createdAfter; @@ -283,6 +289,9 @@ public Builder createdAfter(OffsetDateTime createdAfter) { return this; } + /** + *

            If provided, will only return objects created before this datetime.

            + */ @JsonSetter(value = "created_before", nulls = Nulls.SKIP) public Builder createdBefore(Optional createdBefore) { this.createdBefore = createdBefore; @@ -294,6 +303,9 @@ public Builder createdBefore(OffsetDateTime createdBefore) { return this; } + /** + *

            The pagination cursor value.

            + */ @JsonSetter(value = "cursor", nulls = Nulls.SKIP) public Builder cursor(Optional cursor) { this.cursor = cursor; @@ -305,6 +317,9 @@ public Builder cursor(String cursor) { return this; } + /** + *

            Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

            + */ @JsonSetter(value = "include_deleted_data", nulls = Nulls.SKIP) public Builder includeDeletedData(Optional includeDeletedData) { this.includeDeletedData = includeDeletedData; @@ -316,6 +331,9 @@ public Builder includeDeletedData(Boolean includeDeletedData) { return this; } + /** + *

            Whether to include the original data Merge fetched from the third-party to produce these models.

            + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -327,6 +345,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

            Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

            + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; @@ -338,6 +359,9 @@ public Builder includeShellData(Boolean includeShellData) { return this; } + /** + *

            If provided, only objects synced by Merge after this date time will be returned.

            + */ @JsonSetter(value = "modified_after", nulls = Nulls.SKIP) public Builder modifiedAfter(Optional modifiedAfter) { this.modifiedAfter = modifiedAfter; @@ -349,6 +373,9 @@ public Builder modifiedAfter(OffsetDateTime modifiedAfter) { return this; } + /** + *

            If provided, only objects synced by Merge before this date time will be returned.

            + */ @JsonSetter(value = "modified_before", nulls = Nulls.SKIP) public Builder modifiedBefore(Optional modifiedBefore) { this.modifiedBefore = modifiedBefore; @@ -360,6 +387,9 @@ public Builder modifiedBefore(OffsetDateTime modifiedBefore) { return this; } + /** + *

            Number of results to return per page.

            + */ @JsonSetter(value = "page_size", nulls = Nulls.SKIP) public Builder pageSize(Optional pageSize) { this.pageSize = pageSize; @@ -371,6 +401,9 @@ public Builder pageSize(Integer pageSize) { return this; } + /** + *

            The API provider's ID for the given object.

            + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; diff --git a/src/main/java/com/merge/api/crm/types/CustomObjectClassesRetrieveRequest.java b/src/main/java/com/merge/api/crm/types/CustomObjectClassesRetrieveRequest.java index 0eb44b9d2..b93f9105c 100644 --- a/src/main/java/com/merge/api/crm/types/CustomObjectClassesRetrieveRequest.java +++ b/src/main/java/com/merge/api/crm/types/CustomObjectClassesRetrieveRequest.java @@ -117,6 +117,9 @@ public Builder from(CustomObjectClassesRetrieveRequest other) { return this; } + /** + *

            Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.

            + */ @JsonSetter(value = "expand", nulls = Nulls.SKIP) public Builder expand(Optional> expand) { this.expand = expand; @@ -133,6 +136,9 @@ public Builder expand(String expand) { return this; } + /** + *

            Whether to include the original data Merge fetched from the third-party to produce these models.

            + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -144,6 +150,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

            Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

            + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; diff --git a/src/main/java/com/merge/api/crm/types/DataPassthroughRequest.java b/src/main/java/com/merge/api/crm/types/DataPassthroughRequest.java index 4dfac8ab7..2b753e764 100644 --- a/src/main/java/com/merge/api/crm/types/DataPassthroughRequest.java +++ b/src/main/java/com/merge/api/crm/types/DataPassthroughRequest.java @@ -171,24 +171,39 @@ public interface MethodStage { } public interface PathStage { + /** + * The path of the request in the third party's platform. + */ _FinalStage path(@NotNull String path); } public interface _FinalStage { DataPassthroughRequest build(); + /** + *

            An optional override of the third party's base url for the request.

            + */ _FinalStage baseUrlOverride(Optional baseUrlOverride); _FinalStage baseUrlOverride(String baseUrlOverride); + /** + *

            The data with the request. You must include a request_format parameter matching the data's format

            + */ _FinalStage data(Optional data); _FinalStage data(String data); + /** + *

            Pass an array of MultipartFormField objects in here instead of using the data param if request_format is set to MULTIPART.

            + */ _FinalStage multipartFormData(Optional> multipartFormData); _FinalStage multipartFormData(List multipartFormData); + /** + *

            The headers to use for the request (Merge will handle the account's authorization headers). Content-Type header is required for passthrough. Choose content type corresponding to expected format of receiving server.

            + */ _FinalStage headers(Optional> headers); _FinalStage headers(Map headers); @@ -197,6 +212,9 @@ public interface _FinalStage { _FinalStage requestFormat(RequestFormatEnum requestFormat); + /** + *

            Optional. If true, the response will always be an object of the form {"type": T, "value": ...} where T will be one of string, boolean, number, null, array, object.

            + */ _FinalStage normalizeResponse(Optional normalizeResponse); _FinalStage normalizeResponse(Boolean normalizeResponse); @@ -246,7 +264,7 @@ public PathStage method(@NotNull MethodEnum method) { } /** - *

            The path of the request in the third party's platform.

            + * The path of the request in the third party's platform.

            The path of the request in the third party's platform.

            * @return Reference to {@code this} so that method calls can be chained together. */ @java.lang.Override @@ -266,6 +284,9 @@ public _FinalStage normalizeResponse(Boolean normalizeResponse) { return this; } + /** + *

            Optional. If true, the response will always be an object of the form {"type": T, "value": ...} where T will be one of string, boolean, number, null, array, object.

            + */ @java.lang.Override @JsonSetter(value = "normalize_response", nulls = Nulls.SKIP) public _FinalStage normalizeResponse(Optional normalizeResponse) { @@ -296,6 +317,9 @@ public _FinalStage headers(Map headers) { return this; } + /** + *

            The headers to use for the request (Merge will handle the account's authorization headers). Content-Type header is required for passthrough. Choose content type corresponding to expected format of receiving server.

            + */ @java.lang.Override @JsonSetter(value = "headers", nulls = Nulls.SKIP) public _FinalStage headers(Optional> headers) { @@ -313,6 +337,9 @@ public _FinalStage multipartFormData(List multipartFo return this; } + /** + *

            Pass an array of MultipartFormField objects in here instead of using the data param if request_format is set to MULTIPART.

            + */ @java.lang.Override @JsonSetter(value = "multipart_form_data", nulls = Nulls.SKIP) public _FinalStage multipartFormData(Optional> multipartFormData) { @@ -330,6 +357,9 @@ public _FinalStage data(String data) { return this; } + /** + *

            The data with the request. You must include a request_format parameter matching the data's format

            + */ @java.lang.Override @JsonSetter(value = "data", nulls = Nulls.SKIP) public _FinalStage data(Optional data) { @@ -347,6 +377,9 @@ public _FinalStage baseUrlOverride(String baseUrlOverride) { return this; } + /** + *

            An optional override of the third party's base url for the request.

            + */ @java.lang.Override @JsonSetter(value = "base_url_override", nulls = Nulls.SKIP) public _FinalStage baseUrlOverride(Optional baseUrlOverride) { diff --git a/src/main/java/com/merge/api/crm/types/EmailAddress.java b/src/main/java/com/merge/api/crm/types/EmailAddress.java index e8c4f5241..6533562dd 100644 --- a/src/main/java/com/merge/api/crm/types/EmailAddress.java +++ b/src/main/java/com/merge/api/crm/types/EmailAddress.java @@ -131,6 +131,9 @@ public Builder from(EmailAddress other) { return this; } + /** + *

            The datetime that this object was created by Merge.

            + */ @JsonSetter(value = "created_at", nulls = Nulls.SKIP) public Builder createdAt(Optional createdAt) { this.createdAt = createdAt; @@ -142,6 +145,9 @@ public Builder createdAt(OffsetDateTime createdAt) { return this; } + /** + *

            The datetime that this object was modified by Merge.

            + */ @JsonSetter(value = "modified_at", nulls = Nulls.SKIP) public Builder modifiedAt(Optional modifiedAt) { this.modifiedAt = modifiedAt; @@ -153,6 +159,9 @@ public Builder modifiedAt(OffsetDateTime modifiedAt) { return this; } + /** + *

            The email address.

            + */ @JsonSetter(value = "email_address", nulls = Nulls.SKIP) public Builder emailAddress(Optional emailAddress) { this.emailAddress = emailAddress; @@ -164,6 +173,9 @@ public Builder emailAddress(String emailAddress) { return this; } + /** + *

            The email address's type.

            + */ @JsonSetter(value = "email_address_type", nulls = Nulls.SKIP) public Builder emailAddressType(Optional emailAddressType) { this.emailAddressType = emailAddressType; diff --git a/src/main/java/com/merge/api/crm/types/EmailAddressRequest.java b/src/main/java/com/merge/api/crm/types/EmailAddressRequest.java index b04441886..0d74047c9 100644 --- a/src/main/java/com/merge/api/crm/types/EmailAddressRequest.java +++ b/src/main/java/com/merge/api/crm/types/EmailAddressRequest.java @@ -125,6 +125,9 @@ public Builder from(EmailAddressRequest other) { return this; } + /** + *

            The email address.

            + */ @JsonSetter(value = "email_address", nulls = Nulls.SKIP) public Builder emailAddress(Optional emailAddress) { this.emailAddress = emailAddress; @@ -136,6 +139,9 @@ public Builder emailAddress(String emailAddress) { return this; } + /** + *

            The email address's type.

            + */ @JsonSetter(value = "email_address_type", nulls = Nulls.SKIP) public Builder emailAddressType(Optional emailAddressType) { this.emailAddressType = emailAddressType; diff --git a/src/main/java/com/merge/api/crm/types/EndUserDetailsRequest.java b/src/main/java/com/merge/api/crm/types/EndUserDetailsRequest.java index 433d505f7..61337f58d 100644 --- a/src/main/java/com/merge/api/crm/types/EndUserDetailsRequest.java +++ b/src/main/java/com/merge/api/crm/types/EndUserDetailsRequest.java @@ -249,48 +249,78 @@ public static EndUserEmailAddressStage builder() { } public interface EndUserEmailAddressStage { + /** + * Your end user's email address. This is purely for identification purposes - setting this value will not cause any emails to be sent. + */ EndUserOrganizationNameStage endUserEmailAddress(@NotNull String endUserEmailAddress); Builder from(EndUserDetailsRequest other); } public interface EndUserOrganizationNameStage { + /** + * Your end user's organization. + */ EndUserOriginIdStage endUserOrganizationName(@NotNull String endUserOrganizationName); } public interface EndUserOriginIdStage { + /** + * This unique identifier typically represents the ID for your end user in your product's database. This value must be distinct from other Linked Accounts' unique identifiers. + */ _FinalStage endUserOriginId(@NotNull String endUserOriginId); } public interface _FinalStage { EndUserDetailsRequest build(); + /** + *

            The integration categories to show in Merge Link.

            + */ _FinalStage categories(List categories); _FinalStage addCategories(CategoriesEnum categories); _FinalStage addAllCategories(List categories); + /** + *

            The slug of a specific pre-selected integration for this linking flow token. For examples of slugs, see https://docs.merge.dev/guides/merge-link/single-integration/.

            + */ _FinalStage integration(Optional integration); _FinalStage integration(String integration); + /** + *

            An integer number of minutes between [30, 720 or 10080 if for a Magic Link URL] for how long this token is valid. Defaults to 30.

            + */ _FinalStage linkExpiryMins(Optional linkExpiryMins); _FinalStage linkExpiryMins(Integer linkExpiryMins); + /** + *

            Whether to generate a Magic Link URL. Defaults to false. For more information on Magic Link, see https://merge.dev/blog/integrations-fast-say-hello-to-magic-link.

            + */ _FinalStage shouldCreateMagicLinkUrl(Optional shouldCreateMagicLinkUrl); _FinalStage shouldCreateMagicLinkUrl(Boolean shouldCreateMagicLinkUrl); + /** + *

            Whether to generate a Magic Link URL on the Admin Needed screen during the linking flow. Defaults to false. For more information on Magic Link, see https://merge.dev/blog/integrations-fast-say-hello-to-magic-link.

            + */ _FinalStage hideAdminMagicLink(Optional hideAdminMagicLink); _FinalStage hideAdminMagicLink(Boolean hideAdminMagicLink); + /** + *

            An array of objects to specify the models and fields that will be disabled for a given Linked Account. Each object uses model_id, enabled_actions, and disabled_fields to specify the model, method, and fields that are scoped for a given Linked Account.

            + */ _FinalStage commonModels(Optional> commonModels); _FinalStage commonModels(List commonModels); + /** + *

            When creating a Link Token, you can set permissions for Common Models that will apply to the account that is going to be linked. Any model or field not specified in link token payload will default to existing settings.

            + */ _FinalStage categoryCommonModelScopes( Optional>>> categoryCommonModelScopes); @@ -298,14 +328,27 @@ _FinalStage categoryCommonModelScopes( _FinalStage categoryCommonModelScopes( Map>> categoryCommonModelScopes); + /** + *

            The following subset of IETF language tags can be used to configure localization.

            + *
              + *
            • en - en
            • + *
            • de - de
            • + *
            + */ _FinalStage language(Optional language); _FinalStage language(LanguageEnum language); + /** + *

            The boolean that indicates whether initial, periodic, and force syncs will be disabled.

            + */ _FinalStage areSyncsDisabled(Optional areSyncsDisabled); _FinalStage areSyncsDisabled(Boolean areSyncsDisabled); + /** + *

            A JSON object containing integration-specific configuration options.

            + */ _FinalStage integrationSpecificConfig(Optional> integrationSpecificConfig); _FinalStage integrationSpecificConfig(Map integrationSpecificConfig); @@ -365,7 +408,7 @@ public Builder from(EndUserDetailsRequest other) { } /** - *

            Your end user's email address. This is purely for identification purposes - setting this value will not cause any emails to be sent.

            + * Your end user's email address. This is purely for identification purposes - setting this value will not cause any emails to be sent.

            Your end user's email address. This is purely for identification purposes - setting this value will not cause any emails to be sent.

            * @return Reference to {@code this} so that method calls can be chained together. */ @java.lang.Override @@ -376,7 +419,7 @@ public EndUserOrganizationNameStage endUserEmailAddress(@NotNull String endUserE } /** - *

            Your end user's organization.

            + * Your end user's organization.

            Your end user's organization.

            * @return Reference to {@code this} so that method calls can be chained together. */ @java.lang.Override @@ -387,7 +430,7 @@ public EndUserOriginIdStage endUserOrganizationName(@NotNull String endUserOrgan } /** - *

            This unique identifier typically represents the ID for your end user in your product's database. This value must be distinct from other Linked Accounts' unique identifiers.

            + * This unique identifier typically represents the ID for your end user in your product's database. This value must be distinct from other Linked Accounts' unique identifiers.

            This unique identifier typically represents the ID for your end user in your product's database. This value must be distinct from other Linked Accounts' unique identifiers.

            * @return Reference to {@code this} so that method calls can be chained together. */ @java.lang.Override @@ -407,6 +450,9 @@ public _FinalStage integrationSpecificConfig(Map integrationSp return this; } + /** + *

            A JSON object containing integration-specific configuration options.

            + */ @java.lang.Override @JsonSetter(value = "integration_specific_config", nulls = Nulls.SKIP) public _FinalStage integrationSpecificConfig(Optional> integrationSpecificConfig) { @@ -424,6 +470,9 @@ public _FinalStage areSyncsDisabled(Boolean areSyncsDisabled) { return this; } + /** + *

            The boolean that indicates whether initial, periodic, and force syncs will be disabled.

            + */ @java.lang.Override @JsonSetter(value = "are_syncs_disabled", nulls = Nulls.SKIP) public _FinalStage areSyncsDisabled(Optional areSyncsDisabled) { @@ -445,6 +494,13 @@ public _FinalStage language(LanguageEnum language) { return this; } + /** + *

            The following subset of IETF language tags can be used to configure localization.

            + *
              + *
            • en - en
            • + *
            • de - de
            • + *
            + */ @java.lang.Override @JsonSetter(value = "language", nulls = Nulls.SKIP) public _FinalStage language(Optional language) { @@ -463,6 +519,9 @@ public _FinalStage categoryCommonModelScopes( return this; } + /** + *

            When creating a Link Token, you can set permissions for Common Models that will apply to the account that is going to be linked. Any model or field not specified in link token payload will default to existing settings.

            + */ @java.lang.Override @JsonSetter(value = "category_common_model_scopes", nulls = Nulls.SKIP) public _FinalStage categoryCommonModelScopes( @@ -482,6 +541,9 @@ public _FinalStage commonModels(List commonModels) return this; } + /** + *

            An array of objects to specify the models and fields that will be disabled for a given Linked Account. Each object uses model_id, enabled_actions, and disabled_fields to specify the model, method, and fields that are scoped for a given Linked Account.

            + */ @java.lang.Override @JsonSetter(value = "common_models", nulls = Nulls.SKIP) public _FinalStage commonModels(Optional> commonModels) { @@ -499,6 +561,9 @@ public _FinalStage hideAdminMagicLink(Boolean hideAdminMagicLink) { return this; } + /** + *

            Whether to generate a Magic Link URL on the Admin Needed screen during the linking flow. Defaults to false. For more information on Magic Link, see https://merge.dev/blog/integrations-fast-say-hello-to-magic-link.

            + */ @java.lang.Override @JsonSetter(value = "hide_admin_magic_link", nulls = Nulls.SKIP) public _FinalStage hideAdminMagicLink(Optional hideAdminMagicLink) { @@ -516,6 +581,9 @@ public _FinalStage shouldCreateMagicLinkUrl(Boolean shouldCreateMagicLinkUrl) { return this; } + /** + *

            Whether to generate a Magic Link URL. Defaults to false. For more information on Magic Link, see https://merge.dev/blog/integrations-fast-say-hello-to-magic-link.

            + */ @java.lang.Override @JsonSetter(value = "should_create_magic_link_url", nulls = Nulls.SKIP) public _FinalStage shouldCreateMagicLinkUrl(Optional shouldCreateMagicLinkUrl) { @@ -533,6 +601,9 @@ public _FinalStage linkExpiryMins(Integer linkExpiryMins) { return this; } + /** + *

            An integer number of minutes between [30, 720 or 10080 if for a Magic Link URL] for how long this token is valid. Defaults to 30.

            + */ @java.lang.Override @JsonSetter(value = "link_expiry_mins", nulls = Nulls.SKIP) public _FinalStage linkExpiryMins(Optional linkExpiryMins) { @@ -550,6 +621,9 @@ public _FinalStage integration(String integration) { return this; } + /** + *

            The slug of a specific pre-selected integration for this linking flow token. For examples of slugs, see https://docs.merge.dev/guides/merge-link/single-integration/.

            + */ @java.lang.Override @JsonSetter(value = "integration", nulls = Nulls.SKIP) public _FinalStage integration(Optional integration) { @@ -577,6 +651,9 @@ public _FinalStage addCategories(CategoriesEnum categories) { return this; } + /** + *

            The integration categories to show in Merge Link.

            + */ @java.lang.Override @JsonSetter(value = "categories", nulls = Nulls.SKIP) public _FinalStage categories(List categories) { diff --git a/src/main/java/com/merge/api/crm/types/Engagement.java b/src/main/java/com/merge/api/crm/types/Engagement.java index c9392c271..5afbea003 100644 --- a/src/main/java/com/merge/api/crm/types/Engagement.java +++ b/src/main/java/com/merge/api/crm/types/Engagement.java @@ -358,6 +358,9 @@ public Builder id(String id) { return this; } + /** + *

            The third-party API ID of the matching object.

            + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; @@ -369,6 +372,9 @@ public Builder remoteId(String remoteId) { return this; } + /** + *

            The datetime that this object was created by Merge.

            + */ @JsonSetter(value = "created_at", nulls = Nulls.SKIP) public Builder createdAt(Optional createdAt) { this.createdAt = createdAt; @@ -380,6 +386,9 @@ public Builder createdAt(OffsetDateTime createdAt) { return this; } + /** + *

            The datetime that this object was modified by Merge.

            + */ @JsonSetter(value = "modified_at", nulls = Nulls.SKIP) public Builder modifiedAt(Optional modifiedAt) { this.modifiedAt = modifiedAt; @@ -391,6 +400,9 @@ public Builder modifiedAt(OffsetDateTime modifiedAt) { return this; } + /** + *

            The engagement's owner.

            + */ @JsonSetter(value = "owner", nulls = Nulls.SKIP) public Builder owner(Optional owner) { this.owner = owner; @@ -402,6 +414,9 @@ public Builder owner(EngagementOwner owner) { return this; } + /** + *

            The engagement's content.

            + */ @JsonSetter(value = "content", nulls = Nulls.SKIP) public Builder content(Optional content) { this.content = content; @@ -413,6 +428,9 @@ public Builder content(String content) { return this; } + /** + *

            The engagement's subject.

            + */ @JsonSetter(value = "subject", nulls = Nulls.SKIP) public Builder subject(Optional subject) { this.subject = subject; @@ -424,6 +442,13 @@ public Builder subject(String subject) { return this; } + /** + *

            The engagement's direction.

            + *
              + *
            • INBOUND - INBOUND
            • + *
            • OUTBOUND - OUTBOUND
            • + *
            + */ @JsonSetter(value = "direction", nulls = Nulls.SKIP) public Builder direction(Optional direction) { this.direction = direction; @@ -435,6 +460,9 @@ public Builder direction(DirectionEnum direction) { return this; } + /** + *

            The engagement type of the engagement.

            + */ @JsonSetter(value = "engagement_type", nulls = Nulls.SKIP) public Builder engagementType(Optional engagementType) { this.engagementType = engagementType; @@ -446,6 +474,9 @@ public Builder engagementType(EngagementEngagementType engagementType) { return this; } + /** + *

            The time at which the engagement started.

            + */ @JsonSetter(value = "start_time", nulls = Nulls.SKIP) public Builder startTime(Optional startTime) { this.startTime = startTime; @@ -457,6 +488,9 @@ public Builder startTime(OffsetDateTime startTime) { return this; } + /** + *

            The time at which the engagement ended.

            + */ @JsonSetter(value = "end_time", nulls = Nulls.SKIP) public Builder endTime(Optional endTime) { this.endTime = endTime; @@ -468,6 +502,9 @@ public Builder endTime(OffsetDateTime endTime) { return this; } + /** + *

            The account of the engagement.

            + */ @JsonSetter(value = "account", nulls = Nulls.SKIP) public Builder account(Optional account) { this.account = account; @@ -490,6 +527,9 @@ public Builder contacts(List> contacts) { return this; } + /** + *

            Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

            + */ @JsonSetter(value = "remote_was_deleted", nulls = Nulls.SKIP) public Builder remoteWasDeleted(Optional remoteWasDeleted) { this.remoteWasDeleted = remoteWasDeleted; diff --git a/src/main/java/com/merge/api/crm/types/EngagementEndpointRequest.java b/src/main/java/com/merge/api/crm/types/EngagementEndpointRequest.java index 1f8e10c38..32ad5659f 100644 --- a/src/main/java/com/merge/api/crm/types/EngagementEndpointRequest.java +++ b/src/main/java/com/merge/api/crm/types/EngagementEndpointRequest.java @@ -99,10 +99,16 @@ public interface ModelStage { public interface _FinalStage { EngagementEndpointRequest build(); + /** + *

            Whether to include debug fields (such as log file links) in the response.

            + */ _FinalStage isDebugMode(Optional isDebugMode); _FinalStage isDebugMode(Boolean isDebugMode); + /** + *

            Whether or not third-party updates should be run asynchronously.

            + */ _FinalStage runAsync(Optional runAsync); _FinalStage runAsync(Boolean runAsync); @@ -146,6 +152,9 @@ public _FinalStage runAsync(Boolean runAsync) { return this; } + /** + *

            Whether or not third-party updates should be run asynchronously.

            + */ @java.lang.Override @JsonSetter(value = "run_async", nulls = Nulls.SKIP) public _FinalStage runAsync(Optional runAsync) { @@ -163,6 +172,9 @@ public _FinalStage isDebugMode(Boolean isDebugMode) { return this; } + /** + *

            Whether to include debug fields (such as log file links) in the response.

            + */ @java.lang.Override @JsonSetter(value = "is_debug_mode", nulls = Nulls.SKIP) public _FinalStage isDebugMode(Optional isDebugMode) { diff --git a/src/main/java/com/merge/api/crm/types/EngagementRequest.java b/src/main/java/com/merge/api/crm/types/EngagementRequest.java index b29e261a0..8551e4daa 100644 --- a/src/main/java/com/merge/api/crm/types/EngagementRequest.java +++ b/src/main/java/com/merge/api/crm/types/EngagementRequest.java @@ -265,6 +265,9 @@ public Builder from(EngagementRequest other) { return this; } + /** + *

            The engagement's owner.

            + */ @JsonSetter(value = "owner", nulls = Nulls.SKIP) public Builder owner(Optional owner) { this.owner = owner; @@ -276,6 +279,9 @@ public Builder owner(EngagementRequestOwner owner) { return this; } + /** + *

            The engagement's content.

            + */ @JsonSetter(value = "content", nulls = Nulls.SKIP) public Builder content(Optional content) { this.content = content; @@ -287,6 +293,9 @@ public Builder content(String content) { return this; } + /** + *

            The engagement's subject.

            + */ @JsonSetter(value = "subject", nulls = Nulls.SKIP) public Builder subject(Optional subject) { this.subject = subject; @@ -298,6 +307,13 @@ public Builder subject(String subject) { return this; } + /** + *

            The engagement's direction.

            + *
              + *
            • INBOUND - INBOUND
            • + *
            • OUTBOUND - OUTBOUND
            • + *
            + */ @JsonSetter(value = "direction", nulls = Nulls.SKIP) public Builder direction(Optional direction) { this.direction = direction; @@ -309,6 +325,9 @@ public Builder direction(DirectionEnum direction) { return this; } + /** + *

            The engagement type of the engagement.

            + */ @JsonSetter(value = "engagement_type", nulls = Nulls.SKIP) public Builder engagementType(Optional engagementType) { this.engagementType = engagementType; @@ -320,6 +339,9 @@ public Builder engagementType(EngagementRequestEngagementType engagementType) { return this; } + /** + *

            The time at which the engagement started.

            + */ @JsonSetter(value = "start_time", nulls = Nulls.SKIP) public Builder startTime(Optional startTime) { this.startTime = startTime; @@ -331,6 +353,9 @@ public Builder startTime(OffsetDateTime startTime) { return this; } + /** + *

            The time at which the engagement ended.

            + */ @JsonSetter(value = "end_time", nulls = Nulls.SKIP) public Builder endTime(Optional endTime) { this.endTime = endTime; @@ -342,6 +367,9 @@ public Builder endTime(OffsetDateTime endTime) { return this; } + /** + *

            The account of the engagement.

            + */ @JsonSetter(value = "account", nulls = Nulls.SKIP) public Builder account(Optional account) { this.account = account; diff --git a/src/main/java/com/merge/api/crm/types/EngagementType.java b/src/main/java/com/merge/api/crm/types/EngagementType.java index efb597bd6..ceaf13298 100644 --- a/src/main/java/com/merge/api/crm/types/EngagementType.java +++ b/src/main/java/com/merge/api/crm/types/EngagementType.java @@ -197,6 +197,9 @@ public Builder id(String id) { return this; } + /** + *

            The third-party API ID of the matching object.

            + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; @@ -208,6 +211,9 @@ public Builder remoteId(String remoteId) { return this; } + /** + *

            The datetime that this object was created by Merge.

            + */ @JsonSetter(value = "created_at", nulls = Nulls.SKIP) public Builder createdAt(Optional createdAt) { this.createdAt = createdAt; @@ -219,6 +225,9 @@ public Builder createdAt(OffsetDateTime createdAt) { return this; } + /** + *

            The datetime that this object was modified by Merge.

            + */ @JsonSetter(value = "modified_at", nulls = Nulls.SKIP) public Builder modifiedAt(Optional modifiedAt) { this.modifiedAt = modifiedAt; @@ -230,6 +239,14 @@ public Builder modifiedAt(OffsetDateTime modifiedAt) { return this; } + /** + *

            The engagement type's activity type.

            + *
              + *
            • CALL - CALL
            • + *
            • MEETING - MEETING
            • + *
            • EMAIL - EMAIL
            • + *
            + */ @JsonSetter(value = "activity_type", nulls = Nulls.SKIP) public Builder activityType(Optional activityType) { this.activityType = activityType; @@ -241,6 +258,9 @@ public Builder activityType(ActivityTypeEnum activityType) { return this; } + /** + *

            The engagement type's name.

            + */ @JsonSetter(value = "name", nulls = Nulls.SKIP) public Builder name(Optional name) { this.name = name; diff --git a/src/main/java/com/merge/api/crm/types/EngagementTypesListRequest.java b/src/main/java/com/merge/api/crm/types/EngagementTypesListRequest.java index 6345a67e8..d5b09e2ce 100644 --- a/src/main/java/com/merge/api/crm/types/EngagementTypesListRequest.java +++ b/src/main/java/com/merge/api/crm/types/EngagementTypesListRequest.java @@ -254,6 +254,9 @@ public Builder from(EngagementTypesListRequest other) { return this; } + /** + *

            If provided, will only return objects created after this datetime.

            + */ @JsonSetter(value = "created_after", nulls = Nulls.SKIP) public Builder createdAfter(Optional createdAfter) { this.createdAfter = createdAfter; @@ -265,6 +268,9 @@ public Builder createdAfter(OffsetDateTime createdAfter) { return this; } + /** + *

            If provided, will only return objects created before this datetime.

            + */ @JsonSetter(value = "created_before", nulls = Nulls.SKIP) public Builder createdBefore(Optional createdBefore) { this.createdBefore = createdBefore; @@ -276,6 +282,9 @@ public Builder createdBefore(OffsetDateTime createdBefore) { return this; } + /** + *

            The pagination cursor value.

            + */ @JsonSetter(value = "cursor", nulls = Nulls.SKIP) public Builder cursor(Optional cursor) { this.cursor = cursor; @@ -287,6 +296,9 @@ public Builder cursor(String cursor) { return this; } + /** + *

            Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

            + */ @JsonSetter(value = "include_deleted_data", nulls = Nulls.SKIP) public Builder includeDeletedData(Optional includeDeletedData) { this.includeDeletedData = includeDeletedData; @@ -298,6 +310,9 @@ public Builder includeDeletedData(Boolean includeDeletedData) { return this; } + /** + *

            Whether to include the original data Merge fetched from the third-party to produce these models.

            + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -309,6 +324,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

            Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format.

            + */ @JsonSetter(value = "include_remote_fields", nulls = Nulls.SKIP) public Builder includeRemoteFields(Optional includeRemoteFields) { this.includeRemoteFields = includeRemoteFields; @@ -320,6 +338,9 @@ public Builder includeRemoteFields(Boolean includeRemoteFields) { return this; } + /** + *

            Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

            + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; @@ -331,6 +352,9 @@ public Builder includeShellData(Boolean includeShellData) { return this; } + /** + *

            If provided, only objects synced by Merge after this date time will be returned.

            + */ @JsonSetter(value = "modified_after", nulls = Nulls.SKIP) public Builder modifiedAfter(Optional modifiedAfter) { this.modifiedAfter = modifiedAfter; @@ -342,6 +366,9 @@ public Builder modifiedAfter(OffsetDateTime modifiedAfter) { return this; } + /** + *

            If provided, only objects synced by Merge before this date time will be returned.

            + */ @JsonSetter(value = "modified_before", nulls = Nulls.SKIP) public Builder modifiedBefore(Optional modifiedBefore) { this.modifiedBefore = modifiedBefore; @@ -353,6 +380,9 @@ public Builder modifiedBefore(OffsetDateTime modifiedBefore) { return this; } + /** + *

            Number of results to return per page.

            + */ @JsonSetter(value = "page_size", nulls = Nulls.SKIP) public Builder pageSize(Optional pageSize) { this.pageSize = pageSize; @@ -364,6 +394,9 @@ public Builder pageSize(Integer pageSize) { return this; } + /** + *

            The API provider's ID for the given object.

            + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; diff --git a/src/main/java/com/merge/api/crm/types/EngagementTypesRemoteFieldClassesListRequest.java b/src/main/java/com/merge/api/crm/types/EngagementTypesRemoteFieldClassesListRequest.java index dc0c383cd..beb62050e 100644 --- a/src/main/java/com/merge/api/crm/types/EngagementTypesRemoteFieldClassesListRequest.java +++ b/src/main/java/com/merge/api/crm/types/EngagementTypesRemoteFieldClassesListRequest.java @@ -186,6 +186,9 @@ public Builder from(EngagementTypesRemoteFieldClassesListRequest other) { return this; } + /** + *

            The pagination cursor value.

            + */ @JsonSetter(value = "cursor", nulls = Nulls.SKIP) public Builder cursor(Optional cursor) { this.cursor = cursor; @@ -197,6 +200,9 @@ public Builder cursor(String cursor) { return this; } + /** + *

            Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

            + */ @JsonSetter(value = "include_deleted_data", nulls = Nulls.SKIP) public Builder includeDeletedData(Optional includeDeletedData) { this.includeDeletedData = includeDeletedData; @@ -208,6 +214,9 @@ public Builder includeDeletedData(Boolean includeDeletedData) { return this; } + /** + *

            Whether to include the original data Merge fetched from the third-party to produce these models.

            + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -219,6 +228,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

            Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format.

            + */ @JsonSetter(value = "include_remote_fields", nulls = Nulls.SKIP) public Builder includeRemoteFields(Optional includeRemoteFields) { this.includeRemoteFields = includeRemoteFields; @@ -230,6 +242,9 @@ public Builder includeRemoteFields(Boolean includeRemoteFields) { return this; } + /** + *

            Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

            + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; @@ -241,6 +256,9 @@ public Builder includeShellData(Boolean includeShellData) { return this; } + /** + *

            If provided, will only return remote field classes with this is_common_model_field value

            + */ @JsonSetter(value = "is_common_model_field", nulls = Nulls.SKIP) public Builder isCommonModelField(Optional isCommonModelField) { this.isCommonModelField = isCommonModelField; @@ -252,6 +270,9 @@ public Builder isCommonModelField(Boolean isCommonModelField) { return this; } + /** + *

            Number of results to return per page.

            + */ @JsonSetter(value = "page_size", nulls = Nulls.SKIP) public Builder pageSize(Optional pageSize) { this.pageSize = pageSize; diff --git a/src/main/java/com/merge/api/crm/types/EngagementTypesRetrieveRequest.java b/src/main/java/com/merge/api/crm/types/EngagementTypesRetrieveRequest.java index 236c93321..206a1fe9f 100644 --- a/src/main/java/com/merge/api/crm/types/EngagementTypesRetrieveRequest.java +++ b/src/main/java/com/merge/api/crm/types/EngagementTypesRetrieveRequest.java @@ -114,6 +114,9 @@ public Builder from(EngagementTypesRetrieveRequest other) { return this; } + /** + *

            Whether to include the original data Merge fetched from the third-party to produce these models.

            + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -125,6 +128,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

            Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format.

            + */ @JsonSetter(value = "include_remote_fields", nulls = Nulls.SKIP) public Builder includeRemoteFields(Optional includeRemoteFields) { this.includeRemoteFields = includeRemoteFields; @@ -136,6 +142,9 @@ public Builder includeRemoteFields(Boolean includeRemoteFields) { return this; } + /** + *

            Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

            + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; diff --git a/src/main/java/com/merge/api/crm/types/EngagementsListRequest.java b/src/main/java/com/merge/api/crm/types/EngagementsListRequest.java index 27adfbf7f..8bc870e87 100644 --- a/src/main/java/com/merge/api/crm/types/EngagementsListRequest.java +++ b/src/main/java/com/merge/api/crm/types/EngagementsListRequest.java @@ -307,6 +307,9 @@ public Builder from(EngagementsListRequest other) { return this; } + /** + *

            Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.

            + */ @JsonSetter(value = "expand", nulls = Nulls.SKIP) public Builder expand(Optional> expand) { this.expand = expand; @@ -323,6 +326,9 @@ public Builder expand(EngagementsListRequestExpandItem expand) { return this; } + /** + *

            If provided, will only return objects created after this datetime.

            + */ @JsonSetter(value = "created_after", nulls = Nulls.SKIP) public Builder createdAfter(Optional createdAfter) { this.createdAfter = createdAfter; @@ -334,6 +340,9 @@ public Builder createdAfter(OffsetDateTime createdAfter) { return this; } + /** + *

            If provided, will only return objects created before this datetime.

            + */ @JsonSetter(value = "created_before", nulls = Nulls.SKIP) public Builder createdBefore(Optional createdBefore) { this.createdBefore = createdBefore; @@ -345,6 +354,9 @@ public Builder createdBefore(OffsetDateTime createdBefore) { return this; } + /** + *

            The pagination cursor value.

            + */ @JsonSetter(value = "cursor", nulls = Nulls.SKIP) public Builder cursor(Optional cursor) { this.cursor = cursor; @@ -356,6 +368,9 @@ public Builder cursor(String cursor) { return this; } + /** + *

            Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

            + */ @JsonSetter(value = "include_deleted_data", nulls = Nulls.SKIP) public Builder includeDeletedData(Optional includeDeletedData) { this.includeDeletedData = includeDeletedData; @@ -367,6 +382,9 @@ public Builder includeDeletedData(Boolean includeDeletedData) { return this; } + /** + *

            Whether to include the original data Merge fetched from the third-party to produce these models.

            + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -378,6 +396,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

            Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format.

            + */ @JsonSetter(value = "include_remote_fields", nulls = Nulls.SKIP) public Builder includeRemoteFields(Optional includeRemoteFields) { this.includeRemoteFields = includeRemoteFields; @@ -389,6 +410,9 @@ public Builder includeRemoteFields(Boolean includeRemoteFields) { return this; } + /** + *

            Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

            + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; @@ -400,6 +424,9 @@ public Builder includeShellData(Boolean includeShellData) { return this; } + /** + *

            If provided, only objects synced by Merge after this date time will be returned.

            + */ @JsonSetter(value = "modified_after", nulls = Nulls.SKIP) public Builder modifiedAfter(Optional modifiedAfter) { this.modifiedAfter = modifiedAfter; @@ -411,6 +438,9 @@ public Builder modifiedAfter(OffsetDateTime modifiedAfter) { return this; } + /** + *

            If provided, only objects synced by Merge before this date time will be returned.

            + */ @JsonSetter(value = "modified_before", nulls = Nulls.SKIP) public Builder modifiedBefore(Optional modifiedBefore) { this.modifiedBefore = modifiedBefore; @@ -422,6 +452,9 @@ public Builder modifiedBefore(OffsetDateTime modifiedBefore) { return this; } + /** + *

            Number of results to return per page.

            + */ @JsonSetter(value = "page_size", nulls = Nulls.SKIP) public Builder pageSize(Optional pageSize) { this.pageSize = pageSize; @@ -433,6 +466,9 @@ public Builder pageSize(Integer pageSize) { return this; } + /** + *

            The API provider's ID for the given object.

            + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; @@ -444,6 +480,9 @@ public Builder remoteId(String remoteId) { return this; } + /** + *

            If provided, will only return engagements started after this datetime.

            + */ @JsonSetter(value = "started_after", nulls = Nulls.SKIP) public Builder startedAfter(Optional startedAfter) { this.startedAfter = startedAfter; @@ -455,6 +494,9 @@ public Builder startedAfter(OffsetDateTime startedAfter) { return this; } + /** + *

            If provided, will only return engagements started before this datetime.

            + */ @JsonSetter(value = "started_before", nulls = Nulls.SKIP) public Builder startedBefore(Optional startedBefore) { this.startedBefore = startedBefore; diff --git a/src/main/java/com/merge/api/crm/types/EngagementsRemoteFieldClassesListRequest.java b/src/main/java/com/merge/api/crm/types/EngagementsRemoteFieldClassesListRequest.java index f78f2d9af..d47347853 100644 --- a/src/main/java/com/merge/api/crm/types/EngagementsRemoteFieldClassesListRequest.java +++ b/src/main/java/com/merge/api/crm/types/EngagementsRemoteFieldClassesListRequest.java @@ -186,6 +186,9 @@ public Builder from(EngagementsRemoteFieldClassesListRequest other) { return this; } + /** + *

            The pagination cursor value.

            + */ @JsonSetter(value = "cursor", nulls = Nulls.SKIP) public Builder cursor(Optional cursor) { this.cursor = cursor; @@ -197,6 +200,9 @@ public Builder cursor(String cursor) { return this; } + /** + *

            Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

            + */ @JsonSetter(value = "include_deleted_data", nulls = Nulls.SKIP) public Builder includeDeletedData(Optional includeDeletedData) { this.includeDeletedData = includeDeletedData; @@ -208,6 +214,9 @@ public Builder includeDeletedData(Boolean includeDeletedData) { return this; } + /** + *

            Whether to include the original data Merge fetched from the third-party to produce these models.

            + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -219,6 +228,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

            Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format.

            + */ @JsonSetter(value = "include_remote_fields", nulls = Nulls.SKIP) public Builder includeRemoteFields(Optional includeRemoteFields) { this.includeRemoteFields = includeRemoteFields; @@ -230,6 +242,9 @@ public Builder includeRemoteFields(Boolean includeRemoteFields) { return this; } + /** + *

            Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

            + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; @@ -241,6 +256,9 @@ public Builder includeShellData(Boolean includeShellData) { return this; } + /** + *

            If provided, will only return remote field classes with this is_common_model_field value

            + */ @JsonSetter(value = "is_common_model_field", nulls = Nulls.SKIP) public Builder isCommonModelField(Optional isCommonModelField) { this.isCommonModelField = isCommonModelField; @@ -252,6 +270,9 @@ public Builder isCommonModelField(Boolean isCommonModelField) { return this; } + /** + *

            Number of results to return per page.

            + */ @JsonSetter(value = "page_size", nulls = Nulls.SKIP) public Builder pageSize(Optional pageSize) { this.pageSize = pageSize; diff --git a/src/main/java/com/merge/api/crm/types/EngagementsRetrieveRequest.java b/src/main/java/com/merge/api/crm/types/EngagementsRetrieveRequest.java index 66f8f8edf..b7457dd0a 100644 --- a/src/main/java/com/merge/api/crm/types/EngagementsRetrieveRequest.java +++ b/src/main/java/com/merge/api/crm/types/EngagementsRetrieveRequest.java @@ -132,6 +132,9 @@ public Builder from(EngagementsRetrieveRequest other) { return this; } + /** + *

            Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.

            + */ @JsonSetter(value = "expand", nulls = Nulls.SKIP) public Builder expand(Optional> expand) { this.expand = expand; @@ -148,6 +151,9 @@ public Builder expand(EngagementsRetrieveRequestExpandItem expand) { return this; } + /** + *

            Whether to include the original data Merge fetched from the third-party to produce these models.

            + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -159,6 +165,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

            Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format.

            + */ @JsonSetter(value = "include_remote_fields", nulls = Nulls.SKIP) public Builder includeRemoteFields(Optional includeRemoteFields) { this.includeRemoteFields = includeRemoteFields; @@ -170,6 +179,9 @@ public Builder includeRemoteFields(Boolean includeRemoteFields) { return this; } + /** + *

            Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

            + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; diff --git a/src/main/java/com/merge/api/crm/types/FieldMappingsRetrieveRequest.java b/src/main/java/com/merge/api/crm/types/FieldMappingsRetrieveRequest.java index 1080db84b..cefb77fe2 100644 --- a/src/main/java/com/merge/api/crm/types/FieldMappingsRetrieveRequest.java +++ b/src/main/java/com/merge/api/crm/types/FieldMappingsRetrieveRequest.java @@ -81,6 +81,9 @@ public Builder from(FieldMappingsRetrieveRequest other) { return this; } + /** + *

            If true, remote fields metadata is excluded from each field mapping instance (i.e. remote_fields.remote_key_name and remote_fields.schema will be null). This will increase the speed of the request since these fields require some calculations.

            + */ @JsonSetter(value = "exclude_remote_field_metadata", nulls = Nulls.SKIP) public Builder excludeRemoteFieldMetadata(Optional excludeRemoteFieldMetadata) { this.excludeRemoteFieldMetadata = excludeRemoteFieldMetadata; diff --git a/src/main/java/com/merge/api/crm/types/GenerateRemoteKeyRequest.java b/src/main/java/com/merge/api/crm/types/GenerateRemoteKeyRequest.java index 3f4cc5646..9fc64996a 100644 --- a/src/main/java/com/merge/api/crm/types/GenerateRemoteKeyRequest.java +++ b/src/main/java/com/merge/api/crm/types/GenerateRemoteKeyRequest.java @@ -66,6 +66,9 @@ public static NameStage builder() { } public interface NameStage { + /** + * The name of the remote key + */ _FinalStage name(@NotNull String name); Builder from(GenerateRemoteKeyRequest other); @@ -91,7 +94,7 @@ public Builder from(GenerateRemoteKeyRequest other) { } /** - *

            The name of the remote key

            + * The name of the remote key

            The name of the remote key

            * @return Reference to {@code this} so that method calls can be chained together. */ @java.lang.Override diff --git a/src/main/java/com/merge/api/crm/types/Issue.java b/src/main/java/com/merge/api/crm/types/Issue.java index b7df77a8c..ea6d27d87 100644 --- a/src/main/java/com/merge/api/crm/types/Issue.java +++ b/src/main/java/com/merge/api/crm/types/Issue.java @@ -167,6 +167,13 @@ public interface _FinalStage { _FinalStage id(String id); + /** + *

            Status of the issue. Options: ('ONGOING', 'RESOLVED')

            + *
              + *
            • ONGOING - ONGOING
            • + *
            • RESOLVED - RESOLVED
            • + *
            + */ _FinalStage status(Optional status); _FinalStage status(IssueStatusEnum status); @@ -314,6 +321,13 @@ public _FinalStage status(IssueStatusEnum status) { return this; } + /** + *

            Status of the issue. Options: ('ONGOING', 'RESOLVED')

            + *
              + *
            • ONGOING - ONGOING
            • + *
            • RESOLVED - RESOLVED
            • + *
            + */ @java.lang.Override @JsonSetter(value = "status", nulls = Nulls.SKIP) public _FinalStage status(Optional status) { diff --git a/src/main/java/com/merge/api/crm/types/IssuesListRequest.java b/src/main/java/com/merge/api/crm/types/IssuesListRequest.java index 834d87f08..02b8c3ed6 100644 --- a/src/main/java/com/merge/api/crm/types/IssuesListRequest.java +++ b/src/main/java/com/merge/api/crm/types/IssuesListRequest.java @@ -311,6 +311,9 @@ public Builder accountToken(String accountToken) { return this; } + /** + *

            The pagination cursor value.

            + */ @JsonSetter(value = "cursor", nulls = Nulls.SKIP) public Builder cursor(Optional cursor) { this.cursor = cursor; @@ -322,6 +325,9 @@ public Builder cursor(String cursor) { return this; } + /** + *

            If included, will only include issues whose most recent action occurred before this time

            + */ @JsonSetter(value = "end_date", nulls = Nulls.SKIP) public Builder endDate(Optional endDate) { this.endDate = endDate; @@ -344,6 +350,9 @@ public Builder endUserOrganizationName(String endUserOrganizationName) { return this; } + /** + *

            If provided, will only return issues whose first incident time was after this datetime.

            + */ @JsonSetter(value = "first_incident_time_after", nulls = Nulls.SKIP) public Builder firstIncidentTimeAfter(Optional firstIncidentTimeAfter) { this.firstIncidentTimeAfter = firstIncidentTimeAfter; @@ -355,6 +364,9 @@ public Builder firstIncidentTimeAfter(OffsetDateTime firstIncidentTimeAfter) { return this; } + /** + *

            If provided, will only return issues whose first incident time was before this datetime.

            + */ @JsonSetter(value = "first_incident_time_before", nulls = Nulls.SKIP) public Builder firstIncidentTimeBefore(Optional firstIncidentTimeBefore) { this.firstIncidentTimeBefore = firstIncidentTimeBefore; @@ -366,6 +378,9 @@ public Builder firstIncidentTimeBefore(OffsetDateTime firstIncidentTimeBefore) { return this; } + /** + *

            If true, will include muted issues

            + */ @JsonSetter(value = "include_muted", nulls = Nulls.SKIP) public Builder includeMuted(Optional includeMuted) { this.includeMuted = includeMuted; @@ -388,6 +403,9 @@ public Builder integrationName(String integrationName) { return this; } + /** + *

            If provided, will only return issues whose last incident time was after this datetime.

            + */ @JsonSetter(value = "last_incident_time_after", nulls = Nulls.SKIP) public Builder lastIncidentTimeAfter(Optional lastIncidentTimeAfter) { this.lastIncidentTimeAfter = lastIncidentTimeAfter; @@ -399,6 +417,9 @@ public Builder lastIncidentTimeAfter(OffsetDateTime lastIncidentTimeAfter) { return this; } + /** + *

            If provided, will only return issues whose last incident time was before this datetime.

            + */ @JsonSetter(value = "last_incident_time_before", nulls = Nulls.SKIP) public Builder lastIncidentTimeBefore(Optional lastIncidentTimeBefore) { this.lastIncidentTimeBefore = lastIncidentTimeBefore; @@ -410,6 +431,9 @@ public Builder lastIncidentTimeBefore(OffsetDateTime lastIncidentTimeBefore) { return this; } + /** + *

            If provided, will only include issues pertaining to the linked account passed in.

            + */ @JsonSetter(value = "linked_account_id", nulls = Nulls.SKIP) public Builder linkedAccountId(Optional linkedAccountId) { this.linkedAccountId = linkedAccountId; @@ -421,6 +445,9 @@ public Builder linkedAccountId(String linkedAccountId) { return this; } + /** + *

            Number of results to return per page.

            + */ @JsonSetter(value = "page_size", nulls = Nulls.SKIP) public Builder pageSize(Optional pageSize) { this.pageSize = pageSize; @@ -432,6 +459,9 @@ public Builder pageSize(Integer pageSize) { return this; } + /** + *

            If included, will only include issues whose most recent action occurred after this time

            + */ @JsonSetter(value = "start_date", nulls = Nulls.SKIP) public Builder startDate(Optional startDate) { this.startDate = startDate; @@ -443,6 +473,13 @@ public Builder startDate(String startDate) { return this; } + /** + *

            Status of the issue. Options: ('ONGOING', 'RESOLVED')

            + *
              + *
            • ONGOING - ONGOING
            • + *
            • RESOLVED - RESOLVED
            • + *
            + */ @JsonSetter(value = "status", nulls = Nulls.SKIP) public Builder status(Optional status) { this.status = status; diff --git a/src/main/java/com/merge/api/crm/types/Lead.java b/src/main/java/com/merge/api/crm/types/Lead.java index af6721685..9baa7d7a2 100644 --- a/src/main/java/com/merge/api/crm/types/Lead.java +++ b/src/main/java/com/merge/api/crm/types/Lead.java @@ -433,6 +433,9 @@ public Builder id(String id) { return this; } + /** + *

            The third-party API ID of the matching object.

            + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; @@ -444,6 +447,9 @@ public Builder remoteId(String remoteId) { return this; } + /** + *

            The datetime that this object was created by Merge.

            + */ @JsonSetter(value = "created_at", nulls = Nulls.SKIP) public Builder createdAt(Optional createdAt) { this.createdAt = createdAt; @@ -455,6 +461,9 @@ public Builder createdAt(OffsetDateTime createdAt) { return this; } + /** + *

            The datetime that this object was modified by Merge.

            + */ @JsonSetter(value = "modified_at", nulls = Nulls.SKIP) public Builder modifiedAt(Optional modifiedAt) { this.modifiedAt = modifiedAt; @@ -466,6 +475,9 @@ public Builder modifiedAt(OffsetDateTime modifiedAt) { return this; } + /** + *

            The lead's owner.

            + */ @JsonSetter(value = "owner", nulls = Nulls.SKIP) public Builder owner(Optional owner) { this.owner = owner; @@ -477,6 +489,9 @@ public Builder owner(LeadOwner owner) { return this; } + /** + *

            The lead's source.

            + */ @JsonSetter(value = "lead_source", nulls = Nulls.SKIP) public Builder leadSource(Optional leadSource) { this.leadSource = leadSource; @@ -488,6 +503,9 @@ public Builder leadSource(String leadSource) { return this; } + /** + *

            The lead's title.

            + */ @JsonSetter(value = "title", nulls = Nulls.SKIP) public Builder title(Optional title) { this.title = title; @@ -499,6 +517,9 @@ public Builder title(String title) { return this; } + /** + *

            The lead's company.

            + */ @JsonSetter(value = "company", nulls = Nulls.SKIP) public Builder company(Optional company) { this.company = company; @@ -510,6 +531,9 @@ public Builder company(String company) { return this; } + /** + *

            The lead's first name.

            + */ @JsonSetter(value = "first_name", nulls = Nulls.SKIP) public Builder firstName(Optional firstName) { this.firstName = firstName; @@ -521,6 +545,9 @@ public Builder firstName(String firstName) { return this; } + /** + *

            The lead's last name.

            + */ @JsonSetter(value = "last_name", nulls = Nulls.SKIP) public Builder lastName(Optional lastName) { this.lastName = lastName; @@ -565,6 +592,9 @@ public Builder phoneNumbers(List phoneNumbers) { return this; } + /** + *

            When the third party's lead was updated.

            + */ @JsonSetter(value = "remote_updated_at", nulls = Nulls.SKIP) public Builder remoteUpdatedAt(Optional remoteUpdatedAt) { this.remoteUpdatedAt = remoteUpdatedAt; @@ -576,6 +606,9 @@ public Builder remoteUpdatedAt(OffsetDateTime remoteUpdatedAt) { return this; } + /** + *

            When the third party's lead was created.

            + */ @JsonSetter(value = "remote_created_at", nulls = Nulls.SKIP) public Builder remoteCreatedAt(Optional remoteCreatedAt) { this.remoteCreatedAt = remoteCreatedAt; @@ -587,6 +620,9 @@ public Builder remoteCreatedAt(OffsetDateTime remoteCreatedAt) { return this; } + /** + *

            When the lead was converted.

            + */ @JsonSetter(value = "converted_date", nulls = Nulls.SKIP) public Builder convertedDate(Optional convertedDate) { this.convertedDate = convertedDate; @@ -598,6 +634,9 @@ public Builder convertedDate(OffsetDateTime convertedDate) { return this; } + /** + *

            The contact of the converted lead.

            + */ @JsonSetter(value = "converted_contact", nulls = Nulls.SKIP) public Builder convertedContact(Optional convertedContact) { this.convertedContact = convertedContact; @@ -609,6 +648,9 @@ public Builder convertedContact(LeadConvertedContact convertedContact) { return this; } + /** + *

            The account of the converted lead.

            + */ @JsonSetter(value = "converted_account", nulls = Nulls.SKIP) public Builder convertedAccount(Optional convertedAccount) { this.convertedAccount = convertedAccount; @@ -620,6 +662,9 @@ public Builder convertedAccount(LeadConvertedAccount convertedAccount) { return this; } + /** + *

            Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

            + */ @JsonSetter(value = "remote_was_deleted", nulls = Nulls.SKIP) public Builder remoteWasDeleted(Optional remoteWasDeleted) { this.remoteWasDeleted = remoteWasDeleted; diff --git a/src/main/java/com/merge/api/crm/types/LeadEndpointRequest.java b/src/main/java/com/merge/api/crm/types/LeadEndpointRequest.java index a60d3e80c..53b84adcc 100644 --- a/src/main/java/com/merge/api/crm/types/LeadEndpointRequest.java +++ b/src/main/java/com/merge/api/crm/types/LeadEndpointRequest.java @@ -99,10 +99,16 @@ public interface ModelStage { public interface _FinalStage { LeadEndpointRequest build(); + /** + *

            Whether to include debug fields (such as log file links) in the response.

            + */ _FinalStage isDebugMode(Optional isDebugMode); _FinalStage isDebugMode(Boolean isDebugMode); + /** + *

            Whether or not third-party updates should be run asynchronously.

            + */ _FinalStage runAsync(Optional runAsync); _FinalStage runAsync(Boolean runAsync); @@ -146,6 +152,9 @@ public _FinalStage runAsync(Boolean runAsync) { return this; } + /** + *

            Whether or not third-party updates should be run asynchronously.

            + */ @java.lang.Override @JsonSetter(value = "run_async", nulls = Nulls.SKIP) public _FinalStage runAsync(Optional runAsync) { @@ -163,6 +172,9 @@ public _FinalStage isDebugMode(Boolean isDebugMode) { return this; } + /** + *

            Whether to include debug fields (such as log file links) in the response.

            + */ @java.lang.Override @JsonSetter(value = "is_debug_mode", nulls = Nulls.SKIP) public _FinalStage isDebugMode(Optional isDebugMode) { diff --git a/src/main/java/com/merge/api/crm/types/LeadRequest.java b/src/main/java/com/merge/api/crm/types/LeadRequest.java index c208259fa..f2314c6af 100644 --- a/src/main/java/com/merge/api/crm/types/LeadRequest.java +++ b/src/main/java/com/merge/api/crm/types/LeadRequest.java @@ -306,6 +306,9 @@ public Builder from(LeadRequest other) { return this; } + /** + *

            The lead's owner.

            + */ @JsonSetter(value = "owner", nulls = Nulls.SKIP) public Builder owner(Optional owner) { this.owner = owner; @@ -317,6 +320,9 @@ public Builder owner(LeadRequestOwner owner) { return this; } + /** + *

            The lead's source.

            + */ @JsonSetter(value = "lead_source", nulls = Nulls.SKIP) public Builder leadSource(Optional leadSource) { this.leadSource = leadSource; @@ -328,6 +334,9 @@ public Builder leadSource(String leadSource) { return this; } + /** + *

            The lead's title.

            + */ @JsonSetter(value = "title", nulls = Nulls.SKIP) public Builder title(Optional title) { this.title = title; @@ -339,6 +348,9 @@ public Builder title(String title) { return this; } + /** + *

            The lead's company.

            + */ @JsonSetter(value = "company", nulls = Nulls.SKIP) public Builder company(Optional company) { this.company = company; @@ -350,6 +362,9 @@ public Builder company(String company) { return this; } + /** + *

            The lead's first name.

            + */ @JsonSetter(value = "first_name", nulls = Nulls.SKIP) public Builder firstName(Optional firstName) { this.firstName = firstName; @@ -361,6 +376,9 @@ public Builder firstName(String firstName) { return this; } + /** + *

            The lead's last name.

            + */ @JsonSetter(value = "last_name", nulls = Nulls.SKIP) public Builder lastName(Optional lastName) { this.lastName = lastName; @@ -405,6 +423,9 @@ public Builder phoneNumbers(List phoneNumbers) { return this; } + /** + *

            When the lead was converted.

            + */ @JsonSetter(value = "converted_date", nulls = Nulls.SKIP) public Builder convertedDate(Optional convertedDate) { this.convertedDate = convertedDate; @@ -416,6 +437,9 @@ public Builder convertedDate(OffsetDateTime convertedDate) { return this; } + /** + *

            The contact of the converted lead.

            + */ @JsonSetter(value = "converted_contact", nulls = Nulls.SKIP) public Builder convertedContact(Optional convertedContact) { this.convertedContact = convertedContact; @@ -427,6 +451,9 @@ public Builder convertedContact(LeadRequestConvertedContact convertedContact) { return this; } + /** + *

            The account of the converted lead.

            + */ @JsonSetter(value = "converted_account", nulls = Nulls.SKIP) public Builder convertedAccount(Optional convertedAccount) { this.convertedAccount = convertedAccount; diff --git a/src/main/java/com/merge/api/crm/types/LeadsListRequest.java b/src/main/java/com/merge/api/crm/types/LeadsListRequest.java index acba5f729..698296537 100644 --- a/src/main/java/com/merge/api/crm/types/LeadsListRequest.java +++ b/src/main/java/com/merge/api/crm/types/LeadsListRequest.java @@ -358,6 +358,9 @@ public Builder from(LeadsListRequest other) { return this; } + /** + *

            Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.

            + */ @JsonSetter(value = "expand", nulls = Nulls.SKIP) public Builder expand(Optional> expand) { this.expand = expand; @@ -374,6 +377,9 @@ public Builder expand(LeadsListRequestExpandItem expand) { return this; } + /** + *

            If provided, will only return leads with this account.

            + */ @JsonSetter(value = "converted_account_id", nulls = Nulls.SKIP) public Builder convertedAccountId(Optional convertedAccountId) { this.convertedAccountId = convertedAccountId; @@ -385,6 +391,9 @@ public Builder convertedAccountId(String convertedAccountId) { return this; } + /** + *

            If provided, will only return leads with this contact.

            + */ @JsonSetter(value = "converted_contact_id", nulls = Nulls.SKIP) public Builder convertedContactId(Optional convertedContactId) { this.convertedContactId = convertedContactId; @@ -396,6 +405,9 @@ public Builder convertedContactId(String convertedContactId) { return this; } + /** + *

            If provided, will only return objects created after this datetime.

            + */ @JsonSetter(value = "created_after", nulls = Nulls.SKIP) public Builder createdAfter(Optional createdAfter) { this.createdAfter = createdAfter; @@ -407,6 +419,9 @@ public Builder createdAfter(OffsetDateTime createdAfter) { return this; } + /** + *

            If provided, will only return objects created before this datetime.

            + */ @JsonSetter(value = "created_before", nulls = Nulls.SKIP) public Builder createdBefore(Optional createdBefore) { this.createdBefore = createdBefore; @@ -418,6 +433,9 @@ public Builder createdBefore(OffsetDateTime createdBefore) { return this; } + /** + *

            The pagination cursor value.

            + */ @JsonSetter(value = "cursor", nulls = Nulls.SKIP) public Builder cursor(Optional cursor) { this.cursor = cursor; @@ -429,6 +447,9 @@ public Builder cursor(String cursor) { return this; } + /** + *

            If provided, will only return contacts matching the email addresses; multiple email_addresses can be separated by commas.

            + */ @JsonSetter(value = "email_addresses", nulls = Nulls.SKIP) public Builder emailAddresses(Optional emailAddresses) { this.emailAddresses = emailAddresses; @@ -440,6 +461,9 @@ public Builder emailAddresses(String emailAddresses) { return this; } + /** + *

            Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

            + */ @JsonSetter(value = "include_deleted_data", nulls = Nulls.SKIP) public Builder includeDeletedData(Optional includeDeletedData) { this.includeDeletedData = includeDeletedData; @@ -451,6 +475,9 @@ public Builder includeDeletedData(Boolean includeDeletedData) { return this; } + /** + *

            Whether to include the original data Merge fetched from the third-party to produce these models.

            + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -462,6 +489,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

            Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format.

            + */ @JsonSetter(value = "include_remote_fields", nulls = Nulls.SKIP) public Builder includeRemoteFields(Optional includeRemoteFields) { this.includeRemoteFields = includeRemoteFields; @@ -473,6 +503,9 @@ public Builder includeRemoteFields(Boolean includeRemoteFields) { return this; } + /** + *

            Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

            + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; @@ -484,6 +517,9 @@ public Builder includeShellData(Boolean includeShellData) { return this; } + /** + *

            If provided, only objects synced by Merge after this date time will be returned.

            + */ @JsonSetter(value = "modified_after", nulls = Nulls.SKIP) public Builder modifiedAfter(Optional modifiedAfter) { this.modifiedAfter = modifiedAfter; @@ -495,6 +531,9 @@ public Builder modifiedAfter(OffsetDateTime modifiedAfter) { return this; } + /** + *

            If provided, only objects synced by Merge before this date time will be returned.

            + */ @JsonSetter(value = "modified_before", nulls = Nulls.SKIP) public Builder modifiedBefore(Optional modifiedBefore) { this.modifiedBefore = modifiedBefore; @@ -506,6 +545,9 @@ public Builder modifiedBefore(OffsetDateTime modifiedBefore) { return this; } + /** + *

            If provided, will only return leads with this owner.

            + */ @JsonSetter(value = "owner_id", nulls = Nulls.SKIP) public Builder ownerId(Optional ownerId) { this.ownerId = ownerId; @@ -517,6 +559,9 @@ public Builder ownerId(String ownerId) { return this; } + /** + *

            Number of results to return per page.

            + */ @JsonSetter(value = "page_size", nulls = Nulls.SKIP) public Builder pageSize(Optional pageSize) { this.pageSize = pageSize; @@ -528,6 +573,9 @@ public Builder pageSize(Integer pageSize) { return this; } + /** + *

            If provided, will only return contacts matching the phone numbers; multiple phone numbers can be separated by commas.

            + */ @JsonSetter(value = "phone_numbers", nulls = Nulls.SKIP) public Builder phoneNumbers(Optional phoneNumbers) { this.phoneNumbers = phoneNumbers; @@ -539,6 +587,9 @@ public Builder phoneNumbers(String phoneNumbers) { return this; } + /** + *

            The API provider's ID for the given object.

            + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; diff --git a/src/main/java/com/merge/api/crm/types/LeadsRemoteFieldClassesListRequest.java b/src/main/java/com/merge/api/crm/types/LeadsRemoteFieldClassesListRequest.java index e5b3d9c12..e7a115f10 100644 --- a/src/main/java/com/merge/api/crm/types/LeadsRemoteFieldClassesListRequest.java +++ b/src/main/java/com/merge/api/crm/types/LeadsRemoteFieldClassesListRequest.java @@ -186,6 +186,9 @@ public Builder from(LeadsRemoteFieldClassesListRequest other) { return this; } + /** + *

            The pagination cursor value.

            + */ @JsonSetter(value = "cursor", nulls = Nulls.SKIP) public Builder cursor(Optional cursor) { this.cursor = cursor; @@ -197,6 +200,9 @@ public Builder cursor(String cursor) { return this; } + /** + *

            Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

            + */ @JsonSetter(value = "include_deleted_data", nulls = Nulls.SKIP) public Builder includeDeletedData(Optional includeDeletedData) { this.includeDeletedData = includeDeletedData; @@ -208,6 +214,9 @@ public Builder includeDeletedData(Boolean includeDeletedData) { return this; } + /** + *

            Whether to include the original data Merge fetched from the third-party to produce these models.

            + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -219,6 +228,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

            Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format.

            + */ @JsonSetter(value = "include_remote_fields", nulls = Nulls.SKIP) public Builder includeRemoteFields(Optional includeRemoteFields) { this.includeRemoteFields = includeRemoteFields; @@ -230,6 +242,9 @@ public Builder includeRemoteFields(Boolean includeRemoteFields) { return this; } + /** + *

            Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

            + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; @@ -241,6 +256,9 @@ public Builder includeShellData(Boolean includeShellData) { return this; } + /** + *

            If provided, will only return remote field classes with this is_common_model_field value

            + */ @JsonSetter(value = "is_common_model_field", nulls = Nulls.SKIP) public Builder isCommonModelField(Optional isCommonModelField) { this.isCommonModelField = isCommonModelField; @@ -252,6 +270,9 @@ public Builder isCommonModelField(Boolean isCommonModelField) { return this; } + /** + *

            Number of results to return per page.

            + */ @JsonSetter(value = "page_size", nulls = Nulls.SKIP) public Builder pageSize(Optional pageSize) { this.pageSize = pageSize; diff --git a/src/main/java/com/merge/api/crm/types/LeadsRetrieveRequest.java b/src/main/java/com/merge/api/crm/types/LeadsRetrieveRequest.java index bd7af5845..89c5c655b 100644 --- a/src/main/java/com/merge/api/crm/types/LeadsRetrieveRequest.java +++ b/src/main/java/com/merge/api/crm/types/LeadsRetrieveRequest.java @@ -132,6 +132,9 @@ public Builder from(LeadsRetrieveRequest other) { return this; } + /** + *

            Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.

            + */ @JsonSetter(value = "expand", nulls = Nulls.SKIP) public Builder expand(Optional> expand) { this.expand = expand; @@ -148,6 +151,9 @@ public Builder expand(LeadsRetrieveRequestExpandItem expand) { return this; } + /** + *

            Whether to include the original data Merge fetched from the third-party to produce these models.

            + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -159,6 +165,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

            Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format.

            + */ @JsonSetter(value = "include_remote_fields", nulls = Nulls.SKIP) public Builder includeRemoteFields(Optional includeRemoteFields) { this.includeRemoteFields = includeRemoteFields; @@ -170,6 +179,9 @@ public Builder includeRemoteFields(Boolean includeRemoteFields) { return this; } + /** + *

            Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

            + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; diff --git a/src/main/java/com/merge/api/crm/types/LinkedAccountCommonModelScopeDeserializerRequest.java b/src/main/java/com/merge/api/crm/types/LinkedAccountCommonModelScopeDeserializerRequest.java index d0171da15..545aea1db 100644 --- a/src/main/java/com/merge/api/crm/types/LinkedAccountCommonModelScopeDeserializerRequest.java +++ b/src/main/java/com/merge/api/crm/types/LinkedAccountCommonModelScopeDeserializerRequest.java @@ -84,6 +84,9 @@ public Builder from(LinkedAccountCommonModelScopeDeserializerRequest other) { return this; } + /** + *

            The common models you want to update the scopes for

            + */ @JsonSetter(value = "common_models", nulls = Nulls.SKIP) public Builder commonModels(List commonModels) { this.commonModels.clear(); diff --git a/src/main/java/com/merge/api/crm/types/LinkedAccountsListRequest.java b/src/main/java/com/merge/api/crm/types/LinkedAccountsListRequest.java index 51d0032ca..90189dc78 100644 --- a/src/main/java/com/merge/api/crm/types/LinkedAccountsListRequest.java +++ b/src/main/java/com/merge/api/crm/types/LinkedAccountsListRequest.java @@ -293,6 +293,18 @@ public Builder from(LinkedAccountsListRequest other) { return this; } + /** + *

            Options: accounting, ats, crm, filestorage, hris, mktg, ticketing

            + *
              + *
            • hris - hris
            • + *
            • ats - ats
            • + *
            • accounting - accounting
            • + *
            • ticketing - ticketing
            • + *
            • crm - crm
            • + *
            • mktg - mktg
            • + *
            • filestorage - filestorage
            • + *
            + */ @JsonSetter(value = "category", nulls = Nulls.SKIP) public Builder category(Optional category) { this.category = category; @@ -304,6 +316,9 @@ public Builder category(LinkedAccountsListRequestCategory category) { return this; } + /** + *

            The pagination cursor value.

            + */ @JsonSetter(value = "cursor", nulls = Nulls.SKIP) public Builder cursor(Optional cursor) { this.cursor = cursor; @@ -315,6 +330,9 @@ public Builder cursor(String cursor) { return this; } + /** + *

            If provided, will only return linked accounts associated with the given email address.

            + */ @JsonSetter(value = "end_user_email_address", nulls = Nulls.SKIP) public Builder endUserEmailAddress(Optional endUserEmailAddress) { this.endUserEmailAddress = endUserEmailAddress; @@ -326,6 +344,9 @@ public Builder endUserEmailAddress(String endUserEmailAddress) { return this; } + /** + *

            If provided, will only return linked accounts associated with the given organization name.

            + */ @JsonSetter(value = "end_user_organization_name", nulls = Nulls.SKIP) public Builder endUserOrganizationName(Optional endUserOrganizationName) { this.endUserOrganizationName = endUserOrganizationName; @@ -337,6 +358,9 @@ public Builder endUserOrganizationName(String endUserOrganizationName) { return this; } + /** + *

            If provided, will only return linked accounts associated with the given origin ID.

            + */ @JsonSetter(value = "end_user_origin_id", nulls = Nulls.SKIP) public Builder endUserOriginId(Optional endUserOriginId) { this.endUserOriginId = endUserOriginId; @@ -348,6 +372,9 @@ public Builder endUserOriginId(String endUserOriginId) { return this; } + /** + *

            Comma-separated list of EndUser origin IDs, making it possible to specify multiple EndUsers at once.

            + */ @JsonSetter(value = "end_user_origin_ids", nulls = Nulls.SKIP) public Builder endUserOriginIds(Optional endUserOriginIds) { this.endUserOriginIds = endUserOriginIds; @@ -370,6 +397,9 @@ public Builder id(String id) { return this; } + /** + *

            Comma-separated list of LinkedAccount IDs, making it possible to specify multiple LinkedAccounts at once.

            + */ @JsonSetter(value = "ids", nulls = Nulls.SKIP) public Builder ids(Optional ids) { this.ids = ids; @@ -381,6 +411,9 @@ public Builder ids(String ids) { return this; } + /** + *

            If true, will include complete production duplicates of the account specified by the id query parameter in the response. id must be for a complete production linked account.

            + */ @JsonSetter(value = "include_duplicates", nulls = Nulls.SKIP) public Builder includeDuplicates(Optional includeDuplicates) { this.includeDuplicates = includeDuplicates; @@ -392,6 +425,9 @@ public Builder includeDuplicates(Boolean includeDuplicates) { return this; } + /** + *

            If provided, will only return linked accounts associated with the given integration name.

            + */ @JsonSetter(value = "integration_name", nulls = Nulls.SKIP) public Builder integrationName(Optional integrationName) { this.integrationName = integrationName; @@ -403,6 +439,9 @@ public Builder integrationName(String integrationName) { return this; } + /** + *

            If included, will only include test linked accounts. If not included, will only include non-test linked accounts.

            + */ @JsonSetter(value = "is_test_account", nulls = Nulls.SKIP) public Builder isTestAccount(Optional isTestAccount) { this.isTestAccount = isTestAccount; @@ -414,6 +453,9 @@ public Builder isTestAccount(String isTestAccount) { return this; } + /** + *

            Number of results to return per page.

            + */ @JsonSetter(value = "page_size", nulls = Nulls.SKIP) public Builder pageSize(Optional pageSize) { this.pageSize = pageSize; @@ -425,6 +467,9 @@ public Builder pageSize(Integer pageSize) { return this; } + /** + *

            Filter by status. Options: COMPLETE, IDLE, INCOMPLETE, RELINK_NEEDED

            + */ @JsonSetter(value = "status", nulls = Nulls.SKIP) public Builder status(Optional status) { this.status = status; diff --git a/src/main/java/com/merge/api/crm/types/MultipartFormFieldRequest.java b/src/main/java/com/merge/api/crm/types/MultipartFormFieldRequest.java index dc384d04f..bdd9d64ac 100644 --- a/src/main/java/com/merge/api/crm/types/MultipartFormFieldRequest.java +++ b/src/main/java/com/merge/api/crm/types/MultipartFormFieldRequest.java @@ -127,26 +127,46 @@ public static NameStage builder() { } public interface NameStage { + /** + * The name of the form field + */ DataStage name(@NotNull String name); Builder from(MultipartFormFieldRequest other); } public interface DataStage { + /** + * The data for the form field. + */ _FinalStage data(@NotNull String data); } public interface _FinalStage { MultipartFormFieldRequest build(); + /** + *

            The encoding of the value of data. Defaults to RAW if not defined.

            + *
              + *
            • RAW - RAW
            • + *
            • BASE64 - BASE64
            • + *
            • GZIP_BASE64 - GZIP_BASE64
            • + *
            + */ _FinalStage encoding(Optional encoding); _FinalStage encoding(EncodingEnum encoding); + /** + *

            The file name of the form field, if the field is for a file.

            + */ _FinalStage fileName(Optional fileName); _FinalStage fileName(String fileName); + /** + *

            The MIME type of the file, if the field is for a file.

            + */ _FinalStage contentType(Optional contentType); _FinalStage contentType(String contentType); @@ -180,7 +200,7 @@ public Builder from(MultipartFormFieldRequest other) { } /** - *

            The name of the form field

            + * The name of the form field

            The name of the form field

            * @return Reference to {@code this} so that method calls can be chained together. */ @java.lang.Override @@ -191,7 +211,7 @@ public DataStage name(@NotNull String name) { } /** - *

            The data for the form field.

            + * The data for the form field.

            The data for the form field.

            * @return Reference to {@code this} so that method calls can be chained together. */ @java.lang.Override @@ -211,6 +231,9 @@ public _FinalStage contentType(String contentType) { return this; } + /** + *

            The MIME type of the file, if the field is for a file.

            + */ @java.lang.Override @JsonSetter(value = "content_type", nulls = Nulls.SKIP) public _FinalStage contentType(Optional contentType) { @@ -228,6 +251,9 @@ public _FinalStage fileName(String fileName) { return this; } + /** + *

            The file name of the form field, if the field is for a file.

            + */ @java.lang.Override @JsonSetter(value = "file_name", nulls = Nulls.SKIP) public _FinalStage fileName(Optional fileName) { @@ -250,6 +276,14 @@ public _FinalStage encoding(EncodingEnum encoding) { return this; } + /** + *

            The encoding of the value of data. Defaults to RAW if not defined.

            + *
              + *
            • RAW - RAW
            • + *
            • BASE64 - BASE64
            • + *
            • GZIP_BASE64 - GZIP_BASE64
            • + *
            + */ @java.lang.Override @JsonSetter(value = "encoding", nulls = Nulls.SKIP) public _FinalStage encoding(Optional encoding) { diff --git a/src/main/java/com/merge/api/crm/types/Note.java b/src/main/java/com/merge/api/crm/types/Note.java index a84e156e6..409c147a5 100644 --- a/src/main/java/com/merge/api/crm/types/Note.java +++ b/src/main/java/com/merge/api/crm/types/Note.java @@ -323,6 +323,9 @@ public Builder id(String id) { return this; } + /** + *

            The third-party API ID of the matching object.

            + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; @@ -334,6 +337,9 @@ public Builder remoteId(String remoteId) { return this; } + /** + *

            The datetime that this object was created by Merge.

            + */ @JsonSetter(value = "created_at", nulls = Nulls.SKIP) public Builder createdAt(Optional createdAt) { this.createdAt = createdAt; @@ -345,6 +351,9 @@ public Builder createdAt(OffsetDateTime createdAt) { return this; } + /** + *

            The datetime that this object was modified by Merge.

            + */ @JsonSetter(value = "modified_at", nulls = Nulls.SKIP) public Builder modifiedAt(Optional modifiedAt) { this.modifiedAt = modifiedAt; @@ -356,6 +365,9 @@ public Builder modifiedAt(OffsetDateTime modifiedAt) { return this; } + /** + *

            The note's owner.

            + */ @JsonSetter(value = "owner", nulls = Nulls.SKIP) public Builder owner(Optional owner) { this.owner = owner; @@ -367,6 +379,9 @@ public Builder owner(NoteOwner owner) { return this; } + /** + *

            The note's content.

            + */ @JsonSetter(value = "content", nulls = Nulls.SKIP) public Builder content(Optional content) { this.content = content; @@ -378,6 +393,9 @@ public Builder content(String content) { return this; } + /** + *

            The note's contact.

            + */ @JsonSetter(value = "contact", nulls = Nulls.SKIP) public Builder contact(Optional contact) { this.contact = contact; @@ -389,6 +407,9 @@ public Builder contact(NoteContact contact) { return this; } + /** + *

            The note's account.

            + */ @JsonSetter(value = "account", nulls = Nulls.SKIP) public Builder account(Optional account) { this.account = account; @@ -400,6 +421,9 @@ public Builder account(NoteAccount account) { return this; } + /** + *

            The note's opportunity.

            + */ @JsonSetter(value = "opportunity", nulls = Nulls.SKIP) public Builder opportunity(Optional opportunity) { this.opportunity = opportunity; @@ -411,6 +435,9 @@ public Builder opportunity(NoteOpportunity opportunity) { return this; } + /** + *

            When the third party's lead was updated.

            + */ @JsonSetter(value = "remote_updated_at", nulls = Nulls.SKIP) public Builder remoteUpdatedAt(Optional remoteUpdatedAt) { this.remoteUpdatedAt = remoteUpdatedAt; @@ -422,6 +449,9 @@ public Builder remoteUpdatedAt(OffsetDateTime remoteUpdatedAt) { return this; } + /** + *

            When the third party's lead was created.

            + */ @JsonSetter(value = "remote_created_at", nulls = Nulls.SKIP) public Builder remoteCreatedAt(Optional remoteCreatedAt) { this.remoteCreatedAt = remoteCreatedAt; @@ -433,6 +463,9 @@ public Builder remoteCreatedAt(OffsetDateTime remoteCreatedAt) { return this; } + /** + *

            Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

            + */ @JsonSetter(value = "remote_was_deleted", nulls = Nulls.SKIP) public Builder remoteWasDeleted(Optional remoteWasDeleted) { this.remoteWasDeleted = remoteWasDeleted; diff --git a/src/main/java/com/merge/api/crm/types/NoteEndpointRequest.java b/src/main/java/com/merge/api/crm/types/NoteEndpointRequest.java index 2213e2a47..52de9fc4a 100644 --- a/src/main/java/com/merge/api/crm/types/NoteEndpointRequest.java +++ b/src/main/java/com/merge/api/crm/types/NoteEndpointRequest.java @@ -99,10 +99,16 @@ public interface ModelStage { public interface _FinalStage { NoteEndpointRequest build(); + /** + *

            Whether to include debug fields (such as log file links) in the response.

            + */ _FinalStage isDebugMode(Optional isDebugMode); _FinalStage isDebugMode(Boolean isDebugMode); + /** + *

            Whether or not third-party updates should be run asynchronously.

            + */ _FinalStage runAsync(Optional runAsync); _FinalStage runAsync(Boolean runAsync); @@ -146,6 +152,9 @@ public _FinalStage runAsync(Boolean runAsync) { return this; } + /** + *

            Whether or not third-party updates should be run asynchronously.

            + */ @java.lang.Override @JsonSetter(value = "run_async", nulls = Nulls.SKIP) public _FinalStage runAsync(Optional runAsync) { @@ -163,6 +172,9 @@ public _FinalStage isDebugMode(Boolean isDebugMode) { return this; } + /** + *

            Whether to include debug fields (such as log file links) in the response.

            + */ @java.lang.Override @JsonSetter(value = "is_debug_mode", nulls = Nulls.SKIP) public _FinalStage isDebugMode(Optional isDebugMode) { diff --git a/src/main/java/com/merge/api/crm/types/NoteRequest.java b/src/main/java/com/merge/api/crm/types/NoteRequest.java index 532dffb49..9e76d513a 100644 --- a/src/main/java/com/merge/api/crm/types/NoteRequest.java +++ b/src/main/java/com/merge/api/crm/types/NoteRequest.java @@ -195,6 +195,9 @@ public Builder from(NoteRequest other) { return this; } + /** + *

            The note's owner.

            + */ @JsonSetter(value = "owner", nulls = Nulls.SKIP) public Builder owner(Optional owner) { this.owner = owner; @@ -206,6 +209,9 @@ public Builder owner(NoteRequestOwner owner) { return this; } + /** + *

            The note's content.

            + */ @JsonSetter(value = "content", nulls = Nulls.SKIP) public Builder content(Optional content) { this.content = content; @@ -217,6 +223,9 @@ public Builder content(String content) { return this; } + /** + *

            The note's contact.

            + */ @JsonSetter(value = "contact", nulls = Nulls.SKIP) public Builder contact(Optional contact) { this.contact = contact; @@ -228,6 +237,9 @@ public Builder contact(NoteRequestContact contact) { return this; } + /** + *

            The note's account.

            + */ @JsonSetter(value = "account", nulls = Nulls.SKIP) public Builder account(Optional account) { this.account = account; @@ -239,6 +251,9 @@ public Builder account(NoteRequestAccount account) { return this; } + /** + *

            The note's opportunity.

            + */ @JsonSetter(value = "opportunity", nulls = Nulls.SKIP) public Builder opportunity(Optional opportunity) { this.opportunity = opportunity; diff --git a/src/main/java/com/merge/api/crm/types/NotesListRequest.java b/src/main/java/com/merge/api/crm/types/NotesListRequest.java index 4c2a824c4..c6f477d2f 100644 --- a/src/main/java/com/merge/api/crm/types/NotesListRequest.java +++ b/src/main/java/com/merge/api/crm/types/NotesListRequest.java @@ -341,6 +341,9 @@ public Builder from(NotesListRequest other) { return this; } + /** + *

            Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.

            + */ @JsonSetter(value = "expand", nulls = Nulls.SKIP) public Builder expand(Optional> expand) { this.expand = expand; @@ -357,6 +360,9 @@ public Builder expand(NotesListRequestExpandItem expand) { return this; } + /** + *

            If provided, will only return notes with this account.

            + */ @JsonSetter(value = "account_id", nulls = Nulls.SKIP) public Builder accountId(Optional accountId) { this.accountId = accountId; @@ -368,6 +374,9 @@ public Builder accountId(String accountId) { return this; } + /** + *

            If provided, will only return notes with this contact.

            + */ @JsonSetter(value = "contact_id", nulls = Nulls.SKIP) public Builder contactId(Optional contactId) { this.contactId = contactId; @@ -379,6 +388,9 @@ public Builder contactId(String contactId) { return this; } + /** + *

            If provided, will only return objects created after this datetime.

            + */ @JsonSetter(value = "created_after", nulls = Nulls.SKIP) public Builder createdAfter(Optional createdAfter) { this.createdAfter = createdAfter; @@ -390,6 +402,9 @@ public Builder createdAfter(OffsetDateTime createdAfter) { return this; } + /** + *

            If provided, will only return objects created before this datetime.

            + */ @JsonSetter(value = "created_before", nulls = Nulls.SKIP) public Builder createdBefore(Optional createdBefore) { this.createdBefore = createdBefore; @@ -401,6 +416,9 @@ public Builder createdBefore(OffsetDateTime createdBefore) { return this; } + /** + *

            The pagination cursor value.

            + */ @JsonSetter(value = "cursor", nulls = Nulls.SKIP) public Builder cursor(Optional cursor) { this.cursor = cursor; @@ -412,6 +430,9 @@ public Builder cursor(String cursor) { return this; } + /** + *

            Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

            + */ @JsonSetter(value = "include_deleted_data", nulls = Nulls.SKIP) public Builder includeDeletedData(Optional includeDeletedData) { this.includeDeletedData = includeDeletedData; @@ -423,6 +444,9 @@ public Builder includeDeletedData(Boolean includeDeletedData) { return this; } + /** + *

            Whether to include the original data Merge fetched from the third-party to produce these models.

            + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -434,6 +458,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

            Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format.

            + */ @JsonSetter(value = "include_remote_fields", nulls = Nulls.SKIP) public Builder includeRemoteFields(Optional includeRemoteFields) { this.includeRemoteFields = includeRemoteFields; @@ -445,6 +472,9 @@ public Builder includeRemoteFields(Boolean includeRemoteFields) { return this; } + /** + *

            Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

            + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; @@ -456,6 +486,9 @@ public Builder includeShellData(Boolean includeShellData) { return this; } + /** + *

            If provided, only objects synced by Merge after this date time will be returned.

            + */ @JsonSetter(value = "modified_after", nulls = Nulls.SKIP) public Builder modifiedAfter(Optional modifiedAfter) { this.modifiedAfter = modifiedAfter; @@ -467,6 +500,9 @@ public Builder modifiedAfter(OffsetDateTime modifiedAfter) { return this; } + /** + *

            If provided, only objects synced by Merge before this date time will be returned.

            + */ @JsonSetter(value = "modified_before", nulls = Nulls.SKIP) public Builder modifiedBefore(Optional modifiedBefore) { this.modifiedBefore = modifiedBefore; @@ -478,6 +514,9 @@ public Builder modifiedBefore(OffsetDateTime modifiedBefore) { return this; } + /** + *

            If provided, will only return notes with this opportunity.

            + */ @JsonSetter(value = "opportunity_id", nulls = Nulls.SKIP) public Builder opportunityId(Optional opportunityId) { this.opportunityId = opportunityId; @@ -489,6 +528,9 @@ public Builder opportunityId(String opportunityId) { return this; } + /** + *

            If provided, will only return notes with this owner.

            + */ @JsonSetter(value = "owner_id", nulls = Nulls.SKIP) public Builder ownerId(Optional ownerId) { this.ownerId = ownerId; @@ -500,6 +542,9 @@ public Builder ownerId(String ownerId) { return this; } + /** + *

            Number of results to return per page.

            + */ @JsonSetter(value = "page_size", nulls = Nulls.SKIP) public Builder pageSize(Optional pageSize) { this.pageSize = pageSize; @@ -511,6 +556,9 @@ public Builder pageSize(Integer pageSize) { return this; } + /** + *

            The API provider's ID for the given object.

            + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; diff --git a/src/main/java/com/merge/api/crm/types/NotesRemoteFieldClassesListRequest.java b/src/main/java/com/merge/api/crm/types/NotesRemoteFieldClassesListRequest.java index 99638e036..5d642b62e 100644 --- a/src/main/java/com/merge/api/crm/types/NotesRemoteFieldClassesListRequest.java +++ b/src/main/java/com/merge/api/crm/types/NotesRemoteFieldClassesListRequest.java @@ -186,6 +186,9 @@ public Builder from(NotesRemoteFieldClassesListRequest other) { return this; } + /** + *

            The pagination cursor value.

            + */ @JsonSetter(value = "cursor", nulls = Nulls.SKIP) public Builder cursor(Optional cursor) { this.cursor = cursor; @@ -197,6 +200,9 @@ public Builder cursor(String cursor) { return this; } + /** + *

            Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

            + */ @JsonSetter(value = "include_deleted_data", nulls = Nulls.SKIP) public Builder includeDeletedData(Optional includeDeletedData) { this.includeDeletedData = includeDeletedData; @@ -208,6 +214,9 @@ public Builder includeDeletedData(Boolean includeDeletedData) { return this; } + /** + *

            Whether to include the original data Merge fetched from the third-party to produce these models.

            + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -219,6 +228,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

            Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format.

            + */ @JsonSetter(value = "include_remote_fields", nulls = Nulls.SKIP) public Builder includeRemoteFields(Optional includeRemoteFields) { this.includeRemoteFields = includeRemoteFields; @@ -230,6 +242,9 @@ public Builder includeRemoteFields(Boolean includeRemoteFields) { return this; } + /** + *

            Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

            + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; @@ -241,6 +256,9 @@ public Builder includeShellData(Boolean includeShellData) { return this; } + /** + *

            If provided, will only return remote field classes with this is_common_model_field value

            + */ @JsonSetter(value = "is_common_model_field", nulls = Nulls.SKIP) public Builder isCommonModelField(Optional isCommonModelField) { this.isCommonModelField = isCommonModelField; @@ -252,6 +270,9 @@ public Builder isCommonModelField(Boolean isCommonModelField) { return this; } + /** + *

            Number of results to return per page.

            + */ @JsonSetter(value = "page_size", nulls = Nulls.SKIP) public Builder pageSize(Optional pageSize) { this.pageSize = pageSize; diff --git a/src/main/java/com/merge/api/crm/types/NotesRetrieveRequest.java b/src/main/java/com/merge/api/crm/types/NotesRetrieveRequest.java index 66714647b..80dc21f09 100644 --- a/src/main/java/com/merge/api/crm/types/NotesRetrieveRequest.java +++ b/src/main/java/com/merge/api/crm/types/NotesRetrieveRequest.java @@ -132,6 +132,9 @@ public Builder from(NotesRetrieveRequest other) { return this; } + /** + *

            Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.

            + */ @JsonSetter(value = "expand", nulls = Nulls.SKIP) public Builder expand(Optional> expand) { this.expand = expand; @@ -148,6 +151,9 @@ public Builder expand(NotesRetrieveRequestExpandItem expand) { return this; } + /** + *

            Whether to include the original data Merge fetched from the third-party to produce these models.

            + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -159,6 +165,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

            Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format.

            + */ @JsonSetter(value = "include_remote_fields", nulls = Nulls.SKIP) public Builder includeRemoteFields(Optional includeRemoteFields) { this.includeRemoteFields = includeRemoteFields; @@ -170,6 +179,9 @@ public Builder includeRemoteFields(Boolean includeRemoteFields) { return this; } + /** + *

            Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

            + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; diff --git a/src/main/java/com/merge/api/crm/types/OpportunitiesListRequest.java b/src/main/java/com/merge/api/crm/types/OpportunitiesListRequest.java index 1819c092c..39f33e95d 100644 --- a/src/main/java/com/merge/api/crm/types/OpportunitiesListRequest.java +++ b/src/main/java/com/merge/api/crm/types/OpportunitiesListRequest.java @@ -397,6 +397,9 @@ public Builder from(OpportunitiesListRequest other) { return this; } + /** + *

            Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.

            + */ @JsonSetter(value = "expand", nulls = Nulls.SKIP) public Builder expand(Optional> expand) { this.expand = expand; @@ -413,6 +416,9 @@ public Builder expand(OpportunitiesListRequestExpandItem expand) { return this; } + /** + *

            If provided, will only return opportunities with this account.

            + */ @JsonSetter(value = "account_id", nulls = Nulls.SKIP) public Builder accountId(Optional accountId) { this.accountId = accountId; @@ -424,6 +430,9 @@ public Builder accountId(String accountId) { return this; } + /** + *

            If provided, will only return objects created after this datetime.

            + */ @JsonSetter(value = "created_after", nulls = Nulls.SKIP) public Builder createdAfter(Optional createdAfter) { this.createdAfter = createdAfter; @@ -435,6 +444,9 @@ public Builder createdAfter(OffsetDateTime createdAfter) { return this; } + /** + *

            If provided, will only return objects created before this datetime.

            + */ @JsonSetter(value = "created_before", nulls = Nulls.SKIP) public Builder createdBefore(Optional createdBefore) { this.createdBefore = createdBefore; @@ -446,6 +458,9 @@ public Builder createdBefore(OffsetDateTime createdBefore) { return this; } + /** + *

            The pagination cursor value.

            + */ @JsonSetter(value = "cursor", nulls = Nulls.SKIP) public Builder cursor(Optional cursor) { this.cursor = cursor; @@ -457,6 +472,9 @@ public Builder cursor(String cursor) { return this; } + /** + *

            Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

            + */ @JsonSetter(value = "include_deleted_data", nulls = Nulls.SKIP) public Builder includeDeletedData(Optional includeDeletedData) { this.includeDeletedData = includeDeletedData; @@ -468,6 +486,9 @@ public Builder includeDeletedData(Boolean includeDeletedData) { return this; } + /** + *

            Whether to include the original data Merge fetched from the third-party to produce these models.

            + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -479,6 +500,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

            Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format.

            + */ @JsonSetter(value = "include_remote_fields", nulls = Nulls.SKIP) public Builder includeRemoteFields(Optional includeRemoteFields) { this.includeRemoteFields = includeRemoteFields; @@ -490,6 +514,9 @@ public Builder includeRemoteFields(Boolean includeRemoteFields) { return this; } + /** + *

            Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

            + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; @@ -501,6 +528,9 @@ public Builder includeShellData(Boolean includeShellData) { return this; } + /** + *

            If provided, only objects synced by Merge after this date time will be returned.

            + */ @JsonSetter(value = "modified_after", nulls = Nulls.SKIP) public Builder modifiedAfter(Optional modifiedAfter) { this.modifiedAfter = modifiedAfter; @@ -512,6 +542,9 @@ public Builder modifiedAfter(OffsetDateTime modifiedAfter) { return this; } + /** + *

            If provided, only objects synced by Merge before this date time will be returned.

            + */ @JsonSetter(value = "modified_before", nulls = Nulls.SKIP) public Builder modifiedBefore(Optional modifiedBefore) { this.modifiedBefore = modifiedBefore; @@ -523,6 +556,9 @@ public Builder modifiedBefore(OffsetDateTime modifiedBefore) { return this; } + /** + *

            If provided, will only return opportunities with this owner.

            + */ @JsonSetter(value = "owner_id", nulls = Nulls.SKIP) public Builder ownerId(Optional ownerId) { this.ownerId = ownerId; @@ -534,6 +570,9 @@ public Builder ownerId(String ownerId) { return this; } + /** + *

            Number of results to return per page.

            + */ @JsonSetter(value = "page_size", nulls = Nulls.SKIP) public Builder pageSize(Optional pageSize) { this.pageSize = pageSize; @@ -545,6 +584,9 @@ public Builder pageSize(Integer pageSize) { return this; } + /** + *

            If provided, will only return opportunities created in the third party platform after this datetime.

            + */ @JsonSetter(value = "remote_created_after", nulls = Nulls.SKIP) public Builder remoteCreatedAfter(Optional remoteCreatedAfter) { this.remoteCreatedAfter = remoteCreatedAfter; @@ -556,6 +598,9 @@ public Builder remoteCreatedAfter(OffsetDateTime remoteCreatedAfter) { return this; } + /** + *

            Deprecated. Use show_enum_origins.

            + */ @JsonSetter(value = "remote_fields", nulls = Nulls.SKIP) public Builder remoteFields(Optional remoteFields) { this.remoteFields = remoteFields; @@ -567,6 +612,9 @@ public Builder remoteFields(String remoteFields) { return this; } + /** + *

            The API provider's ID for the given object.

            + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; @@ -578,6 +626,9 @@ public Builder remoteId(String remoteId) { return this; } + /** + *

            A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. Learn more

            + */ @JsonSetter(value = "show_enum_origins", nulls = Nulls.SKIP) public Builder showEnumOrigins(Optional showEnumOrigins) { this.showEnumOrigins = showEnumOrigins; @@ -589,6 +640,9 @@ public Builder showEnumOrigins(String showEnumOrigins) { return this; } + /** + *

            If provided, will only return opportunities with this stage.

            + */ @JsonSetter(value = "stage_id", nulls = Nulls.SKIP) public Builder stageId(Optional stageId) { this.stageId = stageId; @@ -600,6 +654,14 @@ public Builder stageId(String stageId) { return this; } + /** + *

            If provided, will only return opportunities with this status. Options: ('OPEN', 'WON', 'LOST')

            + *
              + *
            • OPEN - OPEN
            • + *
            • WON - WON
            • + *
            • LOST - LOST
            • + *
            + */ @JsonSetter(value = "status", nulls = Nulls.SKIP) public Builder status(Optional status) { this.status = status; diff --git a/src/main/java/com/merge/api/crm/types/OpportunitiesRemoteFieldClassesListRequest.java b/src/main/java/com/merge/api/crm/types/OpportunitiesRemoteFieldClassesListRequest.java index f556a92b7..3942e3577 100644 --- a/src/main/java/com/merge/api/crm/types/OpportunitiesRemoteFieldClassesListRequest.java +++ b/src/main/java/com/merge/api/crm/types/OpportunitiesRemoteFieldClassesListRequest.java @@ -186,6 +186,9 @@ public Builder from(OpportunitiesRemoteFieldClassesListRequest other) { return this; } + /** + *

            The pagination cursor value.

            + */ @JsonSetter(value = "cursor", nulls = Nulls.SKIP) public Builder cursor(Optional cursor) { this.cursor = cursor; @@ -197,6 +200,9 @@ public Builder cursor(String cursor) { return this; } + /** + *

            Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

            + */ @JsonSetter(value = "include_deleted_data", nulls = Nulls.SKIP) public Builder includeDeletedData(Optional includeDeletedData) { this.includeDeletedData = includeDeletedData; @@ -208,6 +214,9 @@ public Builder includeDeletedData(Boolean includeDeletedData) { return this; } + /** + *

            Whether to include the original data Merge fetched from the third-party to produce these models.

            + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -219,6 +228,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

            Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format.

            + */ @JsonSetter(value = "include_remote_fields", nulls = Nulls.SKIP) public Builder includeRemoteFields(Optional includeRemoteFields) { this.includeRemoteFields = includeRemoteFields; @@ -230,6 +242,9 @@ public Builder includeRemoteFields(Boolean includeRemoteFields) { return this; } + /** + *

            Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

            + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; @@ -241,6 +256,9 @@ public Builder includeShellData(Boolean includeShellData) { return this; } + /** + *

            If provided, will only return remote field classes with this is_common_model_field value

            + */ @JsonSetter(value = "is_common_model_field", nulls = Nulls.SKIP) public Builder isCommonModelField(Optional isCommonModelField) { this.isCommonModelField = isCommonModelField; @@ -252,6 +270,9 @@ public Builder isCommonModelField(Boolean isCommonModelField) { return this; } + /** + *

            Number of results to return per page.

            + */ @JsonSetter(value = "page_size", nulls = Nulls.SKIP) public Builder pageSize(Optional pageSize) { this.pageSize = pageSize; diff --git a/src/main/java/com/merge/api/crm/types/OpportunitiesRetrieveRequest.java b/src/main/java/com/merge/api/crm/types/OpportunitiesRetrieveRequest.java index b38695884..1f2e48c82 100644 --- a/src/main/java/com/merge/api/crm/types/OpportunitiesRetrieveRequest.java +++ b/src/main/java/com/merge/api/crm/types/OpportunitiesRetrieveRequest.java @@ -170,6 +170,9 @@ public Builder from(OpportunitiesRetrieveRequest other) { return this; } + /** + *

            Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.

            + */ @JsonSetter(value = "expand", nulls = Nulls.SKIP) public Builder expand(Optional> expand) { this.expand = expand; @@ -186,6 +189,9 @@ public Builder expand(OpportunitiesRetrieveRequestExpandItem expand) { return this; } + /** + *

            Whether to include the original data Merge fetched from the third-party to produce these models.

            + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -197,6 +203,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

            Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format.

            + */ @JsonSetter(value = "include_remote_fields", nulls = Nulls.SKIP) public Builder includeRemoteFields(Optional includeRemoteFields) { this.includeRemoteFields = includeRemoteFields; @@ -208,6 +217,9 @@ public Builder includeRemoteFields(Boolean includeRemoteFields) { return this; } + /** + *

            Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

            + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; @@ -219,6 +231,9 @@ public Builder includeShellData(Boolean includeShellData) { return this; } + /** + *

            Deprecated. Use show_enum_origins.

            + */ @JsonSetter(value = "remote_fields", nulls = Nulls.SKIP) public Builder remoteFields(Optional remoteFields) { this.remoteFields = remoteFields; @@ -230,6 +245,9 @@ public Builder remoteFields(String remoteFields) { return this; } + /** + *

            A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. Learn more

            + */ @JsonSetter(value = "show_enum_origins", nulls = Nulls.SKIP) public Builder showEnumOrigins(Optional showEnumOrigins) { this.showEnumOrigins = showEnumOrigins; diff --git a/src/main/java/com/merge/api/crm/types/Opportunity.java b/src/main/java/com/merge/api/crm/types/Opportunity.java index c57f483d1..52ef810ee 100644 --- a/src/main/java/com/merge/api/crm/types/Opportunity.java +++ b/src/main/java/com/merge/api/crm/types/Opportunity.java @@ -379,6 +379,9 @@ public Builder id(String id) { return this; } + /** + *

            The third-party API ID of the matching object.

            + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; @@ -390,6 +393,9 @@ public Builder remoteId(String remoteId) { return this; } + /** + *

            The datetime that this object was created by Merge.

            + */ @JsonSetter(value = "created_at", nulls = Nulls.SKIP) public Builder createdAt(Optional createdAt) { this.createdAt = createdAt; @@ -401,6 +407,9 @@ public Builder createdAt(OffsetDateTime createdAt) { return this; } + /** + *

            The datetime that this object was modified by Merge.

            + */ @JsonSetter(value = "modified_at", nulls = Nulls.SKIP) public Builder modifiedAt(Optional modifiedAt) { this.modifiedAt = modifiedAt; @@ -412,6 +421,9 @@ public Builder modifiedAt(OffsetDateTime modifiedAt) { return this; } + /** + *

            The opportunity's name.

            + */ @JsonSetter(value = "name", nulls = Nulls.SKIP) public Builder name(Optional name) { this.name = name; @@ -423,6 +435,9 @@ public Builder name(String name) { return this; } + /** + *

            The opportunity's description.

            + */ @JsonSetter(value = "description", nulls = Nulls.SKIP) public Builder description(Optional description) { this.description = description; @@ -434,6 +449,9 @@ public Builder description(String description) { return this; } + /** + *

            The opportunity's amount.

            + */ @JsonSetter(value = "amount", nulls = Nulls.SKIP) public Builder amount(Optional amount) { this.amount = amount; @@ -445,6 +463,9 @@ public Builder amount(Integer amount) { return this; } + /** + *

            The opportunity's owner.

            + */ @JsonSetter(value = "owner", nulls = Nulls.SKIP) public Builder owner(Optional owner) { this.owner = owner; @@ -456,6 +477,9 @@ public Builder owner(OpportunityOwner owner) { return this; } + /** + *

            The account of the opportunity.

            + */ @JsonSetter(value = "account", nulls = Nulls.SKIP) public Builder account(Optional account) { this.account = account; @@ -467,6 +491,9 @@ public Builder account(OpportunityAccount account) { return this; } + /** + *

            The stage of the opportunity.

            + */ @JsonSetter(value = "stage", nulls = Nulls.SKIP) public Builder stage(Optional stage) { this.stage = stage; @@ -478,6 +505,14 @@ public Builder stage(OpportunityStage stage) { return this; } + /** + *

            The opportunity's status.

            + *
              + *
            • OPEN - OPEN
            • + *
            • WON - WON
            • + *
            • LOST - LOST
            • + *
            + */ @JsonSetter(value = "status", nulls = Nulls.SKIP) public Builder status(Optional status) { this.status = status; @@ -489,6 +524,9 @@ public Builder status(OpportunityStatusEnum status) { return this; } + /** + *

            When the opportunity's last activity occurred.

            + */ @JsonSetter(value = "last_activity_at", nulls = Nulls.SKIP) public Builder lastActivityAt(Optional lastActivityAt) { this.lastActivityAt = lastActivityAt; @@ -500,6 +538,9 @@ public Builder lastActivityAt(OffsetDateTime lastActivityAt) { return this; } + /** + *

            When the opportunity was closed.

            + */ @JsonSetter(value = "close_date", nulls = Nulls.SKIP) public Builder closeDate(Optional closeDate) { this.closeDate = closeDate; @@ -511,6 +552,9 @@ public Builder closeDate(OffsetDateTime closeDate) { return this; } + /** + *

            When the third party's opportunity was created.

            + */ @JsonSetter(value = "remote_created_at", nulls = Nulls.SKIP) public Builder remoteCreatedAt(Optional remoteCreatedAt) { this.remoteCreatedAt = remoteCreatedAt; @@ -522,6 +566,9 @@ public Builder remoteCreatedAt(OffsetDateTime remoteCreatedAt) { return this; } + /** + *

            Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

            + */ @JsonSetter(value = "remote_was_deleted", nulls = Nulls.SKIP) public Builder remoteWasDeleted(Optional remoteWasDeleted) { this.remoteWasDeleted = remoteWasDeleted; diff --git a/src/main/java/com/merge/api/crm/types/OpportunityEndpointRequest.java b/src/main/java/com/merge/api/crm/types/OpportunityEndpointRequest.java index fa0283d81..711de98da 100644 --- a/src/main/java/com/merge/api/crm/types/OpportunityEndpointRequest.java +++ b/src/main/java/com/merge/api/crm/types/OpportunityEndpointRequest.java @@ -99,10 +99,16 @@ public interface ModelStage { public interface _FinalStage { OpportunityEndpointRequest build(); + /** + *

            Whether to include debug fields (such as log file links) in the response.

            + */ _FinalStage isDebugMode(Optional isDebugMode); _FinalStage isDebugMode(Boolean isDebugMode); + /** + *

            Whether or not third-party updates should be run asynchronously.

            + */ _FinalStage runAsync(Optional runAsync); _FinalStage runAsync(Boolean runAsync); @@ -146,6 +152,9 @@ public _FinalStage runAsync(Boolean runAsync) { return this; } + /** + *

            Whether or not third-party updates should be run asynchronously.

            + */ @java.lang.Override @JsonSetter(value = "run_async", nulls = Nulls.SKIP) public _FinalStage runAsync(Optional runAsync) { @@ -163,6 +172,9 @@ public _FinalStage isDebugMode(Boolean isDebugMode) { return this; } + /** + *

            Whether to include debug fields (such as log file links) in the response.

            + */ @java.lang.Override @JsonSetter(value = "is_debug_mode", nulls = Nulls.SKIP) public _FinalStage isDebugMode(Optional isDebugMode) { diff --git a/src/main/java/com/merge/api/crm/types/OpportunityRequest.java b/src/main/java/com/merge/api/crm/types/OpportunityRequest.java index ff76a7e8b..10a8acb6b 100644 --- a/src/main/java/com/merge/api/crm/types/OpportunityRequest.java +++ b/src/main/java/com/merge/api/crm/types/OpportunityRequest.java @@ -269,6 +269,9 @@ public Builder from(OpportunityRequest other) { return this; } + /** + *

            The opportunity's name.

            + */ @JsonSetter(value = "name", nulls = Nulls.SKIP) public Builder name(Optional name) { this.name = name; @@ -280,6 +283,9 @@ public Builder name(String name) { return this; } + /** + *

            The opportunity's description.

            + */ @JsonSetter(value = "description", nulls = Nulls.SKIP) public Builder description(Optional description) { this.description = description; @@ -291,6 +297,9 @@ public Builder description(String description) { return this; } + /** + *

            The opportunity's amount.

            + */ @JsonSetter(value = "amount", nulls = Nulls.SKIP) public Builder amount(Optional amount) { this.amount = amount; @@ -302,6 +311,9 @@ public Builder amount(Integer amount) { return this; } + /** + *

            The opportunity's owner.

            + */ @JsonSetter(value = "owner", nulls = Nulls.SKIP) public Builder owner(Optional owner) { this.owner = owner; @@ -313,6 +325,9 @@ public Builder owner(OpportunityRequestOwner owner) { return this; } + /** + *

            The account of the opportunity.

            + */ @JsonSetter(value = "account", nulls = Nulls.SKIP) public Builder account(Optional account) { this.account = account; @@ -324,6 +339,9 @@ public Builder account(OpportunityRequestAccount account) { return this; } + /** + *

            The stage of the opportunity.

            + */ @JsonSetter(value = "stage", nulls = Nulls.SKIP) public Builder stage(Optional stage) { this.stage = stage; @@ -335,6 +353,14 @@ public Builder stage(OpportunityRequestStage stage) { return this; } + /** + *

            The opportunity's status.

            + *
              + *
            • OPEN - OPEN
            • + *
            • WON - WON
            • + *
            • LOST - LOST
            • + *
            + */ @JsonSetter(value = "status", nulls = Nulls.SKIP) public Builder status(Optional status) { this.status = status; @@ -346,6 +372,9 @@ public Builder status(OpportunityStatusEnum status) { return this; } + /** + *

            When the opportunity's last activity occurred.

            + */ @JsonSetter(value = "last_activity_at", nulls = Nulls.SKIP) public Builder lastActivityAt(Optional lastActivityAt) { this.lastActivityAt = lastActivityAt; @@ -357,6 +386,9 @@ public Builder lastActivityAt(OffsetDateTime lastActivityAt) { return this; } + /** + *

            When the opportunity was closed.

            + */ @JsonSetter(value = "close_date", nulls = Nulls.SKIP) public Builder closeDate(Optional closeDate) { this.closeDate = closeDate; diff --git a/src/main/java/com/merge/api/crm/types/PatchedAccountRequest.java b/src/main/java/com/merge/api/crm/types/PatchedAccountRequest.java index 84d479257..fb3bdbbe7 100644 --- a/src/main/java/com/merge/api/crm/types/PatchedAccountRequest.java +++ b/src/main/java/com/merge/api/crm/types/PatchedAccountRequest.java @@ -244,6 +244,9 @@ public Builder from(PatchedAccountRequest other) { return this; } + /** + *

            The account's owner.

            + */ @JsonSetter(value = "owner", nulls = Nulls.SKIP) public Builder owner(Optional owner) { this.owner = owner; @@ -255,6 +258,9 @@ public Builder owner(String owner) { return this; } + /** + *

            The account's name.

            + */ @JsonSetter(value = "name", nulls = Nulls.SKIP) public Builder name(Optional name) { this.name = name; @@ -266,6 +272,9 @@ public Builder name(String name) { return this; } + /** + *

            The account's description.

            + */ @JsonSetter(value = "description", nulls = Nulls.SKIP) public Builder description(Optional description) { this.description = description; @@ -277,6 +286,9 @@ public Builder description(String description) { return this; } + /** + *

            The account's industry.

            + */ @JsonSetter(value = "industry", nulls = Nulls.SKIP) public Builder industry(Optional industry) { this.industry = industry; @@ -288,6 +300,9 @@ public Builder industry(String industry) { return this; } + /** + *

            The account's website.

            + */ @JsonSetter(value = "website", nulls = Nulls.SKIP) public Builder website(Optional website) { this.website = website; @@ -299,6 +314,9 @@ public Builder website(String website) { return this; } + /** + *

            The account's number of employees.

            + */ @JsonSetter(value = "number_of_employees", nulls = Nulls.SKIP) public Builder numberOfEmployees(Optional numberOfEmployees) { this.numberOfEmployees = numberOfEmployees; @@ -321,6 +339,9 @@ public Builder addresses(List addresses) { return this; } + /** + *

            The last date (either most recent or furthest in the future) of when an activity occurs in an account.

            + */ @JsonSetter(value = "last_activity_at", nulls = Nulls.SKIP) public Builder lastActivityAt(Optional lastActivityAt) { this.lastActivityAt = lastActivityAt; diff --git a/src/main/java/com/merge/api/crm/types/PatchedContactRequest.java b/src/main/java/com/merge/api/crm/types/PatchedContactRequest.java index af913c0d7..c2022412d 100644 --- a/src/main/java/com/merge/api/crm/types/PatchedContactRequest.java +++ b/src/main/java/com/merge/api/crm/types/PatchedContactRequest.java @@ -238,6 +238,9 @@ public Builder from(PatchedContactRequest other) { return this; } + /** + *

            The contact's first name.

            + */ @JsonSetter(value = "first_name", nulls = Nulls.SKIP) public Builder firstName(Optional firstName) { this.firstName = firstName; @@ -249,6 +252,9 @@ public Builder firstName(String firstName) { return this; } + /** + *

            The contact's last name.

            + */ @JsonSetter(value = "last_name", nulls = Nulls.SKIP) public Builder lastName(Optional lastName) { this.lastName = lastName; @@ -260,6 +266,9 @@ public Builder lastName(String lastName) { return this; } + /** + *

            The contact's account.

            + */ @JsonSetter(value = "account", nulls = Nulls.SKIP) public Builder account(Optional account) { this.account = account; @@ -271,6 +280,9 @@ public Builder account(String account) { return this; } + /** + *

            The contact's owner.

            + */ @JsonSetter(value = "owner", nulls = Nulls.SKIP) public Builder owner(Optional owner) { this.owner = owner; @@ -315,6 +327,9 @@ public Builder phoneNumbers(List phoneNumbers) { return this; } + /** + *

            When the contact's last activity occurred.

            + */ @JsonSetter(value = "last_activity_at", nulls = Nulls.SKIP) public Builder lastActivityAt(Optional lastActivityAt) { this.lastActivityAt = lastActivityAt; diff --git a/src/main/java/com/merge/api/crm/types/PatchedCrmAccountEndpointRequest.java b/src/main/java/com/merge/api/crm/types/PatchedCrmAccountEndpointRequest.java index 8b2d65a61..d02ea6e48 100644 --- a/src/main/java/com/merge/api/crm/types/PatchedCrmAccountEndpointRequest.java +++ b/src/main/java/com/merge/api/crm/types/PatchedCrmAccountEndpointRequest.java @@ -99,10 +99,16 @@ public interface ModelStage { public interface _FinalStage { PatchedCrmAccountEndpointRequest build(); + /** + *

            Whether to include debug fields (such as log file links) in the response.

            + */ _FinalStage isDebugMode(Optional isDebugMode); _FinalStage isDebugMode(Boolean isDebugMode); + /** + *

            Whether or not third-party updates should be run asynchronously.

            + */ _FinalStage runAsync(Optional runAsync); _FinalStage runAsync(Boolean runAsync); @@ -146,6 +152,9 @@ public _FinalStage runAsync(Boolean runAsync) { return this; } + /** + *

            Whether or not third-party updates should be run asynchronously.

            + */ @java.lang.Override @JsonSetter(value = "run_async", nulls = Nulls.SKIP) public _FinalStage runAsync(Optional runAsync) { @@ -163,6 +172,9 @@ public _FinalStage isDebugMode(Boolean isDebugMode) { return this; } + /** + *

            Whether to include debug fields (such as log file links) in the response.

            + */ @java.lang.Override @JsonSetter(value = "is_debug_mode", nulls = Nulls.SKIP) public _FinalStage isDebugMode(Optional isDebugMode) { diff --git a/src/main/java/com/merge/api/crm/types/PatchedCrmContactEndpointRequest.java b/src/main/java/com/merge/api/crm/types/PatchedCrmContactEndpointRequest.java index fb78e6480..dce0865a6 100644 --- a/src/main/java/com/merge/api/crm/types/PatchedCrmContactEndpointRequest.java +++ b/src/main/java/com/merge/api/crm/types/PatchedCrmContactEndpointRequest.java @@ -99,10 +99,16 @@ public interface ModelStage { public interface _FinalStage { PatchedCrmContactEndpointRequest build(); + /** + *

            Whether to include debug fields (such as log file links) in the response.

            + */ _FinalStage isDebugMode(Optional isDebugMode); _FinalStage isDebugMode(Boolean isDebugMode); + /** + *

            Whether or not third-party updates should be run asynchronously.

            + */ _FinalStage runAsync(Optional runAsync); _FinalStage runAsync(Boolean runAsync); @@ -146,6 +152,9 @@ public _FinalStage runAsync(Boolean runAsync) { return this; } + /** + *

            Whether or not third-party updates should be run asynchronously.

            + */ @java.lang.Override @JsonSetter(value = "run_async", nulls = Nulls.SKIP) public _FinalStage runAsync(Optional runAsync) { @@ -163,6 +172,9 @@ public _FinalStage isDebugMode(Boolean isDebugMode) { return this; } + /** + *

            Whether to include debug fields (such as log file links) in the response.

            + */ @java.lang.Override @JsonSetter(value = "is_debug_mode", nulls = Nulls.SKIP) public _FinalStage isDebugMode(Optional isDebugMode) { diff --git a/src/main/java/com/merge/api/crm/types/PatchedEditFieldMappingRequest.java b/src/main/java/com/merge/api/crm/types/PatchedEditFieldMappingRequest.java index 2aa5f7988..03d84b1d8 100644 --- a/src/main/java/com/merge/api/crm/types/PatchedEditFieldMappingRequest.java +++ b/src/main/java/com/merge/api/crm/types/PatchedEditFieldMappingRequest.java @@ -116,6 +116,9 @@ public Builder from(PatchedEditFieldMappingRequest other) { return this; } + /** + *

            The field traversal path of the remote field listed when you hit the GET /remote-fields endpoint.

            + */ @JsonSetter(value = "remote_field_traversal_path", nulls = Nulls.SKIP) public Builder remoteFieldTraversalPath(Optional> remoteFieldTraversalPath) { this.remoteFieldTraversalPath = remoteFieldTraversalPath; @@ -127,6 +130,9 @@ public Builder remoteFieldTraversalPath(List remoteFieldTraversalPath) return this; } + /** + *

            The method of the remote endpoint where the remote field is coming from.

            + */ @JsonSetter(value = "remote_method", nulls = Nulls.SKIP) public Builder remoteMethod(Optional remoteMethod) { this.remoteMethod = remoteMethod; @@ -138,6 +144,9 @@ public Builder remoteMethod(String remoteMethod) { return this; } + /** + *

            The path of the remote endpoint where the remote field is coming from.

            + */ @JsonSetter(value = "remote_url_path", nulls = Nulls.SKIP) public Builder remoteUrlPath(Optional remoteUrlPath) { this.remoteUrlPath = remoteUrlPath; diff --git a/src/main/java/com/merge/api/crm/types/PatchedEngagementEndpointRequest.java b/src/main/java/com/merge/api/crm/types/PatchedEngagementEndpointRequest.java index fac59973c..a073e6dc4 100644 --- a/src/main/java/com/merge/api/crm/types/PatchedEngagementEndpointRequest.java +++ b/src/main/java/com/merge/api/crm/types/PatchedEngagementEndpointRequest.java @@ -99,10 +99,16 @@ public interface ModelStage { public interface _FinalStage { PatchedEngagementEndpointRequest build(); + /** + *

            Whether to include debug fields (such as log file links) in the response.

            + */ _FinalStage isDebugMode(Optional isDebugMode); _FinalStage isDebugMode(Boolean isDebugMode); + /** + *

            Whether or not third-party updates should be run asynchronously.

            + */ _FinalStage runAsync(Optional runAsync); _FinalStage runAsync(Boolean runAsync); @@ -146,6 +152,9 @@ public _FinalStage runAsync(Boolean runAsync) { return this; } + /** + *

            Whether or not third-party updates should be run asynchronously.

            + */ @java.lang.Override @JsonSetter(value = "run_async", nulls = Nulls.SKIP) public _FinalStage runAsync(Optional runAsync) { @@ -163,6 +172,9 @@ public _FinalStage isDebugMode(Boolean isDebugMode) { return this; } + /** + *

            Whether to include debug fields (such as log file links) in the response.

            + */ @java.lang.Override @JsonSetter(value = "is_debug_mode", nulls = Nulls.SKIP) public _FinalStage isDebugMode(Optional isDebugMode) { diff --git a/src/main/java/com/merge/api/crm/types/PatchedEngagementRequest.java b/src/main/java/com/merge/api/crm/types/PatchedEngagementRequest.java index a247451fb..8cc660143 100644 --- a/src/main/java/com/merge/api/crm/types/PatchedEngagementRequest.java +++ b/src/main/java/com/merge/api/crm/types/PatchedEngagementRequest.java @@ -265,6 +265,9 @@ public Builder from(PatchedEngagementRequest other) { return this; } + /** + *

            The engagement's owner.

            + */ @JsonSetter(value = "owner", nulls = Nulls.SKIP) public Builder owner(Optional owner) { this.owner = owner; @@ -276,6 +279,9 @@ public Builder owner(String owner) { return this; } + /** + *

            The engagement's content.

            + */ @JsonSetter(value = "content", nulls = Nulls.SKIP) public Builder content(Optional content) { this.content = content; @@ -287,6 +293,9 @@ public Builder content(String content) { return this; } + /** + *

            The engagement's subject.

            + */ @JsonSetter(value = "subject", nulls = Nulls.SKIP) public Builder subject(Optional subject) { this.subject = subject; @@ -298,6 +307,13 @@ public Builder subject(String subject) { return this; } + /** + *

            The engagement's direction.

            + *
              + *
            • INBOUND - INBOUND
            • + *
            • OUTBOUND - OUTBOUND
            • + *
            + */ @JsonSetter(value = "direction", nulls = Nulls.SKIP) public Builder direction(Optional direction) { this.direction = direction; @@ -309,6 +325,9 @@ public Builder direction(DirectionEnum direction) { return this; } + /** + *

            The engagement type of the engagement.

            + */ @JsonSetter(value = "engagement_type", nulls = Nulls.SKIP) public Builder engagementType(Optional engagementType) { this.engagementType = engagementType; @@ -320,6 +339,9 @@ public Builder engagementType(String engagementType) { return this; } + /** + *

            The time at which the engagement started.

            + */ @JsonSetter(value = "start_time", nulls = Nulls.SKIP) public Builder startTime(Optional startTime) { this.startTime = startTime; @@ -331,6 +353,9 @@ public Builder startTime(OffsetDateTime startTime) { return this; } + /** + *

            The time at which the engagement ended.

            + */ @JsonSetter(value = "end_time", nulls = Nulls.SKIP) public Builder endTime(Optional endTime) { this.endTime = endTime; @@ -342,6 +367,9 @@ public Builder endTime(OffsetDateTime endTime) { return this; } + /** + *

            The account of the engagement.

            + */ @JsonSetter(value = "account", nulls = Nulls.SKIP) public Builder account(Optional account) { this.account = account; diff --git a/src/main/java/com/merge/api/crm/types/PatchedOpportunityEndpointRequest.java b/src/main/java/com/merge/api/crm/types/PatchedOpportunityEndpointRequest.java index 841654c1e..90b5561eb 100644 --- a/src/main/java/com/merge/api/crm/types/PatchedOpportunityEndpointRequest.java +++ b/src/main/java/com/merge/api/crm/types/PatchedOpportunityEndpointRequest.java @@ -99,10 +99,16 @@ public interface ModelStage { public interface _FinalStage { PatchedOpportunityEndpointRequest build(); + /** + *

            Whether to include debug fields (such as log file links) in the response.

            + */ _FinalStage isDebugMode(Optional isDebugMode); _FinalStage isDebugMode(Boolean isDebugMode); + /** + *

            Whether or not third-party updates should be run asynchronously.

            + */ _FinalStage runAsync(Optional runAsync); _FinalStage runAsync(Boolean runAsync); @@ -146,6 +152,9 @@ public _FinalStage runAsync(Boolean runAsync) { return this; } + /** + *

            Whether or not third-party updates should be run asynchronously.

            + */ @java.lang.Override @JsonSetter(value = "run_async", nulls = Nulls.SKIP) public _FinalStage runAsync(Optional runAsync) { @@ -163,6 +172,9 @@ public _FinalStage isDebugMode(Boolean isDebugMode) { return this; } + /** + *

            Whether to include debug fields (such as log file links) in the response.

            + */ @java.lang.Override @JsonSetter(value = "is_debug_mode", nulls = Nulls.SKIP) public _FinalStage isDebugMode(Optional isDebugMode) { diff --git a/src/main/java/com/merge/api/crm/types/PatchedOpportunityRequest.java b/src/main/java/com/merge/api/crm/types/PatchedOpportunityRequest.java index 8028fbbd2..a03f2d6da 100644 --- a/src/main/java/com/merge/api/crm/types/PatchedOpportunityRequest.java +++ b/src/main/java/com/merge/api/crm/types/PatchedOpportunityRequest.java @@ -269,6 +269,9 @@ public Builder from(PatchedOpportunityRequest other) { return this; } + /** + *

            The opportunity's name.

            + */ @JsonSetter(value = "name", nulls = Nulls.SKIP) public Builder name(Optional name) { this.name = name; @@ -280,6 +283,9 @@ public Builder name(String name) { return this; } + /** + *

            The opportunity's description.

            + */ @JsonSetter(value = "description", nulls = Nulls.SKIP) public Builder description(Optional description) { this.description = description; @@ -291,6 +297,9 @@ public Builder description(String description) { return this; } + /** + *

            The opportunity's amount.

            + */ @JsonSetter(value = "amount", nulls = Nulls.SKIP) public Builder amount(Optional amount) { this.amount = amount; @@ -302,6 +311,9 @@ public Builder amount(Integer amount) { return this; } + /** + *

            The opportunity's owner.

            + */ @JsonSetter(value = "owner", nulls = Nulls.SKIP) public Builder owner(Optional owner) { this.owner = owner; @@ -313,6 +325,9 @@ public Builder owner(String owner) { return this; } + /** + *

            The account of the opportunity.

            + */ @JsonSetter(value = "account", nulls = Nulls.SKIP) public Builder account(Optional account) { this.account = account; @@ -324,6 +339,9 @@ public Builder account(String account) { return this; } + /** + *

            The stage of the opportunity.

            + */ @JsonSetter(value = "stage", nulls = Nulls.SKIP) public Builder stage(Optional stage) { this.stage = stage; @@ -335,6 +353,14 @@ public Builder stage(String stage) { return this; } + /** + *

            The opportunity's status.

            + *
              + *
            • OPEN - OPEN
            • + *
            • WON - WON
            • + *
            • LOST - LOST
            • + *
            + */ @JsonSetter(value = "status", nulls = Nulls.SKIP) public Builder status(Optional status) { this.status = status; @@ -346,6 +372,9 @@ public Builder status(OpportunityStatusEnum status) { return this; } + /** + *

            When the opportunity's last activity occurred.

            + */ @JsonSetter(value = "last_activity_at", nulls = Nulls.SKIP) public Builder lastActivityAt(Optional lastActivityAt) { this.lastActivityAt = lastActivityAt; @@ -357,6 +386,9 @@ public Builder lastActivityAt(OffsetDateTime lastActivityAt) { return this; } + /** + *

            When the opportunity was closed.

            + */ @JsonSetter(value = "close_date", nulls = Nulls.SKIP) public Builder closeDate(Optional closeDate) { this.closeDate = closeDate; diff --git a/src/main/java/com/merge/api/crm/types/PatchedTaskEndpointRequest.java b/src/main/java/com/merge/api/crm/types/PatchedTaskEndpointRequest.java index ae7d55331..37789f30a 100644 --- a/src/main/java/com/merge/api/crm/types/PatchedTaskEndpointRequest.java +++ b/src/main/java/com/merge/api/crm/types/PatchedTaskEndpointRequest.java @@ -99,10 +99,16 @@ public interface ModelStage { public interface _FinalStage { PatchedTaskEndpointRequest build(); + /** + *

            Whether to include debug fields (such as log file links) in the response.

            + */ _FinalStage isDebugMode(Optional isDebugMode); _FinalStage isDebugMode(Boolean isDebugMode); + /** + *

            Whether or not third-party updates should be run asynchronously.

            + */ _FinalStage runAsync(Optional runAsync); _FinalStage runAsync(Boolean runAsync); @@ -146,6 +152,9 @@ public _FinalStage runAsync(Boolean runAsync) { return this; } + /** + *

            Whether or not third-party updates should be run asynchronously.

            + */ @java.lang.Override @JsonSetter(value = "run_async", nulls = Nulls.SKIP) public _FinalStage runAsync(Optional runAsync) { @@ -163,6 +172,9 @@ public _FinalStage isDebugMode(Boolean isDebugMode) { return this; } + /** + *

            Whether to include debug fields (such as log file links) in the response.

            + */ @java.lang.Override @JsonSetter(value = "is_debug_mode", nulls = Nulls.SKIP) public _FinalStage isDebugMode(Optional isDebugMode) { diff --git a/src/main/java/com/merge/api/crm/types/PatchedTaskRequest.java b/src/main/java/com/merge/api/crm/types/PatchedTaskRequest.java index ac6ff7e34..3150287fb 100644 --- a/src/main/java/com/merge/api/crm/types/PatchedTaskRequest.java +++ b/src/main/java/com/merge/api/crm/types/PatchedTaskRequest.java @@ -251,6 +251,9 @@ public Builder from(PatchedTaskRequest other) { return this; } + /** + *

            The task's subject.

            + */ @JsonSetter(value = "subject", nulls = Nulls.SKIP) public Builder subject(Optional subject) { this.subject = subject; @@ -262,6 +265,9 @@ public Builder subject(String subject) { return this; } + /** + *

            The task's content.

            + */ @JsonSetter(value = "content", nulls = Nulls.SKIP) public Builder content(Optional content) { this.content = content; @@ -273,6 +279,9 @@ public Builder content(String content) { return this; } + /** + *

            The task's owner.

            + */ @JsonSetter(value = "owner", nulls = Nulls.SKIP) public Builder owner(Optional owner) { this.owner = owner; @@ -284,6 +293,9 @@ public Builder owner(String owner) { return this; } + /** + *

            The task's account.

            + */ @JsonSetter(value = "account", nulls = Nulls.SKIP) public Builder account(Optional account) { this.account = account; @@ -295,6 +307,9 @@ public Builder account(String account) { return this; } + /** + *

            The task's opportunity.

            + */ @JsonSetter(value = "opportunity", nulls = Nulls.SKIP) public Builder opportunity(Optional opportunity) { this.opportunity = opportunity; @@ -306,6 +321,9 @@ public Builder opportunity(String opportunity) { return this; } + /** + *

            When the task is completed.

            + */ @JsonSetter(value = "completed_date", nulls = Nulls.SKIP) public Builder completedDate(Optional completedDate) { this.completedDate = completedDate; @@ -317,6 +335,9 @@ public Builder completedDate(OffsetDateTime completedDate) { return this; } + /** + *

            When the task is due.

            + */ @JsonSetter(value = "due_date", nulls = Nulls.SKIP) public Builder dueDate(Optional dueDate) { this.dueDate = dueDate; @@ -328,6 +349,13 @@ public Builder dueDate(OffsetDateTime dueDate) { return this; } + /** + *

            The task's status.

            + *
              + *
            • OPEN - OPEN
            • + *
            • CLOSED - CLOSED
            • + *
            + */ @JsonSetter(value = "status", nulls = Nulls.SKIP) public Builder status(Optional status) { this.status = status; diff --git a/src/main/java/com/merge/api/crm/types/PhoneNumber.java b/src/main/java/com/merge/api/crm/types/PhoneNumber.java index e920f9512..6a8a18848 100644 --- a/src/main/java/com/merge/api/crm/types/PhoneNumber.java +++ b/src/main/java/com/merge/api/crm/types/PhoneNumber.java @@ -131,6 +131,9 @@ public Builder from(PhoneNumber other) { return this; } + /** + *

            The datetime that this object was created by Merge.

            + */ @JsonSetter(value = "created_at", nulls = Nulls.SKIP) public Builder createdAt(Optional createdAt) { this.createdAt = createdAt; @@ -142,6 +145,9 @@ public Builder createdAt(OffsetDateTime createdAt) { return this; } + /** + *

            The datetime that this object was modified by Merge.

            + */ @JsonSetter(value = "modified_at", nulls = Nulls.SKIP) public Builder modifiedAt(Optional modifiedAt) { this.modifiedAt = modifiedAt; @@ -153,6 +159,9 @@ public Builder modifiedAt(OffsetDateTime modifiedAt) { return this; } + /** + *

            The phone number.

            + */ @JsonSetter(value = "phone_number", nulls = Nulls.SKIP) public Builder phoneNumber(Optional phoneNumber) { this.phoneNumber = phoneNumber; @@ -164,6 +173,9 @@ public Builder phoneNumber(String phoneNumber) { return this; } + /** + *

            The phone number's type.

            + */ @JsonSetter(value = "phone_number_type", nulls = Nulls.SKIP) public Builder phoneNumberType(Optional phoneNumberType) { this.phoneNumberType = phoneNumberType; diff --git a/src/main/java/com/merge/api/crm/types/PhoneNumberRequest.java b/src/main/java/com/merge/api/crm/types/PhoneNumberRequest.java index c6625ec3e..9b7396157 100644 --- a/src/main/java/com/merge/api/crm/types/PhoneNumberRequest.java +++ b/src/main/java/com/merge/api/crm/types/PhoneNumberRequest.java @@ -125,6 +125,9 @@ public Builder from(PhoneNumberRequest other) { return this; } + /** + *

            The phone number.

            + */ @JsonSetter(value = "phone_number", nulls = Nulls.SKIP) public Builder phoneNumber(Optional phoneNumber) { this.phoneNumber = phoneNumber; @@ -136,6 +139,9 @@ public Builder phoneNumber(String phoneNumber) { return this; } + /** + *

            The phone number's type.

            + */ @JsonSetter(value = "phone_number_type", nulls = Nulls.SKIP) public Builder phoneNumberType(Optional phoneNumberType) { this.phoneNumberType = phoneNumberType; diff --git a/src/main/java/com/merge/api/crm/types/RemoteData.java b/src/main/java/com/merge/api/crm/types/RemoteData.java index e940918d1..b964aaa67 100644 --- a/src/main/java/com/merge/api/crm/types/RemoteData.java +++ b/src/main/java/com/merge/api/crm/types/RemoteData.java @@ -77,6 +77,9 @@ public static PathStage builder() { } public interface PathStage { + /** + * The third-party API path that is being called. + */ _FinalStage path(@NotNull String path); Builder from(RemoteData other); @@ -109,7 +112,7 @@ public Builder from(RemoteData other) { } /** - *

            The third-party API path that is being called.

            + * The third-party API path that is being called.

            The third-party API path that is being called.

            * @return Reference to {@code this} so that method calls can be chained together. */ @java.lang.Override diff --git a/src/main/java/com/merge/api/crm/types/RemoteFieldClassForCustomObjectClass.java b/src/main/java/com/merge/api/crm/types/RemoteFieldClassForCustomObjectClass.java index 77db8b030..ae5c1763a 100644 --- a/src/main/java/com/merge/api/crm/types/RemoteFieldClassForCustomObjectClass.java +++ b/src/main/java/com/merge/api/crm/types/RemoteFieldClassForCustomObjectClass.java @@ -215,6 +215,9 @@ public Builder from(RemoteFieldClassForCustomObjectClass other) { return this; } + /** + *

            The datetime that this object was created by Merge.

            + */ @JsonSetter(value = "created_at", nulls = Nulls.SKIP) public Builder createdAt(Optional createdAt) { this.createdAt = createdAt; @@ -226,6 +229,9 @@ public Builder createdAt(OffsetDateTime createdAt) { return this; } + /** + *

            The datetime that this object was modified by Merge.

            + */ @JsonSetter(value = "modified_at", nulls = Nulls.SKIP) public Builder modifiedAt(Optional modifiedAt) { this.modifiedAt = modifiedAt; diff --git a/src/main/java/com/merge/api/crm/types/RemoteFieldsRetrieveRequest.java b/src/main/java/com/merge/api/crm/types/RemoteFieldsRetrieveRequest.java index 390c0e6b5..e04d3785c 100644 --- a/src/main/java/com/merge/api/crm/types/RemoteFieldsRetrieveRequest.java +++ b/src/main/java/com/merge/api/crm/types/RemoteFieldsRetrieveRequest.java @@ -97,6 +97,9 @@ public Builder from(RemoteFieldsRetrieveRequest other) { return this; } + /** + *

            A comma seperated list of Common Model names. If included, will only return Remote Fields for those Common Models.

            + */ @JsonSetter(value = "common_models", nulls = Nulls.SKIP) public Builder commonModels(Optional commonModels) { this.commonModels = commonModels; @@ -108,6 +111,9 @@ public Builder commonModels(String commonModels) { return this; } + /** + *

            If true, will include example values, where available, for remote fields in the 3rd party platform. These examples come from active data from your customers.

            + */ @JsonSetter(value = "include_example_values", nulls = Nulls.SKIP) public Builder includeExampleValues(Optional includeExampleValues) { this.includeExampleValues = includeExampleValues; diff --git a/src/main/java/com/merge/api/crm/types/RemoteKeyForRegenerationRequest.java b/src/main/java/com/merge/api/crm/types/RemoteKeyForRegenerationRequest.java index 4715accd8..674ca7890 100644 --- a/src/main/java/com/merge/api/crm/types/RemoteKeyForRegenerationRequest.java +++ b/src/main/java/com/merge/api/crm/types/RemoteKeyForRegenerationRequest.java @@ -66,6 +66,9 @@ public static NameStage builder() { } public interface NameStage { + /** + * The name of the remote key + */ _FinalStage name(@NotNull String name); Builder from(RemoteKeyForRegenerationRequest other); @@ -91,7 +94,7 @@ public Builder from(RemoteKeyForRegenerationRequest other) { } /** - *

            The name of the remote key

            + * The name of the remote key

            The name of the remote key

            * @return Reference to {@code this} so that method calls can be chained together. */ @java.lang.Override diff --git a/src/main/java/com/merge/api/crm/types/Stage.java b/src/main/java/com/merge/api/crm/types/Stage.java index d1873eb9e..3e93d75f0 100644 --- a/src/main/java/com/merge/api/crm/types/Stage.java +++ b/src/main/java/com/merge/api/crm/types/Stage.java @@ -221,6 +221,9 @@ public Builder id(String id) { return this; } + /** + *

            The third-party API ID of the matching object.

            + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; @@ -232,6 +235,9 @@ public Builder remoteId(String remoteId) { return this; } + /** + *

            The datetime that this object was created by Merge.

            + */ @JsonSetter(value = "created_at", nulls = Nulls.SKIP) public Builder createdAt(Optional createdAt) { this.createdAt = createdAt; @@ -243,6 +249,9 @@ public Builder createdAt(OffsetDateTime createdAt) { return this; } + /** + *

            The datetime that this object was modified by Merge.

            + */ @JsonSetter(value = "modified_at", nulls = Nulls.SKIP) public Builder modifiedAt(Optional modifiedAt) { this.modifiedAt = modifiedAt; @@ -254,6 +263,9 @@ public Builder modifiedAt(OffsetDateTime modifiedAt) { return this; } + /** + *

            The stage's name.

            + */ @JsonSetter(value = "name", nulls = Nulls.SKIP) public Builder name(Optional name) { this.name = name; @@ -265,6 +277,9 @@ public Builder name(String name) { return this; } + /** + *

            Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

            + */ @JsonSetter(value = "remote_was_deleted", nulls = Nulls.SKIP) public Builder remoteWasDeleted(Optional remoteWasDeleted) { this.remoteWasDeleted = remoteWasDeleted; diff --git a/src/main/java/com/merge/api/crm/types/StagesListRequest.java b/src/main/java/com/merge/api/crm/types/StagesListRequest.java index 104f90980..669757c09 100644 --- a/src/main/java/com/merge/api/crm/types/StagesListRequest.java +++ b/src/main/java/com/merge/api/crm/types/StagesListRequest.java @@ -254,6 +254,9 @@ public Builder from(StagesListRequest other) { return this; } + /** + *

            If provided, will only return objects created after this datetime.

            + */ @JsonSetter(value = "created_after", nulls = Nulls.SKIP) public Builder createdAfter(Optional createdAfter) { this.createdAfter = createdAfter; @@ -265,6 +268,9 @@ public Builder createdAfter(OffsetDateTime createdAfter) { return this; } + /** + *

            If provided, will only return objects created before this datetime.

            + */ @JsonSetter(value = "created_before", nulls = Nulls.SKIP) public Builder createdBefore(Optional createdBefore) { this.createdBefore = createdBefore; @@ -276,6 +282,9 @@ public Builder createdBefore(OffsetDateTime createdBefore) { return this; } + /** + *

            The pagination cursor value.

            + */ @JsonSetter(value = "cursor", nulls = Nulls.SKIP) public Builder cursor(Optional cursor) { this.cursor = cursor; @@ -287,6 +296,9 @@ public Builder cursor(String cursor) { return this; } + /** + *

            Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

            + */ @JsonSetter(value = "include_deleted_data", nulls = Nulls.SKIP) public Builder includeDeletedData(Optional includeDeletedData) { this.includeDeletedData = includeDeletedData; @@ -298,6 +310,9 @@ public Builder includeDeletedData(Boolean includeDeletedData) { return this; } + /** + *

            Whether to include the original data Merge fetched from the third-party to produce these models.

            + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -309,6 +324,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

            Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format.

            + */ @JsonSetter(value = "include_remote_fields", nulls = Nulls.SKIP) public Builder includeRemoteFields(Optional includeRemoteFields) { this.includeRemoteFields = includeRemoteFields; @@ -320,6 +338,9 @@ public Builder includeRemoteFields(Boolean includeRemoteFields) { return this; } + /** + *

            Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

            + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; @@ -331,6 +352,9 @@ public Builder includeShellData(Boolean includeShellData) { return this; } + /** + *

            If provided, only objects synced by Merge after this date time will be returned.

            + */ @JsonSetter(value = "modified_after", nulls = Nulls.SKIP) public Builder modifiedAfter(Optional modifiedAfter) { this.modifiedAfter = modifiedAfter; @@ -342,6 +366,9 @@ public Builder modifiedAfter(OffsetDateTime modifiedAfter) { return this; } + /** + *

            If provided, only objects synced by Merge before this date time will be returned.

            + */ @JsonSetter(value = "modified_before", nulls = Nulls.SKIP) public Builder modifiedBefore(Optional modifiedBefore) { this.modifiedBefore = modifiedBefore; @@ -353,6 +380,9 @@ public Builder modifiedBefore(OffsetDateTime modifiedBefore) { return this; } + /** + *

            Number of results to return per page.

            + */ @JsonSetter(value = "page_size", nulls = Nulls.SKIP) public Builder pageSize(Optional pageSize) { this.pageSize = pageSize; @@ -364,6 +394,9 @@ public Builder pageSize(Integer pageSize) { return this; } + /** + *

            The API provider's ID for the given object.

            + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; diff --git a/src/main/java/com/merge/api/crm/types/StagesRemoteFieldClassesListRequest.java b/src/main/java/com/merge/api/crm/types/StagesRemoteFieldClassesListRequest.java index b5e7600e1..d88505499 100644 --- a/src/main/java/com/merge/api/crm/types/StagesRemoteFieldClassesListRequest.java +++ b/src/main/java/com/merge/api/crm/types/StagesRemoteFieldClassesListRequest.java @@ -186,6 +186,9 @@ public Builder from(StagesRemoteFieldClassesListRequest other) { return this; } + /** + *

            The pagination cursor value.

            + */ @JsonSetter(value = "cursor", nulls = Nulls.SKIP) public Builder cursor(Optional cursor) { this.cursor = cursor; @@ -197,6 +200,9 @@ public Builder cursor(String cursor) { return this; } + /** + *

            Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

            + */ @JsonSetter(value = "include_deleted_data", nulls = Nulls.SKIP) public Builder includeDeletedData(Optional includeDeletedData) { this.includeDeletedData = includeDeletedData; @@ -208,6 +214,9 @@ public Builder includeDeletedData(Boolean includeDeletedData) { return this; } + /** + *

            Whether to include the original data Merge fetched from the third-party to produce these models.

            + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -219,6 +228,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

            Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format.

            + */ @JsonSetter(value = "include_remote_fields", nulls = Nulls.SKIP) public Builder includeRemoteFields(Optional includeRemoteFields) { this.includeRemoteFields = includeRemoteFields; @@ -230,6 +242,9 @@ public Builder includeRemoteFields(Boolean includeRemoteFields) { return this; } + /** + *

            Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

            + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; @@ -241,6 +256,9 @@ public Builder includeShellData(Boolean includeShellData) { return this; } + /** + *

            If provided, will only return remote field classes with this is_common_model_field value

            + */ @JsonSetter(value = "is_common_model_field", nulls = Nulls.SKIP) public Builder isCommonModelField(Optional isCommonModelField) { this.isCommonModelField = isCommonModelField; @@ -252,6 +270,9 @@ public Builder isCommonModelField(Boolean isCommonModelField) { return this; } + /** + *

            Number of results to return per page.

            + */ @JsonSetter(value = "page_size", nulls = Nulls.SKIP) public Builder pageSize(Optional pageSize) { this.pageSize = pageSize; diff --git a/src/main/java/com/merge/api/crm/types/StagesRetrieveRequest.java b/src/main/java/com/merge/api/crm/types/StagesRetrieveRequest.java index 96c0538db..2c8ab89fc 100644 --- a/src/main/java/com/merge/api/crm/types/StagesRetrieveRequest.java +++ b/src/main/java/com/merge/api/crm/types/StagesRetrieveRequest.java @@ -114,6 +114,9 @@ public Builder from(StagesRetrieveRequest other) { return this; } + /** + *

            Whether to include the original data Merge fetched from the third-party to produce these models.

            + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -125,6 +128,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

            Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format.

            + */ @JsonSetter(value = "include_remote_fields", nulls = Nulls.SKIP) public Builder includeRemoteFields(Optional includeRemoteFields) { this.includeRemoteFields = includeRemoteFields; @@ -136,6 +142,9 @@ public Builder includeRemoteFields(Boolean includeRemoteFields) { return this; } + /** + *

            Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

            + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; diff --git a/src/main/java/com/merge/api/crm/types/SyncStatusListRequest.java b/src/main/java/com/merge/api/crm/types/SyncStatusListRequest.java index b841e6fe6..c28cd55f7 100644 --- a/src/main/java/com/merge/api/crm/types/SyncStatusListRequest.java +++ b/src/main/java/com/merge/api/crm/types/SyncStatusListRequest.java @@ -95,6 +95,9 @@ public Builder from(SyncStatusListRequest other) { return this; } + /** + *

            The pagination cursor value.

            + */ @JsonSetter(value = "cursor", nulls = Nulls.SKIP) public Builder cursor(Optional cursor) { this.cursor = cursor; @@ -106,6 +109,9 @@ public Builder cursor(String cursor) { return this; } + /** + *

            Number of results to return per page.

            + */ @JsonSetter(value = "page_size", nulls = Nulls.SKIP) public Builder pageSize(Optional pageSize) { this.pageSize = pageSize; diff --git a/src/main/java/com/merge/api/crm/types/Task.java b/src/main/java/com/merge/api/crm/types/Task.java index f8d73207f..612f5f9a2 100644 --- a/src/main/java/com/merge/api/crm/types/Task.java +++ b/src/main/java/com/merge/api/crm/types/Task.java @@ -344,6 +344,9 @@ public Builder id(String id) { return this; } + /** + *

            The third-party API ID of the matching object.

            + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; @@ -355,6 +358,9 @@ public Builder remoteId(String remoteId) { return this; } + /** + *

            The datetime that this object was created by Merge.

            + */ @JsonSetter(value = "created_at", nulls = Nulls.SKIP) public Builder createdAt(Optional createdAt) { this.createdAt = createdAt; @@ -366,6 +372,9 @@ public Builder createdAt(OffsetDateTime createdAt) { return this; } + /** + *

            The datetime that this object was modified by Merge.

            + */ @JsonSetter(value = "modified_at", nulls = Nulls.SKIP) public Builder modifiedAt(Optional modifiedAt) { this.modifiedAt = modifiedAt; @@ -377,6 +386,9 @@ public Builder modifiedAt(OffsetDateTime modifiedAt) { return this; } + /** + *

            The task's subject.

            + */ @JsonSetter(value = "subject", nulls = Nulls.SKIP) public Builder subject(Optional subject) { this.subject = subject; @@ -388,6 +400,9 @@ public Builder subject(String subject) { return this; } + /** + *

            The task's content.

            + */ @JsonSetter(value = "content", nulls = Nulls.SKIP) public Builder content(Optional content) { this.content = content; @@ -399,6 +414,9 @@ public Builder content(String content) { return this; } + /** + *

            The task's owner.

            + */ @JsonSetter(value = "owner", nulls = Nulls.SKIP) public Builder owner(Optional owner) { this.owner = owner; @@ -410,6 +428,9 @@ public Builder owner(TaskOwner owner) { return this; } + /** + *

            The task's account.

            + */ @JsonSetter(value = "account", nulls = Nulls.SKIP) public Builder account(Optional account) { this.account = account; @@ -421,6 +442,9 @@ public Builder account(TaskAccount account) { return this; } + /** + *

            The task's opportunity.

            + */ @JsonSetter(value = "opportunity", nulls = Nulls.SKIP) public Builder opportunity(Optional opportunity) { this.opportunity = opportunity; @@ -432,6 +456,9 @@ public Builder opportunity(TaskOpportunity opportunity) { return this; } + /** + *

            When the task is completed.

            + */ @JsonSetter(value = "completed_date", nulls = Nulls.SKIP) public Builder completedDate(Optional completedDate) { this.completedDate = completedDate; @@ -443,6 +470,9 @@ public Builder completedDate(OffsetDateTime completedDate) { return this; } + /** + *

            When the task is due.

            + */ @JsonSetter(value = "due_date", nulls = Nulls.SKIP) public Builder dueDate(Optional dueDate) { this.dueDate = dueDate; @@ -454,6 +484,13 @@ public Builder dueDate(OffsetDateTime dueDate) { return this; } + /** + *

            The task's status.

            + *
              + *
            • OPEN - OPEN
            • + *
            • CLOSED - CLOSED
            • + *
            + */ @JsonSetter(value = "status", nulls = Nulls.SKIP) public Builder status(Optional status) { this.status = status; @@ -465,6 +502,9 @@ public Builder status(TaskStatusEnum status) { return this; } + /** + *

            Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

            + */ @JsonSetter(value = "remote_was_deleted", nulls = Nulls.SKIP) public Builder remoteWasDeleted(Optional remoteWasDeleted) { this.remoteWasDeleted = remoteWasDeleted; diff --git a/src/main/java/com/merge/api/crm/types/TaskEndpointRequest.java b/src/main/java/com/merge/api/crm/types/TaskEndpointRequest.java index 234b7618f..dff2d21f4 100644 --- a/src/main/java/com/merge/api/crm/types/TaskEndpointRequest.java +++ b/src/main/java/com/merge/api/crm/types/TaskEndpointRequest.java @@ -99,10 +99,16 @@ public interface ModelStage { public interface _FinalStage { TaskEndpointRequest build(); + /** + *

            Whether to include debug fields (such as log file links) in the response.

            + */ _FinalStage isDebugMode(Optional isDebugMode); _FinalStage isDebugMode(Boolean isDebugMode); + /** + *

            Whether or not third-party updates should be run asynchronously.

            + */ _FinalStage runAsync(Optional runAsync); _FinalStage runAsync(Boolean runAsync); @@ -146,6 +152,9 @@ public _FinalStage runAsync(Boolean runAsync) { return this; } + /** + *

            Whether or not third-party updates should be run asynchronously.

            + */ @java.lang.Override @JsonSetter(value = "run_async", nulls = Nulls.SKIP) public _FinalStage runAsync(Optional runAsync) { @@ -163,6 +172,9 @@ public _FinalStage isDebugMode(Boolean isDebugMode) { return this; } + /** + *

            Whether to include debug fields (such as log file links) in the response.

            + */ @java.lang.Override @JsonSetter(value = "is_debug_mode", nulls = Nulls.SKIP) public _FinalStage isDebugMode(Optional isDebugMode) { diff --git a/src/main/java/com/merge/api/crm/types/TaskRequest.java b/src/main/java/com/merge/api/crm/types/TaskRequest.java index 20eb99c05..1ea67f23c 100644 --- a/src/main/java/com/merge/api/crm/types/TaskRequest.java +++ b/src/main/java/com/merge/api/crm/types/TaskRequest.java @@ -251,6 +251,9 @@ public Builder from(TaskRequest other) { return this; } + /** + *

            The task's subject.

            + */ @JsonSetter(value = "subject", nulls = Nulls.SKIP) public Builder subject(Optional subject) { this.subject = subject; @@ -262,6 +265,9 @@ public Builder subject(String subject) { return this; } + /** + *

            The task's content.

            + */ @JsonSetter(value = "content", nulls = Nulls.SKIP) public Builder content(Optional content) { this.content = content; @@ -273,6 +279,9 @@ public Builder content(String content) { return this; } + /** + *

            The task's owner.

            + */ @JsonSetter(value = "owner", nulls = Nulls.SKIP) public Builder owner(Optional owner) { this.owner = owner; @@ -284,6 +293,9 @@ public Builder owner(TaskRequestOwner owner) { return this; } + /** + *

            The task's account.

            + */ @JsonSetter(value = "account", nulls = Nulls.SKIP) public Builder account(Optional account) { this.account = account; @@ -295,6 +307,9 @@ public Builder account(TaskRequestAccount account) { return this; } + /** + *

            The task's opportunity.

            + */ @JsonSetter(value = "opportunity", nulls = Nulls.SKIP) public Builder opportunity(Optional opportunity) { this.opportunity = opportunity; @@ -306,6 +321,9 @@ public Builder opportunity(TaskRequestOpportunity opportunity) { return this; } + /** + *

            When the task is completed.

            + */ @JsonSetter(value = "completed_date", nulls = Nulls.SKIP) public Builder completedDate(Optional completedDate) { this.completedDate = completedDate; @@ -317,6 +335,9 @@ public Builder completedDate(OffsetDateTime completedDate) { return this; } + /** + *

            When the task is due.

            + */ @JsonSetter(value = "due_date", nulls = Nulls.SKIP) public Builder dueDate(Optional dueDate) { this.dueDate = dueDate; @@ -328,6 +349,13 @@ public Builder dueDate(OffsetDateTime dueDate) { return this; } + /** + *

            The task's status.

            + *
              + *
            • OPEN - OPEN
            • + *
            • CLOSED - CLOSED
            • + *
            + */ @JsonSetter(value = "status", nulls = Nulls.SKIP) public Builder status(Optional status) { this.status = status; diff --git a/src/main/java/com/merge/api/crm/types/TasksListRequest.java b/src/main/java/com/merge/api/crm/types/TasksListRequest.java index 92a251f07..5e2fdba30 100644 --- a/src/main/java/com/merge/api/crm/types/TasksListRequest.java +++ b/src/main/java/com/merge/api/crm/types/TasksListRequest.java @@ -273,6 +273,9 @@ public Builder from(TasksListRequest other) { return this; } + /** + *

            Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.

            + */ @JsonSetter(value = "expand", nulls = Nulls.SKIP) public Builder expand(Optional> expand) { this.expand = expand; @@ -289,6 +292,9 @@ public Builder expand(TasksListRequestExpandItem expand) { return this; } + /** + *

            If provided, will only return objects created after this datetime.

            + */ @JsonSetter(value = "created_after", nulls = Nulls.SKIP) public Builder createdAfter(Optional createdAfter) { this.createdAfter = createdAfter; @@ -300,6 +306,9 @@ public Builder createdAfter(OffsetDateTime createdAfter) { return this; } + /** + *

            If provided, will only return objects created before this datetime.

            + */ @JsonSetter(value = "created_before", nulls = Nulls.SKIP) public Builder createdBefore(Optional createdBefore) { this.createdBefore = createdBefore; @@ -311,6 +320,9 @@ public Builder createdBefore(OffsetDateTime createdBefore) { return this; } + /** + *

            The pagination cursor value.

            + */ @JsonSetter(value = "cursor", nulls = Nulls.SKIP) public Builder cursor(Optional cursor) { this.cursor = cursor; @@ -322,6 +334,9 @@ public Builder cursor(String cursor) { return this; } + /** + *

            Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

            + */ @JsonSetter(value = "include_deleted_data", nulls = Nulls.SKIP) public Builder includeDeletedData(Optional includeDeletedData) { this.includeDeletedData = includeDeletedData; @@ -333,6 +348,9 @@ public Builder includeDeletedData(Boolean includeDeletedData) { return this; } + /** + *

            Whether to include the original data Merge fetched from the third-party to produce these models.

            + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -344,6 +362,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

            Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format.

            + */ @JsonSetter(value = "include_remote_fields", nulls = Nulls.SKIP) public Builder includeRemoteFields(Optional includeRemoteFields) { this.includeRemoteFields = includeRemoteFields; @@ -355,6 +376,9 @@ public Builder includeRemoteFields(Boolean includeRemoteFields) { return this; } + /** + *

            Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

            + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; @@ -366,6 +390,9 @@ public Builder includeShellData(Boolean includeShellData) { return this; } + /** + *

            If provided, only objects synced by Merge after this date time will be returned.

            + */ @JsonSetter(value = "modified_after", nulls = Nulls.SKIP) public Builder modifiedAfter(Optional modifiedAfter) { this.modifiedAfter = modifiedAfter; @@ -377,6 +404,9 @@ public Builder modifiedAfter(OffsetDateTime modifiedAfter) { return this; } + /** + *

            If provided, only objects synced by Merge before this date time will be returned.

            + */ @JsonSetter(value = "modified_before", nulls = Nulls.SKIP) public Builder modifiedBefore(Optional modifiedBefore) { this.modifiedBefore = modifiedBefore; @@ -388,6 +418,9 @@ public Builder modifiedBefore(OffsetDateTime modifiedBefore) { return this; } + /** + *

            Number of results to return per page.

            + */ @JsonSetter(value = "page_size", nulls = Nulls.SKIP) public Builder pageSize(Optional pageSize) { this.pageSize = pageSize; @@ -399,6 +432,9 @@ public Builder pageSize(Integer pageSize) { return this; } + /** + *

            The API provider's ID for the given object.

            + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; diff --git a/src/main/java/com/merge/api/crm/types/TasksRemoteFieldClassesListRequest.java b/src/main/java/com/merge/api/crm/types/TasksRemoteFieldClassesListRequest.java index d475332b3..b4c595e0d 100644 --- a/src/main/java/com/merge/api/crm/types/TasksRemoteFieldClassesListRequest.java +++ b/src/main/java/com/merge/api/crm/types/TasksRemoteFieldClassesListRequest.java @@ -186,6 +186,9 @@ public Builder from(TasksRemoteFieldClassesListRequest other) { return this; } + /** + *

            The pagination cursor value.

            + */ @JsonSetter(value = "cursor", nulls = Nulls.SKIP) public Builder cursor(Optional cursor) { this.cursor = cursor; @@ -197,6 +200,9 @@ public Builder cursor(String cursor) { return this; } + /** + *

            Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

            + */ @JsonSetter(value = "include_deleted_data", nulls = Nulls.SKIP) public Builder includeDeletedData(Optional includeDeletedData) { this.includeDeletedData = includeDeletedData; @@ -208,6 +214,9 @@ public Builder includeDeletedData(Boolean includeDeletedData) { return this; } + /** + *

            Whether to include the original data Merge fetched from the third-party to produce these models.

            + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -219,6 +228,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

            Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format.

            + */ @JsonSetter(value = "include_remote_fields", nulls = Nulls.SKIP) public Builder includeRemoteFields(Optional includeRemoteFields) { this.includeRemoteFields = includeRemoteFields; @@ -230,6 +242,9 @@ public Builder includeRemoteFields(Boolean includeRemoteFields) { return this; } + /** + *

            Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

            + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; @@ -241,6 +256,9 @@ public Builder includeShellData(Boolean includeShellData) { return this; } + /** + *

            If provided, will only return remote field classes with this is_common_model_field value

            + */ @JsonSetter(value = "is_common_model_field", nulls = Nulls.SKIP) public Builder isCommonModelField(Optional isCommonModelField) { this.isCommonModelField = isCommonModelField; @@ -252,6 +270,9 @@ public Builder isCommonModelField(Boolean isCommonModelField) { return this; } + /** + *

            Number of results to return per page.

            + */ @JsonSetter(value = "page_size", nulls = Nulls.SKIP) public Builder pageSize(Optional pageSize) { this.pageSize = pageSize; diff --git a/src/main/java/com/merge/api/crm/types/TasksRetrieveRequest.java b/src/main/java/com/merge/api/crm/types/TasksRetrieveRequest.java index cc70b5c1b..734bbbe1b 100644 --- a/src/main/java/com/merge/api/crm/types/TasksRetrieveRequest.java +++ b/src/main/java/com/merge/api/crm/types/TasksRetrieveRequest.java @@ -132,6 +132,9 @@ public Builder from(TasksRetrieveRequest other) { return this; } + /** + *

            Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.

            + */ @JsonSetter(value = "expand", nulls = Nulls.SKIP) public Builder expand(Optional> expand) { this.expand = expand; @@ -148,6 +151,9 @@ public Builder expand(TasksRetrieveRequestExpandItem expand) { return this; } + /** + *

            Whether to include the original data Merge fetched from the third-party to produce these models.

            + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -159,6 +165,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

            Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format.

            + */ @JsonSetter(value = "include_remote_fields", nulls = Nulls.SKIP) public Builder includeRemoteFields(Optional includeRemoteFields) { this.includeRemoteFields = includeRemoteFields; @@ -170,6 +179,9 @@ public Builder includeRemoteFields(Boolean includeRemoteFields) { return this; } + /** + *

            Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

            + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; diff --git a/src/main/java/com/merge/api/crm/types/User.java b/src/main/java/com/merge/api/crm/types/User.java index c5ce7145e..3a8aa2bdc 100644 --- a/src/main/java/com/merge/api/crm/types/User.java +++ b/src/main/java/com/merge/api/crm/types/User.java @@ -255,6 +255,9 @@ public Builder id(String id) { return this; } + /** + *

            The third-party API ID of the matching object.

            + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; @@ -266,6 +269,9 @@ public Builder remoteId(String remoteId) { return this; } + /** + *

            The datetime that this object was created by Merge.

            + */ @JsonSetter(value = "created_at", nulls = Nulls.SKIP) public Builder createdAt(Optional createdAt) { this.createdAt = createdAt; @@ -277,6 +283,9 @@ public Builder createdAt(OffsetDateTime createdAt) { return this; } + /** + *

            The datetime that this object was modified by Merge.

            + */ @JsonSetter(value = "modified_at", nulls = Nulls.SKIP) public Builder modifiedAt(Optional modifiedAt) { this.modifiedAt = modifiedAt; @@ -288,6 +297,9 @@ public Builder modifiedAt(OffsetDateTime modifiedAt) { return this; } + /** + *

            The user's name.

            + */ @JsonSetter(value = "name", nulls = Nulls.SKIP) public Builder name(Optional name) { this.name = name; @@ -299,6 +311,9 @@ public Builder name(String name) { return this; } + /** + *

            The user's email address.

            + */ @JsonSetter(value = "email", nulls = Nulls.SKIP) public Builder email(Optional email) { this.email = email; @@ -310,6 +325,9 @@ public Builder email(String email) { return this; } + /** + *

            Whether or not the user is active.

            + */ @JsonSetter(value = "is_active", nulls = Nulls.SKIP) public Builder isActive(Optional isActive) { this.isActive = isActive; @@ -321,6 +339,9 @@ public Builder isActive(Boolean isActive) { return this; } + /** + *

            Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

            + */ @JsonSetter(value = "remote_was_deleted", nulls = Nulls.SKIP) public Builder remoteWasDeleted(Optional remoteWasDeleted) { this.remoteWasDeleted = remoteWasDeleted; diff --git a/src/main/java/com/merge/api/crm/types/UsersListRequest.java b/src/main/java/com/merge/api/crm/types/UsersListRequest.java index 9a7c9d751..45913de32 100644 --- a/src/main/java/com/merge/api/crm/types/UsersListRequest.java +++ b/src/main/java/com/merge/api/crm/types/UsersListRequest.java @@ -271,6 +271,9 @@ public Builder from(UsersListRequest other) { return this; } + /** + *

            If provided, will only return objects created after this datetime.

            + */ @JsonSetter(value = "created_after", nulls = Nulls.SKIP) public Builder createdAfter(Optional createdAfter) { this.createdAfter = createdAfter; @@ -282,6 +285,9 @@ public Builder createdAfter(OffsetDateTime createdAfter) { return this; } + /** + *

            If provided, will only return objects created before this datetime.

            + */ @JsonSetter(value = "created_before", nulls = Nulls.SKIP) public Builder createdBefore(Optional createdBefore) { this.createdBefore = createdBefore; @@ -293,6 +299,9 @@ public Builder createdBefore(OffsetDateTime createdBefore) { return this; } + /** + *

            The pagination cursor value.

            + */ @JsonSetter(value = "cursor", nulls = Nulls.SKIP) public Builder cursor(Optional cursor) { this.cursor = cursor; @@ -304,6 +313,9 @@ public Builder cursor(String cursor) { return this; } + /** + *

            If provided, will only return users with this email.

            + */ @JsonSetter(value = "email", nulls = Nulls.SKIP) public Builder email(Optional email) { this.email = email; @@ -315,6 +327,9 @@ public Builder email(String email) { return this; } + /** + *

            Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

            + */ @JsonSetter(value = "include_deleted_data", nulls = Nulls.SKIP) public Builder includeDeletedData(Optional includeDeletedData) { this.includeDeletedData = includeDeletedData; @@ -326,6 +341,9 @@ public Builder includeDeletedData(Boolean includeDeletedData) { return this; } + /** + *

            Whether to include the original data Merge fetched from the third-party to produce these models.

            + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -337,6 +355,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

            Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format.

            + */ @JsonSetter(value = "include_remote_fields", nulls = Nulls.SKIP) public Builder includeRemoteFields(Optional includeRemoteFields) { this.includeRemoteFields = includeRemoteFields; @@ -348,6 +369,9 @@ public Builder includeRemoteFields(Boolean includeRemoteFields) { return this; } + /** + *

            Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

            + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; @@ -359,6 +383,9 @@ public Builder includeShellData(Boolean includeShellData) { return this; } + /** + *

            If provided, only objects synced by Merge after this date time will be returned.

            + */ @JsonSetter(value = "modified_after", nulls = Nulls.SKIP) public Builder modifiedAfter(Optional modifiedAfter) { this.modifiedAfter = modifiedAfter; @@ -370,6 +397,9 @@ public Builder modifiedAfter(OffsetDateTime modifiedAfter) { return this; } + /** + *

            If provided, only objects synced by Merge before this date time will be returned.

            + */ @JsonSetter(value = "modified_before", nulls = Nulls.SKIP) public Builder modifiedBefore(Optional modifiedBefore) { this.modifiedBefore = modifiedBefore; @@ -381,6 +411,9 @@ public Builder modifiedBefore(OffsetDateTime modifiedBefore) { return this; } + /** + *

            Number of results to return per page.

            + */ @JsonSetter(value = "page_size", nulls = Nulls.SKIP) public Builder pageSize(Optional pageSize) { this.pageSize = pageSize; @@ -392,6 +425,9 @@ public Builder pageSize(Integer pageSize) { return this; } + /** + *

            The API provider's ID for the given object.

            + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; diff --git a/src/main/java/com/merge/api/crm/types/UsersRemoteFieldClassesListRequest.java b/src/main/java/com/merge/api/crm/types/UsersRemoteFieldClassesListRequest.java index fe73df048..08b8db26b 100644 --- a/src/main/java/com/merge/api/crm/types/UsersRemoteFieldClassesListRequest.java +++ b/src/main/java/com/merge/api/crm/types/UsersRemoteFieldClassesListRequest.java @@ -186,6 +186,9 @@ public Builder from(UsersRemoteFieldClassesListRequest other) { return this; } + /** + *

            The pagination cursor value.

            + */ @JsonSetter(value = "cursor", nulls = Nulls.SKIP) public Builder cursor(Optional cursor) { this.cursor = cursor; @@ -197,6 +200,9 @@ public Builder cursor(String cursor) { return this; } + /** + *

            Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

            + */ @JsonSetter(value = "include_deleted_data", nulls = Nulls.SKIP) public Builder includeDeletedData(Optional includeDeletedData) { this.includeDeletedData = includeDeletedData; @@ -208,6 +214,9 @@ public Builder includeDeletedData(Boolean includeDeletedData) { return this; } + /** + *

            Whether to include the original data Merge fetched from the third-party to produce these models.

            + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -219,6 +228,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

            Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format.

            + */ @JsonSetter(value = "include_remote_fields", nulls = Nulls.SKIP) public Builder includeRemoteFields(Optional includeRemoteFields) { this.includeRemoteFields = includeRemoteFields; @@ -230,6 +242,9 @@ public Builder includeRemoteFields(Boolean includeRemoteFields) { return this; } + /** + *

            Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

            + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; @@ -241,6 +256,9 @@ public Builder includeShellData(Boolean includeShellData) { return this; } + /** + *

            If provided, will only return remote field classes with this is_common_model_field value

            + */ @JsonSetter(value = "is_common_model_field", nulls = Nulls.SKIP) public Builder isCommonModelField(Optional isCommonModelField) { this.isCommonModelField = isCommonModelField; @@ -252,6 +270,9 @@ public Builder isCommonModelField(Boolean isCommonModelField) { return this; } + /** + *

            Number of results to return per page.

            + */ @JsonSetter(value = "page_size", nulls = Nulls.SKIP) public Builder pageSize(Optional pageSize) { this.pageSize = pageSize; diff --git a/src/main/java/com/merge/api/crm/types/UsersRetrieveRequest.java b/src/main/java/com/merge/api/crm/types/UsersRetrieveRequest.java index f07707488..87d7b4f40 100644 --- a/src/main/java/com/merge/api/crm/types/UsersRetrieveRequest.java +++ b/src/main/java/com/merge/api/crm/types/UsersRetrieveRequest.java @@ -114,6 +114,9 @@ public Builder from(UsersRetrieveRequest other) { return this; } + /** + *

            Whether to include the original data Merge fetched from the third-party to produce these models.

            + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -125,6 +128,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

            Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format.

            + */ @JsonSetter(value = "include_remote_fields", nulls = Nulls.SKIP) public Builder includeRemoteFields(Optional includeRemoteFields) { this.includeRemoteFields = includeRemoteFields; @@ -136,6 +142,9 @@ public Builder includeRemoteFields(Boolean includeRemoteFields) { return this; } + /** + *

            Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

            + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; diff --git a/src/main/java/com/merge/api/filestorage/types/AccountDetails.java b/src/main/java/com/merge/api/filestorage/types/AccountDetails.java index d27529e08..8a5108213 100644 --- a/src/main/java/com/merge/api/filestorage/types/AccountDetails.java +++ b/src/main/java/com/merge/api/filestorage/types/AccountDetails.java @@ -340,6 +340,9 @@ public Builder webhookListenerUrl(String webhookListenerUrl) { return this; } + /** + *

            Whether a Production Linked Account's credentials match another existing Production Linked Account. This field is null for Test Linked Accounts, incomplete Production Linked Accounts, and ignored duplicate Production Linked Account sets.

            + */ @JsonSetter(value = "is_duplicate", nulls = Nulls.SKIP) public Builder isDuplicate(Optional isDuplicate) { this.isDuplicate = isDuplicate; @@ -362,6 +365,9 @@ public Builder accountType(String accountType) { return this; } + /** + *

            The time at which account completes the linking flow.

            + */ @JsonSetter(value = "completed_at", nulls = Nulls.SKIP) public Builder completedAt(Optional completedAt) { this.completedAt = completedAt; diff --git a/src/main/java/com/merge/api/filestorage/types/AccountDetailsAndActions.java b/src/main/java/com/merge/api/filestorage/types/AccountDetailsAndActions.java index 840d359bb..e31f1df2f 100644 --- a/src/main/java/com/merge/api/filestorage/types/AccountDetailsAndActions.java +++ b/src/main/java/com/merge/api/filestorage/types/AccountDetailsAndActions.java @@ -251,10 +251,16 @@ public interface _FinalStage { _FinalStage endUserOriginId(String endUserOriginId); + /** + *

            The tenant or domain the customer has provided access to.

            + */ _FinalStage subdomain(Optional subdomain); _FinalStage subdomain(String subdomain); + /** + *

            Whether a Production Linked Account's credentials match another existing Production Linked Account. This field is null for Test Linked Accounts, incomplete Production Linked Accounts, and ignored duplicate Production Linked Account sets.

            + */ _FinalStage isDuplicate(Optional isDuplicate); _FinalStage isDuplicate(Boolean isDuplicate); @@ -395,6 +401,9 @@ public _FinalStage isDuplicate(Boolean isDuplicate) { return this; } + /** + *

            Whether a Production Linked Account's credentials match another existing Production Linked Account. This field is null for Test Linked Accounts, incomplete Production Linked Accounts, and ignored duplicate Production Linked Account sets.

            + */ @java.lang.Override @JsonSetter(value = "is_duplicate", nulls = Nulls.SKIP) public _FinalStage isDuplicate(Optional isDuplicate) { @@ -412,6 +421,9 @@ public _FinalStage subdomain(String subdomain) { return this; } + /** + *

            The tenant or domain the customer has provided access to.

            + */ @java.lang.Override @JsonSetter(value = "subdomain", nulls = Nulls.SKIP) public _FinalStage subdomain(Optional subdomain) { diff --git a/src/main/java/com/merge/api/filestorage/types/AccountIntegration.java b/src/main/java/com/merge/api/filestorage/types/AccountIntegration.java index 7cd2968b1..0649154b7 100644 --- a/src/main/java/com/merge/api/filestorage/types/AccountIntegration.java +++ b/src/main/java/com/merge/api/filestorage/types/AccountIntegration.java @@ -196,6 +196,9 @@ public static NameStage builder() { } public interface NameStage { + /** + * Company name. + */ _FinalStage name(@NotNull String name); Builder from(AccountIntegration other); @@ -204,22 +207,37 @@ public interface NameStage { public interface _FinalStage { AccountIntegration build(); + /** + *

            Optional. This shortened name appears in places with limited space, usually in conjunction with the platform's logo (e.g., Merge Link menu).<br><br>Example: <i>Workforce Now (in lieu of ADP Workforce Now), SuccessFactors (in lieu of SAP SuccessFactors)</i>

            + */ _FinalStage abbreviatedName(Optional abbreviatedName); _FinalStage abbreviatedName(String abbreviatedName); + /** + *

            Category or categories this integration belongs to. Multiple categories should be comma separated, i.e. [ats, hris].

            + */ _FinalStage categories(Optional> categories); _FinalStage categories(List categories); + /** + *

            Company logo in rectangular shape.

            + */ _FinalStage image(Optional image); _FinalStage image(String image); + /** + *

            Company logo in square shape.

            + */ _FinalStage squareImage(Optional squareImage); _FinalStage squareImage(String squareImage); + /** + *

            The color of this integration used for buttons and text throughout the app and landing pages. <b>Choose a darker, saturated color.</b>

            + */ _FinalStage color(Optional color); _FinalStage color(String color); @@ -228,14 +246,23 @@ public interface _FinalStage { _FinalStage slug(String slug); + /** + *

            Mapping of API endpoints to documentation urls for support. Example: {'GET': [['/common-model-scopes', 'https://docs.merge.dev/accounting/common-model-scopes/#common_model_scopes_retrieve'],['/common-model-actions', 'https://docs.merge.dev/accounting/common-model-actions/#common_model_actions_retrieve']], 'POST': []}

            + */ _FinalStage apiEndpointsToDocumentationUrls(Optional> apiEndpointsToDocumentationUrls); _FinalStage apiEndpointsToDocumentationUrls(Map apiEndpointsToDocumentationUrls); + /** + *

            Setup guide URL for third party webhook creation. Exposed in Merge Docs.

            + */ _FinalStage webhookSetupGuideUrl(Optional webhookSetupGuideUrl); _FinalStage webhookSetupGuideUrl(String webhookSetupGuideUrl); + /** + *

            Category or categories this integration is in beta status for.

            + */ _FinalStage categoryBetaStatus(Optional> categoryBetaStatus); _FinalStage categoryBetaStatus(Map categoryBetaStatus); @@ -284,7 +311,7 @@ public Builder from(AccountIntegration other) { } /** - *

            Company name.

            + * Company name.

            Company name.

            * @return Reference to {@code this} so that method calls can be chained together. */ @java.lang.Override @@ -304,6 +331,9 @@ public _FinalStage categoryBetaStatus(Map categoryBetaStatus) return this; } + /** + *

            Category or categories this integration is in beta status for.

            + */ @java.lang.Override @JsonSetter(value = "category_beta_status", nulls = Nulls.SKIP) public _FinalStage categoryBetaStatus(Optional> categoryBetaStatus) { @@ -321,6 +351,9 @@ public _FinalStage webhookSetupGuideUrl(String webhookSetupGuideUrl) { return this; } + /** + *

            Setup guide URL for third party webhook creation. Exposed in Merge Docs.

            + */ @java.lang.Override @JsonSetter(value = "webhook_setup_guide_url", nulls = Nulls.SKIP) public _FinalStage webhookSetupGuideUrl(Optional webhookSetupGuideUrl) { @@ -338,6 +371,9 @@ public _FinalStage apiEndpointsToDocumentationUrls(Map apiEndp return this; } + /** + *

            Mapping of API endpoints to documentation urls for support. Example: {'GET': [['/common-model-scopes', 'https://docs.merge.dev/accounting/common-model-scopes/#common_model_scopes_retrieve'],['/common-model-actions', 'https://docs.merge.dev/accounting/common-model-actions/#common_model_actions_retrieve']], 'POST': []}

            + */ @java.lang.Override @JsonSetter(value = "api_endpoints_to_documentation_urls", nulls = Nulls.SKIP) public _FinalStage apiEndpointsToDocumentationUrls( @@ -369,6 +405,9 @@ public _FinalStage color(String color) { return this; } + /** + *

            The color of this integration used for buttons and text throughout the app and landing pages. <b>Choose a darker, saturated color.</b>

            + */ @java.lang.Override @JsonSetter(value = "color", nulls = Nulls.SKIP) public _FinalStage color(Optional color) { @@ -386,6 +425,9 @@ public _FinalStage squareImage(String squareImage) { return this; } + /** + *

            Company logo in square shape.

            + */ @java.lang.Override @JsonSetter(value = "square_image", nulls = Nulls.SKIP) public _FinalStage squareImage(Optional squareImage) { @@ -403,6 +445,9 @@ public _FinalStage image(String image) { return this; } + /** + *

            Company logo in rectangular shape.

            + */ @java.lang.Override @JsonSetter(value = "image", nulls = Nulls.SKIP) public _FinalStage image(Optional image) { @@ -420,6 +465,9 @@ public _FinalStage categories(List categories) { return this; } + /** + *

            Category or categories this integration belongs to. Multiple categories should be comma separated, i.e. [ats, hris].

            + */ @java.lang.Override @JsonSetter(value = "categories", nulls = Nulls.SKIP) public _FinalStage categories(Optional> categories) { @@ -437,6 +485,9 @@ public _FinalStage abbreviatedName(String abbreviatedName) { return this; } + /** + *

            Optional. This shortened name appears in places with limited space, usually in conjunction with the platform's logo (e.g., Merge Link menu).<br><br>Example: <i>Workforce Now (in lieu of ADP Workforce Now), SuccessFactors (in lieu of SAP SuccessFactors)</i>

            + */ @java.lang.Override @JsonSetter(value = "abbreviated_name", nulls = Nulls.SKIP) public _FinalStage abbreviatedName(Optional abbreviatedName) { diff --git a/src/main/java/com/merge/api/filestorage/types/AuditLogEvent.java b/src/main/java/com/merge/api/filestorage/types/AuditLogEvent.java index 277f88c59..751646e44 100644 --- a/src/main/java/com/merge/api/filestorage/types/AuditLogEvent.java +++ b/src/main/java/com/merge/api/filestorage/types/AuditLogEvent.java @@ -210,6 +210,16 @@ public static RoleStage builder() { } public interface RoleStage { + /** + * Designates the role of the user (or SYSTEM/API if action not taken by a user) at the time of this Event occurring. + * + * * `ADMIN` - ADMIN + * * `DEVELOPER` - DEVELOPER + * * `MEMBER` - MEMBER + * * `API` - API + * * `SYSTEM` - SYSTEM + * * `MERGE_TEAM` - MERGE_TEAM + */ IpAddressStage role(@NotNull RoleEnum role); Builder from(AuditLogEvent other); @@ -220,6 +230,52 @@ public interface IpAddressStage { } public interface EventTypeStage { + /** + * Designates the type of event that occurred. + * + * * `CREATED_REMOTE_PRODUCTION_API_KEY` - CREATED_REMOTE_PRODUCTION_API_KEY + * * `DELETED_REMOTE_PRODUCTION_API_KEY` - DELETED_REMOTE_PRODUCTION_API_KEY + * * `CREATED_TEST_API_KEY` - CREATED_TEST_API_KEY + * * `DELETED_TEST_API_KEY` - DELETED_TEST_API_KEY + * * `REGENERATED_PRODUCTION_API_KEY` - REGENERATED_PRODUCTION_API_KEY + * * `INVITED_USER` - INVITED_USER + * * `TWO_FACTOR_AUTH_ENABLED` - TWO_FACTOR_AUTH_ENABLED + * * `TWO_FACTOR_AUTH_DISABLED` - TWO_FACTOR_AUTH_DISABLED + * * `DELETED_LINKED_ACCOUNT` - DELETED_LINKED_ACCOUNT + * * `DELETED_ALL_COMMON_MODELS_FOR_LINKED_ACCOUNT` - DELETED_ALL_COMMON_MODELS_FOR_LINKED_ACCOUNT + * * `CREATED_DESTINATION` - CREATED_DESTINATION + * * `DELETED_DESTINATION` - DELETED_DESTINATION + * * `CHANGED_DESTINATION` - CHANGED_DESTINATION + * * `CHANGED_SCOPES` - CHANGED_SCOPES + * * `CHANGED_PERSONAL_INFORMATION` - CHANGED_PERSONAL_INFORMATION + * * `CHANGED_ORGANIZATION_SETTINGS` - CHANGED_ORGANIZATION_SETTINGS + * * `ENABLED_INTEGRATION` - ENABLED_INTEGRATION + * * `DISABLED_INTEGRATION` - DISABLED_INTEGRATION + * * `ENABLED_CATEGORY` - ENABLED_CATEGORY + * * `DISABLED_CATEGORY` - DISABLED_CATEGORY + * * `CHANGED_PASSWORD` - CHANGED_PASSWORD + * * `RESET_PASSWORD` - RESET_PASSWORD + * * `ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION` - ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION + * * `ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT` - ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT + * * `DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION` - DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION + * * `DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT` - DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT + * * `CREATED_INTEGRATION_WIDE_FIELD_MAPPING` - CREATED_INTEGRATION_WIDE_FIELD_MAPPING + * * `CREATED_LINKED_ACCOUNT_FIELD_MAPPING` - CREATED_LINKED_ACCOUNT_FIELD_MAPPING + * * `CHANGED_INTEGRATION_WIDE_FIELD_MAPPING` - CHANGED_INTEGRATION_WIDE_FIELD_MAPPING + * * `CHANGED_LINKED_ACCOUNT_FIELD_MAPPING` - CHANGED_LINKED_ACCOUNT_FIELD_MAPPING + * * `DELETED_INTEGRATION_WIDE_FIELD_MAPPING` - DELETED_INTEGRATION_WIDE_FIELD_MAPPING + * * `DELETED_LINKED_ACCOUNT_FIELD_MAPPING` - DELETED_LINKED_ACCOUNT_FIELD_MAPPING + * * `CREATED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE` - CREATED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE + * * `CHANGED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE` - CHANGED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE + * * `DELETED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE` - DELETED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE + * * `FORCED_LINKED_ACCOUNT_RESYNC` - FORCED_LINKED_ACCOUNT_RESYNC + * * `MUTED_ISSUE` - MUTED_ISSUE + * * `GENERATED_MAGIC_LINK` - GENERATED_MAGIC_LINK + * * `ENABLED_MERGE_WEBHOOK` - ENABLED_MERGE_WEBHOOK + * * `DISABLED_MERGE_WEBHOOK` - DISABLED_MERGE_WEBHOOK + * * `MERGE_WEBHOOK_TARGET_CHANGED` - MERGE_WEBHOOK_TARGET_CHANGED + * * `END_USER_CREDENTIALS_ACCESSED` - END_USER_CREDENTIALS_ACCESSED + */ EventDescriptionStage eventType(@NotNull EventTypeEnum eventType); } @@ -234,10 +290,16 @@ public interface _FinalStage { _FinalStage id(String id); + /** + *

            The User's full name at the time of this Event occurring.

            + */ _FinalStage userName(Optional userName); _FinalStage userName(String userName); + /** + *

            The User's email at the time of this Event occurring.

            + */ _FinalStage userEmail(Optional userEmail); _FinalStage userEmail(String userEmail); @@ -285,7 +347,14 @@ public Builder from(AuditLogEvent other) { } /** - *

            Designates the role of the user (or SYSTEM/API if action not taken by a user) at the time of this Event occurring.

            + * Designates the role of the user (or SYSTEM/API if action not taken by a user) at the time of this Event occurring. + * + * * `ADMIN` - ADMIN + * * `DEVELOPER` - DEVELOPER + * * `MEMBER` - MEMBER + * * `API` - API + * * `SYSTEM` - SYSTEM + * * `MERGE_TEAM` - MERGE_TEAM

            Designates the role of the user (or SYSTEM/API if action not taken by a user) at the time of this Event occurring.

            *
              *
            • ADMIN - ADMIN
            • *
            • DEVELOPER - DEVELOPER
            • @@ -311,7 +380,50 @@ public EventTypeStage ipAddress(@NotNull String ipAddress) { } /** - *

              Designates the type of event that occurred.

              + * Designates the type of event that occurred. + * + * * `CREATED_REMOTE_PRODUCTION_API_KEY` - CREATED_REMOTE_PRODUCTION_API_KEY + * * `DELETED_REMOTE_PRODUCTION_API_KEY` - DELETED_REMOTE_PRODUCTION_API_KEY + * * `CREATED_TEST_API_KEY` - CREATED_TEST_API_KEY + * * `DELETED_TEST_API_KEY` - DELETED_TEST_API_KEY + * * `REGENERATED_PRODUCTION_API_KEY` - REGENERATED_PRODUCTION_API_KEY + * * `INVITED_USER` - INVITED_USER + * * `TWO_FACTOR_AUTH_ENABLED` - TWO_FACTOR_AUTH_ENABLED + * * `TWO_FACTOR_AUTH_DISABLED` - TWO_FACTOR_AUTH_DISABLED + * * `DELETED_LINKED_ACCOUNT` - DELETED_LINKED_ACCOUNT + * * `DELETED_ALL_COMMON_MODELS_FOR_LINKED_ACCOUNT` - DELETED_ALL_COMMON_MODELS_FOR_LINKED_ACCOUNT + * * `CREATED_DESTINATION` - CREATED_DESTINATION + * * `DELETED_DESTINATION` - DELETED_DESTINATION + * * `CHANGED_DESTINATION` - CHANGED_DESTINATION + * * `CHANGED_SCOPES` - CHANGED_SCOPES + * * `CHANGED_PERSONAL_INFORMATION` - CHANGED_PERSONAL_INFORMATION + * * `CHANGED_ORGANIZATION_SETTINGS` - CHANGED_ORGANIZATION_SETTINGS + * * `ENABLED_INTEGRATION` - ENABLED_INTEGRATION + * * `DISABLED_INTEGRATION` - DISABLED_INTEGRATION + * * `ENABLED_CATEGORY` - ENABLED_CATEGORY + * * `DISABLED_CATEGORY` - DISABLED_CATEGORY + * * `CHANGED_PASSWORD` - CHANGED_PASSWORD + * * `RESET_PASSWORD` - RESET_PASSWORD + * * `ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION` - ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION + * * `ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT` - ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT + * * `DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION` - DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION + * * `DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT` - DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT + * * `CREATED_INTEGRATION_WIDE_FIELD_MAPPING` - CREATED_INTEGRATION_WIDE_FIELD_MAPPING + * * `CREATED_LINKED_ACCOUNT_FIELD_MAPPING` - CREATED_LINKED_ACCOUNT_FIELD_MAPPING + * * `CHANGED_INTEGRATION_WIDE_FIELD_MAPPING` - CHANGED_INTEGRATION_WIDE_FIELD_MAPPING + * * `CHANGED_LINKED_ACCOUNT_FIELD_MAPPING` - CHANGED_LINKED_ACCOUNT_FIELD_MAPPING + * * `DELETED_INTEGRATION_WIDE_FIELD_MAPPING` - DELETED_INTEGRATION_WIDE_FIELD_MAPPING + * * `DELETED_LINKED_ACCOUNT_FIELD_MAPPING` - DELETED_LINKED_ACCOUNT_FIELD_MAPPING + * * `CREATED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE` - CREATED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE + * * `CHANGED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE` - CHANGED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE + * * `DELETED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE` - DELETED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE + * * `FORCED_LINKED_ACCOUNT_RESYNC` - FORCED_LINKED_ACCOUNT_RESYNC + * * `MUTED_ISSUE` - MUTED_ISSUE + * * `GENERATED_MAGIC_LINK` - GENERATED_MAGIC_LINK + * * `ENABLED_MERGE_WEBHOOK` - ENABLED_MERGE_WEBHOOK + * * `DISABLED_MERGE_WEBHOOK` - DISABLED_MERGE_WEBHOOK + * * `MERGE_WEBHOOK_TARGET_CHANGED` - MERGE_WEBHOOK_TARGET_CHANGED + * * `END_USER_CREDENTIALS_ACCESSED` - END_USER_CREDENTIALS_ACCESSED

              Designates the type of event that occurred.

              *
                *
              • CREATED_REMOTE_PRODUCTION_API_KEY - CREATED_REMOTE_PRODUCTION_API_KEY
              • *
              • DELETED_REMOTE_PRODUCTION_API_KEY - DELETED_REMOTE_PRODUCTION_API_KEY
              • @@ -395,6 +507,9 @@ public _FinalStage userEmail(String userEmail) { return this; } + /** + *

                The User's email at the time of this Event occurring.

                + */ @java.lang.Override @JsonSetter(value = "user_email", nulls = Nulls.SKIP) public _FinalStage userEmail(Optional userEmail) { @@ -412,6 +527,9 @@ public _FinalStage userName(String userName) { return this; } + /** + *

                The User's full name at the time of this Event occurring.

                + */ @java.lang.Override @JsonSetter(value = "user_name", nulls = Nulls.SKIP) public _FinalStage userName(Optional userName) { diff --git a/src/main/java/com/merge/api/filestorage/types/AuditTrailListRequest.java b/src/main/java/com/merge/api/filestorage/types/AuditTrailListRequest.java index b70b6c075..ef6b0cedb 100644 --- a/src/main/java/com/merge/api/filestorage/types/AuditTrailListRequest.java +++ b/src/main/java/com/merge/api/filestorage/types/AuditTrailListRequest.java @@ -162,6 +162,9 @@ public Builder from(AuditTrailListRequest other) { return this; } + /** + *

                The pagination cursor value.

                + */ @JsonSetter(value = "cursor", nulls = Nulls.SKIP) public Builder cursor(Optional cursor) { this.cursor = cursor; @@ -173,6 +176,9 @@ public Builder cursor(String cursor) { return this; } + /** + *

                If included, will only include audit trail events that occurred before this time

                + */ @JsonSetter(value = "end_date", nulls = Nulls.SKIP) public Builder endDate(Optional endDate) { this.endDate = endDate; @@ -184,6 +190,9 @@ public Builder endDate(String endDate) { return this; } + /** + *

                If included, will only include events with the given event type. Possible values include: CREATED_REMOTE_PRODUCTION_API_KEY, DELETED_REMOTE_PRODUCTION_API_KEY, CREATED_TEST_API_KEY, DELETED_TEST_API_KEY, REGENERATED_PRODUCTION_API_KEY, INVITED_USER, TWO_FACTOR_AUTH_ENABLED, TWO_FACTOR_AUTH_DISABLED, DELETED_LINKED_ACCOUNT, DELETED_ALL_COMMON_MODELS_FOR_LINKED_ACCOUNT, CREATED_DESTINATION, DELETED_DESTINATION, CHANGED_DESTINATION, CHANGED_SCOPES, CHANGED_PERSONAL_INFORMATION, CHANGED_ORGANIZATION_SETTINGS, ENABLED_INTEGRATION, DISABLED_INTEGRATION, ENABLED_CATEGORY, DISABLED_CATEGORY, CHANGED_PASSWORD, RESET_PASSWORD, ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION, ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT, DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION, DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT, CREATED_INTEGRATION_WIDE_FIELD_MAPPING, CREATED_LINKED_ACCOUNT_FIELD_MAPPING, CHANGED_INTEGRATION_WIDE_FIELD_MAPPING, CHANGED_LINKED_ACCOUNT_FIELD_MAPPING, DELETED_INTEGRATION_WIDE_FIELD_MAPPING, DELETED_LINKED_ACCOUNT_FIELD_MAPPING, CREATED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE, CHANGED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE, DELETED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE, FORCED_LINKED_ACCOUNT_RESYNC, MUTED_ISSUE, GENERATED_MAGIC_LINK, ENABLED_MERGE_WEBHOOK, DISABLED_MERGE_WEBHOOK, MERGE_WEBHOOK_TARGET_CHANGED, END_USER_CREDENTIALS_ACCESSED

                + */ @JsonSetter(value = "event_type", nulls = Nulls.SKIP) public Builder eventType(Optional eventType) { this.eventType = eventType; @@ -195,6 +204,9 @@ public Builder eventType(String eventType) { return this; } + /** + *

                Number of results to return per page.

                + */ @JsonSetter(value = "page_size", nulls = Nulls.SKIP) public Builder pageSize(Optional pageSize) { this.pageSize = pageSize; @@ -206,6 +218,9 @@ public Builder pageSize(Integer pageSize) { return this; } + /** + *

                If included, will only include audit trail events that occurred after this time

                + */ @JsonSetter(value = "start_date", nulls = Nulls.SKIP) public Builder startDate(Optional startDate) { this.startDate = startDate; @@ -217,6 +232,9 @@ public Builder startDate(String startDate) { return this; } + /** + *

                If provided, this will return events associated with the specified user email. Please note that the email address reflects the user's email at the time of the event, and may not be their current email.

                + */ @JsonSetter(value = "user_email", nulls = Nulls.SKIP) public Builder userEmail(Optional userEmail) { this.userEmail = userEmail; diff --git a/src/main/java/com/merge/api/filestorage/types/CommonModelScopeApi.java b/src/main/java/com/merge/api/filestorage/types/CommonModelScopeApi.java index ce7bfbdc9..9e492d942 100644 --- a/src/main/java/com/merge/api/filestorage/types/CommonModelScopeApi.java +++ b/src/main/java/com/merge/api/filestorage/types/CommonModelScopeApi.java @@ -82,6 +82,9 @@ public Builder from(CommonModelScopeApi other) { return this; } + /** + *

                The common models you want to update the scopes for

                + */ @JsonSetter(value = "common_models", nulls = Nulls.SKIP) public Builder commonModels(List commonModels) { this.commonModels.clear(); diff --git a/src/main/java/com/merge/api/filestorage/types/CreateFieldMappingRequest.java b/src/main/java/com/merge/api/filestorage/types/CreateFieldMappingRequest.java index e3159f3a5..026b32730 100644 --- a/src/main/java/com/merge/api/filestorage/types/CreateFieldMappingRequest.java +++ b/src/main/java/com/merge/api/filestorage/types/CreateFieldMappingRequest.java @@ -158,34 +158,55 @@ public static TargetFieldNameStage builder() { } public interface TargetFieldNameStage { + /** + * The name of the target field you want this remote field to map to. + */ TargetFieldDescriptionStage targetFieldName(@NotNull String targetFieldName); Builder from(CreateFieldMappingRequest other); } public interface TargetFieldDescriptionStage { + /** + * The description of the target field you want this remote field to map to. + */ RemoteMethodStage targetFieldDescription(@NotNull String targetFieldDescription); } public interface RemoteMethodStage { + /** + * The method of the remote endpoint where the remote field is coming from. + */ RemoteUrlPathStage remoteMethod(@NotNull String remoteMethod); } public interface RemoteUrlPathStage { + /** + * The path of the remote endpoint where the remote field is coming from. + */ CommonModelNameStage remoteUrlPath(@NotNull String remoteUrlPath); } public interface CommonModelNameStage { + /** + * The name of the Common Model that the remote field corresponds to in a given category. + */ _FinalStage commonModelName(@NotNull String commonModelName); } public interface _FinalStage { CreateFieldMappingRequest build(); + /** + *

                If true, remote fields metadata is excluded from each field mapping instance (i.e. remote_fields.remote_key_name and remote_fields.schema will be null). This will increase the speed of the request since these fields require some calculations.

                + */ _FinalStage excludeRemoteFieldMetadata(Optional excludeRemoteFieldMetadata); _FinalStage excludeRemoteFieldMetadata(Boolean excludeRemoteFieldMetadata); + /** + *

                The field traversal path of the remote field listed when you hit the GET /remote-fields endpoint.

                + */ _FinalStage remoteFieldTraversalPath(List remoteFieldTraversalPath); _FinalStage addRemoteFieldTraversalPath(JsonNode remoteFieldTraversalPath); @@ -233,7 +254,7 @@ public Builder from(CreateFieldMappingRequest other) { } /** - *

                The name of the target field you want this remote field to map to.

                + * The name of the target field you want this remote field to map to.

                The name of the target field you want this remote field to map to.

                * @return Reference to {@code this} so that method calls can be chained together. */ @java.lang.Override @@ -244,7 +265,7 @@ public TargetFieldDescriptionStage targetFieldName(@NotNull String targetFieldNa } /** - *

                The description of the target field you want this remote field to map to.

                + * The description of the target field you want this remote field to map to.

                The description of the target field you want this remote field to map to.

                * @return Reference to {@code this} so that method calls can be chained together. */ @java.lang.Override @@ -255,7 +276,7 @@ public RemoteMethodStage targetFieldDescription(@NotNull String targetFieldDescr } /** - *

                The method of the remote endpoint where the remote field is coming from.

                + * The method of the remote endpoint where the remote field is coming from.

                The method of the remote endpoint where the remote field is coming from.

                * @return Reference to {@code this} so that method calls can be chained together. */ @java.lang.Override @@ -266,7 +287,7 @@ public RemoteUrlPathStage remoteMethod(@NotNull String remoteMethod) { } /** - *

                The path of the remote endpoint where the remote field is coming from.

                + * The path of the remote endpoint where the remote field is coming from.

                The path of the remote endpoint where the remote field is coming from.

                * @return Reference to {@code this} so that method calls can be chained together. */ @java.lang.Override @@ -277,7 +298,7 @@ public CommonModelNameStage remoteUrlPath(@NotNull String remoteUrlPath) { } /** - *

                The name of the Common Model that the remote field corresponds to in a given category.

                + * The name of the Common Model that the remote field corresponds to in a given category.

                The name of the Common Model that the remote field corresponds to in a given category.

                * @return Reference to {@code this} so that method calls can be chained together. */ @java.lang.Override @@ -307,6 +328,9 @@ public _FinalStage addRemoteFieldTraversalPath(JsonNode remoteFieldTraversalPath return this; } + /** + *

                The field traversal path of the remote field listed when you hit the GET /remote-fields endpoint.

                + */ @java.lang.Override @JsonSetter(value = "remote_field_traversal_path", nulls = Nulls.SKIP) public _FinalStage remoteFieldTraversalPath(List remoteFieldTraversalPath) { @@ -325,6 +349,9 @@ public _FinalStage excludeRemoteFieldMetadata(Boolean excludeRemoteFieldMetadata return this; } + /** + *

                If true, remote fields metadata is excluded from each field mapping instance (i.e. remote_fields.remote_key_name and remote_fields.schema will be null). This will increase the speed of the request since these fields require some calculations.

                + */ @java.lang.Override @JsonSetter(value = "exclude_remote_field_metadata", nulls = Nulls.SKIP) public _FinalStage excludeRemoteFieldMetadata(Optional excludeRemoteFieldMetadata) { diff --git a/src/main/java/com/merge/api/filestorage/types/DataPassthroughRequest.java b/src/main/java/com/merge/api/filestorage/types/DataPassthroughRequest.java index afd410079..09377c8d4 100644 --- a/src/main/java/com/merge/api/filestorage/types/DataPassthroughRequest.java +++ b/src/main/java/com/merge/api/filestorage/types/DataPassthroughRequest.java @@ -171,24 +171,39 @@ public interface MethodStage { } public interface PathStage { + /** + * The path of the request in the third party's platform. + */ _FinalStage path(@NotNull String path); } public interface _FinalStage { DataPassthroughRequest build(); + /** + *

                An optional override of the third party's base url for the request.

                + */ _FinalStage baseUrlOverride(Optional baseUrlOverride); _FinalStage baseUrlOverride(String baseUrlOverride); + /** + *

                The data with the request. You must include a request_format parameter matching the data's format

                + */ _FinalStage data(Optional data); _FinalStage data(String data); + /** + *

                Pass an array of MultipartFormField objects in here instead of using the data param if request_format is set to MULTIPART.

                + */ _FinalStage multipartFormData(Optional> multipartFormData); _FinalStage multipartFormData(List multipartFormData); + /** + *

                The headers to use for the request (Merge will handle the account's authorization headers). Content-Type header is required for passthrough. Choose content type corresponding to expected format of receiving server.

                + */ _FinalStage headers(Optional> headers); _FinalStage headers(Map headers); @@ -197,6 +212,9 @@ public interface _FinalStage { _FinalStage requestFormat(RequestFormatEnum requestFormat); + /** + *

                Optional. If true, the response will always be an object of the form {"type": T, "value": ...} where T will be one of string, boolean, number, null, array, object.

                + */ _FinalStage normalizeResponse(Optional normalizeResponse); _FinalStage normalizeResponse(Boolean normalizeResponse); @@ -246,7 +264,7 @@ public PathStage method(@NotNull MethodEnum method) { } /** - *

                The path of the request in the third party's platform.

                + * The path of the request in the third party's platform.

                The path of the request in the third party's platform.

                * @return Reference to {@code this} so that method calls can be chained together. */ @java.lang.Override @@ -266,6 +284,9 @@ public _FinalStage normalizeResponse(Boolean normalizeResponse) { return this; } + /** + *

                Optional. If true, the response will always be an object of the form {"type": T, "value": ...} where T will be one of string, boolean, number, null, array, object.

                + */ @java.lang.Override @JsonSetter(value = "normalize_response", nulls = Nulls.SKIP) public _FinalStage normalizeResponse(Optional normalizeResponse) { @@ -296,6 +317,9 @@ public _FinalStage headers(Map headers) { return this; } + /** + *

                The headers to use for the request (Merge will handle the account's authorization headers). Content-Type header is required for passthrough. Choose content type corresponding to expected format of receiving server.

                + */ @java.lang.Override @JsonSetter(value = "headers", nulls = Nulls.SKIP) public _FinalStage headers(Optional> headers) { @@ -313,6 +337,9 @@ public _FinalStage multipartFormData(List multipartFo return this; } + /** + *

                Pass an array of MultipartFormField objects in here instead of using the data param if request_format is set to MULTIPART.

                + */ @java.lang.Override @JsonSetter(value = "multipart_form_data", nulls = Nulls.SKIP) public _FinalStage multipartFormData(Optional> multipartFormData) { @@ -330,6 +357,9 @@ public _FinalStage data(String data) { return this; } + /** + *

                The data with the request. You must include a request_format parameter matching the data's format

                + */ @java.lang.Override @JsonSetter(value = "data", nulls = Nulls.SKIP) public _FinalStage data(Optional data) { @@ -347,6 +377,9 @@ public _FinalStage baseUrlOverride(String baseUrlOverride) { return this; } + /** + *

                An optional override of the third party's base url for the request.

                + */ @java.lang.Override @JsonSetter(value = "base_url_override", nulls = Nulls.SKIP) public _FinalStage baseUrlOverride(Optional baseUrlOverride) { diff --git a/src/main/java/com/merge/api/filestorage/types/Drive.java b/src/main/java/com/merge/api/filestorage/types/Drive.java index fb9334dea..c0ab3fc33 100644 --- a/src/main/java/com/merge/api/filestorage/types/Drive.java +++ b/src/main/java/com/merge/api/filestorage/types/Drive.java @@ -241,6 +241,9 @@ public Builder id(String id) { return this; } + /** + *

                The third-party API ID of the matching object.

                + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; @@ -252,6 +255,9 @@ public Builder remoteId(String remoteId) { return this; } + /** + *

                The datetime that this object was created by Merge.

                + */ @JsonSetter(value = "created_at", nulls = Nulls.SKIP) public Builder createdAt(Optional createdAt) { this.createdAt = createdAt; @@ -263,6 +269,9 @@ public Builder createdAt(OffsetDateTime createdAt) { return this; } + /** + *

                The datetime that this object was modified by Merge.

                + */ @JsonSetter(value = "modified_at", nulls = Nulls.SKIP) public Builder modifiedAt(Optional modifiedAt) { this.modifiedAt = modifiedAt; @@ -274,6 +283,9 @@ public Builder modifiedAt(OffsetDateTime modifiedAt) { return this; } + /** + *

                The drive's name.

                + */ @JsonSetter(value = "name", nulls = Nulls.SKIP) public Builder name(Optional name) { this.name = name; @@ -285,6 +297,9 @@ public Builder name(String name) { return this; } + /** + *

                When the third party's drive was created.

                + */ @JsonSetter(value = "remote_created_at", nulls = Nulls.SKIP) public Builder remoteCreatedAt(Optional remoteCreatedAt) { this.remoteCreatedAt = remoteCreatedAt; @@ -296,6 +311,9 @@ public Builder remoteCreatedAt(OffsetDateTime remoteCreatedAt) { return this; } + /** + *

                The drive's url.

                + */ @JsonSetter(value = "drive_url", nulls = Nulls.SKIP) public Builder driveUrl(Optional driveUrl) { this.driveUrl = driveUrl; @@ -307,6 +325,9 @@ public Builder driveUrl(String driveUrl) { return this; } + /** + *

                Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

                + */ @JsonSetter(value = "remote_was_deleted", nulls = Nulls.SKIP) public Builder remoteWasDeleted(Optional remoteWasDeleted) { this.remoteWasDeleted = remoteWasDeleted; diff --git a/src/main/java/com/merge/api/filestorage/types/DrivesListRequest.java b/src/main/java/com/merge/api/filestorage/types/DrivesListRequest.java index 0b20547b3..7dd00be88 100644 --- a/src/main/java/com/merge/api/filestorage/types/DrivesListRequest.java +++ b/src/main/java/com/merge/api/filestorage/types/DrivesListRequest.java @@ -254,6 +254,9 @@ public Builder from(DrivesListRequest other) { return this; } + /** + *

                If provided, will only return objects created after this datetime.

                + */ @JsonSetter(value = "created_after", nulls = Nulls.SKIP) public Builder createdAfter(Optional createdAfter) { this.createdAfter = createdAfter; @@ -265,6 +268,9 @@ public Builder createdAfter(OffsetDateTime createdAfter) { return this; } + /** + *

                If provided, will only return objects created before this datetime.

                + */ @JsonSetter(value = "created_before", nulls = Nulls.SKIP) public Builder createdBefore(Optional createdBefore) { this.createdBefore = createdBefore; @@ -276,6 +282,9 @@ public Builder createdBefore(OffsetDateTime createdBefore) { return this; } + /** + *

                The pagination cursor value.

                + */ @JsonSetter(value = "cursor", nulls = Nulls.SKIP) public Builder cursor(Optional cursor) { this.cursor = cursor; @@ -287,6 +296,9 @@ public Builder cursor(String cursor) { return this; } + /** + *

                Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

                + */ @JsonSetter(value = "include_deleted_data", nulls = Nulls.SKIP) public Builder includeDeletedData(Optional includeDeletedData) { this.includeDeletedData = includeDeletedData; @@ -298,6 +310,9 @@ public Builder includeDeletedData(Boolean includeDeletedData) { return this; } + /** + *

                Whether to include the original data Merge fetched from the third-party to produce these models.

                + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -309,6 +324,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

                Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

                + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; @@ -320,6 +338,9 @@ public Builder includeShellData(Boolean includeShellData) { return this; } + /** + *

                If provided, only objects synced by Merge after this date time will be returned.

                + */ @JsonSetter(value = "modified_after", nulls = Nulls.SKIP) public Builder modifiedAfter(Optional modifiedAfter) { this.modifiedAfter = modifiedAfter; @@ -331,6 +352,9 @@ public Builder modifiedAfter(OffsetDateTime modifiedAfter) { return this; } + /** + *

                If provided, only objects synced by Merge before this date time will be returned.

                + */ @JsonSetter(value = "modified_before", nulls = Nulls.SKIP) public Builder modifiedBefore(Optional modifiedBefore) { this.modifiedBefore = modifiedBefore; @@ -342,6 +366,9 @@ public Builder modifiedBefore(OffsetDateTime modifiedBefore) { return this; } + /** + *

                If provided, will only return drives with this name. This performs an exact match.

                + */ @JsonSetter(value = "name", nulls = Nulls.SKIP) public Builder name(Optional name) { this.name = name; @@ -353,6 +380,9 @@ public Builder name(String name) { return this; } + /** + *

                Number of results to return per page.

                + */ @JsonSetter(value = "page_size", nulls = Nulls.SKIP) public Builder pageSize(Optional pageSize) { this.pageSize = pageSize; @@ -364,6 +394,9 @@ public Builder pageSize(Integer pageSize) { return this; } + /** + *

                The API provider's ID for the given object.

                + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; diff --git a/src/main/java/com/merge/api/filestorage/types/DrivesRetrieveRequest.java b/src/main/java/com/merge/api/filestorage/types/DrivesRetrieveRequest.java index c503815ef..bdf622568 100644 --- a/src/main/java/com/merge/api/filestorage/types/DrivesRetrieveRequest.java +++ b/src/main/java/com/merge/api/filestorage/types/DrivesRetrieveRequest.java @@ -97,6 +97,9 @@ public Builder from(DrivesRetrieveRequest other) { return this; } + /** + *

                Whether to include the original data Merge fetched from the third-party to produce these models.

                + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -108,6 +111,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

                Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

                + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; diff --git a/src/main/java/com/merge/api/filestorage/types/EndUserDetailsRequest.java b/src/main/java/com/merge/api/filestorage/types/EndUserDetailsRequest.java index a5dad7f71..74f4a978c 100644 --- a/src/main/java/com/merge/api/filestorage/types/EndUserDetailsRequest.java +++ b/src/main/java/com/merge/api/filestorage/types/EndUserDetailsRequest.java @@ -249,48 +249,78 @@ public static EndUserEmailAddressStage builder() { } public interface EndUserEmailAddressStage { + /** + * Your end user's email address. This is purely for identification purposes - setting this value will not cause any emails to be sent. + */ EndUserOrganizationNameStage endUserEmailAddress(@NotNull String endUserEmailAddress); Builder from(EndUserDetailsRequest other); } public interface EndUserOrganizationNameStage { + /** + * Your end user's organization. + */ EndUserOriginIdStage endUserOrganizationName(@NotNull String endUserOrganizationName); } public interface EndUserOriginIdStage { + /** + * This unique identifier typically represents the ID for your end user in your product's database. This value must be distinct from other Linked Accounts' unique identifiers. + */ _FinalStage endUserOriginId(@NotNull String endUserOriginId); } public interface _FinalStage { EndUserDetailsRequest build(); + /** + *

                The integration categories to show in Merge Link.

                + */ _FinalStage categories(List categories); _FinalStage addCategories(CategoriesEnum categories); _FinalStage addAllCategories(List categories); + /** + *

                The slug of a specific pre-selected integration for this linking flow token. For examples of slugs, see https://docs.merge.dev/guides/merge-link/single-integration/.

                + */ _FinalStage integration(Optional integration); _FinalStage integration(String integration); + /** + *

                An integer number of minutes between [30, 720 or 10080 if for a Magic Link URL] for how long this token is valid. Defaults to 30.

                + */ _FinalStage linkExpiryMins(Optional linkExpiryMins); _FinalStage linkExpiryMins(Integer linkExpiryMins); + /** + *

                Whether to generate a Magic Link URL. Defaults to false. For more information on Magic Link, see https://merge.dev/blog/integrations-fast-say-hello-to-magic-link.

                + */ _FinalStage shouldCreateMagicLinkUrl(Optional shouldCreateMagicLinkUrl); _FinalStage shouldCreateMagicLinkUrl(Boolean shouldCreateMagicLinkUrl); + /** + *

                Whether to generate a Magic Link URL on the Admin Needed screen during the linking flow. Defaults to false. For more information on Magic Link, see https://merge.dev/blog/integrations-fast-say-hello-to-magic-link.

                + */ _FinalStage hideAdminMagicLink(Optional hideAdminMagicLink); _FinalStage hideAdminMagicLink(Boolean hideAdminMagicLink); + /** + *

                An array of objects to specify the models and fields that will be disabled for a given Linked Account. Each object uses model_id, enabled_actions, and disabled_fields to specify the model, method, and fields that are scoped for a given Linked Account.

                + */ _FinalStage commonModels(Optional> commonModels); _FinalStage commonModels(List commonModels); + /** + *

                When creating a Link Token, you can set permissions for Common Models that will apply to the account that is going to be linked. Any model or field not specified in link token payload will default to existing settings.

                + */ _FinalStage categoryCommonModelScopes( Optional>>> categoryCommonModelScopes); @@ -298,14 +328,27 @@ _FinalStage categoryCommonModelScopes( _FinalStage categoryCommonModelScopes( Map>> categoryCommonModelScopes); + /** + *

                The following subset of IETF language tags can be used to configure localization.

                + *
                  + *
                • en - en
                • + *
                • de - de
                • + *
                + */ _FinalStage language(Optional language); _FinalStage language(LanguageEnum language); + /** + *

                The boolean that indicates whether initial, periodic, and force syncs will be disabled.

                + */ _FinalStage areSyncsDisabled(Optional areSyncsDisabled); _FinalStage areSyncsDisabled(Boolean areSyncsDisabled); + /** + *

                A JSON object containing integration-specific configuration options.

                + */ _FinalStage integrationSpecificConfig(Optional> integrationSpecificConfig); _FinalStage integrationSpecificConfig(Map integrationSpecificConfig); @@ -365,7 +408,7 @@ public Builder from(EndUserDetailsRequest other) { } /** - *

                Your end user's email address. This is purely for identification purposes - setting this value will not cause any emails to be sent.

                + * Your end user's email address. This is purely for identification purposes - setting this value will not cause any emails to be sent.

                Your end user's email address. This is purely for identification purposes - setting this value will not cause any emails to be sent.

                * @return Reference to {@code this} so that method calls can be chained together. */ @java.lang.Override @@ -376,7 +419,7 @@ public EndUserOrganizationNameStage endUserEmailAddress(@NotNull String endUserE } /** - *

                Your end user's organization.

                + * Your end user's organization.

                Your end user's organization.

                * @return Reference to {@code this} so that method calls can be chained together. */ @java.lang.Override @@ -387,7 +430,7 @@ public EndUserOriginIdStage endUserOrganizationName(@NotNull String endUserOrgan } /** - *

                This unique identifier typically represents the ID for your end user in your product's database. This value must be distinct from other Linked Accounts' unique identifiers.

                + * This unique identifier typically represents the ID for your end user in your product's database. This value must be distinct from other Linked Accounts' unique identifiers.

                This unique identifier typically represents the ID for your end user in your product's database. This value must be distinct from other Linked Accounts' unique identifiers.

                * @return Reference to {@code this} so that method calls can be chained together. */ @java.lang.Override @@ -407,6 +450,9 @@ public _FinalStage integrationSpecificConfig(Map integrationSp return this; } + /** + *

                A JSON object containing integration-specific configuration options.

                + */ @java.lang.Override @JsonSetter(value = "integration_specific_config", nulls = Nulls.SKIP) public _FinalStage integrationSpecificConfig(Optional> integrationSpecificConfig) { @@ -424,6 +470,9 @@ public _FinalStage areSyncsDisabled(Boolean areSyncsDisabled) { return this; } + /** + *

                The boolean that indicates whether initial, periodic, and force syncs will be disabled.

                + */ @java.lang.Override @JsonSetter(value = "are_syncs_disabled", nulls = Nulls.SKIP) public _FinalStage areSyncsDisabled(Optional areSyncsDisabled) { @@ -445,6 +494,13 @@ public _FinalStage language(LanguageEnum language) { return this; } + /** + *

                The following subset of IETF language tags can be used to configure localization.

                + *
                  + *
                • en - en
                • + *
                • de - de
                • + *
                + */ @java.lang.Override @JsonSetter(value = "language", nulls = Nulls.SKIP) public _FinalStage language(Optional language) { @@ -463,6 +519,9 @@ public _FinalStage categoryCommonModelScopes( return this; } + /** + *

                When creating a Link Token, you can set permissions for Common Models that will apply to the account that is going to be linked. Any model or field not specified in link token payload will default to existing settings.

                + */ @java.lang.Override @JsonSetter(value = "category_common_model_scopes", nulls = Nulls.SKIP) public _FinalStage categoryCommonModelScopes( @@ -482,6 +541,9 @@ public _FinalStage commonModels(List commonModels) return this; } + /** + *

                An array of objects to specify the models and fields that will be disabled for a given Linked Account. Each object uses model_id, enabled_actions, and disabled_fields to specify the model, method, and fields that are scoped for a given Linked Account.

                + */ @java.lang.Override @JsonSetter(value = "common_models", nulls = Nulls.SKIP) public _FinalStage commonModels(Optional> commonModels) { @@ -499,6 +561,9 @@ public _FinalStage hideAdminMagicLink(Boolean hideAdminMagicLink) { return this; } + /** + *

                Whether to generate a Magic Link URL on the Admin Needed screen during the linking flow. Defaults to false. For more information on Magic Link, see https://merge.dev/blog/integrations-fast-say-hello-to-magic-link.

                + */ @java.lang.Override @JsonSetter(value = "hide_admin_magic_link", nulls = Nulls.SKIP) public _FinalStage hideAdminMagicLink(Optional hideAdminMagicLink) { @@ -516,6 +581,9 @@ public _FinalStage shouldCreateMagicLinkUrl(Boolean shouldCreateMagicLinkUrl) { return this; } + /** + *

                Whether to generate a Magic Link URL. Defaults to false. For more information on Magic Link, see https://merge.dev/blog/integrations-fast-say-hello-to-magic-link.

                + */ @java.lang.Override @JsonSetter(value = "should_create_magic_link_url", nulls = Nulls.SKIP) public _FinalStage shouldCreateMagicLinkUrl(Optional shouldCreateMagicLinkUrl) { @@ -533,6 +601,9 @@ public _FinalStage linkExpiryMins(Integer linkExpiryMins) { return this; } + /** + *

                An integer number of minutes between [30, 720 or 10080 if for a Magic Link URL] for how long this token is valid. Defaults to 30.

                + */ @java.lang.Override @JsonSetter(value = "link_expiry_mins", nulls = Nulls.SKIP) public _FinalStage linkExpiryMins(Optional linkExpiryMins) { @@ -550,6 +621,9 @@ public _FinalStage integration(String integration) { return this; } + /** + *

                The slug of a specific pre-selected integration for this linking flow token. For examples of slugs, see https://docs.merge.dev/guides/merge-link/single-integration/.

                + */ @java.lang.Override @JsonSetter(value = "integration", nulls = Nulls.SKIP) public _FinalStage integration(Optional integration) { @@ -577,6 +651,9 @@ public _FinalStage addCategories(CategoriesEnum categories) { return this; } + /** + *

                The integration categories to show in Merge Link.

                + */ @java.lang.Override @JsonSetter(value = "categories", nulls = Nulls.SKIP) public _FinalStage categories(List categories) { diff --git a/src/main/java/com/merge/api/filestorage/types/FieldMappingsRetrieveRequest.java b/src/main/java/com/merge/api/filestorage/types/FieldMappingsRetrieveRequest.java index 87f7e26ef..cbbcae4e7 100644 --- a/src/main/java/com/merge/api/filestorage/types/FieldMappingsRetrieveRequest.java +++ b/src/main/java/com/merge/api/filestorage/types/FieldMappingsRetrieveRequest.java @@ -81,6 +81,9 @@ public Builder from(FieldMappingsRetrieveRequest other) { return this; } + /** + *

                If true, remote fields metadata is excluded from each field mapping instance (i.e. remote_fields.remote_key_name and remote_fields.schema will be null). This will increase the speed of the request since these fields require some calculations.

                + */ @JsonSetter(value = "exclude_remote_field_metadata", nulls = Nulls.SKIP) public Builder excludeRemoteFieldMetadata(Optional excludeRemoteFieldMetadata) { this.excludeRemoteFieldMetadata = excludeRemoteFieldMetadata; diff --git a/src/main/java/com/merge/api/filestorage/types/File.java b/src/main/java/com/merge/api/filestorage/types/File.java index 8913f8d97..3fb9dabc4 100644 --- a/src/main/java/com/merge/api/filestorage/types/File.java +++ b/src/main/java/com/merge/api/filestorage/types/File.java @@ -377,6 +377,9 @@ public Builder id(String id) { return this; } + /** + *

                The third-party API ID of the matching object.

                + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; @@ -388,6 +391,9 @@ public Builder remoteId(String remoteId) { return this; } + /** + *

                The datetime that this object was created by Merge.

                + */ @JsonSetter(value = "created_at", nulls = Nulls.SKIP) public Builder createdAt(Optional createdAt) { this.createdAt = createdAt; @@ -399,6 +405,9 @@ public Builder createdAt(OffsetDateTime createdAt) { return this; } + /** + *

                The datetime that this object was modified by Merge.

                + */ @JsonSetter(value = "modified_at", nulls = Nulls.SKIP) public Builder modifiedAt(Optional modifiedAt) { this.modifiedAt = modifiedAt; @@ -410,6 +419,9 @@ public Builder modifiedAt(OffsetDateTime modifiedAt) { return this; } + /** + *

                The file's name.

                + */ @JsonSetter(value = "name", nulls = Nulls.SKIP) public Builder name(Optional name) { this.name = name; @@ -421,6 +433,9 @@ public Builder name(String name) { return this; } + /** + *

                The URL to access the file.

                + */ @JsonSetter(value = "file_url", nulls = Nulls.SKIP) public Builder fileUrl(Optional fileUrl) { this.fileUrl = fileUrl; @@ -432,6 +447,9 @@ public Builder fileUrl(String fileUrl) { return this; } + /** + *

                The URL that produces a thumbnail preview of the file. Typically an image.

                + */ @JsonSetter(value = "file_thumbnail_url", nulls = Nulls.SKIP) public Builder fileThumbnailUrl(Optional fileThumbnailUrl) { this.fileThumbnailUrl = fileThumbnailUrl; @@ -443,6 +461,9 @@ public Builder fileThumbnailUrl(String fileThumbnailUrl) { return this; } + /** + *

                The file's size, in bytes.

                + */ @JsonSetter(value = "size", nulls = Nulls.SKIP) public Builder size(Optional size) { this.size = size; @@ -454,6 +475,9 @@ public Builder size(Long size) { return this; } + /** + *

                The file's mime type.

                + */ @JsonSetter(value = "mime_type", nulls = Nulls.SKIP) public Builder mimeType(Optional mimeType) { this.mimeType = mimeType; @@ -465,6 +489,9 @@ public Builder mimeType(String mimeType) { return this; } + /** + *

                The file's description.

                + */ @JsonSetter(value = "description", nulls = Nulls.SKIP) public Builder description(Optional description) { this.description = description; @@ -476,6 +503,9 @@ public Builder description(String description) { return this; } + /** + *

                The folder that the file belongs to.

                + */ @JsonSetter(value = "folder", nulls = Nulls.SKIP) public Builder folder(Optional folder) { this.folder = folder; @@ -487,6 +517,9 @@ public Builder folder(FileFolder folder) { return this; } + /** + *

                The Permission object is used to represent a user's or group's access to a File or Folder. Permissions are unexpanded by default. Use the query param expand=permissions to see more details under GET /files.

                + */ @JsonSetter(value = "permissions", nulls = Nulls.SKIP) public Builder permissions(Optional permissions) { this.permissions = permissions; @@ -498,6 +531,9 @@ public Builder permissions(FilePermissions permissions) { return this; } + /** + *

                The drive that the file belongs to.

                + */ @JsonSetter(value = "drive", nulls = Nulls.SKIP) public Builder drive(Optional drive) { this.drive = drive; @@ -509,6 +545,9 @@ public Builder drive(FileDrive drive) { return this; } + /** + *

                When the third party's file was created.

                + */ @JsonSetter(value = "remote_created_at", nulls = Nulls.SKIP) public Builder remoteCreatedAt(Optional remoteCreatedAt) { this.remoteCreatedAt = remoteCreatedAt; @@ -520,6 +559,9 @@ public Builder remoteCreatedAt(OffsetDateTime remoteCreatedAt) { return this; } + /** + *

                When the third party's file was updated.

                + */ @JsonSetter(value = "remote_updated_at", nulls = Nulls.SKIP) public Builder remoteUpdatedAt(Optional remoteUpdatedAt) { this.remoteUpdatedAt = remoteUpdatedAt; @@ -531,6 +573,9 @@ public Builder remoteUpdatedAt(OffsetDateTime remoteUpdatedAt) { return this; } + /** + *

                Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

                + */ @JsonSetter(value = "remote_was_deleted", nulls = Nulls.SKIP) public Builder remoteWasDeleted(Optional remoteWasDeleted) { this.remoteWasDeleted = remoteWasDeleted; diff --git a/src/main/java/com/merge/api/filestorage/types/FileRequest.java b/src/main/java/com/merge/api/filestorage/types/FileRequest.java index 39aaa69ed..05dd7d860 100644 --- a/src/main/java/com/merge/api/filestorage/types/FileRequest.java +++ b/src/main/java/com/merge/api/filestorage/types/FileRequest.java @@ -248,6 +248,9 @@ public Builder from(FileRequest other) { return this; } + /** + *

                The file's name.

                + */ @JsonSetter(value = "name", nulls = Nulls.SKIP) public Builder name(Optional name) { this.name = name; @@ -259,6 +262,9 @@ public Builder name(String name) { return this; } + /** + *

                The URL to access the file.

                + */ @JsonSetter(value = "file_url", nulls = Nulls.SKIP) public Builder fileUrl(Optional fileUrl) { this.fileUrl = fileUrl; @@ -270,6 +276,9 @@ public Builder fileUrl(String fileUrl) { return this; } + /** + *

                The URL that produces a thumbnail preview of the file. Typically an image.

                + */ @JsonSetter(value = "file_thumbnail_url", nulls = Nulls.SKIP) public Builder fileThumbnailUrl(Optional fileThumbnailUrl) { this.fileThumbnailUrl = fileThumbnailUrl; @@ -281,6 +290,9 @@ public Builder fileThumbnailUrl(String fileThumbnailUrl) { return this; } + /** + *

                The file's size, in bytes.

                + */ @JsonSetter(value = "size", nulls = Nulls.SKIP) public Builder size(Optional size) { this.size = size; @@ -292,6 +304,9 @@ public Builder size(Long size) { return this; } + /** + *

                The file's mime type.

                + */ @JsonSetter(value = "mime_type", nulls = Nulls.SKIP) public Builder mimeType(Optional mimeType) { this.mimeType = mimeType; @@ -303,6 +318,9 @@ public Builder mimeType(String mimeType) { return this; } + /** + *

                The file's description.

                + */ @JsonSetter(value = "description", nulls = Nulls.SKIP) public Builder description(Optional description) { this.description = description; @@ -314,6 +332,9 @@ public Builder description(String description) { return this; } + /** + *

                The folder that the file belongs to.

                + */ @JsonSetter(value = "folder", nulls = Nulls.SKIP) public Builder folder(Optional folder) { this.folder = folder; @@ -325,6 +346,9 @@ public Builder folder(FileRequestFolder folder) { return this; } + /** + *

                The Permission object is used to represent a user's or group's access to a File or Folder. Permissions are unexpanded by default. Use the query param expand=permissions to see more details under GET /files.

                + */ @JsonSetter(value = "permissions", nulls = Nulls.SKIP) public Builder permissions(Optional permissions) { this.permissions = permissions; @@ -336,6 +360,9 @@ public Builder permissions(FileRequestPermissions permissions) { return this; } + /** + *

                The drive that the file belongs to.

                + */ @JsonSetter(value = "drive", nulls = Nulls.SKIP) public Builder drive(Optional drive) { this.drive = drive; diff --git a/src/main/java/com/merge/api/filestorage/types/FileStorageFileEndpointRequest.java b/src/main/java/com/merge/api/filestorage/types/FileStorageFileEndpointRequest.java index e3f654970..062476407 100644 --- a/src/main/java/com/merge/api/filestorage/types/FileStorageFileEndpointRequest.java +++ b/src/main/java/com/merge/api/filestorage/types/FileStorageFileEndpointRequest.java @@ -99,10 +99,16 @@ public interface ModelStage { public interface _FinalStage { FileStorageFileEndpointRequest build(); + /** + *

                Whether to include debug fields (such as log file links) in the response.

                + */ _FinalStage isDebugMode(Optional isDebugMode); _FinalStage isDebugMode(Boolean isDebugMode); + /** + *

                Whether or not third-party updates should be run asynchronously.

                + */ _FinalStage runAsync(Optional runAsync); _FinalStage runAsync(Boolean runAsync); @@ -146,6 +152,9 @@ public _FinalStage runAsync(Boolean runAsync) { return this; } + /** + *

                Whether or not third-party updates should be run asynchronously.

                + */ @java.lang.Override @JsonSetter(value = "run_async", nulls = Nulls.SKIP) public _FinalStage runAsync(Optional runAsync) { @@ -163,6 +172,9 @@ public _FinalStage isDebugMode(Boolean isDebugMode) { return this; } + /** + *

                Whether to include debug fields (such as log file links) in the response.

                + */ @java.lang.Override @JsonSetter(value = "is_debug_mode", nulls = Nulls.SKIP) public _FinalStage isDebugMode(Optional isDebugMode) { diff --git a/src/main/java/com/merge/api/filestorage/types/FileStorageFolderEndpointRequest.java b/src/main/java/com/merge/api/filestorage/types/FileStorageFolderEndpointRequest.java index 2a435610c..8b84dee78 100644 --- a/src/main/java/com/merge/api/filestorage/types/FileStorageFolderEndpointRequest.java +++ b/src/main/java/com/merge/api/filestorage/types/FileStorageFolderEndpointRequest.java @@ -99,10 +99,16 @@ public interface ModelStage { public interface _FinalStage { FileStorageFolderEndpointRequest build(); + /** + *

                Whether to include debug fields (such as log file links) in the response.

                + */ _FinalStage isDebugMode(Optional isDebugMode); _FinalStage isDebugMode(Boolean isDebugMode); + /** + *

                Whether or not third-party updates should be run asynchronously.

                + */ _FinalStage runAsync(Optional runAsync); _FinalStage runAsync(Boolean runAsync); @@ -146,6 +152,9 @@ public _FinalStage runAsync(Boolean runAsync) { return this; } + /** + *

                Whether or not third-party updates should be run asynchronously.

                + */ @java.lang.Override @JsonSetter(value = "run_async", nulls = Nulls.SKIP) public _FinalStage runAsync(Optional runAsync) { @@ -163,6 +172,9 @@ public _FinalStage isDebugMode(Boolean isDebugMode) { return this; } + /** + *

                Whether to include debug fields (such as log file links) in the response.

                + */ @java.lang.Override @JsonSetter(value = "is_debug_mode", nulls = Nulls.SKIP) public _FinalStage isDebugMode(Optional isDebugMode) { diff --git a/src/main/java/com/merge/api/filestorage/types/FilesDownloadRequestMetaListRequest.java b/src/main/java/com/merge/api/filestorage/types/FilesDownloadRequestMetaListRequest.java index b645b68f1..95cc1f88a 100644 --- a/src/main/java/com/merge/api/filestorage/types/FilesDownloadRequestMetaListRequest.java +++ b/src/main/java/com/merge/api/filestorage/types/FilesDownloadRequestMetaListRequest.java @@ -131,6 +131,9 @@ public Builder from(FilesDownloadRequestMetaListRequest other) { return this; } + /** + *

                The pagination cursor value.

                + */ @JsonSetter(value = "cursor", nulls = Nulls.SKIP) public Builder cursor(Optional cursor) { this.cursor = cursor; @@ -142,6 +145,9 @@ public Builder cursor(String cursor) { return this; } + /** + *

                Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

                + */ @JsonSetter(value = "include_deleted_data", nulls = Nulls.SKIP) public Builder includeDeletedData(Optional includeDeletedData) { this.includeDeletedData = includeDeletedData; @@ -153,6 +159,9 @@ public Builder includeDeletedData(Boolean includeDeletedData) { return this; } + /** + *

                If provided, specifies the export format of the files to be downloaded. For information on supported export formats, please refer to our <a href='https://help.merge.dev/en/articles/8615316-file-export-and-download-specification' target='_blank'>export format help center article</a>.

                + */ @JsonSetter(value = "mime_type", nulls = Nulls.SKIP) public Builder mimeType(Optional mimeType) { this.mimeType = mimeType; @@ -164,6 +173,9 @@ public Builder mimeType(String mimeType) { return this; } + /** + *

                Number of results to return per page.

                + */ @JsonSetter(value = "page_size", nulls = Nulls.SKIP) public Builder pageSize(Optional pageSize) { this.pageSize = pageSize; diff --git a/src/main/java/com/merge/api/filestorage/types/FilesDownloadRequestMetaRetrieveRequest.java b/src/main/java/com/merge/api/filestorage/types/FilesDownloadRequestMetaRetrieveRequest.java index a65d919f3..b6735214d 100644 --- a/src/main/java/com/merge/api/filestorage/types/FilesDownloadRequestMetaRetrieveRequest.java +++ b/src/main/java/com/merge/api/filestorage/types/FilesDownloadRequestMetaRetrieveRequest.java @@ -82,6 +82,9 @@ public Builder from(FilesDownloadRequestMetaRetrieveRequest other) { return this; } + /** + *

                If provided, specifies the export format of the file to be downloaded. For information on supported export formats, please refer to our <a href='https://help.merge.dev/en/articles/8615316-file-export-and-download-specification' target='_blank'>export format help center article</a>.

                + */ @JsonSetter(value = "mime_type", nulls = Nulls.SKIP) public Builder mimeType(Optional mimeType) { this.mimeType = mimeType; diff --git a/src/main/java/com/merge/api/filestorage/types/FilesDownloadRetrieveRequest.java b/src/main/java/com/merge/api/filestorage/types/FilesDownloadRetrieveRequest.java index adbe6f25a..ebd8db16b 100644 --- a/src/main/java/com/merge/api/filestorage/types/FilesDownloadRetrieveRequest.java +++ b/src/main/java/com/merge/api/filestorage/types/FilesDownloadRetrieveRequest.java @@ -95,6 +95,9 @@ public Builder from(FilesDownloadRetrieveRequest other) { return this; } + /** + *

                Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

                + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; @@ -106,6 +109,9 @@ public Builder includeShellData(Boolean includeShellData) { return this; } + /** + *

                If provided, specifies the export format of the file to be downloaded. For information on supported export formats, please refer to our <a href='https://help.merge.dev/en/articles/8615316-file-export-and-download-specification' target='_blank'>export format help center article</a>.

                + */ @JsonSetter(value = "mime_type", nulls = Nulls.SKIP) public Builder mimeType(Optional mimeType) { this.mimeType = mimeType; diff --git a/src/main/java/com/merge/api/filestorage/types/FilesListRequest.java b/src/main/java/com/merge/api/filestorage/types/FilesListRequest.java index abe6f9ac2..7fc5f8cf4 100644 --- a/src/main/java/com/merge/api/filestorage/types/FilesListRequest.java +++ b/src/main/java/com/merge/api/filestorage/types/FilesListRequest.java @@ -324,6 +324,9 @@ public Builder from(FilesListRequest other) { return this; } + /** + *

                Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.

                + */ @JsonSetter(value = "expand", nulls = Nulls.SKIP) public Builder expand(Optional> expand) { this.expand = expand; @@ -340,6 +343,9 @@ public Builder expand(FilesListRequestExpandItem expand) { return this; } + /** + *

                If provided, will only return objects created after this datetime.

                + */ @JsonSetter(value = "created_after", nulls = Nulls.SKIP) public Builder createdAfter(Optional createdAfter) { this.createdAfter = createdAfter; @@ -351,6 +357,9 @@ public Builder createdAfter(OffsetDateTime createdAfter) { return this; } + /** + *

                If provided, will only return objects created before this datetime.

                + */ @JsonSetter(value = "created_before", nulls = Nulls.SKIP) public Builder createdBefore(Optional createdBefore) { this.createdBefore = createdBefore; @@ -362,6 +371,9 @@ public Builder createdBefore(OffsetDateTime createdBefore) { return this; } + /** + *

                The pagination cursor value.

                + */ @JsonSetter(value = "cursor", nulls = Nulls.SKIP) public Builder cursor(Optional cursor) { this.cursor = cursor; @@ -373,6 +385,9 @@ public Builder cursor(String cursor) { return this; } + /** + *

                Specifying a drive id returns only the files in that drive. Specifying null returns only the files outside the top-level drive.

                + */ @JsonSetter(value = "drive_id", nulls = Nulls.SKIP) public Builder driveId(Optional driveId) { this.driveId = driveId; @@ -384,6 +399,9 @@ public Builder driveId(String driveId) { return this; } + /** + *

                Specifying a folder id returns only the files in that folder. Specifying null returns only the files in root directory.

                + */ @JsonSetter(value = "folder_id", nulls = Nulls.SKIP) public Builder folderId(Optional folderId) { this.folderId = folderId; @@ -395,6 +413,9 @@ public Builder folderId(String folderId) { return this; } + /** + *

                Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

                + */ @JsonSetter(value = "include_deleted_data", nulls = Nulls.SKIP) public Builder includeDeletedData(Optional includeDeletedData) { this.includeDeletedData = includeDeletedData; @@ -406,6 +427,9 @@ public Builder includeDeletedData(Boolean includeDeletedData) { return this; } + /** + *

                Whether to include the original data Merge fetched from the third-party to produce these models.

                + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -417,6 +441,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

                Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

                + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; @@ -428,6 +455,9 @@ public Builder includeShellData(Boolean includeShellData) { return this; } + /** + *

                If provided, will only return files with these mime_types. Multiple values can be separated by commas.

                + */ @JsonSetter(value = "mime_type", nulls = Nulls.SKIP) public Builder mimeType(Optional mimeType) { this.mimeType = mimeType; @@ -439,6 +469,9 @@ public Builder mimeType(String mimeType) { return this; } + /** + *

                If provided, only objects synced by Merge after this date time will be returned.

                + */ @JsonSetter(value = "modified_after", nulls = Nulls.SKIP) public Builder modifiedAfter(Optional modifiedAfter) { this.modifiedAfter = modifiedAfter; @@ -450,6 +483,9 @@ public Builder modifiedAfter(OffsetDateTime modifiedAfter) { return this; } + /** + *

                If provided, only objects synced by Merge before this date time will be returned.

                + */ @JsonSetter(value = "modified_before", nulls = Nulls.SKIP) public Builder modifiedBefore(Optional modifiedBefore) { this.modifiedBefore = modifiedBefore; @@ -461,6 +497,9 @@ public Builder modifiedBefore(OffsetDateTime modifiedBefore) { return this; } + /** + *

                If provided, will only return files with this name. This performs an exact match.

                + */ @JsonSetter(value = "name", nulls = Nulls.SKIP) public Builder name(Optional name) { this.name = name; @@ -472,6 +511,9 @@ public Builder name(String name) { return this; } + /** + *

                Number of results to return per page.

                + */ @JsonSetter(value = "page_size", nulls = Nulls.SKIP) public Builder pageSize(Optional pageSize) { this.pageSize = pageSize; @@ -483,6 +525,9 @@ public Builder pageSize(Integer pageSize) { return this; } + /** + *

                The API provider's ID for the given object.

                + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; diff --git a/src/main/java/com/merge/api/filestorage/types/FilesRetrieveRequest.java b/src/main/java/com/merge/api/filestorage/types/FilesRetrieveRequest.java index ac186bd0e..61d6c0dd2 100644 --- a/src/main/java/com/merge/api/filestorage/types/FilesRetrieveRequest.java +++ b/src/main/java/com/merge/api/filestorage/types/FilesRetrieveRequest.java @@ -116,6 +116,9 @@ public Builder from(FilesRetrieveRequest other) { return this; } + /** + *

                Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.

                + */ @JsonSetter(value = "expand", nulls = Nulls.SKIP) public Builder expand(Optional> expand) { this.expand = expand; @@ -132,6 +135,9 @@ public Builder expand(FilesRetrieveRequestExpandItem expand) { return this; } + /** + *

                Whether to include the original data Merge fetched from the third-party to produce these models.

                + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -143,6 +149,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

                Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

                + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; diff --git a/src/main/java/com/merge/api/filestorage/types/Folder.java b/src/main/java/com/merge/api/filestorage/types/Folder.java index 8d607ed9c..84b818411 100644 --- a/src/main/java/com/merge/api/filestorage/types/Folder.java +++ b/src/main/java/com/merge/api/filestorage/types/Folder.java @@ -343,6 +343,9 @@ public Builder id(String id) { return this; } + /** + *

                The third-party API ID of the matching object.

                + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; @@ -354,6 +357,9 @@ public Builder remoteId(String remoteId) { return this; } + /** + *

                The datetime that this object was created by Merge.

                + */ @JsonSetter(value = "created_at", nulls = Nulls.SKIP) public Builder createdAt(Optional createdAt) { this.createdAt = createdAt; @@ -365,6 +371,9 @@ public Builder createdAt(OffsetDateTime createdAt) { return this; } + /** + *

                The datetime that this object was modified by Merge.

                + */ @JsonSetter(value = "modified_at", nulls = Nulls.SKIP) public Builder modifiedAt(Optional modifiedAt) { this.modifiedAt = modifiedAt; @@ -376,6 +385,9 @@ public Builder modifiedAt(OffsetDateTime modifiedAt) { return this; } + /** + *

                The folder's name.

                + */ @JsonSetter(value = "name", nulls = Nulls.SKIP) public Builder name(Optional name) { this.name = name; @@ -387,6 +399,9 @@ public Builder name(String name) { return this; } + /** + *

                The URL to access the folder.

                + */ @JsonSetter(value = "folder_url", nulls = Nulls.SKIP) public Builder folderUrl(Optional folderUrl) { this.folderUrl = folderUrl; @@ -398,6 +413,9 @@ public Builder folderUrl(String folderUrl) { return this; } + /** + *

                The folder's size, in bytes.

                + */ @JsonSetter(value = "size", nulls = Nulls.SKIP) public Builder size(Optional size) { this.size = size; @@ -409,6 +427,9 @@ public Builder size(Long size) { return this; } + /** + *

                The folder's description.

                + */ @JsonSetter(value = "description", nulls = Nulls.SKIP) public Builder description(Optional description) { this.description = description; @@ -420,6 +441,9 @@ public Builder description(String description) { return this; } + /** + *

                The folder that the folder belongs to.

                + */ @JsonSetter(value = "parent_folder", nulls = Nulls.SKIP) public Builder parentFolder(Optional parentFolder) { this.parentFolder = parentFolder; @@ -431,6 +455,9 @@ public Builder parentFolder(FolderParentFolder parentFolder) { return this; } + /** + *

                The drive that the folder belongs to.

                + */ @JsonSetter(value = "drive", nulls = Nulls.SKIP) public Builder drive(Optional drive) { this.drive = drive; @@ -442,6 +469,9 @@ public Builder drive(FolderDrive drive) { return this; } + /** + *

                The Permission object is used to represent a user's or group's access to a File or Folder. Permissions are unexpanded by default. Use the query param expand=permissions to see more details under GET /folders.

                + */ @JsonSetter(value = "permissions", nulls = Nulls.SKIP) public Builder permissions(Optional permissions) { this.permissions = permissions; @@ -453,6 +483,9 @@ public Builder permissions(FolderPermissions permissions) { return this; } + /** + *

                When the third party's folder was created.

                + */ @JsonSetter(value = "remote_created_at", nulls = Nulls.SKIP) public Builder remoteCreatedAt(Optional remoteCreatedAt) { this.remoteCreatedAt = remoteCreatedAt; @@ -464,6 +497,9 @@ public Builder remoteCreatedAt(OffsetDateTime remoteCreatedAt) { return this; } + /** + *

                When the third party's folder was updated.

                + */ @JsonSetter(value = "remote_updated_at", nulls = Nulls.SKIP) public Builder remoteUpdatedAt(Optional remoteUpdatedAt) { this.remoteUpdatedAt = remoteUpdatedAt; @@ -475,6 +511,9 @@ public Builder remoteUpdatedAt(OffsetDateTime remoteUpdatedAt) { return this; } + /** + *

                Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

                + */ @JsonSetter(value = "remote_was_deleted", nulls = Nulls.SKIP) public Builder remoteWasDeleted(Optional remoteWasDeleted) { this.remoteWasDeleted = remoteWasDeleted; diff --git a/src/main/java/com/merge/api/filestorage/types/FolderRequest.java b/src/main/java/com/merge/api/filestorage/types/FolderRequest.java index eea23d03d..f1d3b71b2 100644 --- a/src/main/java/com/merge/api/filestorage/types/FolderRequest.java +++ b/src/main/java/com/merge/api/filestorage/types/FolderRequest.java @@ -214,6 +214,9 @@ public Builder from(FolderRequest other) { return this; } + /** + *

                The folder's name.

                + */ @JsonSetter(value = "name", nulls = Nulls.SKIP) public Builder name(Optional name) { this.name = name; @@ -225,6 +228,9 @@ public Builder name(String name) { return this; } + /** + *

                The URL to access the folder.

                + */ @JsonSetter(value = "folder_url", nulls = Nulls.SKIP) public Builder folderUrl(Optional folderUrl) { this.folderUrl = folderUrl; @@ -236,6 +242,9 @@ public Builder folderUrl(String folderUrl) { return this; } + /** + *

                The folder's size, in bytes.

                + */ @JsonSetter(value = "size", nulls = Nulls.SKIP) public Builder size(Optional size) { this.size = size; @@ -247,6 +256,9 @@ public Builder size(Long size) { return this; } + /** + *

                The folder's description.

                + */ @JsonSetter(value = "description", nulls = Nulls.SKIP) public Builder description(Optional description) { this.description = description; @@ -258,6 +270,9 @@ public Builder description(String description) { return this; } + /** + *

                The folder that the folder belongs to.

                + */ @JsonSetter(value = "parent_folder", nulls = Nulls.SKIP) public Builder parentFolder(Optional parentFolder) { this.parentFolder = parentFolder; @@ -269,6 +284,9 @@ public Builder parentFolder(FolderRequestParentFolder parentFolder) { return this; } + /** + *

                The drive that the folder belongs to.

                + */ @JsonSetter(value = "drive", nulls = Nulls.SKIP) public Builder drive(Optional drive) { this.drive = drive; @@ -280,6 +298,9 @@ public Builder drive(FolderRequestDrive drive) { return this; } + /** + *

                The Permission object is used to represent a user's or group's access to a File or Folder. Permissions are unexpanded by default. Use the query param expand=permissions to see more details under GET /folders.

                + */ @JsonSetter(value = "permissions", nulls = Nulls.SKIP) public Builder permissions(Optional permissions) { this.permissions = permissions; diff --git a/src/main/java/com/merge/api/filestorage/types/FoldersListRequest.java b/src/main/java/com/merge/api/filestorage/types/FoldersListRequest.java index 02625e40d..a53188375 100644 --- a/src/main/java/com/merge/api/filestorage/types/FoldersListRequest.java +++ b/src/main/java/com/merge/api/filestorage/types/FoldersListRequest.java @@ -307,6 +307,9 @@ public Builder from(FoldersListRequest other) { return this; } + /** + *

                Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.

                + */ @JsonSetter(value = "expand", nulls = Nulls.SKIP) public Builder expand(Optional> expand) { this.expand = expand; @@ -323,6 +326,9 @@ public Builder expand(FoldersListRequestExpandItem expand) { return this; } + /** + *

                If provided, will only return objects created after this datetime.

                + */ @JsonSetter(value = "created_after", nulls = Nulls.SKIP) public Builder createdAfter(Optional createdAfter) { this.createdAfter = createdAfter; @@ -334,6 +340,9 @@ public Builder createdAfter(OffsetDateTime createdAfter) { return this; } + /** + *

                If provided, will only return objects created before this datetime.

                + */ @JsonSetter(value = "created_before", nulls = Nulls.SKIP) public Builder createdBefore(Optional createdBefore) { this.createdBefore = createdBefore; @@ -345,6 +354,9 @@ public Builder createdBefore(OffsetDateTime createdBefore) { return this; } + /** + *

                The pagination cursor value.

                + */ @JsonSetter(value = "cursor", nulls = Nulls.SKIP) public Builder cursor(Optional cursor) { this.cursor = cursor; @@ -356,6 +368,9 @@ public Builder cursor(String cursor) { return this; } + /** + *

                If provided, will only return folders in this drive.

                + */ @JsonSetter(value = "drive_id", nulls = Nulls.SKIP) public Builder driveId(Optional driveId) { this.driveId = driveId; @@ -367,6 +382,9 @@ public Builder driveId(String driveId) { return this; } + /** + *

                Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

                + */ @JsonSetter(value = "include_deleted_data", nulls = Nulls.SKIP) public Builder includeDeletedData(Optional includeDeletedData) { this.includeDeletedData = includeDeletedData; @@ -378,6 +396,9 @@ public Builder includeDeletedData(Boolean includeDeletedData) { return this; } + /** + *

                Whether to include the original data Merge fetched from the third-party to produce these models.

                + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -389,6 +410,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

                Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

                + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; @@ -400,6 +424,9 @@ public Builder includeShellData(Boolean includeShellData) { return this; } + /** + *

                If provided, only objects synced by Merge after this date time will be returned.

                + */ @JsonSetter(value = "modified_after", nulls = Nulls.SKIP) public Builder modifiedAfter(Optional modifiedAfter) { this.modifiedAfter = modifiedAfter; @@ -411,6 +438,9 @@ public Builder modifiedAfter(OffsetDateTime modifiedAfter) { return this; } + /** + *

                If provided, only objects synced by Merge before this date time will be returned.

                + */ @JsonSetter(value = "modified_before", nulls = Nulls.SKIP) public Builder modifiedBefore(Optional modifiedBefore) { this.modifiedBefore = modifiedBefore; @@ -422,6 +452,9 @@ public Builder modifiedBefore(OffsetDateTime modifiedBefore) { return this; } + /** + *

                If provided, will only return folders with this name. This performs an exact match.

                + */ @JsonSetter(value = "name", nulls = Nulls.SKIP) public Builder name(Optional name) { this.name = name; @@ -433,6 +466,9 @@ public Builder name(String name) { return this; } + /** + *

                Number of results to return per page.

                + */ @JsonSetter(value = "page_size", nulls = Nulls.SKIP) public Builder pageSize(Optional pageSize) { this.pageSize = pageSize; @@ -444,6 +480,9 @@ public Builder pageSize(Integer pageSize) { return this; } + /** + *

                If provided, will only return folders in this parent folder. If null, will return folders in root directory.

                + */ @JsonSetter(value = "parent_folder_id", nulls = Nulls.SKIP) public Builder parentFolderId(Optional parentFolderId) { this.parentFolderId = parentFolderId; @@ -455,6 +494,9 @@ public Builder parentFolderId(String parentFolderId) { return this; } + /** + *

                The API provider's ID for the given object.

                + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; diff --git a/src/main/java/com/merge/api/filestorage/types/FoldersRetrieveRequest.java b/src/main/java/com/merge/api/filestorage/types/FoldersRetrieveRequest.java index c0deea910..104ead227 100644 --- a/src/main/java/com/merge/api/filestorage/types/FoldersRetrieveRequest.java +++ b/src/main/java/com/merge/api/filestorage/types/FoldersRetrieveRequest.java @@ -116,6 +116,9 @@ public Builder from(FoldersRetrieveRequest other) { return this; } + /** + *

                Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.

                + */ @JsonSetter(value = "expand", nulls = Nulls.SKIP) public Builder expand(Optional> expand) { this.expand = expand; @@ -132,6 +135,9 @@ public Builder expand(FoldersRetrieveRequestExpandItem expand) { return this; } + /** + *

                Whether to include the original data Merge fetched from the third-party to produce these models.

                + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -143,6 +149,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

                Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

                + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; diff --git a/src/main/java/com/merge/api/filestorage/types/GenerateRemoteKeyRequest.java b/src/main/java/com/merge/api/filestorage/types/GenerateRemoteKeyRequest.java index 874f253c1..20f1e6d22 100644 --- a/src/main/java/com/merge/api/filestorage/types/GenerateRemoteKeyRequest.java +++ b/src/main/java/com/merge/api/filestorage/types/GenerateRemoteKeyRequest.java @@ -66,6 +66,9 @@ public static NameStage builder() { } public interface NameStage { + /** + * The name of the remote key + */ _FinalStage name(@NotNull String name); Builder from(GenerateRemoteKeyRequest other); @@ -91,7 +94,7 @@ public Builder from(GenerateRemoteKeyRequest other) { } /** - *

                The name of the remote key

                + * The name of the remote key

                The name of the remote key

                * @return Reference to {@code this} so that method calls can be chained together. */ @java.lang.Override diff --git a/src/main/java/com/merge/api/filestorage/types/Group.java b/src/main/java/com/merge/api/filestorage/types/Group.java index 0174e679c..4a0a93c8d 100644 --- a/src/main/java/com/merge/api/filestorage/types/Group.java +++ b/src/main/java/com/merge/api/filestorage/types/Group.java @@ -242,6 +242,9 @@ public Builder id(String id) { return this; } + /** + *

                The third-party API ID of the matching object.

                + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; @@ -253,6 +256,9 @@ public Builder remoteId(String remoteId) { return this; } + /** + *

                The datetime that this object was created by Merge.

                + */ @JsonSetter(value = "created_at", nulls = Nulls.SKIP) public Builder createdAt(Optional createdAt) { this.createdAt = createdAt; @@ -264,6 +270,9 @@ public Builder createdAt(OffsetDateTime createdAt) { return this; } + /** + *

                The datetime that this object was modified by Merge.

                + */ @JsonSetter(value = "modified_at", nulls = Nulls.SKIP) public Builder modifiedAt(Optional modifiedAt) { this.modifiedAt = modifiedAt; @@ -275,6 +284,9 @@ public Builder modifiedAt(OffsetDateTime modifiedAt) { return this; } + /** + *

                The group's name.

                + */ @JsonSetter(value = "name", nulls = Nulls.SKIP) public Builder name(Optional name) { this.name = name; @@ -286,6 +298,9 @@ public Builder name(String name) { return this; } + /** + *

                The users that belong in the group. If null, this typically means it's either a domain or the third-party platform does not surface this information.

                + */ @JsonSetter(value = "users", nulls = Nulls.SKIP) public Builder users(List users) { this.users.clear(); @@ -303,6 +318,9 @@ public Builder addAllUsers(List users) { return this; } + /** + *

                Groups that inherit the permissions of the parent group.

                + */ @JsonSetter(value = "child_groups", nulls = Nulls.SKIP) public Builder childGroups(Optional> childGroups) { this.childGroups = childGroups; @@ -314,6 +332,9 @@ public Builder childGroups(List childGroups) { return this; } + /** + *

                Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

                + */ @JsonSetter(value = "remote_was_deleted", nulls = Nulls.SKIP) public Builder remoteWasDeleted(Optional remoteWasDeleted) { this.remoteWasDeleted = remoteWasDeleted; diff --git a/src/main/java/com/merge/api/filestorage/types/GroupsListRequest.java b/src/main/java/com/merge/api/filestorage/types/GroupsListRequest.java index 6b1df020e..968133545 100644 --- a/src/main/java/com/merge/api/filestorage/types/GroupsListRequest.java +++ b/src/main/java/com/merge/api/filestorage/types/GroupsListRequest.java @@ -256,6 +256,9 @@ public Builder from(GroupsListRequest other) { return this; } + /** + *

                Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.

                + */ @JsonSetter(value = "expand", nulls = Nulls.SKIP) public Builder expand(Optional> expand) { this.expand = expand; @@ -272,6 +275,9 @@ public Builder expand(GroupsListRequestExpandItem expand) { return this; } + /** + *

                If provided, will only return objects created after this datetime.

                + */ @JsonSetter(value = "created_after", nulls = Nulls.SKIP) public Builder createdAfter(Optional createdAfter) { this.createdAfter = createdAfter; @@ -283,6 +289,9 @@ public Builder createdAfter(OffsetDateTime createdAfter) { return this; } + /** + *

                If provided, will only return objects created before this datetime.

                + */ @JsonSetter(value = "created_before", nulls = Nulls.SKIP) public Builder createdBefore(Optional createdBefore) { this.createdBefore = createdBefore; @@ -294,6 +303,9 @@ public Builder createdBefore(OffsetDateTime createdBefore) { return this; } + /** + *

                The pagination cursor value.

                + */ @JsonSetter(value = "cursor", nulls = Nulls.SKIP) public Builder cursor(Optional cursor) { this.cursor = cursor; @@ -305,6 +317,9 @@ public Builder cursor(String cursor) { return this; } + /** + *

                Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

                + */ @JsonSetter(value = "include_deleted_data", nulls = Nulls.SKIP) public Builder includeDeletedData(Optional includeDeletedData) { this.includeDeletedData = includeDeletedData; @@ -316,6 +331,9 @@ public Builder includeDeletedData(Boolean includeDeletedData) { return this; } + /** + *

                Whether to include the original data Merge fetched from the third-party to produce these models.

                + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -327,6 +345,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

                Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

                + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; @@ -338,6 +359,9 @@ public Builder includeShellData(Boolean includeShellData) { return this; } + /** + *

                If provided, only objects synced by Merge after this date time will be returned.

                + */ @JsonSetter(value = "modified_after", nulls = Nulls.SKIP) public Builder modifiedAfter(Optional modifiedAfter) { this.modifiedAfter = modifiedAfter; @@ -349,6 +373,9 @@ public Builder modifiedAfter(OffsetDateTime modifiedAfter) { return this; } + /** + *

                If provided, only objects synced by Merge before this date time will be returned.

                + */ @JsonSetter(value = "modified_before", nulls = Nulls.SKIP) public Builder modifiedBefore(Optional modifiedBefore) { this.modifiedBefore = modifiedBefore; @@ -360,6 +387,9 @@ public Builder modifiedBefore(OffsetDateTime modifiedBefore) { return this; } + /** + *

                Number of results to return per page.

                + */ @JsonSetter(value = "page_size", nulls = Nulls.SKIP) public Builder pageSize(Optional pageSize) { this.pageSize = pageSize; @@ -371,6 +401,9 @@ public Builder pageSize(Integer pageSize) { return this; } + /** + *

                The API provider's ID for the given object.

                + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; diff --git a/src/main/java/com/merge/api/filestorage/types/GroupsRetrieveRequest.java b/src/main/java/com/merge/api/filestorage/types/GroupsRetrieveRequest.java index d3f281a10..d3fd606fc 100644 --- a/src/main/java/com/merge/api/filestorage/types/GroupsRetrieveRequest.java +++ b/src/main/java/com/merge/api/filestorage/types/GroupsRetrieveRequest.java @@ -116,6 +116,9 @@ public Builder from(GroupsRetrieveRequest other) { return this; } + /** + *

                Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.

                + */ @JsonSetter(value = "expand", nulls = Nulls.SKIP) public Builder expand(Optional> expand) { this.expand = expand; @@ -132,6 +135,9 @@ public Builder expand(GroupsRetrieveRequestExpandItem expand) { return this; } + /** + *

                Whether to include the original data Merge fetched from the third-party to produce these models.

                + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -143,6 +149,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

                Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

                + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; diff --git a/src/main/java/com/merge/api/filestorage/types/Issue.java b/src/main/java/com/merge/api/filestorage/types/Issue.java index e6f8f6343..da6de9250 100644 --- a/src/main/java/com/merge/api/filestorage/types/Issue.java +++ b/src/main/java/com/merge/api/filestorage/types/Issue.java @@ -167,6 +167,13 @@ public interface _FinalStage { _FinalStage id(String id); + /** + *

                Status of the issue. Options: ('ONGOING', 'RESOLVED')

                + *
                  + *
                • ONGOING - ONGOING
                • + *
                • RESOLVED - RESOLVED
                • + *
                + */ _FinalStage status(Optional status); _FinalStage status(IssueStatusEnum status); @@ -314,6 +321,13 @@ public _FinalStage status(IssueStatusEnum status) { return this; } + /** + *

                Status of the issue. Options: ('ONGOING', 'RESOLVED')

                + *
                  + *
                • ONGOING - ONGOING
                • + *
                • RESOLVED - RESOLVED
                • + *
                + */ @java.lang.Override @JsonSetter(value = "status", nulls = Nulls.SKIP) public _FinalStage status(Optional status) { diff --git a/src/main/java/com/merge/api/filestorage/types/IssuesListRequest.java b/src/main/java/com/merge/api/filestorage/types/IssuesListRequest.java index ed26e389b..bb86d7da8 100644 --- a/src/main/java/com/merge/api/filestorage/types/IssuesListRequest.java +++ b/src/main/java/com/merge/api/filestorage/types/IssuesListRequest.java @@ -311,6 +311,9 @@ public Builder accountToken(String accountToken) { return this; } + /** + *

                The pagination cursor value.

                + */ @JsonSetter(value = "cursor", nulls = Nulls.SKIP) public Builder cursor(Optional cursor) { this.cursor = cursor; @@ -322,6 +325,9 @@ public Builder cursor(String cursor) { return this; } + /** + *

                If included, will only include issues whose most recent action occurred before this time

                + */ @JsonSetter(value = "end_date", nulls = Nulls.SKIP) public Builder endDate(Optional endDate) { this.endDate = endDate; @@ -344,6 +350,9 @@ public Builder endUserOrganizationName(String endUserOrganizationName) { return this; } + /** + *

                If provided, will only return issues whose first incident time was after this datetime.

                + */ @JsonSetter(value = "first_incident_time_after", nulls = Nulls.SKIP) public Builder firstIncidentTimeAfter(Optional firstIncidentTimeAfter) { this.firstIncidentTimeAfter = firstIncidentTimeAfter; @@ -355,6 +364,9 @@ public Builder firstIncidentTimeAfter(OffsetDateTime firstIncidentTimeAfter) { return this; } + /** + *

                If provided, will only return issues whose first incident time was before this datetime.

                + */ @JsonSetter(value = "first_incident_time_before", nulls = Nulls.SKIP) public Builder firstIncidentTimeBefore(Optional firstIncidentTimeBefore) { this.firstIncidentTimeBefore = firstIncidentTimeBefore; @@ -366,6 +378,9 @@ public Builder firstIncidentTimeBefore(OffsetDateTime firstIncidentTimeBefore) { return this; } + /** + *

                If true, will include muted issues

                + */ @JsonSetter(value = "include_muted", nulls = Nulls.SKIP) public Builder includeMuted(Optional includeMuted) { this.includeMuted = includeMuted; @@ -388,6 +403,9 @@ public Builder integrationName(String integrationName) { return this; } + /** + *

                If provided, will only return issues whose last incident time was after this datetime.

                + */ @JsonSetter(value = "last_incident_time_after", nulls = Nulls.SKIP) public Builder lastIncidentTimeAfter(Optional lastIncidentTimeAfter) { this.lastIncidentTimeAfter = lastIncidentTimeAfter; @@ -399,6 +417,9 @@ public Builder lastIncidentTimeAfter(OffsetDateTime lastIncidentTimeAfter) { return this; } + /** + *

                If provided, will only return issues whose last incident time was before this datetime.

                + */ @JsonSetter(value = "last_incident_time_before", nulls = Nulls.SKIP) public Builder lastIncidentTimeBefore(Optional lastIncidentTimeBefore) { this.lastIncidentTimeBefore = lastIncidentTimeBefore; @@ -410,6 +431,9 @@ public Builder lastIncidentTimeBefore(OffsetDateTime lastIncidentTimeBefore) { return this; } + /** + *

                If provided, will only include issues pertaining to the linked account passed in.

                + */ @JsonSetter(value = "linked_account_id", nulls = Nulls.SKIP) public Builder linkedAccountId(Optional linkedAccountId) { this.linkedAccountId = linkedAccountId; @@ -421,6 +445,9 @@ public Builder linkedAccountId(String linkedAccountId) { return this; } + /** + *

                Number of results to return per page.

                + */ @JsonSetter(value = "page_size", nulls = Nulls.SKIP) public Builder pageSize(Optional pageSize) { this.pageSize = pageSize; @@ -432,6 +459,9 @@ public Builder pageSize(Integer pageSize) { return this; } + /** + *

                If included, will only include issues whose most recent action occurred after this time

                + */ @JsonSetter(value = "start_date", nulls = Nulls.SKIP) public Builder startDate(Optional startDate) { this.startDate = startDate; @@ -443,6 +473,13 @@ public Builder startDate(String startDate) { return this; } + /** + *

                Status of the issue. Options: ('ONGOING', 'RESOLVED')

                + *
                  + *
                • ONGOING - ONGOING
                • + *
                • RESOLVED - RESOLVED
                • + *
                + */ @JsonSetter(value = "status", nulls = Nulls.SKIP) public Builder status(Optional status) { this.status = status; diff --git a/src/main/java/com/merge/api/filestorage/types/LinkedAccountCommonModelScopeDeserializerRequest.java b/src/main/java/com/merge/api/filestorage/types/LinkedAccountCommonModelScopeDeserializerRequest.java index 90b6cd840..66aeace14 100644 --- a/src/main/java/com/merge/api/filestorage/types/LinkedAccountCommonModelScopeDeserializerRequest.java +++ b/src/main/java/com/merge/api/filestorage/types/LinkedAccountCommonModelScopeDeserializerRequest.java @@ -84,6 +84,9 @@ public Builder from(LinkedAccountCommonModelScopeDeserializerRequest other) { return this; } + /** + *

                The common models you want to update the scopes for

                + */ @JsonSetter(value = "common_models", nulls = Nulls.SKIP) public Builder commonModels(List commonModels) { this.commonModels.clear(); diff --git a/src/main/java/com/merge/api/filestorage/types/LinkedAccountsListRequest.java b/src/main/java/com/merge/api/filestorage/types/LinkedAccountsListRequest.java index 37e161b40..42d086fcd 100644 --- a/src/main/java/com/merge/api/filestorage/types/LinkedAccountsListRequest.java +++ b/src/main/java/com/merge/api/filestorage/types/LinkedAccountsListRequest.java @@ -293,6 +293,18 @@ public Builder from(LinkedAccountsListRequest other) { return this; } + /** + *

                Options: accounting, ats, crm, filestorage, hris, mktg, ticketing

                + *
                  + *
                • hris - hris
                • + *
                • ats - ats
                • + *
                • accounting - accounting
                • + *
                • ticketing - ticketing
                • + *
                • crm - crm
                • + *
                • mktg - mktg
                • + *
                • filestorage - filestorage
                • + *
                + */ @JsonSetter(value = "category", nulls = Nulls.SKIP) public Builder category(Optional category) { this.category = category; @@ -304,6 +316,9 @@ public Builder category(LinkedAccountsListRequestCategory category) { return this; } + /** + *

                The pagination cursor value.

                + */ @JsonSetter(value = "cursor", nulls = Nulls.SKIP) public Builder cursor(Optional cursor) { this.cursor = cursor; @@ -315,6 +330,9 @@ public Builder cursor(String cursor) { return this; } + /** + *

                If provided, will only return linked accounts associated with the given email address.

                + */ @JsonSetter(value = "end_user_email_address", nulls = Nulls.SKIP) public Builder endUserEmailAddress(Optional endUserEmailAddress) { this.endUserEmailAddress = endUserEmailAddress; @@ -326,6 +344,9 @@ public Builder endUserEmailAddress(String endUserEmailAddress) { return this; } + /** + *

                If provided, will only return linked accounts associated with the given organization name.

                + */ @JsonSetter(value = "end_user_organization_name", nulls = Nulls.SKIP) public Builder endUserOrganizationName(Optional endUserOrganizationName) { this.endUserOrganizationName = endUserOrganizationName; @@ -337,6 +358,9 @@ public Builder endUserOrganizationName(String endUserOrganizationName) { return this; } + /** + *

                If provided, will only return linked accounts associated with the given origin ID.

                + */ @JsonSetter(value = "end_user_origin_id", nulls = Nulls.SKIP) public Builder endUserOriginId(Optional endUserOriginId) { this.endUserOriginId = endUserOriginId; @@ -348,6 +372,9 @@ public Builder endUserOriginId(String endUserOriginId) { return this; } + /** + *

                Comma-separated list of EndUser origin IDs, making it possible to specify multiple EndUsers at once.

                + */ @JsonSetter(value = "end_user_origin_ids", nulls = Nulls.SKIP) public Builder endUserOriginIds(Optional endUserOriginIds) { this.endUserOriginIds = endUserOriginIds; @@ -370,6 +397,9 @@ public Builder id(String id) { return this; } + /** + *

                Comma-separated list of LinkedAccount IDs, making it possible to specify multiple LinkedAccounts at once.

                + */ @JsonSetter(value = "ids", nulls = Nulls.SKIP) public Builder ids(Optional ids) { this.ids = ids; @@ -381,6 +411,9 @@ public Builder ids(String ids) { return this; } + /** + *

                If true, will include complete production duplicates of the account specified by the id query parameter in the response. id must be for a complete production linked account.

                + */ @JsonSetter(value = "include_duplicates", nulls = Nulls.SKIP) public Builder includeDuplicates(Optional includeDuplicates) { this.includeDuplicates = includeDuplicates; @@ -392,6 +425,9 @@ public Builder includeDuplicates(Boolean includeDuplicates) { return this; } + /** + *

                If provided, will only return linked accounts associated with the given integration name.

                + */ @JsonSetter(value = "integration_name", nulls = Nulls.SKIP) public Builder integrationName(Optional integrationName) { this.integrationName = integrationName; @@ -403,6 +439,9 @@ public Builder integrationName(String integrationName) { return this; } + /** + *

                If included, will only include test linked accounts. If not included, will only include non-test linked accounts.

                + */ @JsonSetter(value = "is_test_account", nulls = Nulls.SKIP) public Builder isTestAccount(Optional isTestAccount) { this.isTestAccount = isTestAccount; @@ -414,6 +453,9 @@ public Builder isTestAccount(String isTestAccount) { return this; } + /** + *

                Number of results to return per page.

                + */ @JsonSetter(value = "page_size", nulls = Nulls.SKIP) public Builder pageSize(Optional pageSize) { this.pageSize = pageSize; @@ -425,6 +467,9 @@ public Builder pageSize(Integer pageSize) { return this; } + /** + *

                Filter by status. Options: COMPLETE, IDLE, INCOMPLETE, RELINK_NEEDED

                + */ @JsonSetter(value = "status", nulls = Nulls.SKIP) public Builder status(Optional status) { this.status = status; diff --git a/src/main/java/com/merge/api/filestorage/types/MultipartFormFieldRequest.java b/src/main/java/com/merge/api/filestorage/types/MultipartFormFieldRequest.java index 4964b82b9..fda8edbd9 100644 --- a/src/main/java/com/merge/api/filestorage/types/MultipartFormFieldRequest.java +++ b/src/main/java/com/merge/api/filestorage/types/MultipartFormFieldRequest.java @@ -127,26 +127,46 @@ public static NameStage builder() { } public interface NameStage { + /** + * The name of the form field + */ DataStage name(@NotNull String name); Builder from(MultipartFormFieldRequest other); } public interface DataStage { + /** + * The data for the form field. + */ _FinalStage data(@NotNull String data); } public interface _FinalStage { MultipartFormFieldRequest build(); + /** + *

                The encoding of the value of data. Defaults to RAW if not defined.

                + *
                  + *
                • RAW - RAW
                • + *
                • BASE64 - BASE64
                • + *
                • GZIP_BASE64 - GZIP_BASE64
                • + *
                + */ _FinalStage encoding(Optional encoding); _FinalStage encoding(EncodingEnum encoding); + /** + *

                The file name of the form field, if the field is for a file.

                + */ _FinalStage fileName(Optional fileName); _FinalStage fileName(String fileName); + /** + *

                The MIME type of the file, if the field is for a file.

                + */ _FinalStage contentType(Optional contentType); _FinalStage contentType(String contentType); @@ -180,7 +200,7 @@ public Builder from(MultipartFormFieldRequest other) { } /** - *

                The name of the form field

                + * The name of the form field

                The name of the form field

                * @return Reference to {@code this} so that method calls can be chained together. */ @java.lang.Override @@ -191,7 +211,7 @@ public DataStage name(@NotNull String name) { } /** - *

                The data for the form field.

                + * The data for the form field.

                The data for the form field.

                * @return Reference to {@code this} so that method calls can be chained together. */ @java.lang.Override @@ -211,6 +231,9 @@ public _FinalStage contentType(String contentType) { return this; } + /** + *

                The MIME type of the file, if the field is for a file.

                + */ @java.lang.Override @JsonSetter(value = "content_type", nulls = Nulls.SKIP) public _FinalStage contentType(Optional contentType) { @@ -228,6 +251,9 @@ public _FinalStage fileName(String fileName) { return this; } + /** + *

                The file name of the form field, if the field is for a file.

                + */ @java.lang.Override @JsonSetter(value = "file_name", nulls = Nulls.SKIP) public _FinalStage fileName(Optional fileName) { @@ -250,6 +276,14 @@ public _FinalStage encoding(EncodingEnum encoding) { return this; } + /** + *

                The encoding of the value of data. Defaults to RAW if not defined.

                + *
                  + *
                • RAW - RAW
                • + *
                • BASE64 - BASE64
                • + *
                • GZIP_BASE64 - GZIP_BASE64
                • + *
                + */ @java.lang.Override @JsonSetter(value = "encoding", nulls = Nulls.SKIP) public _FinalStage encoding(Optional encoding) { diff --git a/src/main/java/com/merge/api/filestorage/types/PatchedEditFieldMappingRequest.java b/src/main/java/com/merge/api/filestorage/types/PatchedEditFieldMappingRequest.java index 4467d4226..dfcd50a8d 100644 --- a/src/main/java/com/merge/api/filestorage/types/PatchedEditFieldMappingRequest.java +++ b/src/main/java/com/merge/api/filestorage/types/PatchedEditFieldMappingRequest.java @@ -116,6 +116,9 @@ public Builder from(PatchedEditFieldMappingRequest other) { return this; } + /** + *

                The field traversal path of the remote field listed when you hit the GET /remote-fields endpoint.

                + */ @JsonSetter(value = "remote_field_traversal_path", nulls = Nulls.SKIP) public Builder remoteFieldTraversalPath(Optional> remoteFieldTraversalPath) { this.remoteFieldTraversalPath = remoteFieldTraversalPath; @@ -127,6 +130,9 @@ public Builder remoteFieldTraversalPath(List remoteFieldTraversalPath) return this; } + /** + *

                The method of the remote endpoint where the remote field is coming from.

                + */ @JsonSetter(value = "remote_method", nulls = Nulls.SKIP) public Builder remoteMethod(Optional remoteMethod) { this.remoteMethod = remoteMethod; @@ -138,6 +144,9 @@ public Builder remoteMethod(String remoteMethod) { return this; } + /** + *

                The path of the remote endpoint where the remote field is coming from.

                + */ @JsonSetter(value = "remote_url_path", nulls = Nulls.SKIP) public Builder remoteUrlPath(Optional remoteUrlPath) { this.remoteUrlPath = remoteUrlPath; diff --git a/src/main/java/com/merge/api/filestorage/types/Permission.java b/src/main/java/com/merge/api/filestorage/types/Permission.java index dc991e56f..188d1cd9c 100644 --- a/src/main/java/com/merge/api/filestorage/types/Permission.java +++ b/src/main/java/com/merge/api/filestorage/types/Permission.java @@ -211,6 +211,9 @@ public Builder id(String id) { return this; } + /** + *

                The third-party API ID of the matching object.

                + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; @@ -222,6 +225,9 @@ public Builder remoteId(String remoteId) { return this; } + /** + *

                The datetime that this object was created by Merge.

                + */ @JsonSetter(value = "created_at", nulls = Nulls.SKIP) public Builder createdAt(Optional createdAt) { this.createdAt = createdAt; @@ -233,6 +239,9 @@ public Builder createdAt(OffsetDateTime createdAt) { return this; } + /** + *

                The datetime that this object was modified by Merge.

                + */ @JsonSetter(value = "modified_at", nulls = Nulls.SKIP) public Builder modifiedAt(Optional modifiedAt) { this.modifiedAt = modifiedAt; @@ -244,6 +253,9 @@ public Builder modifiedAt(OffsetDateTime modifiedAt) { return this; } + /** + *

                The user that is granted this permission. This will only be populated if the type is USER.

                + */ @JsonSetter(value = "user", nulls = Nulls.SKIP) public Builder user(Optional user) { this.user = user; @@ -255,6 +267,9 @@ public Builder user(PermissionUser user) { return this; } + /** + *

                The group that is granted this permission. This will only be populated if the type is GROUP.

                + */ @JsonSetter(value = "group", nulls = Nulls.SKIP) public Builder group(Optional group) { this.group = group; @@ -266,6 +281,15 @@ public Builder group(PermissionGroup group) { return this; } + /** + *

                Denotes what type of people have access to the file.

                + *
                  + *
                • USER - USER
                • + *
                • GROUP - GROUP
                • + *
                • COMPANY - COMPANY
                • + *
                • ANYONE - ANYONE
                • + *
                + */ @JsonSetter(value = "type", nulls = Nulls.SKIP) public Builder type(Optional type) { this.type = type; @@ -277,6 +301,9 @@ public Builder type(TypeEnum type) { return this; } + /** + *

                The permissions that the user or group has for the File or Folder. It is possible for a user or group to have multiple roles, such as viewing & uploading. Possible values include: READ, WRITE, OWNER. In cases where there is no clear mapping, the original value passed through will be returned.

                + */ @JsonSetter(value = "roles", nulls = Nulls.SKIP) public Builder roles(Optional> roles) { this.roles = roles; diff --git a/src/main/java/com/merge/api/filestorage/types/PermissionRequest.java b/src/main/java/com/merge/api/filestorage/types/PermissionRequest.java index 6f5aeaa6a..d14980e36 100644 --- a/src/main/java/com/merge/api/filestorage/types/PermissionRequest.java +++ b/src/main/java/com/merge/api/filestorage/types/PermissionRequest.java @@ -187,6 +187,9 @@ public Builder from(PermissionRequest other) { return this; } + /** + *

                The third-party API ID of the matching object.

                + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; @@ -198,6 +201,9 @@ public Builder remoteId(String remoteId) { return this; } + /** + *

                The user that is granted this permission. This will only be populated if the type is USER.

                + */ @JsonSetter(value = "user", nulls = Nulls.SKIP) public Builder user(Optional user) { this.user = user; @@ -209,6 +215,9 @@ public Builder user(PermissionRequestUser user) { return this; } + /** + *

                The group that is granted this permission. This will only be populated if the type is GROUP.

                + */ @JsonSetter(value = "group", nulls = Nulls.SKIP) public Builder group(Optional group) { this.group = group; @@ -220,6 +229,15 @@ public Builder group(PermissionRequestGroup group) { return this; } + /** + *

                Denotes what type of people have access to the file.

                + *
                  + *
                • USER - USER
                • + *
                • GROUP - GROUP
                • + *
                • COMPANY - COMPANY
                • + *
                • ANYONE - ANYONE
                • + *
                + */ @JsonSetter(value = "type", nulls = Nulls.SKIP) public Builder type(Optional type) { this.type = type; @@ -231,6 +249,9 @@ public Builder type(TypeEnum type) { return this; } + /** + *

                The permissions that the user or group has for the File or Folder. It is possible for a user or group to have multiple roles, such as viewing & uploading. Possible values include: READ, WRITE, OWNER. In cases where there is no clear mapping, the original value passed through will be returned.

                + */ @JsonSetter(value = "roles", nulls = Nulls.SKIP) public Builder roles(Optional> roles) { this.roles = roles; diff --git a/src/main/java/com/merge/api/filestorage/types/RemoteData.java b/src/main/java/com/merge/api/filestorage/types/RemoteData.java index e6560ce3b..b390ac160 100644 --- a/src/main/java/com/merge/api/filestorage/types/RemoteData.java +++ b/src/main/java/com/merge/api/filestorage/types/RemoteData.java @@ -77,6 +77,9 @@ public static PathStage builder() { } public interface PathStage { + /** + * The third-party API path that is being called. + */ _FinalStage path(@NotNull String path); Builder from(RemoteData other); @@ -109,7 +112,7 @@ public Builder from(RemoteData other) { } /** - *

                The third-party API path that is being called.

                + * The third-party API path that is being called.

                The third-party API path that is being called.

                * @return Reference to {@code this} so that method calls can be chained together. */ @java.lang.Override diff --git a/src/main/java/com/merge/api/filestorage/types/RemoteFieldsRetrieveRequest.java b/src/main/java/com/merge/api/filestorage/types/RemoteFieldsRetrieveRequest.java index 89f49ed07..e3498ba17 100644 --- a/src/main/java/com/merge/api/filestorage/types/RemoteFieldsRetrieveRequest.java +++ b/src/main/java/com/merge/api/filestorage/types/RemoteFieldsRetrieveRequest.java @@ -97,6 +97,9 @@ public Builder from(RemoteFieldsRetrieveRequest other) { return this; } + /** + *

                A comma seperated list of Common Model names. If included, will only return Remote Fields for those Common Models.

                + */ @JsonSetter(value = "common_models", nulls = Nulls.SKIP) public Builder commonModels(Optional commonModels) { this.commonModels = commonModels; @@ -108,6 +111,9 @@ public Builder commonModels(String commonModels) { return this; } + /** + *

                If true, will include example values, where available, for remote fields in the 3rd party platform. These examples come from active data from your customers.

                + */ @JsonSetter(value = "include_example_values", nulls = Nulls.SKIP) public Builder includeExampleValues(Optional includeExampleValues) { this.includeExampleValues = includeExampleValues; diff --git a/src/main/java/com/merge/api/filestorage/types/RemoteKeyForRegenerationRequest.java b/src/main/java/com/merge/api/filestorage/types/RemoteKeyForRegenerationRequest.java index 12f301a5c..786df6dcf 100644 --- a/src/main/java/com/merge/api/filestorage/types/RemoteKeyForRegenerationRequest.java +++ b/src/main/java/com/merge/api/filestorage/types/RemoteKeyForRegenerationRequest.java @@ -66,6 +66,9 @@ public static NameStage builder() { } public interface NameStage { + /** + * The name of the remote key + */ _FinalStage name(@NotNull String name); Builder from(RemoteKeyForRegenerationRequest other); @@ -91,7 +94,7 @@ public Builder from(RemoteKeyForRegenerationRequest other) { } /** - *

                The name of the remote key

                + * The name of the remote key

                The name of the remote key

                * @return Reference to {@code this} so that method calls can be chained together. */ @java.lang.Override diff --git a/src/main/java/com/merge/api/filestorage/types/SyncStatusListRequest.java b/src/main/java/com/merge/api/filestorage/types/SyncStatusListRequest.java index f684233f5..8927a253f 100644 --- a/src/main/java/com/merge/api/filestorage/types/SyncStatusListRequest.java +++ b/src/main/java/com/merge/api/filestorage/types/SyncStatusListRequest.java @@ -95,6 +95,9 @@ public Builder from(SyncStatusListRequest other) { return this; } + /** + *

                The pagination cursor value.

                + */ @JsonSetter(value = "cursor", nulls = Nulls.SKIP) public Builder cursor(Optional cursor) { this.cursor = cursor; @@ -106,6 +109,9 @@ public Builder cursor(String cursor) { return this; } + /** + *

                Number of results to return per page.

                + */ @JsonSetter(value = "page_size", nulls = Nulls.SKIP) public Builder pageSize(Optional pageSize) { this.pageSize = pageSize; diff --git a/src/main/java/com/merge/api/filestorage/types/User.java b/src/main/java/com/merge/api/filestorage/types/User.java index 5b9874aac..c355219a5 100644 --- a/src/main/java/com/merge/api/filestorage/types/User.java +++ b/src/main/java/com/merge/api/filestorage/types/User.java @@ -241,6 +241,9 @@ public Builder id(String id) { return this; } + /** + *

                The third-party API ID of the matching object.

                + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; @@ -252,6 +255,9 @@ public Builder remoteId(String remoteId) { return this; } + /** + *

                The datetime that this object was created by Merge.

                + */ @JsonSetter(value = "created_at", nulls = Nulls.SKIP) public Builder createdAt(Optional createdAt) { this.createdAt = createdAt; @@ -263,6 +269,9 @@ public Builder createdAt(OffsetDateTime createdAt) { return this; } + /** + *

                The datetime that this object was modified by Merge.

                + */ @JsonSetter(value = "modified_at", nulls = Nulls.SKIP) public Builder modifiedAt(Optional modifiedAt) { this.modifiedAt = modifiedAt; @@ -274,6 +283,9 @@ public Builder modifiedAt(OffsetDateTime modifiedAt) { return this; } + /** + *

                The user's name.

                + */ @JsonSetter(value = "name", nulls = Nulls.SKIP) public Builder name(Optional name) { this.name = name; @@ -285,6 +297,9 @@ public Builder name(String name) { return this; } + /** + *

                The user's email address. This is typically used to identify a user across linked accounts.

                + */ @JsonSetter(value = "email_address", nulls = Nulls.SKIP) public Builder emailAddress(Optional emailAddress) { this.emailAddress = emailAddress; @@ -296,6 +311,9 @@ public Builder emailAddress(String emailAddress) { return this; } + /** + *

                Whether the user is the one who linked this account.

                + */ @JsonSetter(value = "is_me", nulls = Nulls.SKIP) public Builder isMe(Optional isMe) { this.isMe = isMe; @@ -307,6 +325,9 @@ public Builder isMe(Boolean isMe) { return this; } + /** + *

                Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

                + */ @JsonSetter(value = "remote_was_deleted", nulls = Nulls.SKIP) public Builder remoteWasDeleted(Optional remoteWasDeleted) { this.remoteWasDeleted = remoteWasDeleted; diff --git a/src/main/java/com/merge/api/filestorage/types/UsersListRequest.java b/src/main/java/com/merge/api/filestorage/types/UsersListRequest.java index 1686b1d2b..009651f5a 100644 --- a/src/main/java/com/merge/api/filestorage/types/UsersListRequest.java +++ b/src/main/java/com/merge/api/filestorage/types/UsersListRequest.java @@ -254,6 +254,9 @@ public Builder from(UsersListRequest other) { return this; } + /** + *

                If provided, will only return objects created after this datetime.

                + */ @JsonSetter(value = "created_after", nulls = Nulls.SKIP) public Builder createdAfter(Optional createdAfter) { this.createdAfter = createdAfter; @@ -265,6 +268,9 @@ public Builder createdAfter(OffsetDateTime createdAfter) { return this; } + /** + *

                If provided, will only return objects created before this datetime.

                + */ @JsonSetter(value = "created_before", nulls = Nulls.SKIP) public Builder createdBefore(Optional createdBefore) { this.createdBefore = createdBefore; @@ -276,6 +282,9 @@ public Builder createdBefore(OffsetDateTime createdBefore) { return this; } + /** + *

                The pagination cursor value.

                + */ @JsonSetter(value = "cursor", nulls = Nulls.SKIP) public Builder cursor(Optional cursor) { this.cursor = cursor; @@ -287,6 +296,9 @@ public Builder cursor(String cursor) { return this; } + /** + *

                Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

                + */ @JsonSetter(value = "include_deleted_data", nulls = Nulls.SKIP) public Builder includeDeletedData(Optional includeDeletedData) { this.includeDeletedData = includeDeletedData; @@ -298,6 +310,9 @@ public Builder includeDeletedData(Boolean includeDeletedData) { return this; } + /** + *

                Whether to include the original data Merge fetched from the third-party to produce these models.

                + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -309,6 +324,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

                Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

                + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; @@ -320,6 +338,9 @@ public Builder includeShellData(Boolean includeShellData) { return this; } + /** + *

                If provided, will only return the user object for requestor.

                + */ @JsonSetter(value = "is_me", nulls = Nulls.SKIP) public Builder isMe(Optional isMe) { this.isMe = isMe; @@ -331,6 +352,9 @@ public Builder isMe(String isMe) { return this; } + /** + *

                If provided, only objects synced by Merge after this date time will be returned.

                + */ @JsonSetter(value = "modified_after", nulls = Nulls.SKIP) public Builder modifiedAfter(Optional modifiedAfter) { this.modifiedAfter = modifiedAfter; @@ -342,6 +366,9 @@ public Builder modifiedAfter(OffsetDateTime modifiedAfter) { return this; } + /** + *

                If provided, only objects synced by Merge before this date time will be returned.

                + */ @JsonSetter(value = "modified_before", nulls = Nulls.SKIP) public Builder modifiedBefore(Optional modifiedBefore) { this.modifiedBefore = modifiedBefore; @@ -353,6 +380,9 @@ public Builder modifiedBefore(OffsetDateTime modifiedBefore) { return this; } + /** + *

                Number of results to return per page.

                + */ @JsonSetter(value = "page_size", nulls = Nulls.SKIP) public Builder pageSize(Optional pageSize) { this.pageSize = pageSize; @@ -364,6 +394,9 @@ public Builder pageSize(Integer pageSize) { return this; } + /** + *

                The API provider's ID for the given object.

                + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; diff --git a/src/main/java/com/merge/api/filestorage/types/UsersRetrieveRequest.java b/src/main/java/com/merge/api/filestorage/types/UsersRetrieveRequest.java index 9c5da39b1..2d140747e 100644 --- a/src/main/java/com/merge/api/filestorage/types/UsersRetrieveRequest.java +++ b/src/main/java/com/merge/api/filestorage/types/UsersRetrieveRequest.java @@ -97,6 +97,9 @@ public Builder from(UsersRetrieveRequest other) { return this; } + /** + *

                Whether to include the original data Merge fetched from the third-party to produce these models.

                + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -108,6 +111,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

                Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

                + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; diff --git a/src/main/java/com/merge/api/hris/types/AccountDetails.java b/src/main/java/com/merge/api/hris/types/AccountDetails.java index d79068675..831be20a0 100644 --- a/src/main/java/com/merge/api/hris/types/AccountDetails.java +++ b/src/main/java/com/merge/api/hris/types/AccountDetails.java @@ -340,6 +340,9 @@ public Builder webhookListenerUrl(String webhookListenerUrl) { return this; } + /** + *

                Whether a Production Linked Account's credentials match another existing Production Linked Account. This field is null for Test Linked Accounts, incomplete Production Linked Accounts, and ignored duplicate Production Linked Account sets.

                + */ @JsonSetter(value = "is_duplicate", nulls = Nulls.SKIP) public Builder isDuplicate(Optional isDuplicate) { this.isDuplicate = isDuplicate; @@ -362,6 +365,9 @@ public Builder accountType(String accountType) { return this; } + /** + *

                The time at which account completes the linking flow.

                + */ @JsonSetter(value = "completed_at", nulls = Nulls.SKIP) public Builder completedAt(Optional completedAt) { this.completedAt = completedAt; diff --git a/src/main/java/com/merge/api/hris/types/AccountDetailsAndActions.java b/src/main/java/com/merge/api/hris/types/AccountDetailsAndActions.java index 9e450b52e..5f13252b2 100644 --- a/src/main/java/com/merge/api/hris/types/AccountDetailsAndActions.java +++ b/src/main/java/com/merge/api/hris/types/AccountDetailsAndActions.java @@ -251,10 +251,16 @@ public interface _FinalStage { _FinalStage endUserOriginId(String endUserOriginId); + /** + *

                The tenant or domain the customer has provided access to.

                + */ _FinalStage subdomain(Optional subdomain); _FinalStage subdomain(String subdomain); + /** + *

                Whether a Production Linked Account's credentials match another existing Production Linked Account. This field is null for Test Linked Accounts, incomplete Production Linked Accounts, and ignored duplicate Production Linked Account sets.

                + */ _FinalStage isDuplicate(Optional isDuplicate); _FinalStage isDuplicate(Boolean isDuplicate); @@ -395,6 +401,9 @@ public _FinalStage isDuplicate(Boolean isDuplicate) { return this; } + /** + *

                Whether a Production Linked Account's credentials match another existing Production Linked Account. This field is null for Test Linked Accounts, incomplete Production Linked Accounts, and ignored duplicate Production Linked Account sets.

                + */ @java.lang.Override @JsonSetter(value = "is_duplicate", nulls = Nulls.SKIP) public _FinalStage isDuplicate(Optional isDuplicate) { @@ -412,6 +421,9 @@ public _FinalStage subdomain(String subdomain) { return this; } + /** + *

                The tenant or domain the customer has provided access to.

                + */ @java.lang.Override @JsonSetter(value = "subdomain", nulls = Nulls.SKIP) public _FinalStage subdomain(Optional subdomain) { diff --git a/src/main/java/com/merge/api/hris/types/AccountIntegration.java b/src/main/java/com/merge/api/hris/types/AccountIntegration.java index d2df5d64f..939812d8b 100644 --- a/src/main/java/com/merge/api/hris/types/AccountIntegration.java +++ b/src/main/java/com/merge/api/hris/types/AccountIntegration.java @@ -196,6 +196,9 @@ public static NameStage builder() { } public interface NameStage { + /** + * Company name. + */ _FinalStage name(@NotNull String name); Builder from(AccountIntegration other); @@ -204,22 +207,37 @@ public interface NameStage { public interface _FinalStage { AccountIntegration build(); + /** + *

                Optional. This shortened name appears in places with limited space, usually in conjunction with the platform's logo (e.g., Merge Link menu).<br><br>Example: <i>Workforce Now (in lieu of ADP Workforce Now), SuccessFactors (in lieu of SAP SuccessFactors)</i>

                + */ _FinalStage abbreviatedName(Optional abbreviatedName); _FinalStage abbreviatedName(String abbreviatedName); + /** + *

                Category or categories this integration belongs to. Multiple categories should be comma separated, i.e. [ats, hris].

                + */ _FinalStage categories(Optional> categories); _FinalStage categories(List categories); + /** + *

                Company logo in rectangular shape.

                + */ _FinalStage image(Optional image); _FinalStage image(String image); + /** + *

                Company logo in square shape.

                + */ _FinalStage squareImage(Optional squareImage); _FinalStage squareImage(String squareImage); + /** + *

                The color of this integration used for buttons and text throughout the app and landing pages. <b>Choose a darker, saturated color.</b>

                + */ _FinalStage color(Optional color); _FinalStage color(String color); @@ -228,14 +246,23 @@ public interface _FinalStage { _FinalStage slug(String slug); + /** + *

                Mapping of API endpoints to documentation urls for support. Example: {'GET': [['/common-model-scopes', 'https://docs.merge.dev/accounting/common-model-scopes/#common_model_scopes_retrieve'],['/common-model-actions', 'https://docs.merge.dev/accounting/common-model-actions/#common_model_actions_retrieve']], 'POST': []}

                + */ _FinalStage apiEndpointsToDocumentationUrls(Optional> apiEndpointsToDocumentationUrls); _FinalStage apiEndpointsToDocumentationUrls(Map apiEndpointsToDocumentationUrls); + /** + *

                Setup guide URL for third party webhook creation. Exposed in Merge Docs.

                + */ _FinalStage webhookSetupGuideUrl(Optional webhookSetupGuideUrl); _FinalStage webhookSetupGuideUrl(String webhookSetupGuideUrl); + /** + *

                Category or categories this integration is in beta status for.

                + */ _FinalStage categoryBetaStatus(Optional> categoryBetaStatus); _FinalStage categoryBetaStatus(Map categoryBetaStatus); @@ -284,7 +311,7 @@ public Builder from(AccountIntegration other) { } /** - *

                Company name.

                + * Company name.

                Company name.

                * @return Reference to {@code this} so that method calls can be chained together. */ @java.lang.Override @@ -304,6 +331,9 @@ public _FinalStage categoryBetaStatus(Map categoryBetaStatus) return this; } + /** + *

                Category or categories this integration is in beta status for.

                + */ @java.lang.Override @JsonSetter(value = "category_beta_status", nulls = Nulls.SKIP) public _FinalStage categoryBetaStatus(Optional> categoryBetaStatus) { @@ -321,6 +351,9 @@ public _FinalStage webhookSetupGuideUrl(String webhookSetupGuideUrl) { return this; } + /** + *

                Setup guide URL for third party webhook creation. Exposed in Merge Docs.

                + */ @java.lang.Override @JsonSetter(value = "webhook_setup_guide_url", nulls = Nulls.SKIP) public _FinalStage webhookSetupGuideUrl(Optional webhookSetupGuideUrl) { @@ -338,6 +371,9 @@ public _FinalStage apiEndpointsToDocumentationUrls(Map apiEndp return this; } + /** + *

                Mapping of API endpoints to documentation urls for support. Example: {'GET': [['/common-model-scopes', 'https://docs.merge.dev/accounting/common-model-scopes/#common_model_scopes_retrieve'],['/common-model-actions', 'https://docs.merge.dev/accounting/common-model-actions/#common_model_actions_retrieve']], 'POST': []}

                + */ @java.lang.Override @JsonSetter(value = "api_endpoints_to_documentation_urls", nulls = Nulls.SKIP) public _FinalStage apiEndpointsToDocumentationUrls( @@ -369,6 +405,9 @@ public _FinalStage color(String color) { return this; } + /** + *

                The color of this integration used for buttons and text throughout the app and landing pages. <b>Choose a darker, saturated color.</b>

                + */ @java.lang.Override @JsonSetter(value = "color", nulls = Nulls.SKIP) public _FinalStage color(Optional color) { @@ -386,6 +425,9 @@ public _FinalStage squareImage(String squareImage) { return this; } + /** + *

                Company logo in square shape.

                + */ @java.lang.Override @JsonSetter(value = "square_image", nulls = Nulls.SKIP) public _FinalStage squareImage(Optional squareImage) { @@ -403,6 +445,9 @@ public _FinalStage image(String image) { return this; } + /** + *

                Company logo in rectangular shape.

                + */ @java.lang.Override @JsonSetter(value = "image", nulls = Nulls.SKIP) public _FinalStage image(Optional image) { @@ -420,6 +465,9 @@ public _FinalStage categories(List categories) { return this; } + /** + *

                Category or categories this integration belongs to. Multiple categories should be comma separated, i.e. [ats, hris].

                + */ @java.lang.Override @JsonSetter(value = "categories", nulls = Nulls.SKIP) public _FinalStage categories(Optional> categories) { @@ -437,6 +485,9 @@ public _FinalStage abbreviatedName(String abbreviatedName) { return this; } + /** + *

                Optional. This shortened name appears in places with limited space, usually in conjunction with the platform's logo (e.g., Merge Link menu).<br><br>Example: <i>Workforce Now (in lieu of ADP Workforce Now), SuccessFactors (in lieu of SAP SuccessFactors)</i>

                + */ @java.lang.Override @JsonSetter(value = "abbreviated_name", nulls = Nulls.SKIP) public _FinalStage abbreviatedName(Optional abbreviatedName) { diff --git a/src/main/java/com/merge/api/hris/types/AuditLogEvent.java b/src/main/java/com/merge/api/hris/types/AuditLogEvent.java index 5f93ef538..3ba47c81a 100644 --- a/src/main/java/com/merge/api/hris/types/AuditLogEvent.java +++ b/src/main/java/com/merge/api/hris/types/AuditLogEvent.java @@ -210,6 +210,16 @@ public static RoleStage builder() { } public interface RoleStage { + /** + * Designates the role of the user (or SYSTEM/API if action not taken by a user) at the time of this Event occurring. + * + * * `ADMIN` - ADMIN + * * `DEVELOPER` - DEVELOPER + * * `MEMBER` - MEMBER + * * `API` - API + * * `SYSTEM` - SYSTEM + * * `MERGE_TEAM` - MERGE_TEAM + */ IpAddressStage role(@NotNull RoleEnum role); Builder from(AuditLogEvent other); @@ -220,6 +230,52 @@ public interface IpAddressStage { } public interface EventTypeStage { + /** + * Designates the type of event that occurred. + * + * * `CREATED_REMOTE_PRODUCTION_API_KEY` - CREATED_REMOTE_PRODUCTION_API_KEY + * * `DELETED_REMOTE_PRODUCTION_API_KEY` - DELETED_REMOTE_PRODUCTION_API_KEY + * * `CREATED_TEST_API_KEY` - CREATED_TEST_API_KEY + * * `DELETED_TEST_API_KEY` - DELETED_TEST_API_KEY + * * `REGENERATED_PRODUCTION_API_KEY` - REGENERATED_PRODUCTION_API_KEY + * * `INVITED_USER` - INVITED_USER + * * `TWO_FACTOR_AUTH_ENABLED` - TWO_FACTOR_AUTH_ENABLED + * * `TWO_FACTOR_AUTH_DISABLED` - TWO_FACTOR_AUTH_DISABLED + * * `DELETED_LINKED_ACCOUNT` - DELETED_LINKED_ACCOUNT + * * `DELETED_ALL_COMMON_MODELS_FOR_LINKED_ACCOUNT` - DELETED_ALL_COMMON_MODELS_FOR_LINKED_ACCOUNT + * * `CREATED_DESTINATION` - CREATED_DESTINATION + * * `DELETED_DESTINATION` - DELETED_DESTINATION + * * `CHANGED_DESTINATION` - CHANGED_DESTINATION + * * `CHANGED_SCOPES` - CHANGED_SCOPES + * * `CHANGED_PERSONAL_INFORMATION` - CHANGED_PERSONAL_INFORMATION + * * `CHANGED_ORGANIZATION_SETTINGS` - CHANGED_ORGANIZATION_SETTINGS + * * `ENABLED_INTEGRATION` - ENABLED_INTEGRATION + * * `DISABLED_INTEGRATION` - DISABLED_INTEGRATION + * * `ENABLED_CATEGORY` - ENABLED_CATEGORY + * * `DISABLED_CATEGORY` - DISABLED_CATEGORY + * * `CHANGED_PASSWORD` - CHANGED_PASSWORD + * * `RESET_PASSWORD` - RESET_PASSWORD + * * `ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION` - ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION + * * `ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT` - ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT + * * `DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION` - DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION + * * `DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT` - DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT + * * `CREATED_INTEGRATION_WIDE_FIELD_MAPPING` - CREATED_INTEGRATION_WIDE_FIELD_MAPPING + * * `CREATED_LINKED_ACCOUNT_FIELD_MAPPING` - CREATED_LINKED_ACCOUNT_FIELD_MAPPING + * * `CHANGED_INTEGRATION_WIDE_FIELD_MAPPING` - CHANGED_INTEGRATION_WIDE_FIELD_MAPPING + * * `CHANGED_LINKED_ACCOUNT_FIELD_MAPPING` - CHANGED_LINKED_ACCOUNT_FIELD_MAPPING + * * `DELETED_INTEGRATION_WIDE_FIELD_MAPPING` - DELETED_INTEGRATION_WIDE_FIELD_MAPPING + * * `DELETED_LINKED_ACCOUNT_FIELD_MAPPING` - DELETED_LINKED_ACCOUNT_FIELD_MAPPING + * * `CREATED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE` - CREATED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE + * * `CHANGED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE` - CHANGED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE + * * `DELETED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE` - DELETED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE + * * `FORCED_LINKED_ACCOUNT_RESYNC` - FORCED_LINKED_ACCOUNT_RESYNC + * * `MUTED_ISSUE` - MUTED_ISSUE + * * `GENERATED_MAGIC_LINK` - GENERATED_MAGIC_LINK + * * `ENABLED_MERGE_WEBHOOK` - ENABLED_MERGE_WEBHOOK + * * `DISABLED_MERGE_WEBHOOK` - DISABLED_MERGE_WEBHOOK + * * `MERGE_WEBHOOK_TARGET_CHANGED` - MERGE_WEBHOOK_TARGET_CHANGED + * * `END_USER_CREDENTIALS_ACCESSED` - END_USER_CREDENTIALS_ACCESSED + */ EventDescriptionStage eventType(@NotNull EventTypeEnum eventType); } @@ -234,10 +290,16 @@ public interface _FinalStage { _FinalStage id(String id); + /** + *

                The User's full name at the time of this Event occurring.

                + */ _FinalStage userName(Optional userName); _FinalStage userName(String userName); + /** + *

                The User's email at the time of this Event occurring.

                + */ _FinalStage userEmail(Optional userEmail); _FinalStage userEmail(String userEmail); @@ -285,7 +347,14 @@ public Builder from(AuditLogEvent other) { } /** - *

                Designates the role of the user (or SYSTEM/API if action not taken by a user) at the time of this Event occurring.

                + * Designates the role of the user (or SYSTEM/API if action not taken by a user) at the time of this Event occurring. + * + * * `ADMIN` - ADMIN + * * `DEVELOPER` - DEVELOPER + * * `MEMBER` - MEMBER + * * `API` - API + * * `SYSTEM` - SYSTEM + * * `MERGE_TEAM` - MERGE_TEAM

                Designates the role of the user (or SYSTEM/API if action not taken by a user) at the time of this Event occurring.

                *
                  *
                • ADMIN - ADMIN
                • *
                • DEVELOPER - DEVELOPER
                • @@ -311,7 +380,50 @@ public EventTypeStage ipAddress(@NotNull String ipAddress) { } /** - *

                  Designates the type of event that occurred.

                  + * Designates the type of event that occurred. + * + * * `CREATED_REMOTE_PRODUCTION_API_KEY` - CREATED_REMOTE_PRODUCTION_API_KEY + * * `DELETED_REMOTE_PRODUCTION_API_KEY` - DELETED_REMOTE_PRODUCTION_API_KEY + * * `CREATED_TEST_API_KEY` - CREATED_TEST_API_KEY + * * `DELETED_TEST_API_KEY` - DELETED_TEST_API_KEY + * * `REGENERATED_PRODUCTION_API_KEY` - REGENERATED_PRODUCTION_API_KEY + * * `INVITED_USER` - INVITED_USER + * * `TWO_FACTOR_AUTH_ENABLED` - TWO_FACTOR_AUTH_ENABLED + * * `TWO_FACTOR_AUTH_DISABLED` - TWO_FACTOR_AUTH_DISABLED + * * `DELETED_LINKED_ACCOUNT` - DELETED_LINKED_ACCOUNT + * * `DELETED_ALL_COMMON_MODELS_FOR_LINKED_ACCOUNT` - DELETED_ALL_COMMON_MODELS_FOR_LINKED_ACCOUNT + * * `CREATED_DESTINATION` - CREATED_DESTINATION + * * `DELETED_DESTINATION` - DELETED_DESTINATION + * * `CHANGED_DESTINATION` - CHANGED_DESTINATION + * * `CHANGED_SCOPES` - CHANGED_SCOPES + * * `CHANGED_PERSONAL_INFORMATION` - CHANGED_PERSONAL_INFORMATION + * * `CHANGED_ORGANIZATION_SETTINGS` - CHANGED_ORGANIZATION_SETTINGS + * * `ENABLED_INTEGRATION` - ENABLED_INTEGRATION + * * `DISABLED_INTEGRATION` - DISABLED_INTEGRATION + * * `ENABLED_CATEGORY` - ENABLED_CATEGORY + * * `DISABLED_CATEGORY` - DISABLED_CATEGORY + * * `CHANGED_PASSWORD` - CHANGED_PASSWORD + * * `RESET_PASSWORD` - RESET_PASSWORD + * * `ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION` - ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION + * * `ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT` - ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT + * * `DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION` - DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION + * * `DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT` - DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT + * * `CREATED_INTEGRATION_WIDE_FIELD_MAPPING` - CREATED_INTEGRATION_WIDE_FIELD_MAPPING + * * `CREATED_LINKED_ACCOUNT_FIELD_MAPPING` - CREATED_LINKED_ACCOUNT_FIELD_MAPPING + * * `CHANGED_INTEGRATION_WIDE_FIELD_MAPPING` - CHANGED_INTEGRATION_WIDE_FIELD_MAPPING + * * `CHANGED_LINKED_ACCOUNT_FIELD_MAPPING` - CHANGED_LINKED_ACCOUNT_FIELD_MAPPING + * * `DELETED_INTEGRATION_WIDE_FIELD_MAPPING` - DELETED_INTEGRATION_WIDE_FIELD_MAPPING + * * `DELETED_LINKED_ACCOUNT_FIELD_MAPPING` - DELETED_LINKED_ACCOUNT_FIELD_MAPPING + * * `CREATED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE` - CREATED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE + * * `CHANGED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE` - CHANGED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE + * * `DELETED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE` - DELETED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE + * * `FORCED_LINKED_ACCOUNT_RESYNC` - FORCED_LINKED_ACCOUNT_RESYNC + * * `MUTED_ISSUE` - MUTED_ISSUE + * * `GENERATED_MAGIC_LINK` - GENERATED_MAGIC_LINK + * * `ENABLED_MERGE_WEBHOOK` - ENABLED_MERGE_WEBHOOK + * * `DISABLED_MERGE_WEBHOOK` - DISABLED_MERGE_WEBHOOK + * * `MERGE_WEBHOOK_TARGET_CHANGED` - MERGE_WEBHOOK_TARGET_CHANGED + * * `END_USER_CREDENTIALS_ACCESSED` - END_USER_CREDENTIALS_ACCESSED

                  Designates the type of event that occurred.

                  *
                    *
                  • CREATED_REMOTE_PRODUCTION_API_KEY - CREATED_REMOTE_PRODUCTION_API_KEY
                  • *
                  • DELETED_REMOTE_PRODUCTION_API_KEY - DELETED_REMOTE_PRODUCTION_API_KEY
                  • @@ -395,6 +507,9 @@ public _FinalStage userEmail(String userEmail) { return this; } + /** + *

                    The User's email at the time of this Event occurring.

                    + */ @java.lang.Override @JsonSetter(value = "user_email", nulls = Nulls.SKIP) public _FinalStage userEmail(Optional userEmail) { @@ -412,6 +527,9 @@ public _FinalStage userName(String userName) { return this; } + /** + *

                    The User's full name at the time of this Event occurring.

                    + */ @java.lang.Override @JsonSetter(value = "user_name", nulls = Nulls.SKIP) public _FinalStage userName(Optional userName) { diff --git a/src/main/java/com/merge/api/hris/types/AuditTrailListRequest.java b/src/main/java/com/merge/api/hris/types/AuditTrailListRequest.java index fdf8b6244..2b612a0b3 100644 --- a/src/main/java/com/merge/api/hris/types/AuditTrailListRequest.java +++ b/src/main/java/com/merge/api/hris/types/AuditTrailListRequest.java @@ -162,6 +162,9 @@ public Builder from(AuditTrailListRequest other) { return this; } + /** + *

                    The pagination cursor value.

                    + */ @JsonSetter(value = "cursor", nulls = Nulls.SKIP) public Builder cursor(Optional cursor) { this.cursor = cursor; @@ -173,6 +176,9 @@ public Builder cursor(String cursor) { return this; } + /** + *

                    If included, will only include audit trail events that occurred before this time

                    + */ @JsonSetter(value = "end_date", nulls = Nulls.SKIP) public Builder endDate(Optional endDate) { this.endDate = endDate; @@ -184,6 +190,9 @@ public Builder endDate(String endDate) { return this; } + /** + *

                    If included, will only include events with the given event type. Possible values include: CREATED_REMOTE_PRODUCTION_API_KEY, DELETED_REMOTE_PRODUCTION_API_KEY, CREATED_TEST_API_KEY, DELETED_TEST_API_KEY, REGENERATED_PRODUCTION_API_KEY, INVITED_USER, TWO_FACTOR_AUTH_ENABLED, TWO_FACTOR_AUTH_DISABLED, DELETED_LINKED_ACCOUNT, DELETED_ALL_COMMON_MODELS_FOR_LINKED_ACCOUNT, CREATED_DESTINATION, DELETED_DESTINATION, CHANGED_DESTINATION, CHANGED_SCOPES, CHANGED_PERSONAL_INFORMATION, CHANGED_ORGANIZATION_SETTINGS, ENABLED_INTEGRATION, DISABLED_INTEGRATION, ENABLED_CATEGORY, DISABLED_CATEGORY, CHANGED_PASSWORD, RESET_PASSWORD, ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION, ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT, DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION, DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT, CREATED_INTEGRATION_WIDE_FIELD_MAPPING, CREATED_LINKED_ACCOUNT_FIELD_MAPPING, CHANGED_INTEGRATION_WIDE_FIELD_MAPPING, CHANGED_LINKED_ACCOUNT_FIELD_MAPPING, DELETED_INTEGRATION_WIDE_FIELD_MAPPING, DELETED_LINKED_ACCOUNT_FIELD_MAPPING, CREATED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE, CHANGED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE, DELETED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE, FORCED_LINKED_ACCOUNT_RESYNC, MUTED_ISSUE, GENERATED_MAGIC_LINK, ENABLED_MERGE_WEBHOOK, DISABLED_MERGE_WEBHOOK, MERGE_WEBHOOK_TARGET_CHANGED, END_USER_CREDENTIALS_ACCESSED

                    + */ @JsonSetter(value = "event_type", nulls = Nulls.SKIP) public Builder eventType(Optional eventType) { this.eventType = eventType; @@ -195,6 +204,9 @@ public Builder eventType(String eventType) { return this; } + /** + *

                    Number of results to return per page.

                    + */ @JsonSetter(value = "page_size", nulls = Nulls.SKIP) public Builder pageSize(Optional pageSize) { this.pageSize = pageSize; @@ -206,6 +218,9 @@ public Builder pageSize(Integer pageSize) { return this; } + /** + *

                    If included, will only include audit trail events that occurred after this time

                    + */ @JsonSetter(value = "start_date", nulls = Nulls.SKIP) public Builder startDate(Optional startDate) { this.startDate = startDate; @@ -217,6 +232,9 @@ public Builder startDate(String startDate) { return this; } + /** + *

                    If provided, this will return events associated with the specified user email. Please note that the email address reflects the user's email at the time of the event, and may not be their current email.

                    + */ @JsonSetter(value = "user_email", nulls = Nulls.SKIP) public Builder userEmail(Optional userEmail) { this.userEmail = userEmail; diff --git a/src/main/java/com/merge/api/hris/types/BankInfo.java b/src/main/java/com/merge/api/hris/types/BankInfo.java index 0f0ceb455..956e3d3e8 100644 --- a/src/main/java/com/merge/api/hris/types/BankInfo.java +++ b/src/main/java/com/merge/api/hris/types/BankInfo.java @@ -296,6 +296,9 @@ public Builder id(String id) { return this; } + /** + *

                    The third-party API ID of the matching object.

                    + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; @@ -307,6 +310,9 @@ public Builder remoteId(String remoteId) { return this; } + /** + *

                    The datetime that this object was created by Merge.

                    + */ @JsonSetter(value = "created_at", nulls = Nulls.SKIP) public Builder createdAt(Optional createdAt) { this.createdAt = createdAt; @@ -318,6 +324,9 @@ public Builder createdAt(OffsetDateTime createdAt) { return this; } + /** + *

                    The datetime that this object was modified by Merge.

                    + */ @JsonSetter(value = "modified_at", nulls = Nulls.SKIP) public Builder modifiedAt(Optional modifiedAt) { this.modifiedAt = modifiedAt; @@ -329,6 +338,9 @@ public Builder modifiedAt(OffsetDateTime modifiedAt) { return this; } + /** + *

                    The employee with this bank account.

                    + */ @JsonSetter(value = "employee", nulls = Nulls.SKIP) public Builder employee(Optional employee) { this.employee = employee; @@ -340,6 +352,9 @@ public Builder employee(BankInfoEmployee employee) { return this; } + /** + *

                    The account number.

                    + */ @JsonSetter(value = "account_number", nulls = Nulls.SKIP) public Builder accountNumber(Optional accountNumber) { this.accountNumber = accountNumber; @@ -351,6 +366,9 @@ public Builder accountNumber(String accountNumber) { return this; } + /** + *

                    The routing number.

                    + */ @JsonSetter(value = "routing_number", nulls = Nulls.SKIP) public Builder routingNumber(Optional routingNumber) { this.routingNumber = routingNumber; @@ -362,6 +380,9 @@ public Builder routingNumber(String routingNumber) { return this; } + /** + *

                    The bank name.

                    + */ @JsonSetter(value = "bank_name", nulls = Nulls.SKIP) public Builder bankName(Optional bankName) { this.bankName = bankName; @@ -373,6 +394,13 @@ public Builder bankName(String bankName) { return this; } + /** + *

                    The bank account type

                    + *
                      + *
                    • SAVINGS - SAVINGS
                    • + *
                    • CHECKING - CHECKING
                    • + *
                    + */ @JsonSetter(value = "account_type", nulls = Nulls.SKIP) public Builder accountType(Optional accountType) { this.accountType = accountType; @@ -384,6 +412,9 @@ public Builder accountType(AccountTypeEnum accountType) { return this; } + /** + *

                    When the matching bank object was created in the third party system.

                    + */ @JsonSetter(value = "remote_created_at", nulls = Nulls.SKIP) public Builder remoteCreatedAt(Optional remoteCreatedAt) { this.remoteCreatedAt = remoteCreatedAt; @@ -395,6 +426,9 @@ public Builder remoteCreatedAt(OffsetDateTime remoteCreatedAt) { return this; } + /** + *

                    Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

                    + */ @JsonSetter(value = "remote_was_deleted", nulls = Nulls.SKIP) public Builder remoteWasDeleted(Optional remoteWasDeleted) { this.remoteWasDeleted = remoteWasDeleted; diff --git a/src/main/java/com/merge/api/hris/types/BankInfoListRequest.java b/src/main/java/com/merge/api/hris/types/BankInfoListRequest.java index 7d99a97a8..6a566e69c 100644 --- a/src/main/java/com/merge/api/hris/types/BankInfoListRequest.java +++ b/src/main/java/com/merge/api/hris/types/BankInfoListRequest.java @@ -362,6 +362,9 @@ public Builder from(BankInfoListRequest other) { return this; } + /** + *

                    Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.

                    + */ @JsonSetter(value = "expand", nulls = Nulls.SKIP) public Builder expand(Optional> expand) { this.expand = expand; @@ -378,6 +381,13 @@ public Builder expand(String expand) { return this; } + /** + *

                    If provided, will only return BankInfo's with this account type. Options: ('SAVINGS', 'CHECKING')

                    + *
                      + *
                    • SAVINGS - SAVINGS
                    • + *
                    • CHECKING - CHECKING
                    • + *
                    + */ @JsonSetter(value = "account_type", nulls = Nulls.SKIP) public Builder accountType(Optional accountType) { this.accountType = accountType; @@ -389,6 +399,9 @@ public Builder accountType(BankInfoListRequestAccountType accountType) { return this; } + /** + *

                    If provided, will only return BankInfo's with this bank name.

                    + */ @JsonSetter(value = "bank_name", nulls = Nulls.SKIP) public Builder bankName(Optional bankName) { this.bankName = bankName; @@ -400,6 +413,9 @@ public Builder bankName(String bankName) { return this; } + /** + *

                    If provided, will only return objects created after this datetime.

                    + */ @JsonSetter(value = "created_after", nulls = Nulls.SKIP) public Builder createdAfter(Optional createdAfter) { this.createdAfter = createdAfter; @@ -411,6 +427,9 @@ public Builder createdAfter(OffsetDateTime createdAfter) { return this; } + /** + *

                    If provided, will only return objects created before this datetime.

                    + */ @JsonSetter(value = "created_before", nulls = Nulls.SKIP) public Builder createdBefore(Optional createdBefore) { this.createdBefore = createdBefore; @@ -422,6 +441,9 @@ public Builder createdBefore(OffsetDateTime createdBefore) { return this; } + /** + *

                    The pagination cursor value.

                    + */ @JsonSetter(value = "cursor", nulls = Nulls.SKIP) public Builder cursor(Optional cursor) { this.cursor = cursor; @@ -433,6 +455,9 @@ public Builder cursor(String cursor) { return this; } + /** + *

                    If provided, will only return bank accounts for this employee.

                    + */ @JsonSetter(value = "employee_id", nulls = Nulls.SKIP) public Builder employeeId(Optional employeeId) { this.employeeId = employeeId; @@ -444,6 +469,9 @@ public Builder employeeId(String employeeId) { return this; } + /** + *

                    Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

                    + */ @JsonSetter(value = "include_deleted_data", nulls = Nulls.SKIP) public Builder includeDeletedData(Optional includeDeletedData) { this.includeDeletedData = includeDeletedData; @@ -455,6 +483,9 @@ public Builder includeDeletedData(Boolean includeDeletedData) { return this; } + /** + *

                    Whether to include the original data Merge fetched from the third-party to produce these models.

                    + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -466,6 +497,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

                    Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

                    + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; @@ -477,6 +511,9 @@ public Builder includeShellData(Boolean includeShellData) { return this; } + /** + *

                    If provided, only objects synced by Merge after this date time will be returned.

                    + */ @JsonSetter(value = "modified_after", nulls = Nulls.SKIP) public Builder modifiedAfter(Optional modifiedAfter) { this.modifiedAfter = modifiedAfter; @@ -488,6 +525,9 @@ public Builder modifiedAfter(OffsetDateTime modifiedAfter) { return this; } + /** + *

                    If provided, only objects synced by Merge before this date time will be returned.

                    + */ @JsonSetter(value = "modified_before", nulls = Nulls.SKIP) public Builder modifiedBefore(Optional modifiedBefore) { this.modifiedBefore = modifiedBefore; @@ -499,6 +539,9 @@ public Builder modifiedBefore(OffsetDateTime modifiedBefore) { return this; } + /** + *

                    Overrides the default ordering for this endpoint. Possible values include: remote_created_at, -remote_created_at.

                    + */ @JsonSetter(value = "order_by", nulls = Nulls.SKIP) public Builder orderBy(Optional orderBy) { this.orderBy = orderBy; @@ -510,6 +553,9 @@ public Builder orderBy(BankInfoListRequestOrderBy orderBy) { return this; } + /** + *

                    Number of results to return per page.

                    + */ @JsonSetter(value = "page_size", nulls = Nulls.SKIP) public Builder pageSize(Optional pageSize) { this.pageSize = pageSize; @@ -521,6 +567,9 @@ public Builder pageSize(Integer pageSize) { return this; } + /** + *

                    Deprecated. Use show_enum_origins.

                    + */ @JsonSetter(value = "remote_fields", nulls = Nulls.SKIP) public Builder remoteFields(Optional remoteFields) { this.remoteFields = remoteFields; @@ -532,6 +581,9 @@ public Builder remoteFields(String remoteFields) { return this; } + /** + *

                    The API provider's ID for the given object.

                    + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; @@ -543,6 +595,9 @@ public Builder remoteId(String remoteId) { return this; } + /** + *

                    A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. Learn more

                    + */ @JsonSetter(value = "show_enum_origins", nulls = Nulls.SKIP) public Builder showEnumOrigins(Optional showEnumOrigins) { this.showEnumOrigins = showEnumOrigins; diff --git a/src/main/java/com/merge/api/hris/types/BankInfoRetrieveRequest.java b/src/main/java/com/merge/api/hris/types/BankInfoRetrieveRequest.java index 416068551..992c2f409 100644 --- a/src/main/java/com/merge/api/hris/types/BankInfoRetrieveRequest.java +++ b/src/main/java/com/merge/api/hris/types/BankInfoRetrieveRequest.java @@ -149,6 +149,9 @@ public Builder from(BankInfoRetrieveRequest other) { return this; } + /** + *

                    Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.

                    + */ @JsonSetter(value = "expand", nulls = Nulls.SKIP) public Builder expand(Optional> expand) { this.expand = expand; @@ -165,6 +168,9 @@ public Builder expand(String expand) { return this; } + /** + *

                    Whether to include the original data Merge fetched from the third-party to produce these models.

                    + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -176,6 +182,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

                    Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

                    + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; @@ -187,6 +196,9 @@ public Builder includeShellData(Boolean includeShellData) { return this; } + /** + *

                    Deprecated. Use show_enum_origins.

                    + */ @JsonSetter(value = "remote_fields", nulls = Nulls.SKIP) public Builder remoteFields(Optional remoteFields) { this.remoteFields = remoteFields; @@ -198,6 +210,9 @@ public Builder remoteFields(String remoteFields) { return this; } + /** + *

                    A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. Learn more

                    + */ @JsonSetter(value = "show_enum_origins", nulls = Nulls.SKIP) public Builder showEnumOrigins(Optional showEnumOrigins) { this.showEnumOrigins = showEnumOrigins; diff --git a/src/main/java/com/merge/api/hris/types/Benefit.java b/src/main/java/com/merge/api/hris/types/Benefit.java index d419fad27..633107843 100644 --- a/src/main/java/com/merge/api/hris/types/Benefit.java +++ b/src/main/java/com/merge/api/hris/types/Benefit.java @@ -326,6 +326,9 @@ public Builder id(String id) { return this; } + /** + *

                    The third-party API ID of the matching object.

                    + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; @@ -337,6 +340,9 @@ public Builder remoteId(String remoteId) { return this; } + /** + *

                    The datetime that this object was created by Merge.

                    + */ @JsonSetter(value = "created_at", nulls = Nulls.SKIP) public Builder createdAt(Optional createdAt) { this.createdAt = createdAt; @@ -348,6 +354,9 @@ public Builder createdAt(OffsetDateTime createdAt) { return this; } + /** + *

                    The datetime that this object was modified by Merge.

                    + */ @JsonSetter(value = "modified_at", nulls = Nulls.SKIP) public Builder modifiedAt(Optional modifiedAt) { this.modifiedAt = modifiedAt; @@ -359,6 +368,9 @@ public Builder modifiedAt(OffsetDateTime modifiedAt) { return this; } + /** + *

                    The employee on the plan.

                    + */ @JsonSetter(value = "employee", nulls = Nulls.SKIP) public Builder employee(Optional employee) { this.employee = employee; @@ -370,6 +382,9 @@ public Builder employee(BenefitEmployee employee) { return this; } + /** + *

                    The name of the benefit provider.

                    + */ @JsonSetter(value = "provider_name", nulls = Nulls.SKIP) public Builder providerName(Optional providerName) { this.providerName = providerName; @@ -381,6 +396,9 @@ public Builder providerName(String providerName) { return this; } + /** + *

                    The type of benefit plan

                    + */ @JsonSetter(value = "benefit_plan_type", nulls = Nulls.SKIP) public Builder benefitPlanType(Optional benefitPlanType) { this.benefitPlanType = benefitPlanType; @@ -392,6 +410,9 @@ public Builder benefitPlanType(String benefitPlanType) { return this; } + /** + *

                    The employee's contribution.

                    + */ @JsonSetter(value = "employee_contribution", nulls = Nulls.SKIP) public Builder employeeContribution(Optional employeeContribution) { this.employeeContribution = employeeContribution; @@ -403,6 +424,9 @@ public Builder employeeContribution(Double employeeContribution) { return this; } + /** + *

                    The company's contribution.

                    + */ @JsonSetter(value = "company_contribution", nulls = Nulls.SKIP) public Builder companyContribution(Optional companyContribution) { this.companyContribution = companyContribution; @@ -414,6 +438,9 @@ public Builder companyContribution(Double companyContribution) { return this; } + /** + *

                    The day and time the benefit started.

                    + */ @JsonSetter(value = "start_date", nulls = Nulls.SKIP) public Builder startDate(Optional startDate) { this.startDate = startDate; @@ -425,6 +452,9 @@ public Builder startDate(OffsetDateTime startDate) { return this; } + /** + *

                    The day and time the benefit ended.

                    + */ @JsonSetter(value = "end_date", nulls = Nulls.SKIP) public Builder endDate(Optional endDate) { this.endDate = endDate; @@ -436,6 +466,9 @@ public Builder endDate(OffsetDateTime endDate) { return this; } + /** + *

                    Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

                    + */ @JsonSetter(value = "remote_was_deleted", nulls = Nulls.SKIP) public Builder remoteWasDeleted(Optional remoteWasDeleted) { this.remoteWasDeleted = remoteWasDeleted; @@ -447,6 +480,9 @@ public Builder remoteWasDeleted(Boolean remoteWasDeleted) { return this; } + /** + *

                    The employer benefit plan the employee is enrolled in.

                    + */ @JsonSetter(value = "employer_benefit", nulls = Nulls.SKIP) public Builder employerBenefit(Optional employerBenefit) { this.employerBenefit = employerBenefit; diff --git a/src/main/java/com/merge/api/hris/types/BenefitsListRequest.java b/src/main/java/com/merge/api/hris/types/BenefitsListRequest.java index 67e7836d8..570da3daf 100644 --- a/src/main/java/com/merge/api/hris/types/BenefitsListRequest.java +++ b/src/main/java/com/merge/api/hris/types/BenefitsListRequest.java @@ -273,6 +273,9 @@ public Builder from(BenefitsListRequest other) { return this; } + /** + *

                    Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.

                    + */ @JsonSetter(value = "expand", nulls = Nulls.SKIP) public Builder expand(Optional> expand) { this.expand = expand; @@ -289,6 +292,9 @@ public Builder expand(String expand) { return this; } + /** + *

                    If provided, will only return objects created after this datetime.

                    + */ @JsonSetter(value = "created_after", nulls = Nulls.SKIP) public Builder createdAfter(Optional createdAfter) { this.createdAfter = createdAfter; @@ -300,6 +306,9 @@ public Builder createdAfter(OffsetDateTime createdAfter) { return this; } + /** + *

                    If provided, will only return objects created before this datetime.

                    + */ @JsonSetter(value = "created_before", nulls = Nulls.SKIP) public Builder createdBefore(Optional createdBefore) { this.createdBefore = createdBefore; @@ -311,6 +320,9 @@ public Builder createdBefore(OffsetDateTime createdBefore) { return this; } + /** + *

                    The pagination cursor value.

                    + */ @JsonSetter(value = "cursor", nulls = Nulls.SKIP) public Builder cursor(Optional cursor) { this.cursor = cursor; @@ -322,6 +334,9 @@ public Builder cursor(String cursor) { return this; } + /** + *

                    If provided, will return the benefits associated with the employee.

                    + */ @JsonSetter(value = "employee_id", nulls = Nulls.SKIP) public Builder employeeId(Optional employeeId) { this.employeeId = employeeId; @@ -333,6 +348,9 @@ public Builder employeeId(String employeeId) { return this; } + /** + *

                    Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

                    + */ @JsonSetter(value = "include_deleted_data", nulls = Nulls.SKIP) public Builder includeDeletedData(Optional includeDeletedData) { this.includeDeletedData = includeDeletedData; @@ -344,6 +362,9 @@ public Builder includeDeletedData(Boolean includeDeletedData) { return this; } + /** + *

                    Whether to include the original data Merge fetched from the third-party to produce these models.

                    + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -355,6 +376,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

                    Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

                    + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; @@ -366,6 +390,9 @@ public Builder includeShellData(Boolean includeShellData) { return this; } + /** + *

                    If provided, only objects synced by Merge after this date time will be returned.

                    + */ @JsonSetter(value = "modified_after", nulls = Nulls.SKIP) public Builder modifiedAfter(Optional modifiedAfter) { this.modifiedAfter = modifiedAfter; @@ -377,6 +404,9 @@ public Builder modifiedAfter(OffsetDateTime modifiedAfter) { return this; } + /** + *

                    If provided, only objects synced by Merge before this date time will be returned.

                    + */ @JsonSetter(value = "modified_before", nulls = Nulls.SKIP) public Builder modifiedBefore(Optional modifiedBefore) { this.modifiedBefore = modifiedBefore; @@ -388,6 +418,9 @@ public Builder modifiedBefore(OffsetDateTime modifiedBefore) { return this; } + /** + *

                    Number of results to return per page.

                    + */ @JsonSetter(value = "page_size", nulls = Nulls.SKIP) public Builder pageSize(Optional pageSize) { this.pageSize = pageSize; @@ -399,6 +432,9 @@ public Builder pageSize(Integer pageSize) { return this; } + /** + *

                    The API provider's ID for the given object.

                    + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; diff --git a/src/main/java/com/merge/api/hris/types/BenefitsRetrieveRequest.java b/src/main/java/com/merge/api/hris/types/BenefitsRetrieveRequest.java index 90ab52b4e..51bb50805 100644 --- a/src/main/java/com/merge/api/hris/types/BenefitsRetrieveRequest.java +++ b/src/main/java/com/merge/api/hris/types/BenefitsRetrieveRequest.java @@ -116,6 +116,9 @@ public Builder from(BenefitsRetrieveRequest other) { return this; } + /** + *

                    Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.

                    + */ @JsonSetter(value = "expand", nulls = Nulls.SKIP) public Builder expand(Optional> expand) { this.expand = expand; @@ -132,6 +135,9 @@ public Builder expand(String expand) { return this; } + /** + *

                    Whether to include the original data Merge fetched from the third-party to produce these models.

                    + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -143,6 +149,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

                    Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

                    + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; diff --git a/src/main/java/com/merge/api/hris/types/CommonModelScopeApi.java b/src/main/java/com/merge/api/hris/types/CommonModelScopeApi.java index db551224e..337af5780 100644 --- a/src/main/java/com/merge/api/hris/types/CommonModelScopeApi.java +++ b/src/main/java/com/merge/api/hris/types/CommonModelScopeApi.java @@ -82,6 +82,9 @@ public Builder from(CommonModelScopeApi other) { return this; } + /** + *

                    The common models you want to update the scopes for

                    + */ @JsonSetter(value = "common_models", nulls = Nulls.SKIP) public Builder commonModels(List commonModels) { this.commonModels.clear(); diff --git a/src/main/java/com/merge/api/hris/types/CompaniesListRequest.java b/src/main/java/com/merge/api/hris/types/CompaniesListRequest.java index b5bb60f49..be2f48358 100644 --- a/src/main/java/com/merge/api/hris/types/CompaniesListRequest.java +++ b/src/main/java/com/merge/api/hris/types/CompaniesListRequest.java @@ -237,6 +237,9 @@ public Builder from(CompaniesListRequest other) { return this; } + /** + *

                    If provided, will only return objects created after this datetime.

                    + */ @JsonSetter(value = "created_after", nulls = Nulls.SKIP) public Builder createdAfter(Optional createdAfter) { this.createdAfter = createdAfter; @@ -248,6 +251,9 @@ public Builder createdAfter(OffsetDateTime createdAfter) { return this; } + /** + *

                    If provided, will only return objects created before this datetime.

                    + */ @JsonSetter(value = "created_before", nulls = Nulls.SKIP) public Builder createdBefore(Optional createdBefore) { this.createdBefore = createdBefore; @@ -259,6 +265,9 @@ public Builder createdBefore(OffsetDateTime createdBefore) { return this; } + /** + *

                    The pagination cursor value.

                    + */ @JsonSetter(value = "cursor", nulls = Nulls.SKIP) public Builder cursor(Optional cursor) { this.cursor = cursor; @@ -270,6 +279,9 @@ public Builder cursor(String cursor) { return this; } + /** + *

                    Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

                    + */ @JsonSetter(value = "include_deleted_data", nulls = Nulls.SKIP) public Builder includeDeletedData(Optional includeDeletedData) { this.includeDeletedData = includeDeletedData; @@ -281,6 +293,9 @@ public Builder includeDeletedData(Boolean includeDeletedData) { return this; } + /** + *

                    Whether to include the original data Merge fetched from the third-party to produce these models.

                    + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -292,6 +307,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

                    Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

                    + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; @@ -303,6 +321,9 @@ public Builder includeShellData(Boolean includeShellData) { return this; } + /** + *

                    If provided, only objects synced by Merge after this date time will be returned.

                    + */ @JsonSetter(value = "modified_after", nulls = Nulls.SKIP) public Builder modifiedAfter(Optional modifiedAfter) { this.modifiedAfter = modifiedAfter; @@ -314,6 +335,9 @@ public Builder modifiedAfter(OffsetDateTime modifiedAfter) { return this; } + /** + *

                    If provided, only objects synced by Merge before this date time will be returned.

                    + */ @JsonSetter(value = "modified_before", nulls = Nulls.SKIP) public Builder modifiedBefore(Optional modifiedBefore) { this.modifiedBefore = modifiedBefore; @@ -325,6 +349,9 @@ public Builder modifiedBefore(OffsetDateTime modifiedBefore) { return this; } + /** + *

                    Number of results to return per page.

                    + */ @JsonSetter(value = "page_size", nulls = Nulls.SKIP) public Builder pageSize(Optional pageSize) { this.pageSize = pageSize; @@ -336,6 +363,9 @@ public Builder pageSize(Integer pageSize) { return this; } + /** + *

                    The API provider's ID for the given object.

                    + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; diff --git a/src/main/java/com/merge/api/hris/types/CompaniesRetrieveRequest.java b/src/main/java/com/merge/api/hris/types/CompaniesRetrieveRequest.java index 550ad59c3..339b0231b 100644 --- a/src/main/java/com/merge/api/hris/types/CompaniesRetrieveRequest.java +++ b/src/main/java/com/merge/api/hris/types/CompaniesRetrieveRequest.java @@ -97,6 +97,9 @@ public Builder from(CompaniesRetrieveRequest other) { return this; } + /** + *

                    Whether to include the original data Merge fetched from the third-party to produce these models.

                    + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -108,6 +111,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

                    Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

                    + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; diff --git a/src/main/java/com/merge/api/hris/types/Company.java b/src/main/java/com/merge/api/hris/types/Company.java index 8f55a3b78..61944ea55 100644 --- a/src/main/java/com/merge/api/hris/types/Company.java +++ b/src/main/java/com/merge/api/hris/types/Company.java @@ -241,6 +241,9 @@ public Builder id(String id) { return this; } + /** + *

                    The third-party API ID of the matching object.

                    + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; @@ -252,6 +255,9 @@ public Builder remoteId(String remoteId) { return this; } + /** + *

                    The datetime that this object was created by Merge.

                    + */ @JsonSetter(value = "created_at", nulls = Nulls.SKIP) public Builder createdAt(Optional createdAt) { this.createdAt = createdAt; @@ -263,6 +269,9 @@ public Builder createdAt(OffsetDateTime createdAt) { return this; } + /** + *

                    The datetime that this object was modified by Merge.

                    + */ @JsonSetter(value = "modified_at", nulls = Nulls.SKIP) public Builder modifiedAt(Optional modifiedAt) { this.modifiedAt = modifiedAt; @@ -274,6 +283,9 @@ public Builder modifiedAt(OffsetDateTime modifiedAt) { return this; } + /** + *

                    The company's legal name.

                    + */ @JsonSetter(value = "legal_name", nulls = Nulls.SKIP) public Builder legalName(Optional legalName) { this.legalName = legalName; @@ -285,6 +297,9 @@ public Builder legalName(String legalName) { return this; } + /** + *

                    The company's display name.

                    + */ @JsonSetter(value = "display_name", nulls = Nulls.SKIP) public Builder displayName(Optional displayName) { this.displayName = displayName; @@ -296,6 +311,9 @@ public Builder displayName(String displayName) { return this; } + /** + *

                    The company's Employer Identification Numbers.

                    + */ @JsonSetter(value = "eins", nulls = Nulls.SKIP) public Builder eins(Optional>> eins) { this.eins = eins; @@ -307,6 +325,9 @@ public Builder eins(List> eins) { return this; } + /** + *

                    Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

                    + */ @JsonSetter(value = "remote_was_deleted", nulls = Nulls.SKIP) public Builder remoteWasDeleted(Optional remoteWasDeleted) { this.remoteWasDeleted = remoteWasDeleted; diff --git a/src/main/java/com/merge/api/hris/types/CreateFieldMappingRequest.java b/src/main/java/com/merge/api/hris/types/CreateFieldMappingRequest.java index 7ed1f1ee1..15ee96e96 100644 --- a/src/main/java/com/merge/api/hris/types/CreateFieldMappingRequest.java +++ b/src/main/java/com/merge/api/hris/types/CreateFieldMappingRequest.java @@ -158,34 +158,55 @@ public static TargetFieldNameStage builder() { } public interface TargetFieldNameStage { + /** + * The name of the target field you want this remote field to map to. + */ TargetFieldDescriptionStage targetFieldName(@NotNull String targetFieldName); Builder from(CreateFieldMappingRequest other); } public interface TargetFieldDescriptionStage { + /** + * The description of the target field you want this remote field to map to. + */ RemoteMethodStage targetFieldDescription(@NotNull String targetFieldDescription); } public interface RemoteMethodStage { + /** + * The method of the remote endpoint where the remote field is coming from. + */ RemoteUrlPathStage remoteMethod(@NotNull String remoteMethod); } public interface RemoteUrlPathStage { + /** + * The path of the remote endpoint where the remote field is coming from. + */ CommonModelNameStage remoteUrlPath(@NotNull String remoteUrlPath); } public interface CommonModelNameStage { + /** + * The name of the Common Model that the remote field corresponds to in a given category. + */ _FinalStage commonModelName(@NotNull String commonModelName); } public interface _FinalStage { CreateFieldMappingRequest build(); + /** + *

                    If true, remote fields metadata is excluded from each field mapping instance (i.e. remote_fields.remote_key_name and remote_fields.schema will be null). This will increase the speed of the request since these fields require some calculations.

                    + */ _FinalStage excludeRemoteFieldMetadata(Optional excludeRemoteFieldMetadata); _FinalStage excludeRemoteFieldMetadata(Boolean excludeRemoteFieldMetadata); + /** + *

                    The field traversal path of the remote field listed when you hit the GET /remote-fields endpoint.

                    + */ _FinalStage remoteFieldTraversalPath(List remoteFieldTraversalPath); _FinalStage addRemoteFieldTraversalPath(JsonNode remoteFieldTraversalPath); @@ -233,7 +254,7 @@ public Builder from(CreateFieldMappingRequest other) { } /** - *

                    The name of the target field you want this remote field to map to.

                    + * The name of the target field you want this remote field to map to.

                    The name of the target field you want this remote field to map to.

                    * @return Reference to {@code this} so that method calls can be chained together. */ @java.lang.Override @@ -244,7 +265,7 @@ public TargetFieldDescriptionStage targetFieldName(@NotNull String targetFieldNa } /** - *

                    The description of the target field you want this remote field to map to.

                    + * The description of the target field you want this remote field to map to.

                    The description of the target field you want this remote field to map to.

                    * @return Reference to {@code this} so that method calls can be chained together. */ @java.lang.Override @@ -255,7 +276,7 @@ public RemoteMethodStage targetFieldDescription(@NotNull String targetFieldDescr } /** - *

                    The method of the remote endpoint where the remote field is coming from.

                    + * The method of the remote endpoint where the remote field is coming from.

                    The method of the remote endpoint where the remote field is coming from.

                    * @return Reference to {@code this} so that method calls can be chained together. */ @java.lang.Override @@ -266,7 +287,7 @@ public RemoteUrlPathStage remoteMethod(@NotNull String remoteMethod) { } /** - *

                    The path of the remote endpoint where the remote field is coming from.

                    + * The path of the remote endpoint where the remote field is coming from.

                    The path of the remote endpoint where the remote field is coming from.

                    * @return Reference to {@code this} so that method calls can be chained together. */ @java.lang.Override @@ -277,7 +298,7 @@ public CommonModelNameStage remoteUrlPath(@NotNull String remoteUrlPath) { } /** - *

                    The name of the Common Model that the remote field corresponds to in a given category.

                    + * The name of the Common Model that the remote field corresponds to in a given category.

                    The name of the Common Model that the remote field corresponds to in a given category.

                    * @return Reference to {@code this} so that method calls can be chained together. */ @java.lang.Override @@ -307,6 +328,9 @@ public _FinalStage addRemoteFieldTraversalPath(JsonNode remoteFieldTraversalPath return this; } + /** + *

                    The field traversal path of the remote field listed when you hit the GET /remote-fields endpoint.

                    + */ @java.lang.Override @JsonSetter(value = "remote_field_traversal_path", nulls = Nulls.SKIP) public _FinalStage remoteFieldTraversalPath(List remoteFieldTraversalPath) { @@ -325,6 +349,9 @@ public _FinalStage excludeRemoteFieldMetadata(Boolean excludeRemoteFieldMetadata return this; } + /** + *

                    If true, remote fields metadata is excluded from each field mapping instance (i.e. remote_fields.remote_key_name and remote_fields.schema will be null). This will increase the speed of the request since these fields require some calculations.

                    + */ @java.lang.Override @JsonSetter(value = "exclude_remote_field_metadata", nulls = Nulls.SKIP) public _FinalStage excludeRemoteFieldMetadata(Optional excludeRemoteFieldMetadata) { diff --git a/src/main/java/com/merge/api/hris/types/DataPassthroughRequest.java b/src/main/java/com/merge/api/hris/types/DataPassthroughRequest.java index e4597817a..2c7733ed8 100644 --- a/src/main/java/com/merge/api/hris/types/DataPassthroughRequest.java +++ b/src/main/java/com/merge/api/hris/types/DataPassthroughRequest.java @@ -171,24 +171,39 @@ public interface MethodStage { } public interface PathStage { + /** + * The path of the request in the third party's platform. + */ _FinalStage path(@NotNull String path); } public interface _FinalStage { DataPassthroughRequest build(); + /** + *

                    An optional override of the third party's base url for the request.

                    + */ _FinalStage baseUrlOverride(Optional baseUrlOverride); _FinalStage baseUrlOverride(String baseUrlOverride); + /** + *

                    The data with the request. You must include a request_format parameter matching the data's format

                    + */ _FinalStage data(Optional data); _FinalStage data(String data); + /** + *

                    Pass an array of MultipartFormField objects in here instead of using the data param if request_format is set to MULTIPART.

                    + */ _FinalStage multipartFormData(Optional> multipartFormData); _FinalStage multipartFormData(List multipartFormData); + /** + *

                    The headers to use for the request (Merge will handle the account's authorization headers). Content-Type header is required for passthrough. Choose content type corresponding to expected format of receiving server.

                    + */ _FinalStage headers(Optional> headers); _FinalStage headers(Map headers); @@ -197,6 +212,9 @@ public interface _FinalStage { _FinalStage requestFormat(RequestFormatEnum requestFormat); + /** + *

                    Optional. If true, the response will always be an object of the form {"type": T, "value": ...} where T will be one of string, boolean, number, null, array, object.

                    + */ _FinalStage normalizeResponse(Optional normalizeResponse); _FinalStage normalizeResponse(Boolean normalizeResponse); @@ -246,7 +264,7 @@ public PathStage method(@NotNull MethodEnum method) { } /** - *

                    The path of the request in the third party's platform.

                    + * The path of the request in the third party's platform.

                    The path of the request in the third party's platform.

                    * @return Reference to {@code this} so that method calls can be chained together. */ @java.lang.Override @@ -266,6 +284,9 @@ public _FinalStage normalizeResponse(Boolean normalizeResponse) { return this; } + /** + *

                    Optional. If true, the response will always be an object of the form {"type": T, "value": ...} where T will be one of string, boolean, number, null, array, object.

                    + */ @java.lang.Override @JsonSetter(value = "normalize_response", nulls = Nulls.SKIP) public _FinalStage normalizeResponse(Optional normalizeResponse) { @@ -296,6 +317,9 @@ public _FinalStage headers(Map headers) { return this; } + /** + *

                    The headers to use for the request (Merge will handle the account's authorization headers). Content-Type header is required for passthrough. Choose content type corresponding to expected format of receiving server.

                    + */ @java.lang.Override @JsonSetter(value = "headers", nulls = Nulls.SKIP) public _FinalStage headers(Optional> headers) { @@ -313,6 +337,9 @@ public _FinalStage multipartFormData(List multipartFo return this; } + /** + *

                    Pass an array of MultipartFormField objects in here instead of using the data param if request_format is set to MULTIPART.

                    + */ @java.lang.Override @JsonSetter(value = "multipart_form_data", nulls = Nulls.SKIP) public _FinalStage multipartFormData(Optional> multipartFormData) { @@ -330,6 +357,9 @@ public _FinalStage data(String data) { return this; } + /** + *

                    The data with the request. You must include a request_format parameter matching the data's format

                    + */ @java.lang.Override @JsonSetter(value = "data", nulls = Nulls.SKIP) public _FinalStage data(Optional data) { @@ -347,6 +377,9 @@ public _FinalStage baseUrlOverride(String baseUrlOverride) { return this; } + /** + *

                    An optional override of the third party's base url for the request.

                    + */ @java.lang.Override @JsonSetter(value = "base_url_override", nulls = Nulls.SKIP) public _FinalStage baseUrlOverride(Optional baseUrlOverride) { diff --git a/src/main/java/com/merge/api/hris/types/Deduction.java b/src/main/java/com/merge/api/hris/types/Deduction.java index 11f44c158..949ed8a61 100644 --- a/src/main/java/com/merge/api/hris/types/Deduction.java +++ b/src/main/java/com/merge/api/hris/types/Deduction.java @@ -255,6 +255,9 @@ public Builder id(String id) { return this; } + /** + *

                    The third-party API ID of the matching object.

                    + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; @@ -266,6 +269,9 @@ public Builder remoteId(String remoteId) { return this; } + /** + *

                    The datetime that this object was created by Merge.

                    + */ @JsonSetter(value = "created_at", nulls = Nulls.SKIP) public Builder createdAt(Optional createdAt) { this.createdAt = createdAt; @@ -277,6 +283,9 @@ public Builder createdAt(OffsetDateTime createdAt) { return this; } + /** + *

                    The datetime that this object was modified by Merge.

                    + */ @JsonSetter(value = "modified_at", nulls = Nulls.SKIP) public Builder modifiedAt(Optional modifiedAt) { this.modifiedAt = modifiedAt; @@ -299,6 +308,9 @@ public Builder employeePayrollRun(String employeePayrollRun) { return this; } + /** + *

                    The deduction's name.

                    + */ @JsonSetter(value = "name", nulls = Nulls.SKIP) public Builder name(Optional name) { this.name = name; @@ -310,6 +322,9 @@ public Builder name(String name) { return this; } + /** + *

                    The amount of money that is withheld from an employee's gross pay by the employee.

                    + */ @JsonSetter(value = "employee_deduction", nulls = Nulls.SKIP) public Builder employeeDeduction(Optional employeeDeduction) { this.employeeDeduction = employeeDeduction; @@ -321,6 +336,9 @@ public Builder employeeDeduction(Double employeeDeduction) { return this; } + /** + *

                    The amount of money that is withheld on behalf of an employee by the company.

                    + */ @JsonSetter(value = "company_deduction", nulls = Nulls.SKIP) public Builder companyDeduction(Optional companyDeduction) { this.companyDeduction = companyDeduction; @@ -332,6 +350,9 @@ public Builder companyDeduction(Double companyDeduction) { return this; } + /** + *

                    Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

                    + */ @JsonSetter(value = "remote_was_deleted", nulls = Nulls.SKIP) public Builder remoteWasDeleted(Optional remoteWasDeleted) { this.remoteWasDeleted = remoteWasDeleted; diff --git a/src/main/java/com/merge/api/hris/types/Dependent.java b/src/main/java/com/merge/api/hris/types/Dependent.java index b417240da..dc00f1748 100644 --- a/src/main/java/com/merge/api/hris/types/Dependent.java +++ b/src/main/java/com/merge/api/hris/types/Dependent.java @@ -389,6 +389,9 @@ public Builder id(String id) { return this; } + /** + *

                    The third-party API ID of the matching object.

                    + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; @@ -400,6 +403,9 @@ public Builder remoteId(String remoteId) { return this; } + /** + *

                    The datetime that this object was created by Merge.

                    + */ @JsonSetter(value = "created_at", nulls = Nulls.SKIP) public Builder createdAt(Optional createdAt) { this.createdAt = createdAt; @@ -411,6 +417,9 @@ public Builder createdAt(OffsetDateTime createdAt) { return this; } + /** + *

                    The datetime that this object was modified by Merge.

                    + */ @JsonSetter(value = "modified_at", nulls = Nulls.SKIP) public Builder modifiedAt(Optional modifiedAt) { this.modifiedAt = modifiedAt; @@ -422,6 +431,9 @@ public Builder modifiedAt(OffsetDateTime modifiedAt) { return this; } + /** + *

                    The dependents's first name.

                    + */ @JsonSetter(value = "first_name", nulls = Nulls.SKIP) public Builder firstName(Optional firstName) { this.firstName = firstName; @@ -433,6 +445,9 @@ public Builder firstName(String firstName) { return this; } + /** + *

                    The dependents's middle name.

                    + */ @JsonSetter(value = "middle_name", nulls = Nulls.SKIP) public Builder middleName(Optional middleName) { this.middleName = middleName; @@ -444,6 +459,9 @@ public Builder middleName(String middleName) { return this; } + /** + *

                    The dependents's last name.

                    + */ @JsonSetter(value = "last_name", nulls = Nulls.SKIP) public Builder lastName(Optional lastName) { this.lastName = lastName; @@ -455,6 +473,14 @@ public Builder lastName(String lastName) { return this; } + /** + *

                    The dependent's relationship to the employee.

                    + *
                      + *
                    • CHILD - CHILD
                    • + *
                    • SPOUSE - SPOUSE
                    • + *
                    • DOMESTIC_PARTNER - DOMESTIC_PARTNER
                    • + *
                    + */ @JsonSetter(value = "relationship", nulls = Nulls.SKIP) public Builder relationship(Optional relationship) { this.relationship = relationship; @@ -466,6 +492,9 @@ public Builder relationship(RelationshipEnum relationship) { return this; } + /** + *

                    The employee this person is a dependent of.

                    + */ @JsonSetter(value = "employee", nulls = Nulls.SKIP) public Builder employee(Optional employee) { this.employee = employee; @@ -477,6 +506,9 @@ public Builder employee(String employee) { return this; } + /** + *

                    The dependent's date of birth.

                    + */ @JsonSetter(value = "date_of_birth", nulls = Nulls.SKIP) public Builder dateOfBirth(Optional dateOfBirth) { this.dateOfBirth = dateOfBirth; @@ -488,6 +520,16 @@ public Builder dateOfBirth(OffsetDateTime dateOfBirth) { return this; } + /** + *

                    The dependent's gender.

                    + *
                      + *
                    • MALE - MALE
                    • + *
                    • FEMALE - FEMALE
                    • + *
                    • NON-BINARY - NON-BINARY
                    • + *
                    • OTHER - OTHER
                    • + *
                    • PREFER_NOT_TO_DISCLOSE - PREFER_NOT_TO_DISCLOSE
                    • + *
                    + */ @JsonSetter(value = "gender", nulls = Nulls.SKIP) public Builder gender(Optional gender) { this.gender = gender; @@ -499,6 +541,9 @@ public Builder gender(GenderEnum gender) { return this; } + /** + *

                    The dependent's phone number.

                    + */ @JsonSetter(value = "phone_number", nulls = Nulls.SKIP) public Builder phoneNumber(Optional phoneNumber) { this.phoneNumber = phoneNumber; @@ -510,6 +555,9 @@ public Builder phoneNumber(String phoneNumber) { return this; } + /** + *

                    The dependents's home address.

                    + */ @JsonSetter(value = "home_location", nulls = Nulls.SKIP) public Builder homeLocation(Optional homeLocation) { this.homeLocation = homeLocation; @@ -521,6 +569,9 @@ public Builder homeLocation(String homeLocation) { return this; } + /** + *

                    Whether or not the dependent is a student

                    + */ @JsonSetter(value = "is_student", nulls = Nulls.SKIP) public Builder isStudent(Optional isStudent) { this.isStudent = isStudent; @@ -532,6 +583,9 @@ public Builder isStudent(Boolean isStudent) { return this; } + /** + *

                    The dependents's social security number.

                    + */ @JsonSetter(value = "ssn", nulls = Nulls.SKIP) public Builder ssn(Optional ssn) { this.ssn = ssn; @@ -543,6 +597,9 @@ public Builder ssn(String ssn) { return this; } + /** + *

                    Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

                    + */ @JsonSetter(value = "remote_was_deleted", nulls = Nulls.SKIP) public Builder remoteWasDeleted(Optional remoteWasDeleted) { this.remoteWasDeleted = remoteWasDeleted; diff --git a/src/main/java/com/merge/api/hris/types/DependentsListRequest.java b/src/main/java/com/merge/api/hris/types/DependentsListRequest.java index 3db599881..9c3c9a64c 100644 --- a/src/main/java/com/merge/api/hris/types/DependentsListRequest.java +++ b/src/main/java/com/merge/api/hris/types/DependentsListRequest.java @@ -254,6 +254,9 @@ public Builder from(DependentsListRequest other) { return this; } + /** + *

                    If provided, will only return objects created after this datetime.

                    + */ @JsonSetter(value = "created_after", nulls = Nulls.SKIP) public Builder createdAfter(Optional createdAfter) { this.createdAfter = createdAfter; @@ -265,6 +268,9 @@ public Builder createdAfter(OffsetDateTime createdAfter) { return this; } + /** + *

                    If provided, will only return objects created before this datetime.

                    + */ @JsonSetter(value = "created_before", nulls = Nulls.SKIP) public Builder createdBefore(Optional createdBefore) { this.createdBefore = createdBefore; @@ -276,6 +282,9 @@ public Builder createdBefore(OffsetDateTime createdBefore) { return this; } + /** + *

                    The pagination cursor value.

                    + */ @JsonSetter(value = "cursor", nulls = Nulls.SKIP) public Builder cursor(Optional cursor) { this.cursor = cursor; @@ -287,6 +296,9 @@ public Builder cursor(String cursor) { return this; } + /** + *

                    Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

                    + */ @JsonSetter(value = "include_deleted_data", nulls = Nulls.SKIP) public Builder includeDeletedData(Optional includeDeletedData) { this.includeDeletedData = includeDeletedData; @@ -298,6 +310,9 @@ public Builder includeDeletedData(Boolean includeDeletedData) { return this; } + /** + *

                    Whether to include the original data Merge fetched from the third-party to produce these models.

                    + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -309,6 +324,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

                    Whether to include sensitive fields (such as social security numbers) in the response.

                    + */ @JsonSetter(value = "include_sensitive_fields", nulls = Nulls.SKIP) public Builder includeSensitiveFields(Optional includeSensitiveFields) { this.includeSensitiveFields = includeSensitiveFields; @@ -320,6 +338,9 @@ public Builder includeSensitiveFields(Boolean includeSensitiveFields) { return this; } + /** + *

                    Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

                    + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; @@ -331,6 +352,9 @@ public Builder includeShellData(Boolean includeShellData) { return this; } + /** + *

                    If provided, only objects synced by Merge after this date time will be returned.

                    + */ @JsonSetter(value = "modified_after", nulls = Nulls.SKIP) public Builder modifiedAfter(Optional modifiedAfter) { this.modifiedAfter = modifiedAfter; @@ -342,6 +366,9 @@ public Builder modifiedAfter(OffsetDateTime modifiedAfter) { return this; } + /** + *

                    If provided, only objects synced by Merge before this date time will be returned.

                    + */ @JsonSetter(value = "modified_before", nulls = Nulls.SKIP) public Builder modifiedBefore(Optional modifiedBefore) { this.modifiedBefore = modifiedBefore; @@ -353,6 +380,9 @@ public Builder modifiedBefore(OffsetDateTime modifiedBefore) { return this; } + /** + *

                    Number of results to return per page.

                    + */ @JsonSetter(value = "page_size", nulls = Nulls.SKIP) public Builder pageSize(Optional pageSize) { this.pageSize = pageSize; @@ -364,6 +394,9 @@ public Builder pageSize(Integer pageSize) { return this; } + /** + *

                    The API provider's ID for the given object.

                    + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; diff --git a/src/main/java/com/merge/api/hris/types/DependentsRetrieveRequest.java b/src/main/java/com/merge/api/hris/types/DependentsRetrieveRequest.java index a4f38fbfe..4e170d094 100644 --- a/src/main/java/com/merge/api/hris/types/DependentsRetrieveRequest.java +++ b/src/main/java/com/merge/api/hris/types/DependentsRetrieveRequest.java @@ -114,6 +114,9 @@ public Builder from(DependentsRetrieveRequest other) { return this; } + /** + *

                    Whether to include the original data Merge fetched from the third-party to produce these models.

                    + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -125,6 +128,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

                    Whether to include sensitive fields (such as social security numbers) in the response.

                    + */ @JsonSetter(value = "include_sensitive_fields", nulls = Nulls.SKIP) public Builder includeSensitiveFields(Optional includeSensitiveFields) { this.includeSensitiveFields = includeSensitiveFields; @@ -136,6 +142,9 @@ public Builder includeSensitiveFields(Boolean includeSensitiveFields) { return this; } + /** + *

                    Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

                    + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; diff --git a/src/main/java/com/merge/api/hris/types/Earning.java b/src/main/java/com/merge/api/hris/types/Earning.java index 80315dd01..4fc0d2914 100644 --- a/src/main/java/com/merge/api/hris/types/Earning.java +++ b/src/main/java/com/merge/api/hris/types/Earning.java @@ -244,6 +244,9 @@ public Builder id(String id) { return this; } + /** + *

                    The third-party API ID of the matching object.

                    + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; @@ -255,6 +258,9 @@ public Builder remoteId(String remoteId) { return this; } + /** + *

                    The datetime that this object was created by Merge.

                    + */ @JsonSetter(value = "created_at", nulls = Nulls.SKIP) public Builder createdAt(Optional createdAt) { this.createdAt = createdAt; @@ -266,6 +272,9 @@ public Builder createdAt(OffsetDateTime createdAt) { return this; } + /** + *

                    The datetime that this object was modified by Merge.

                    + */ @JsonSetter(value = "modified_at", nulls = Nulls.SKIP) public Builder modifiedAt(Optional modifiedAt) { this.modifiedAt = modifiedAt; @@ -288,6 +297,9 @@ public Builder employeePayrollRun(String employeePayrollRun) { return this; } + /** + *

                    The amount earned.

                    + */ @JsonSetter(value = "amount", nulls = Nulls.SKIP) public Builder amount(Optional amount) { this.amount = amount; @@ -299,6 +311,15 @@ public Builder amount(Double amount) { return this; } + /** + *

                    The type of earning.

                    + *
                      + *
                    • SALARY - SALARY
                    • + *
                    • REIMBURSEMENT - REIMBURSEMENT
                    • + *
                    • OVERTIME - OVERTIME
                    • + *
                    • BONUS - BONUS
                    • + *
                    + */ @JsonSetter(value = "type", nulls = Nulls.SKIP) public Builder type(Optional type) { this.type = type; @@ -310,6 +331,9 @@ public Builder type(EarningTypeEnum type) { return this; } + /** + *

                    Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

                    + */ @JsonSetter(value = "remote_was_deleted", nulls = Nulls.SKIP) public Builder remoteWasDeleted(Optional remoteWasDeleted) { this.remoteWasDeleted = remoteWasDeleted; diff --git a/src/main/java/com/merge/api/hris/types/Employee.java b/src/main/java/com/merge/api/hris/types/Employee.java index e6705a5a8..38e4e8b44 100644 --- a/src/main/java/com/merge/api/hris/types/Employee.java +++ b/src/main/java/com/merge/api/hris/types/Employee.java @@ -709,6 +709,9 @@ public Builder id(String id) { return this; } + /** + *

                    The third-party API ID of the matching object.

                    + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; @@ -720,6 +723,9 @@ public Builder remoteId(String remoteId) { return this; } + /** + *

                    The datetime that this object was created by Merge.

                    + */ @JsonSetter(value = "created_at", nulls = Nulls.SKIP) public Builder createdAt(Optional createdAt) { this.createdAt = createdAt; @@ -731,6 +737,9 @@ public Builder createdAt(OffsetDateTime createdAt) { return this; } + /** + *

                    The datetime that this object was modified by Merge.

                    + */ @JsonSetter(value = "modified_at", nulls = Nulls.SKIP) public Builder modifiedAt(Optional modifiedAt) { this.modifiedAt = modifiedAt; @@ -742,6 +751,9 @@ public Builder modifiedAt(OffsetDateTime modifiedAt) { return this; } + /** + *

                    The employee's number that appears in the third-party integration's UI.

                    + */ @JsonSetter(value = "employee_number", nulls = Nulls.SKIP) public Builder employeeNumber(Optional employeeNumber) { this.employeeNumber = employeeNumber; @@ -753,6 +765,9 @@ public Builder employeeNumber(String employeeNumber) { return this; } + /** + *

                    The ID of the employee's company.

                    + */ @JsonSetter(value = "company", nulls = Nulls.SKIP) public Builder company(Optional company) { this.company = company; @@ -764,6 +779,9 @@ public Builder company(EmployeeCompany company) { return this; } + /** + *

                    The employee's first name.

                    + */ @JsonSetter(value = "first_name", nulls = Nulls.SKIP) public Builder firstName(Optional firstName) { this.firstName = firstName; @@ -775,6 +793,9 @@ public Builder firstName(String firstName) { return this; } + /** + *

                    The employee's last name.

                    + */ @JsonSetter(value = "last_name", nulls = Nulls.SKIP) public Builder lastName(Optional lastName) { this.lastName = lastName; @@ -786,6 +807,9 @@ public Builder lastName(String lastName) { return this; } + /** + *

                    The employee's preferred first name.

                    + */ @JsonSetter(value = "preferred_name", nulls = Nulls.SKIP) public Builder preferredName(Optional preferredName) { this.preferredName = preferredName; @@ -797,6 +821,9 @@ public Builder preferredName(String preferredName) { return this; } + /** + *

                    The employee's full name, to use for display purposes. If a preferred first name is available, the full name will include the preferred first name.

                    + */ @JsonSetter(value = "display_full_name", nulls = Nulls.SKIP) public Builder displayFullName(Optional displayFullName) { this.displayFullName = displayFullName; @@ -808,6 +835,9 @@ public Builder displayFullName(String displayFullName) { return this; } + /** + *

                    The employee's username that appears in the remote UI.

                    + */ @JsonSetter(value = "username", nulls = Nulls.SKIP) public Builder username(Optional username) { this.username = username; @@ -830,6 +860,9 @@ public Builder groups(List> groups) { return this; } + /** + *

                    The employee's work email.

                    + */ @JsonSetter(value = "work_email", nulls = Nulls.SKIP) public Builder workEmail(Optional workEmail) { this.workEmail = workEmail; @@ -841,6 +874,9 @@ public Builder workEmail(String workEmail) { return this; } + /** + *

                    The employee's personal email.

                    + */ @JsonSetter(value = "personal_email", nulls = Nulls.SKIP) public Builder personalEmail(Optional personalEmail) { this.personalEmail = personalEmail; @@ -852,6 +888,9 @@ public Builder personalEmail(String personalEmail) { return this; } + /** + *

                    The employee's mobile phone number.

                    + */ @JsonSetter(value = "mobile_phone_number", nulls = Nulls.SKIP) public Builder mobilePhoneNumber(Optional mobilePhoneNumber) { this.mobilePhoneNumber = mobilePhoneNumber; @@ -863,6 +902,9 @@ public Builder mobilePhoneNumber(String mobilePhoneNumber) { return this; } + /** + *

                    Array of Employment IDs for this Employee.

                    + */ @JsonSetter(value = "employments", nulls = Nulls.SKIP) public Builder employments(Optional>> employments) { this.employments = employments; @@ -874,6 +916,9 @@ public Builder employments(List> employments) return this; } + /** + *

                    The employee's home address.

                    + */ @JsonSetter(value = "home_location", nulls = Nulls.SKIP) public Builder homeLocation(Optional homeLocation) { this.homeLocation = homeLocation; @@ -885,6 +930,9 @@ public Builder homeLocation(EmployeeHomeLocation homeLocation) { return this; } + /** + *

                    The employee's work address.

                    + */ @JsonSetter(value = "work_location", nulls = Nulls.SKIP) public Builder workLocation(Optional workLocation) { this.workLocation = workLocation; @@ -896,6 +944,9 @@ public Builder workLocation(EmployeeWorkLocation workLocation) { return this; } + /** + *

                    The employee ID of the employee's manager.

                    + */ @JsonSetter(value = "manager", nulls = Nulls.SKIP) public Builder manager(Optional manager) { this.manager = manager; @@ -907,6 +958,9 @@ public Builder manager(EmployeeManager manager) { return this; } + /** + *

                    The employee's team.

                    + */ @JsonSetter(value = "team", nulls = Nulls.SKIP) public Builder team(Optional team) { this.team = team; @@ -918,6 +972,9 @@ public Builder team(EmployeeTeam team) { return this; } + /** + *

                    The employee's pay group

                    + */ @JsonSetter(value = "pay_group", nulls = Nulls.SKIP) public Builder payGroup(Optional payGroup) { this.payGroup = payGroup; @@ -929,6 +986,9 @@ public Builder payGroup(EmployeePayGroup payGroup) { return this; } + /** + *

                    The employee's social security number.

                    + */ @JsonSetter(value = "ssn", nulls = Nulls.SKIP) public Builder ssn(Optional ssn) { this.ssn = ssn; @@ -940,6 +1000,16 @@ public Builder ssn(String ssn) { return this; } + /** + *

                    The employee's gender.

                    + *
                      + *
                    • MALE - MALE
                    • + *
                    • FEMALE - FEMALE
                    • + *
                    • NON-BINARY - NON-BINARY
                    • + *
                    • OTHER - OTHER
                    • + *
                    • PREFER_NOT_TO_DISCLOSE - PREFER_NOT_TO_DISCLOSE
                    • + *
                    + */ @JsonSetter(value = "gender", nulls = Nulls.SKIP) public Builder gender(Optional gender) { this.gender = gender; @@ -951,6 +1021,19 @@ public Builder gender(GenderEnum gender) { return this; } + /** + *

                    The employee's ethnicity.

                    + *
                      + *
                    • AMERICAN_INDIAN_OR_ALASKA_NATIVE - AMERICAN_INDIAN_OR_ALASKA_NATIVE
                    • + *
                    • ASIAN_OR_INDIAN_SUBCONTINENT - ASIAN_OR_INDIAN_SUBCONTINENT
                    • + *
                    • BLACK_OR_AFRICAN_AMERICAN - BLACK_OR_AFRICAN_AMERICAN
                    • + *
                    • HISPANIC_OR_LATINO - HISPANIC_OR_LATINO
                    • + *
                    • NATIVE_HAWAIIAN_OR_OTHER_PACIFIC_ISLANDER - NATIVE_HAWAIIAN_OR_OTHER_PACIFIC_ISLANDER
                    • + *
                    • TWO_OR_MORE_RACES - TWO_OR_MORE_RACES
                    • + *
                    • WHITE - WHITE
                    • + *
                    • PREFER_NOT_TO_DISCLOSE - PREFER_NOT_TO_DISCLOSE
                    • + *
                    + */ @JsonSetter(value = "ethnicity", nulls = Nulls.SKIP) public Builder ethnicity(Optional ethnicity) { this.ethnicity = ethnicity; @@ -962,6 +1045,16 @@ public Builder ethnicity(EthnicityEnum ethnicity) { return this; } + /** + *

                    The employee's filing status as related to marital status.

                    + *
                      + *
                    • SINGLE - SINGLE
                    • + *
                    • MARRIED_FILING_JOINTLY - MARRIED_FILING_JOINTLY
                    • + *
                    • MARRIED_FILING_SEPARATELY - MARRIED_FILING_SEPARATELY
                    • + *
                    • HEAD_OF_HOUSEHOLD - HEAD_OF_HOUSEHOLD
                    • + *
                    • QUALIFYING_WIDOW_OR_WIDOWER_WITH_DEPENDENT_CHILD - QUALIFYING_WIDOW_OR_WIDOWER_WITH_DEPENDENT_CHILD
                    • + *
                    + */ @JsonSetter(value = "marital_status", nulls = Nulls.SKIP) public Builder maritalStatus(Optional maritalStatus) { this.maritalStatus = maritalStatus; @@ -973,6 +1066,9 @@ public Builder maritalStatus(MaritalStatusEnum maritalStatus) { return this; } + /** + *

                    The employee's date of birth.

                    + */ @JsonSetter(value = "date_of_birth", nulls = Nulls.SKIP) public Builder dateOfBirth(Optional dateOfBirth) { this.dateOfBirth = dateOfBirth; @@ -984,6 +1080,9 @@ public Builder dateOfBirth(OffsetDateTime dateOfBirth) { return this; } + /** + *

                    The date that the employee was hired, usually the day that an offer letter is signed. If an employee has multiple hire dates from previous employments, this represents the most recent hire date. Note: If you're looking for the employee's start date, refer to the start_date field.

                    + */ @JsonSetter(value = "hire_date", nulls = Nulls.SKIP) public Builder hireDate(Optional hireDate) { this.hireDate = hireDate; @@ -995,6 +1094,9 @@ public Builder hireDate(OffsetDateTime hireDate) { return this; } + /** + *

                    The date that the employee started working. If an employee was rehired, the most recent start date will be returned.

                    + */ @JsonSetter(value = "start_date", nulls = Nulls.SKIP) public Builder startDate(Optional startDate) { this.startDate = startDate; @@ -1006,6 +1108,9 @@ public Builder startDate(OffsetDateTime startDate) { return this; } + /** + *

                    When the third party's employee was created.

                    + */ @JsonSetter(value = "remote_created_at", nulls = Nulls.SKIP) public Builder remoteCreatedAt(Optional remoteCreatedAt) { this.remoteCreatedAt = remoteCreatedAt; @@ -1017,6 +1122,14 @@ public Builder remoteCreatedAt(OffsetDateTime remoteCreatedAt) { return this; } + /** + *

                    The employment status of the employee.

                    + *
                      + *
                    • ACTIVE - ACTIVE
                    • + *
                    • PENDING - PENDING
                    • + *
                    • INACTIVE - INACTIVE
                    • + *
                    + */ @JsonSetter(value = "employment_status", nulls = Nulls.SKIP) public Builder employmentStatus(Optional employmentStatus) { this.employmentStatus = employmentStatus; @@ -1028,6 +1141,9 @@ public Builder employmentStatus(EmploymentStatusEnum employmentStatus) { return this; } + /** + *

                    The employee's termination date.

                    + */ @JsonSetter(value = "termination_date", nulls = Nulls.SKIP) public Builder terminationDate(Optional terminationDate) { this.terminationDate = terminationDate; @@ -1039,6 +1155,9 @@ public Builder terminationDate(OffsetDateTime terminationDate) { return this; } + /** + *

                    The URL of the employee's avatar image.

                    + */ @JsonSetter(value = "avatar", nulls = Nulls.SKIP) public Builder avatar(Optional avatar) { this.avatar = avatar; @@ -1050,6 +1169,9 @@ public Builder avatar(String avatar) { return this; } + /** + *

                    Custom fields configured for a given model.

                    + */ @JsonSetter(value = "custom_fields", nulls = Nulls.SKIP) public Builder customFields(Optional> customFields) { this.customFields = customFields; @@ -1061,6 +1183,9 @@ public Builder customFields(Map customFields) { return this; } + /** + *

                    Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

                    + */ @JsonSetter(value = "remote_was_deleted", nulls = Nulls.SKIP) public Builder remoteWasDeleted(Optional remoteWasDeleted) { this.remoteWasDeleted = remoteWasDeleted; diff --git a/src/main/java/com/merge/api/hris/types/EmployeeEndpointRequest.java b/src/main/java/com/merge/api/hris/types/EmployeeEndpointRequest.java index cba7f123d..e561a9956 100644 --- a/src/main/java/com/merge/api/hris/types/EmployeeEndpointRequest.java +++ b/src/main/java/com/merge/api/hris/types/EmployeeEndpointRequest.java @@ -99,10 +99,16 @@ public interface ModelStage { public interface _FinalStage { EmployeeEndpointRequest build(); + /** + *

                    Whether to include debug fields (such as log file links) in the response.

                    + */ _FinalStage isDebugMode(Optional isDebugMode); _FinalStage isDebugMode(Boolean isDebugMode); + /** + *

                    Whether or not third-party updates should be run asynchronously.

                    + */ _FinalStage runAsync(Optional runAsync); _FinalStage runAsync(Boolean runAsync); @@ -146,6 +152,9 @@ public _FinalStage runAsync(Boolean runAsync) { return this; } + /** + *

                    Whether or not third-party updates should be run asynchronously.

                    + */ @java.lang.Override @JsonSetter(value = "run_async", nulls = Nulls.SKIP) public _FinalStage runAsync(Optional runAsync) { @@ -163,6 +172,9 @@ public _FinalStage isDebugMode(Boolean isDebugMode) { return this; } + /** + *

                    Whether to include debug fields (such as log file links) in the response.

                    + */ @java.lang.Override @JsonSetter(value = "is_debug_mode", nulls = Nulls.SKIP) public _FinalStage isDebugMode(Optional isDebugMode) { diff --git a/src/main/java/com/merge/api/hris/types/EmployeePayrollRun.java b/src/main/java/com/merge/api/hris/types/EmployeePayrollRun.java index 287d67f5b..f6b30ed06 100644 --- a/src/main/java/com/merge/api/hris/types/EmployeePayrollRun.java +++ b/src/main/java/com/merge/api/hris/types/EmployeePayrollRun.java @@ -351,6 +351,9 @@ public Builder id(String id) { return this; } + /** + *

                    The third-party API ID of the matching object.

                    + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; @@ -362,6 +365,9 @@ public Builder remoteId(String remoteId) { return this; } + /** + *

                    The datetime that this object was created by Merge.

                    + */ @JsonSetter(value = "created_at", nulls = Nulls.SKIP) public Builder createdAt(Optional createdAt) { this.createdAt = createdAt; @@ -373,6 +379,9 @@ public Builder createdAt(OffsetDateTime createdAt) { return this; } + /** + *

                    The datetime that this object was modified by Merge.

                    + */ @JsonSetter(value = "modified_at", nulls = Nulls.SKIP) public Builder modifiedAt(Optional modifiedAt) { this.modifiedAt = modifiedAt; @@ -384,6 +393,9 @@ public Builder modifiedAt(OffsetDateTime modifiedAt) { return this; } + /** + *

                    The employee whose payroll is being run.

                    + */ @JsonSetter(value = "employee", nulls = Nulls.SKIP) public Builder employee(Optional employee) { this.employee = employee; @@ -395,6 +407,9 @@ public Builder employee(EmployeePayrollRunEmployee employee) { return this; } + /** + *

                    The payroll being run.

                    + */ @JsonSetter(value = "payroll_run", nulls = Nulls.SKIP) public Builder payrollRun(Optional payrollRun) { this.payrollRun = payrollRun; @@ -406,6 +421,9 @@ public Builder payrollRun(EmployeePayrollRunPayrollRun payrollRun) { return this; } + /** + *

                    The total earnings throughout a given period for an employee before any deductions are made.

                    + */ @JsonSetter(value = "gross_pay", nulls = Nulls.SKIP) public Builder grossPay(Optional grossPay) { this.grossPay = grossPay; @@ -417,6 +435,9 @@ public Builder grossPay(Double grossPay) { return this; } + /** + *

                    The take-home pay throughout a given period for an employee after deductions are made.

                    + */ @JsonSetter(value = "net_pay", nulls = Nulls.SKIP) public Builder netPay(Optional netPay) { this.netPay = netPay; @@ -428,6 +449,9 @@ public Builder netPay(Double netPay) { return this; } + /** + *

                    The day and time the payroll run started.

                    + */ @JsonSetter(value = "start_date", nulls = Nulls.SKIP) public Builder startDate(Optional startDate) { this.startDate = startDate; @@ -439,6 +463,9 @@ public Builder startDate(OffsetDateTime startDate) { return this; } + /** + *

                    The day and time the payroll run ended.

                    + */ @JsonSetter(value = "end_date", nulls = Nulls.SKIP) public Builder endDate(Optional endDate) { this.endDate = endDate; @@ -450,6 +477,9 @@ public Builder endDate(OffsetDateTime endDate) { return this; } + /** + *

                    The day and time the payroll run was checked.

                    + */ @JsonSetter(value = "check_date", nulls = Nulls.SKIP) public Builder checkDate(Optional checkDate) { this.checkDate = checkDate; @@ -494,6 +524,9 @@ public Builder taxes(List taxes) { return this; } + /** + *

                    Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

                    + */ @JsonSetter(value = "remote_was_deleted", nulls = Nulls.SKIP) public Builder remoteWasDeleted(Optional remoteWasDeleted) { this.remoteWasDeleted = remoteWasDeleted; diff --git a/src/main/java/com/merge/api/hris/types/EmployeePayrollRunsListRequest.java b/src/main/java/com/merge/api/hris/types/EmployeePayrollRunsListRequest.java index 767be2048..b7c456291 100644 --- a/src/main/java/com/merge/api/hris/types/EmployeePayrollRunsListRequest.java +++ b/src/main/java/com/merge/api/hris/types/EmployeePayrollRunsListRequest.java @@ -358,6 +358,9 @@ public Builder from(EmployeePayrollRunsListRequest other) { return this; } + /** + *

                    Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.

                    + */ @JsonSetter(value = "expand", nulls = Nulls.SKIP) public Builder expand(Optional> expand) { this.expand = expand; @@ -374,6 +377,9 @@ public Builder expand(EmployeePayrollRunsListRequestExpandItem expand) { return this; } + /** + *

                    If provided, will only return objects created after this datetime.

                    + */ @JsonSetter(value = "created_after", nulls = Nulls.SKIP) public Builder createdAfter(Optional createdAfter) { this.createdAfter = createdAfter; @@ -385,6 +391,9 @@ public Builder createdAfter(OffsetDateTime createdAfter) { return this; } + /** + *

                    If provided, will only return objects created before this datetime.

                    + */ @JsonSetter(value = "created_before", nulls = Nulls.SKIP) public Builder createdBefore(Optional createdBefore) { this.createdBefore = createdBefore; @@ -396,6 +405,9 @@ public Builder createdBefore(OffsetDateTime createdBefore) { return this; } + /** + *

                    The pagination cursor value.

                    + */ @JsonSetter(value = "cursor", nulls = Nulls.SKIP) public Builder cursor(Optional cursor) { this.cursor = cursor; @@ -407,6 +419,9 @@ public Builder cursor(String cursor) { return this; } + /** + *

                    If provided, will only return employee payroll runs for this employee.

                    + */ @JsonSetter(value = "employee_id", nulls = Nulls.SKIP) public Builder employeeId(Optional employeeId) { this.employeeId = employeeId; @@ -418,6 +433,9 @@ public Builder employeeId(String employeeId) { return this; } + /** + *

                    If provided, will only return employee payroll runs ended after this datetime.

                    + */ @JsonSetter(value = "ended_after", nulls = Nulls.SKIP) public Builder endedAfter(Optional endedAfter) { this.endedAfter = endedAfter; @@ -429,6 +447,9 @@ public Builder endedAfter(OffsetDateTime endedAfter) { return this; } + /** + *

                    If provided, will only return employee payroll runs ended before this datetime.

                    + */ @JsonSetter(value = "ended_before", nulls = Nulls.SKIP) public Builder endedBefore(Optional endedBefore) { this.endedBefore = endedBefore; @@ -440,6 +461,9 @@ public Builder endedBefore(OffsetDateTime endedBefore) { return this; } + /** + *

                    Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

                    + */ @JsonSetter(value = "include_deleted_data", nulls = Nulls.SKIP) public Builder includeDeletedData(Optional includeDeletedData) { this.includeDeletedData = includeDeletedData; @@ -451,6 +475,9 @@ public Builder includeDeletedData(Boolean includeDeletedData) { return this; } + /** + *

                    Whether to include the original data Merge fetched from the third-party to produce these models.

                    + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -462,6 +489,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

                    Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

                    + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; @@ -473,6 +503,9 @@ public Builder includeShellData(Boolean includeShellData) { return this; } + /** + *

                    If provided, only objects synced by Merge after this date time will be returned.

                    + */ @JsonSetter(value = "modified_after", nulls = Nulls.SKIP) public Builder modifiedAfter(Optional modifiedAfter) { this.modifiedAfter = modifiedAfter; @@ -484,6 +517,9 @@ public Builder modifiedAfter(OffsetDateTime modifiedAfter) { return this; } + /** + *

                    If provided, only objects synced by Merge before this date time will be returned.

                    + */ @JsonSetter(value = "modified_before", nulls = Nulls.SKIP) public Builder modifiedBefore(Optional modifiedBefore) { this.modifiedBefore = modifiedBefore; @@ -495,6 +531,9 @@ public Builder modifiedBefore(OffsetDateTime modifiedBefore) { return this; } + /** + *

                    Number of results to return per page.

                    + */ @JsonSetter(value = "page_size", nulls = Nulls.SKIP) public Builder pageSize(Optional pageSize) { this.pageSize = pageSize; @@ -506,6 +545,9 @@ public Builder pageSize(Integer pageSize) { return this; } + /** + *

                    If provided, will only return employee payroll runs for this employee.

                    + */ @JsonSetter(value = "payroll_run_id", nulls = Nulls.SKIP) public Builder payrollRunId(Optional payrollRunId) { this.payrollRunId = payrollRunId; @@ -517,6 +559,9 @@ public Builder payrollRunId(String payrollRunId) { return this; } + /** + *

                    The API provider's ID for the given object.

                    + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; @@ -528,6 +573,9 @@ public Builder remoteId(String remoteId) { return this; } + /** + *

                    If provided, will only return employee payroll runs started after this datetime.

                    + */ @JsonSetter(value = "started_after", nulls = Nulls.SKIP) public Builder startedAfter(Optional startedAfter) { this.startedAfter = startedAfter; @@ -539,6 +587,9 @@ public Builder startedAfter(OffsetDateTime startedAfter) { return this; } + /** + *

                    If provided, will only return employee payroll runs started before this datetime.

                    + */ @JsonSetter(value = "started_before", nulls = Nulls.SKIP) public Builder startedBefore(Optional startedBefore) { this.startedBefore = startedBefore; diff --git a/src/main/java/com/merge/api/hris/types/EmployeePayrollRunsRetrieveRequest.java b/src/main/java/com/merge/api/hris/types/EmployeePayrollRunsRetrieveRequest.java index 464a4bbb2..f8d203f41 100644 --- a/src/main/java/com/merge/api/hris/types/EmployeePayrollRunsRetrieveRequest.java +++ b/src/main/java/com/merge/api/hris/types/EmployeePayrollRunsRetrieveRequest.java @@ -117,6 +117,9 @@ public Builder from(EmployeePayrollRunsRetrieveRequest other) { return this; } + /** + *

                    Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.

                    + */ @JsonSetter(value = "expand", nulls = Nulls.SKIP) public Builder expand(Optional> expand) { this.expand = expand; @@ -133,6 +136,9 @@ public Builder expand(EmployeePayrollRunsRetrieveRequestExpandItem expand) { return this; } + /** + *

                    Whether to include the original data Merge fetched from the third-party to produce these models.

                    + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -144,6 +150,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

                    Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

                    + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; diff --git a/src/main/java/com/merge/api/hris/types/EmployeeRequest.java b/src/main/java/com/merge/api/hris/types/EmployeeRequest.java index 9ed03f463..9fba775bf 100644 --- a/src/main/java/com/merge/api/hris/types/EmployeeRequest.java +++ b/src/main/java/com/merge/api/hris/types/EmployeeRequest.java @@ -582,6 +582,9 @@ public Builder from(EmployeeRequest other) { return this; } + /** + *

                    The employee's number that appears in the third-party integration's UI.

                    + */ @JsonSetter(value = "employee_number", nulls = Nulls.SKIP) public Builder employeeNumber(Optional employeeNumber) { this.employeeNumber = employeeNumber; @@ -593,6 +596,9 @@ public Builder employeeNumber(String employeeNumber) { return this; } + /** + *

                    The ID of the employee's company.

                    + */ @JsonSetter(value = "company", nulls = Nulls.SKIP) public Builder company(Optional company) { this.company = company; @@ -604,6 +610,9 @@ public Builder company(EmployeeRequestCompany company) { return this; } + /** + *

                    The employee's first name.

                    + */ @JsonSetter(value = "first_name", nulls = Nulls.SKIP) public Builder firstName(Optional firstName) { this.firstName = firstName; @@ -615,6 +624,9 @@ public Builder firstName(String firstName) { return this; } + /** + *

                    The employee's last name.

                    + */ @JsonSetter(value = "last_name", nulls = Nulls.SKIP) public Builder lastName(Optional lastName) { this.lastName = lastName; @@ -626,6 +638,9 @@ public Builder lastName(String lastName) { return this; } + /** + *

                    The employee's preferred first name.

                    + */ @JsonSetter(value = "preferred_name", nulls = Nulls.SKIP) public Builder preferredName(Optional preferredName) { this.preferredName = preferredName; @@ -637,6 +652,9 @@ public Builder preferredName(String preferredName) { return this; } + /** + *

                    The employee's full name, to use for display purposes. If a preferred first name is available, the full name will include the preferred first name.

                    + */ @JsonSetter(value = "display_full_name", nulls = Nulls.SKIP) public Builder displayFullName(Optional displayFullName) { this.displayFullName = displayFullName; @@ -648,6 +666,9 @@ public Builder displayFullName(String displayFullName) { return this; } + /** + *

                    The employee's username that appears in the remote UI.

                    + */ @JsonSetter(value = "username", nulls = Nulls.SKIP) public Builder username(Optional username) { this.username = username; @@ -670,6 +691,9 @@ public Builder groups(List> groups) { return this; } + /** + *

                    The employee's work email.

                    + */ @JsonSetter(value = "work_email", nulls = Nulls.SKIP) public Builder workEmail(Optional workEmail) { this.workEmail = workEmail; @@ -681,6 +705,9 @@ public Builder workEmail(String workEmail) { return this; } + /** + *

                    The employee's personal email.

                    + */ @JsonSetter(value = "personal_email", nulls = Nulls.SKIP) public Builder personalEmail(Optional personalEmail) { this.personalEmail = personalEmail; @@ -692,6 +719,9 @@ public Builder personalEmail(String personalEmail) { return this; } + /** + *

                    The employee's mobile phone number.

                    + */ @JsonSetter(value = "mobile_phone_number", nulls = Nulls.SKIP) public Builder mobilePhoneNumber(Optional mobilePhoneNumber) { this.mobilePhoneNumber = mobilePhoneNumber; @@ -703,6 +733,9 @@ public Builder mobilePhoneNumber(String mobilePhoneNumber) { return this; } + /** + *

                    Array of Employment IDs for this Employee.

                    + */ @JsonSetter(value = "employments", nulls = Nulls.SKIP) public Builder employments(Optional>> employments) { this.employments = employments; @@ -714,6 +747,9 @@ public Builder employments(List> employ return this; } + /** + *

                    The employee's home address.

                    + */ @JsonSetter(value = "home_location", nulls = Nulls.SKIP) public Builder homeLocation(Optional homeLocation) { this.homeLocation = homeLocation; @@ -725,6 +761,9 @@ public Builder homeLocation(EmployeeRequestHomeLocation homeLocation) { return this; } + /** + *

                    The employee's work address.

                    + */ @JsonSetter(value = "work_location", nulls = Nulls.SKIP) public Builder workLocation(Optional workLocation) { this.workLocation = workLocation; @@ -736,6 +775,9 @@ public Builder workLocation(EmployeeRequestWorkLocation workLocation) { return this; } + /** + *

                    The employee ID of the employee's manager.

                    + */ @JsonSetter(value = "manager", nulls = Nulls.SKIP) public Builder manager(Optional manager) { this.manager = manager; @@ -747,6 +789,9 @@ public Builder manager(EmployeeRequestManager manager) { return this; } + /** + *

                    The employee's team.

                    + */ @JsonSetter(value = "team", nulls = Nulls.SKIP) public Builder team(Optional team) { this.team = team; @@ -758,6 +803,9 @@ public Builder team(EmployeeRequestTeam team) { return this; } + /** + *

                    The employee's pay group

                    + */ @JsonSetter(value = "pay_group", nulls = Nulls.SKIP) public Builder payGroup(Optional payGroup) { this.payGroup = payGroup; @@ -769,6 +817,9 @@ public Builder payGroup(EmployeeRequestPayGroup payGroup) { return this; } + /** + *

                    The employee's social security number.

                    + */ @JsonSetter(value = "ssn", nulls = Nulls.SKIP) public Builder ssn(Optional ssn) { this.ssn = ssn; @@ -780,6 +831,16 @@ public Builder ssn(String ssn) { return this; } + /** + *

                    The employee's gender.

                    + *
                      + *
                    • MALE - MALE
                    • + *
                    • FEMALE - FEMALE
                    • + *
                    • NON-BINARY - NON-BINARY
                    • + *
                    • OTHER - OTHER
                    • + *
                    • PREFER_NOT_TO_DISCLOSE - PREFER_NOT_TO_DISCLOSE
                    • + *
                    + */ @JsonSetter(value = "gender", nulls = Nulls.SKIP) public Builder gender(Optional gender) { this.gender = gender; @@ -791,6 +852,19 @@ public Builder gender(GenderEnum gender) { return this; } + /** + *

                    The employee's ethnicity.

                    + *
                      + *
                    • AMERICAN_INDIAN_OR_ALASKA_NATIVE - AMERICAN_INDIAN_OR_ALASKA_NATIVE
                    • + *
                    • ASIAN_OR_INDIAN_SUBCONTINENT - ASIAN_OR_INDIAN_SUBCONTINENT
                    • + *
                    • BLACK_OR_AFRICAN_AMERICAN - BLACK_OR_AFRICAN_AMERICAN
                    • + *
                    • HISPANIC_OR_LATINO - HISPANIC_OR_LATINO
                    • + *
                    • NATIVE_HAWAIIAN_OR_OTHER_PACIFIC_ISLANDER - NATIVE_HAWAIIAN_OR_OTHER_PACIFIC_ISLANDER
                    • + *
                    • TWO_OR_MORE_RACES - TWO_OR_MORE_RACES
                    • + *
                    • WHITE - WHITE
                    • + *
                    • PREFER_NOT_TO_DISCLOSE - PREFER_NOT_TO_DISCLOSE
                    • + *
                    + */ @JsonSetter(value = "ethnicity", nulls = Nulls.SKIP) public Builder ethnicity(Optional ethnicity) { this.ethnicity = ethnicity; @@ -802,6 +876,16 @@ public Builder ethnicity(EthnicityEnum ethnicity) { return this; } + /** + *

                    The employee's filing status as related to marital status.

                    + *
                      + *
                    • SINGLE - SINGLE
                    • + *
                    • MARRIED_FILING_JOINTLY - MARRIED_FILING_JOINTLY
                    • + *
                    • MARRIED_FILING_SEPARATELY - MARRIED_FILING_SEPARATELY
                    • + *
                    • HEAD_OF_HOUSEHOLD - HEAD_OF_HOUSEHOLD
                    • + *
                    • QUALIFYING_WIDOW_OR_WIDOWER_WITH_DEPENDENT_CHILD - QUALIFYING_WIDOW_OR_WIDOWER_WITH_DEPENDENT_CHILD
                    • + *
                    + */ @JsonSetter(value = "marital_status", nulls = Nulls.SKIP) public Builder maritalStatus(Optional maritalStatus) { this.maritalStatus = maritalStatus; @@ -813,6 +897,9 @@ public Builder maritalStatus(MaritalStatusEnum maritalStatus) { return this; } + /** + *

                    The employee's date of birth.

                    + */ @JsonSetter(value = "date_of_birth", nulls = Nulls.SKIP) public Builder dateOfBirth(Optional dateOfBirth) { this.dateOfBirth = dateOfBirth; @@ -824,6 +911,9 @@ public Builder dateOfBirth(OffsetDateTime dateOfBirth) { return this; } + /** + *

                    The date that the employee was hired, usually the day that an offer letter is signed. If an employee has multiple hire dates from previous employments, this represents the most recent hire date. Note: If you're looking for the employee's start date, refer to the start_date field.

                    + */ @JsonSetter(value = "hire_date", nulls = Nulls.SKIP) public Builder hireDate(Optional hireDate) { this.hireDate = hireDate; @@ -835,6 +925,9 @@ public Builder hireDate(OffsetDateTime hireDate) { return this; } + /** + *

                    The date that the employee started working. If an employee was rehired, the most recent start date will be returned.

                    + */ @JsonSetter(value = "start_date", nulls = Nulls.SKIP) public Builder startDate(Optional startDate) { this.startDate = startDate; @@ -846,6 +939,14 @@ public Builder startDate(OffsetDateTime startDate) { return this; } + /** + *

                    The employment status of the employee.

                    + *
                      + *
                    • ACTIVE - ACTIVE
                    • + *
                    • PENDING - PENDING
                    • + *
                    • INACTIVE - INACTIVE
                    • + *
                    + */ @JsonSetter(value = "employment_status", nulls = Nulls.SKIP) public Builder employmentStatus(Optional employmentStatus) { this.employmentStatus = employmentStatus; @@ -857,6 +958,9 @@ public Builder employmentStatus(EmploymentStatusEnum employmentStatus) { return this; } + /** + *

                    The employee's termination date.

                    + */ @JsonSetter(value = "termination_date", nulls = Nulls.SKIP) public Builder terminationDate(Optional terminationDate) { this.terminationDate = terminationDate; @@ -868,6 +972,9 @@ public Builder terminationDate(OffsetDateTime terminationDate) { return this; } + /** + *

                    The URL of the employee's avatar image.

                    + */ @JsonSetter(value = "avatar", nulls = Nulls.SKIP) public Builder avatar(Optional avatar) { this.avatar = avatar; diff --git a/src/main/java/com/merge/api/hris/types/EmployeesListRequest.java b/src/main/java/com/merge/api/hris/types/EmployeesListRequest.java index caefbd900..5953d1bf5 100644 --- a/src/main/java/com/merge/api/hris/types/EmployeesListRequest.java +++ b/src/main/java/com/merge/api/hris/types/EmployeesListRequest.java @@ -635,6 +635,9 @@ public Builder from(EmployeesListRequest other) { return this; } + /** + *

                    Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.

                    + */ @JsonSetter(value = "expand", nulls = Nulls.SKIP) public Builder expand(Optional> expand) { this.expand = expand; @@ -651,6 +654,9 @@ public Builder expand(EmployeesListRequestExpandItem expand) { return this; } + /** + *

                    If provided, will only return employees for this company.

                    + */ @JsonSetter(value = "company_id", nulls = Nulls.SKIP) public Builder companyId(Optional companyId) { this.companyId = companyId; @@ -662,6 +668,9 @@ public Builder companyId(String companyId) { return this; } + /** + *

                    If provided, will only return objects created after this datetime.

                    + */ @JsonSetter(value = "created_after", nulls = Nulls.SKIP) public Builder createdAfter(Optional createdAfter) { this.createdAfter = createdAfter; @@ -673,6 +682,9 @@ public Builder createdAfter(OffsetDateTime createdAfter) { return this; } + /** + *

                    If provided, will only return objects created before this datetime.

                    + */ @JsonSetter(value = "created_before", nulls = Nulls.SKIP) public Builder createdBefore(Optional createdBefore) { this.createdBefore = createdBefore; @@ -684,6 +696,9 @@ public Builder createdBefore(OffsetDateTime createdBefore) { return this; } + /** + *

                    The pagination cursor value.

                    + */ @JsonSetter(value = "cursor", nulls = Nulls.SKIP) public Builder cursor(Optional cursor) { this.cursor = cursor; @@ -695,6 +710,9 @@ public Builder cursor(String cursor) { return this; } + /** + *

                    If provided, will only return employees with this display name.

                    + */ @JsonSetter(value = "display_full_name", nulls = Nulls.SKIP) public Builder displayFullName(Optional displayFullName) { this.displayFullName = displayFullName; @@ -706,6 +724,14 @@ public Builder displayFullName(String displayFullName) { return this; } + /** + *

                    If provided, will only return employees with this employment status.

                    + *
                      + *
                    • ACTIVE - ACTIVE
                    • + *
                    • PENDING - PENDING
                    • + *
                    • INACTIVE - INACTIVE
                    • + *
                    + */ @JsonSetter(value = "employment_status", nulls = Nulls.SKIP) public Builder employmentStatus(Optional employmentStatus) { this.employmentStatus = employmentStatus; @@ -717,6 +743,9 @@ public Builder employmentStatus(EmployeesListRequestEmploymentStatus employmentS return this; } + /** + *

                    If provided, will only return employees that have an employment of the specified employment_type.

                    + */ @JsonSetter(value = "employment_type", nulls = Nulls.SKIP) public Builder employmentType(Optional employmentType) { this.employmentType = employmentType; @@ -728,6 +757,9 @@ public Builder employmentType(String employmentType) { return this; } + /** + *

                    If provided, will only return employees with this first name.

                    + */ @JsonSetter(value = "first_name", nulls = Nulls.SKIP) public Builder firstName(Optional firstName) { this.firstName = firstName; @@ -739,6 +771,9 @@ public Builder firstName(String firstName) { return this; } + /** + *

                    If provided, will only return employees matching the group ids; multiple groups can be separated by commas.

                    + */ @JsonSetter(value = "groups", nulls = Nulls.SKIP) public Builder groups(Optional groups) { this.groups = groups; @@ -750,6 +785,9 @@ public Builder groups(String groups) { return this; } + /** + *

                    If provided, will only return employees for this home location.

                    + */ @JsonSetter(value = "home_location_id", nulls = Nulls.SKIP) public Builder homeLocationId(Optional homeLocationId) { this.homeLocationId = homeLocationId; @@ -761,6 +799,9 @@ public Builder homeLocationId(String homeLocationId) { return this; } + /** + *

                    Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

                    + */ @JsonSetter(value = "include_deleted_data", nulls = Nulls.SKIP) public Builder includeDeletedData(Optional includeDeletedData) { this.includeDeletedData = includeDeletedData; @@ -772,6 +813,9 @@ public Builder includeDeletedData(Boolean includeDeletedData) { return this; } + /** + *

                    Whether to include the original data Merge fetched from the third-party to produce these models.

                    + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -783,6 +827,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

                    Whether to include sensitive fields (such as social security numbers) in the response.

                    + */ @JsonSetter(value = "include_sensitive_fields", nulls = Nulls.SKIP) public Builder includeSensitiveFields(Optional includeSensitiveFields) { this.includeSensitiveFields = includeSensitiveFields; @@ -794,6 +841,9 @@ public Builder includeSensitiveFields(Boolean includeSensitiveFields) { return this; } + /** + *

                    Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

                    + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; @@ -805,6 +855,9 @@ public Builder includeShellData(Boolean includeShellData) { return this; } + /** + *

                    If provided, will only return employees that have an employment of the specified job_title.

                    + */ @JsonSetter(value = "job_title", nulls = Nulls.SKIP) public Builder jobTitle(Optional jobTitle) { this.jobTitle = jobTitle; @@ -816,6 +869,9 @@ public Builder jobTitle(String jobTitle) { return this; } + /** + *

                    If provided, will only return employees with this last name.

                    + */ @JsonSetter(value = "last_name", nulls = Nulls.SKIP) public Builder lastName(Optional lastName) { this.lastName = lastName; @@ -827,6 +883,9 @@ public Builder lastName(String lastName) { return this; } + /** + *

                    If provided, will only return employees for this manager.

                    + */ @JsonSetter(value = "manager_id", nulls = Nulls.SKIP) public Builder managerId(Optional managerId) { this.managerId = managerId; @@ -838,6 +897,9 @@ public Builder managerId(String managerId) { return this; } + /** + *

                    If provided, only objects synced by Merge after this date time will be returned.

                    + */ @JsonSetter(value = "modified_after", nulls = Nulls.SKIP) public Builder modifiedAfter(Optional modifiedAfter) { this.modifiedAfter = modifiedAfter; @@ -849,6 +911,9 @@ public Builder modifiedAfter(OffsetDateTime modifiedAfter) { return this; } + /** + *

                    If provided, only objects synced by Merge before this date time will be returned.

                    + */ @JsonSetter(value = "modified_before", nulls = Nulls.SKIP) public Builder modifiedBefore(Optional modifiedBefore) { this.modifiedBefore = modifiedBefore; @@ -860,6 +925,9 @@ public Builder modifiedBefore(OffsetDateTime modifiedBefore) { return this; } + /** + *

                    Number of results to return per page.

                    + */ @JsonSetter(value = "page_size", nulls = Nulls.SKIP) public Builder pageSize(Optional pageSize) { this.pageSize = pageSize; @@ -871,6 +939,9 @@ public Builder pageSize(Integer pageSize) { return this; } + /** + *

                    If provided, will only return employees for this pay group

                    + */ @JsonSetter(value = "pay_group_id", nulls = Nulls.SKIP) public Builder payGroupId(Optional payGroupId) { this.payGroupId = payGroupId; @@ -882,6 +953,9 @@ public Builder payGroupId(String payGroupId) { return this; } + /** + *

                    If provided, will only return Employees with this personal email

                    + */ @JsonSetter(value = "personal_email", nulls = Nulls.SKIP) public Builder personalEmail(Optional personalEmail) { this.personalEmail = personalEmail; @@ -893,6 +967,9 @@ public Builder personalEmail(String personalEmail) { return this; } + /** + *

                    Deprecated. Use show_enum_origins.

                    + */ @JsonSetter(value = "remote_fields", nulls = Nulls.SKIP) public Builder remoteFields(Optional remoteFields) { this.remoteFields = remoteFields; @@ -904,6 +981,9 @@ public Builder remoteFields(EmployeesListRequestRemoteFields remoteFields) { return this; } + /** + *

                    The API provider's ID for the given object.

                    + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; @@ -915,6 +995,9 @@ public Builder remoteId(String remoteId) { return this; } + /** + *

                    A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. Learn more

                    + */ @JsonSetter(value = "show_enum_origins", nulls = Nulls.SKIP) public Builder showEnumOrigins(Optional showEnumOrigins) { this.showEnumOrigins = showEnumOrigins; @@ -926,6 +1009,9 @@ public Builder showEnumOrigins(EmployeesListRequestShowEnumOrigins showEnumOrigi return this; } + /** + *

                    If provided, will only return employees that started after this datetime.

                    + */ @JsonSetter(value = "started_after", nulls = Nulls.SKIP) public Builder startedAfter(Optional startedAfter) { this.startedAfter = startedAfter; @@ -937,6 +1023,9 @@ public Builder startedAfter(OffsetDateTime startedAfter) { return this; } + /** + *

                    If provided, will only return employees that started before this datetime.

                    + */ @JsonSetter(value = "started_before", nulls = Nulls.SKIP) public Builder startedBefore(Optional startedBefore) { this.startedBefore = startedBefore; @@ -948,6 +1037,9 @@ public Builder startedBefore(OffsetDateTime startedBefore) { return this; } + /** + *

                    If provided, will only return employees for this team.

                    + */ @JsonSetter(value = "team_id", nulls = Nulls.SKIP) public Builder teamId(Optional teamId) { this.teamId = teamId; @@ -959,6 +1051,9 @@ public Builder teamId(String teamId) { return this; } + /** + *

                    If provided, will only return employees that were terminated after this datetime.

                    + */ @JsonSetter(value = "terminated_after", nulls = Nulls.SKIP) public Builder terminatedAfter(Optional terminatedAfter) { this.terminatedAfter = terminatedAfter; @@ -970,6 +1065,9 @@ public Builder terminatedAfter(OffsetDateTime terminatedAfter) { return this; } + /** + *

                    If provided, will only return employees that were terminated before this datetime.

                    + */ @JsonSetter(value = "terminated_before", nulls = Nulls.SKIP) public Builder terminatedBefore(Optional terminatedBefore) { this.terminatedBefore = terminatedBefore; @@ -981,6 +1079,9 @@ public Builder terminatedBefore(OffsetDateTime terminatedBefore) { return this; } + /** + *

                    If provided, will only return Employees with this work email

                    + */ @JsonSetter(value = "work_email", nulls = Nulls.SKIP) public Builder workEmail(Optional workEmail) { this.workEmail = workEmail; @@ -992,6 +1093,9 @@ public Builder workEmail(String workEmail) { return this; } + /** + *

                    If provided, will only return employees for this location.

                    + */ @JsonSetter(value = "work_location_id", nulls = Nulls.SKIP) public Builder workLocationId(Optional workLocationId) { this.workLocationId = workLocationId; diff --git a/src/main/java/com/merge/api/hris/types/EmployeesRetrieveRequest.java b/src/main/java/com/merge/api/hris/types/EmployeesRetrieveRequest.java index dde331795..d8fc27ad7 100644 --- a/src/main/java/com/merge/api/hris/types/EmployeesRetrieveRequest.java +++ b/src/main/java/com/merge/api/hris/types/EmployeesRetrieveRequest.java @@ -170,6 +170,9 @@ public Builder from(EmployeesRetrieveRequest other) { return this; } + /** + *

                    Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.

                    + */ @JsonSetter(value = "expand", nulls = Nulls.SKIP) public Builder expand(Optional> expand) { this.expand = expand; @@ -186,6 +189,9 @@ public Builder expand(EmployeesRetrieveRequestExpandItem expand) { return this; } + /** + *

                    Whether to include the original data Merge fetched from the third-party to produce these models.

                    + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -197,6 +203,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

                    Whether to include sensitive fields (such as social security numbers) in the response.

                    + */ @JsonSetter(value = "include_sensitive_fields", nulls = Nulls.SKIP) public Builder includeSensitiveFields(Optional includeSensitiveFields) { this.includeSensitiveFields = includeSensitiveFields; @@ -208,6 +217,9 @@ public Builder includeSensitiveFields(Boolean includeSensitiveFields) { return this; } + /** + *

                    Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

                    + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; @@ -219,6 +231,9 @@ public Builder includeShellData(Boolean includeShellData) { return this; } + /** + *

                    Deprecated. Use show_enum_origins.

                    + */ @JsonSetter(value = "remote_fields", nulls = Nulls.SKIP) public Builder remoteFields(Optional remoteFields) { this.remoteFields = remoteFields; @@ -230,6 +245,9 @@ public Builder remoteFields(EmployeesRetrieveRequestRemoteFields remoteFields) { return this; } + /** + *

                    A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. Learn more

                    + */ @JsonSetter(value = "show_enum_origins", nulls = Nulls.SKIP) public Builder showEnumOrigins(Optional showEnumOrigins) { this.showEnumOrigins = showEnumOrigins; diff --git a/src/main/java/com/merge/api/hris/types/EmployerBenefit.java b/src/main/java/com/merge/api/hris/types/EmployerBenefit.java index fced41886..fb37d0ead 100644 --- a/src/main/java/com/merge/api/hris/types/EmployerBenefit.java +++ b/src/main/java/com/merge/api/hris/types/EmployerBenefit.java @@ -265,6 +265,9 @@ public Builder id(String id) { return this; } + /** + *

                    The third-party API ID of the matching object.

                    + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; @@ -276,6 +279,9 @@ public Builder remoteId(String remoteId) { return this; } + /** + *

                    The datetime that this object was created by Merge.

                    + */ @JsonSetter(value = "created_at", nulls = Nulls.SKIP) public Builder createdAt(Optional createdAt) { this.createdAt = createdAt; @@ -287,6 +293,9 @@ public Builder createdAt(OffsetDateTime createdAt) { return this; } + /** + *

                    The datetime that this object was modified by Merge.

                    + */ @JsonSetter(value = "modified_at", nulls = Nulls.SKIP) public Builder modifiedAt(Optional modifiedAt) { this.modifiedAt = modifiedAt; @@ -298,6 +307,16 @@ public Builder modifiedAt(OffsetDateTime modifiedAt) { return this; } + /** + *

                    The type of benefit plan.

                    + *
                      + *
                    • MEDICAL - MEDICAL
                    • + *
                    • HEALTH_SAVINGS - HEALTH_SAVINGS
                    • + *
                    • INSURANCE - INSURANCE
                    • + *
                    • RETIREMENT - RETIREMENT
                    • + *
                    • OTHER - OTHER
                    • + *
                    + */ @JsonSetter(value = "benefit_plan_type", nulls = Nulls.SKIP) public Builder benefitPlanType(Optional benefitPlanType) { this.benefitPlanType = benefitPlanType; @@ -309,6 +328,9 @@ public Builder benefitPlanType(BenefitPlanTypeEnum benefitPlanType) { return this; } + /** + *

                    The employer benefit's name - typically the carrier or network name.

                    + */ @JsonSetter(value = "name", nulls = Nulls.SKIP) public Builder name(Optional name) { this.name = name; @@ -320,6 +342,9 @@ public Builder name(String name) { return this; } + /** + *

                    The employer benefit's description.

                    + */ @JsonSetter(value = "description", nulls = Nulls.SKIP) public Builder description(Optional description) { this.description = description; @@ -331,6 +356,9 @@ public Builder description(String description) { return this; } + /** + *

                    The employer benefit's deduction code.

                    + */ @JsonSetter(value = "deduction_code", nulls = Nulls.SKIP) public Builder deductionCode(Optional deductionCode) { this.deductionCode = deductionCode; @@ -342,6 +370,9 @@ public Builder deductionCode(String deductionCode) { return this; } + /** + *

                    Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

                    + */ @JsonSetter(value = "remote_was_deleted", nulls = Nulls.SKIP) public Builder remoteWasDeleted(Optional remoteWasDeleted) { this.remoteWasDeleted = remoteWasDeleted; diff --git a/src/main/java/com/merge/api/hris/types/EmployerBenefitsListRequest.java b/src/main/java/com/merge/api/hris/types/EmployerBenefitsListRequest.java index 24fa5c816..5ec3ae20e 100644 --- a/src/main/java/com/merge/api/hris/types/EmployerBenefitsListRequest.java +++ b/src/main/java/com/merge/api/hris/types/EmployerBenefitsListRequest.java @@ -237,6 +237,9 @@ public Builder from(EmployerBenefitsListRequest other) { return this; } + /** + *

                    If provided, will only return objects created after this datetime.

                    + */ @JsonSetter(value = "created_after", nulls = Nulls.SKIP) public Builder createdAfter(Optional createdAfter) { this.createdAfter = createdAfter; @@ -248,6 +251,9 @@ public Builder createdAfter(OffsetDateTime createdAfter) { return this; } + /** + *

                    If provided, will only return objects created before this datetime.

                    + */ @JsonSetter(value = "created_before", nulls = Nulls.SKIP) public Builder createdBefore(Optional createdBefore) { this.createdBefore = createdBefore; @@ -259,6 +265,9 @@ public Builder createdBefore(OffsetDateTime createdBefore) { return this; } + /** + *

                    The pagination cursor value.

                    + */ @JsonSetter(value = "cursor", nulls = Nulls.SKIP) public Builder cursor(Optional cursor) { this.cursor = cursor; @@ -270,6 +279,9 @@ public Builder cursor(String cursor) { return this; } + /** + *

                    Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

                    + */ @JsonSetter(value = "include_deleted_data", nulls = Nulls.SKIP) public Builder includeDeletedData(Optional includeDeletedData) { this.includeDeletedData = includeDeletedData; @@ -281,6 +293,9 @@ public Builder includeDeletedData(Boolean includeDeletedData) { return this; } + /** + *

                    Whether to include the original data Merge fetched from the third-party to produce these models.

                    + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -292,6 +307,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

                    Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

                    + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; @@ -303,6 +321,9 @@ public Builder includeShellData(Boolean includeShellData) { return this; } + /** + *

                    If provided, only objects synced by Merge after this date time will be returned.

                    + */ @JsonSetter(value = "modified_after", nulls = Nulls.SKIP) public Builder modifiedAfter(Optional modifiedAfter) { this.modifiedAfter = modifiedAfter; @@ -314,6 +335,9 @@ public Builder modifiedAfter(OffsetDateTime modifiedAfter) { return this; } + /** + *

                    If provided, only objects synced by Merge before this date time will be returned.

                    + */ @JsonSetter(value = "modified_before", nulls = Nulls.SKIP) public Builder modifiedBefore(Optional modifiedBefore) { this.modifiedBefore = modifiedBefore; @@ -325,6 +349,9 @@ public Builder modifiedBefore(OffsetDateTime modifiedBefore) { return this; } + /** + *

                    Number of results to return per page.

                    + */ @JsonSetter(value = "page_size", nulls = Nulls.SKIP) public Builder pageSize(Optional pageSize) { this.pageSize = pageSize; @@ -336,6 +363,9 @@ public Builder pageSize(Integer pageSize) { return this; } + /** + *

                    The API provider's ID for the given object.

                    + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; diff --git a/src/main/java/com/merge/api/hris/types/EmployerBenefitsRetrieveRequest.java b/src/main/java/com/merge/api/hris/types/EmployerBenefitsRetrieveRequest.java index 737ac6328..f1a4910c2 100644 --- a/src/main/java/com/merge/api/hris/types/EmployerBenefitsRetrieveRequest.java +++ b/src/main/java/com/merge/api/hris/types/EmployerBenefitsRetrieveRequest.java @@ -97,6 +97,9 @@ public Builder from(EmployerBenefitsRetrieveRequest other) { return this; } + /** + *

                    Whether to include the original data Merge fetched from the third-party to produce these models.

                    + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -108,6 +111,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

                    Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

                    + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; diff --git a/src/main/java/com/merge/api/hris/types/Employment.java b/src/main/java/com/merge/api/hris/types/Employment.java index 453903d1d..8eff2c328 100644 --- a/src/main/java/com/merge/api/hris/types/Employment.java +++ b/src/main/java/com/merge/api/hris/types/Employment.java @@ -703,6 +703,9 @@ public Builder id(String id) { return this; } + /** + *

                    The third-party API ID of the matching object.

                    + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; @@ -714,6 +717,9 @@ public Builder remoteId(String remoteId) { return this; } + /** + *

                    The datetime that this object was created by Merge.

                    + */ @JsonSetter(value = "created_at", nulls = Nulls.SKIP) public Builder createdAt(Optional createdAt) { this.createdAt = createdAt; @@ -725,6 +731,9 @@ public Builder createdAt(OffsetDateTime createdAt) { return this; } + /** + *

                    The datetime that this object was modified by Merge.

                    + */ @JsonSetter(value = "modified_at", nulls = Nulls.SKIP) public Builder modifiedAt(Optional modifiedAt) { this.modifiedAt = modifiedAt; @@ -736,6 +745,9 @@ public Builder modifiedAt(OffsetDateTime modifiedAt) { return this; } + /** + *

                    The employee holding this position.

                    + */ @JsonSetter(value = "employee", nulls = Nulls.SKIP) public Builder employee(Optional employee) { this.employee = employee; @@ -747,6 +759,9 @@ public Builder employee(EmploymentEmployee employee) { return this; } + /** + *

                    The position's title.

                    + */ @JsonSetter(value = "job_title", nulls = Nulls.SKIP) public Builder jobTitle(Optional jobTitle) { this.jobTitle = jobTitle; @@ -758,6 +773,9 @@ public Builder jobTitle(String jobTitle) { return this; } + /** + *

                    The position's pay rate.

                    + */ @JsonSetter(value = "pay_rate", nulls = Nulls.SKIP) public Builder payRate(Optional payRate) { this.payRate = payRate; @@ -769,6 +787,20 @@ public Builder payRate(Double payRate) { return this; } + /** + *

                    The time period this pay rate encompasses.

                    + *
                      + *
                    • HOUR - HOUR
                    • + *
                    • DAY - DAY
                    • + *
                    • WEEK - WEEK
                    • + *
                    • EVERY_TWO_WEEKS - EVERY_TWO_WEEKS
                    • + *
                    • SEMIMONTHLY - SEMIMONTHLY
                    • + *
                    • MONTH - MONTH
                    • + *
                    • QUARTER - QUARTER
                    • + *
                    • EVERY_SIX_MONTHS - EVERY_SIX_MONTHS
                    • + *
                    • YEAR - YEAR
                    • + *
                    + */ @JsonSetter(value = "pay_period", nulls = Nulls.SKIP) public Builder payPeriod(Optional payPeriod) { this.payPeriod = payPeriod; @@ -780,6 +812,20 @@ public Builder payPeriod(PayPeriodEnum payPeriod) { return this; } + /** + *

                    The position's pay frequency.

                    + *
                      + *
                    • WEEKLY - WEEKLY
                    • + *
                    • BIWEEKLY - BIWEEKLY
                    • + *
                    • MONTHLY - MONTHLY
                    • + *
                    • QUARTERLY - QUARTERLY
                    • + *
                    • SEMIANNUALLY - SEMIANNUALLY
                    • + *
                    • ANNUALLY - ANNUALLY
                    • + *
                    • THIRTEEN-MONTHLY - THIRTEEN-MONTHLY
                    • + *
                    • PRO_RATA - PRO_RATA
                    • + *
                    • SEMIMONTHLY - SEMIMONTHLY
                    • + *
                    + */ @JsonSetter(value = "pay_frequency", nulls = Nulls.SKIP) public Builder payFrequency(Optional payFrequency) { this.payFrequency = payFrequency; @@ -791,6 +837,317 @@ public Builder payFrequency(PayFrequencyEnum payFrequency) { return this; } + /** + *

                    The position's currency code.

                    + *
                      + *
                    • XUA - ADB Unit of Account
                    • + *
                    • AFN - Afghan Afghani
                    • + *
                    • AFA - Afghan Afghani (1927–2002)
                    • + *
                    • ALL - Albanian Lek
                    • + *
                    • ALK - Albanian Lek (1946–1965)
                    • + *
                    • DZD - Algerian Dinar
                    • + *
                    • ADP - Andorran Peseta
                    • + *
                    • AOA - Angolan Kwanza
                    • + *
                    • AOK - Angolan Kwanza (1977–1991)
                    • + *
                    • AON - Angolan New Kwanza (1990–2000)
                    • + *
                    • AOR - Angolan Readjusted Kwanza (1995–1999)
                    • + *
                    • ARA - Argentine Austral
                    • + *
                    • ARS - Argentine Peso
                    • + *
                    • ARM - Argentine Peso (1881–1970)
                    • + *
                    • ARP - Argentine Peso (1983–1985)
                    • + *
                    • ARL - Argentine Peso Ley (1970–1983)
                    • + *
                    • AMD - Armenian Dram
                    • + *
                    • AWG - Aruban Florin
                    • + *
                    • AUD - Australian Dollar
                    • + *
                    • ATS - Austrian Schilling
                    • + *
                    • AZN - Azerbaijani Manat
                    • + *
                    • AZM - Azerbaijani Manat (1993–2006)
                    • + *
                    • BSD - Bahamian Dollar
                    • + *
                    • BHD - Bahraini Dinar
                    • + *
                    • BDT - Bangladeshi Taka
                    • + *
                    • BBD - Barbadian Dollar
                    • + *
                    • BYN - Belarusian Ruble
                    • + *
                    • BYB - Belarusian Ruble (1994–1999)
                    • + *
                    • BYR - Belarusian Ruble (2000–2016)
                    • + *
                    • BEF - Belgian Franc
                    • + *
                    • BEC - Belgian Franc (convertible)
                    • + *
                    • BEL - Belgian Franc (financial)
                    • + *
                    • BZD - Belize Dollar
                    • + *
                    • BMD - Bermudan Dollar
                    • + *
                    • BTN - Bhutanese Ngultrum
                    • + *
                    • BOB - Bolivian Boliviano
                    • + *
                    • BOL - Bolivian Boliviano (1863–1963)
                    • + *
                    • BOV - Bolivian Mvdol
                    • + *
                    • BOP - Bolivian Peso
                    • + *
                    • BAM - Bosnia-Herzegovina Convertible Mark
                    • + *
                    • BAD - Bosnia-Herzegovina Dinar (1992–1994)
                    • + *
                    • BAN - Bosnia-Herzegovina New Dinar (1994–1997)
                    • + *
                    • BWP - Botswanan Pula
                    • + *
                    • BRC - Brazilian Cruzado (1986–1989)
                    • + *
                    • BRZ - Brazilian Cruzeiro (1942–1967)
                    • + *
                    • BRE - Brazilian Cruzeiro (1990–1993)
                    • + *
                    • BRR - Brazilian Cruzeiro (1993–1994)
                    • + *
                    • BRN - Brazilian New Cruzado (1989–1990)
                    • + *
                    • BRB - Brazilian New Cruzeiro (1967–1986)
                    • + *
                    • BRL - Brazilian Real
                    • + *
                    • GBP - British Pound
                    • + *
                    • BND - Brunei Dollar
                    • + *
                    • BGL - Bulgarian Hard Lev
                    • + *
                    • BGN - Bulgarian Lev
                    • + *
                    • BGO - Bulgarian Lev (1879–1952)
                    • + *
                    • BGM - Bulgarian Socialist Lev
                    • + *
                    • BUK - Burmese Kyat
                    • + *
                    • BIF - Burundian Franc
                    • + *
                    • XPF - CFP Franc
                    • + *
                    • KHR - Cambodian Riel
                    • + *
                    • CAD - Canadian Dollar
                    • + *
                    • CVE - Cape Verdean Escudo
                    • + *
                    • KYD - Cayman Islands Dollar
                    • + *
                    • XAF - Central African CFA Franc
                    • + *
                    • CLE - Chilean Escudo
                    • + *
                    • CLP - Chilean Peso
                    • + *
                    • CLF - Chilean Unit of Account (UF)
                    • + *
                    • CNX - Chinese People’s Bank Dollar
                    • + *
                    • CNY - Chinese Yuan
                    • + *
                    • CNH - Chinese Yuan (offshore)
                    • + *
                    • COP - Colombian Peso
                    • + *
                    • COU - Colombian Real Value Unit
                    • + *
                    • KMF - Comorian Franc
                    • + *
                    • CDF - Congolese Franc
                    • + *
                    • CRC - Costa Rican Colón
                    • + *
                    • HRD - Croatian Dinar
                    • + *
                    • HRK - Croatian Kuna
                    • + *
                    • CUC - Cuban Convertible Peso
                    • + *
                    • CUP - Cuban Peso
                    • + *
                    • CYP - Cypriot Pound
                    • + *
                    • CZK - Czech Koruna
                    • + *
                    • CSK - Czechoslovak Hard Koruna
                    • + *
                    • DKK - Danish Krone
                    • + *
                    • DJF - Djiboutian Franc
                    • + *
                    • DOP - Dominican Peso
                    • + *
                    • NLG - Dutch Guilder
                    • + *
                    • XCD - East Caribbean Dollar
                    • + *
                    • DDM - East German Mark
                    • + *
                    • ECS - Ecuadorian Sucre
                    • + *
                    • ECV - Ecuadorian Unit of Constant Value
                    • + *
                    • EGP - Egyptian Pound
                    • + *
                    • GQE - Equatorial Guinean Ekwele
                    • + *
                    • ERN - Eritrean Nakfa
                    • + *
                    • EEK - Estonian Kroon
                    • + *
                    • ETB - Ethiopian Birr
                    • + *
                    • EUR - Euro
                    • + *
                    • XBA - European Composite Unit
                    • + *
                    • XEU - European Currency Unit
                    • + *
                    • XBB - European Monetary Unit
                    • + *
                    • XBC - European Unit of Account (XBC)
                    • + *
                    • XBD - European Unit of Account (XBD)
                    • + *
                    • FKP - Falkland Islands Pound
                    • + *
                    • FJD - Fijian Dollar
                    • + *
                    • FIM - Finnish Markka
                    • + *
                    • FRF - French Franc
                    • + *
                    • XFO - French Gold Franc
                    • + *
                    • XFU - French UIC-Franc
                    • + *
                    • GMD - Gambian Dalasi
                    • + *
                    • GEK - Georgian Kupon Larit
                    • + *
                    • GEL - Georgian Lari
                    • + *
                    • DEM - German Mark
                    • + *
                    • GHS - Ghanaian Cedi
                    • + *
                    • GHC - Ghanaian Cedi (1979–2007)
                    • + *
                    • GIP - Gibraltar Pound
                    • + *
                    • XAU - Gold
                    • + *
                    • GRD - Greek Drachma
                    • + *
                    • GTQ - Guatemalan Quetzal
                    • + *
                    • GWP - Guinea-Bissau Peso
                    • + *
                    • GNF - Guinean Franc
                    • + *
                    • GNS - Guinean Syli
                    • + *
                    • GYD - Guyanaese Dollar
                    • + *
                    • HTG - Haitian Gourde
                    • + *
                    • HNL - Honduran Lempira
                    • + *
                    • HKD - Hong Kong Dollar
                    • + *
                    • HUF - Hungarian Forint
                    • + *
                    • IMP - IMP
                    • + *
                    • ISK - Icelandic Króna
                    • + *
                    • ISJ - Icelandic Króna (1918–1981)
                    • + *
                    • INR - Indian Rupee
                    • + *
                    • IDR - Indonesian Rupiah
                    • + *
                    • IRR - Iranian Rial
                    • + *
                    • IQD - Iraqi Dinar
                    • + *
                    • IEP - Irish Pound
                    • + *
                    • ILS - Israeli New Shekel
                    • + *
                    • ILP - Israeli Pound
                    • + *
                    • ILR - Israeli Shekel (1980–1985)
                    • + *
                    • ITL - Italian Lira
                    • + *
                    • JMD - Jamaican Dollar
                    • + *
                    • JPY - Japanese Yen
                    • + *
                    • JOD - Jordanian Dinar
                    • + *
                    • KZT - Kazakhstani Tenge
                    • + *
                    • KES - Kenyan Shilling
                    • + *
                    • KWD - Kuwaiti Dinar
                    • + *
                    • KGS - Kyrgystani Som
                    • + *
                    • LAK - Laotian Kip
                    • + *
                    • LVL - Latvian Lats
                    • + *
                    • LVR - Latvian Ruble
                    • + *
                    • LBP - Lebanese Pound
                    • + *
                    • LSL - Lesotho Loti
                    • + *
                    • LRD - Liberian Dollar
                    • + *
                    • LYD - Libyan Dinar
                    • + *
                    • LTL - Lithuanian Litas
                    • + *
                    • LTT - Lithuanian Talonas
                    • + *
                    • LUL - Luxembourg Financial Franc
                    • + *
                    • LUC - Luxembourgian Convertible Franc
                    • + *
                    • LUF - Luxembourgian Franc
                    • + *
                    • MOP - Macanese Pataca
                    • + *
                    • MKD - Macedonian Denar
                    • + *
                    • MKN - Macedonian Denar (1992–1993)
                    • + *
                    • MGA - Malagasy Ariary
                    • + *
                    • MGF - Malagasy Franc
                    • + *
                    • MWK - Malawian Kwacha
                    • + *
                    • MYR - Malaysian Ringgit
                    • + *
                    • MVR - Maldivian Rufiyaa
                    • + *
                    • MVP - Maldivian Rupee (1947–1981)
                    • + *
                    • MLF - Malian Franc
                    • + *
                    • MTL - Maltese Lira
                    • + *
                    • MTP - Maltese Pound
                    • + *
                    • MRU - Mauritanian Ouguiya
                    • + *
                    • MRO - Mauritanian Ouguiya (1973–2017)
                    • + *
                    • MUR - Mauritian Rupee
                    • + *
                    • MXV - Mexican Investment Unit
                    • + *
                    • MXN - Mexican Peso
                    • + *
                    • MXP - Mexican Silver Peso (1861–1992)
                    • + *
                    • MDC - Moldovan Cupon
                    • + *
                    • MDL - Moldovan Leu
                    • + *
                    • MCF - Monegasque Franc
                    • + *
                    • MNT - Mongolian Tugrik
                    • + *
                    • MAD - Moroccan Dirham
                    • + *
                    • MAF - Moroccan Franc
                    • + *
                    • MZE - Mozambican Escudo
                    • + *
                    • MZN - Mozambican Metical
                    • + *
                    • MZM - Mozambican Metical (1980–2006)
                    • + *
                    • MMK - Myanmar Kyat
                    • + *
                    • NAD - Namibian Dollar
                    • + *
                    • NPR - Nepalese Rupee
                    • + *
                    • ANG - Netherlands Antillean Guilder
                    • + *
                    • TWD - New Taiwan Dollar
                    • + *
                    • NZD - New Zealand Dollar
                    • + *
                    • NIO - Nicaraguan Córdoba
                    • + *
                    • NIC - Nicaraguan Córdoba (1988–1991)
                    • + *
                    • NGN - Nigerian Naira
                    • + *
                    • KPW - North Korean Won
                    • + *
                    • NOK - Norwegian Krone
                    • + *
                    • OMR - Omani Rial
                    • + *
                    • PKR - Pakistani Rupee
                    • + *
                    • XPD - Palladium
                    • + *
                    • PAB - Panamanian Balboa
                    • + *
                    • PGK - Papua New Guinean Kina
                    • + *
                    • PYG - Paraguayan Guarani
                    • + *
                    • PEI - Peruvian Inti
                    • + *
                    • PEN - Peruvian Sol
                    • + *
                    • PES - Peruvian Sol (1863–1965)
                    • + *
                    • PHP - Philippine Peso
                    • + *
                    • XPT - Platinum
                    • + *
                    • PLN - Polish Zloty
                    • + *
                    • PLZ - Polish Zloty (1950–1995)
                    • + *
                    • PTE - Portuguese Escudo
                    • + *
                    • GWE - Portuguese Guinea Escudo
                    • + *
                    • QAR - Qatari Rial
                    • + *
                    • XRE - RINET Funds
                    • + *
                    • RHD - Rhodesian Dollar
                    • + *
                    • RON - Romanian Leu
                    • + *
                    • ROL - Romanian Leu (1952–2006)
                    • + *
                    • RUB - Russian Ruble
                    • + *
                    • RUR - Russian Ruble (1991–1998)
                    • + *
                    • RWF - Rwandan Franc
                    • + *
                    • SVC - Salvadoran Colón
                    • + *
                    • WST - Samoan Tala
                    • + *
                    • SAR - Saudi Riyal
                    • + *
                    • RSD - Serbian Dinar
                    • + *
                    • CSD - Serbian Dinar (2002–2006)
                    • + *
                    • SCR - Seychellois Rupee
                    • + *
                    • SLL - Sierra Leonean Leone
                    • + *
                    • XAG - Silver
                    • + *
                    • SGD - Singapore Dollar
                    • + *
                    • SKK - Slovak Koruna
                    • + *
                    • SIT - Slovenian Tolar
                    • + *
                    • SBD - Solomon Islands Dollar
                    • + *
                    • SOS - Somali Shilling
                    • + *
                    • ZAR - South African Rand
                    • + *
                    • ZAL - South African Rand (financial)
                    • + *
                    • KRH - South Korean Hwan (1953–1962)
                    • + *
                    • KRW - South Korean Won
                    • + *
                    • KRO - South Korean Won (1945–1953)
                    • + *
                    • SSP - South Sudanese Pound
                    • + *
                    • SUR - Soviet Rouble
                    • + *
                    • ESP - Spanish Peseta
                    • + *
                    • ESA - Spanish Peseta (A account)
                    • + *
                    • ESB - Spanish Peseta (convertible account)
                    • + *
                    • XDR - Special Drawing Rights
                    • + *
                    • LKR - Sri Lankan Rupee
                    • + *
                    • SHP - St. Helena Pound
                    • + *
                    • XSU - Sucre
                    • + *
                    • SDD - Sudanese Dinar (1992–2007)
                    • + *
                    • SDG - Sudanese Pound
                    • + *
                    • SDP - Sudanese Pound (1957–1998)
                    • + *
                    • SRD - Surinamese Dollar
                    • + *
                    • SRG - Surinamese Guilder
                    • + *
                    • SZL - Swazi Lilangeni
                    • + *
                    • SEK - Swedish Krona
                    • + *
                    • CHF - Swiss Franc
                    • + *
                    • SYP - Syrian Pound
                    • + *
                    • STN - São Tomé & Príncipe Dobra
                    • + *
                    • STD - São Tomé & Príncipe Dobra (1977–2017)
                    • + *
                    • TVD - TVD
                    • + *
                    • TJR - Tajikistani Ruble
                    • + *
                    • TJS - Tajikistani Somoni
                    • + *
                    • TZS - Tanzanian Shilling
                    • + *
                    • XTS - Testing Currency Code
                    • + *
                    • THB - Thai Baht
                    • + *
                    • XXX - The codes assigned for transactions where no currency is involved
                    • + *
                    • TPE - Timorese Escudo
                    • + *
                    • TOP - Tongan Paʻanga
                    • + *
                    • TTD - Trinidad & Tobago Dollar
                    • + *
                    • TND - Tunisian Dinar
                    • + *
                    • TRY - Turkish Lira
                    • + *
                    • TRL - Turkish Lira (1922–2005)
                    • + *
                    • TMT - Turkmenistani Manat
                    • + *
                    • TMM - Turkmenistani Manat (1993–2009)
                    • + *
                    • USD - US Dollar
                    • + *
                    • USN - US Dollar (Next day)
                    • + *
                    • USS - US Dollar (Same day)
                    • + *
                    • UGX - Ugandan Shilling
                    • + *
                    • UGS - Ugandan Shilling (1966–1987)
                    • + *
                    • UAH - Ukrainian Hryvnia
                    • + *
                    • UAK - Ukrainian Karbovanets
                    • + *
                    • AED - United Arab Emirates Dirham
                    • + *
                    • UYW - Uruguayan Nominal Wage Index Unit
                    • + *
                    • UYU - Uruguayan Peso
                    • + *
                    • UYP - Uruguayan Peso (1975–1993)
                    • + *
                    • UYI - Uruguayan Peso (Indexed Units)
                    • + *
                    • UZS - Uzbekistani Som
                    • + *
                    • VUV - Vanuatu Vatu
                    • + *
                    • VES - Venezuelan Bolívar
                    • + *
                    • VEB - Venezuelan Bolívar (1871–2008)
                    • + *
                    • VEF - Venezuelan Bolívar (2008–2018)
                    • + *
                    • VND - Vietnamese Dong
                    • + *
                    • VNN - Vietnamese Dong (1978–1985)
                    • + *
                    • CHE - WIR Euro
                    • + *
                    • CHW - WIR Franc
                    • + *
                    • XOF - West African CFA Franc
                    • + *
                    • YDD - Yemeni Dinar
                    • + *
                    • YER - Yemeni Rial
                    • + *
                    • YUN - Yugoslavian Convertible Dinar (1990–1992)
                    • + *
                    • YUD - Yugoslavian Hard Dinar (1966–1990)
                    • + *
                    • YUM - Yugoslavian New Dinar (1994–2002)
                    • + *
                    • YUR - Yugoslavian Reformed Dinar (1992–1993)
                    • + *
                    • ZWN - ZWN
                    • + *
                    • ZRN - Zairean New Zaire (1993–1998)
                    • + *
                    • ZRZ - Zairean Zaire (1971–1993)
                    • + *
                    • ZMW - Zambian Kwacha
                    • + *
                    • ZMK - Zambian Kwacha (1968–2012)
                    • + *
                    • ZWD - Zimbabwean Dollar (1980–2008)
                    • + *
                    • ZWR - Zimbabwean Dollar (2008)
                    • + *
                    • ZWL - Zimbabwean Dollar (2009)
                    • + *
                    + */ @JsonSetter(value = "pay_currency", nulls = Nulls.SKIP) public Builder payCurrency(Optional payCurrency) { this.payCurrency = payCurrency; @@ -802,6 +1159,9 @@ public Builder payCurrency(PayCurrencyEnum payCurrency) { return this; } + /** + *

                    The employment's pay group

                    + */ @JsonSetter(value = "pay_group", nulls = Nulls.SKIP) public Builder payGroup(Optional payGroup) { this.payGroup = payGroup; @@ -813,6 +1173,15 @@ public Builder payGroup(EmploymentPayGroup payGroup) { return this; } + /** + *

                    The position's FLSA status.

                    + *
                      + *
                    • EXEMPT - EXEMPT
                    • + *
                    • SALARIED_NONEXEMPT - SALARIED_NONEXEMPT
                    • + *
                    • NONEXEMPT - NONEXEMPT
                    • + *
                    • OWNER - OWNER
                    • + *
                    + */ @JsonSetter(value = "flsa_status", nulls = Nulls.SKIP) public Builder flsaStatus(Optional flsaStatus) { this.flsaStatus = flsaStatus; @@ -824,6 +1193,9 @@ public Builder flsaStatus(FlsaStatusEnum flsaStatus) { return this; } + /** + *

                    The position's effective date.

                    + */ @JsonSetter(value = "effective_date", nulls = Nulls.SKIP) public Builder effectiveDate(Optional effectiveDate) { this.effectiveDate = effectiveDate; @@ -835,6 +1207,16 @@ public Builder effectiveDate(OffsetDateTime effectiveDate) { return this; } + /** + *

                    The position's type of employment.

                    + *
                      + *
                    • FULL_TIME - FULL_TIME
                    • + *
                    • PART_TIME - PART_TIME
                    • + *
                    • INTERN - INTERN
                    • + *
                    • CONTRACTOR - CONTRACTOR
                    • + *
                    • FREELANCE - FREELANCE
                    • + *
                    + */ @JsonSetter(value = "employment_type", nulls = Nulls.SKIP) public Builder employmentType(Optional employmentType) { this.employmentType = employmentType; @@ -846,6 +1228,9 @@ public Builder employmentType(EmploymentTypeEnum employmentType) { return this; } + /** + *

                    Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

                    + */ @JsonSetter(value = "remote_was_deleted", nulls = Nulls.SKIP) public Builder remoteWasDeleted(Optional remoteWasDeleted) { this.remoteWasDeleted = remoteWasDeleted; diff --git a/src/main/java/com/merge/api/hris/types/EmploymentsListRequest.java b/src/main/java/com/merge/api/hris/types/EmploymentsListRequest.java index 30a3f54b2..2be3e66a5 100644 --- a/src/main/java/com/merge/api/hris/types/EmploymentsListRequest.java +++ b/src/main/java/com/merge/api/hris/types/EmploymentsListRequest.java @@ -324,6 +324,9 @@ public Builder from(EmploymentsListRequest other) { return this; } + /** + *

                    Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.

                    + */ @JsonSetter(value = "expand", nulls = Nulls.SKIP) public Builder expand(Optional> expand) { this.expand = expand; @@ -340,6 +343,9 @@ public Builder expand(EmploymentsListRequestExpandItem expand) { return this; } + /** + *

                    If provided, will only return objects created after this datetime.

                    + */ @JsonSetter(value = "created_after", nulls = Nulls.SKIP) public Builder createdAfter(Optional createdAfter) { this.createdAfter = createdAfter; @@ -351,6 +357,9 @@ public Builder createdAfter(OffsetDateTime createdAfter) { return this; } + /** + *

                    If provided, will only return objects created before this datetime.

                    + */ @JsonSetter(value = "created_before", nulls = Nulls.SKIP) public Builder createdBefore(Optional createdBefore) { this.createdBefore = createdBefore; @@ -362,6 +371,9 @@ public Builder createdBefore(OffsetDateTime createdBefore) { return this; } + /** + *

                    The pagination cursor value.

                    + */ @JsonSetter(value = "cursor", nulls = Nulls.SKIP) public Builder cursor(Optional cursor) { this.cursor = cursor; @@ -373,6 +385,9 @@ public Builder cursor(String cursor) { return this; } + /** + *

                    If provided, will only return employments for this employee.

                    + */ @JsonSetter(value = "employee_id", nulls = Nulls.SKIP) public Builder employeeId(Optional employeeId) { this.employeeId = employeeId; @@ -384,6 +399,9 @@ public Builder employeeId(String employeeId) { return this; } + /** + *

                    Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

                    + */ @JsonSetter(value = "include_deleted_data", nulls = Nulls.SKIP) public Builder includeDeletedData(Optional includeDeletedData) { this.includeDeletedData = includeDeletedData; @@ -395,6 +413,9 @@ public Builder includeDeletedData(Boolean includeDeletedData) { return this; } + /** + *

                    Whether to include the original data Merge fetched from the third-party to produce these models.

                    + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -406,6 +427,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

                    Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

                    + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; @@ -417,6 +441,9 @@ public Builder includeShellData(Boolean includeShellData) { return this; } + /** + *

                    If provided, only objects synced by Merge after this date time will be returned.

                    + */ @JsonSetter(value = "modified_after", nulls = Nulls.SKIP) public Builder modifiedAfter(Optional modifiedAfter) { this.modifiedAfter = modifiedAfter; @@ -428,6 +455,9 @@ public Builder modifiedAfter(OffsetDateTime modifiedAfter) { return this; } + /** + *

                    If provided, only objects synced by Merge before this date time will be returned.

                    + */ @JsonSetter(value = "modified_before", nulls = Nulls.SKIP) public Builder modifiedBefore(Optional modifiedBefore) { this.modifiedBefore = modifiedBefore; @@ -439,6 +469,9 @@ public Builder modifiedBefore(OffsetDateTime modifiedBefore) { return this; } + /** + *

                    Overrides the default ordering for this endpoint. Possible values include: effective_date, -effective_date.

                    + */ @JsonSetter(value = "order_by", nulls = Nulls.SKIP) public Builder orderBy(Optional orderBy) { this.orderBy = orderBy; @@ -450,6 +483,9 @@ public Builder orderBy(EmploymentsListRequestOrderBy orderBy) { return this; } + /** + *

                    Number of results to return per page.

                    + */ @JsonSetter(value = "page_size", nulls = Nulls.SKIP) public Builder pageSize(Optional pageSize) { this.pageSize = pageSize; @@ -461,6 +497,9 @@ public Builder pageSize(Integer pageSize) { return this; } + /** + *

                    Deprecated. Use show_enum_origins.

                    + */ @JsonSetter(value = "remote_fields", nulls = Nulls.SKIP) public Builder remoteFields(Optional remoteFields) { this.remoteFields = remoteFields; @@ -472,6 +511,9 @@ public Builder remoteFields(EmploymentsListRequestRemoteFields remoteFields) { return this; } + /** + *

                    The API provider's ID for the given object.

                    + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; @@ -483,6 +525,9 @@ public Builder remoteId(String remoteId) { return this; } + /** + *

                    A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. Learn more

                    + */ @JsonSetter(value = "show_enum_origins", nulls = Nulls.SKIP) public Builder showEnumOrigins(Optional showEnumOrigins) { this.showEnumOrigins = showEnumOrigins; diff --git a/src/main/java/com/merge/api/hris/types/EmploymentsRetrieveRequest.java b/src/main/java/com/merge/api/hris/types/EmploymentsRetrieveRequest.java index bfcb49795..a0aadca34 100644 --- a/src/main/java/com/merge/api/hris/types/EmploymentsRetrieveRequest.java +++ b/src/main/java/com/merge/api/hris/types/EmploymentsRetrieveRequest.java @@ -149,6 +149,9 @@ public Builder from(EmploymentsRetrieveRequest other) { return this; } + /** + *

                    Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.

                    + */ @JsonSetter(value = "expand", nulls = Nulls.SKIP) public Builder expand(Optional> expand) { this.expand = expand; @@ -165,6 +168,9 @@ public Builder expand(EmploymentsRetrieveRequestExpandItem expand) { return this; } + /** + *

                    Whether to include the original data Merge fetched from the third-party to produce these models.

                    + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -176,6 +182,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

                    Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

                    + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; @@ -187,6 +196,9 @@ public Builder includeShellData(Boolean includeShellData) { return this; } + /** + *

                    Deprecated. Use show_enum_origins.

                    + */ @JsonSetter(value = "remote_fields", nulls = Nulls.SKIP) public Builder remoteFields(Optional remoteFields) { this.remoteFields = remoteFields; @@ -198,6 +210,9 @@ public Builder remoteFields(EmploymentsRetrieveRequestRemoteFields remoteFields) return this; } + /** + *

                    A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. Learn more

                    + */ @JsonSetter(value = "show_enum_origins", nulls = Nulls.SKIP) public Builder showEnumOrigins(Optional showEnumOrigins) { this.showEnumOrigins = showEnumOrigins; diff --git a/src/main/java/com/merge/api/hris/types/EndUserDetailsRequest.java b/src/main/java/com/merge/api/hris/types/EndUserDetailsRequest.java index 80d64dd14..865019b86 100644 --- a/src/main/java/com/merge/api/hris/types/EndUserDetailsRequest.java +++ b/src/main/java/com/merge/api/hris/types/EndUserDetailsRequest.java @@ -249,48 +249,78 @@ public static EndUserEmailAddressStage builder() { } public interface EndUserEmailAddressStage { + /** + * Your end user's email address. This is purely for identification purposes - setting this value will not cause any emails to be sent. + */ EndUserOrganizationNameStage endUserEmailAddress(@NotNull String endUserEmailAddress); Builder from(EndUserDetailsRequest other); } public interface EndUserOrganizationNameStage { + /** + * Your end user's organization. + */ EndUserOriginIdStage endUserOrganizationName(@NotNull String endUserOrganizationName); } public interface EndUserOriginIdStage { + /** + * This unique identifier typically represents the ID for your end user in your product's database. This value must be distinct from other Linked Accounts' unique identifiers. + */ _FinalStage endUserOriginId(@NotNull String endUserOriginId); } public interface _FinalStage { EndUserDetailsRequest build(); + /** + *

                    The integration categories to show in Merge Link.

                    + */ _FinalStage categories(List categories); _FinalStage addCategories(CategoriesEnum categories); _FinalStage addAllCategories(List categories); + /** + *

                    The slug of a specific pre-selected integration for this linking flow token. For examples of slugs, see https://docs.merge.dev/guides/merge-link/single-integration/.

                    + */ _FinalStage integration(Optional integration); _FinalStage integration(String integration); + /** + *

                    An integer number of minutes between [30, 720 or 10080 if for a Magic Link URL] for how long this token is valid. Defaults to 30.

                    + */ _FinalStage linkExpiryMins(Optional linkExpiryMins); _FinalStage linkExpiryMins(Integer linkExpiryMins); + /** + *

                    Whether to generate a Magic Link URL. Defaults to false. For more information on Magic Link, see https://merge.dev/blog/integrations-fast-say-hello-to-magic-link.

                    + */ _FinalStage shouldCreateMagicLinkUrl(Optional shouldCreateMagicLinkUrl); _FinalStage shouldCreateMagicLinkUrl(Boolean shouldCreateMagicLinkUrl); + /** + *

                    Whether to generate a Magic Link URL on the Admin Needed screen during the linking flow. Defaults to false. For more information on Magic Link, see https://merge.dev/blog/integrations-fast-say-hello-to-magic-link.

                    + */ _FinalStage hideAdminMagicLink(Optional hideAdminMagicLink); _FinalStage hideAdminMagicLink(Boolean hideAdminMagicLink); + /** + *

                    An array of objects to specify the models and fields that will be disabled for a given Linked Account. Each object uses model_id, enabled_actions, and disabled_fields to specify the model, method, and fields that are scoped for a given Linked Account.

                    + */ _FinalStage commonModels(Optional> commonModels); _FinalStage commonModels(List commonModels); + /** + *

                    When creating a Link Token, you can set permissions for Common Models that will apply to the account that is going to be linked. Any model or field not specified in link token payload will default to existing settings.

                    + */ _FinalStage categoryCommonModelScopes( Optional>>> categoryCommonModelScopes); @@ -298,14 +328,27 @@ _FinalStage categoryCommonModelScopes( _FinalStage categoryCommonModelScopes( Map>> categoryCommonModelScopes); + /** + *

                    The following subset of IETF language tags can be used to configure localization.

                    + *
                      + *
                    • en - en
                    • + *
                    • de - de
                    • + *
                    + */ _FinalStage language(Optional language); _FinalStage language(LanguageEnum language); + /** + *

                    The boolean that indicates whether initial, periodic, and force syncs will be disabled.

                    + */ _FinalStage areSyncsDisabled(Optional areSyncsDisabled); _FinalStage areSyncsDisabled(Boolean areSyncsDisabled); + /** + *

                    A JSON object containing integration-specific configuration options.

                    + */ _FinalStage integrationSpecificConfig(Optional> integrationSpecificConfig); _FinalStage integrationSpecificConfig(Map integrationSpecificConfig); @@ -365,7 +408,7 @@ public Builder from(EndUserDetailsRequest other) { } /** - *

                    Your end user's email address. This is purely for identification purposes - setting this value will not cause any emails to be sent.

                    + * Your end user's email address. This is purely for identification purposes - setting this value will not cause any emails to be sent.

                    Your end user's email address. This is purely for identification purposes - setting this value will not cause any emails to be sent.

                    * @return Reference to {@code this} so that method calls can be chained together. */ @java.lang.Override @@ -376,7 +419,7 @@ public EndUserOrganizationNameStage endUserEmailAddress(@NotNull String endUserE } /** - *

                    Your end user's organization.

                    + * Your end user's organization.

                    Your end user's organization.

                    * @return Reference to {@code this} so that method calls can be chained together. */ @java.lang.Override @@ -387,7 +430,7 @@ public EndUserOriginIdStage endUserOrganizationName(@NotNull String endUserOrgan } /** - *

                    This unique identifier typically represents the ID for your end user in your product's database. This value must be distinct from other Linked Accounts' unique identifiers.

                    + * This unique identifier typically represents the ID for your end user in your product's database. This value must be distinct from other Linked Accounts' unique identifiers.

                    This unique identifier typically represents the ID for your end user in your product's database. This value must be distinct from other Linked Accounts' unique identifiers.

                    * @return Reference to {@code this} so that method calls can be chained together. */ @java.lang.Override @@ -407,6 +450,9 @@ public _FinalStage integrationSpecificConfig(Map integrationSp return this; } + /** + *

                    A JSON object containing integration-specific configuration options.

                    + */ @java.lang.Override @JsonSetter(value = "integration_specific_config", nulls = Nulls.SKIP) public _FinalStage integrationSpecificConfig(Optional> integrationSpecificConfig) { @@ -424,6 +470,9 @@ public _FinalStage areSyncsDisabled(Boolean areSyncsDisabled) { return this; } + /** + *

                    The boolean that indicates whether initial, periodic, and force syncs will be disabled.

                    + */ @java.lang.Override @JsonSetter(value = "are_syncs_disabled", nulls = Nulls.SKIP) public _FinalStage areSyncsDisabled(Optional areSyncsDisabled) { @@ -445,6 +494,13 @@ public _FinalStage language(LanguageEnum language) { return this; } + /** + *

                    The following subset of IETF language tags can be used to configure localization.

                    + *
                      + *
                    • en - en
                    • + *
                    • de - de
                    • + *
                    + */ @java.lang.Override @JsonSetter(value = "language", nulls = Nulls.SKIP) public _FinalStage language(Optional language) { @@ -463,6 +519,9 @@ public _FinalStage categoryCommonModelScopes( return this; } + /** + *

                    When creating a Link Token, you can set permissions for Common Models that will apply to the account that is going to be linked. Any model or field not specified in link token payload will default to existing settings.

                    + */ @java.lang.Override @JsonSetter(value = "category_common_model_scopes", nulls = Nulls.SKIP) public _FinalStage categoryCommonModelScopes( @@ -482,6 +541,9 @@ public _FinalStage commonModels(List commonModels) return this; } + /** + *

                    An array of objects to specify the models and fields that will be disabled for a given Linked Account. Each object uses model_id, enabled_actions, and disabled_fields to specify the model, method, and fields that are scoped for a given Linked Account.

                    + */ @java.lang.Override @JsonSetter(value = "common_models", nulls = Nulls.SKIP) public _FinalStage commonModels(Optional> commonModels) { @@ -499,6 +561,9 @@ public _FinalStage hideAdminMagicLink(Boolean hideAdminMagicLink) { return this; } + /** + *

                    Whether to generate a Magic Link URL on the Admin Needed screen during the linking flow. Defaults to false. For more information on Magic Link, see https://merge.dev/blog/integrations-fast-say-hello-to-magic-link.

                    + */ @java.lang.Override @JsonSetter(value = "hide_admin_magic_link", nulls = Nulls.SKIP) public _FinalStage hideAdminMagicLink(Optional hideAdminMagicLink) { @@ -516,6 +581,9 @@ public _FinalStage shouldCreateMagicLinkUrl(Boolean shouldCreateMagicLinkUrl) { return this; } + /** + *

                    Whether to generate a Magic Link URL. Defaults to false. For more information on Magic Link, see https://merge.dev/blog/integrations-fast-say-hello-to-magic-link.

                    + */ @java.lang.Override @JsonSetter(value = "should_create_magic_link_url", nulls = Nulls.SKIP) public _FinalStage shouldCreateMagicLinkUrl(Optional shouldCreateMagicLinkUrl) { @@ -533,6 +601,9 @@ public _FinalStage linkExpiryMins(Integer linkExpiryMins) { return this; } + /** + *

                    An integer number of minutes between [30, 720 or 10080 if for a Magic Link URL] for how long this token is valid. Defaults to 30.

                    + */ @java.lang.Override @JsonSetter(value = "link_expiry_mins", nulls = Nulls.SKIP) public _FinalStage linkExpiryMins(Optional linkExpiryMins) { @@ -550,6 +621,9 @@ public _FinalStage integration(String integration) { return this; } + /** + *

                    The slug of a specific pre-selected integration for this linking flow token. For examples of slugs, see https://docs.merge.dev/guides/merge-link/single-integration/.

                    + */ @java.lang.Override @JsonSetter(value = "integration", nulls = Nulls.SKIP) public _FinalStage integration(Optional integration) { @@ -577,6 +651,9 @@ public _FinalStage addCategories(CategoriesEnum categories) { return this; } + /** + *

                    The integration categories to show in Merge Link.

                    + */ @java.lang.Override @JsonSetter(value = "categories", nulls = Nulls.SKIP) public _FinalStage categories(List categories) { diff --git a/src/main/java/com/merge/api/hris/types/FieldMappingsRetrieveRequest.java b/src/main/java/com/merge/api/hris/types/FieldMappingsRetrieveRequest.java index 7ccfc9dec..1a9a26b0c 100644 --- a/src/main/java/com/merge/api/hris/types/FieldMappingsRetrieveRequest.java +++ b/src/main/java/com/merge/api/hris/types/FieldMappingsRetrieveRequest.java @@ -81,6 +81,9 @@ public Builder from(FieldMappingsRetrieveRequest other) { return this; } + /** + *

                    If true, remote fields metadata is excluded from each field mapping instance (i.e. remote_fields.remote_key_name and remote_fields.schema will be null). This will increase the speed of the request since these fields require some calculations.

                    + */ @JsonSetter(value = "exclude_remote_field_metadata", nulls = Nulls.SKIP) public Builder excludeRemoteFieldMetadata(Optional excludeRemoteFieldMetadata) { this.excludeRemoteFieldMetadata = excludeRemoteFieldMetadata; diff --git a/src/main/java/com/merge/api/hris/types/GenerateRemoteKeyRequest.java b/src/main/java/com/merge/api/hris/types/GenerateRemoteKeyRequest.java index 86200349b..5be2a89b2 100644 --- a/src/main/java/com/merge/api/hris/types/GenerateRemoteKeyRequest.java +++ b/src/main/java/com/merge/api/hris/types/GenerateRemoteKeyRequest.java @@ -66,6 +66,9 @@ public static NameStage builder() { } public interface NameStage { + /** + * The name of the remote key + */ _FinalStage name(@NotNull String name); Builder from(GenerateRemoteKeyRequest other); @@ -91,7 +94,7 @@ public Builder from(GenerateRemoteKeyRequest other) { } /** - *

                    The name of the remote key

                    + * The name of the remote key

                    The name of the remote key

                    * @return Reference to {@code this} so that method calls can be chained together. */ @java.lang.Override diff --git a/src/main/java/com/merge/api/hris/types/Group.java b/src/main/java/com/merge/api/hris/types/Group.java index cbf46f61d..ac1f3f110 100644 --- a/src/main/java/com/merge/api/hris/types/Group.java +++ b/src/main/java/com/merge/api/hris/types/Group.java @@ -265,6 +265,9 @@ public Builder id(String id) { return this; } + /** + *

                    The third-party API ID of the matching object.

                    + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; @@ -276,6 +279,9 @@ public Builder remoteId(String remoteId) { return this; } + /** + *

                    The datetime that this object was created by Merge.

                    + */ @JsonSetter(value = "created_at", nulls = Nulls.SKIP) public Builder createdAt(Optional createdAt) { this.createdAt = createdAt; @@ -287,6 +293,9 @@ public Builder createdAt(OffsetDateTime createdAt) { return this; } + /** + *

                    The datetime that this object was modified by Merge.

                    + */ @JsonSetter(value = "modified_at", nulls = Nulls.SKIP) public Builder modifiedAt(Optional modifiedAt) { this.modifiedAt = modifiedAt; @@ -298,6 +307,9 @@ public Builder modifiedAt(OffsetDateTime modifiedAt) { return this; } + /** + *

                    The parent group for this group.

                    + */ @JsonSetter(value = "parent_group", nulls = Nulls.SKIP) public Builder parentGroup(Optional parentGroup) { this.parentGroup = parentGroup; @@ -309,6 +321,9 @@ public Builder parentGroup(String parentGroup) { return this; } + /** + *

                    The group name.

                    + */ @JsonSetter(value = "name", nulls = Nulls.SKIP) public Builder name(Optional name) { this.name = name; @@ -320,6 +335,16 @@ public Builder name(String name) { return this; } + /** + *

                    The Group type returned directly from the third-party.

                    + *
                      + *
                    • TEAM - TEAM
                    • + *
                    • DEPARTMENT - DEPARTMENT
                    • + *
                    • COST_CENTER - COST_CENTER
                    • + *
                    • BUSINESS_UNIT - BUSINESS_UNIT
                    • + *
                    • GROUP - GROUP
                    • + *
                    + */ @JsonSetter(value = "type", nulls = Nulls.SKIP) public Builder type(Optional type) { this.type = type; @@ -331,6 +356,9 @@ public Builder type(GroupTypeEnum type) { return this; } + /** + *

                    Indicates whether the Group refers to a team in the third party platform. Note that this is an opinionated view based on how Merge observes most organizations representing teams in each third party platform. If your customer uses a platform different from most, there is a chance this will not be correct.

                    + */ @JsonSetter(value = "is_commonly_used_as_team", nulls = Nulls.SKIP) public Builder isCommonlyUsedAsTeam(Optional isCommonlyUsedAsTeam) { this.isCommonlyUsedAsTeam = isCommonlyUsedAsTeam; @@ -342,6 +370,9 @@ public Builder isCommonlyUsedAsTeam(Boolean isCommonlyUsedAsTeam) { return this; } + /** + *

                    Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

                    + */ @JsonSetter(value = "remote_was_deleted", nulls = Nulls.SKIP) public Builder remoteWasDeleted(Optional remoteWasDeleted) { this.remoteWasDeleted = remoteWasDeleted; diff --git a/src/main/java/com/merge/api/hris/types/GroupsListRequest.java b/src/main/java/com/merge/api/hris/types/GroupsListRequest.java index 6478d6ab1..10a75a14c 100644 --- a/src/main/java/com/merge/api/hris/types/GroupsListRequest.java +++ b/src/main/java/com/merge/api/hris/types/GroupsListRequest.java @@ -322,6 +322,9 @@ public Builder from(GroupsListRequest other) { return this; } + /** + *

                    If provided, will only return objects created after this datetime.

                    + */ @JsonSetter(value = "created_after", nulls = Nulls.SKIP) public Builder createdAfter(Optional createdAfter) { this.createdAfter = createdAfter; @@ -333,6 +336,9 @@ public Builder createdAfter(OffsetDateTime createdAfter) { return this; } + /** + *

                    If provided, will only return objects created before this datetime.

                    + */ @JsonSetter(value = "created_before", nulls = Nulls.SKIP) public Builder createdBefore(Optional createdBefore) { this.createdBefore = createdBefore; @@ -344,6 +350,9 @@ public Builder createdBefore(OffsetDateTime createdBefore) { return this; } + /** + *

                    The pagination cursor value.

                    + */ @JsonSetter(value = "cursor", nulls = Nulls.SKIP) public Builder cursor(Optional cursor) { this.cursor = cursor; @@ -355,6 +364,9 @@ public Builder cursor(String cursor) { return this; } + /** + *

                    Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

                    + */ @JsonSetter(value = "include_deleted_data", nulls = Nulls.SKIP) public Builder includeDeletedData(Optional includeDeletedData) { this.includeDeletedData = includeDeletedData; @@ -366,6 +378,9 @@ public Builder includeDeletedData(Boolean includeDeletedData) { return this; } + /** + *

                    Whether to include the original data Merge fetched from the third-party to produce these models.

                    + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -377,6 +392,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

                    Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

                    + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; @@ -388,6 +406,9 @@ public Builder includeShellData(Boolean includeShellData) { return this; } + /** + *

                    If provided, specifies whether to return only Group objects which refer to a team in the third party platform. Note that this is an opinionated view based on how a team may be represented in the third party platform.

                    + */ @JsonSetter(value = "is_commonly_used_as_team", nulls = Nulls.SKIP) public Builder isCommonlyUsedAsTeam(Optional isCommonlyUsedAsTeam) { this.isCommonlyUsedAsTeam = isCommonlyUsedAsTeam; @@ -399,6 +420,9 @@ public Builder isCommonlyUsedAsTeam(String isCommonlyUsedAsTeam) { return this; } + /** + *

                    If provided, only objects synced by Merge after this date time will be returned.

                    + */ @JsonSetter(value = "modified_after", nulls = Nulls.SKIP) public Builder modifiedAfter(Optional modifiedAfter) { this.modifiedAfter = modifiedAfter; @@ -410,6 +434,9 @@ public Builder modifiedAfter(OffsetDateTime modifiedAfter) { return this; } + /** + *

                    If provided, only objects synced by Merge before this date time will be returned.

                    + */ @JsonSetter(value = "modified_before", nulls = Nulls.SKIP) public Builder modifiedBefore(Optional modifiedBefore) { this.modifiedBefore = modifiedBefore; @@ -421,6 +448,9 @@ public Builder modifiedBefore(OffsetDateTime modifiedBefore) { return this; } + /** + *

                    If provided, will only return groups with these names. Multiple values can be separated by commas.

                    + */ @JsonSetter(value = "names", nulls = Nulls.SKIP) public Builder names(Optional names) { this.names = names; @@ -432,6 +462,9 @@ public Builder names(String names) { return this; } + /** + *

                    Number of results to return per page.

                    + */ @JsonSetter(value = "page_size", nulls = Nulls.SKIP) public Builder pageSize(Optional pageSize) { this.pageSize = pageSize; @@ -443,6 +476,9 @@ public Builder pageSize(Integer pageSize) { return this; } + /** + *

                    Deprecated. Use show_enum_origins.

                    + */ @JsonSetter(value = "remote_fields", nulls = Nulls.SKIP) public Builder remoteFields(Optional remoteFields) { this.remoteFields = remoteFields; @@ -454,6 +490,9 @@ public Builder remoteFields(String remoteFields) { return this; } + /** + *

                    The API provider's ID for the given object.

                    + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; @@ -465,6 +504,9 @@ public Builder remoteId(String remoteId) { return this; } + /** + *

                    A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. Learn more

                    + */ @JsonSetter(value = "show_enum_origins", nulls = Nulls.SKIP) public Builder showEnumOrigins(Optional showEnumOrigins) { this.showEnumOrigins = showEnumOrigins; @@ -476,6 +518,9 @@ public Builder showEnumOrigins(String showEnumOrigins) { return this; } + /** + *

                    If provided, will only return groups of these types. Multiple values can be separated by commas.

                    + */ @JsonSetter(value = "types", nulls = Nulls.SKIP) public Builder types(Optional types) { this.types = types; diff --git a/src/main/java/com/merge/api/hris/types/GroupsRetrieveRequest.java b/src/main/java/com/merge/api/hris/types/GroupsRetrieveRequest.java index c5bca2763..74838340a 100644 --- a/src/main/java/com/merge/api/hris/types/GroupsRetrieveRequest.java +++ b/src/main/java/com/merge/api/hris/types/GroupsRetrieveRequest.java @@ -130,6 +130,9 @@ public Builder from(GroupsRetrieveRequest other) { return this; } + /** + *

                    Whether to include the original data Merge fetched from the third-party to produce these models.

                    + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -141,6 +144,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

                    Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

                    + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; @@ -152,6 +158,9 @@ public Builder includeShellData(Boolean includeShellData) { return this; } + /** + *

                    Deprecated. Use show_enum_origins.

                    + */ @JsonSetter(value = "remote_fields", nulls = Nulls.SKIP) public Builder remoteFields(Optional remoteFields) { this.remoteFields = remoteFields; @@ -163,6 +172,9 @@ public Builder remoteFields(String remoteFields) { return this; } + /** + *

                    A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. Learn more

                    + */ @JsonSetter(value = "show_enum_origins", nulls = Nulls.SKIP) public Builder showEnumOrigins(Optional showEnumOrigins) { this.showEnumOrigins = showEnumOrigins; diff --git a/src/main/java/com/merge/api/hris/types/Issue.java b/src/main/java/com/merge/api/hris/types/Issue.java index a4a7ef0d6..b64536723 100644 --- a/src/main/java/com/merge/api/hris/types/Issue.java +++ b/src/main/java/com/merge/api/hris/types/Issue.java @@ -167,6 +167,13 @@ public interface _FinalStage { _FinalStage id(String id); + /** + *

                    Status of the issue. Options: ('ONGOING', 'RESOLVED')

                    + *
                      + *
                    • ONGOING - ONGOING
                    • + *
                    • RESOLVED - RESOLVED
                    • + *
                    + */ _FinalStage status(Optional status); _FinalStage status(IssueStatusEnum status); @@ -314,6 +321,13 @@ public _FinalStage status(IssueStatusEnum status) { return this; } + /** + *

                    Status of the issue. Options: ('ONGOING', 'RESOLVED')

                    + *
                      + *
                    • ONGOING - ONGOING
                    • + *
                    • RESOLVED - RESOLVED
                    • + *
                    + */ @java.lang.Override @JsonSetter(value = "status", nulls = Nulls.SKIP) public _FinalStage status(Optional status) { diff --git a/src/main/java/com/merge/api/hris/types/IssuesListRequest.java b/src/main/java/com/merge/api/hris/types/IssuesListRequest.java index b6de6bd8f..741cf3a6c 100644 --- a/src/main/java/com/merge/api/hris/types/IssuesListRequest.java +++ b/src/main/java/com/merge/api/hris/types/IssuesListRequest.java @@ -311,6 +311,9 @@ public Builder accountToken(String accountToken) { return this; } + /** + *

                    The pagination cursor value.

                    + */ @JsonSetter(value = "cursor", nulls = Nulls.SKIP) public Builder cursor(Optional cursor) { this.cursor = cursor; @@ -322,6 +325,9 @@ public Builder cursor(String cursor) { return this; } + /** + *

                    If included, will only include issues whose most recent action occurred before this time

                    + */ @JsonSetter(value = "end_date", nulls = Nulls.SKIP) public Builder endDate(Optional endDate) { this.endDate = endDate; @@ -344,6 +350,9 @@ public Builder endUserOrganizationName(String endUserOrganizationName) { return this; } + /** + *

                    If provided, will only return issues whose first incident time was after this datetime.

                    + */ @JsonSetter(value = "first_incident_time_after", nulls = Nulls.SKIP) public Builder firstIncidentTimeAfter(Optional firstIncidentTimeAfter) { this.firstIncidentTimeAfter = firstIncidentTimeAfter; @@ -355,6 +364,9 @@ public Builder firstIncidentTimeAfter(OffsetDateTime firstIncidentTimeAfter) { return this; } + /** + *

                    If provided, will only return issues whose first incident time was before this datetime.

                    + */ @JsonSetter(value = "first_incident_time_before", nulls = Nulls.SKIP) public Builder firstIncidentTimeBefore(Optional firstIncidentTimeBefore) { this.firstIncidentTimeBefore = firstIncidentTimeBefore; @@ -366,6 +378,9 @@ public Builder firstIncidentTimeBefore(OffsetDateTime firstIncidentTimeBefore) { return this; } + /** + *

                    If true, will include muted issues

                    + */ @JsonSetter(value = "include_muted", nulls = Nulls.SKIP) public Builder includeMuted(Optional includeMuted) { this.includeMuted = includeMuted; @@ -388,6 +403,9 @@ public Builder integrationName(String integrationName) { return this; } + /** + *

                    If provided, will only return issues whose last incident time was after this datetime.

                    + */ @JsonSetter(value = "last_incident_time_after", nulls = Nulls.SKIP) public Builder lastIncidentTimeAfter(Optional lastIncidentTimeAfter) { this.lastIncidentTimeAfter = lastIncidentTimeAfter; @@ -399,6 +417,9 @@ public Builder lastIncidentTimeAfter(OffsetDateTime lastIncidentTimeAfter) { return this; } + /** + *

                    If provided, will only return issues whose last incident time was before this datetime.

                    + */ @JsonSetter(value = "last_incident_time_before", nulls = Nulls.SKIP) public Builder lastIncidentTimeBefore(Optional lastIncidentTimeBefore) { this.lastIncidentTimeBefore = lastIncidentTimeBefore; @@ -410,6 +431,9 @@ public Builder lastIncidentTimeBefore(OffsetDateTime lastIncidentTimeBefore) { return this; } + /** + *

                    If provided, will only include issues pertaining to the linked account passed in.

                    + */ @JsonSetter(value = "linked_account_id", nulls = Nulls.SKIP) public Builder linkedAccountId(Optional linkedAccountId) { this.linkedAccountId = linkedAccountId; @@ -421,6 +445,9 @@ public Builder linkedAccountId(String linkedAccountId) { return this; } + /** + *

                    Number of results to return per page.

                    + */ @JsonSetter(value = "page_size", nulls = Nulls.SKIP) public Builder pageSize(Optional pageSize) { this.pageSize = pageSize; @@ -432,6 +459,9 @@ public Builder pageSize(Integer pageSize) { return this; } + /** + *

                    If included, will only include issues whose most recent action occurred after this time

                    + */ @JsonSetter(value = "start_date", nulls = Nulls.SKIP) public Builder startDate(Optional startDate) { this.startDate = startDate; @@ -443,6 +473,13 @@ public Builder startDate(String startDate) { return this; } + /** + *

                    Status of the issue. Options: ('ONGOING', 'RESOLVED')

                    + *
                      + *
                    • ONGOING - ONGOING
                    • + *
                    • RESOLVED - RESOLVED
                    • + *
                    + */ @JsonSetter(value = "status", nulls = Nulls.SKIP) public Builder status(Optional status) { this.status = status; diff --git a/src/main/java/com/merge/api/hris/types/LinkedAccountCommonModelScopeDeserializerRequest.java b/src/main/java/com/merge/api/hris/types/LinkedAccountCommonModelScopeDeserializerRequest.java index a50bab99b..dec1445b6 100644 --- a/src/main/java/com/merge/api/hris/types/LinkedAccountCommonModelScopeDeserializerRequest.java +++ b/src/main/java/com/merge/api/hris/types/LinkedAccountCommonModelScopeDeserializerRequest.java @@ -84,6 +84,9 @@ public Builder from(LinkedAccountCommonModelScopeDeserializerRequest other) { return this; } + /** + *

                    The common models you want to update the scopes for

                    + */ @JsonSetter(value = "common_models", nulls = Nulls.SKIP) public Builder commonModels(List commonModels) { this.commonModels.clear(); diff --git a/src/main/java/com/merge/api/hris/types/LinkedAccountsListRequest.java b/src/main/java/com/merge/api/hris/types/LinkedAccountsListRequest.java index 11ce60162..0b04fc561 100644 --- a/src/main/java/com/merge/api/hris/types/LinkedAccountsListRequest.java +++ b/src/main/java/com/merge/api/hris/types/LinkedAccountsListRequest.java @@ -293,6 +293,18 @@ public Builder from(LinkedAccountsListRequest other) { return this; } + /** + *

                    Options: accounting, ats, crm, filestorage, hris, mktg, ticketing

                    + *
                      + *
                    • hris - hris
                    • + *
                    • ats - ats
                    • + *
                    • accounting - accounting
                    • + *
                    • ticketing - ticketing
                    • + *
                    • crm - crm
                    • + *
                    • mktg - mktg
                    • + *
                    • filestorage - filestorage
                    • + *
                    + */ @JsonSetter(value = "category", nulls = Nulls.SKIP) public Builder category(Optional category) { this.category = category; @@ -304,6 +316,9 @@ public Builder category(LinkedAccountsListRequestCategory category) { return this; } + /** + *

                    The pagination cursor value.

                    + */ @JsonSetter(value = "cursor", nulls = Nulls.SKIP) public Builder cursor(Optional cursor) { this.cursor = cursor; @@ -315,6 +330,9 @@ public Builder cursor(String cursor) { return this; } + /** + *

                    If provided, will only return linked accounts associated with the given email address.

                    + */ @JsonSetter(value = "end_user_email_address", nulls = Nulls.SKIP) public Builder endUserEmailAddress(Optional endUserEmailAddress) { this.endUserEmailAddress = endUserEmailAddress; @@ -326,6 +344,9 @@ public Builder endUserEmailAddress(String endUserEmailAddress) { return this; } + /** + *

                    If provided, will only return linked accounts associated with the given organization name.

                    + */ @JsonSetter(value = "end_user_organization_name", nulls = Nulls.SKIP) public Builder endUserOrganizationName(Optional endUserOrganizationName) { this.endUserOrganizationName = endUserOrganizationName; @@ -337,6 +358,9 @@ public Builder endUserOrganizationName(String endUserOrganizationName) { return this; } + /** + *

                    If provided, will only return linked accounts associated with the given origin ID.

                    + */ @JsonSetter(value = "end_user_origin_id", nulls = Nulls.SKIP) public Builder endUserOriginId(Optional endUserOriginId) { this.endUserOriginId = endUserOriginId; @@ -348,6 +372,9 @@ public Builder endUserOriginId(String endUserOriginId) { return this; } + /** + *

                    Comma-separated list of EndUser origin IDs, making it possible to specify multiple EndUsers at once.

                    + */ @JsonSetter(value = "end_user_origin_ids", nulls = Nulls.SKIP) public Builder endUserOriginIds(Optional endUserOriginIds) { this.endUserOriginIds = endUserOriginIds; @@ -370,6 +397,9 @@ public Builder id(String id) { return this; } + /** + *

                    Comma-separated list of LinkedAccount IDs, making it possible to specify multiple LinkedAccounts at once.

                    + */ @JsonSetter(value = "ids", nulls = Nulls.SKIP) public Builder ids(Optional ids) { this.ids = ids; @@ -381,6 +411,9 @@ public Builder ids(String ids) { return this; } + /** + *

                    If true, will include complete production duplicates of the account specified by the id query parameter in the response. id must be for a complete production linked account.

                    + */ @JsonSetter(value = "include_duplicates", nulls = Nulls.SKIP) public Builder includeDuplicates(Optional includeDuplicates) { this.includeDuplicates = includeDuplicates; @@ -392,6 +425,9 @@ public Builder includeDuplicates(Boolean includeDuplicates) { return this; } + /** + *

                    If provided, will only return linked accounts associated with the given integration name.

                    + */ @JsonSetter(value = "integration_name", nulls = Nulls.SKIP) public Builder integrationName(Optional integrationName) { this.integrationName = integrationName; @@ -403,6 +439,9 @@ public Builder integrationName(String integrationName) { return this; } + /** + *

                    If included, will only include test linked accounts. If not included, will only include non-test linked accounts.

                    + */ @JsonSetter(value = "is_test_account", nulls = Nulls.SKIP) public Builder isTestAccount(Optional isTestAccount) { this.isTestAccount = isTestAccount; @@ -414,6 +453,9 @@ public Builder isTestAccount(String isTestAccount) { return this; } + /** + *

                    Number of results to return per page.

                    + */ @JsonSetter(value = "page_size", nulls = Nulls.SKIP) public Builder pageSize(Optional pageSize) { this.pageSize = pageSize; @@ -425,6 +467,9 @@ public Builder pageSize(Integer pageSize) { return this; } + /** + *

                    Filter by status. Options: COMPLETE, IDLE, INCOMPLETE, RELINK_NEEDED

                    + */ @JsonSetter(value = "status", nulls = Nulls.SKIP) public Builder status(Optional status) { this.status = status; diff --git a/src/main/java/com/merge/api/hris/types/Location.java b/src/main/java/com/merge/api/hris/types/Location.java index f868d38b0..ba63f8c9e 100644 --- a/src/main/java/com/merge/api/hris/types/Location.java +++ b/src/main/java/com/merge/api/hris/types/Location.java @@ -598,6 +598,9 @@ public Builder id(String id) { return this; } + /** + *

                    The third-party API ID of the matching object.

                    + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; @@ -609,6 +612,9 @@ public Builder remoteId(String remoteId) { return this; } + /** + *

                    The datetime that this object was created by Merge.

                    + */ @JsonSetter(value = "created_at", nulls = Nulls.SKIP) public Builder createdAt(Optional createdAt) { this.createdAt = createdAt; @@ -620,6 +626,9 @@ public Builder createdAt(OffsetDateTime createdAt) { return this; } + /** + *

                    The datetime that this object was modified by Merge.

                    + */ @JsonSetter(value = "modified_at", nulls = Nulls.SKIP) public Builder modifiedAt(Optional modifiedAt) { this.modifiedAt = modifiedAt; @@ -631,6 +640,9 @@ public Builder modifiedAt(OffsetDateTime modifiedAt) { return this; } + /** + *

                    The location's name.

                    + */ @JsonSetter(value = "name", nulls = Nulls.SKIP) public Builder name(Optional name) { this.name = name; @@ -642,6 +654,9 @@ public Builder name(String name) { return this; } + /** + *

                    The location's phone number.

                    + */ @JsonSetter(value = "phone_number", nulls = Nulls.SKIP) public Builder phoneNumber(Optional phoneNumber) { this.phoneNumber = phoneNumber; @@ -653,6 +668,9 @@ public Builder phoneNumber(String phoneNumber) { return this; } + /** + *

                    Line 1 of the location's street address.

                    + */ @JsonSetter(value = "street_1", nulls = Nulls.SKIP) public Builder street1(Optional street1) { this.street1 = street1; @@ -664,6 +682,9 @@ public Builder street1(String street1) { return this; } + /** + *

                    Line 2 of the location's street address.

                    + */ @JsonSetter(value = "street_2", nulls = Nulls.SKIP) public Builder street2(Optional street2) { this.street2 = street2; @@ -675,6 +696,9 @@ public Builder street2(String street2) { return this; } + /** + *

                    The location's city.

                    + */ @JsonSetter(value = "city", nulls = Nulls.SKIP) public Builder city(Optional city) { this.city = city; @@ -686,6 +710,9 @@ public Builder city(String city) { return this; } + /** + *

                    The location's state. Represents a region if outside of the US.

                    + */ @JsonSetter(value = "state", nulls = Nulls.SKIP) public Builder state(Optional state) { this.state = state; @@ -697,6 +724,9 @@ public Builder state(String state) { return this; } + /** + *

                    The location's zip code or postal code.

                    + */ @JsonSetter(value = "zip_code", nulls = Nulls.SKIP) public Builder zipCode(Optional zipCode) { this.zipCode = zipCode; @@ -708,6 +738,260 @@ public Builder zipCode(String zipCode) { return this; } + /** + *

                    The location's country.

                    + *
                      + *
                    • AF - Afghanistan
                    • + *
                    • AX - Åland Islands
                    • + *
                    • AL - Albania
                    • + *
                    • DZ - Algeria
                    • + *
                    • AS - American Samoa
                    • + *
                    • AD - Andorra
                    • + *
                    • AO - Angola
                    • + *
                    • AI - Anguilla
                    • + *
                    • AQ - Antarctica
                    • + *
                    • AG - Antigua and Barbuda
                    • + *
                    • AR - Argentina
                    • + *
                    • AM - Armenia
                    • + *
                    • AW - Aruba
                    • + *
                    • AU - Australia
                    • + *
                    • AT - Austria
                    • + *
                    • AZ - Azerbaijan
                    • + *
                    • BS - Bahamas
                    • + *
                    • BH - Bahrain
                    • + *
                    • BD - Bangladesh
                    • + *
                    • BB - Barbados
                    • + *
                    • BY - Belarus
                    • + *
                    • BE - Belgium
                    • + *
                    • BZ - Belize
                    • + *
                    • BJ - Benin
                    • + *
                    • BM - Bermuda
                    • + *
                    • BT - Bhutan
                    • + *
                    • BO - Bolivia
                    • + *
                    • BQ - Bonaire, Sint Eustatius and Saba
                    • + *
                    • BA - Bosnia and Herzegovina
                    • + *
                    • BW - Botswana
                    • + *
                    • BV - Bouvet Island
                    • + *
                    • BR - Brazil
                    • + *
                    • IO - British Indian Ocean Territory
                    • + *
                    • BN - Brunei
                    • + *
                    • BG - Bulgaria
                    • + *
                    • BF - Burkina Faso
                    • + *
                    • BI - Burundi
                    • + *
                    • CV - Cabo Verde
                    • + *
                    • KH - Cambodia
                    • + *
                    • CM - Cameroon
                    • + *
                    • CA - Canada
                    • + *
                    • KY - Cayman Islands
                    • + *
                    • CF - Central African Republic
                    • + *
                    • TD - Chad
                    • + *
                    • CL - Chile
                    • + *
                    • CN - China
                    • + *
                    • CX - Christmas Island
                    • + *
                    • CC - Cocos (Keeling) Islands
                    • + *
                    • CO - Colombia
                    • + *
                    • KM - Comoros
                    • + *
                    • CG - Congo
                    • + *
                    • CD - Congo (the Democratic Republic of the)
                    • + *
                    • CK - Cook Islands
                    • + *
                    • CR - Costa Rica
                    • + *
                    • CI - Côte d'Ivoire
                    • + *
                    • HR - Croatia
                    • + *
                    • CU - Cuba
                    • + *
                    • CW - Curaçao
                    • + *
                    • CY - Cyprus
                    • + *
                    • CZ - Czechia
                    • + *
                    • DK - Denmark
                    • + *
                    • DJ - Djibouti
                    • + *
                    • DM - Dominica
                    • + *
                    • DO - Dominican Republic
                    • + *
                    • EC - Ecuador
                    • + *
                    • EG - Egypt
                    • + *
                    • SV - El Salvador
                    • + *
                    • GQ - Equatorial Guinea
                    • + *
                    • ER - Eritrea
                    • + *
                    • EE - Estonia
                    • + *
                    • SZ - Eswatini
                    • + *
                    • ET - Ethiopia
                    • + *
                    • FK - Falkland Islands (Malvinas)
                    • + *
                    • FO - Faroe Islands
                    • + *
                    • FJ - Fiji
                    • + *
                    • FI - Finland
                    • + *
                    • FR - France
                    • + *
                    • GF - French Guiana
                    • + *
                    • PF - French Polynesia
                    • + *
                    • TF - French Southern Territories
                    • + *
                    • GA - Gabon
                    • + *
                    • GM - Gambia
                    • + *
                    • GE - Georgia
                    • + *
                    • DE - Germany
                    • + *
                    • GH - Ghana
                    • + *
                    • GI - Gibraltar
                    • + *
                    • GR - Greece
                    • + *
                    • GL - Greenland
                    • + *
                    • GD - Grenada
                    • + *
                    • GP - Guadeloupe
                    • + *
                    • GU - Guam
                    • + *
                    • GT - Guatemala
                    • + *
                    • GG - Guernsey
                    • + *
                    • GN - Guinea
                    • + *
                    • GW - Guinea-Bissau
                    • + *
                    • GY - Guyana
                    • + *
                    • HT - Haiti
                    • + *
                    • HM - Heard Island and McDonald Islands
                    • + *
                    • VA - Holy See
                    • + *
                    • HN - Honduras
                    • + *
                    • HK - Hong Kong
                    • + *
                    • HU - Hungary
                    • + *
                    • IS - Iceland
                    • + *
                    • IN - India
                    • + *
                    • ID - Indonesia
                    • + *
                    • IR - Iran
                    • + *
                    • IQ - Iraq
                    • + *
                    • IE - Ireland
                    • + *
                    • IM - Isle of Man
                    • + *
                    • IL - Israel
                    • + *
                    • IT - Italy
                    • + *
                    • JM - Jamaica
                    • + *
                    • JP - Japan
                    • + *
                    • JE - Jersey
                    • + *
                    • JO - Jordan
                    • + *
                    • KZ - Kazakhstan
                    • + *
                    • KE - Kenya
                    • + *
                    • KI - Kiribati
                    • + *
                    • KW - Kuwait
                    • + *
                    • KG - Kyrgyzstan
                    • + *
                    • LA - Laos
                    • + *
                    • LV - Latvia
                    • + *
                    • LB - Lebanon
                    • + *
                    • LS - Lesotho
                    • + *
                    • LR - Liberia
                    • + *
                    • LY - Libya
                    • + *
                    • LI - Liechtenstein
                    • + *
                    • LT - Lithuania
                    • + *
                    • LU - Luxembourg
                    • + *
                    • MO - Macao
                    • + *
                    • MG - Madagascar
                    • + *
                    • MW - Malawi
                    • + *
                    • MY - Malaysia
                    • + *
                    • MV - Maldives
                    • + *
                    • ML - Mali
                    • + *
                    • MT - Malta
                    • + *
                    • MH - Marshall Islands
                    • + *
                    • MQ - Martinique
                    • + *
                    • MR - Mauritania
                    • + *
                    • MU - Mauritius
                    • + *
                    • YT - Mayotte
                    • + *
                    • MX - Mexico
                    • + *
                    • FM - Micronesia (Federated States of)
                    • + *
                    • MD - Moldova
                    • + *
                    • MC - Monaco
                    • + *
                    • MN - Mongolia
                    • + *
                    • ME - Montenegro
                    • + *
                    • MS - Montserrat
                    • + *
                    • MA - Morocco
                    • + *
                    • MZ - Mozambique
                    • + *
                    • MM - Myanmar
                    • + *
                    • NA - Namibia
                    • + *
                    • NR - Nauru
                    • + *
                    • NP - Nepal
                    • + *
                    • NL - Netherlands
                    • + *
                    • NC - New Caledonia
                    • + *
                    • NZ - New Zealand
                    • + *
                    • NI - Nicaragua
                    • + *
                    • NE - Niger
                    • + *
                    • NG - Nigeria
                    • + *
                    • NU - Niue
                    • + *
                    • NF - Norfolk Island
                    • + *
                    • KP - North Korea
                    • + *
                    • MK - North Macedonia
                    • + *
                    • MP - Northern Mariana Islands
                    • + *
                    • NO - Norway
                    • + *
                    • OM - Oman
                    • + *
                    • PK - Pakistan
                    • + *
                    • PW - Palau
                    • + *
                    • PS - Palestine, State of
                    • + *
                    • PA - Panama
                    • + *
                    • PG - Papua New Guinea
                    • + *
                    • PY - Paraguay
                    • + *
                    • PE - Peru
                    • + *
                    • PH - Philippines
                    • + *
                    • PN - Pitcairn
                    • + *
                    • PL - Poland
                    • + *
                    • PT - Portugal
                    • + *
                    • PR - Puerto Rico
                    • + *
                    • QA - Qatar
                    • + *
                    • RE - Réunion
                    • + *
                    • RO - Romania
                    • + *
                    • RU - Russia
                    • + *
                    • RW - Rwanda
                    • + *
                    • BL - Saint Barthélemy
                    • + *
                    • SH - Saint Helena, Ascension and Tristan da Cunha
                    • + *
                    • KN - Saint Kitts and Nevis
                    • + *
                    • LC - Saint Lucia
                    • + *
                    • MF - Saint Martin (French part)
                    • + *
                    • PM - Saint Pierre and Miquelon
                    • + *
                    • VC - Saint Vincent and the Grenadines
                    • + *
                    • WS - Samoa
                    • + *
                    • SM - San Marino
                    • + *
                    • ST - Sao Tome and Principe
                    • + *
                    • SA - Saudi Arabia
                    • + *
                    • SN - Senegal
                    • + *
                    • RS - Serbia
                    • + *
                    • SC - Seychelles
                    • + *
                    • SL - Sierra Leone
                    • + *
                    • SG - Singapore
                    • + *
                    • SX - Sint Maarten (Dutch part)
                    • + *
                    • SK - Slovakia
                    • + *
                    • SI - Slovenia
                    • + *
                    • SB - Solomon Islands
                    • + *
                    • SO - Somalia
                    • + *
                    • ZA - South Africa
                    • + *
                    • GS - South Georgia and the South Sandwich Islands
                    • + *
                    • KR - South Korea
                    • + *
                    • SS - South Sudan
                    • + *
                    • ES - Spain
                    • + *
                    • LK - Sri Lanka
                    • + *
                    • SD - Sudan
                    • + *
                    • SR - Suriname
                    • + *
                    • SJ - Svalbard and Jan Mayen
                    • + *
                    • SE - Sweden
                    • + *
                    • CH - Switzerland
                    • + *
                    • SY - Syria
                    • + *
                    • TW - Taiwan
                    • + *
                    • TJ - Tajikistan
                    • + *
                    • TZ - Tanzania
                    • + *
                    • TH - Thailand
                    • + *
                    • TL - Timor-Leste
                    • + *
                    • TG - Togo
                    • + *
                    • TK - Tokelau
                    • + *
                    • TO - Tonga
                    • + *
                    • TT - Trinidad and Tobago
                    • + *
                    • TN - Tunisia
                    • + *
                    • TR - Turkey
                    • + *
                    • TM - Turkmenistan
                    • + *
                    • TC - Turks and Caicos Islands
                    • + *
                    • TV - Tuvalu
                    • + *
                    • UG - Uganda
                    • + *
                    • UA - Ukraine
                    • + *
                    • AE - United Arab Emirates
                    • + *
                    • GB - United Kingdom
                    • + *
                    • UM - United States Minor Outlying Islands
                    • + *
                    • US - United States of America
                    • + *
                    • UY - Uruguay
                    • + *
                    • UZ - Uzbekistan
                    • + *
                    • VU - Vanuatu
                    • + *
                    • VE - Venezuela
                    • + *
                    • VN - Vietnam
                    • + *
                    • VG - Virgin Islands (British)
                    • + *
                    • VI - Virgin Islands (U.S.)
                    • + *
                    • WF - Wallis and Futuna
                    • + *
                    • EH - Western Sahara
                    • + *
                    • YE - Yemen
                    • + *
                    • ZM - Zambia
                    • + *
                    • ZW - Zimbabwe
                    • + *
                    + */ @JsonSetter(value = "country", nulls = Nulls.SKIP) public Builder country(Optional country) { this.country = country; @@ -719,6 +1003,13 @@ public Builder country(CountryEnum country) { return this; } + /** + *

                    The location's type. Can be either WORK or HOME

                    + *
                      + *
                    • HOME - HOME
                    • + *
                    • WORK - WORK
                    • + *
                    + */ @JsonSetter(value = "location_type", nulls = Nulls.SKIP) public Builder locationType(Optional locationType) { this.locationType = locationType; @@ -730,6 +1021,9 @@ public Builder locationType(LocationTypeEnum locationType) { return this; } + /** + *

                    Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

                    + */ @JsonSetter(value = "remote_was_deleted", nulls = Nulls.SKIP) public Builder remoteWasDeleted(Optional remoteWasDeleted) { this.remoteWasDeleted = remoteWasDeleted; diff --git a/src/main/java/com/merge/api/hris/types/LocationsListRequest.java b/src/main/java/com/merge/api/hris/types/LocationsListRequest.java index 32c655153..5dbfd4312 100644 --- a/src/main/java/com/merge/api/hris/types/LocationsListRequest.java +++ b/src/main/java/com/merge/api/hris/types/LocationsListRequest.java @@ -292,6 +292,9 @@ public Builder from(LocationsListRequest other) { return this; } + /** + *

                    If provided, will only return objects created after this datetime.

                    + */ @JsonSetter(value = "created_after", nulls = Nulls.SKIP) public Builder createdAfter(Optional createdAfter) { this.createdAfter = createdAfter; @@ -303,6 +306,9 @@ public Builder createdAfter(OffsetDateTime createdAfter) { return this; } + /** + *

                    If provided, will only return objects created before this datetime.

                    + */ @JsonSetter(value = "created_before", nulls = Nulls.SKIP) public Builder createdBefore(Optional createdBefore) { this.createdBefore = createdBefore; @@ -314,6 +320,9 @@ public Builder createdBefore(OffsetDateTime createdBefore) { return this; } + /** + *

                    The pagination cursor value.

                    + */ @JsonSetter(value = "cursor", nulls = Nulls.SKIP) public Builder cursor(Optional cursor) { this.cursor = cursor; @@ -325,6 +334,9 @@ public Builder cursor(String cursor) { return this; } + /** + *

                    Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

                    + */ @JsonSetter(value = "include_deleted_data", nulls = Nulls.SKIP) public Builder includeDeletedData(Optional includeDeletedData) { this.includeDeletedData = includeDeletedData; @@ -336,6 +348,9 @@ public Builder includeDeletedData(Boolean includeDeletedData) { return this; } + /** + *

                    Whether to include the original data Merge fetched from the third-party to produce these models.

                    + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -347,6 +362,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

                    Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

                    + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; @@ -358,6 +376,13 @@ public Builder includeShellData(Boolean includeShellData) { return this; } + /** + *

                    If provided, will only return locations with this location_type

                    + *
                      + *
                    • HOME - HOME
                    • + *
                    • WORK - WORK
                    • + *
                    + */ @JsonSetter(value = "location_type", nulls = Nulls.SKIP) public Builder locationType(Optional locationType) { this.locationType = locationType; @@ -369,6 +394,9 @@ public Builder locationType(LocationsListRequestLocationType locationType) { return this; } + /** + *

                    If provided, only objects synced by Merge after this date time will be returned.

                    + */ @JsonSetter(value = "modified_after", nulls = Nulls.SKIP) public Builder modifiedAfter(Optional modifiedAfter) { this.modifiedAfter = modifiedAfter; @@ -380,6 +408,9 @@ public Builder modifiedAfter(OffsetDateTime modifiedAfter) { return this; } + /** + *

                    If provided, only objects synced by Merge before this date time will be returned.

                    + */ @JsonSetter(value = "modified_before", nulls = Nulls.SKIP) public Builder modifiedBefore(Optional modifiedBefore) { this.modifiedBefore = modifiedBefore; @@ -391,6 +422,9 @@ public Builder modifiedBefore(OffsetDateTime modifiedBefore) { return this; } + /** + *

                    Number of results to return per page.

                    + */ @JsonSetter(value = "page_size", nulls = Nulls.SKIP) public Builder pageSize(Optional pageSize) { this.pageSize = pageSize; @@ -402,6 +436,9 @@ public Builder pageSize(Integer pageSize) { return this; } + /** + *

                    Deprecated. Use show_enum_origins.

                    + */ @JsonSetter(value = "remote_fields", nulls = Nulls.SKIP) public Builder remoteFields(Optional remoteFields) { this.remoteFields = remoteFields; @@ -413,6 +450,9 @@ public Builder remoteFields(LocationsListRequestRemoteFields remoteFields) { return this; } + /** + *

                    The API provider's ID for the given object.

                    + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; @@ -424,6 +464,9 @@ public Builder remoteId(String remoteId) { return this; } + /** + *

                    A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. Learn more

                    + */ @JsonSetter(value = "show_enum_origins", nulls = Nulls.SKIP) public Builder showEnumOrigins(Optional showEnumOrigins) { this.showEnumOrigins = showEnumOrigins; diff --git a/src/main/java/com/merge/api/hris/types/LocationsRetrieveRequest.java b/src/main/java/com/merge/api/hris/types/LocationsRetrieveRequest.java index 4b1304f83..2629714c1 100644 --- a/src/main/java/com/merge/api/hris/types/LocationsRetrieveRequest.java +++ b/src/main/java/com/merge/api/hris/types/LocationsRetrieveRequest.java @@ -130,6 +130,9 @@ public Builder from(LocationsRetrieveRequest other) { return this; } + /** + *

                    Whether to include the original data Merge fetched from the third-party to produce these models.

                    + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -141,6 +144,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

                    Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

                    + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; @@ -152,6 +158,9 @@ public Builder includeShellData(Boolean includeShellData) { return this; } + /** + *

                    Deprecated. Use show_enum_origins.

                    + */ @JsonSetter(value = "remote_fields", nulls = Nulls.SKIP) public Builder remoteFields(Optional remoteFields) { this.remoteFields = remoteFields; @@ -163,6 +172,9 @@ public Builder remoteFields(LocationsRetrieveRequestRemoteFields remoteFields) { return this; } + /** + *

                    A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. Learn more

                    + */ @JsonSetter(value = "show_enum_origins", nulls = Nulls.SKIP) public Builder showEnumOrigins(Optional showEnumOrigins) { this.showEnumOrigins = showEnumOrigins; diff --git a/src/main/java/com/merge/api/hris/types/MultipartFormFieldRequest.java b/src/main/java/com/merge/api/hris/types/MultipartFormFieldRequest.java index 529443159..cadc8a410 100644 --- a/src/main/java/com/merge/api/hris/types/MultipartFormFieldRequest.java +++ b/src/main/java/com/merge/api/hris/types/MultipartFormFieldRequest.java @@ -127,26 +127,46 @@ public static NameStage builder() { } public interface NameStage { + /** + * The name of the form field + */ DataStage name(@NotNull String name); Builder from(MultipartFormFieldRequest other); } public interface DataStage { + /** + * The data for the form field. + */ _FinalStage data(@NotNull String data); } public interface _FinalStage { MultipartFormFieldRequest build(); + /** + *

                    The encoding of the value of data. Defaults to RAW if not defined.

                    + *
                      + *
                    • RAW - RAW
                    • + *
                    • BASE64 - BASE64
                    • + *
                    • GZIP_BASE64 - GZIP_BASE64
                    • + *
                    + */ _FinalStage encoding(Optional encoding); _FinalStage encoding(EncodingEnum encoding); + /** + *

                    The file name of the form field, if the field is for a file.

                    + */ _FinalStage fileName(Optional fileName); _FinalStage fileName(String fileName); + /** + *

                    The MIME type of the file, if the field is for a file.

                    + */ _FinalStage contentType(Optional contentType); _FinalStage contentType(String contentType); @@ -180,7 +200,7 @@ public Builder from(MultipartFormFieldRequest other) { } /** - *

                    The name of the form field

                    + * The name of the form field

                    The name of the form field

                    * @return Reference to {@code this} so that method calls can be chained together. */ @java.lang.Override @@ -191,7 +211,7 @@ public DataStage name(@NotNull String name) { } /** - *

                    The data for the form field.

                    + * The data for the form field.

                    The data for the form field.

                    * @return Reference to {@code this} so that method calls can be chained together. */ @java.lang.Override @@ -211,6 +231,9 @@ public _FinalStage contentType(String contentType) { return this; } + /** + *

                    The MIME type of the file, if the field is for a file.

                    + */ @java.lang.Override @JsonSetter(value = "content_type", nulls = Nulls.SKIP) public _FinalStage contentType(Optional contentType) { @@ -228,6 +251,9 @@ public _FinalStage fileName(String fileName) { return this; } + /** + *

                    The file name of the form field, if the field is for a file.

                    + */ @java.lang.Override @JsonSetter(value = "file_name", nulls = Nulls.SKIP) public _FinalStage fileName(Optional fileName) { @@ -250,6 +276,14 @@ public _FinalStage encoding(EncodingEnum encoding) { return this; } + /** + *

                    The encoding of the value of data. Defaults to RAW if not defined.

                    + *
                      + *
                    • RAW - RAW
                    • + *
                    • BASE64 - BASE64
                    • + *
                    • GZIP_BASE64 - GZIP_BASE64
                    • + *
                    + */ @java.lang.Override @JsonSetter(value = "encoding", nulls = Nulls.SKIP) public _FinalStage encoding(Optional encoding) { diff --git a/src/main/java/com/merge/api/hris/types/PatchedEditFieldMappingRequest.java b/src/main/java/com/merge/api/hris/types/PatchedEditFieldMappingRequest.java index 0cc25de6c..b8194466f 100644 --- a/src/main/java/com/merge/api/hris/types/PatchedEditFieldMappingRequest.java +++ b/src/main/java/com/merge/api/hris/types/PatchedEditFieldMappingRequest.java @@ -116,6 +116,9 @@ public Builder from(PatchedEditFieldMappingRequest other) { return this; } + /** + *

                    The field traversal path of the remote field listed when you hit the GET /remote-fields endpoint.

                    + */ @JsonSetter(value = "remote_field_traversal_path", nulls = Nulls.SKIP) public Builder remoteFieldTraversalPath(Optional> remoteFieldTraversalPath) { this.remoteFieldTraversalPath = remoteFieldTraversalPath; @@ -127,6 +130,9 @@ public Builder remoteFieldTraversalPath(List remoteFieldTraversalPath) return this; } + /** + *

                    The method of the remote endpoint where the remote field is coming from.

                    + */ @JsonSetter(value = "remote_method", nulls = Nulls.SKIP) public Builder remoteMethod(Optional remoteMethod) { this.remoteMethod = remoteMethod; @@ -138,6 +144,9 @@ public Builder remoteMethod(String remoteMethod) { return this; } + /** + *

                    The path of the remote endpoint where the remote field is coming from.

                    + */ @JsonSetter(value = "remote_url_path", nulls = Nulls.SKIP) public Builder remoteUrlPath(Optional remoteUrlPath) { this.remoteUrlPath = remoteUrlPath; diff --git a/src/main/java/com/merge/api/hris/types/PayGroup.java b/src/main/java/com/merge/api/hris/types/PayGroup.java index 08eb686bd..fdca41f94 100644 --- a/src/main/java/com/merge/api/hris/types/PayGroup.java +++ b/src/main/java/com/merge/api/hris/types/PayGroup.java @@ -207,6 +207,9 @@ public Builder id(String id) { return this; } + /** + *

                    The third-party API ID of the matching object.

                    + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; @@ -218,6 +221,9 @@ public Builder remoteId(String remoteId) { return this; } + /** + *

                    The datetime that this object was created by Merge.

                    + */ @JsonSetter(value = "created_at", nulls = Nulls.SKIP) public Builder createdAt(Optional createdAt) { this.createdAt = createdAt; @@ -229,6 +235,9 @@ public Builder createdAt(OffsetDateTime createdAt) { return this; } + /** + *

                    The datetime that this object was modified by Merge.

                    + */ @JsonSetter(value = "modified_at", nulls = Nulls.SKIP) public Builder modifiedAt(Optional modifiedAt) { this.modifiedAt = modifiedAt; @@ -240,6 +249,9 @@ public Builder modifiedAt(OffsetDateTime modifiedAt) { return this; } + /** + *

                    The pay group name.

                    + */ @JsonSetter(value = "pay_group_name", nulls = Nulls.SKIP) public Builder payGroupName(Optional payGroupName) { this.payGroupName = payGroupName; @@ -251,6 +263,9 @@ public Builder payGroupName(String payGroupName) { return this; } + /** + *

                    Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

                    + */ @JsonSetter(value = "remote_was_deleted", nulls = Nulls.SKIP) public Builder remoteWasDeleted(Optional remoteWasDeleted) { this.remoteWasDeleted = remoteWasDeleted; diff --git a/src/main/java/com/merge/api/hris/types/PayGroupsListRequest.java b/src/main/java/com/merge/api/hris/types/PayGroupsListRequest.java index 645f91aec..241e4bff5 100644 --- a/src/main/java/com/merge/api/hris/types/PayGroupsListRequest.java +++ b/src/main/java/com/merge/api/hris/types/PayGroupsListRequest.java @@ -237,6 +237,9 @@ public Builder from(PayGroupsListRequest other) { return this; } + /** + *

                    If provided, will only return objects created after this datetime.

                    + */ @JsonSetter(value = "created_after", nulls = Nulls.SKIP) public Builder createdAfter(Optional createdAfter) { this.createdAfter = createdAfter; @@ -248,6 +251,9 @@ public Builder createdAfter(OffsetDateTime createdAfter) { return this; } + /** + *

                    If provided, will only return objects created before this datetime.

                    + */ @JsonSetter(value = "created_before", nulls = Nulls.SKIP) public Builder createdBefore(Optional createdBefore) { this.createdBefore = createdBefore; @@ -259,6 +265,9 @@ public Builder createdBefore(OffsetDateTime createdBefore) { return this; } + /** + *

                    The pagination cursor value.

                    + */ @JsonSetter(value = "cursor", nulls = Nulls.SKIP) public Builder cursor(Optional cursor) { this.cursor = cursor; @@ -270,6 +279,9 @@ public Builder cursor(String cursor) { return this; } + /** + *

                    Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

                    + */ @JsonSetter(value = "include_deleted_data", nulls = Nulls.SKIP) public Builder includeDeletedData(Optional includeDeletedData) { this.includeDeletedData = includeDeletedData; @@ -281,6 +293,9 @@ public Builder includeDeletedData(Boolean includeDeletedData) { return this; } + /** + *

                    Whether to include the original data Merge fetched from the third-party to produce these models.

                    + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -292,6 +307,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

                    Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

                    + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; @@ -303,6 +321,9 @@ public Builder includeShellData(Boolean includeShellData) { return this; } + /** + *

                    If provided, only objects synced by Merge after this date time will be returned.

                    + */ @JsonSetter(value = "modified_after", nulls = Nulls.SKIP) public Builder modifiedAfter(Optional modifiedAfter) { this.modifiedAfter = modifiedAfter; @@ -314,6 +335,9 @@ public Builder modifiedAfter(OffsetDateTime modifiedAfter) { return this; } + /** + *

                    If provided, only objects synced by Merge before this date time will be returned.

                    + */ @JsonSetter(value = "modified_before", nulls = Nulls.SKIP) public Builder modifiedBefore(Optional modifiedBefore) { this.modifiedBefore = modifiedBefore; @@ -325,6 +349,9 @@ public Builder modifiedBefore(OffsetDateTime modifiedBefore) { return this; } + /** + *

                    Number of results to return per page.

                    + */ @JsonSetter(value = "page_size", nulls = Nulls.SKIP) public Builder pageSize(Optional pageSize) { this.pageSize = pageSize; @@ -336,6 +363,9 @@ public Builder pageSize(Integer pageSize) { return this; } + /** + *

                    The API provider's ID for the given object.

                    + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; diff --git a/src/main/java/com/merge/api/hris/types/PayGroupsRetrieveRequest.java b/src/main/java/com/merge/api/hris/types/PayGroupsRetrieveRequest.java index 77d895f20..ca806a41b 100644 --- a/src/main/java/com/merge/api/hris/types/PayGroupsRetrieveRequest.java +++ b/src/main/java/com/merge/api/hris/types/PayGroupsRetrieveRequest.java @@ -97,6 +97,9 @@ public Builder from(PayGroupsRetrieveRequest other) { return this; } + /** + *

                    Whether to include the original data Merge fetched from the third-party to produce these models.

                    + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -108,6 +111,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

                    Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

                    + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; diff --git a/src/main/java/com/merge/api/hris/types/PayrollRun.java b/src/main/java/com/merge/api/hris/types/PayrollRun.java index 8d9451942..fa9d51356 100644 --- a/src/main/java/com/merge/api/hris/types/PayrollRun.java +++ b/src/main/java/com/merge/api/hris/types/PayrollRun.java @@ -289,6 +289,9 @@ public Builder id(String id) { return this; } + /** + *

                    The third-party API ID of the matching object.

                    + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; @@ -300,6 +303,9 @@ public Builder remoteId(String remoteId) { return this; } + /** + *

                    The datetime that this object was created by Merge.

                    + */ @JsonSetter(value = "created_at", nulls = Nulls.SKIP) public Builder createdAt(Optional createdAt) { this.createdAt = createdAt; @@ -311,6 +317,9 @@ public Builder createdAt(OffsetDateTime createdAt) { return this; } + /** + *

                    The datetime that this object was modified by Merge.

                    + */ @JsonSetter(value = "modified_at", nulls = Nulls.SKIP) public Builder modifiedAt(Optional modifiedAt) { this.modifiedAt = modifiedAt; @@ -322,6 +331,16 @@ public Builder modifiedAt(OffsetDateTime modifiedAt) { return this; } + /** + *

                    The state of the payroll run

                    + *
                      + *
                    • PAID - PAID
                    • + *
                    • DRAFT - DRAFT
                    • + *
                    • APPROVED - APPROVED
                    • + *
                    • FAILED - FAILED
                    • + *
                    • CLOSED - CLOSED
                    • + *
                    + */ @JsonSetter(value = "run_state", nulls = Nulls.SKIP) public Builder runState(Optional runState) { this.runState = runState; @@ -333,6 +352,16 @@ public Builder runState(RunStateEnum runState) { return this; } + /** + *

                    The type of the payroll run

                    + *
                      + *
                    • REGULAR - REGULAR
                    • + *
                    • OFF_CYCLE - OFF_CYCLE
                    • + *
                    • CORRECTION - CORRECTION
                    • + *
                    • TERMINATION - TERMINATION
                    • + *
                    • SIGN_ON_BONUS - SIGN_ON_BONUS
                    • + *
                    + */ @JsonSetter(value = "run_type", nulls = Nulls.SKIP) public Builder runType(Optional runType) { this.runType = runType; @@ -344,6 +373,9 @@ public Builder runType(RunTypeEnum runType) { return this; } + /** + *

                    The day and time the payroll run started.

                    + */ @JsonSetter(value = "start_date", nulls = Nulls.SKIP) public Builder startDate(Optional startDate) { this.startDate = startDate; @@ -355,6 +387,9 @@ public Builder startDate(OffsetDateTime startDate) { return this; } + /** + *

                    The day and time the payroll run ended.

                    + */ @JsonSetter(value = "end_date", nulls = Nulls.SKIP) public Builder endDate(Optional endDate) { this.endDate = endDate; @@ -366,6 +401,9 @@ public Builder endDate(OffsetDateTime endDate) { return this; } + /** + *

                    The day and time the payroll run was checked.

                    + */ @JsonSetter(value = "check_date", nulls = Nulls.SKIP) public Builder checkDate(Optional checkDate) { this.checkDate = checkDate; @@ -377,6 +415,9 @@ public Builder checkDate(OffsetDateTime checkDate) { return this; } + /** + *

                    Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

                    + */ @JsonSetter(value = "remote_was_deleted", nulls = Nulls.SKIP) public Builder remoteWasDeleted(Optional remoteWasDeleted) { this.remoteWasDeleted = remoteWasDeleted; diff --git a/src/main/java/com/merge/api/hris/types/PayrollRunsListRequest.java b/src/main/java/com/merge/api/hris/types/PayrollRunsListRequest.java index 7e08c6675..fed56ad3c 100644 --- a/src/main/java/com/merge/api/hris/types/PayrollRunsListRequest.java +++ b/src/main/java/com/merge/api/hris/types/PayrollRunsListRequest.java @@ -363,6 +363,9 @@ public Builder from(PayrollRunsListRequest other) { return this; } + /** + *

                    If provided, will only return objects created after this datetime.

                    + */ @JsonSetter(value = "created_after", nulls = Nulls.SKIP) public Builder createdAfter(Optional createdAfter) { this.createdAfter = createdAfter; @@ -374,6 +377,9 @@ public Builder createdAfter(OffsetDateTime createdAfter) { return this; } + /** + *

                    If provided, will only return objects created before this datetime.

                    + */ @JsonSetter(value = "created_before", nulls = Nulls.SKIP) public Builder createdBefore(Optional createdBefore) { this.createdBefore = createdBefore; @@ -385,6 +391,9 @@ public Builder createdBefore(OffsetDateTime createdBefore) { return this; } + /** + *

                    The pagination cursor value.

                    + */ @JsonSetter(value = "cursor", nulls = Nulls.SKIP) public Builder cursor(Optional cursor) { this.cursor = cursor; @@ -396,6 +405,9 @@ public Builder cursor(String cursor) { return this; } + /** + *

                    If provided, will only return payroll runs ended after this datetime.

                    + */ @JsonSetter(value = "ended_after", nulls = Nulls.SKIP) public Builder endedAfter(Optional endedAfter) { this.endedAfter = endedAfter; @@ -407,6 +419,9 @@ public Builder endedAfter(OffsetDateTime endedAfter) { return this; } + /** + *

                    If provided, will only return payroll runs ended before this datetime.

                    + */ @JsonSetter(value = "ended_before", nulls = Nulls.SKIP) public Builder endedBefore(Optional endedBefore) { this.endedBefore = endedBefore; @@ -418,6 +433,9 @@ public Builder endedBefore(OffsetDateTime endedBefore) { return this; } + /** + *

                    Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

                    + */ @JsonSetter(value = "include_deleted_data", nulls = Nulls.SKIP) public Builder includeDeletedData(Optional includeDeletedData) { this.includeDeletedData = includeDeletedData; @@ -429,6 +447,9 @@ public Builder includeDeletedData(Boolean includeDeletedData) { return this; } + /** + *

                    Whether to include the original data Merge fetched from the third-party to produce these models.

                    + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -440,6 +461,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

                    Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

                    + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; @@ -451,6 +475,9 @@ public Builder includeShellData(Boolean includeShellData) { return this; } + /** + *

                    If provided, only objects synced by Merge after this date time will be returned.

                    + */ @JsonSetter(value = "modified_after", nulls = Nulls.SKIP) public Builder modifiedAfter(Optional modifiedAfter) { this.modifiedAfter = modifiedAfter; @@ -462,6 +489,9 @@ public Builder modifiedAfter(OffsetDateTime modifiedAfter) { return this; } + /** + *

                    If provided, only objects synced by Merge before this date time will be returned.

                    + */ @JsonSetter(value = "modified_before", nulls = Nulls.SKIP) public Builder modifiedBefore(Optional modifiedBefore) { this.modifiedBefore = modifiedBefore; @@ -473,6 +503,9 @@ public Builder modifiedBefore(OffsetDateTime modifiedBefore) { return this; } + /** + *

                    Number of results to return per page.

                    + */ @JsonSetter(value = "page_size", nulls = Nulls.SKIP) public Builder pageSize(Optional pageSize) { this.pageSize = pageSize; @@ -484,6 +517,9 @@ public Builder pageSize(Integer pageSize) { return this; } + /** + *

                    Deprecated. Use show_enum_origins.

                    + */ @JsonSetter(value = "remote_fields", nulls = Nulls.SKIP) public Builder remoteFields(Optional remoteFields) { this.remoteFields = remoteFields; @@ -495,6 +531,9 @@ public Builder remoteFields(PayrollRunsListRequestRemoteFields remoteFields) { return this; } + /** + *

                    The API provider's ID for the given object.

                    + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; @@ -506,6 +545,16 @@ public Builder remoteId(String remoteId) { return this; } + /** + *

                    If provided, will only return PayrollRun's with this status. Options: ('REGULAR', 'OFF_CYCLE', 'CORRECTION', 'TERMINATION', 'SIGN_ON_BONUS')

                    + *
                      + *
                    • REGULAR - REGULAR
                    • + *
                    • OFF_CYCLE - OFF_CYCLE
                    • + *
                    • CORRECTION - CORRECTION
                    • + *
                    • TERMINATION - TERMINATION
                    • + *
                    • SIGN_ON_BONUS - SIGN_ON_BONUS
                    • + *
                    + */ @JsonSetter(value = "run_type", nulls = Nulls.SKIP) public Builder runType(Optional runType) { this.runType = runType; @@ -517,6 +566,9 @@ public Builder runType(PayrollRunsListRequestRunType runType) { return this; } + /** + *

                    A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. Learn more

                    + */ @JsonSetter(value = "show_enum_origins", nulls = Nulls.SKIP) public Builder showEnumOrigins(Optional showEnumOrigins) { this.showEnumOrigins = showEnumOrigins; @@ -528,6 +580,9 @@ public Builder showEnumOrigins(PayrollRunsListRequestShowEnumOrigins showEnumOri return this; } + /** + *

                    If provided, will only return payroll runs started after this datetime.

                    + */ @JsonSetter(value = "started_after", nulls = Nulls.SKIP) public Builder startedAfter(Optional startedAfter) { this.startedAfter = startedAfter; @@ -539,6 +594,9 @@ public Builder startedAfter(OffsetDateTime startedAfter) { return this; } + /** + *

                    If provided, will only return payroll runs started before this datetime.

                    + */ @JsonSetter(value = "started_before", nulls = Nulls.SKIP) public Builder startedBefore(Optional startedBefore) { this.startedBefore = startedBefore; diff --git a/src/main/java/com/merge/api/hris/types/PayrollRunsRetrieveRequest.java b/src/main/java/com/merge/api/hris/types/PayrollRunsRetrieveRequest.java index 87928e61d..d9fb374fc 100644 --- a/src/main/java/com/merge/api/hris/types/PayrollRunsRetrieveRequest.java +++ b/src/main/java/com/merge/api/hris/types/PayrollRunsRetrieveRequest.java @@ -130,6 +130,9 @@ public Builder from(PayrollRunsRetrieveRequest other) { return this; } + /** + *

                    Whether to include the original data Merge fetched from the third-party to produce these models.

                    + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -141,6 +144,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

                    Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

                    + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; @@ -152,6 +158,9 @@ public Builder includeShellData(Boolean includeShellData) { return this; } + /** + *

                    Deprecated. Use show_enum_origins.

                    + */ @JsonSetter(value = "remote_fields", nulls = Nulls.SKIP) public Builder remoteFields(Optional remoteFields) { this.remoteFields = remoteFields; @@ -163,6 +172,9 @@ public Builder remoteFields(PayrollRunsRetrieveRequestRemoteFields remoteFields) return this; } + /** + *

                    A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. Learn more

                    + */ @JsonSetter(value = "show_enum_origins", nulls = Nulls.SKIP) public Builder showEnumOrigins(Optional showEnumOrigins) { this.showEnumOrigins = showEnumOrigins; diff --git a/src/main/java/com/merge/api/hris/types/RemoteData.java b/src/main/java/com/merge/api/hris/types/RemoteData.java index 7492bf596..e9d82f2e0 100644 --- a/src/main/java/com/merge/api/hris/types/RemoteData.java +++ b/src/main/java/com/merge/api/hris/types/RemoteData.java @@ -77,6 +77,9 @@ public static PathStage builder() { } public interface PathStage { + /** + * The third-party API path that is being called. + */ _FinalStage path(@NotNull String path); Builder from(RemoteData other); @@ -109,7 +112,7 @@ public Builder from(RemoteData other) { } /** - *

                    The third-party API path that is being called.

                    + * The third-party API path that is being called.

                    The third-party API path that is being called.

                    * @return Reference to {@code this} so that method calls can be chained together. */ @java.lang.Override diff --git a/src/main/java/com/merge/api/hris/types/RemoteFieldsRetrieveRequest.java b/src/main/java/com/merge/api/hris/types/RemoteFieldsRetrieveRequest.java index 0a51b3bef..570875aef 100644 --- a/src/main/java/com/merge/api/hris/types/RemoteFieldsRetrieveRequest.java +++ b/src/main/java/com/merge/api/hris/types/RemoteFieldsRetrieveRequest.java @@ -97,6 +97,9 @@ public Builder from(RemoteFieldsRetrieveRequest other) { return this; } + /** + *

                    A comma seperated list of Common Model names. If included, will only return Remote Fields for those Common Models.

                    + */ @JsonSetter(value = "common_models", nulls = Nulls.SKIP) public Builder commonModels(Optional commonModels) { this.commonModels = commonModels; @@ -108,6 +111,9 @@ public Builder commonModels(String commonModels) { return this; } + /** + *

                    If true, will include example values, where available, for remote fields in the 3rd party platform. These examples come from active data from your customers.

                    + */ @JsonSetter(value = "include_example_values", nulls = Nulls.SKIP) public Builder includeExampleValues(Optional includeExampleValues) { this.includeExampleValues = includeExampleValues; diff --git a/src/main/java/com/merge/api/hris/types/RemoteKeyForRegenerationRequest.java b/src/main/java/com/merge/api/hris/types/RemoteKeyForRegenerationRequest.java index 1d43f1c75..cd2206459 100644 --- a/src/main/java/com/merge/api/hris/types/RemoteKeyForRegenerationRequest.java +++ b/src/main/java/com/merge/api/hris/types/RemoteKeyForRegenerationRequest.java @@ -66,6 +66,9 @@ public static NameStage builder() { } public interface NameStage { + /** + * The name of the remote key + */ _FinalStage name(@NotNull String name); Builder from(RemoteKeyForRegenerationRequest other); @@ -91,7 +94,7 @@ public Builder from(RemoteKeyForRegenerationRequest other) { } /** - *

                    The name of the remote key

                    + * The name of the remote key

                    The name of the remote key

                    * @return Reference to {@code this} so that method calls can be chained together. */ @java.lang.Override diff --git a/src/main/java/com/merge/api/hris/types/SyncStatusListRequest.java b/src/main/java/com/merge/api/hris/types/SyncStatusListRequest.java index ae09a11b5..df7c499c2 100644 --- a/src/main/java/com/merge/api/hris/types/SyncStatusListRequest.java +++ b/src/main/java/com/merge/api/hris/types/SyncStatusListRequest.java @@ -95,6 +95,9 @@ public Builder from(SyncStatusListRequest other) { return this; } + /** + *

                    The pagination cursor value.

                    + */ @JsonSetter(value = "cursor", nulls = Nulls.SKIP) public Builder cursor(Optional cursor) { this.cursor = cursor; @@ -106,6 +109,9 @@ public Builder cursor(String cursor) { return this; } + /** + *

                    Number of results to return per page.

                    + */ @JsonSetter(value = "page_size", nulls = Nulls.SKIP) public Builder pageSize(Optional pageSize) { this.pageSize = pageSize; diff --git a/src/main/java/com/merge/api/hris/types/Tax.java b/src/main/java/com/merge/api/hris/types/Tax.java index 386cb5f0a..378158c9d 100644 --- a/src/main/java/com/merge/api/hris/types/Tax.java +++ b/src/main/java/com/merge/api/hris/types/Tax.java @@ -255,6 +255,9 @@ public Builder id(String id) { return this; } + /** + *

                    The third-party API ID of the matching object.

                    + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; @@ -266,6 +269,9 @@ public Builder remoteId(String remoteId) { return this; } + /** + *

                    The datetime that this object was created by Merge.

                    + */ @JsonSetter(value = "created_at", nulls = Nulls.SKIP) public Builder createdAt(Optional createdAt) { this.createdAt = createdAt; @@ -277,6 +283,9 @@ public Builder createdAt(OffsetDateTime createdAt) { return this; } + /** + *

                    The datetime that this object was modified by Merge.

                    + */ @JsonSetter(value = "modified_at", nulls = Nulls.SKIP) public Builder modifiedAt(Optional modifiedAt) { this.modifiedAt = modifiedAt; @@ -299,6 +308,9 @@ public Builder employeePayrollRun(String employeePayrollRun) { return this; } + /** + *

                    The tax's name.

                    + */ @JsonSetter(value = "name", nulls = Nulls.SKIP) public Builder name(Optional name) { this.name = name; @@ -310,6 +322,9 @@ public Builder name(String name) { return this; } + /** + *

                    The tax amount.

                    + */ @JsonSetter(value = "amount", nulls = Nulls.SKIP) public Builder amount(Optional amount) { this.amount = amount; @@ -321,6 +336,9 @@ public Builder amount(Double amount) { return this; } + /** + *

                    Whether or not the employer is responsible for paying the tax.

                    + */ @JsonSetter(value = "employer_tax", nulls = Nulls.SKIP) public Builder employerTax(Optional employerTax) { this.employerTax = employerTax; @@ -332,6 +350,9 @@ public Builder employerTax(Boolean employerTax) { return this; } + /** + *

                    Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

                    + */ @JsonSetter(value = "remote_was_deleted", nulls = Nulls.SKIP) public Builder remoteWasDeleted(Optional remoteWasDeleted) { this.remoteWasDeleted = remoteWasDeleted; diff --git a/src/main/java/com/merge/api/hris/types/Team.java b/src/main/java/com/merge/api/hris/types/Team.java index f33e54a03..afbab9374 100644 --- a/src/main/java/com/merge/api/hris/types/Team.java +++ b/src/main/java/com/merge/api/hris/types/Team.java @@ -224,6 +224,9 @@ public Builder id(String id) { return this; } + /** + *

                    The third-party API ID of the matching object.

                    + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; @@ -235,6 +238,9 @@ public Builder remoteId(String remoteId) { return this; } + /** + *

                    The datetime that this object was created by Merge.

                    + */ @JsonSetter(value = "created_at", nulls = Nulls.SKIP) public Builder createdAt(Optional createdAt) { this.createdAt = createdAt; @@ -246,6 +252,9 @@ public Builder createdAt(OffsetDateTime createdAt) { return this; } + /** + *

                    The datetime that this object was modified by Merge.

                    + */ @JsonSetter(value = "modified_at", nulls = Nulls.SKIP) public Builder modifiedAt(Optional modifiedAt) { this.modifiedAt = modifiedAt; @@ -257,6 +266,9 @@ public Builder modifiedAt(OffsetDateTime modifiedAt) { return this; } + /** + *

                    The team's name.

                    + */ @JsonSetter(value = "name", nulls = Nulls.SKIP) public Builder name(Optional name) { this.name = name; @@ -268,6 +280,9 @@ public Builder name(String name) { return this; } + /** + *

                    The team's parent team.

                    + */ @JsonSetter(value = "parent_team", nulls = Nulls.SKIP) public Builder parentTeam(Optional parentTeam) { this.parentTeam = parentTeam; @@ -279,6 +294,9 @@ public Builder parentTeam(TeamParentTeam parentTeam) { return this; } + /** + *

                    Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

                    + */ @JsonSetter(value = "remote_was_deleted", nulls = Nulls.SKIP) public Builder remoteWasDeleted(Optional remoteWasDeleted) { this.remoteWasDeleted = remoteWasDeleted; diff --git a/src/main/java/com/merge/api/hris/types/TeamsListRequest.java b/src/main/java/com/merge/api/hris/types/TeamsListRequest.java index b64d8bda8..698e47f94 100644 --- a/src/main/java/com/merge/api/hris/types/TeamsListRequest.java +++ b/src/main/java/com/merge/api/hris/types/TeamsListRequest.java @@ -273,6 +273,9 @@ public Builder from(TeamsListRequest other) { return this; } + /** + *

                    Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.

                    + */ @JsonSetter(value = "expand", nulls = Nulls.SKIP) public Builder expand(Optional> expand) { this.expand = expand; @@ -289,6 +292,9 @@ public Builder expand(String expand) { return this; } + /** + *

                    If provided, will only return objects created after this datetime.

                    + */ @JsonSetter(value = "created_after", nulls = Nulls.SKIP) public Builder createdAfter(Optional createdAfter) { this.createdAfter = createdAfter; @@ -300,6 +306,9 @@ public Builder createdAfter(OffsetDateTime createdAfter) { return this; } + /** + *

                    If provided, will only return objects created before this datetime.

                    + */ @JsonSetter(value = "created_before", nulls = Nulls.SKIP) public Builder createdBefore(Optional createdBefore) { this.createdBefore = createdBefore; @@ -311,6 +320,9 @@ public Builder createdBefore(OffsetDateTime createdBefore) { return this; } + /** + *

                    The pagination cursor value.

                    + */ @JsonSetter(value = "cursor", nulls = Nulls.SKIP) public Builder cursor(Optional cursor) { this.cursor = cursor; @@ -322,6 +334,9 @@ public Builder cursor(String cursor) { return this; } + /** + *

                    Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

                    + */ @JsonSetter(value = "include_deleted_data", nulls = Nulls.SKIP) public Builder includeDeletedData(Optional includeDeletedData) { this.includeDeletedData = includeDeletedData; @@ -333,6 +348,9 @@ public Builder includeDeletedData(Boolean includeDeletedData) { return this; } + /** + *

                    Whether to include the original data Merge fetched from the third-party to produce these models.

                    + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -344,6 +362,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

                    Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

                    + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; @@ -355,6 +376,9 @@ public Builder includeShellData(Boolean includeShellData) { return this; } + /** + *

                    If provided, only objects synced by Merge after this date time will be returned.

                    + */ @JsonSetter(value = "modified_after", nulls = Nulls.SKIP) public Builder modifiedAfter(Optional modifiedAfter) { this.modifiedAfter = modifiedAfter; @@ -366,6 +390,9 @@ public Builder modifiedAfter(OffsetDateTime modifiedAfter) { return this; } + /** + *

                    If provided, only objects synced by Merge before this date time will be returned.

                    + */ @JsonSetter(value = "modified_before", nulls = Nulls.SKIP) public Builder modifiedBefore(Optional modifiedBefore) { this.modifiedBefore = modifiedBefore; @@ -377,6 +404,9 @@ public Builder modifiedBefore(OffsetDateTime modifiedBefore) { return this; } + /** + *

                    Number of results to return per page.

                    + */ @JsonSetter(value = "page_size", nulls = Nulls.SKIP) public Builder pageSize(Optional pageSize) { this.pageSize = pageSize; @@ -388,6 +418,9 @@ public Builder pageSize(Integer pageSize) { return this; } + /** + *

                    If provided, will only return teams with this parent team.

                    + */ @JsonSetter(value = "parent_team_id", nulls = Nulls.SKIP) public Builder parentTeamId(Optional parentTeamId) { this.parentTeamId = parentTeamId; @@ -399,6 +432,9 @@ public Builder parentTeamId(String parentTeamId) { return this; } + /** + *

                    The API provider's ID for the given object.

                    + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; diff --git a/src/main/java/com/merge/api/hris/types/TeamsRetrieveRequest.java b/src/main/java/com/merge/api/hris/types/TeamsRetrieveRequest.java index 1140b068e..572e950f2 100644 --- a/src/main/java/com/merge/api/hris/types/TeamsRetrieveRequest.java +++ b/src/main/java/com/merge/api/hris/types/TeamsRetrieveRequest.java @@ -116,6 +116,9 @@ public Builder from(TeamsRetrieveRequest other) { return this; } + /** + *

                    Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.

                    + */ @JsonSetter(value = "expand", nulls = Nulls.SKIP) public Builder expand(Optional> expand) { this.expand = expand; @@ -132,6 +135,9 @@ public Builder expand(String expand) { return this; } + /** + *

                    Whether to include the original data Merge fetched from the third-party to produce these models.

                    + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -143,6 +149,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

                    Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

                    + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; diff --git a/src/main/java/com/merge/api/hris/types/TimeOff.java b/src/main/java/com/merge/api/hris/types/TimeOff.java index d73b39736..787c5d0a4 100644 --- a/src/main/java/com/merge/api/hris/types/TimeOff.java +++ b/src/main/java/com/merge/api/hris/types/TimeOff.java @@ -362,6 +362,9 @@ public Builder id(String id) { return this; } + /** + *

                    The third-party API ID of the matching object.

                    + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; @@ -373,6 +376,9 @@ public Builder remoteId(String remoteId) { return this; } + /** + *

                    The datetime that this object was created by Merge.

                    + */ @JsonSetter(value = "created_at", nulls = Nulls.SKIP) public Builder createdAt(Optional createdAt) { this.createdAt = createdAt; @@ -384,6 +390,9 @@ public Builder createdAt(OffsetDateTime createdAt) { return this; } + /** + *

                    The datetime that this object was modified by Merge.

                    + */ @JsonSetter(value = "modified_at", nulls = Nulls.SKIP) public Builder modifiedAt(Optional modifiedAt) { this.modifiedAt = modifiedAt; @@ -395,6 +404,9 @@ public Builder modifiedAt(OffsetDateTime modifiedAt) { return this; } + /** + *

                    The employee requesting time off.

                    + */ @JsonSetter(value = "employee", nulls = Nulls.SKIP) public Builder employee(Optional employee) { this.employee = employee; @@ -406,6 +418,9 @@ public Builder employee(TimeOffEmployee employee) { return this; } + /** + *

                    The Merge ID of the employee with the ability to approve the time off request.

                    + */ @JsonSetter(value = "approver", nulls = Nulls.SKIP) public Builder approver(Optional approver) { this.approver = approver; @@ -417,6 +432,16 @@ public Builder approver(TimeOffApprover approver) { return this; } + /** + *

                    The status of this time off request.

                    + *
                      + *
                    • REQUESTED - REQUESTED
                    • + *
                    • APPROVED - APPROVED
                    • + *
                    • DECLINED - DECLINED
                    • + *
                    • CANCELLED - CANCELLED
                    • + *
                    • DELETED - DELETED
                    • + *
                    + */ @JsonSetter(value = "status", nulls = Nulls.SKIP) public Builder status(Optional status) { this.status = status; @@ -428,6 +453,9 @@ public Builder status(TimeOffStatusEnum status) { return this; } + /** + *

                    The employee note for this time off request.

                    + */ @JsonSetter(value = "employee_note", nulls = Nulls.SKIP) public Builder employeeNote(Optional employeeNote) { this.employeeNote = employeeNote; @@ -439,6 +467,13 @@ public Builder employeeNote(String employeeNote) { return this; } + /** + *

                    The measurement that the third-party integration uses to count time requested.

                    + *
                      + *
                    • HOURS - HOURS
                    • + *
                    • DAYS - DAYS
                    • + *
                    + */ @JsonSetter(value = "units", nulls = Nulls.SKIP) public Builder units(Optional units) { this.units = units; @@ -450,6 +485,9 @@ public Builder units(UnitsEnum units) { return this; } + /** + *

                    The time off quantity measured by the prescribed “units”.

                    + */ @JsonSetter(value = "amount", nulls = Nulls.SKIP) public Builder amount(Optional amount) { this.amount = amount; @@ -461,6 +499,17 @@ public Builder amount(Double amount) { return this; } + /** + *

                    The type of time off request.

                    + *
                      + *
                    • VACATION - VACATION
                    • + *
                    • SICK - SICK
                    • + *
                    • PERSONAL - PERSONAL
                    • + *
                    • JURY_DUTY - JURY_DUTY
                    • + *
                    • VOLUNTEER - VOLUNTEER
                    • + *
                    • BEREAVEMENT - BEREAVEMENT
                    • + *
                    + */ @JsonSetter(value = "request_type", nulls = Nulls.SKIP) public Builder requestType(Optional requestType) { this.requestType = requestType; @@ -472,6 +521,9 @@ public Builder requestType(RequestTypeEnum requestType) { return this; } + /** + *

                    The day and time of the start of the time requested off.

                    + */ @JsonSetter(value = "start_time", nulls = Nulls.SKIP) public Builder startTime(Optional startTime) { this.startTime = startTime; @@ -483,6 +535,9 @@ public Builder startTime(OffsetDateTime startTime) { return this; } + /** + *

                    The day and time of the end of the time requested off.

                    + */ @JsonSetter(value = "end_time", nulls = Nulls.SKIP) public Builder endTime(Optional endTime) { this.endTime = endTime; @@ -494,6 +549,9 @@ public Builder endTime(OffsetDateTime endTime) { return this; } + /** + *

                    Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

                    + */ @JsonSetter(value = "remote_was_deleted", nulls = Nulls.SKIP) public Builder remoteWasDeleted(Optional remoteWasDeleted) { this.remoteWasDeleted = remoteWasDeleted; diff --git a/src/main/java/com/merge/api/hris/types/TimeOffBalance.java b/src/main/java/com/merge/api/hris/types/TimeOffBalance.java index 219e151de..e1f022f40 100644 --- a/src/main/java/com/merge/api/hris/types/TimeOffBalance.java +++ b/src/main/java/com/merge/api/hris/types/TimeOffBalance.java @@ -266,6 +266,9 @@ public Builder id(String id) { return this; } + /** + *

                    The third-party API ID of the matching object.

                    + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; @@ -277,6 +280,9 @@ public Builder remoteId(String remoteId) { return this; } + /** + *

                    The datetime that this object was created by Merge.

                    + */ @JsonSetter(value = "created_at", nulls = Nulls.SKIP) public Builder createdAt(Optional createdAt) { this.createdAt = createdAt; @@ -288,6 +294,9 @@ public Builder createdAt(OffsetDateTime createdAt) { return this; } + /** + *

                    The datetime that this object was modified by Merge.

                    + */ @JsonSetter(value = "modified_at", nulls = Nulls.SKIP) public Builder modifiedAt(Optional modifiedAt) { this.modifiedAt = modifiedAt; @@ -299,6 +308,9 @@ public Builder modifiedAt(OffsetDateTime modifiedAt) { return this; } + /** + *

                    The employee the balance belongs to.

                    + */ @JsonSetter(value = "employee", nulls = Nulls.SKIP) public Builder employee(Optional employee) { this.employee = employee; @@ -310,6 +322,9 @@ public Builder employee(TimeOffBalanceEmployee employee) { return this; } + /** + *

                    The current remaining PTO balance, measured in hours. For integrations that return this value in days, Merge multiplies by 8 to calculate hours.

                    + */ @JsonSetter(value = "balance", nulls = Nulls.SKIP) public Builder balance(Optional balance) { this.balance = balance; @@ -321,6 +336,9 @@ public Builder balance(Double balance) { return this; } + /** + *

                    The amount of PTO used in terms of hours. For integrations that return this value in days, Merge multiplies by 8 to calculate hours.

                    + */ @JsonSetter(value = "used", nulls = Nulls.SKIP) public Builder used(Optional used) { this.used = used; @@ -332,6 +350,17 @@ public Builder used(Double used) { return this; } + /** + *

                    The policy type of this time off balance.

                    + *
                      + *
                    • VACATION - VACATION
                    • + *
                    • SICK - SICK
                    • + *
                    • PERSONAL - PERSONAL
                    • + *
                    • JURY_DUTY - JURY_DUTY
                    • + *
                    • VOLUNTEER - VOLUNTEER
                    • + *
                    • BEREAVEMENT - BEREAVEMENT
                    • + *
                    + */ @JsonSetter(value = "policy_type", nulls = Nulls.SKIP) public Builder policyType(Optional policyType) { this.policyType = policyType; @@ -343,6 +372,9 @@ public Builder policyType(PolicyTypeEnum policyType) { return this; } + /** + *

                    Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

                    + */ @JsonSetter(value = "remote_was_deleted", nulls = Nulls.SKIP) public Builder remoteWasDeleted(Optional remoteWasDeleted) { this.remoteWasDeleted = remoteWasDeleted; diff --git a/src/main/java/com/merge/api/hris/types/TimeOffBalancesListRequest.java b/src/main/java/com/merge/api/hris/types/TimeOffBalancesListRequest.java index 202e15d8e..5da15c592 100644 --- a/src/main/java/com/merge/api/hris/types/TimeOffBalancesListRequest.java +++ b/src/main/java/com/merge/api/hris/types/TimeOffBalancesListRequest.java @@ -332,6 +332,9 @@ public Builder from(TimeOffBalancesListRequest other) { return this; } + /** + *

                    Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.

                    + */ @JsonSetter(value = "expand", nulls = Nulls.SKIP) public Builder expand(Optional> expand) { this.expand = expand; @@ -348,6 +351,9 @@ public Builder expand(String expand) { return this; } + /** + *

                    If provided, will only return objects created after this datetime.

                    + */ @JsonSetter(value = "created_after", nulls = Nulls.SKIP) public Builder createdAfter(Optional createdAfter) { this.createdAfter = createdAfter; @@ -359,6 +365,9 @@ public Builder createdAfter(OffsetDateTime createdAfter) { return this; } + /** + *

                    If provided, will only return objects created before this datetime.

                    + */ @JsonSetter(value = "created_before", nulls = Nulls.SKIP) public Builder createdBefore(Optional createdBefore) { this.createdBefore = createdBefore; @@ -370,6 +379,9 @@ public Builder createdBefore(OffsetDateTime createdBefore) { return this; } + /** + *

                    The pagination cursor value.

                    + */ @JsonSetter(value = "cursor", nulls = Nulls.SKIP) public Builder cursor(Optional cursor) { this.cursor = cursor; @@ -381,6 +393,9 @@ public Builder cursor(String cursor) { return this; } + /** + *

                    If provided, will only return time off balances for this employee.

                    + */ @JsonSetter(value = "employee_id", nulls = Nulls.SKIP) public Builder employeeId(Optional employeeId) { this.employeeId = employeeId; @@ -392,6 +407,9 @@ public Builder employeeId(String employeeId) { return this; } + /** + *

                    Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

                    + */ @JsonSetter(value = "include_deleted_data", nulls = Nulls.SKIP) public Builder includeDeletedData(Optional includeDeletedData) { this.includeDeletedData = includeDeletedData; @@ -403,6 +421,9 @@ public Builder includeDeletedData(Boolean includeDeletedData) { return this; } + /** + *

                    Whether to include the original data Merge fetched from the third-party to produce these models.

                    + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -414,6 +435,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

                    Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

                    + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; @@ -425,6 +449,9 @@ public Builder includeShellData(Boolean includeShellData) { return this; } + /** + *

                    If provided, only objects synced by Merge after this date time will be returned.

                    + */ @JsonSetter(value = "modified_after", nulls = Nulls.SKIP) public Builder modifiedAfter(Optional modifiedAfter) { this.modifiedAfter = modifiedAfter; @@ -436,6 +463,9 @@ public Builder modifiedAfter(OffsetDateTime modifiedAfter) { return this; } + /** + *

                    If provided, only objects synced by Merge before this date time will be returned.

                    + */ @JsonSetter(value = "modified_before", nulls = Nulls.SKIP) public Builder modifiedBefore(Optional modifiedBefore) { this.modifiedBefore = modifiedBefore; @@ -447,6 +477,9 @@ public Builder modifiedBefore(OffsetDateTime modifiedBefore) { return this; } + /** + *

                    Number of results to return per page.

                    + */ @JsonSetter(value = "page_size", nulls = Nulls.SKIP) public Builder pageSize(Optional pageSize) { this.pageSize = pageSize; @@ -458,6 +491,17 @@ public Builder pageSize(Integer pageSize) { return this; } + /** + *

                    If provided, will only return TimeOffBalance with this policy type. Options: ('VACATION', 'SICK', 'PERSONAL', 'JURY_DUTY', 'VOLUNTEER', 'BEREAVEMENT')

                    + *
                      + *
                    • VACATION - VACATION
                    • + *
                    • SICK - SICK
                    • + *
                    • PERSONAL - PERSONAL
                    • + *
                    • JURY_DUTY - JURY_DUTY
                    • + *
                    • VOLUNTEER - VOLUNTEER
                    • + *
                    • BEREAVEMENT - BEREAVEMENT
                    • + *
                    + */ @JsonSetter(value = "policy_type", nulls = Nulls.SKIP) public Builder policyType(Optional policyType) { this.policyType = policyType; @@ -469,6 +513,9 @@ public Builder policyType(TimeOffBalancesListRequestPolicyType policyType) { return this; } + /** + *

                    Deprecated. Use show_enum_origins.

                    + */ @JsonSetter(value = "remote_fields", nulls = Nulls.SKIP) public Builder remoteFields(Optional remoteFields) { this.remoteFields = remoteFields; @@ -480,6 +527,9 @@ public Builder remoteFields(String remoteFields) { return this; } + /** + *

                    The API provider's ID for the given object.

                    + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; @@ -491,6 +541,9 @@ public Builder remoteId(String remoteId) { return this; } + /** + *

                    A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. Learn more

                    + */ @JsonSetter(value = "show_enum_origins", nulls = Nulls.SKIP) public Builder showEnumOrigins(Optional showEnumOrigins) { this.showEnumOrigins = showEnumOrigins; diff --git a/src/main/java/com/merge/api/hris/types/TimeOffBalancesRetrieveRequest.java b/src/main/java/com/merge/api/hris/types/TimeOffBalancesRetrieveRequest.java index 4904f5771..a96cd1f06 100644 --- a/src/main/java/com/merge/api/hris/types/TimeOffBalancesRetrieveRequest.java +++ b/src/main/java/com/merge/api/hris/types/TimeOffBalancesRetrieveRequest.java @@ -149,6 +149,9 @@ public Builder from(TimeOffBalancesRetrieveRequest other) { return this; } + /** + *

                    Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.

                    + */ @JsonSetter(value = "expand", nulls = Nulls.SKIP) public Builder expand(Optional> expand) { this.expand = expand; @@ -165,6 +168,9 @@ public Builder expand(String expand) { return this; } + /** + *

                    Whether to include the original data Merge fetched from the third-party to produce these models.

                    + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -176,6 +182,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

                    Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

                    + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; @@ -187,6 +196,9 @@ public Builder includeShellData(Boolean includeShellData) { return this; } + /** + *

                    Deprecated. Use show_enum_origins.

                    + */ @JsonSetter(value = "remote_fields", nulls = Nulls.SKIP) public Builder remoteFields(Optional remoteFields) { this.remoteFields = remoteFields; @@ -198,6 +210,9 @@ public Builder remoteFields(String remoteFields) { return this; } + /** + *

                    A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. Learn more

                    + */ @JsonSetter(value = "show_enum_origins", nulls = Nulls.SKIP) public Builder showEnumOrigins(Optional showEnumOrigins) { this.showEnumOrigins = showEnumOrigins; diff --git a/src/main/java/com/merge/api/hris/types/TimeOffEndpointRequest.java b/src/main/java/com/merge/api/hris/types/TimeOffEndpointRequest.java index 43642fcd7..7e7efc636 100644 --- a/src/main/java/com/merge/api/hris/types/TimeOffEndpointRequest.java +++ b/src/main/java/com/merge/api/hris/types/TimeOffEndpointRequest.java @@ -99,10 +99,16 @@ public interface ModelStage { public interface _FinalStage { TimeOffEndpointRequest build(); + /** + *

                    Whether to include debug fields (such as log file links) in the response.

                    + */ _FinalStage isDebugMode(Optional isDebugMode); _FinalStage isDebugMode(Boolean isDebugMode); + /** + *

                    Whether or not third-party updates should be run asynchronously.

                    + */ _FinalStage runAsync(Optional runAsync); _FinalStage runAsync(Boolean runAsync); @@ -146,6 +152,9 @@ public _FinalStage runAsync(Boolean runAsync) { return this; } + /** + *

                    Whether or not third-party updates should be run asynchronously.

                    + */ @java.lang.Override @JsonSetter(value = "run_async", nulls = Nulls.SKIP) public _FinalStage runAsync(Optional runAsync) { @@ -163,6 +172,9 @@ public _FinalStage isDebugMode(Boolean isDebugMode) { return this; } + /** + *

                    Whether to include debug fields (such as log file links) in the response.

                    + */ @java.lang.Override @JsonSetter(value = "is_debug_mode", nulls = Nulls.SKIP) public _FinalStage isDebugMode(Optional isDebugMode) { diff --git a/src/main/java/com/merge/api/hris/types/TimeOffListRequest.java b/src/main/java/com/merge/api/hris/types/TimeOffListRequest.java index 6962d3839..c4f160ec7 100644 --- a/src/main/java/com/merge/api/hris/types/TimeOffListRequest.java +++ b/src/main/java/com/merge/api/hris/types/TimeOffListRequest.java @@ -441,6 +441,9 @@ public Builder from(TimeOffListRequest other) { return this; } + /** + *

                    Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.

                    + */ @JsonSetter(value = "expand", nulls = Nulls.SKIP) public Builder expand(Optional> expand) { this.expand = expand; @@ -457,6 +460,9 @@ public Builder expand(TimeOffListRequestExpandItem expand) { return this; } + /** + *

                    If provided, will only return time off for this approver.

                    + */ @JsonSetter(value = "approver_id", nulls = Nulls.SKIP) public Builder approverId(Optional approverId) { this.approverId = approverId; @@ -468,6 +474,9 @@ public Builder approverId(String approverId) { return this; } + /** + *

                    If provided, will only return objects created after this datetime.

                    + */ @JsonSetter(value = "created_after", nulls = Nulls.SKIP) public Builder createdAfter(Optional createdAfter) { this.createdAfter = createdAfter; @@ -479,6 +488,9 @@ public Builder createdAfter(OffsetDateTime createdAfter) { return this; } + /** + *

                    If provided, will only return objects created before this datetime.

                    + */ @JsonSetter(value = "created_before", nulls = Nulls.SKIP) public Builder createdBefore(Optional createdBefore) { this.createdBefore = createdBefore; @@ -490,6 +502,9 @@ public Builder createdBefore(OffsetDateTime createdBefore) { return this; } + /** + *

                    The pagination cursor value.

                    + */ @JsonSetter(value = "cursor", nulls = Nulls.SKIP) public Builder cursor(Optional cursor) { this.cursor = cursor; @@ -501,6 +516,9 @@ public Builder cursor(String cursor) { return this; } + /** + *

                    If provided, will only return time off for this employee.

                    + */ @JsonSetter(value = "employee_id", nulls = Nulls.SKIP) public Builder employeeId(Optional employeeId) { this.employeeId = employeeId; @@ -512,6 +530,9 @@ public Builder employeeId(String employeeId) { return this; } + /** + *

                    If provided, will only return employees that ended after this datetime.

                    + */ @JsonSetter(value = "ended_after", nulls = Nulls.SKIP) public Builder endedAfter(Optional endedAfter) { this.endedAfter = endedAfter; @@ -523,6 +544,9 @@ public Builder endedAfter(OffsetDateTime endedAfter) { return this; } + /** + *

                    If provided, will only return time-offs that ended before this datetime.

                    + */ @JsonSetter(value = "ended_before", nulls = Nulls.SKIP) public Builder endedBefore(Optional endedBefore) { this.endedBefore = endedBefore; @@ -534,6 +558,9 @@ public Builder endedBefore(OffsetDateTime endedBefore) { return this; } + /** + *

                    Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

                    + */ @JsonSetter(value = "include_deleted_data", nulls = Nulls.SKIP) public Builder includeDeletedData(Optional includeDeletedData) { this.includeDeletedData = includeDeletedData; @@ -545,6 +572,9 @@ public Builder includeDeletedData(Boolean includeDeletedData) { return this; } + /** + *

                    Whether to include the original data Merge fetched from the third-party to produce these models.

                    + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -556,6 +586,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

                    Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

                    + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; @@ -567,6 +600,9 @@ public Builder includeShellData(Boolean includeShellData) { return this; } + /** + *

                    If provided, only objects synced by Merge after this date time will be returned.

                    + */ @JsonSetter(value = "modified_after", nulls = Nulls.SKIP) public Builder modifiedAfter(Optional modifiedAfter) { this.modifiedAfter = modifiedAfter; @@ -578,6 +614,9 @@ public Builder modifiedAfter(OffsetDateTime modifiedAfter) { return this; } + /** + *

                    If provided, only objects synced by Merge before this date time will be returned.

                    + */ @JsonSetter(value = "modified_before", nulls = Nulls.SKIP) public Builder modifiedBefore(Optional modifiedBefore) { this.modifiedBefore = modifiedBefore; @@ -589,6 +628,9 @@ public Builder modifiedBefore(OffsetDateTime modifiedBefore) { return this; } + /** + *

                    Number of results to return per page.

                    + */ @JsonSetter(value = "page_size", nulls = Nulls.SKIP) public Builder pageSize(Optional pageSize) { this.pageSize = pageSize; @@ -600,6 +642,9 @@ public Builder pageSize(Integer pageSize) { return this; } + /** + *

                    Deprecated. Use show_enum_origins.

                    + */ @JsonSetter(value = "remote_fields", nulls = Nulls.SKIP) public Builder remoteFields(Optional remoteFields) { this.remoteFields = remoteFields; @@ -611,6 +656,9 @@ public Builder remoteFields(TimeOffListRequestRemoteFields remoteFields) { return this; } + /** + *

                    The API provider's ID for the given object.

                    + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; @@ -622,6 +670,17 @@ public Builder remoteId(String remoteId) { return this; } + /** + *

                    If provided, will only return TimeOff with this request type. Options: ('VACATION', 'SICK', 'PERSONAL', 'JURY_DUTY', 'VOLUNTEER', 'BEREAVEMENT')

                    + *
                      + *
                    • VACATION - VACATION
                    • + *
                    • SICK - SICK
                    • + *
                    • PERSONAL - PERSONAL
                    • + *
                    • JURY_DUTY - JURY_DUTY
                    • + *
                    • VOLUNTEER - VOLUNTEER
                    • + *
                    • BEREAVEMENT - BEREAVEMENT
                    • + *
                    + */ @JsonSetter(value = "request_type", nulls = Nulls.SKIP) public Builder requestType(Optional requestType) { this.requestType = requestType; @@ -633,6 +692,9 @@ public Builder requestType(TimeOffListRequestRequestType requestType) { return this; } + /** + *

                    A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. Learn more

                    + */ @JsonSetter(value = "show_enum_origins", nulls = Nulls.SKIP) public Builder showEnumOrigins(Optional showEnumOrigins) { this.showEnumOrigins = showEnumOrigins; @@ -644,6 +706,9 @@ public Builder showEnumOrigins(TimeOffListRequestShowEnumOrigins showEnumOrigins return this; } + /** + *

                    If provided, will only return time-offs that started after this datetime.

                    + */ @JsonSetter(value = "started_after", nulls = Nulls.SKIP) public Builder startedAfter(Optional startedAfter) { this.startedAfter = startedAfter; @@ -655,6 +720,9 @@ public Builder startedAfter(OffsetDateTime startedAfter) { return this; } + /** + *

                    If provided, will only return time-offs that started before this datetime.

                    + */ @JsonSetter(value = "started_before", nulls = Nulls.SKIP) public Builder startedBefore(Optional startedBefore) { this.startedBefore = startedBefore; @@ -666,6 +734,16 @@ public Builder startedBefore(OffsetDateTime startedBefore) { return this; } + /** + *

                    If provided, will only return TimeOff with this status. Options: ('REQUESTED', 'APPROVED', 'DECLINED', 'CANCELLED', 'DELETED')

                    + *
                      + *
                    • REQUESTED - REQUESTED
                    • + *
                    • APPROVED - APPROVED
                    • + *
                    • DECLINED - DECLINED
                    • + *
                    • CANCELLED - CANCELLED
                    • + *
                    • DELETED - DELETED
                    • + *
                    + */ @JsonSetter(value = "status", nulls = Nulls.SKIP) public Builder status(Optional status) { this.status = status; diff --git a/src/main/java/com/merge/api/hris/types/TimeOffRequest.java b/src/main/java/com/merge/api/hris/types/TimeOffRequest.java index 7286a450f..031b6163a 100644 --- a/src/main/java/com/merge/api/hris/types/TimeOffRequest.java +++ b/src/main/java/com/merge/api/hris/types/TimeOffRequest.java @@ -268,6 +268,9 @@ public Builder from(TimeOffRequest other) { return this; } + /** + *

                    The employee requesting time off.

                    + */ @JsonSetter(value = "employee", nulls = Nulls.SKIP) public Builder employee(Optional employee) { this.employee = employee; @@ -279,6 +282,9 @@ public Builder employee(TimeOffRequestEmployee employee) { return this; } + /** + *

                    The Merge ID of the employee with the ability to approve the time off request.

                    + */ @JsonSetter(value = "approver", nulls = Nulls.SKIP) public Builder approver(Optional approver) { this.approver = approver; @@ -290,6 +296,16 @@ public Builder approver(TimeOffRequestApprover approver) { return this; } + /** + *

                    The status of this time off request.

                    + *
                      + *
                    • REQUESTED - REQUESTED
                    • + *
                    • APPROVED - APPROVED
                    • + *
                    • DECLINED - DECLINED
                    • + *
                    • CANCELLED - CANCELLED
                    • + *
                    • DELETED - DELETED
                    • + *
                    + */ @JsonSetter(value = "status", nulls = Nulls.SKIP) public Builder status(Optional status) { this.status = status; @@ -301,6 +317,9 @@ public Builder status(TimeOffStatusEnum status) { return this; } + /** + *

                    The employee note for this time off request.

                    + */ @JsonSetter(value = "employee_note", nulls = Nulls.SKIP) public Builder employeeNote(Optional employeeNote) { this.employeeNote = employeeNote; @@ -312,6 +331,13 @@ public Builder employeeNote(String employeeNote) { return this; } + /** + *

                    The measurement that the third-party integration uses to count time requested.

                    + *
                      + *
                    • HOURS - HOURS
                    • + *
                    • DAYS - DAYS
                    • + *
                    + */ @JsonSetter(value = "units", nulls = Nulls.SKIP) public Builder units(Optional units) { this.units = units; @@ -323,6 +349,9 @@ public Builder units(UnitsEnum units) { return this; } + /** + *

                    The time off quantity measured by the prescribed “units”.

                    + */ @JsonSetter(value = "amount", nulls = Nulls.SKIP) public Builder amount(Optional amount) { this.amount = amount; @@ -334,6 +363,17 @@ public Builder amount(Double amount) { return this; } + /** + *

                    The type of time off request.

                    + *
                      + *
                    • VACATION - VACATION
                    • + *
                    • SICK - SICK
                    • + *
                    • PERSONAL - PERSONAL
                    • + *
                    • JURY_DUTY - JURY_DUTY
                    • + *
                    • VOLUNTEER - VOLUNTEER
                    • + *
                    • BEREAVEMENT - BEREAVEMENT
                    • + *
                    + */ @JsonSetter(value = "request_type", nulls = Nulls.SKIP) public Builder requestType(Optional requestType) { this.requestType = requestType; @@ -345,6 +385,9 @@ public Builder requestType(RequestTypeEnum requestType) { return this; } + /** + *

                    The day and time of the start of the time requested off.

                    + */ @JsonSetter(value = "start_time", nulls = Nulls.SKIP) public Builder startTime(Optional startTime) { this.startTime = startTime; @@ -356,6 +399,9 @@ public Builder startTime(OffsetDateTime startTime) { return this; } + /** + *

                    The day and time of the end of the time requested off.

                    + */ @JsonSetter(value = "end_time", nulls = Nulls.SKIP) public Builder endTime(Optional endTime) { this.endTime = endTime; diff --git a/src/main/java/com/merge/api/hris/types/TimeOffRetrieveRequest.java b/src/main/java/com/merge/api/hris/types/TimeOffRetrieveRequest.java index db9a04811..c316344cd 100644 --- a/src/main/java/com/merge/api/hris/types/TimeOffRetrieveRequest.java +++ b/src/main/java/com/merge/api/hris/types/TimeOffRetrieveRequest.java @@ -149,6 +149,9 @@ public Builder from(TimeOffRetrieveRequest other) { return this; } + /** + *

                    Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.

                    + */ @JsonSetter(value = "expand", nulls = Nulls.SKIP) public Builder expand(Optional> expand) { this.expand = expand; @@ -165,6 +168,9 @@ public Builder expand(TimeOffRetrieveRequestExpandItem expand) { return this; } + /** + *

                    Whether to include the original data Merge fetched from the third-party to produce these models.

                    + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -176,6 +182,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

                    Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

                    + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; @@ -187,6 +196,9 @@ public Builder includeShellData(Boolean includeShellData) { return this; } + /** + *

                    Deprecated. Use show_enum_origins.

                    + */ @JsonSetter(value = "remote_fields", nulls = Nulls.SKIP) public Builder remoteFields(Optional remoteFields) { this.remoteFields = remoteFields; @@ -198,6 +210,9 @@ public Builder remoteFields(TimeOffRetrieveRequestRemoteFields remoteFields) { return this; } + /** + *

                    A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. Learn more

                    + */ @JsonSetter(value = "show_enum_origins", nulls = Nulls.SKIP) public Builder showEnumOrigins(Optional showEnumOrigins) { this.showEnumOrigins = showEnumOrigins; diff --git a/src/main/java/com/merge/api/hris/types/TimesheetEntriesListRequest.java b/src/main/java/com/merge/api/hris/types/TimesheetEntriesListRequest.java index 699c94f77..2746e8924 100644 --- a/src/main/java/com/merge/api/hris/types/TimesheetEntriesListRequest.java +++ b/src/main/java/com/merge/api/hris/types/TimesheetEntriesListRequest.java @@ -358,6 +358,9 @@ public Builder from(TimesheetEntriesListRequest other) { return this; } + /** + *

                    Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.

                    + */ @JsonSetter(value = "expand", nulls = Nulls.SKIP) public Builder expand(Optional> expand) { this.expand = expand; @@ -374,6 +377,9 @@ public Builder expand(String expand) { return this; } + /** + *

                    If provided, will only return objects created after this datetime.

                    + */ @JsonSetter(value = "created_after", nulls = Nulls.SKIP) public Builder createdAfter(Optional createdAfter) { this.createdAfter = createdAfter; @@ -385,6 +391,9 @@ public Builder createdAfter(OffsetDateTime createdAfter) { return this; } + /** + *

                    If provided, will only return objects created before this datetime.

                    + */ @JsonSetter(value = "created_before", nulls = Nulls.SKIP) public Builder createdBefore(Optional createdBefore) { this.createdBefore = createdBefore; @@ -396,6 +405,9 @@ public Builder createdBefore(OffsetDateTime createdBefore) { return this; } + /** + *

                    The pagination cursor value.

                    + */ @JsonSetter(value = "cursor", nulls = Nulls.SKIP) public Builder cursor(Optional cursor) { this.cursor = cursor; @@ -407,6 +419,9 @@ public Builder cursor(String cursor) { return this; } + /** + *

                    If provided, will only return timesheet entries for this employee.

                    + */ @JsonSetter(value = "employee_id", nulls = Nulls.SKIP) public Builder employeeId(Optional employeeId) { this.employeeId = employeeId; @@ -418,6 +433,9 @@ public Builder employeeId(String employeeId) { return this; } + /** + *

                    If provided, will only return timesheet entries ended after this datetime.

                    + */ @JsonSetter(value = "ended_after", nulls = Nulls.SKIP) public Builder endedAfter(Optional endedAfter) { this.endedAfter = endedAfter; @@ -429,6 +447,9 @@ public Builder endedAfter(OffsetDateTime endedAfter) { return this; } + /** + *

                    If provided, will only return timesheet entries ended before this datetime.

                    + */ @JsonSetter(value = "ended_before", nulls = Nulls.SKIP) public Builder endedBefore(Optional endedBefore) { this.endedBefore = endedBefore; @@ -440,6 +461,9 @@ public Builder endedBefore(OffsetDateTime endedBefore) { return this; } + /** + *

                    Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

                    + */ @JsonSetter(value = "include_deleted_data", nulls = Nulls.SKIP) public Builder includeDeletedData(Optional includeDeletedData) { this.includeDeletedData = includeDeletedData; @@ -451,6 +475,9 @@ public Builder includeDeletedData(Boolean includeDeletedData) { return this; } + /** + *

                    Whether to include the original data Merge fetched from the third-party to produce these models.

                    + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -462,6 +489,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

                    Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

                    + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; @@ -473,6 +503,9 @@ public Builder includeShellData(Boolean includeShellData) { return this; } + /** + *

                    If provided, only objects synced by Merge after this date time will be returned.

                    + */ @JsonSetter(value = "modified_after", nulls = Nulls.SKIP) public Builder modifiedAfter(Optional modifiedAfter) { this.modifiedAfter = modifiedAfter; @@ -484,6 +517,9 @@ public Builder modifiedAfter(OffsetDateTime modifiedAfter) { return this; } + /** + *

                    If provided, only objects synced by Merge before this date time will be returned.

                    + */ @JsonSetter(value = "modified_before", nulls = Nulls.SKIP) public Builder modifiedBefore(Optional modifiedBefore) { this.modifiedBefore = modifiedBefore; @@ -495,6 +531,9 @@ public Builder modifiedBefore(OffsetDateTime modifiedBefore) { return this; } + /** + *

                    Overrides the default ordering for this endpoint. Possible values include: start_time, -start_time.

                    + */ @JsonSetter(value = "order_by", nulls = Nulls.SKIP) public Builder orderBy(Optional orderBy) { this.orderBy = orderBy; @@ -506,6 +545,9 @@ public Builder orderBy(TimesheetEntriesListRequestOrderBy orderBy) { return this; } + /** + *

                    Number of results to return per page.

                    + */ @JsonSetter(value = "page_size", nulls = Nulls.SKIP) public Builder pageSize(Optional pageSize) { this.pageSize = pageSize; @@ -517,6 +559,9 @@ public Builder pageSize(Integer pageSize) { return this; } + /** + *

                    The API provider's ID for the given object.

                    + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; @@ -528,6 +573,9 @@ public Builder remoteId(String remoteId) { return this; } + /** + *

                    If provided, will only return timesheet entries started after this datetime.

                    + */ @JsonSetter(value = "started_after", nulls = Nulls.SKIP) public Builder startedAfter(Optional startedAfter) { this.startedAfter = startedAfter; @@ -539,6 +587,9 @@ public Builder startedAfter(OffsetDateTime startedAfter) { return this; } + /** + *

                    If provided, will only return timesheet entries started before this datetime.

                    + */ @JsonSetter(value = "started_before", nulls = Nulls.SKIP) public Builder startedBefore(Optional startedBefore) { this.startedBefore = startedBefore; diff --git a/src/main/java/com/merge/api/hris/types/TimesheetEntriesRetrieveRequest.java b/src/main/java/com/merge/api/hris/types/TimesheetEntriesRetrieveRequest.java index 8cfd564ca..327be765e 100644 --- a/src/main/java/com/merge/api/hris/types/TimesheetEntriesRetrieveRequest.java +++ b/src/main/java/com/merge/api/hris/types/TimesheetEntriesRetrieveRequest.java @@ -116,6 +116,9 @@ public Builder from(TimesheetEntriesRetrieveRequest other) { return this; } + /** + *

                    Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.

                    + */ @JsonSetter(value = "expand", nulls = Nulls.SKIP) public Builder expand(Optional> expand) { this.expand = expand; @@ -132,6 +135,9 @@ public Builder expand(String expand) { return this; } + /** + *

                    Whether to include the original data Merge fetched from the third-party to produce these models.

                    + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -143,6 +149,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

                    Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

                    + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; diff --git a/src/main/java/com/merge/api/hris/types/TimesheetEntry.java b/src/main/java/com/merge/api/hris/types/TimesheetEntry.java index 777ed5ade..c7ccfdca9 100644 --- a/src/main/java/com/merge/api/hris/types/TimesheetEntry.java +++ b/src/main/java/com/merge/api/hris/types/TimesheetEntry.java @@ -258,6 +258,9 @@ public Builder id(String id) { return this; } + /** + *

                    The third-party API ID of the matching object.

                    + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; @@ -269,6 +272,9 @@ public Builder remoteId(String remoteId) { return this; } + /** + *

                    The datetime that this object was created by Merge.

                    + */ @JsonSetter(value = "created_at", nulls = Nulls.SKIP) public Builder createdAt(Optional createdAt) { this.createdAt = createdAt; @@ -280,6 +286,9 @@ public Builder createdAt(OffsetDateTime createdAt) { return this; } + /** + *

                    The datetime that this object was modified by Merge.

                    + */ @JsonSetter(value = "modified_at", nulls = Nulls.SKIP) public Builder modifiedAt(Optional modifiedAt) { this.modifiedAt = modifiedAt; @@ -291,6 +300,9 @@ public Builder modifiedAt(OffsetDateTime modifiedAt) { return this; } + /** + *

                    The employee the timesheet entry is for.

                    + */ @JsonSetter(value = "employee", nulls = Nulls.SKIP) public Builder employee(Optional employee) { this.employee = employee; @@ -302,6 +314,9 @@ public Builder employee(TimesheetEntryEmployee employee) { return this; } + /** + *

                    The number of hours logged by the employee.

                    + */ @JsonSetter(value = "hours_worked", nulls = Nulls.SKIP) public Builder hoursWorked(Optional hoursWorked) { this.hoursWorked = hoursWorked; @@ -313,6 +328,9 @@ public Builder hoursWorked(Double hoursWorked) { return this; } + /** + *

                    The time at which the employee started work.

                    + */ @JsonSetter(value = "start_time", nulls = Nulls.SKIP) public Builder startTime(Optional startTime) { this.startTime = startTime; @@ -324,6 +342,9 @@ public Builder startTime(OffsetDateTime startTime) { return this; } + /** + *

                    The time at which the employee ended work.

                    + */ @JsonSetter(value = "end_time", nulls = Nulls.SKIP) public Builder endTime(Optional endTime) { this.endTime = endTime; @@ -335,6 +356,9 @@ public Builder endTime(OffsetDateTime endTime) { return this; } + /** + *

                    Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

                    + */ @JsonSetter(value = "remote_was_deleted", nulls = Nulls.SKIP) public Builder remoteWasDeleted(Optional remoteWasDeleted) { this.remoteWasDeleted = remoteWasDeleted; diff --git a/src/main/java/com/merge/api/hris/types/TimesheetEntryEndpointRequest.java b/src/main/java/com/merge/api/hris/types/TimesheetEntryEndpointRequest.java index 6b070ec6e..a21d6adaf 100644 --- a/src/main/java/com/merge/api/hris/types/TimesheetEntryEndpointRequest.java +++ b/src/main/java/com/merge/api/hris/types/TimesheetEntryEndpointRequest.java @@ -99,10 +99,16 @@ public interface ModelStage { public interface _FinalStage { TimesheetEntryEndpointRequest build(); + /** + *

                    Whether to include debug fields (such as log file links) in the response.

                    + */ _FinalStage isDebugMode(Optional isDebugMode); _FinalStage isDebugMode(Boolean isDebugMode); + /** + *

                    Whether or not third-party updates should be run asynchronously.

                    + */ _FinalStage runAsync(Optional runAsync); _FinalStage runAsync(Boolean runAsync); @@ -146,6 +152,9 @@ public _FinalStage runAsync(Boolean runAsync) { return this; } + /** + *

                    Whether or not third-party updates should be run asynchronously.

                    + */ @java.lang.Override @JsonSetter(value = "run_async", nulls = Nulls.SKIP) public _FinalStage runAsync(Optional runAsync) { @@ -163,6 +172,9 @@ public _FinalStage isDebugMode(Boolean isDebugMode) { return this; } + /** + *

                    Whether to include debug fields (such as log file links) in the response.

                    + */ @java.lang.Override @JsonSetter(value = "is_debug_mode", nulls = Nulls.SKIP) public _FinalStage isDebugMode(Optional isDebugMode) { diff --git a/src/main/java/com/merge/api/hris/types/TimesheetEntryRequest.java b/src/main/java/com/merge/api/hris/types/TimesheetEntryRequest.java index fceb90c2d..9c289d6b6 100644 --- a/src/main/java/com/merge/api/hris/types/TimesheetEntryRequest.java +++ b/src/main/java/com/merge/api/hris/types/TimesheetEntryRequest.java @@ -164,6 +164,9 @@ public Builder from(TimesheetEntryRequest other) { return this; } + /** + *

                    The employee the timesheet entry is for.

                    + */ @JsonSetter(value = "employee", nulls = Nulls.SKIP) public Builder employee(Optional employee) { this.employee = employee; @@ -175,6 +178,9 @@ public Builder employee(TimesheetEntryRequestEmployee employee) { return this; } + /** + *

                    The number of hours logged by the employee.

                    + */ @JsonSetter(value = "hours_worked", nulls = Nulls.SKIP) public Builder hoursWorked(Optional hoursWorked) { this.hoursWorked = hoursWorked; @@ -186,6 +192,9 @@ public Builder hoursWorked(Double hoursWorked) { return this; } + /** + *

                    The time at which the employee started work.

                    + */ @JsonSetter(value = "start_time", nulls = Nulls.SKIP) public Builder startTime(Optional startTime) { this.startTime = startTime; @@ -197,6 +206,9 @@ public Builder startTime(OffsetDateTime startTime) { return this; } + /** + *

                    The time at which the employee ended work.

                    + */ @JsonSetter(value = "end_time", nulls = Nulls.SKIP) public Builder endTime(Optional endTime) { this.endTime = endTime; diff --git a/src/main/java/com/merge/api/ticketing/types/Account.java b/src/main/java/com/merge/api/ticketing/types/Account.java index 6bb4e8343..5f674b203 100644 --- a/src/main/java/com/merge/api/ticketing/types/Account.java +++ b/src/main/java/com/merge/api/ticketing/types/Account.java @@ -224,6 +224,9 @@ public Builder id(String id) { return this; } + /** + *

                    The third-party API ID of the matching object.

                    + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; @@ -235,6 +238,9 @@ public Builder remoteId(String remoteId) { return this; } + /** + *

                    The datetime that this object was created by Merge.

                    + */ @JsonSetter(value = "created_at", nulls = Nulls.SKIP) public Builder createdAt(Optional createdAt) { this.createdAt = createdAt; @@ -246,6 +252,9 @@ public Builder createdAt(OffsetDateTime createdAt) { return this; } + /** + *

                    The datetime that this object was modified by Merge.

                    + */ @JsonSetter(value = "modified_at", nulls = Nulls.SKIP) public Builder modifiedAt(Optional modifiedAt) { this.modifiedAt = modifiedAt; @@ -257,6 +266,9 @@ public Builder modifiedAt(OffsetDateTime modifiedAt) { return this; } + /** + *

                    The account's name.

                    + */ @JsonSetter(value = "name", nulls = Nulls.SKIP) public Builder name(Optional name) { this.name = name; @@ -268,6 +280,9 @@ public Builder name(String name) { return this; } + /** + *

                    The account's domain names.

                    + */ @JsonSetter(value = "domains", nulls = Nulls.SKIP) public Builder domains(Optional>> domains) { this.domains = domains; @@ -279,6 +294,9 @@ public Builder domains(List> domains) { return this; } + /** + *

                    Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

                    + */ @JsonSetter(value = "remote_was_deleted", nulls = Nulls.SKIP) public Builder remoteWasDeleted(Optional remoteWasDeleted) { this.remoteWasDeleted = remoteWasDeleted; diff --git a/src/main/java/com/merge/api/ticketing/types/AccountDetails.java b/src/main/java/com/merge/api/ticketing/types/AccountDetails.java index c86168303..b55faa1b4 100644 --- a/src/main/java/com/merge/api/ticketing/types/AccountDetails.java +++ b/src/main/java/com/merge/api/ticketing/types/AccountDetails.java @@ -340,6 +340,9 @@ public Builder webhookListenerUrl(String webhookListenerUrl) { return this; } + /** + *

                    Whether a Production Linked Account's credentials match another existing Production Linked Account. This field is null for Test Linked Accounts, incomplete Production Linked Accounts, and ignored duplicate Production Linked Account sets.

                    + */ @JsonSetter(value = "is_duplicate", nulls = Nulls.SKIP) public Builder isDuplicate(Optional isDuplicate) { this.isDuplicate = isDuplicate; @@ -362,6 +365,9 @@ public Builder accountType(String accountType) { return this; } + /** + *

                    The time at which account completes the linking flow.

                    + */ @JsonSetter(value = "completed_at", nulls = Nulls.SKIP) public Builder completedAt(Optional completedAt) { this.completedAt = completedAt; diff --git a/src/main/java/com/merge/api/ticketing/types/AccountDetailsAndActions.java b/src/main/java/com/merge/api/ticketing/types/AccountDetailsAndActions.java index 55d24c730..0e7e04707 100644 --- a/src/main/java/com/merge/api/ticketing/types/AccountDetailsAndActions.java +++ b/src/main/java/com/merge/api/ticketing/types/AccountDetailsAndActions.java @@ -251,10 +251,16 @@ public interface _FinalStage { _FinalStage endUserOriginId(String endUserOriginId); + /** + *

                    The tenant or domain the customer has provided access to.

                    + */ _FinalStage subdomain(Optional subdomain); _FinalStage subdomain(String subdomain); + /** + *

                    Whether a Production Linked Account's credentials match another existing Production Linked Account. This field is null for Test Linked Accounts, incomplete Production Linked Accounts, and ignored duplicate Production Linked Account sets.

                    + */ _FinalStage isDuplicate(Optional isDuplicate); _FinalStage isDuplicate(Boolean isDuplicate); @@ -395,6 +401,9 @@ public _FinalStage isDuplicate(Boolean isDuplicate) { return this; } + /** + *

                    Whether a Production Linked Account's credentials match another existing Production Linked Account. This field is null for Test Linked Accounts, incomplete Production Linked Accounts, and ignored duplicate Production Linked Account sets.

                    + */ @java.lang.Override @JsonSetter(value = "is_duplicate", nulls = Nulls.SKIP) public _FinalStage isDuplicate(Optional isDuplicate) { @@ -412,6 +421,9 @@ public _FinalStage subdomain(String subdomain) { return this; } + /** + *

                    The tenant or domain the customer has provided access to.

                    + */ @java.lang.Override @JsonSetter(value = "subdomain", nulls = Nulls.SKIP) public _FinalStage subdomain(Optional subdomain) { diff --git a/src/main/java/com/merge/api/ticketing/types/AccountIntegration.java b/src/main/java/com/merge/api/ticketing/types/AccountIntegration.java index fcac5ceac..101d1f76a 100644 --- a/src/main/java/com/merge/api/ticketing/types/AccountIntegration.java +++ b/src/main/java/com/merge/api/ticketing/types/AccountIntegration.java @@ -196,6 +196,9 @@ public static NameStage builder() { } public interface NameStage { + /** + * Company name. + */ _FinalStage name(@NotNull String name); Builder from(AccountIntegration other); @@ -204,22 +207,37 @@ public interface NameStage { public interface _FinalStage { AccountIntegration build(); + /** + *

                    Optional. This shortened name appears in places with limited space, usually in conjunction with the platform's logo (e.g., Merge Link menu).<br><br>Example: <i>Workforce Now (in lieu of ADP Workforce Now), SuccessFactors (in lieu of SAP SuccessFactors)</i>

                    + */ _FinalStage abbreviatedName(Optional abbreviatedName); _FinalStage abbreviatedName(String abbreviatedName); + /** + *

                    Category or categories this integration belongs to. Multiple categories should be comma separated, i.e. [ats, hris].

                    + */ _FinalStage categories(Optional> categories); _FinalStage categories(List categories); + /** + *

                    Company logo in rectangular shape.

                    + */ _FinalStage image(Optional image); _FinalStage image(String image); + /** + *

                    Company logo in square shape.

                    + */ _FinalStage squareImage(Optional squareImage); _FinalStage squareImage(String squareImage); + /** + *

                    The color of this integration used for buttons and text throughout the app and landing pages. <b>Choose a darker, saturated color.</b>

                    + */ _FinalStage color(Optional color); _FinalStage color(String color); @@ -228,14 +246,23 @@ public interface _FinalStage { _FinalStage slug(String slug); + /** + *

                    Mapping of API endpoints to documentation urls for support. Example: {'GET': [['/common-model-scopes', 'https://docs.merge.dev/accounting/common-model-scopes/#common_model_scopes_retrieve'],['/common-model-actions', 'https://docs.merge.dev/accounting/common-model-actions/#common_model_actions_retrieve']], 'POST': []}

                    + */ _FinalStage apiEndpointsToDocumentationUrls(Optional> apiEndpointsToDocumentationUrls); _FinalStage apiEndpointsToDocumentationUrls(Map apiEndpointsToDocumentationUrls); + /** + *

                    Setup guide URL for third party webhook creation. Exposed in Merge Docs.

                    + */ _FinalStage webhookSetupGuideUrl(Optional webhookSetupGuideUrl); _FinalStage webhookSetupGuideUrl(String webhookSetupGuideUrl); + /** + *

                    Category or categories this integration is in beta status for.

                    + */ _FinalStage categoryBetaStatus(Optional> categoryBetaStatus); _FinalStage categoryBetaStatus(Map categoryBetaStatus); @@ -284,7 +311,7 @@ public Builder from(AccountIntegration other) { } /** - *

                    Company name.

                    + * Company name.

                    Company name.

                    * @return Reference to {@code this} so that method calls can be chained together. */ @java.lang.Override @@ -304,6 +331,9 @@ public _FinalStage categoryBetaStatus(Map categoryBetaStatus) return this; } + /** + *

                    Category or categories this integration is in beta status for.

                    + */ @java.lang.Override @JsonSetter(value = "category_beta_status", nulls = Nulls.SKIP) public _FinalStage categoryBetaStatus(Optional> categoryBetaStatus) { @@ -321,6 +351,9 @@ public _FinalStage webhookSetupGuideUrl(String webhookSetupGuideUrl) { return this; } + /** + *

                    Setup guide URL for third party webhook creation. Exposed in Merge Docs.

                    + */ @java.lang.Override @JsonSetter(value = "webhook_setup_guide_url", nulls = Nulls.SKIP) public _FinalStage webhookSetupGuideUrl(Optional webhookSetupGuideUrl) { @@ -338,6 +371,9 @@ public _FinalStage apiEndpointsToDocumentationUrls(Map apiEndp return this; } + /** + *

                    Mapping of API endpoints to documentation urls for support. Example: {'GET': [['/common-model-scopes', 'https://docs.merge.dev/accounting/common-model-scopes/#common_model_scopes_retrieve'],['/common-model-actions', 'https://docs.merge.dev/accounting/common-model-actions/#common_model_actions_retrieve']], 'POST': []}

                    + */ @java.lang.Override @JsonSetter(value = "api_endpoints_to_documentation_urls", nulls = Nulls.SKIP) public _FinalStage apiEndpointsToDocumentationUrls( @@ -369,6 +405,9 @@ public _FinalStage color(String color) { return this; } + /** + *

                    The color of this integration used for buttons and text throughout the app and landing pages. <b>Choose a darker, saturated color.</b>

                    + */ @java.lang.Override @JsonSetter(value = "color", nulls = Nulls.SKIP) public _FinalStage color(Optional color) { @@ -386,6 +425,9 @@ public _FinalStage squareImage(String squareImage) { return this; } + /** + *

                    Company logo in square shape.

                    + */ @java.lang.Override @JsonSetter(value = "square_image", nulls = Nulls.SKIP) public _FinalStage squareImage(Optional squareImage) { @@ -403,6 +445,9 @@ public _FinalStage image(String image) { return this; } + /** + *

                    Company logo in rectangular shape.

                    + */ @java.lang.Override @JsonSetter(value = "image", nulls = Nulls.SKIP) public _FinalStage image(Optional image) { @@ -420,6 +465,9 @@ public _FinalStage categories(List categories) { return this; } + /** + *

                    Category or categories this integration belongs to. Multiple categories should be comma separated, i.e. [ats, hris].

                    + */ @java.lang.Override @JsonSetter(value = "categories", nulls = Nulls.SKIP) public _FinalStage categories(Optional> categories) { @@ -437,6 +485,9 @@ public _FinalStage abbreviatedName(String abbreviatedName) { return this; } + /** + *

                    Optional. This shortened name appears in places with limited space, usually in conjunction with the platform's logo (e.g., Merge Link menu).<br><br>Example: <i>Workforce Now (in lieu of ADP Workforce Now), SuccessFactors (in lieu of SAP SuccessFactors)</i>

                    + */ @java.lang.Override @JsonSetter(value = "abbreviated_name", nulls = Nulls.SKIP) public _FinalStage abbreviatedName(Optional abbreviatedName) { diff --git a/src/main/java/com/merge/api/ticketing/types/AccountsListRequest.java b/src/main/java/com/merge/api/ticketing/types/AccountsListRequest.java index 71ad8ba95..078bba608 100644 --- a/src/main/java/com/merge/api/ticketing/types/AccountsListRequest.java +++ b/src/main/java/com/merge/api/ticketing/types/AccountsListRequest.java @@ -237,6 +237,9 @@ public Builder from(AccountsListRequest other) { return this; } + /** + *

                    If provided, will only return objects created after this datetime.

                    + */ @JsonSetter(value = "created_after", nulls = Nulls.SKIP) public Builder createdAfter(Optional createdAfter) { this.createdAfter = createdAfter; @@ -248,6 +251,9 @@ public Builder createdAfter(OffsetDateTime createdAfter) { return this; } + /** + *

                    If provided, will only return objects created before this datetime.

                    + */ @JsonSetter(value = "created_before", nulls = Nulls.SKIP) public Builder createdBefore(Optional createdBefore) { this.createdBefore = createdBefore; @@ -259,6 +265,9 @@ public Builder createdBefore(OffsetDateTime createdBefore) { return this; } + /** + *

                    The pagination cursor value.

                    + */ @JsonSetter(value = "cursor", nulls = Nulls.SKIP) public Builder cursor(Optional cursor) { this.cursor = cursor; @@ -270,6 +279,9 @@ public Builder cursor(String cursor) { return this; } + /** + *

                    Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

                    + */ @JsonSetter(value = "include_deleted_data", nulls = Nulls.SKIP) public Builder includeDeletedData(Optional includeDeletedData) { this.includeDeletedData = includeDeletedData; @@ -281,6 +293,9 @@ public Builder includeDeletedData(Boolean includeDeletedData) { return this; } + /** + *

                    Whether to include the original data Merge fetched from the third-party to produce these models.

                    + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -292,6 +307,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

                    Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

                    + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; @@ -303,6 +321,9 @@ public Builder includeShellData(Boolean includeShellData) { return this; } + /** + *

                    If provided, only objects synced by Merge after this date time will be returned.

                    + */ @JsonSetter(value = "modified_after", nulls = Nulls.SKIP) public Builder modifiedAfter(Optional modifiedAfter) { this.modifiedAfter = modifiedAfter; @@ -314,6 +335,9 @@ public Builder modifiedAfter(OffsetDateTime modifiedAfter) { return this; } + /** + *

                    If provided, only objects synced by Merge before this date time will be returned.

                    + */ @JsonSetter(value = "modified_before", nulls = Nulls.SKIP) public Builder modifiedBefore(Optional modifiedBefore) { this.modifiedBefore = modifiedBefore; @@ -325,6 +349,9 @@ public Builder modifiedBefore(OffsetDateTime modifiedBefore) { return this; } + /** + *

                    Number of results to return per page.

                    + */ @JsonSetter(value = "page_size", nulls = Nulls.SKIP) public Builder pageSize(Optional pageSize) { this.pageSize = pageSize; @@ -336,6 +363,9 @@ public Builder pageSize(Integer pageSize) { return this; } + /** + *

                    The API provider's ID for the given object.

                    + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; diff --git a/src/main/java/com/merge/api/ticketing/types/AccountsRetrieveRequest.java b/src/main/java/com/merge/api/ticketing/types/AccountsRetrieveRequest.java index f56039274..963444791 100644 --- a/src/main/java/com/merge/api/ticketing/types/AccountsRetrieveRequest.java +++ b/src/main/java/com/merge/api/ticketing/types/AccountsRetrieveRequest.java @@ -97,6 +97,9 @@ public Builder from(AccountsRetrieveRequest other) { return this; } + /** + *

                    Whether to include the original data Merge fetched from the third-party to produce these models.

                    + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -108,6 +111,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

                    Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

                    + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; diff --git a/src/main/java/com/merge/api/ticketing/types/Attachment.java b/src/main/java/com/merge/api/ticketing/types/Attachment.java index eea8438b8..af88c8808 100644 --- a/src/main/java/com/merge/api/ticketing/types/Attachment.java +++ b/src/main/java/com/merge/api/ticketing/types/Attachment.java @@ -292,6 +292,9 @@ public Builder id(String id) { return this; } + /** + *

                    The third-party API ID of the matching object.

                    + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; @@ -303,6 +306,9 @@ public Builder remoteId(String remoteId) { return this; } + /** + *

                    The datetime that this object was created by Merge.

                    + */ @JsonSetter(value = "created_at", nulls = Nulls.SKIP) public Builder createdAt(Optional createdAt) { this.createdAt = createdAt; @@ -314,6 +320,9 @@ public Builder createdAt(OffsetDateTime createdAt) { return this; } + /** + *

                    The datetime that this object was modified by Merge.

                    + */ @JsonSetter(value = "modified_at", nulls = Nulls.SKIP) public Builder modifiedAt(Optional modifiedAt) { this.modifiedAt = modifiedAt; @@ -325,6 +334,9 @@ public Builder modifiedAt(OffsetDateTime modifiedAt) { return this; } + /** + *

                    The attachment's name. It is required to include the file extension in the attachment's name.

                    + */ @JsonSetter(value = "file_name", nulls = Nulls.SKIP) public Builder fileName(Optional fileName) { this.fileName = fileName; @@ -336,6 +348,9 @@ public Builder fileName(String fileName) { return this; } + /** + *

                    The ticket associated with the attachment.

                    + */ @JsonSetter(value = "ticket", nulls = Nulls.SKIP) public Builder ticket(Optional ticket) { this.ticket = ticket; @@ -347,6 +362,9 @@ public Builder ticket(AttachmentTicket ticket) { return this; } + /** + *

                    The attachment's url. It is required to include the file extension in the file's URL.

                    + */ @JsonSetter(value = "file_url", nulls = Nulls.SKIP) public Builder fileUrl(Optional fileUrl) { this.fileUrl = fileUrl; @@ -358,6 +376,9 @@ public Builder fileUrl(String fileUrl) { return this; } + /** + *

                    The attachment's file format.

                    + */ @JsonSetter(value = "content_type", nulls = Nulls.SKIP) public Builder contentType(Optional contentType) { this.contentType = contentType; @@ -369,6 +390,9 @@ public Builder contentType(String contentType) { return this; } + /** + *

                    The user who uploaded the attachment.

                    + */ @JsonSetter(value = "uploaded_by", nulls = Nulls.SKIP) public Builder uploadedBy(Optional uploadedBy) { this.uploadedBy = uploadedBy; @@ -380,6 +404,9 @@ public Builder uploadedBy(String uploadedBy) { return this; } + /** + *

                    When the third party's attachment was created.

                    + */ @JsonSetter(value = "remote_created_at", nulls = Nulls.SKIP) public Builder remoteCreatedAt(Optional remoteCreatedAt) { this.remoteCreatedAt = remoteCreatedAt; @@ -391,6 +418,9 @@ public Builder remoteCreatedAt(OffsetDateTime remoteCreatedAt) { return this; } + /** + *

                    Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

                    + */ @JsonSetter(value = "remote_was_deleted", nulls = Nulls.SKIP) public Builder remoteWasDeleted(Optional remoteWasDeleted) { this.remoteWasDeleted = remoteWasDeleted; diff --git a/src/main/java/com/merge/api/ticketing/types/AttachmentRequest.java b/src/main/java/com/merge/api/ticketing/types/AttachmentRequest.java index b01a4a9d4..ed3c73e95 100644 --- a/src/main/java/com/merge/api/ticketing/types/AttachmentRequest.java +++ b/src/main/java/com/merge/api/ticketing/types/AttachmentRequest.java @@ -180,6 +180,9 @@ public Builder from(AttachmentRequest other) { return this; } + /** + *

                    The attachment's name. It is required to include the file extension in the attachment's name.

                    + */ @JsonSetter(value = "file_name", nulls = Nulls.SKIP) public Builder fileName(Optional fileName) { this.fileName = fileName; @@ -191,6 +194,9 @@ public Builder fileName(String fileName) { return this; } + /** + *

                    The ticket associated with the attachment.

                    + */ @JsonSetter(value = "ticket", nulls = Nulls.SKIP) public Builder ticket(Optional ticket) { this.ticket = ticket; @@ -202,6 +208,9 @@ public Builder ticket(AttachmentRequestTicket ticket) { return this; } + /** + *

                    The attachment's url. It is required to include the file extension in the file's URL.

                    + */ @JsonSetter(value = "file_url", nulls = Nulls.SKIP) public Builder fileUrl(Optional fileUrl) { this.fileUrl = fileUrl; @@ -213,6 +222,9 @@ public Builder fileUrl(String fileUrl) { return this; } + /** + *

                    The attachment's file format.

                    + */ @JsonSetter(value = "content_type", nulls = Nulls.SKIP) public Builder contentType(Optional contentType) { this.contentType = contentType; @@ -224,6 +236,9 @@ public Builder contentType(String contentType) { return this; } + /** + *

                    The user who uploaded the attachment.

                    + */ @JsonSetter(value = "uploaded_by", nulls = Nulls.SKIP) public Builder uploadedBy(Optional uploadedBy) { this.uploadedBy = uploadedBy; diff --git a/src/main/java/com/merge/api/ticketing/types/AttachmentsDownloadRetrieveRequest.java b/src/main/java/com/merge/api/ticketing/types/AttachmentsDownloadRetrieveRequest.java index 772920ca5..da95609f1 100644 --- a/src/main/java/com/merge/api/ticketing/types/AttachmentsDownloadRetrieveRequest.java +++ b/src/main/java/com/merge/api/ticketing/types/AttachmentsDownloadRetrieveRequest.java @@ -96,6 +96,9 @@ public Builder from(AttachmentsDownloadRetrieveRequest other) { return this; } + /** + *

                    Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

                    + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; @@ -107,6 +110,9 @@ public Builder includeShellData(Boolean includeShellData) { return this; } + /** + *

                    If provided, specifies the export format of the file to be downloaded. For information on supported export formats, please refer to our <a href='https://help.merge.dev/en/articles/8615316-file-export-and-download-specification' target='_blank'>export format help center article</a>.

                    + */ @JsonSetter(value = "mime_type", nulls = Nulls.SKIP) public Builder mimeType(Optional mimeType) { this.mimeType = mimeType; diff --git a/src/main/java/com/merge/api/ticketing/types/AttachmentsListRequest.java b/src/main/java/com/merge/api/ticketing/types/AttachmentsListRequest.java index 9cbacb007..7ae7453c2 100644 --- a/src/main/java/com/merge/api/ticketing/types/AttachmentsListRequest.java +++ b/src/main/java/com/merge/api/ticketing/types/AttachmentsListRequest.java @@ -290,6 +290,9 @@ public Builder from(AttachmentsListRequest other) { return this; } + /** + *

                    Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.

                    + */ @JsonSetter(value = "expand", nulls = Nulls.SKIP) public Builder expand(Optional> expand) { this.expand = expand; @@ -306,6 +309,9 @@ public Builder expand(String expand) { return this; } + /** + *

                    If provided, will only return objects created after this datetime.

                    + */ @JsonSetter(value = "created_after", nulls = Nulls.SKIP) public Builder createdAfter(Optional createdAfter) { this.createdAfter = createdAfter; @@ -317,6 +323,9 @@ public Builder createdAfter(OffsetDateTime createdAfter) { return this; } + /** + *

                    If provided, will only return objects created before this datetime.

                    + */ @JsonSetter(value = "created_before", nulls = Nulls.SKIP) public Builder createdBefore(Optional createdBefore) { this.createdBefore = createdBefore; @@ -328,6 +337,9 @@ public Builder createdBefore(OffsetDateTime createdBefore) { return this; } + /** + *

                    The pagination cursor value.

                    + */ @JsonSetter(value = "cursor", nulls = Nulls.SKIP) public Builder cursor(Optional cursor) { this.cursor = cursor; @@ -339,6 +351,9 @@ public Builder cursor(String cursor) { return this; } + /** + *

                    Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

                    + */ @JsonSetter(value = "include_deleted_data", nulls = Nulls.SKIP) public Builder includeDeletedData(Optional includeDeletedData) { this.includeDeletedData = includeDeletedData; @@ -350,6 +365,9 @@ public Builder includeDeletedData(Boolean includeDeletedData) { return this; } + /** + *

                    Whether to include the original data Merge fetched from the third-party to produce these models.

                    + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -361,6 +379,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

                    Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

                    + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; @@ -372,6 +393,9 @@ public Builder includeShellData(Boolean includeShellData) { return this; } + /** + *

                    If provided, only objects synced by Merge after this date time will be returned.

                    + */ @JsonSetter(value = "modified_after", nulls = Nulls.SKIP) public Builder modifiedAfter(Optional modifiedAfter) { this.modifiedAfter = modifiedAfter; @@ -383,6 +407,9 @@ public Builder modifiedAfter(OffsetDateTime modifiedAfter) { return this; } + /** + *

                    If provided, only objects synced by Merge before this date time will be returned.

                    + */ @JsonSetter(value = "modified_before", nulls = Nulls.SKIP) public Builder modifiedBefore(Optional modifiedBefore) { this.modifiedBefore = modifiedBefore; @@ -394,6 +421,9 @@ public Builder modifiedBefore(OffsetDateTime modifiedBefore) { return this; } + /** + *

                    Number of results to return per page.

                    + */ @JsonSetter(value = "page_size", nulls = Nulls.SKIP) public Builder pageSize(Optional pageSize) { this.pageSize = pageSize; @@ -405,6 +435,9 @@ public Builder pageSize(Integer pageSize) { return this; } + /** + *

                    If provided, will only return attachments created in the third party platform after this datetime.

                    + */ @JsonSetter(value = "remote_created_after", nulls = Nulls.SKIP) public Builder remoteCreatedAfter(Optional remoteCreatedAfter) { this.remoteCreatedAfter = remoteCreatedAfter; @@ -416,6 +449,9 @@ public Builder remoteCreatedAfter(OffsetDateTime remoteCreatedAfter) { return this; } + /** + *

                    The API provider's ID for the given object.

                    + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; @@ -427,6 +463,9 @@ public Builder remoteId(String remoteId) { return this; } + /** + *

                    If provided, will only return comments for this ticket.

                    + */ @JsonSetter(value = "ticket_id", nulls = Nulls.SKIP) public Builder ticketId(Optional ticketId) { this.ticketId = ticketId; diff --git a/src/main/java/com/merge/api/ticketing/types/AttachmentsRetrieveRequest.java b/src/main/java/com/merge/api/ticketing/types/AttachmentsRetrieveRequest.java index 9388765b5..cfa266f51 100644 --- a/src/main/java/com/merge/api/ticketing/types/AttachmentsRetrieveRequest.java +++ b/src/main/java/com/merge/api/ticketing/types/AttachmentsRetrieveRequest.java @@ -116,6 +116,9 @@ public Builder from(AttachmentsRetrieveRequest other) { return this; } + /** + *

                    Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.

                    + */ @JsonSetter(value = "expand", nulls = Nulls.SKIP) public Builder expand(Optional> expand) { this.expand = expand; @@ -132,6 +135,9 @@ public Builder expand(String expand) { return this; } + /** + *

                    Whether to include the original data Merge fetched from the third-party to produce these models.

                    + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -143,6 +149,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

                    Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

                    + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; diff --git a/src/main/java/com/merge/api/ticketing/types/AuditLogEvent.java b/src/main/java/com/merge/api/ticketing/types/AuditLogEvent.java index 3a02d03d8..ce6731688 100644 --- a/src/main/java/com/merge/api/ticketing/types/AuditLogEvent.java +++ b/src/main/java/com/merge/api/ticketing/types/AuditLogEvent.java @@ -210,6 +210,16 @@ public static RoleStage builder() { } public interface RoleStage { + /** + * Designates the role of the user (or SYSTEM/API if action not taken by a user) at the time of this Event occurring. + * + * * `ADMIN` - ADMIN + * * `DEVELOPER` - DEVELOPER + * * `MEMBER` - MEMBER + * * `API` - API + * * `SYSTEM` - SYSTEM + * * `MERGE_TEAM` - MERGE_TEAM + */ IpAddressStage role(@NotNull RoleEnum role); Builder from(AuditLogEvent other); @@ -220,6 +230,52 @@ public interface IpAddressStage { } public interface EventTypeStage { + /** + * Designates the type of event that occurred. + * + * * `CREATED_REMOTE_PRODUCTION_API_KEY` - CREATED_REMOTE_PRODUCTION_API_KEY + * * `DELETED_REMOTE_PRODUCTION_API_KEY` - DELETED_REMOTE_PRODUCTION_API_KEY + * * `CREATED_TEST_API_KEY` - CREATED_TEST_API_KEY + * * `DELETED_TEST_API_KEY` - DELETED_TEST_API_KEY + * * `REGENERATED_PRODUCTION_API_KEY` - REGENERATED_PRODUCTION_API_KEY + * * `INVITED_USER` - INVITED_USER + * * `TWO_FACTOR_AUTH_ENABLED` - TWO_FACTOR_AUTH_ENABLED + * * `TWO_FACTOR_AUTH_DISABLED` - TWO_FACTOR_AUTH_DISABLED + * * `DELETED_LINKED_ACCOUNT` - DELETED_LINKED_ACCOUNT + * * `DELETED_ALL_COMMON_MODELS_FOR_LINKED_ACCOUNT` - DELETED_ALL_COMMON_MODELS_FOR_LINKED_ACCOUNT + * * `CREATED_DESTINATION` - CREATED_DESTINATION + * * `DELETED_DESTINATION` - DELETED_DESTINATION + * * `CHANGED_DESTINATION` - CHANGED_DESTINATION + * * `CHANGED_SCOPES` - CHANGED_SCOPES + * * `CHANGED_PERSONAL_INFORMATION` - CHANGED_PERSONAL_INFORMATION + * * `CHANGED_ORGANIZATION_SETTINGS` - CHANGED_ORGANIZATION_SETTINGS + * * `ENABLED_INTEGRATION` - ENABLED_INTEGRATION + * * `DISABLED_INTEGRATION` - DISABLED_INTEGRATION + * * `ENABLED_CATEGORY` - ENABLED_CATEGORY + * * `DISABLED_CATEGORY` - DISABLED_CATEGORY + * * `CHANGED_PASSWORD` - CHANGED_PASSWORD + * * `RESET_PASSWORD` - RESET_PASSWORD + * * `ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION` - ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION + * * `ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT` - ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT + * * `DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION` - DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION + * * `DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT` - DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT + * * `CREATED_INTEGRATION_WIDE_FIELD_MAPPING` - CREATED_INTEGRATION_WIDE_FIELD_MAPPING + * * `CREATED_LINKED_ACCOUNT_FIELD_MAPPING` - CREATED_LINKED_ACCOUNT_FIELD_MAPPING + * * `CHANGED_INTEGRATION_WIDE_FIELD_MAPPING` - CHANGED_INTEGRATION_WIDE_FIELD_MAPPING + * * `CHANGED_LINKED_ACCOUNT_FIELD_MAPPING` - CHANGED_LINKED_ACCOUNT_FIELD_MAPPING + * * `DELETED_INTEGRATION_WIDE_FIELD_MAPPING` - DELETED_INTEGRATION_WIDE_FIELD_MAPPING + * * `DELETED_LINKED_ACCOUNT_FIELD_MAPPING` - DELETED_LINKED_ACCOUNT_FIELD_MAPPING + * * `CREATED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE` - CREATED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE + * * `CHANGED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE` - CHANGED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE + * * `DELETED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE` - DELETED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE + * * `FORCED_LINKED_ACCOUNT_RESYNC` - FORCED_LINKED_ACCOUNT_RESYNC + * * `MUTED_ISSUE` - MUTED_ISSUE + * * `GENERATED_MAGIC_LINK` - GENERATED_MAGIC_LINK + * * `ENABLED_MERGE_WEBHOOK` - ENABLED_MERGE_WEBHOOK + * * `DISABLED_MERGE_WEBHOOK` - DISABLED_MERGE_WEBHOOK + * * `MERGE_WEBHOOK_TARGET_CHANGED` - MERGE_WEBHOOK_TARGET_CHANGED + * * `END_USER_CREDENTIALS_ACCESSED` - END_USER_CREDENTIALS_ACCESSED + */ EventDescriptionStage eventType(@NotNull EventTypeEnum eventType); } @@ -234,10 +290,16 @@ public interface _FinalStage { _FinalStage id(String id); + /** + *

                    The User's full name at the time of this Event occurring.

                    + */ _FinalStage userName(Optional userName); _FinalStage userName(String userName); + /** + *

                    The User's email at the time of this Event occurring.

                    + */ _FinalStage userEmail(Optional userEmail); _FinalStage userEmail(String userEmail); @@ -285,7 +347,14 @@ public Builder from(AuditLogEvent other) { } /** - *

                    Designates the role of the user (or SYSTEM/API if action not taken by a user) at the time of this Event occurring.

                    + * Designates the role of the user (or SYSTEM/API if action not taken by a user) at the time of this Event occurring. + * + * * `ADMIN` - ADMIN + * * `DEVELOPER` - DEVELOPER + * * `MEMBER` - MEMBER + * * `API` - API + * * `SYSTEM` - SYSTEM + * * `MERGE_TEAM` - MERGE_TEAM

                    Designates the role of the user (or SYSTEM/API if action not taken by a user) at the time of this Event occurring.

                    *
                      *
                    • ADMIN - ADMIN
                    • *
                    • DEVELOPER - DEVELOPER
                    • @@ -311,7 +380,50 @@ public EventTypeStage ipAddress(@NotNull String ipAddress) { } /** - *

                      Designates the type of event that occurred.

                      + * Designates the type of event that occurred. + * + * * `CREATED_REMOTE_PRODUCTION_API_KEY` - CREATED_REMOTE_PRODUCTION_API_KEY + * * `DELETED_REMOTE_PRODUCTION_API_KEY` - DELETED_REMOTE_PRODUCTION_API_KEY + * * `CREATED_TEST_API_KEY` - CREATED_TEST_API_KEY + * * `DELETED_TEST_API_KEY` - DELETED_TEST_API_KEY + * * `REGENERATED_PRODUCTION_API_KEY` - REGENERATED_PRODUCTION_API_KEY + * * `INVITED_USER` - INVITED_USER + * * `TWO_FACTOR_AUTH_ENABLED` - TWO_FACTOR_AUTH_ENABLED + * * `TWO_FACTOR_AUTH_DISABLED` - TWO_FACTOR_AUTH_DISABLED + * * `DELETED_LINKED_ACCOUNT` - DELETED_LINKED_ACCOUNT + * * `DELETED_ALL_COMMON_MODELS_FOR_LINKED_ACCOUNT` - DELETED_ALL_COMMON_MODELS_FOR_LINKED_ACCOUNT + * * `CREATED_DESTINATION` - CREATED_DESTINATION + * * `DELETED_DESTINATION` - DELETED_DESTINATION + * * `CHANGED_DESTINATION` - CHANGED_DESTINATION + * * `CHANGED_SCOPES` - CHANGED_SCOPES + * * `CHANGED_PERSONAL_INFORMATION` - CHANGED_PERSONAL_INFORMATION + * * `CHANGED_ORGANIZATION_SETTINGS` - CHANGED_ORGANIZATION_SETTINGS + * * `ENABLED_INTEGRATION` - ENABLED_INTEGRATION + * * `DISABLED_INTEGRATION` - DISABLED_INTEGRATION + * * `ENABLED_CATEGORY` - ENABLED_CATEGORY + * * `DISABLED_CATEGORY` - DISABLED_CATEGORY + * * `CHANGED_PASSWORD` - CHANGED_PASSWORD + * * `RESET_PASSWORD` - RESET_PASSWORD + * * `ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION` - ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION + * * `ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT` - ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT + * * `DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION` - DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION + * * `DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT` - DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT + * * `CREATED_INTEGRATION_WIDE_FIELD_MAPPING` - CREATED_INTEGRATION_WIDE_FIELD_MAPPING + * * `CREATED_LINKED_ACCOUNT_FIELD_MAPPING` - CREATED_LINKED_ACCOUNT_FIELD_MAPPING + * * `CHANGED_INTEGRATION_WIDE_FIELD_MAPPING` - CHANGED_INTEGRATION_WIDE_FIELD_MAPPING + * * `CHANGED_LINKED_ACCOUNT_FIELD_MAPPING` - CHANGED_LINKED_ACCOUNT_FIELD_MAPPING + * * `DELETED_INTEGRATION_WIDE_FIELD_MAPPING` - DELETED_INTEGRATION_WIDE_FIELD_MAPPING + * * `DELETED_LINKED_ACCOUNT_FIELD_MAPPING` - DELETED_LINKED_ACCOUNT_FIELD_MAPPING + * * `CREATED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE` - CREATED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE + * * `CHANGED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE` - CHANGED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE + * * `DELETED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE` - DELETED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE + * * `FORCED_LINKED_ACCOUNT_RESYNC` - FORCED_LINKED_ACCOUNT_RESYNC + * * `MUTED_ISSUE` - MUTED_ISSUE + * * `GENERATED_MAGIC_LINK` - GENERATED_MAGIC_LINK + * * `ENABLED_MERGE_WEBHOOK` - ENABLED_MERGE_WEBHOOK + * * `DISABLED_MERGE_WEBHOOK` - DISABLED_MERGE_WEBHOOK + * * `MERGE_WEBHOOK_TARGET_CHANGED` - MERGE_WEBHOOK_TARGET_CHANGED + * * `END_USER_CREDENTIALS_ACCESSED` - END_USER_CREDENTIALS_ACCESSED

                      Designates the type of event that occurred.

                      *
                        *
                      • CREATED_REMOTE_PRODUCTION_API_KEY - CREATED_REMOTE_PRODUCTION_API_KEY
                      • *
                      • DELETED_REMOTE_PRODUCTION_API_KEY - DELETED_REMOTE_PRODUCTION_API_KEY
                      • @@ -395,6 +507,9 @@ public _FinalStage userEmail(String userEmail) { return this; } + /** + *

                        The User's email at the time of this Event occurring.

                        + */ @java.lang.Override @JsonSetter(value = "user_email", nulls = Nulls.SKIP) public _FinalStage userEmail(Optional userEmail) { @@ -412,6 +527,9 @@ public _FinalStage userName(String userName) { return this; } + /** + *

                        The User's full name at the time of this Event occurring.

                        + */ @java.lang.Override @JsonSetter(value = "user_name", nulls = Nulls.SKIP) public _FinalStage userName(Optional userName) { diff --git a/src/main/java/com/merge/api/ticketing/types/AuditTrailListRequest.java b/src/main/java/com/merge/api/ticketing/types/AuditTrailListRequest.java index 3795fa8c2..056be5d51 100644 --- a/src/main/java/com/merge/api/ticketing/types/AuditTrailListRequest.java +++ b/src/main/java/com/merge/api/ticketing/types/AuditTrailListRequest.java @@ -162,6 +162,9 @@ public Builder from(AuditTrailListRequest other) { return this; } + /** + *

                        The pagination cursor value.

                        + */ @JsonSetter(value = "cursor", nulls = Nulls.SKIP) public Builder cursor(Optional cursor) { this.cursor = cursor; @@ -173,6 +176,9 @@ public Builder cursor(String cursor) { return this; } + /** + *

                        If included, will only include audit trail events that occurred before this time

                        + */ @JsonSetter(value = "end_date", nulls = Nulls.SKIP) public Builder endDate(Optional endDate) { this.endDate = endDate; @@ -184,6 +190,9 @@ public Builder endDate(String endDate) { return this; } + /** + *

                        If included, will only include events with the given event type. Possible values include: CREATED_REMOTE_PRODUCTION_API_KEY, DELETED_REMOTE_PRODUCTION_API_KEY, CREATED_TEST_API_KEY, DELETED_TEST_API_KEY, REGENERATED_PRODUCTION_API_KEY, INVITED_USER, TWO_FACTOR_AUTH_ENABLED, TWO_FACTOR_AUTH_DISABLED, DELETED_LINKED_ACCOUNT, DELETED_ALL_COMMON_MODELS_FOR_LINKED_ACCOUNT, CREATED_DESTINATION, DELETED_DESTINATION, CHANGED_DESTINATION, CHANGED_SCOPES, CHANGED_PERSONAL_INFORMATION, CHANGED_ORGANIZATION_SETTINGS, ENABLED_INTEGRATION, DISABLED_INTEGRATION, ENABLED_CATEGORY, DISABLED_CATEGORY, CHANGED_PASSWORD, RESET_PASSWORD, ENABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION, ENABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT, DISABLED_REDACT_UNMAPPED_DATA_FOR_ORGANIZATION, DISABLED_REDACT_UNMAPPED_DATA_FOR_LINKED_ACCOUNT, CREATED_INTEGRATION_WIDE_FIELD_MAPPING, CREATED_LINKED_ACCOUNT_FIELD_MAPPING, CHANGED_INTEGRATION_WIDE_FIELD_MAPPING, CHANGED_LINKED_ACCOUNT_FIELD_MAPPING, DELETED_INTEGRATION_WIDE_FIELD_MAPPING, DELETED_LINKED_ACCOUNT_FIELD_MAPPING, CREATED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE, CHANGED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE, DELETED_LINKED_ACCOUNT_COMMON_MODEL_OVERRIDE, FORCED_LINKED_ACCOUNT_RESYNC, MUTED_ISSUE, GENERATED_MAGIC_LINK, ENABLED_MERGE_WEBHOOK, DISABLED_MERGE_WEBHOOK, MERGE_WEBHOOK_TARGET_CHANGED, END_USER_CREDENTIALS_ACCESSED

                        + */ @JsonSetter(value = "event_type", nulls = Nulls.SKIP) public Builder eventType(Optional eventType) { this.eventType = eventType; @@ -195,6 +204,9 @@ public Builder eventType(String eventType) { return this; } + /** + *

                        Number of results to return per page.

                        + */ @JsonSetter(value = "page_size", nulls = Nulls.SKIP) public Builder pageSize(Optional pageSize) { this.pageSize = pageSize; @@ -206,6 +218,9 @@ public Builder pageSize(Integer pageSize) { return this; } + /** + *

                        If included, will only include audit trail events that occurred after this time

                        + */ @JsonSetter(value = "start_date", nulls = Nulls.SKIP) public Builder startDate(Optional startDate) { this.startDate = startDate; @@ -217,6 +232,9 @@ public Builder startDate(String startDate) { return this; } + /** + *

                        If provided, this will return events associated with the specified user email. Please note that the email address reflects the user's email at the time of the event, and may not be their current email.

                        + */ @JsonSetter(value = "user_email", nulls = Nulls.SKIP) public Builder userEmail(Optional userEmail) { this.userEmail = userEmail; diff --git a/src/main/java/com/merge/api/ticketing/types/Collection.java b/src/main/java/com/merge/api/ticketing/types/Collection.java index ef054fdd7..8bad9b2ab 100644 --- a/src/main/java/com/merge/api/ticketing/types/Collection.java +++ b/src/main/java/com/merge/api/ticketing/types/Collection.java @@ -284,6 +284,9 @@ public Builder id(String id) { return this; } + /** + *

                        The third-party API ID of the matching object.

                        + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; @@ -295,6 +298,9 @@ public Builder remoteId(String remoteId) { return this; } + /** + *

                        The datetime that this object was created by Merge.

                        + */ @JsonSetter(value = "created_at", nulls = Nulls.SKIP) public Builder createdAt(Optional createdAt) { this.createdAt = createdAt; @@ -306,6 +312,9 @@ public Builder createdAt(OffsetDateTime createdAt) { return this; } + /** + *

                        The datetime that this object was modified by Merge.

                        + */ @JsonSetter(value = "modified_at", nulls = Nulls.SKIP) public Builder modifiedAt(Optional modifiedAt) { this.modifiedAt = modifiedAt; @@ -317,6 +326,9 @@ public Builder modifiedAt(OffsetDateTime modifiedAt) { return this; } + /** + *

                        The collection's name.

                        + */ @JsonSetter(value = "name", nulls = Nulls.SKIP) public Builder name(Optional name) { this.name = name; @@ -328,6 +340,9 @@ public Builder name(String name) { return this; } + /** + *

                        The collection's description.

                        + */ @JsonSetter(value = "description", nulls = Nulls.SKIP) public Builder description(Optional description) { this.description = description; @@ -339,6 +354,13 @@ public Builder description(String description) { return this; } + /** + *

                        The collection's type.

                        + *
                          + *
                        • LIST - LIST
                        • + *
                        • PROJECT - PROJECT
                        • + *
                        + */ @JsonSetter(value = "collection_type", nulls = Nulls.SKIP) public Builder collectionType(Optional collectionType) { this.collectionType = collectionType; @@ -350,6 +372,9 @@ public Builder collectionType(CollectionTypeEnum collectionType) { return this; } + /** + *

                        The parent collection for this collection.

                        + */ @JsonSetter(value = "parent_collection", nulls = Nulls.SKIP) public Builder parentCollection(Optional parentCollection) { this.parentCollection = parentCollection; @@ -361,6 +386,9 @@ public Builder parentCollection(CollectionParentCollection parentCollection) { return this; } + /** + *

                        Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

                        + */ @JsonSetter(value = "remote_was_deleted", nulls = Nulls.SKIP) public Builder remoteWasDeleted(Optional remoteWasDeleted) { this.remoteWasDeleted = remoteWasDeleted; @@ -372,6 +400,14 @@ public Builder remoteWasDeleted(Boolean remoteWasDeleted) { return this; } + /** + *

                        The level of access a User has to the Collection and its sub-objects.

                        + *
                          + *
                        • PRIVATE - PRIVATE
                        • + *
                        • COMPANY - COMPANY
                        • + *
                        • PUBLIC - PUBLIC
                        • + *
                        + */ @JsonSetter(value = "access_level", nulls = Nulls.SKIP) public Builder accessLevel(Optional accessLevel) { this.accessLevel = accessLevel; diff --git a/src/main/java/com/merge/api/ticketing/types/CollectionsListRequest.java b/src/main/java/com/merge/api/ticketing/types/CollectionsListRequest.java index 126e6cce0..ad5d87c45 100644 --- a/src/main/java/com/merge/api/ticketing/types/CollectionsListRequest.java +++ b/src/main/java/com/merge/api/ticketing/types/CollectionsListRequest.java @@ -324,6 +324,9 @@ public Builder from(CollectionsListRequest other) { return this; } + /** + *

                        Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.

                        + */ @JsonSetter(value = "expand", nulls = Nulls.SKIP) public Builder expand(Optional> expand) { this.expand = expand; @@ -340,6 +343,9 @@ public Builder expand(String expand) { return this; } + /** + *

                        If provided, will only return collections of the given type.

                        + */ @JsonSetter(value = "collection_type", nulls = Nulls.SKIP) public Builder collectionType(Optional collectionType) { this.collectionType = collectionType; @@ -351,6 +357,9 @@ public Builder collectionType(String collectionType) { return this; } + /** + *

                        If provided, will only return objects created after this datetime.

                        + */ @JsonSetter(value = "created_after", nulls = Nulls.SKIP) public Builder createdAfter(Optional createdAfter) { this.createdAfter = createdAfter; @@ -362,6 +371,9 @@ public Builder createdAfter(OffsetDateTime createdAfter) { return this; } + /** + *

                        If provided, will only return objects created before this datetime.

                        + */ @JsonSetter(value = "created_before", nulls = Nulls.SKIP) public Builder createdBefore(Optional createdBefore) { this.createdBefore = createdBefore; @@ -373,6 +385,9 @@ public Builder createdBefore(OffsetDateTime createdBefore) { return this; } + /** + *

                        The pagination cursor value.

                        + */ @JsonSetter(value = "cursor", nulls = Nulls.SKIP) public Builder cursor(Optional cursor) { this.cursor = cursor; @@ -384,6 +399,9 @@ public Builder cursor(String cursor) { return this; } + /** + *

                        Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

                        + */ @JsonSetter(value = "include_deleted_data", nulls = Nulls.SKIP) public Builder includeDeletedData(Optional includeDeletedData) { this.includeDeletedData = includeDeletedData; @@ -395,6 +413,9 @@ public Builder includeDeletedData(Boolean includeDeletedData) { return this; } + /** + *

                        Whether to include the original data Merge fetched from the third-party to produce these models.

                        + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -406,6 +427,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

                        Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

                        + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; @@ -417,6 +441,9 @@ public Builder includeShellData(Boolean includeShellData) { return this; } + /** + *

                        If provided, only objects synced by Merge after this date time will be returned.

                        + */ @JsonSetter(value = "modified_after", nulls = Nulls.SKIP) public Builder modifiedAfter(Optional modifiedAfter) { this.modifiedAfter = modifiedAfter; @@ -428,6 +455,9 @@ public Builder modifiedAfter(OffsetDateTime modifiedAfter) { return this; } + /** + *

                        If provided, only objects synced by Merge before this date time will be returned.

                        + */ @JsonSetter(value = "modified_before", nulls = Nulls.SKIP) public Builder modifiedBefore(Optional modifiedBefore) { this.modifiedBefore = modifiedBefore; @@ -439,6 +469,9 @@ public Builder modifiedBefore(OffsetDateTime modifiedBefore) { return this; } + /** + *

                        Number of results to return per page.

                        + */ @JsonSetter(value = "page_size", nulls = Nulls.SKIP) public Builder pageSize(Optional pageSize) { this.pageSize = pageSize; @@ -450,6 +483,9 @@ public Builder pageSize(Integer pageSize) { return this; } + /** + *

                        If provided, will only return collections whose parent collection matches the given id.

                        + */ @JsonSetter(value = "parent_collection_id", nulls = Nulls.SKIP) public Builder parentCollectionId(Optional parentCollectionId) { this.parentCollectionId = parentCollectionId; @@ -461,6 +497,9 @@ public Builder parentCollectionId(String parentCollectionId) { return this; } + /** + *

                        Deprecated. Use show_enum_origins.

                        + */ @JsonSetter(value = "remote_fields", nulls = Nulls.SKIP) public Builder remoteFields(Optional remoteFields) { this.remoteFields = remoteFields; @@ -472,6 +511,9 @@ public Builder remoteFields(String remoteFields) { return this; } + /** + *

                        The API provider's ID for the given object.

                        + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; @@ -483,6 +525,9 @@ public Builder remoteId(String remoteId) { return this; } + /** + *

                        A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. Learn more

                        + */ @JsonSetter(value = "show_enum_origins", nulls = Nulls.SKIP) public Builder showEnumOrigins(Optional showEnumOrigins) { this.showEnumOrigins = showEnumOrigins; diff --git a/src/main/java/com/merge/api/ticketing/types/CollectionsRetrieveRequest.java b/src/main/java/com/merge/api/ticketing/types/CollectionsRetrieveRequest.java index 7efcfa59f..1e9f19d7e 100644 --- a/src/main/java/com/merge/api/ticketing/types/CollectionsRetrieveRequest.java +++ b/src/main/java/com/merge/api/ticketing/types/CollectionsRetrieveRequest.java @@ -149,6 +149,9 @@ public Builder from(CollectionsRetrieveRequest other) { return this; } + /** + *

                        Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.

                        + */ @JsonSetter(value = "expand", nulls = Nulls.SKIP) public Builder expand(Optional> expand) { this.expand = expand; @@ -165,6 +168,9 @@ public Builder expand(String expand) { return this; } + /** + *

                        Whether to include the original data Merge fetched from the third-party to produce these models.

                        + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -176,6 +182,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

                        Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

                        + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; @@ -187,6 +196,9 @@ public Builder includeShellData(Boolean includeShellData) { return this; } + /** + *

                        Deprecated. Use show_enum_origins.

                        + */ @JsonSetter(value = "remote_fields", nulls = Nulls.SKIP) public Builder remoteFields(Optional remoteFields) { this.remoteFields = remoteFields; @@ -198,6 +210,9 @@ public Builder remoteFields(String remoteFields) { return this; } + /** + *

                        A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. Learn more

                        + */ @JsonSetter(value = "show_enum_origins", nulls = Nulls.SKIP) public Builder showEnumOrigins(Optional showEnumOrigins) { this.showEnumOrigins = showEnumOrigins; diff --git a/src/main/java/com/merge/api/ticketing/types/CollectionsViewersListRequest.java b/src/main/java/com/merge/api/ticketing/types/CollectionsViewersListRequest.java index bf3b9c8c4..60d229a61 100644 --- a/src/main/java/com/merge/api/ticketing/types/CollectionsViewersListRequest.java +++ b/src/main/java/com/merge/api/ticketing/types/CollectionsViewersListRequest.java @@ -170,6 +170,9 @@ public Builder from(CollectionsViewersListRequest other) { return this; } + /** + *

                        Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.

                        + */ @JsonSetter(value = "expand", nulls = Nulls.SKIP) public Builder expand(Optional> expand) { this.expand = expand; @@ -186,6 +189,9 @@ public Builder expand(CollectionsViewersListRequestExpandItem expand) { return this; } + /** + *

                        The pagination cursor value.

                        + */ @JsonSetter(value = "cursor", nulls = Nulls.SKIP) public Builder cursor(Optional cursor) { this.cursor = cursor; @@ -197,6 +203,9 @@ public Builder cursor(String cursor) { return this; } + /** + *

                        Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

                        + */ @JsonSetter(value = "include_deleted_data", nulls = Nulls.SKIP) public Builder includeDeletedData(Optional includeDeletedData) { this.includeDeletedData = includeDeletedData; @@ -208,6 +217,9 @@ public Builder includeDeletedData(Boolean includeDeletedData) { return this; } + /** + *

                        Whether to include the original data Merge fetched from the third-party to produce these models.

                        + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -219,6 +231,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

                        Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

                        + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; @@ -230,6 +245,9 @@ public Builder includeShellData(Boolean includeShellData) { return this; } + /** + *

                        Number of results to return per page.

                        + */ @JsonSetter(value = "page_size", nulls = Nulls.SKIP) public Builder pageSize(Optional pageSize) { this.pageSize = pageSize; diff --git a/src/main/java/com/merge/api/ticketing/types/Comment.java b/src/main/java/com/merge/api/ticketing/types/Comment.java index 1aa148c98..732ab94f9 100644 --- a/src/main/java/com/merge/api/ticketing/types/Comment.java +++ b/src/main/java/com/merge/api/ticketing/types/Comment.java @@ -309,6 +309,9 @@ public Builder id(String id) { return this; } + /** + *

                        The third-party API ID of the matching object.

                        + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; @@ -320,6 +323,9 @@ public Builder remoteId(String remoteId) { return this; } + /** + *

                        The datetime that this object was created by Merge.

                        + */ @JsonSetter(value = "created_at", nulls = Nulls.SKIP) public Builder createdAt(Optional createdAt) { this.createdAt = createdAt; @@ -331,6 +337,9 @@ public Builder createdAt(OffsetDateTime createdAt) { return this; } + /** + *

                        The datetime that this object was modified by Merge.

                        + */ @JsonSetter(value = "modified_at", nulls = Nulls.SKIP) public Builder modifiedAt(Optional modifiedAt) { this.modifiedAt = modifiedAt; @@ -342,6 +351,9 @@ public Builder modifiedAt(OffsetDateTime modifiedAt) { return this; } + /** + *

                        The author of the Comment, if the author is a User. If the third party does not support specifying an author, we will append "[Posted on behalf of {name}]" to the comment.

                        + */ @JsonSetter(value = "user", nulls = Nulls.SKIP) public Builder user(Optional user) { this.user = user; @@ -353,6 +365,9 @@ public Builder user(CommentUser user) { return this; } + /** + *

                        The author of the Comment, if the author is a Contact.If the third party does not support specifying an author, we will append "[Posted on behalf of {name}]" to the comment.

                        + */ @JsonSetter(value = "contact", nulls = Nulls.SKIP) public Builder contact(Optional contact) { this.contact = contact; @@ -364,6 +379,9 @@ public Builder contact(CommentContact contact) { return this; } + /** + *

                        The comment's text body.

                        + */ @JsonSetter(value = "body", nulls = Nulls.SKIP) public Builder body(Optional body) { this.body = body; @@ -375,6 +393,9 @@ public Builder body(String body) { return this; } + /** + *

                        The comment's text body formatted as html.

                        + */ @JsonSetter(value = "html_body", nulls = Nulls.SKIP) public Builder htmlBody(Optional htmlBody) { this.htmlBody = htmlBody; @@ -386,6 +407,9 @@ public Builder htmlBody(String htmlBody) { return this; } + /** + *

                        The ticket associated with the comment.

                        + */ @JsonSetter(value = "ticket", nulls = Nulls.SKIP) public Builder ticket(Optional ticket) { this.ticket = ticket; @@ -397,6 +421,9 @@ public Builder ticket(CommentTicket ticket) { return this; } + /** + *

                        Whether or not the comment is internal.

                        + */ @JsonSetter(value = "is_private", nulls = Nulls.SKIP) public Builder isPrivate(Optional isPrivate) { this.isPrivate = isPrivate; @@ -408,6 +435,9 @@ public Builder isPrivate(Boolean isPrivate) { return this; } + /** + *

                        When the third party's comment was created.

                        + */ @JsonSetter(value = "remote_created_at", nulls = Nulls.SKIP) public Builder remoteCreatedAt(Optional remoteCreatedAt) { this.remoteCreatedAt = remoteCreatedAt; @@ -419,6 +449,9 @@ public Builder remoteCreatedAt(OffsetDateTime remoteCreatedAt) { return this; } + /** + *

                        Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

                        + */ @JsonSetter(value = "remote_was_deleted", nulls = Nulls.SKIP) public Builder remoteWasDeleted(Optional remoteWasDeleted) { this.remoteWasDeleted = remoteWasDeleted; diff --git a/src/main/java/com/merge/api/ticketing/types/CommentEndpointRequest.java b/src/main/java/com/merge/api/ticketing/types/CommentEndpointRequest.java index 0abe00395..60ec5a779 100644 --- a/src/main/java/com/merge/api/ticketing/types/CommentEndpointRequest.java +++ b/src/main/java/com/merge/api/ticketing/types/CommentEndpointRequest.java @@ -99,10 +99,16 @@ public interface ModelStage { public interface _FinalStage { CommentEndpointRequest build(); + /** + *

                        Whether to include debug fields (such as log file links) in the response.

                        + */ _FinalStage isDebugMode(Optional isDebugMode); _FinalStage isDebugMode(Boolean isDebugMode); + /** + *

                        Whether or not third-party updates should be run asynchronously.

                        + */ _FinalStage runAsync(Optional runAsync); _FinalStage runAsync(Boolean runAsync); @@ -146,6 +152,9 @@ public _FinalStage runAsync(Boolean runAsync) { return this; } + /** + *

                        Whether or not third-party updates should be run asynchronously.

                        + */ @java.lang.Override @JsonSetter(value = "run_async", nulls = Nulls.SKIP) public _FinalStage runAsync(Optional runAsync) { @@ -163,6 +172,9 @@ public _FinalStage isDebugMode(Boolean isDebugMode) { return this; } + /** + *

                        Whether to include debug fields (such as log file links) in the response.

                        + */ @java.lang.Override @JsonSetter(value = "is_debug_mode", nulls = Nulls.SKIP) public _FinalStage isDebugMode(Optional isDebugMode) { diff --git a/src/main/java/com/merge/api/ticketing/types/CommentRequest.java b/src/main/java/com/merge/api/ticketing/types/CommentRequest.java index 02e2bf2f1..f3b12d0ed 100644 --- a/src/main/java/com/merge/api/ticketing/types/CommentRequest.java +++ b/src/main/java/com/merge/api/ticketing/types/CommentRequest.java @@ -197,6 +197,9 @@ public Builder from(CommentRequest other) { return this; } + /** + *

                        The author of the Comment, if the author is a User. If the third party does not support specifying an author, we will append "[Posted on behalf of {name}]" to the comment.

                        + */ @JsonSetter(value = "user", nulls = Nulls.SKIP) public Builder user(Optional user) { this.user = user; @@ -208,6 +211,9 @@ public Builder user(CommentRequestUser user) { return this; } + /** + *

                        The author of the Comment, if the author is a Contact.If the third party does not support specifying an author, we will append "[Posted on behalf of {name}]" to the comment.

                        + */ @JsonSetter(value = "contact", nulls = Nulls.SKIP) public Builder contact(Optional contact) { this.contact = contact; @@ -219,6 +225,9 @@ public Builder contact(CommentRequestContact contact) { return this; } + /** + *

                        The comment's text body.

                        + */ @JsonSetter(value = "body", nulls = Nulls.SKIP) public Builder body(Optional body) { this.body = body; @@ -230,6 +239,9 @@ public Builder body(String body) { return this; } + /** + *

                        The comment's text body formatted as html.

                        + */ @JsonSetter(value = "html_body", nulls = Nulls.SKIP) public Builder htmlBody(Optional htmlBody) { this.htmlBody = htmlBody; @@ -241,6 +253,9 @@ public Builder htmlBody(String htmlBody) { return this; } + /** + *

                        The ticket associated with the comment.

                        + */ @JsonSetter(value = "ticket", nulls = Nulls.SKIP) public Builder ticket(Optional ticket) { this.ticket = ticket; @@ -252,6 +267,9 @@ public Builder ticket(CommentRequestTicket ticket) { return this; } + /** + *

                        Whether or not the comment is internal.

                        + */ @JsonSetter(value = "is_private", nulls = Nulls.SKIP) public Builder isPrivate(Optional isPrivate) { this.isPrivate = isPrivate; diff --git a/src/main/java/com/merge/api/ticketing/types/CommentsListRequest.java b/src/main/java/com/merge/api/ticketing/types/CommentsListRequest.java index 9781112d9..dedb9e72f 100644 --- a/src/main/java/com/merge/api/ticketing/types/CommentsListRequest.java +++ b/src/main/java/com/merge/api/ticketing/types/CommentsListRequest.java @@ -290,6 +290,9 @@ public Builder from(CommentsListRequest other) { return this; } + /** + *

                        Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.

                        + */ @JsonSetter(value = "expand", nulls = Nulls.SKIP) public Builder expand(Optional> expand) { this.expand = expand; @@ -306,6 +309,9 @@ public Builder expand(CommentsListRequestExpandItem expand) { return this; } + /** + *

                        If provided, will only return objects created after this datetime.

                        + */ @JsonSetter(value = "created_after", nulls = Nulls.SKIP) public Builder createdAfter(Optional createdAfter) { this.createdAfter = createdAfter; @@ -317,6 +323,9 @@ public Builder createdAfter(OffsetDateTime createdAfter) { return this; } + /** + *

                        If provided, will only return objects created before this datetime.

                        + */ @JsonSetter(value = "created_before", nulls = Nulls.SKIP) public Builder createdBefore(Optional createdBefore) { this.createdBefore = createdBefore; @@ -328,6 +337,9 @@ public Builder createdBefore(OffsetDateTime createdBefore) { return this; } + /** + *

                        The pagination cursor value.

                        + */ @JsonSetter(value = "cursor", nulls = Nulls.SKIP) public Builder cursor(Optional cursor) { this.cursor = cursor; @@ -339,6 +351,9 @@ public Builder cursor(String cursor) { return this; } + /** + *

                        Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

                        + */ @JsonSetter(value = "include_deleted_data", nulls = Nulls.SKIP) public Builder includeDeletedData(Optional includeDeletedData) { this.includeDeletedData = includeDeletedData; @@ -350,6 +365,9 @@ public Builder includeDeletedData(Boolean includeDeletedData) { return this; } + /** + *

                        Whether to include the original data Merge fetched from the third-party to produce these models.

                        + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -361,6 +379,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

                        Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

                        + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; @@ -372,6 +393,9 @@ public Builder includeShellData(Boolean includeShellData) { return this; } + /** + *

                        If provided, only objects synced by Merge after this date time will be returned.

                        + */ @JsonSetter(value = "modified_after", nulls = Nulls.SKIP) public Builder modifiedAfter(Optional modifiedAfter) { this.modifiedAfter = modifiedAfter; @@ -383,6 +407,9 @@ public Builder modifiedAfter(OffsetDateTime modifiedAfter) { return this; } + /** + *

                        If provided, only objects synced by Merge before this date time will be returned.

                        + */ @JsonSetter(value = "modified_before", nulls = Nulls.SKIP) public Builder modifiedBefore(Optional modifiedBefore) { this.modifiedBefore = modifiedBefore; @@ -394,6 +421,9 @@ public Builder modifiedBefore(OffsetDateTime modifiedBefore) { return this; } + /** + *

                        Number of results to return per page.

                        + */ @JsonSetter(value = "page_size", nulls = Nulls.SKIP) public Builder pageSize(Optional pageSize) { this.pageSize = pageSize; @@ -405,6 +435,9 @@ public Builder pageSize(Integer pageSize) { return this; } + /** + *

                        If provided, will only return Comments created in the third party platform after this datetime.

                        + */ @JsonSetter(value = "remote_created_after", nulls = Nulls.SKIP) public Builder remoteCreatedAfter(Optional remoteCreatedAfter) { this.remoteCreatedAfter = remoteCreatedAfter; @@ -416,6 +449,9 @@ public Builder remoteCreatedAfter(OffsetDateTime remoteCreatedAfter) { return this; } + /** + *

                        The API provider's ID for the given object.

                        + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; @@ -427,6 +463,9 @@ public Builder remoteId(String remoteId) { return this; } + /** + *

                        If provided, will only return comments for this ticket.

                        + */ @JsonSetter(value = "ticket_id", nulls = Nulls.SKIP) public Builder ticketId(Optional ticketId) { this.ticketId = ticketId; diff --git a/src/main/java/com/merge/api/ticketing/types/CommentsRetrieveRequest.java b/src/main/java/com/merge/api/ticketing/types/CommentsRetrieveRequest.java index e4b819884..1f56140b8 100644 --- a/src/main/java/com/merge/api/ticketing/types/CommentsRetrieveRequest.java +++ b/src/main/java/com/merge/api/ticketing/types/CommentsRetrieveRequest.java @@ -116,6 +116,9 @@ public Builder from(CommentsRetrieveRequest other) { return this; } + /** + *

                        Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.

                        + */ @JsonSetter(value = "expand", nulls = Nulls.SKIP) public Builder expand(Optional> expand) { this.expand = expand; @@ -132,6 +135,9 @@ public Builder expand(CommentsRetrieveRequestExpandItem expand) { return this; } + /** + *

                        Whether to include the original data Merge fetched from the third-party to produce these models.

                        + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -143,6 +149,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

                        Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

                        + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; diff --git a/src/main/java/com/merge/api/ticketing/types/CommonModelScopeApi.java b/src/main/java/com/merge/api/ticketing/types/CommonModelScopeApi.java index c40b3db83..c071f997d 100644 --- a/src/main/java/com/merge/api/ticketing/types/CommonModelScopeApi.java +++ b/src/main/java/com/merge/api/ticketing/types/CommonModelScopeApi.java @@ -82,6 +82,9 @@ public Builder from(CommonModelScopeApi other) { return this; } + /** + *

                        The common models you want to update the scopes for

                        + */ @JsonSetter(value = "common_models", nulls = Nulls.SKIP) public Builder commonModels(List commonModels) { this.commonModels.clear(); diff --git a/src/main/java/com/merge/api/ticketing/types/Contact.java b/src/main/java/com/merge/api/ticketing/types/Contact.java index 50cc1f457..7ea13444b 100644 --- a/src/main/java/com/merge/api/ticketing/types/Contact.java +++ b/src/main/java/com/merge/api/ticketing/types/Contact.java @@ -275,6 +275,9 @@ public Builder id(String id) { return this; } + /** + *

                        The third-party API ID of the matching object.

                        + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; @@ -286,6 +289,9 @@ public Builder remoteId(String remoteId) { return this; } + /** + *

                        The datetime that this object was created by Merge.

                        + */ @JsonSetter(value = "created_at", nulls = Nulls.SKIP) public Builder createdAt(Optional createdAt) { this.createdAt = createdAt; @@ -297,6 +303,9 @@ public Builder createdAt(OffsetDateTime createdAt) { return this; } + /** + *

                        The datetime that this object was modified by Merge.

                        + */ @JsonSetter(value = "modified_at", nulls = Nulls.SKIP) public Builder modifiedAt(Optional modifiedAt) { this.modifiedAt = modifiedAt; @@ -308,6 +317,9 @@ public Builder modifiedAt(OffsetDateTime modifiedAt) { return this; } + /** + *

                        The contact's name.

                        + */ @JsonSetter(value = "name", nulls = Nulls.SKIP) public Builder name(Optional name) { this.name = name; @@ -319,6 +331,9 @@ public Builder name(String name) { return this; } + /** + *

                        The contact's email address.

                        + */ @JsonSetter(value = "email_address", nulls = Nulls.SKIP) public Builder emailAddress(Optional emailAddress) { this.emailAddress = emailAddress; @@ -330,6 +345,9 @@ public Builder emailAddress(String emailAddress) { return this; } + /** + *

                        The contact's phone number.

                        + */ @JsonSetter(value = "phone_number", nulls = Nulls.SKIP) public Builder phoneNumber(Optional phoneNumber) { this.phoneNumber = phoneNumber; @@ -341,6 +359,9 @@ public Builder phoneNumber(String phoneNumber) { return this; } + /** + *

                        The contact's details.

                        + */ @JsonSetter(value = "details", nulls = Nulls.SKIP) public Builder details(Optional details) { this.details = details; @@ -352,6 +373,9 @@ public Builder details(String details) { return this; } + /** + *

                        The contact's account.

                        + */ @JsonSetter(value = "account", nulls = Nulls.SKIP) public Builder account(Optional account) { this.account = account; @@ -363,6 +387,9 @@ public Builder account(ContactAccount account) { return this; } + /** + *

                        Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

                        + */ @JsonSetter(value = "remote_was_deleted", nulls = Nulls.SKIP) public Builder remoteWasDeleted(Optional remoteWasDeleted) { this.remoteWasDeleted = remoteWasDeleted; diff --git a/src/main/java/com/merge/api/ticketing/types/ContactRequest.java b/src/main/java/com/merge/api/ticketing/types/ContactRequest.java index 9787a4bcf..e55116cc7 100644 --- a/src/main/java/com/merge/api/ticketing/types/ContactRequest.java +++ b/src/main/java/com/merge/api/ticketing/types/ContactRequest.java @@ -180,6 +180,9 @@ public Builder from(ContactRequest other) { return this; } + /** + *

                        The contact's name.

                        + */ @JsonSetter(value = "name", nulls = Nulls.SKIP) public Builder name(Optional name) { this.name = name; @@ -191,6 +194,9 @@ public Builder name(String name) { return this; } + /** + *

                        The contact's email address.

                        + */ @JsonSetter(value = "email_address", nulls = Nulls.SKIP) public Builder emailAddress(Optional emailAddress) { this.emailAddress = emailAddress; @@ -202,6 +208,9 @@ public Builder emailAddress(String emailAddress) { return this; } + /** + *

                        The contact's phone number.

                        + */ @JsonSetter(value = "phone_number", nulls = Nulls.SKIP) public Builder phoneNumber(Optional phoneNumber) { this.phoneNumber = phoneNumber; @@ -213,6 +222,9 @@ public Builder phoneNumber(String phoneNumber) { return this; } + /** + *

                        The contact's details.

                        + */ @JsonSetter(value = "details", nulls = Nulls.SKIP) public Builder details(Optional details) { this.details = details; @@ -224,6 +236,9 @@ public Builder details(String details) { return this; } + /** + *

                        The contact's account.

                        + */ @JsonSetter(value = "account", nulls = Nulls.SKIP) public Builder account(Optional account) { this.account = account; diff --git a/src/main/java/com/merge/api/ticketing/types/ContactsListRequest.java b/src/main/java/com/merge/api/ticketing/types/ContactsListRequest.java index 9dc65f9c4..0e7a03d5e 100644 --- a/src/main/java/com/merge/api/ticketing/types/ContactsListRequest.java +++ b/src/main/java/com/merge/api/ticketing/types/ContactsListRequest.java @@ -256,6 +256,9 @@ public Builder from(ContactsListRequest other) { return this; } + /** + *

                        Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.

                        + */ @JsonSetter(value = "expand", nulls = Nulls.SKIP) public Builder expand(Optional> expand) { this.expand = expand; @@ -272,6 +275,9 @@ public Builder expand(String expand) { return this; } + /** + *

                        If provided, will only return objects created after this datetime.

                        + */ @JsonSetter(value = "created_after", nulls = Nulls.SKIP) public Builder createdAfter(Optional createdAfter) { this.createdAfter = createdAfter; @@ -283,6 +289,9 @@ public Builder createdAfter(OffsetDateTime createdAfter) { return this; } + /** + *

                        If provided, will only return objects created before this datetime.

                        + */ @JsonSetter(value = "created_before", nulls = Nulls.SKIP) public Builder createdBefore(Optional createdBefore) { this.createdBefore = createdBefore; @@ -294,6 +303,9 @@ public Builder createdBefore(OffsetDateTime createdBefore) { return this; } + /** + *

                        The pagination cursor value.

                        + */ @JsonSetter(value = "cursor", nulls = Nulls.SKIP) public Builder cursor(Optional cursor) { this.cursor = cursor; @@ -305,6 +317,9 @@ public Builder cursor(String cursor) { return this; } + /** + *

                        Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

                        + */ @JsonSetter(value = "include_deleted_data", nulls = Nulls.SKIP) public Builder includeDeletedData(Optional includeDeletedData) { this.includeDeletedData = includeDeletedData; @@ -316,6 +331,9 @@ public Builder includeDeletedData(Boolean includeDeletedData) { return this; } + /** + *

                        Whether to include the original data Merge fetched from the third-party to produce these models.

                        + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -327,6 +345,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

                        Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

                        + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; @@ -338,6 +359,9 @@ public Builder includeShellData(Boolean includeShellData) { return this; } + /** + *

                        If provided, only objects synced by Merge after this date time will be returned.

                        + */ @JsonSetter(value = "modified_after", nulls = Nulls.SKIP) public Builder modifiedAfter(Optional modifiedAfter) { this.modifiedAfter = modifiedAfter; @@ -349,6 +373,9 @@ public Builder modifiedAfter(OffsetDateTime modifiedAfter) { return this; } + /** + *

                        If provided, only objects synced by Merge before this date time will be returned.

                        + */ @JsonSetter(value = "modified_before", nulls = Nulls.SKIP) public Builder modifiedBefore(Optional modifiedBefore) { this.modifiedBefore = modifiedBefore; @@ -360,6 +387,9 @@ public Builder modifiedBefore(OffsetDateTime modifiedBefore) { return this; } + /** + *

                        Number of results to return per page.

                        + */ @JsonSetter(value = "page_size", nulls = Nulls.SKIP) public Builder pageSize(Optional pageSize) { this.pageSize = pageSize; @@ -371,6 +401,9 @@ public Builder pageSize(Integer pageSize) { return this; } + /** + *

                        The API provider's ID for the given object.

                        + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; diff --git a/src/main/java/com/merge/api/ticketing/types/ContactsRetrieveRequest.java b/src/main/java/com/merge/api/ticketing/types/ContactsRetrieveRequest.java index 7b83f12e4..9de28f019 100644 --- a/src/main/java/com/merge/api/ticketing/types/ContactsRetrieveRequest.java +++ b/src/main/java/com/merge/api/ticketing/types/ContactsRetrieveRequest.java @@ -116,6 +116,9 @@ public Builder from(ContactsRetrieveRequest other) { return this; } + /** + *

                        Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.

                        + */ @JsonSetter(value = "expand", nulls = Nulls.SKIP) public Builder expand(Optional> expand) { this.expand = expand; @@ -132,6 +135,9 @@ public Builder expand(String expand) { return this; } + /** + *

                        Whether to include the original data Merge fetched from the third-party to produce these models.

                        + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -143,6 +149,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

                        Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

                        + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; diff --git a/src/main/java/com/merge/api/ticketing/types/CreateFieldMappingRequest.java b/src/main/java/com/merge/api/ticketing/types/CreateFieldMappingRequest.java index f84de46ac..948415eb6 100644 --- a/src/main/java/com/merge/api/ticketing/types/CreateFieldMappingRequest.java +++ b/src/main/java/com/merge/api/ticketing/types/CreateFieldMappingRequest.java @@ -158,34 +158,55 @@ public static TargetFieldNameStage builder() { } public interface TargetFieldNameStage { + /** + * The name of the target field you want this remote field to map to. + */ TargetFieldDescriptionStage targetFieldName(@NotNull String targetFieldName); Builder from(CreateFieldMappingRequest other); } public interface TargetFieldDescriptionStage { + /** + * The description of the target field you want this remote field to map to. + */ RemoteMethodStage targetFieldDescription(@NotNull String targetFieldDescription); } public interface RemoteMethodStage { + /** + * The method of the remote endpoint where the remote field is coming from. + */ RemoteUrlPathStage remoteMethod(@NotNull String remoteMethod); } public interface RemoteUrlPathStage { + /** + * The path of the remote endpoint where the remote field is coming from. + */ CommonModelNameStage remoteUrlPath(@NotNull String remoteUrlPath); } public interface CommonModelNameStage { + /** + * The name of the Common Model that the remote field corresponds to in a given category. + */ _FinalStage commonModelName(@NotNull String commonModelName); } public interface _FinalStage { CreateFieldMappingRequest build(); + /** + *

                        If true, remote fields metadata is excluded from each field mapping instance (i.e. remote_fields.remote_key_name and remote_fields.schema will be null). This will increase the speed of the request since these fields require some calculations.

                        + */ _FinalStage excludeRemoteFieldMetadata(Optional excludeRemoteFieldMetadata); _FinalStage excludeRemoteFieldMetadata(Boolean excludeRemoteFieldMetadata); + /** + *

                        The field traversal path of the remote field listed when you hit the GET /remote-fields endpoint.

                        + */ _FinalStage remoteFieldTraversalPath(List remoteFieldTraversalPath); _FinalStage addRemoteFieldTraversalPath(JsonNode remoteFieldTraversalPath); @@ -233,7 +254,7 @@ public Builder from(CreateFieldMappingRequest other) { } /** - *

                        The name of the target field you want this remote field to map to.

                        + * The name of the target field you want this remote field to map to.

                        The name of the target field you want this remote field to map to.

                        * @return Reference to {@code this} so that method calls can be chained together. */ @java.lang.Override @@ -244,7 +265,7 @@ public TargetFieldDescriptionStage targetFieldName(@NotNull String targetFieldNa } /** - *

                        The description of the target field you want this remote field to map to.

                        + * The description of the target field you want this remote field to map to.

                        The description of the target field you want this remote field to map to.

                        * @return Reference to {@code this} so that method calls can be chained together. */ @java.lang.Override @@ -255,7 +276,7 @@ public RemoteMethodStage targetFieldDescription(@NotNull String targetFieldDescr } /** - *

                        The method of the remote endpoint where the remote field is coming from.

                        + * The method of the remote endpoint where the remote field is coming from.

                        The method of the remote endpoint where the remote field is coming from.

                        * @return Reference to {@code this} so that method calls can be chained together. */ @java.lang.Override @@ -266,7 +287,7 @@ public RemoteUrlPathStage remoteMethod(@NotNull String remoteMethod) { } /** - *

                        The path of the remote endpoint where the remote field is coming from.

                        + * The path of the remote endpoint where the remote field is coming from.

                        The path of the remote endpoint where the remote field is coming from.

                        * @return Reference to {@code this} so that method calls can be chained together. */ @java.lang.Override @@ -277,7 +298,7 @@ public CommonModelNameStage remoteUrlPath(@NotNull String remoteUrlPath) { } /** - *

                        The name of the Common Model that the remote field corresponds to in a given category.

                        + * The name of the Common Model that the remote field corresponds to in a given category.

                        The name of the Common Model that the remote field corresponds to in a given category.

                        * @return Reference to {@code this} so that method calls can be chained together. */ @java.lang.Override @@ -307,6 +328,9 @@ public _FinalStage addRemoteFieldTraversalPath(JsonNode remoteFieldTraversalPath return this; } + /** + *

                        The field traversal path of the remote field listed when you hit the GET /remote-fields endpoint.

                        + */ @java.lang.Override @JsonSetter(value = "remote_field_traversal_path", nulls = Nulls.SKIP) public _FinalStage remoteFieldTraversalPath(List remoteFieldTraversalPath) { @@ -325,6 +349,9 @@ public _FinalStage excludeRemoteFieldMetadata(Boolean excludeRemoteFieldMetadata return this; } + /** + *

                        If true, remote fields metadata is excluded from each field mapping instance (i.e. remote_fields.remote_key_name and remote_fields.schema will be null). This will increase the speed of the request since these fields require some calculations.

                        + */ @java.lang.Override @JsonSetter(value = "exclude_remote_field_metadata", nulls = Nulls.SKIP) public _FinalStage excludeRemoteFieldMetadata(Optional excludeRemoteFieldMetadata) { diff --git a/src/main/java/com/merge/api/ticketing/types/DataPassthroughRequest.java b/src/main/java/com/merge/api/ticketing/types/DataPassthroughRequest.java index 99cf3172a..c10fbb23d 100644 --- a/src/main/java/com/merge/api/ticketing/types/DataPassthroughRequest.java +++ b/src/main/java/com/merge/api/ticketing/types/DataPassthroughRequest.java @@ -171,24 +171,39 @@ public interface MethodStage { } public interface PathStage { + /** + * The path of the request in the third party's platform. + */ _FinalStage path(@NotNull String path); } public interface _FinalStage { DataPassthroughRequest build(); + /** + *

                        An optional override of the third party's base url for the request.

                        + */ _FinalStage baseUrlOverride(Optional baseUrlOverride); _FinalStage baseUrlOverride(String baseUrlOverride); + /** + *

                        The data with the request. You must include a request_format parameter matching the data's format

                        + */ _FinalStage data(Optional data); _FinalStage data(String data); + /** + *

                        Pass an array of MultipartFormField objects in here instead of using the data param if request_format is set to MULTIPART.

                        + */ _FinalStage multipartFormData(Optional> multipartFormData); _FinalStage multipartFormData(List multipartFormData); + /** + *

                        The headers to use for the request (Merge will handle the account's authorization headers). Content-Type header is required for passthrough. Choose content type corresponding to expected format of receiving server.

                        + */ _FinalStage headers(Optional> headers); _FinalStage headers(Map headers); @@ -197,6 +212,9 @@ public interface _FinalStage { _FinalStage requestFormat(RequestFormatEnum requestFormat); + /** + *

                        Optional. If true, the response will always be an object of the form {"type": T, "value": ...} where T will be one of string, boolean, number, null, array, object.

                        + */ _FinalStage normalizeResponse(Optional normalizeResponse); _FinalStage normalizeResponse(Boolean normalizeResponse); @@ -246,7 +264,7 @@ public PathStage method(@NotNull MethodEnum method) { } /** - *

                        The path of the request in the third party's platform.

                        + * The path of the request in the third party's platform.

                        The path of the request in the third party's platform.

                        * @return Reference to {@code this} so that method calls can be chained together. */ @java.lang.Override @@ -266,6 +284,9 @@ public _FinalStage normalizeResponse(Boolean normalizeResponse) { return this; } + /** + *

                        Optional. If true, the response will always be an object of the form {"type": T, "value": ...} where T will be one of string, boolean, number, null, array, object.

                        + */ @java.lang.Override @JsonSetter(value = "normalize_response", nulls = Nulls.SKIP) public _FinalStage normalizeResponse(Optional normalizeResponse) { @@ -296,6 +317,9 @@ public _FinalStage headers(Map headers) { return this; } + /** + *

                        The headers to use for the request (Merge will handle the account's authorization headers). Content-Type header is required for passthrough. Choose content type corresponding to expected format of receiving server.

                        + */ @java.lang.Override @JsonSetter(value = "headers", nulls = Nulls.SKIP) public _FinalStage headers(Optional> headers) { @@ -313,6 +337,9 @@ public _FinalStage multipartFormData(List multipartFo return this; } + /** + *

                        Pass an array of MultipartFormField objects in here instead of using the data param if request_format is set to MULTIPART.

                        + */ @java.lang.Override @JsonSetter(value = "multipart_form_data", nulls = Nulls.SKIP) public _FinalStage multipartFormData(Optional> multipartFormData) { @@ -330,6 +357,9 @@ public _FinalStage data(String data) { return this; } + /** + *

                        The data with the request. You must include a request_format parameter matching the data's format

                        + */ @java.lang.Override @JsonSetter(value = "data", nulls = Nulls.SKIP) public _FinalStage data(Optional data) { @@ -347,6 +377,9 @@ public _FinalStage baseUrlOverride(String baseUrlOverride) { return this; } + /** + *

                        An optional override of the third party's base url for the request.

                        + */ @java.lang.Override @JsonSetter(value = "base_url_override", nulls = Nulls.SKIP) public _FinalStage baseUrlOverride(Optional baseUrlOverride) { diff --git a/src/main/java/com/merge/api/ticketing/types/EndUserDetailsRequest.java b/src/main/java/com/merge/api/ticketing/types/EndUserDetailsRequest.java index 2825849bb..573b0fe7a 100644 --- a/src/main/java/com/merge/api/ticketing/types/EndUserDetailsRequest.java +++ b/src/main/java/com/merge/api/ticketing/types/EndUserDetailsRequest.java @@ -249,48 +249,78 @@ public static EndUserEmailAddressStage builder() { } public interface EndUserEmailAddressStage { + /** + * Your end user's email address. This is purely for identification purposes - setting this value will not cause any emails to be sent. + */ EndUserOrganizationNameStage endUserEmailAddress(@NotNull String endUserEmailAddress); Builder from(EndUserDetailsRequest other); } public interface EndUserOrganizationNameStage { + /** + * Your end user's organization. + */ EndUserOriginIdStage endUserOrganizationName(@NotNull String endUserOrganizationName); } public interface EndUserOriginIdStage { + /** + * This unique identifier typically represents the ID for your end user in your product's database. This value must be distinct from other Linked Accounts' unique identifiers. + */ _FinalStage endUserOriginId(@NotNull String endUserOriginId); } public interface _FinalStage { EndUserDetailsRequest build(); + /** + *

                        The integration categories to show in Merge Link.

                        + */ _FinalStage categories(List categories); _FinalStage addCategories(CategoriesEnum categories); _FinalStage addAllCategories(List categories); + /** + *

                        The slug of a specific pre-selected integration for this linking flow token. For examples of slugs, see https://docs.merge.dev/guides/merge-link/single-integration/.

                        + */ _FinalStage integration(Optional integration); _FinalStage integration(String integration); + /** + *

                        An integer number of minutes between [30, 720 or 10080 if for a Magic Link URL] for how long this token is valid. Defaults to 30.

                        + */ _FinalStage linkExpiryMins(Optional linkExpiryMins); _FinalStage linkExpiryMins(Integer linkExpiryMins); + /** + *

                        Whether to generate a Magic Link URL. Defaults to false. For more information on Magic Link, see https://merge.dev/blog/integrations-fast-say-hello-to-magic-link.

                        + */ _FinalStage shouldCreateMagicLinkUrl(Optional shouldCreateMagicLinkUrl); _FinalStage shouldCreateMagicLinkUrl(Boolean shouldCreateMagicLinkUrl); + /** + *

                        Whether to generate a Magic Link URL on the Admin Needed screen during the linking flow. Defaults to false. For more information on Magic Link, see https://merge.dev/blog/integrations-fast-say-hello-to-magic-link.

                        + */ _FinalStage hideAdminMagicLink(Optional hideAdminMagicLink); _FinalStage hideAdminMagicLink(Boolean hideAdminMagicLink); + /** + *

                        An array of objects to specify the models and fields that will be disabled for a given Linked Account. Each object uses model_id, enabled_actions, and disabled_fields to specify the model, method, and fields that are scoped for a given Linked Account.

                        + */ _FinalStage commonModels(Optional> commonModels); _FinalStage commonModels(List commonModels); + /** + *

                        When creating a Link Token, you can set permissions for Common Models that will apply to the account that is going to be linked. Any model or field not specified in link token payload will default to existing settings.

                        + */ _FinalStage categoryCommonModelScopes( Optional>>> categoryCommonModelScopes); @@ -298,14 +328,27 @@ _FinalStage categoryCommonModelScopes( _FinalStage categoryCommonModelScopes( Map>> categoryCommonModelScopes); + /** + *

                        The following subset of IETF language tags can be used to configure localization.

                        + *
                          + *
                        • en - en
                        • + *
                        • de - de
                        • + *
                        + */ _FinalStage language(Optional language); _FinalStage language(LanguageEnum language); + /** + *

                        The boolean that indicates whether initial, periodic, and force syncs will be disabled.

                        + */ _FinalStage areSyncsDisabled(Optional areSyncsDisabled); _FinalStage areSyncsDisabled(Boolean areSyncsDisabled); + /** + *

                        A JSON object containing integration-specific configuration options.

                        + */ _FinalStage integrationSpecificConfig(Optional> integrationSpecificConfig); _FinalStage integrationSpecificConfig(Map integrationSpecificConfig); @@ -365,7 +408,7 @@ public Builder from(EndUserDetailsRequest other) { } /** - *

                        Your end user's email address. This is purely for identification purposes - setting this value will not cause any emails to be sent.

                        + * Your end user's email address. This is purely for identification purposes - setting this value will not cause any emails to be sent.

                        Your end user's email address. This is purely for identification purposes - setting this value will not cause any emails to be sent.

                        * @return Reference to {@code this} so that method calls can be chained together. */ @java.lang.Override @@ -376,7 +419,7 @@ public EndUserOrganizationNameStage endUserEmailAddress(@NotNull String endUserE } /** - *

                        Your end user's organization.

                        + * Your end user's organization.

                        Your end user's organization.

                        * @return Reference to {@code this} so that method calls can be chained together. */ @java.lang.Override @@ -387,7 +430,7 @@ public EndUserOriginIdStage endUserOrganizationName(@NotNull String endUserOrgan } /** - *

                        This unique identifier typically represents the ID for your end user in your product's database. This value must be distinct from other Linked Accounts' unique identifiers.

                        + * This unique identifier typically represents the ID for your end user in your product's database. This value must be distinct from other Linked Accounts' unique identifiers.

                        This unique identifier typically represents the ID for your end user in your product's database. This value must be distinct from other Linked Accounts' unique identifiers.

                        * @return Reference to {@code this} so that method calls can be chained together. */ @java.lang.Override @@ -407,6 +450,9 @@ public _FinalStage integrationSpecificConfig(Map integrationSp return this; } + /** + *

                        A JSON object containing integration-specific configuration options.

                        + */ @java.lang.Override @JsonSetter(value = "integration_specific_config", nulls = Nulls.SKIP) public _FinalStage integrationSpecificConfig(Optional> integrationSpecificConfig) { @@ -424,6 +470,9 @@ public _FinalStage areSyncsDisabled(Boolean areSyncsDisabled) { return this; } + /** + *

                        The boolean that indicates whether initial, periodic, and force syncs will be disabled.

                        + */ @java.lang.Override @JsonSetter(value = "are_syncs_disabled", nulls = Nulls.SKIP) public _FinalStage areSyncsDisabled(Optional areSyncsDisabled) { @@ -445,6 +494,13 @@ public _FinalStage language(LanguageEnum language) { return this; } + /** + *

                        The following subset of IETF language tags can be used to configure localization.

                        + *
                          + *
                        • en - en
                        • + *
                        • de - de
                        • + *
                        + */ @java.lang.Override @JsonSetter(value = "language", nulls = Nulls.SKIP) public _FinalStage language(Optional language) { @@ -463,6 +519,9 @@ public _FinalStage categoryCommonModelScopes( return this; } + /** + *

                        When creating a Link Token, you can set permissions for Common Models that will apply to the account that is going to be linked. Any model or field not specified in link token payload will default to existing settings.

                        + */ @java.lang.Override @JsonSetter(value = "category_common_model_scopes", nulls = Nulls.SKIP) public _FinalStage categoryCommonModelScopes( @@ -482,6 +541,9 @@ public _FinalStage commonModels(List commonModels) return this; } + /** + *

                        An array of objects to specify the models and fields that will be disabled for a given Linked Account. Each object uses model_id, enabled_actions, and disabled_fields to specify the model, method, and fields that are scoped for a given Linked Account.

                        + */ @java.lang.Override @JsonSetter(value = "common_models", nulls = Nulls.SKIP) public _FinalStage commonModels(Optional> commonModels) { @@ -499,6 +561,9 @@ public _FinalStage hideAdminMagicLink(Boolean hideAdminMagicLink) { return this; } + /** + *

                        Whether to generate a Magic Link URL on the Admin Needed screen during the linking flow. Defaults to false. For more information on Magic Link, see https://merge.dev/blog/integrations-fast-say-hello-to-magic-link.

                        + */ @java.lang.Override @JsonSetter(value = "hide_admin_magic_link", nulls = Nulls.SKIP) public _FinalStage hideAdminMagicLink(Optional hideAdminMagicLink) { @@ -516,6 +581,9 @@ public _FinalStage shouldCreateMagicLinkUrl(Boolean shouldCreateMagicLinkUrl) { return this; } + /** + *

                        Whether to generate a Magic Link URL. Defaults to false. For more information on Magic Link, see https://merge.dev/blog/integrations-fast-say-hello-to-magic-link.

                        + */ @java.lang.Override @JsonSetter(value = "should_create_magic_link_url", nulls = Nulls.SKIP) public _FinalStage shouldCreateMagicLinkUrl(Optional shouldCreateMagicLinkUrl) { @@ -533,6 +601,9 @@ public _FinalStage linkExpiryMins(Integer linkExpiryMins) { return this; } + /** + *

                        An integer number of minutes between [30, 720 or 10080 if for a Magic Link URL] for how long this token is valid. Defaults to 30.

                        + */ @java.lang.Override @JsonSetter(value = "link_expiry_mins", nulls = Nulls.SKIP) public _FinalStage linkExpiryMins(Optional linkExpiryMins) { @@ -550,6 +621,9 @@ public _FinalStage integration(String integration) { return this; } + /** + *

                        The slug of a specific pre-selected integration for this linking flow token. For examples of slugs, see https://docs.merge.dev/guides/merge-link/single-integration/.

                        + */ @java.lang.Override @JsonSetter(value = "integration", nulls = Nulls.SKIP) public _FinalStage integration(Optional integration) { @@ -577,6 +651,9 @@ public _FinalStage addCategories(CategoriesEnum categories) { return this; } + /** + *

                        The integration categories to show in Merge Link.

                        + */ @java.lang.Override @JsonSetter(value = "categories", nulls = Nulls.SKIP) public _FinalStage categories(List categories) { diff --git a/src/main/java/com/merge/api/ticketing/types/FieldMappingsRetrieveRequest.java b/src/main/java/com/merge/api/ticketing/types/FieldMappingsRetrieveRequest.java index acb167de6..5556e4c05 100644 --- a/src/main/java/com/merge/api/ticketing/types/FieldMappingsRetrieveRequest.java +++ b/src/main/java/com/merge/api/ticketing/types/FieldMappingsRetrieveRequest.java @@ -81,6 +81,9 @@ public Builder from(FieldMappingsRetrieveRequest other) { return this; } + /** + *

                        If true, remote fields metadata is excluded from each field mapping instance (i.e. remote_fields.remote_key_name and remote_fields.schema will be null). This will increase the speed of the request since these fields require some calculations.

                        + */ @JsonSetter(value = "exclude_remote_field_metadata", nulls = Nulls.SKIP) public Builder excludeRemoteFieldMetadata(Optional excludeRemoteFieldMetadata) { this.excludeRemoteFieldMetadata = excludeRemoteFieldMetadata; diff --git a/src/main/java/com/merge/api/ticketing/types/GenerateRemoteKeyRequest.java b/src/main/java/com/merge/api/ticketing/types/GenerateRemoteKeyRequest.java index ce9c93510..8efc5da05 100644 --- a/src/main/java/com/merge/api/ticketing/types/GenerateRemoteKeyRequest.java +++ b/src/main/java/com/merge/api/ticketing/types/GenerateRemoteKeyRequest.java @@ -66,6 +66,9 @@ public static NameStage builder() { } public interface NameStage { + /** + * The name of the remote key + */ _FinalStage name(@NotNull String name); Builder from(GenerateRemoteKeyRequest other); @@ -91,7 +94,7 @@ public Builder from(GenerateRemoteKeyRequest other) { } /** - *

                        The name of the remote key

                        + * The name of the remote key

                        The name of the remote key

                        * @return Reference to {@code this} so that method calls can be chained together. */ @java.lang.Override diff --git a/src/main/java/com/merge/api/ticketing/types/Issue.java b/src/main/java/com/merge/api/ticketing/types/Issue.java index 3d62cc513..c4ee610d9 100644 --- a/src/main/java/com/merge/api/ticketing/types/Issue.java +++ b/src/main/java/com/merge/api/ticketing/types/Issue.java @@ -167,6 +167,13 @@ public interface _FinalStage { _FinalStage id(String id); + /** + *

                        Status of the issue. Options: ('ONGOING', 'RESOLVED')

                        + *
                          + *
                        • ONGOING - ONGOING
                        • + *
                        • RESOLVED - RESOLVED
                        • + *
                        + */ _FinalStage status(Optional status); _FinalStage status(IssueStatusEnum status); @@ -314,6 +321,13 @@ public _FinalStage status(IssueStatusEnum status) { return this; } + /** + *

                        Status of the issue. Options: ('ONGOING', 'RESOLVED')

                        + *
                          + *
                        • ONGOING - ONGOING
                        • + *
                        • RESOLVED - RESOLVED
                        • + *
                        + */ @java.lang.Override @JsonSetter(value = "status", nulls = Nulls.SKIP) public _FinalStage status(Optional status) { diff --git a/src/main/java/com/merge/api/ticketing/types/IssuesListRequest.java b/src/main/java/com/merge/api/ticketing/types/IssuesListRequest.java index 01195a24a..c5996aa92 100644 --- a/src/main/java/com/merge/api/ticketing/types/IssuesListRequest.java +++ b/src/main/java/com/merge/api/ticketing/types/IssuesListRequest.java @@ -311,6 +311,9 @@ public Builder accountToken(String accountToken) { return this; } + /** + *

                        The pagination cursor value.

                        + */ @JsonSetter(value = "cursor", nulls = Nulls.SKIP) public Builder cursor(Optional cursor) { this.cursor = cursor; @@ -322,6 +325,9 @@ public Builder cursor(String cursor) { return this; } + /** + *

                        If included, will only include issues whose most recent action occurred before this time

                        + */ @JsonSetter(value = "end_date", nulls = Nulls.SKIP) public Builder endDate(Optional endDate) { this.endDate = endDate; @@ -344,6 +350,9 @@ public Builder endUserOrganizationName(String endUserOrganizationName) { return this; } + /** + *

                        If provided, will only return issues whose first incident time was after this datetime.

                        + */ @JsonSetter(value = "first_incident_time_after", nulls = Nulls.SKIP) public Builder firstIncidentTimeAfter(Optional firstIncidentTimeAfter) { this.firstIncidentTimeAfter = firstIncidentTimeAfter; @@ -355,6 +364,9 @@ public Builder firstIncidentTimeAfter(OffsetDateTime firstIncidentTimeAfter) { return this; } + /** + *

                        If provided, will only return issues whose first incident time was before this datetime.

                        + */ @JsonSetter(value = "first_incident_time_before", nulls = Nulls.SKIP) public Builder firstIncidentTimeBefore(Optional firstIncidentTimeBefore) { this.firstIncidentTimeBefore = firstIncidentTimeBefore; @@ -366,6 +378,9 @@ public Builder firstIncidentTimeBefore(OffsetDateTime firstIncidentTimeBefore) { return this; } + /** + *

                        If true, will include muted issues

                        + */ @JsonSetter(value = "include_muted", nulls = Nulls.SKIP) public Builder includeMuted(Optional includeMuted) { this.includeMuted = includeMuted; @@ -388,6 +403,9 @@ public Builder integrationName(String integrationName) { return this; } + /** + *

                        If provided, will only return issues whose last incident time was after this datetime.

                        + */ @JsonSetter(value = "last_incident_time_after", nulls = Nulls.SKIP) public Builder lastIncidentTimeAfter(Optional lastIncidentTimeAfter) { this.lastIncidentTimeAfter = lastIncidentTimeAfter; @@ -399,6 +417,9 @@ public Builder lastIncidentTimeAfter(OffsetDateTime lastIncidentTimeAfter) { return this; } + /** + *

                        If provided, will only return issues whose last incident time was before this datetime.

                        + */ @JsonSetter(value = "last_incident_time_before", nulls = Nulls.SKIP) public Builder lastIncidentTimeBefore(Optional lastIncidentTimeBefore) { this.lastIncidentTimeBefore = lastIncidentTimeBefore; @@ -410,6 +431,9 @@ public Builder lastIncidentTimeBefore(OffsetDateTime lastIncidentTimeBefore) { return this; } + /** + *

                        If provided, will only include issues pertaining to the linked account passed in.

                        + */ @JsonSetter(value = "linked_account_id", nulls = Nulls.SKIP) public Builder linkedAccountId(Optional linkedAccountId) { this.linkedAccountId = linkedAccountId; @@ -421,6 +445,9 @@ public Builder linkedAccountId(String linkedAccountId) { return this; } + /** + *

                        Number of results to return per page.

                        + */ @JsonSetter(value = "page_size", nulls = Nulls.SKIP) public Builder pageSize(Optional pageSize) { this.pageSize = pageSize; @@ -432,6 +459,9 @@ public Builder pageSize(Integer pageSize) { return this; } + /** + *

                        If included, will only include issues whose most recent action occurred after this time

                        + */ @JsonSetter(value = "start_date", nulls = Nulls.SKIP) public Builder startDate(Optional startDate) { this.startDate = startDate; @@ -443,6 +473,13 @@ public Builder startDate(String startDate) { return this; } + /** + *

                        Status of the issue. Options: ('ONGOING', 'RESOLVED')

                        + *
                          + *
                        • ONGOING - ONGOING
                        • + *
                        • RESOLVED - RESOLVED
                        • + *
                        + */ @JsonSetter(value = "status", nulls = Nulls.SKIP) public Builder status(Optional status) { this.status = status; diff --git a/src/main/java/com/merge/api/ticketing/types/LinkedAccountCommonModelScopeDeserializerRequest.java b/src/main/java/com/merge/api/ticketing/types/LinkedAccountCommonModelScopeDeserializerRequest.java index 0b609d9a7..c4d88e9e7 100644 --- a/src/main/java/com/merge/api/ticketing/types/LinkedAccountCommonModelScopeDeserializerRequest.java +++ b/src/main/java/com/merge/api/ticketing/types/LinkedAccountCommonModelScopeDeserializerRequest.java @@ -84,6 +84,9 @@ public Builder from(LinkedAccountCommonModelScopeDeserializerRequest other) { return this; } + /** + *

                        The common models you want to update the scopes for

                        + */ @JsonSetter(value = "common_models", nulls = Nulls.SKIP) public Builder commonModels(List commonModels) { this.commonModels.clear(); diff --git a/src/main/java/com/merge/api/ticketing/types/LinkedAccountsListRequest.java b/src/main/java/com/merge/api/ticketing/types/LinkedAccountsListRequest.java index b9cc20139..7cc39fd60 100644 --- a/src/main/java/com/merge/api/ticketing/types/LinkedAccountsListRequest.java +++ b/src/main/java/com/merge/api/ticketing/types/LinkedAccountsListRequest.java @@ -293,6 +293,18 @@ public Builder from(LinkedAccountsListRequest other) { return this; } + /** + *

                        Options: accounting, ats, crm, filestorage, hris, mktg, ticketing

                        + *
                          + *
                        • hris - hris
                        • + *
                        • ats - ats
                        • + *
                        • accounting - accounting
                        • + *
                        • ticketing - ticketing
                        • + *
                        • crm - crm
                        • + *
                        • mktg - mktg
                        • + *
                        • filestorage - filestorage
                        • + *
                        + */ @JsonSetter(value = "category", nulls = Nulls.SKIP) public Builder category(Optional category) { this.category = category; @@ -304,6 +316,9 @@ public Builder category(LinkedAccountsListRequestCategory category) { return this; } + /** + *

                        The pagination cursor value.

                        + */ @JsonSetter(value = "cursor", nulls = Nulls.SKIP) public Builder cursor(Optional cursor) { this.cursor = cursor; @@ -315,6 +330,9 @@ public Builder cursor(String cursor) { return this; } + /** + *

                        If provided, will only return linked accounts associated with the given email address.

                        + */ @JsonSetter(value = "end_user_email_address", nulls = Nulls.SKIP) public Builder endUserEmailAddress(Optional endUserEmailAddress) { this.endUserEmailAddress = endUserEmailAddress; @@ -326,6 +344,9 @@ public Builder endUserEmailAddress(String endUserEmailAddress) { return this; } + /** + *

                        If provided, will only return linked accounts associated with the given organization name.

                        + */ @JsonSetter(value = "end_user_organization_name", nulls = Nulls.SKIP) public Builder endUserOrganizationName(Optional endUserOrganizationName) { this.endUserOrganizationName = endUserOrganizationName; @@ -337,6 +358,9 @@ public Builder endUserOrganizationName(String endUserOrganizationName) { return this; } + /** + *

                        If provided, will only return linked accounts associated with the given origin ID.

                        + */ @JsonSetter(value = "end_user_origin_id", nulls = Nulls.SKIP) public Builder endUserOriginId(Optional endUserOriginId) { this.endUserOriginId = endUserOriginId; @@ -348,6 +372,9 @@ public Builder endUserOriginId(String endUserOriginId) { return this; } + /** + *

                        Comma-separated list of EndUser origin IDs, making it possible to specify multiple EndUsers at once.

                        + */ @JsonSetter(value = "end_user_origin_ids", nulls = Nulls.SKIP) public Builder endUserOriginIds(Optional endUserOriginIds) { this.endUserOriginIds = endUserOriginIds; @@ -370,6 +397,9 @@ public Builder id(String id) { return this; } + /** + *

                        Comma-separated list of LinkedAccount IDs, making it possible to specify multiple LinkedAccounts at once.

                        + */ @JsonSetter(value = "ids", nulls = Nulls.SKIP) public Builder ids(Optional ids) { this.ids = ids; @@ -381,6 +411,9 @@ public Builder ids(String ids) { return this; } + /** + *

                        If true, will include complete production duplicates of the account specified by the id query parameter in the response. id must be for a complete production linked account.

                        + */ @JsonSetter(value = "include_duplicates", nulls = Nulls.SKIP) public Builder includeDuplicates(Optional includeDuplicates) { this.includeDuplicates = includeDuplicates; @@ -392,6 +425,9 @@ public Builder includeDuplicates(Boolean includeDuplicates) { return this; } + /** + *

                        If provided, will only return linked accounts associated with the given integration name.

                        + */ @JsonSetter(value = "integration_name", nulls = Nulls.SKIP) public Builder integrationName(Optional integrationName) { this.integrationName = integrationName; @@ -403,6 +439,9 @@ public Builder integrationName(String integrationName) { return this; } + /** + *

                        If included, will only include test linked accounts. If not included, will only include non-test linked accounts.

                        + */ @JsonSetter(value = "is_test_account", nulls = Nulls.SKIP) public Builder isTestAccount(Optional isTestAccount) { this.isTestAccount = isTestAccount; @@ -414,6 +453,9 @@ public Builder isTestAccount(String isTestAccount) { return this; } + /** + *

                        Number of results to return per page.

                        + */ @JsonSetter(value = "page_size", nulls = Nulls.SKIP) public Builder pageSize(Optional pageSize) { this.pageSize = pageSize; @@ -425,6 +467,9 @@ public Builder pageSize(Integer pageSize) { return this; } + /** + *

                        Filter by status. Options: COMPLETE, IDLE, INCOMPLETE, RELINK_NEEDED

                        + */ @JsonSetter(value = "status", nulls = Nulls.SKIP) public Builder status(Optional status) { this.status = status; diff --git a/src/main/java/com/merge/api/ticketing/types/MultipartFormFieldRequest.java b/src/main/java/com/merge/api/ticketing/types/MultipartFormFieldRequest.java index d614dbb05..9a5d86824 100644 --- a/src/main/java/com/merge/api/ticketing/types/MultipartFormFieldRequest.java +++ b/src/main/java/com/merge/api/ticketing/types/MultipartFormFieldRequest.java @@ -127,26 +127,46 @@ public static NameStage builder() { } public interface NameStage { + /** + * The name of the form field + */ DataStage name(@NotNull String name); Builder from(MultipartFormFieldRequest other); } public interface DataStage { + /** + * The data for the form field. + */ _FinalStage data(@NotNull String data); } public interface _FinalStage { MultipartFormFieldRequest build(); + /** + *

                        The encoding of the value of data. Defaults to RAW if not defined.

                        + *
                          + *
                        • RAW - RAW
                        • + *
                        • BASE64 - BASE64
                        • + *
                        • GZIP_BASE64 - GZIP_BASE64
                        • + *
                        + */ _FinalStage encoding(Optional encoding); _FinalStage encoding(EncodingEnum encoding); + /** + *

                        The file name of the form field, if the field is for a file.

                        + */ _FinalStage fileName(Optional fileName); _FinalStage fileName(String fileName); + /** + *

                        The MIME type of the file, if the field is for a file.

                        + */ _FinalStage contentType(Optional contentType); _FinalStage contentType(String contentType); @@ -180,7 +200,7 @@ public Builder from(MultipartFormFieldRequest other) { } /** - *

                        The name of the form field

                        + * The name of the form field

                        The name of the form field

                        * @return Reference to {@code this} so that method calls can be chained together. */ @java.lang.Override @@ -191,7 +211,7 @@ public DataStage name(@NotNull String name) { } /** - *

                        The data for the form field.

                        + * The data for the form field.

                        The data for the form field.

                        * @return Reference to {@code this} so that method calls can be chained together. */ @java.lang.Override @@ -211,6 +231,9 @@ public _FinalStage contentType(String contentType) { return this; } + /** + *

                        The MIME type of the file, if the field is for a file.

                        + */ @java.lang.Override @JsonSetter(value = "content_type", nulls = Nulls.SKIP) public _FinalStage contentType(Optional contentType) { @@ -228,6 +251,9 @@ public _FinalStage fileName(String fileName) { return this; } + /** + *

                        The file name of the form field, if the field is for a file.

                        + */ @java.lang.Override @JsonSetter(value = "file_name", nulls = Nulls.SKIP) public _FinalStage fileName(Optional fileName) { @@ -250,6 +276,14 @@ public _FinalStage encoding(EncodingEnum encoding) { return this; } + /** + *

                        The encoding of the value of data. Defaults to RAW if not defined.

                        + *
                          + *
                        • RAW - RAW
                        • + *
                        • BASE64 - BASE64
                        • + *
                        • GZIP_BASE64 - GZIP_BASE64
                        • + *
                        + */ @java.lang.Override @JsonSetter(value = "encoding", nulls = Nulls.SKIP) public _FinalStage encoding(Optional encoding) { diff --git a/src/main/java/com/merge/api/ticketing/types/PatchedEditFieldMappingRequest.java b/src/main/java/com/merge/api/ticketing/types/PatchedEditFieldMappingRequest.java index 92df80c23..4635407b8 100644 --- a/src/main/java/com/merge/api/ticketing/types/PatchedEditFieldMappingRequest.java +++ b/src/main/java/com/merge/api/ticketing/types/PatchedEditFieldMappingRequest.java @@ -116,6 +116,9 @@ public Builder from(PatchedEditFieldMappingRequest other) { return this; } + /** + *

                        The field traversal path of the remote field listed when you hit the GET /remote-fields endpoint.

                        + */ @JsonSetter(value = "remote_field_traversal_path", nulls = Nulls.SKIP) public Builder remoteFieldTraversalPath(Optional> remoteFieldTraversalPath) { this.remoteFieldTraversalPath = remoteFieldTraversalPath; @@ -127,6 +130,9 @@ public Builder remoteFieldTraversalPath(List remoteFieldTraversalPath) return this; } + /** + *

                        The method of the remote endpoint where the remote field is coming from.

                        + */ @JsonSetter(value = "remote_method", nulls = Nulls.SKIP) public Builder remoteMethod(Optional remoteMethod) { this.remoteMethod = remoteMethod; @@ -138,6 +144,9 @@ public Builder remoteMethod(String remoteMethod) { return this; } + /** + *

                        The path of the remote endpoint where the remote field is coming from.

                        + */ @JsonSetter(value = "remote_url_path", nulls = Nulls.SKIP) public Builder remoteUrlPath(Optional remoteUrlPath) { this.remoteUrlPath = remoteUrlPath; diff --git a/src/main/java/com/merge/api/ticketing/types/PatchedTicketEndpointRequest.java b/src/main/java/com/merge/api/ticketing/types/PatchedTicketEndpointRequest.java index 14659a290..728b21ae6 100644 --- a/src/main/java/com/merge/api/ticketing/types/PatchedTicketEndpointRequest.java +++ b/src/main/java/com/merge/api/ticketing/types/PatchedTicketEndpointRequest.java @@ -99,10 +99,16 @@ public interface ModelStage { public interface _FinalStage { PatchedTicketEndpointRequest build(); + /** + *

                        Whether to include debug fields (such as log file links) in the response.

                        + */ _FinalStage isDebugMode(Optional isDebugMode); _FinalStage isDebugMode(Boolean isDebugMode); + /** + *

                        Whether or not third-party updates should be run asynchronously.

                        + */ _FinalStage runAsync(Optional runAsync); _FinalStage runAsync(Boolean runAsync); @@ -146,6 +152,9 @@ public _FinalStage runAsync(Boolean runAsync) { return this; } + /** + *

                        Whether or not third-party updates should be run asynchronously.

                        + */ @java.lang.Override @JsonSetter(value = "run_async", nulls = Nulls.SKIP) public _FinalStage runAsync(Optional runAsync) { @@ -163,6 +172,9 @@ public _FinalStage isDebugMode(Boolean isDebugMode) { return this; } + /** + *

                        Whether to include debug fields (such as log file links) in the response.

                        + */ @java.lang.Override @JsonSetter(value = "is_debug_mode", nulls = Nulls.SKIP) public _FinalStage isDebugMode(Optional isDebugMode) { diff --git a/src/main/java/com/merge/api/ticketing/types/PatchedTicketRequest.java b/src/main/java/com/merge/api/ticketing/types/PatchedTicketRequest.java index 1ef72f1d3..a028cd22e 100644 --- a/src/main/java/com/merge/api/ticketing/types/PatchedTicketRequest.java +++ b/src/main/java/com/merge/api/ticketing/types/PatchedTicketRequest.java @@ -406,6 +406,9 @@ public Builder from(PatchedTicketRequest other) { return this; } + /** + *

                        The ticket's name.

                        + */ @JsonSetter(value = "name", nulls = Nulls.SKIP) public Builder name(Optional name) { this.name = name; @@ -417,6 +420,9 @@ public Builder name(String name) { return this; } + /** + *

                        The individual Users who are assigned to this ticket. This does not include Users who just have view access to this ticket. To fetch all Users and Teams that can access the ticket, use the GET /tickets/{ticket_id}/viewers endpoint.

                        + */ @JsonSetter(value = "assignees", nulls = Nulls.SKIP) public Builder assignees(Optional>> assignees) { this.assignees = assignees; @@ -428,6 +434,9 @@ public Builder assignees(List> assignees) { return this; } + /** + *

                        The Teams that are assigned to this ticket. This does not include Teams who just have view access to this ticket. To fetch all Users and Teams that can access this ticket, use the GET /tickets/{ticket_id}/viewers endpoint.

                        + */ @JsonSetter(value = "assigned_teams", nulls = Nulls.SKIP) public Builder assignedTeams(Optional>> assignedTeams) { this.assignedTeams = assignedTeams; @@ -439,6 +448,9 @@ public Builder assignedTeams(List> assignedTeams) { return this; } + /** + *

                        The user who created this ticket.

                        + */ @JsonSetter(value = "creator", nulls = Nulls.SKIP) public Builder creator(Optional creator) { this.creator = creator; @@ -450,6 +462,9 @@ public Builder creator(String creator) { return this; } + /** + *

                        The ticket's due date.

                        + */ @JsonSetter(value = "due_date", nulls = Nulls.SKIP) public Builder dueDate(Optional dueDate) { this.dueDate = dueDate; @@ -461,6 +476,15 @@ public Builder dueDate(OffsetDateTime dueDate) { return this; } + /** + *

                        The current status of the ticket.

                        + *
                          + *
                        • OPEN - OPEN
                        • + *
                        • CLOSED - CLOSED
                        • + *
                        • IN_PROGRESS - IN_PROGRESS
                        • + *
                        • ON_HOLD - ON_HOLD
                        • + *
                        + */ @JsonSetter(value = "status", nulls = Nulls.SKIP) public Builder status(Optional status) { this.status = status; @@ -472,6 +496,9 @@ public Builder status(TicketStatusEnum status) { return this; } + /** + *

                        The ticket’s description. HTML version of description is mapped if supported by the third-party platform.

                        + */ @JsonSetter(value = "description", nulls = Nulls.SKIP) public Builder description(Optional description) { this.description = description; @@ -483,6 +510,9 @@ public Builder description(String description) { return this; } + /** + *

                        The Collections that this Ticket is included in.

                        + */ @JsonSetter(value = "collections", nulls = Nulls.SKIP) public Builder collections(Optional>> collections) { this.collections = collections; @@ -494,6 +524,9 @@ public Builder collections(List> collections) { return this; } + /** + *

                        The sub category of the ticket within the 3rd party system. Examples include incident, task, subtask or to-do.

                        + */ @JsonSetter(value = "ticket_type", nulls = Nulls.SKIP) public Builder ticketType(Optional ticketType) { this.ticketType = ticketType; @@ -505,6 +538,9 @@ public Builder ticketType(String ticketType) { return this; } + /** + *

                        The account associated with the ticket.

                        + */ @JsonSetter(value = "account", nulls = Nulls.SKIP) public Builder account(Optional account) { this.account = account; @@ -516,6 +552,9 @@ public Builder account(String account) { return this; } + /** + *

                        The contact associated with the ticket.

                        + */ @JsonSetter(value = "contact", nulls = Nulls.SKIP) public Builder contact(Optional contact) { this.contact = contact; @@ -527,6 +566,9 @@ public Builder contact(String contact) { return this; } + /** + *

                        The ticket's parent ticket.

                        + */ @JsonSetter(value = "parent_ticket", nulls = Nulls.SKIP) public Builder parentTicket(Optional parentTicket) { this.parentTicket = parentTicket; @@ -560,6 +602,9 @@ public Builder roles(List> roles) { return this; } + /** + *

                        When the ticket was completed.

                        + */ @JsonSetter(value = "completed_at", nulls = Nulls.SKIP) public Builder completedAt(Optional completedAt) { this.completedAt = completedAt; @@ -571,6 +616,9 @@ public Builder completedAt(OffsetDateTime completedAt) { return this; } + /** + *

                        The 3rd party url of the Ticket.

                        + */ @JsonSetter(value = "ticket_url", nulls = Nulls.SKIP) public Builder ticketUrl(Optional ticketUrl) { this.ticketUrl = ticketUrl; @@ -582,6 +630,15 @@ public Builder ticketUrl(String ticketUrl) { return this; } + /** + *

                        The priority or urgency of the Ticket.

                        + *
                          + *
                        • URGENT - URGENT
                        • + *
                        • HIGH - HIGH
                        • + *
                        • NORMAL - NORMAL
                        • + *
                        • LOW - LOW
                        • + *
                        + */ @JsonSetter(value = "priority", nulls = Nulls.SKIP) public Builder priority(Optional priority) { this.priority = priority; diff --git a/src/main/java/com/merge/api/ticketing/types/Project.java b/src/main/java/com/merge/api/ticketing/types/Project.java index 7addef518..6c8b7f97b 100644 --- a/src/main/java/com/merge/api/ticketing/types/Project.java +++ b/src/main/java/com/merge/api/ticketing/types/Project.java @@ -224,6 +224,9 @@ public Builder id(String id) { return this; } + /** + *

                        The third-party API ID of the matching object.

                        + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; @@ -235,6 +238,9 @@ public Builder remoteId(String remoteId) { return this; } + /** + *

                        The datetime that this object was created by Merge.

                        + */ @JsonSetter(value = "created_at", nulls = Nulls.SKIP) public Builder createdAt(Optional createdAt) { this.createdAt = createdAt; @@ -246,6 +252,9 @@ public Builder createdAt(OffsetDateTime createdAt) { return this; } + /** + *

                        The datetime that this object was modified by Merge.

                        + */ @JsonSetter(value = "modified_at", nulls = Nulls.SKIP) public Builder modifiedAt(Optional modifiedAt) { this.modifiedAt = modifiedAt; @@ -257,6 +266,9 @@ public Builder modifiedAt(OffsetDateTime modifiedAt) { return this; } + /** + *

                        The project's name.

                        + */ @JsonSetter(value = "name", nulls = Nulls.SKIP) public Builder name(Optional name) { this.name = name; @@ -268,6 +280,9 @@ public Builder name(String name) { return this; } + /** + *

                        The project's description.

                        + */ @JsonSetter(value = "description", nulls = Nulls.SKIP) public Builder description(Optional description) { this.description = description; @@ -279,6 +294,9 @@ public Builder description(String description) { return this; } + /** + *

                        Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

                        + */ @JsonSetter(value = "remote_was_deleted", nulls = Nulls.SKIP) public Builder remoteWasDeleted(Optional remoteWasDeleted) { this.remoteWasDeleted = remoteWasDeleted; diff --git a/src/main/java/com/merge/api/ticketing/types/ProjectsListRequest.java b/src/main/java/com/merge/api/ticketing/types/ProjectsListRequest.java index f2ac16fc2..1fd1d2dfa 100644 --- a/src/main/java/com/merge/api/ticketing/types/ProjectsListRequest.java +++ b/src/main/java/com/merge/api/ticketing/types/ProjectsListRequest.java @@ -237,6 +237,9 @@ public Builder from(ProjectsListRequest other) { return this; } + /** + *

                        If provided, will only return objects created after this datetime.

                        + */ @JsonSetter(value = "created_after", nulls = Nulls.SKIP) public Builder createdAfter(Optional createdAfter) { this.createdAfter = createdAfter; @@ -248,6 +251,9 @@ public Builder createdAfter(OffsetDateTime createdAfter) { return this; } + /** + *

                        If provided, will only return objects created before this datetime.

                        + */ @JsonSetter(value = "created_before", nulls = Nulls.SKIP) public Builder createdBefore(Optional createdBefore) { this.createdBefore = createdBefore; @@ -259,6 +265,9 @@ public Builder createdBefore(OffsetDateTime createdBefore) { return this; } + /** + *

                        The pagination cursor value.

                        + */ @JsonSetter(value = "cursor", nulls = Nulls.SKIP) public Builder cursor(Optional cursor) { this.cursor = cursor; @@ -270,6 +279,9 @@ public Builder cursor(String cursor) { return this; } + /** + *

                        Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

                        + */ @JsonSetter(value = "include_deleted_data", nulls = Nulls.SKIP) public Builder includeDeletedData(Optional includeDeletedData) { this.includeDeletedData = includeDeletedData; @@ -281,6 +293,9 @@ public Builder includeDeletedData(Boolean includeDeletedData) { return this; } + /** + *

                        Whether to include the original data Merge fetched from the third-party to produce these models.

                        + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -292,6 +307,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

                        Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

                        + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; @@ -303,6 +321,9 @@ public Builder includeShellData(Boolean includeShellData) { return this; } + /** + *

                        If provided, only objects synced by Merge after this date time will be returned.

                        + */ @JsonSetter(value = "modified_after", nulls = Nulls.SKIP) public Builder modifiedAfter(Optional modifiedAfter) { this.modifiedAfter = modifiedAfter; @@ -314,6 +335,9 @@ public Builder modifiedAfter(OffsetDateTime modifiedAfter) { return this; } + /** + *

                        If provided, only objects synced by Merge before this date time will be returned.

                        + */ @JsonSetter(value = "modified_before", nulls = Nulls.SKIP) public Builder modifiedBefore(Optional modifiedBefore) { this.modifiedBefore = modifiedBefore; @@ -325,6 +349,9 @@ public Builder modifiedBefore(OffsetDateTime modifiedBefore) { return this; } + /** + *

                        Number of results to return per page.

                        + */ @JsonSetter(value = "page_size", nulls = Nulls.SKIP) public Builder pageSize(Optional pageSize) { this.pageSize = pageSize; @@ -336,6 +363,9 @@ public Builder pageSize(Integer pageSize) { return this; } + /** + *

                        The API provider's ID for the given object.

                        + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; diff --git a/src/main/java/com/merge/api/ticketing/types/ProjectsRetrieveRequest.java b/src/main/java/com/merge/api/ticketing/types/ProjectsRetrieveRequest.java index cfc19bed9..96ccd494f 100644 --- a/src/main/java/com/merge/api/ticketing/types/ProjectsRetrieveRequest.java +++ b/src/main/java/com/merge/api/ticketing/types/ProjectsRetrieveRequest.java @@ -97,6 +97,9 @@ public Builder from(ProjectsRetrieveRequest other) { return this; } + /** + *

                        Whether to include the original data Merge fetched from the third-party to produce these models.

                        + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -108,6 +111,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

                        Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

                        + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; diff --git a/src/main/java/com/merge/api/ticketing/types/ProjectsUsersListRequest.java b/src/main/java/com/merge/api/ticketing/types/ProjectsUsersListRequest.java index ee1bf3ed3..bcd2cf096 100644 --- a/src/main/java/com/merge/api/ticketing/types/ProjectsUsersListRequest.java +++ b/src/main/java/com/merge/api/ticketing/types/ProjectsUsersListRequest.java @@ -170,6 +170,9 @@ public Builder from(ProjectsUsersListRequest other) { return this; } + /** + *

                        Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.

                        + */ @JsonSetter(value = "expand", nulls = Nulls.SKIP) public Builder expand(Optional> expand) { this.expand = expand; @@ -186,6 +189,9 @@ public Builder expand(ProjectsUsersListRequestExpandItem expand) { return this; } + /** + *

                        The pagination cursor value.

                        + */ @JsonSetter(value = "cursor", nulls = Nulls.SKIP) public Builder cursor(Optional cursor) { this.cursor = cursor; @@ -197,6 +203,9 @@ public Builder cursor(String cursor) { return this; } + /** + *

                        Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

                        + */ @JsonSetter(value = "include_deleted_data", nulls = Nulls.SKIP) public Builder includeDeletedData(Optional includeDeletedData) { this.includeDeletedData = includeDeletedData; @@ -208,6 +217,9 @@ public Builder includeDeletedData(Boolean includeDeletedData) { return this; } + /** + *

                        Whether to include the original data Merge fetched from the third-party to produce these models.

                        + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -219,6 +231,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

                        Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

                        + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; @@ -230,6 +245,9 @@ public Builder includeShellData(Boolean includeShellData) { return this; } + /** + *

                        Number of results to return per page.

                        + */ @JsonSetter(value = "page_size", nulls = Nulls.SKIP) public Builder pageSize(Optional pageSize) { this.pageSize = pageSize; diff --git a/src/main/java/com/merge/api/ticketing/types/RemoteData.java b/src/main/java/com/merge/api/ticketing/types/RemoteData.java index 92e2f4a42..e955df50b 100644 --- a/src/main/java/com/merge/api/ticketing/types/RemoteData.java +++ b/src/main/java/com/merge/api/ticketing/types/RemoteData.java @@ -77,6 +77,9 @@ public static PathStage builder() { } public interface PathStage { + /** + * The third-party API path that is being called. + */ _FinalStage path(@NotNull String path); Builder from(RemoteData other); @@ -109,7 +112,7 @@ public Builder from(RemoteData other) { } /** - *

                        The third-party API path that is being called.

                        + * The third-party API path that is being called.

                        The third-party API path that is being called.

                        * @return Reference to {@code this} so that method calls can be chained together. */ @java.lang.Override diff --git a/src/main/java/com/merge/api/ticketing/types/RemoteFieldsRetrieveRequest.java b/src/main/java/com/merge/api/ticketing/types/RemoteFieldsRetrieveRequest.java index a9049d17b..c02564488 100644 --- a/src/main/java/com/merge/api/ticketing/types/RemoteFieldsRetrieveRequest.java +++ b/src/main/java/com/merge/api/ticketing/types/RemoteFieldsRetrieveRequest.java @@ -97,6 +97,9 @@ public Builder from(RemoteFieldsRetrieveRequest other) { return this; } + /** + *

                        A comma seperated list of Common Model names. If included, will only return Remote Fields for those Common Models.

                        + */ @JsonSetter(value = "common_models", nulls = Nulls.SKIP) public Builder commonModels(Optional commonModels) { this.commonModels = commonModels; @@ -108,6 +111,9 @@ public Builder commonModels(String commonModels) { return this; } + /** + *

                        If true, will include example values, where available, for remote fields in the 3rd party platform. These examples come from active data from your customers.

                        + */ @JsonSetter(value = "include_example_values", nulls = Nulls.SKIP) public Builder includeExampleValues(Optional includeExampleValues) { this.includeExampleValues = includeExampleValues; diff --git a/src/main/java/com/merge/api/ticketing/types/RemoteKeyForRegenerationRequest.java b/src/main/java/com/merge/api/ticketing/types/RemoteKeyForRegenerationRequest.java index 13f05201b..749fcab0c 100644 --- a/src/main/java/com/merge/api/ticketing/types/RemoteKeyForRegenerationRequest.java +++ b/src/main/java/com/merge/api/ticketing/types/RemoteKeyForRegenerationRequest.java @@ -66,6 +66,9 @@ public static NameStage builder() { } public interface NameStage { + /** + * The name of the remote key + */ _FinalStage name(@NotNull String name); Builder from(RemoteKeyForRegenerationRequest other); @@ -91,7 +94,7 @@ public Builder from(RemoteKeyForRegenerationRequest other) { } /** - *

                        The name of the remote key

                        + * The name of the remote key

                        The name of the remote key

                        * @return Reference to {@code this} so that method calls can be chained together. */ @java.lang.Override diff --git a/src/main/java/com/merge/api/ticketing/types/Role.java b/src/main/java/com/merge/api/ticketing/types/Role.java index f95e2d44f..8d1bf8132 100644 --- a/src/main/java/com/merge/api/ticketing/types/Role.java +++ b/src/main/java/com/merge/api/ticketing/types/Role.java @@ -246,6 +246,9 @@ public Builder id(String id) { return this; } + /** + *

                        The third-party API ID of the matching object.

                        + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; @@ -257,6 +260,9 @@ public Builder remoteId(String remoteId) { return this; } + /** + *

                        The datetime that this object was created by Merge.

                        + */ @JsonSetter(value = "created_at", nulls = Nulls.SKIP) public Builder createdAt(Optional createdAt) { this.createdAt = createdAt; @@ -268,6 +274,9 @@ public Builder createdAt(OffsetDateTime createdAt) { return this; } + /** + *

                        The datetime that this object was modified by Merge.

                        + */ @JsonSetter(value = "modified_at", nulls = Nulls.SKIP) public Builder modifiedAt(Optional modifiedAt) { this.modifiedAt = modifiedAt; @@ -279,6 +288,9 @@ public Builder modifiedAt(OffsetDateTime modifiedAt) { return this; } + /** + *

                        The name of the Role.

                        + */ @JsonSetter(value = "name", nulls = Nulls.SKIP) public Builder name(Optional name) { this.name = name; @@ -290,6 +302,9 @@ public Builder name(String name) { return this; } + /** + *

                        The set of actions that a User with this Role can perform. Possible enum values include: VIEW, CREATE, EDIT, DELETE, CLOSE, and ASSIGN.

                        + */ @JsonSetter(value = "ticket_actions", nulls = Nulls.SKIP) public Builder ticketActions(Optional> ticketActions) { this.ticketActions = ticketActions; @@ -301,6 +316,14 @@ public Builder ticketActions(List ticketActions) { return this; } + /** + *

                        The level of Ticket access that a User with this Role can perform.

                        + *
                          + *
                        • ALL - ALL
                        • + *
                        • ASSIGNED_ONLY - ASSIGNED_ONLY
                        • + *
                        • TEAM_ONLY - TEAM_ONLY
                        • + *
                        + */ @JsonSetter(value = "ticket_access", nulls = Nulls.SKIP) public Builder ticketAccess(Optional ticketAccess) { this.ticketAccess = ticketAccess; @@ -312,6 +335,9 @@ public Builder ticketAccess(TicketAccessEnum ticketAccess) { return this; } + /** + *

                        Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

                        + */ @JsonSetter(value = "remote_was_deleted", nulls = Nulls.SKIP) public Builder remoteWasDeleted(Optional remoteWasDeleted) { this.remoteWasDeleted = remoteWasDeleted; diff --git a/src/main/java/com/merge/api/ticketing/types/RolesListRequest.java b/src/main/java/com/merge/api/ticketing/types/RolesListRequest.java index ed9c345bb..0ae125024 100644 --- a/src/main/java/com/merge/api/ticketing/types/RolesListRequest.java +++ b/src/main/java/com/merge/api/ticketing/types/RolesListRequest.java @@ -237,6 +237,9 @@ public Builder from(RolesListRequest other) { return this; } + /** + *

                        If provided, will only return objects created after this datetime.

                        + */ @JsonSetter(value = "created_after", nulls = Nulls.SKIP) public Builder createdAfter(Optional createdAfter) { this.createdAfter = createdAfter; @@ -248,6 +251,9 @@ public Builder createdAfter(OffsetDateTime createdAfter) { return this; } + /** + *

                        If provided, will only return objects created before this datetime.

                        + */ @JsonSetter(value = "created_before", nulls = Nulls.SKIP) public Builder createdBefore(Optional createdBefore) { this.createdBefore = createdBefore; @@ -259,6 +265,9 @@ public Builder createdBefore(OffsetDateTime createdBefore) { return this; } + /** + *

                        The pagination cursor value.

                        + */ @JsonSetter(value = "cursor", nulls = Nulls.SKIP) public Builder cursor(Optional cursor) { this.cursor = cursor; @@ -270,6 +279,9 @@ public Builder cursor(String cursor) { return this; } + /** + *

                        Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

                        + */ @JsonSetter(value = "include_deleted_data", nulls = Nulls.SKIP) public Builder includeDeletedData(Optional includeDeletedData) { this.includeDeletedData = includeDeletedData; @@ -281,6 +293,9 @@ public Builder includeDeletedData(Boolean includeDeletedData) { return this; } + /** + *

                        Whether to include the original data Merge fetched from the third-party to produce these models.

                        + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -292,6 +307,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

                        Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

                        + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; @@ -303,6 +321,9 @@ public Builder includeShellData(Boolean includeShellData) { return this; } + /** + *

                        If provided, only objects synced by Merge after this date time will be returned.

                        + */ @JsonSetter(value = "modified_after", nulls = Nulls.SKIP) public Builder modifiedAfter(Optional modifiedAfter) { this.modifiedAfter = modifiedAfter; @@ -314,6 +335,9 @@ public Builder modifiedAfter(OffsetDateTime modifiedAfter) { return this; } + /** + *

                        If provided, only objects synced by Merge before this date time will be returned.

                        + */ @JsonSetter(value = "modified_before", nulls = Nulls.SKIP) public Builder modifiedBefore(Optional modifiedBefore) { this.modifiedBefore = modifiedBefore; @@ -325,6 +349,9 @@ public Builder modifiedBefore(OffsetDateTime modifiedBefore) { return this; } + /** + *

                        Number of results to return per page.

                        + */ @JsonSetter(value = "page_size", nulls = Nulls.SKIP) public Builder pageSize(Optional pageSize) { this.pageSize = pageSize; @@ -336,6 +363,9 @@ public Builder pageSize(Integer pageSize) { return this; } + /** + *

                        The API provider's ID for the given object.

                        + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; diff --git a/src/main/java/com/merge/api/ticketing/types/RolesRetrieveRequest.java b/src/main/java/com/merge/api/ticketing/types/RolesRetrieveRequest.java index 2f73ccadd..30d3f33a3 100644 --- a/src/main/java/com/merge/api/ticketing/types/RolesRetrieveRequest.java +++ b/src/main/java/com/merge/api/ticketing/types/RolesRetrieveRequest.java @@ -97,6 +97,9 @@ public Builder from(RolesRetrieveRequest other) { return this; } + /** + *

                        Whether to include the original data Merge fetched from the third-party to produce these models.

                        + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -108,6 +111,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

                        Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

                        + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; diff --git a/src/main/java/com/merge/api/ticketing/types/SyncStatusListRequest.java b/src/main/java/com/merge/api/ticketing/types/SyncStatusListRequest.java index 898bfb96c..6d058222e 100644 --- a/src/main/java/com/merge/api/ticketing/types/SyncStatusListRequest.java +++ b/src/main/java/com/merge/api/ticketing/types/SyncStatusListRequest.java @@ -95,6 +95,9 @@ public Builder from(SyncStatusListRequest other) { return this; } + /** + *

                        The pagination cursor value.

                        + */ @JsonSetter(value = "cursor", nulls = Nulls.SKIP) public Builder cursor(Optional cursor) { this.cursor = cursor; @@ -106,6 +109,9 @@ public Builder cursor(String cursor) { return this; } + /** + *

                        Number of results to return per page.

                        + */ @JsonSetter(value = "page_size", nulls = Nulls.SKIP) public Builder pageSize(Optional pageSize) { this.pageSize = pageSize; diff --git a/src/main/java/com/merge/api/ticketing/types/Tag.java b/src/main/java/com/merge/api/ticketing/types/Tag.java index 8b2b4c4e2..31463e518 100644 --- a/src/main/java/com/merge/api/ticketing/types/Tag.java +++ b/src/main/java/com/merge/api/ticketing/types/Tag.java @@ -196,6 +196,9 @@ public Builder from(Tag other) { return this; } + /** + *

                        The third-party API ID of the matching object.

                        + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; @@ -207,6 +210,9 @@ public Builder remoteId(String remoteId) { return this; } + /** + *

                        The datetime that this object was created by Merge.

                        + */ @JsonSetter(value = "created_at", nulls = Nulls.SKIP) public Builder createdAt(Optional createdAt) { this.createdAt = createdAt; @@ -218,6 +224,9 @@ public Builder createdAt(OffsetDateTime createdAt) { return this; } + /** + *

                        The datetime that this object was modified by Merge.

                        + */ @JsonSetter(value = "modified_at", nulls = Nulls.SKIP) public Builder modifiedAt(Optional modifiedAt) { this.modifiedAt = modifiedAt; @@ -240,6 +249,9 @@ public Builder id(String id) { return this; } + /** + *

                        The tag's name.

                        + */ @JsonSetter(value = "name", nulls = Nulls.SKIP) public Builder name(Optional name) { this.name = name; @@ -251,6 +263,9 @@ public Builder name(String name) { return this; } + /** + *

                        Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

                        + */ @JsonSetter(value = "remote_was_deleted", nulls = Nulls.SKIP) public Builder remoteWasDeleted(Optional remoteWasDeleted) { this.remoteWasDeleted = remoteWasDeleted; diff --git a/src/main/java/com/merge/api/ticketing/types/TagsListRequest.java b/src/main/java/com/merge/api/ticketing/types/TagsListRequest.java index 27503859b..1a40d1e87 100644 --- a/src/main/java/com/merge/api/ticketing/types/TagsListRequest.java +++ b/src/main/java/com/merge/api/ticketing/types/TagsListRequest.java @@ -237,6 +237,9 @@ public Builder from(TagsListRequest other) { return this; } + /** + *

                        If provided, will only return objects created after this datetime.

                        + */ @JsonSetter(value = "created_after", nulls = Nulls.SKIP) public Builder createdAfter(Optional createdAfter) { this.createdAfter = createdAfter; @@ -248,6 +251,9 @@ public Builder createdAfter(OffsetDateTime createdAfter) { return this; } + /** + *

                        If provided, will only return objects created before this datetime.

                        + */ @JsonSetter(value = "created_before", nulls = Nulls.SKIP) public Builder createdBefore(Optional createdBefore) { this.createdBefore = createdBefore; @@ -259,6 +265,9 @@ public Builder createdBefore(OffsetDateTime createdBefore) { return this; } + /** + *

                        The pagination cursor value.

                        + */ @JsonSetter(value = "cursor", nulls = Nulls.SKIP) public Builder cursor(Optional cursor) { this.cursor = cursor; @@ -270,6 +279,9 @@ public Builder cursor(String cursor) { return this; } + /** + *

                        Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

                        + */ @JsonSetter(value = "include_deleted_data", nulls = Nulls.SKIP) public Builder includeDeletedData(Optional includeDeletedData) { this.includeDeletedData = includeDeletedData; @@ -281,6 +293,9 @@ public Builder includeDeletedData(Boolean includeDeletedData) { return this; } + /** + *

                        Whether to include the original data Merge fetched from the third-party to produce these models.

                        + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -292,6 +307,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

                        Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

                        + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; @@ -303,6 +321,9 @@ public Builder includeShellData(Boolean includeShellData) { return this; } + /** + *

                        If provided, only objects synced by Merge after this date time will be returned.

                        + */ @JsonSetter(value = "modified_after", nulls = Nulls.SKIP) public Builder modifiedAfter(Optional modifiedAfter) { this.modifiedAfter = modifiedAfter; @@ -314,6 +335,9 @@ public Builder modifiedAfter(OffsetDateTime modifiedAfter) { return this; } + /** + *

                        If provided, only objects synced by Merge before this date time will be returned.

                        + */ @JsonSetter(value = "modified_before", nulls = Nulls.SKIP) public Builder modifiedBefore(Optional modifiedBefore) { this.modifiedBefore = modifiedBefore; @@ -325,6 +349,9 @@ public Builder modifiedBefore(OffsetDateTime modifiedBefore) { return this; } + /** + *

                        Number of results to return per page.

                        + */ @JsonSetter(value = "page_size", nulls = Nulls.SKIP) public Builder pageSize(Optional pageSize) { this.pageSize = pageSize; @@ -336,6 +363,9 @@ public Builder pageSize(Integer pageSize) { return this; } + /** + *

                        The API provider's ID for the given object.

                        + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; diff --git a/src/main/java/com/merge/api/ticketing/types/TagsRetrieveRequest.java b/src/main/java/com/merge/api/ticketing/types/TagsRetrieveRequest.java index 3395138bf..06679f255 100644 --- a/src/main/java/com/merge/api/ticketing/types/TagsRetrieveRequest.java +++ b/src/main/java/com/merge/api/ticketing/types/TagsRetrieveRequest.java @@ -97,6 +97,9 @@ public Builder from(TagsRetrieveRequest other) { return this; } + /** + *

                        Whether to include the original data Merge fetched from the third-party to produce these models.

                        + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -108,6 +111,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

                        Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

                        + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; diff --git a/src/main/java/com/merge/api/ticketing/types/Team.java b/src/main/java/com/merge/api/ticketing/types/Team.java index dd05e6944..c22e14db1 100644 --- a/src/main/java/com/merge/api/ticketing/types/Team.java +++ b/src/main/java/com/merge/api/ticketing/types/Team.java @@ -224,6 +224,9 @@ public Builder id(String id) { return this; } + /** + *

                        The third-party API ID of the matching object.

                        + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; @@ -235,6 +238,9 @@ public Builder remoteId(String remoteId) { return this; } + /** + *

                        The datetime that this object was created by Merge.

                        + */ @JsonSetter(value = "created_at", nulls = Nulls.SKIP) public Builder createdAt(Optional createdAt) { this.createdAt = createdAt; @@ -246,6 +252,9 @@ public Builder createdAt(OffsetDateTime createdAt) { return this; } + /** + *

                        The datetime that this object was modified by Merge.

                        + */ @JsonSetter(value = "modified_at", nulls = Nulls.SKIP) public Builder modifiedAt(Optional modifiedAt) { this.modifiedAt = modifiedAt; @@ -257,6 +266,9 @@ public Builder modifiedAt(OffsetDateTime modifiedAt) { return this; } + /** + *

                        The team's name.

                        + */ @JsonSetter(value = "name", nulls = Nulls.SKIP) public Builder name(Optional name) { this.name = name; @@ -268,6 +280,9 @@ public Builder name(String name) { return this; } + /** + *

                        The team's description.

                        + */ @JsonSetter(value = "description", nulls = Nulls.SKIP) public Builder description(Optional description) { this.description = description; @@ -279,6 +294,9 @@ public Builder description(String description) { return this; } + /** + *

                        Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

                        + */ @JsonSetter(value = "remote_was_deleted", nulls = Nulls.SKIP) public Builder remoteWasDeleted(Optional remoteWasDeleted) { this.remoteWasDeleted = remoteWasDeleted; diff --git a/src/main/java/com/merge/api/ticketing/types/TeamsListRequest.java b/src/main/java/com/merge/api/ticketing/types/TeamsListRequest.java index 3b282004b..151cc4fa2 100644 --- a/src/main/java/com/merge/api/ticketing/types/TeamsListRequest.java +++ b/src/main/java/com/merge/api/ticketing/types/TeamsListRequest.java @@ -237,6 +237,9 @@ public Builder from(TeamsListRequest other) { return this; } + /** + *

                        If provided, will only return objects created after this datetime.

                        + */ @JsonSetter(value = "created_after", nulls = Nulls.SKIP) public Builder createdAfter(Optional createdAfter) { this.createdAfter = createdAfter; @@ -248,6 +251,9 @@ public Builder createdAfter(OffsetDateTime createdAfter) { return this; } + /** + *

                        If provided, will only return objects created before this datetime.

                        + */ @JsonSetter(value = "created_before", nulls = Nulls.SKIP) public Builder createdBefore(Optional createdBefore) { this.createdBefore = createdBefore; @@ -259,6 +265,9 @@ public Builder createdBefore(OffsetDateTime createdBefore) { return this; } + /** + *

                        The pagination cursor value.

                        + */ @JsonSetter(value = "cursor", nulls = Nulls.SKIP) public Builder cursor(Optional cursor) { this.cursor = cursor; @@ -270,6 +279,9 @@ public Builder cursor(String cursor) { return this; } + /** + *

                        Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

                        + */ @JsonSetter(value = "include_deleted_data", nulls = Nulls.SKIP) public Builder includeDeletedData(Optional includeDeletedData) { this.includeDeletedData = includeDeletedData; @@ -281,6 +293,9 @@ public Builder includeDeletedData(Boolean includeDeletedData) { return this; } + /** + *

                        Whether to include the original data Merge fetched from the third-party to produce these models.

                        + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -292,6 +307,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

                        Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

                        + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; @@ -303,6 +321,9 @@ public Builder includeShellData(Boolean includeShellData) { return this; } + /** + *

                        If provided, only objects synced by Merge after this date time will be returned.

                        + */ @JsonSetter(value = "modified_after", nulls = Nulls.SKIP) public Builder modifiedAfter(Optional modifiedAfter) { this.modifiedAfter = modifiedAfter; @@ -314,6 +335,9 @@ public Builder modifiedAfter(OffsetDateTime modifiedAfter) { return this; } + /** + *

                        If provided, only objects synced by Merge before this date time will be returned.

                        + */ @JsonSetter(value = "modified_before", nulls = Nulls.SKIP) public Builder modifiedBefore(Optional modifiedBefore) { this.modifiedBefore = modifiedBefore; @@ -325,6 +349,9 @@ public Builder modifiedBefore(OffsetDateTime modifiedBefore) { return this; } + /** + *

                        Number of results to return per page.

                        + */ @JsonSetter(value = "page_size", nulls = Nulls.SKIP) public Builder pageSize(Optional pageSize) { this.pageSize = pageSize; @@ -336,6 +363,9 @@ public Builder pageSize(Integer pageSize) { return this; } + /** + *

                        The API provider's ID for the given object.

                        + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; diff --git a/src/main/java/com/merge/api/ticketing/types/TeamsRetrieveRequest.java b/src/main/java/com/merge/api/ticketing/types/TeamsRetrieveRequest.java index 130491c4b..d831123a6 100644 --- a/src/main/java/com/merge/api/ticketing/types/TeamsRetrieveRequest.java +++ b/src/main/java/com/merge/api/ticketing/types/TeamsRetrieveRequest.java @@ -97,6 +97,9 @@ public Builder from(TeamsRetrieveRequest other) { return this; } + /** + *

                        Whether to include the original data Merge fetched from the third-party to produce these models.

                        + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -108,6 +111,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

                        Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

                        + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; diff --git a/src/main/java/com/merge/api/ticketing/types/Ticket.java b/src/main/java/com/merge/api/ticketing/types/Ticket.java index 4880ee8f0..7f5592740 100644 --- a/src/main/java/com/merge/api/ticketing/types/Ticket.java +++ b/src/main/java/com/merge/api/ticketing/types/Ticket.java @@ -547,6 +547,9 @@ public Builder id(String id) { return this; } + /** + *

                        The third-party API ID of the matching object.

                        + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; @@ -558,6 +561,9 @@ public Builder remoteId(String remoteId) { return this; } + /** + *

                        The datetime that this object was created by Merge.

                        + */ @JsonSetter(value = "created_at", nulls = Nulls.SKIP) public Builder createdAt(Optional createdAt) { this.createdAt = createdAt; @@ -569,6 +575,9 @@ public Builder createdAt(OffsetDateTime createdAt) { return this; } + /** + *

                        The datetime that this object was modified by Merge.

                        + */ @JsonSetter(value = "modified_at", nulls = Nulls.SKIP) public Builder modifiedAt(Optional modifiedAt) { this.modifiedAt = modifiedAt; @@ -580,6 +589,9 @@ public Builder modifiedAt(OffsetDateTime modifiedAt) { return this; } + /** + *

                        The ticket's name.

                        + */ @JsonSetter(value = "name", nulls = Nulls.SKIP) public Builder name(Optional name) { this.name = name; @@ -591,6 +603,9 @@ public Builder name(String name) { return this; } + /** + *

                        The individual Users who are assigned to this ticket. This does not include Users who just have view access to this ticket. To fetch all Users and Teams that can access the ticket, use the GET /tickets/{ticket_id}/viewers endpoint.

                        + */ @JsonSetter(value = "assignees", nulls = Nulls.SKIP) public Builder assignees(Optional>> assignees) { this.assignees = assignees; @@ -602,6 +617,9 @@ public Builder assignees(List> assignees) { return this; } + /** + *

                        The Teams that are assigned to this ticket. This does not include Teams who just have view access to this ticket. To fetch all Users and Teams that can access this ticket, use the GET /tickets/{ticket_id}/viewers endpoint.

                        + */ @JsonSetter(value = "assigned_teams", nulls = Nulls.SKIP) public Builder assignedTeams(Optional>> assignedTeams) { this.assignedTeams = assignedTeams; @@ -613,6 +631,9 @@ public Builder assignedTeams(List> assignedTea return this; } + /** + *

                        The user who created this ticket.

                        + */ @JsonSetter(value = "creator", nulls = Nulls.SKIP) public Builder creator(Optional creator) { this.creator = creator; @@ -624,6 +645,9 @@ public Builder creator(TicketCreator creator) { return this; } + /** + *

                        The ticket's due date.

                        + */ @JsonSetter(value = "due_date", nulls = Nulls.SKIP) public Builder dueDate(Optional dueDate) { this.dueDate = dueDate; @@ -635,6 +659,15 @@ public Builder dueDate(OffsetDateTime dueDate) { return this; } + /** + *

                        The current status of the ticket.

                        + *
                          + *
                        • OPEN - OPEN
                        • + *
                        • CLOSED - CLOSED
                        • + *
                        • IN_PROGRESS - IN_PROGRESS
                        • + *
                        • ON_HOLD - ON_HOLD
                        • + *
                        + */ @JsonSetter(value = "status", nulls = Nulls.SKIP) public Builder status(Optional status) { this.status = status; @@ -646,6 +679,9 @@ public Builder status(TicketStatusEnum status) { return this; } + /** + *

                        The ticket’s description. HTML version of description is mapped if supported by the third-party platform.

                        + */ @JsonSetter(value = "description", nulls = Nulls.SKIP) public Builder description(Optional description) { this.description = description; @@ -657,6 +693,9 @@ public Builder description(String description) { return this; } + /** + *

                        The Collections that this Ticket is included in.

                        + */ @JsonSetter(value = "collections", nulls = Nulls.SKIP) public Builder collections(Optional>> collections) { this.collections = collections; @@ -668,6 +707,9 @@ public Builder collections(List> collections) { return this; } + /** + *

                        The sub category of the ticket within the 3rd party system. Examples include incident, task, subtask or to-do.

                        + */ @JsonSetter(value = "ticket_type", nulls = Nulls.SKIP) public Builder ticketType(Optional ticketType) { this.ticketType = ticketType; @@ -679,6 +721,9 @@ public Builder ticketType(String ticketType) { return this; } + /** + *

                        The account associated with the ticket.

                        + */ @JsonSetter(value = "account", nulls = Nulls.SKIP) public Builder account(Optional account) { this.account = account; @@ -690,6 +735,9 @@ public Builder account(TicketAccount account) { return this; } + /** + *

                        The contact associated with the ticket.

                        + */ @JsonSetter(value = "contact", nulls = Nulls.SKIP) public Builder contact(Optional contact) { this.contact = contact; @@ -701,6 +749,9 @@ public Builder contact(TicketContact contact) { return this; } + /** + *

                        The ticket's parent ticket.

                        + */ @JsonSetter(value = "parent_ticket", nulls = Nulls.SKIP) public Builder parentTicket(Optional parentTicket) { this.parentTicket = parentTicket; @@ -745,6 +796,9 @@ public Builder roles(List> roles) { return this; } + /** + *

                        When the third party's ticket was created.

                        + */ @JsonSetter(value = "remote_created_at", nulls = Nulls.SKIP) public Builder remoteCreatedAt(Optional remoteCreatedAt) { this.remoteCreatedAt = remoteCreatedAt; @@ -756,6 +810,9 @@ public Builder remoteCreatedAt(OffsetDateTime remoteCreatedAt) { return this; } + /** + *

                        When the third party's ticket was updated.

                        + */ @JsonSetter(value = "remote_updated_at", nulls = Nulls.SKIP) public Builder remoteUpdatedAt(Optional remoteUpdatedAt) { this.remoteUpdatedAt = remoteUpdatedAt; @@ -767,6 +824,9 @@ public Builder remoteUpdatedAt(OffsetDateTime remoteUpdatedAt) { return this; } + /** + *

                        When the ticket was completed.

                        + */ @JsonSetter(value = "completed_at", nulls = Nulls.SKIP) public Builder completedAt(Optional completedAt) { this.completedAt = completedAt; @@ -778,6 +838,9 @@ public Builder completedAt(OffsetDateTime completedAt) { return this; } + /** + *

                        Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

                        + */ @JsonSetter(value = "remote_was_deleted", nulls = Nulls.SKIP) public Builder remoteWasDeleted(Optional remoteWasDeleted) { this.remoteWasDeleted = remoteWasDeleted; @@ -789,6 +852,9 @@ public Builder remoteWasDeleted(Boolean remoteWasDeleted) { return this; } + /** + *

                        The 3rd party url of the Ticket.

                        + */ @JsonSetter(value = "ticket_url", nulls = Nulls.SKIP) public Builder ticketUrl(Optional ticketUrl) { this.ticketUrl = ticketUrl; @@ -800,6 +866,15 @@ public Builder ticketUrl(String ticketUrl) { return this; } + /** + *

                        The priority or urgency of the Ticket.

                        + *
                          + *
                        • URGENT - URGENT
                        • + *
                        • HIGH - HIGH
                        • + *
                        • NORMAL - NORMAL
                        • + *
                        • LOW - LOW
                        • + *
                        + */ @JsonSetter(value = "priority", nulls = Nulls.SKIP) public Builder priority(Optional priority) { this.priority = priority; diff --git a/src/main/java/com/merge/api/ticketing/types/TicketEndpointRequest.java b/src/main/java/com/merge/api/ticketing/types/TicketEndpointRequest.java index b4c5709c4..f68bbcf9b 100644 --- a/src/main/java/com/merge/api/ticketing/types/TicketEndpointRequest.java +++ b/src/main/java/com/merge/api/ticketing/types/TicketEndpointRequest.java @@ -99,10 +99,16 @@ public interface ModelStage { public interface _FinalStage { TicketEndpointRequest build(); + /** + *

                        Whether to include debug fields (such as log file links) in the response.

                        + */ _FinalStage isDebugMode(Optional isDebugMode); _FinalStage isDebugMode(Boolean isDebugMode); + /** + *

                        Whether or not third-party updates should be run asynchronously.

                        + */ _FinalStage runAsync(Optional runAsync); _FinalStage runAsync(Boolean runAsync); @@ -146,6 +152,9 @@ public _FinalStage runAsync(Boolean runAsync) { return this; } + /** + *

                        Whether or not third-party updates should be run asynchronously.

                        + */ @java.lang.Override @JsonSetter(value = "run_async", nulls = Nulls.SKIP) public _FinalStage runAsync(Optional runAsync) { @@ -163,6 +172,9 @@ public _FinalStage isDebugMode(Boolean isDebugMode) { return this; } + /** + *

                        Whether to include debug fields (such as log file links) in the response.

                        + */ @java.lang.Override @JsonSetter(value = "is_debug_mode", nulls = Nulls.SKIP) public _FinalStage isDebugMode(Optional isDebugMode) { diff --git a/src/main/java/com/merge/api/ticketing/types/TicketRequest.java b/src/main/java/com/merge/api/ticketing/types/TicketRequest.java index 96dbc19dc..93c249b9c 100644 --- a/src/main/java/com/merge/api/ticketing/types/TicketRequest.java +++ b/src/main/java/com/merge/api/ticketing/types/TicketRequest.java @@ -420,6 +420,9 @@ public Builder from(TicketRequest other) { return this; } + /** + *

                        The ticket's name.

                        + */ @JsonSetter(value = "name", nulls = Nulls.SKIP) public Builder name(Optional name) { this.name = name; @@ -431,6 +434,9 @@ public Builder name(String name) { return this; } + /** + *

                        The individual Users who are assigned to this ticket. This does not include Users who just have view access to this ticket. To fetch all Users and Teams that can access the ticket, use the GET /tickets/{ticket_id}/viewers endpoint.

                        + */ @JsonSetter(value = "assignees", nulls = Nulls.SKIP) public Builder assignees(Optional>> assignees) { this.assignees = assignees; @@ -442,6 +448,9 @@ public Builder assignees(List> assignees) { return this; } + /** + *

                        The Teams that are assigned to this ticket. This does not include Teams who just have view access to this ticket. To fetch all Users and Teams that can access this ticket, use the GET /tickets/{ticket_id}/viewers endpoint.

                        + */ @JsonSetter(value = "assigned_teams", nulls = Nulls.SKIP) public Builder assignedTeams(Optional>> assignedTeams) { this.assignedTeams = assignedTeams; @@ -453,6 +462,9 @@ public Builder assignedTeams(List> assi return this; } + /** + *

                        The user who created this ticket.

                        + */ @JsonSetter(value = "creator", nulls = Nulls.SKIP) public Builder creator(Optional creator) { this.creator = creator; @@ -464,6 +476,9 @@ public Builder creator(TicketRequestCreator creator) { return this; } + /** + *

                        The ticket's due date.

                        + */ @JsonSetter(value = "due_date", nulls = Nulls.SKIP) public Builder dueDate(Optional dueDate) { this.dueDate = dueDate; @@ -475,6 +490,15 @@ public Builder dueDate(OffsetDateTime dueDate) { return this; } + /** + *

                        The current status of the ticket.

                        + *
                          + *
                        • OPEN - OPEN
                        • + *
                        • CLOSED - CLOSED
                        • + *
                        • IN_PROGRESS - IN_PROGRESS
                        • + *
                        • ON_HOLD - ON_HOLD
                        • + *
                        + */ @JsonSetter(value = "status", nulls = Nulls.SKIP) public Builder status(Optional status) { this.status = status; @@ -486,6 +510,9 @@ public Builder status(TicketStatusEnum status) { return this; } + /** + *

                        The ticket’s description. HTML version of description is mapped if supported by the third-party platform.

                        + */ @JsonSetter(value = "description", nulls = Nulls.SKIP) public Builder description(Optional description) { this.description = description; @@ -497,6 +524,9 @@ public Builder description(String description) { return this; } + /** + *

                        The Collections that this Ticket is included in.

                        + */ @JsonSetter(value = "collections", nulls = Nulls.SKIP) public Builder collections(Optional>> collections) { this.collections = collections; @@ -508,6 +538,9 @@ public Builder collections(List> collecti return this; } + /** + *

                        The sub category of the ticket within the 3rd party system. Examples include incident, task, subtask or to-do.

                        + */ @JsonSetter(value = "ticket_type", nulls = Nulls.SKIP) public Builder ticketType(Optional ticketType) { this.ticketType = ticketType; @@ -519,6 +552,9 @@ public Builder ticketType(String ticketType) { return this; } + /** + *

                        The account associated with the ticket.

                        + */ @JsonSetter(value = "account", nulls = Nulls.SKIP) public Builder account(Optional account) { this.account = account; @@ -530,6 +566,9 @@ public Builder account(TicketRequestAccount account) { return this; } + /** + *

                        The contact associated with the ticket.

                        + */ @JsonSetter(value = "contact", nulls = Nulls.SKIP) public Builder contact(Optional contact) { this.contact = contact; @@ -541,6 +580,9 @@ public Builder contact(TicketRequestContact contact) { return this; } + /** + *

                        The ticket's parent ticket.

                        + */ @JsonSetter(value = "parent_ticket", nulls = Nulls.SKIP) public Builder parentTicket(Optional parentTicket) { this.parentTicket = parentTicket; @@ -585,6 +627,9 @@ public Builder roles(List> roles) { return this; } + /** + *

                        When the ticket was completed.

                        + */ @JsonSetter(value = "completed_at", nulls = Nulls.SKIP) public Builder completedAt(Optional completedAt) { this.completedAt = completedAt; @@ -596,6 +641,9 @@ public Builder completedAt(OffsetDateTime completedAt) { return this; } + /** + *

                        The 3rd party url of the Ticket.

                        + */ @JsonSetter(value = "ticket_url", nulls = Nulls.SKIP) public Builder ticketUrl(Optional ticketUrl) { this.ticketUrl = ticketUrl; @@ -607,6 +655,15 @@ public Builder ticketUrl(String ticketUrl) { return this; } + /** + *

                        The priority or urgency of the Ticket.

                        + *
                          + *
                        • URGENT - URGENT
                        • + *
                        • HIGH - HIGH
                        • + *
                        • NORMAL - NORMAL
                        • + *
                        • LOW - LOW
                        • + *
                        + */ @JsonSetter(value = "priority", nulls = Nulls.SKIP) public Builder priority(Optional priority) { this.priority = priority; diff --git a/src/main/java/com/merge/api/ticketing/types/TicketingAttachmentEndpointRequest.java b/src/main/java/com/merge/api/ticketing/types/TicketingAttachmentEndpointRequest.java index c1039ef3d..79bd733e4 100644 --- a/src/main/java/com/merge/api/ticketing/types/TicketingAttachmentEndpointRequest.java +++ b/src/main/java/com/merge/api/ticketing/types/TicketingAttachmentEndpointRequest.java @@ -100,10 +100,16 @@ public interface ModelStage { public interface _FinalStage { TicketingAttachmentEndpointRequest build(); + /** + *

                        Whether to include debug fields (such as log file links) in the response.

                        + */ _FinalStage isDebugMode(Optional isDebugMode); _FinalStage isDebugMode(Boolean isDebugMode); + /** + *

                        Whether or not third-party updates should be run asynchronously.

                        + */ _FinalStage runAsync(Optional runAsync); _FinalStage runAsync(Boolean runAsync); @@ -147,6 +153,9 @@ public _FinalStage runAsync(Boolean runAsync) { return this; } + /** + *

                        Whether or not third-party updates should be run asynchronously.

                        + */ @java.lang.Override @JsonSetter(value = "run_async", nulls = Nulls.SKIP) public _FinalStage runAsync(Optional runAsync) { @@ -164,6 +173,9 @@ public _FinalStage isDebugMode(Boolean isDebugMode) { return this; } + /** + *

                        Whether to include debug fields (such as log file links) in the response.

                        + */ @java.lang.Override @JsonSetter(value = "is_debug_mode", nulls = Nulls.SKIP) public _FinalStage isDebugMode(Optional isDebugMode) { diff --git a/src/main/java/com/merge/api/ticketing/types/TicketingContactEndpointRequest.java b/src/main/java/com/merge/api/ticketing/types/TicketingContactEndpointRequest.java index cb12cc060..a97a4a09e 100644 --- a/src/main/java/com/merge/api/ticketing/types/TicketingContactEndpointRequest.java +++ b/src/main/java/com/merge/api/ticketing/types/TicketingContactEndpointRequest.java @@ -99,10 +99,16 @@ public interface ModelStage { public interface _FinalStage { TicketingContactEndpointRequest build(); + /** + *

                        Whether to include debug fields (such as log file links) in the response.

                        + */ _FinalStage isDebugMode(Optional isDebugMode); _FinalStage isDebugMode(Boolean isDebugMode); + /** + *

                        Whether or not third-party updates should be run asynchronously.

                        + */ _FinalStage runAsync(Optional runAsync); _FinalStage runAsync(Boolean runAsync); @@ -146,6 +152,9 @@ public _FinalStage runAsync(Boolean runAsync) { return this; } + /** + *

                        Whether or not third-party updates should be run asynchronously.

                        + */ @java.lang.Override @JsonSetter(value = "run_async", nulls = Nulls.SKIP) public _FinalStage runAsync(Optional runAsync) { @@ -163,6 +172,9 @@ public _FinalStage isDebugMode(Boolean isDebugMode) { return this; } + /** + *

                        Whether to include debug fields (such as log file links) in the response.

                        + */ @java.lang.Override @JsonSetter(value = "is_debug_mode", nulls = Nulls.SKIP) public _FinalStage isDebugMode(Optional isDebugMode) { diff --git a/src/main/java/com/merge/api/ticketing/types/TicketsListRequest.java b/src/main/java/com/merge/api/ticketing/types/TicketsListRequest.java index 071465e32..3988297bf 100644 --- a/src/main/java/com/merge/api/ticketing/types/TicketsListRequest.java +++ b/src/main/java/com/merge/api/ticketing/types/TicketsListRequest.java @@ -619,6 +619,9 @@ public Builder from(TicketsListRequest other) { return this; } + /** + *

                        Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.

                        + */ @JsonSetter(value = "expand", nulls = Nulls.SKIP) public Builder expand(Optional> expand) { this.expand = expand; @@ -635,6 +638,9 @@ public Builder expand(TicketsListRequestExpandItem expand) { return this; } + /** + *

                        If provided, will only return tickets for this account.

                        + */ @JsonSetter(value = "account_id", nulls = Nulls.SKIP) public Builder accountId(Optional accountId) { this.accountId = accountId; @@ -646,6 +652,9 @@ public Builder accountId(String accountId) { return this; } + /** + *

                        If provided, will only return tickets assigned to the assignee_ids; multiple assignee_ids can be separated by commas.

                        + */ @JsonSetter(value = "assignee_ids", nulls = Nulls.SKIP) public Builder assigneeIds(Optional assigneeIds) { this.assigneeIds = assigneeIds; @@ -657,6 +666,9 @@ public Builder assigneeIds(String assigneeIds) { return this; } + /** + *

                        If provided, will only return tickets assigned to the collection_ids; multiple collection_ids can be separated by commas.

                        + */ @JsonSetter(value = "collection_ids", nulls = Nulls.SKIP) public Builder collectionIds(Optional collectionIds) { this.collectionIds = collectionIds; @@ -668,6 +680,9 @@ public Builder collectionIds(String collectionIds) { return this; } + /** + *

                        If provided, will only return tickets completed after this datetime.

                        + */ @JsonSetter(value = "completed_after", nulls = Nulls.SKIP) public Builder completedAfter(Optional completedAfter) { this.completedAfter = completedAfter; @@ -679,6 +694,9 @@ public Builder completedAfter(OffsetDateTime completedAfter) { return this; } + /** + *

                        If provided, will only return tickets completed before this datetime.

                        + */ @JsonSetter(value = "completed_before", nulls = Nulls.SKIP) public Builder completedBefore(Optional completedBefore) { this.completedBefore = completedBefore; @@ -690,6 +708,9 @@ public Builder completedBefore(OffsetDateTime completedBefore) { return this; } + /** + *

                        If provided, will only return tickets for this contact.

                        + */ @JsonSetter(value = "contact_id", nulls = Nulls.SKIP) public Builder contactId(Optional contactId) { this.contactId = contactId; @@ -701,6 +722,9 @@ public Builder contactId(String contactId) { return this; } + /** + *

                        If provided, will only return objects created after this datetime.

                        + */ @JsonSetter(value = "created_after", nulls = Nulls.SKIP) public Builder createdAfter(Optional createdAfter) { this.createdAfter = createdAfter; @@ -712,6 +736,9 @@ public Builder createdAfter(OffsetDateTime createdAfter) { return this; } + /** + *

                        If provided, will only return objects created before this datetime.

                        + */ @JsonSetter(value = "created_before", nulls = Nulls.SKIP) public Builder createdBefore(Optional createdBefore) { this.createdBefore = createdBefore; @@ -723,6 +750,9 @@ public Builder createdBefore(OffsetDateTime createdBefore) { return this; } + /** + *

                        The pagination cursor value.

                        + */ @JsonSetter(value = "cursor", nulls = Nulls.SKIP) public Builder cursor(Optional cursor) { this.cursor = cursor; @@ -734,6 +764,9 @@ public Builder cursor(String cursor) { return this; } + /** + *

                        If provided, will only return tickets due after this datetime.

                        + */ @JsonSetter(value = "due_after", nulls = Nulls.SKIP) public Builder dueAfter(Optional dueAfter) { this.dueAfter = dueAfter; @@ -745,6 +778,9 @@ public Builder dueAfter(OffsetDateTime dueAfter) { return this; } + /** + *

                        If provided, will only return tickets due before this datetime.

                        + */ @JsonSetter(value = "due_before", nulls = Nulls.SKIP) public Builder dueBefore(Optional dueBefore) { this.dueBefore = dueBefore; @@ -756,6 +792,9 @@ public Builder dueBefore(OffsetDateTime dueBefore) { return this; } + /** + *

                        Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

                        + */ @JsonSetter(value = "include_deleted_data", nulls = Nulls.SKIP) public Builder includeDeletedData(Optional includeDeletedData) { this.includeDeletedData = includeDeletedData; @@ -767,6 +806,9 @@ public Builder includeDeletedData(Boolean includeDeletedData) { return this; } + /** + *

                        Whether to include the original data Merge fetched from the third-party to produce these models.

                        + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -778,6 +820,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

                        Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format.

                        + */ @JsonSetter(value = "include_remote_fields", nulls = Nulls.SKIP) public Builder includeRemoteFields(Optional includeRemoteFields) { this.includeRemoteFields = includeRemoteFields; @@ -789,6 +834,9 @@ public Builder includeRemoteFields(Boolean includeRemoteFields) { return this; } + /** + *

                        Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

                        + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; @@ -800,6 +848,9 @@ public Builder includeShellData(Boolean includeShellData) { return this; } + /** + *

                        If provided, only objects synced by Merge after this date time will be returned.

                        + */ @JsonSetter(value = "modified_after", nulls = Nulls.SKIP) public Builder modifiedAfter(Optional modifiedAfter) { this.modifiedAfter = modifiedAfter; @@ -811,6 +862,9 @@ public Builder modifiedAfter(OffsetDateTime modifiedAfter) { return this; } + /** + *

                        If provided, only objects synced by Merge before this date time will be returned.

                        + */ @JsonSetter(value = "modified_before", nulls = Nulls.SKIP) public Builder modifiedBefore(Optional modifiedBefore) { this.modifiedBefore = modifiedBefore; @@ -822,6 +876,9 @@ public Builder modifiedBefore(OffsetDateTime modifiedBefore) { return this; } + /** + *

                        Number of results to return per page.

                        + */ @JsonSetter(value = "page_size", nulls = Nulls.SKIP) public Builder pageSize(Optional pageSize) { this.pageSize = pageSize; @@ -833,6 +890,9 @@ public Builder pageSize(Integer pageSize) { return this; } + /** + *

                        If provided, will only return sub tickets of the parent_ticket_id.

                        + */ @JsonSetter(value = "parent_ticket_id", nulls = Nulls.SKIP) public Builder parentTicketId(Optional parentTicketId) { this.parentTicketId = parentTicketId; @@ -844,6 +904,15 @@ public Builder parentTicketId(String parentTicketId) { return this; } + /** + *

                        If provided, will only return tickets of this priority.

                        + *
                          + *
                        • URGENT - URGENT
                        • + *
                        • HIGH - HIGH
                        • + *
                        • NORMAL - NORMAL
                        • + *
                        • LOW - LOW
                        • + *
                        + */ @JsonSetter(value = "priority", nulls = Nulls.SKIP) public Builder priority(Optional priority) { this.priority = priority; @@ -855,6 +924,9 @@ public Builder priority(TicketsListRequestPriority priority) { return this; } + /** + *

                        If provided, will only return tickets created in the third party platform after this datetime.

                        + */ @JsonSetter(value = "remote_created_after", nulls = Nulls.SKIP) public Builder remoteCreatedAfter(Optional remoteCreatedAfter) { this.remoteCreatedAfter = remoteCreatedAfter; @@ -866,6 +938,9 @@ public Builder remoteCreatedAfter(OffsetDateTime remoteCreatedAfter) { return this; } + /** + *

                        If provided, will only return tickets created in the third party platform before this datetime.

                        + */ @JsonSetter(value = "remote_created_before", nulls = Nulls.SKIP) public Builder remoteCreatedBefore(Optional remoteCreatedBefore) { this.remoteCreatedBefore = remoteCreatedBefore; @@ -877,6 +952,9 @@ public Builder remoteCreatedBefore(OffsetDateTime remoteCreatedBefore) { return this; } + /** + *

                        Deprecated. Use show_enum_origins.

                        + */ @JsonSetter(value = "remote_fields", nulls = Nulls.SKIP) public Builder remoteFields(Optional remoteFields) { this.remoteFields = remoteFields; @@ -888,6 +966,9 @@ public Builder remoteFields(TicketsListRequestRemoteFields remoteFields) { return this; } + /** + *

                        The API provider's ID for the given object.

                        + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; @@ -899,6 +980,9 @@ public Builder remoteId(String remoteId) { return this; } + /** + *

                        If provided, will only return tickets updated in the third party platform after this datetime.

                        + */ @JsonSetter(value = "remote_updated_after", nulls = Nulls.SKIP) public Builder remoteUpdatedAfter(Optional remoteUpdatedAfter) { this.remoteUpdatedAfter = remoteUpdatedAfter; @@ -910,6 +994,9 @@ public Builder remoteUpdatedAfter(OffsetDateTime remoteUpdatedAfter) { return this; } + /** + *

                        If provided, will only return tickets updated in the third party platform before this datetime.

                        + */ @JsonSetter(value = "remote_updated_before", nulls = Nulls.SKIP) public Builder remoteUpdatedBefore(Optional remoteUpdatedBefore) { this.remoteUpdatedBefore = remoteUpdatedBefore; @@ -921,6 +1008,9 @@ public Builder remoteUpdatedBefore(OffsetDateTime remoteUpdatedBefore) { return this; } + /** + *

                        A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. Learn more

                        + */ @JsonSetter(value = "show_enum_origins", nulls = Nulls.SKIP) public Builder showEnumOrigins(Optional showEnumOrigins) { this.showEnumOrigins = showEnumOrigins; @@ -932,6 +1022,9 @@ public Builder showEnumOrigins(TicketsListRequestShowEnumOrigins showEnumOrigins return this; } + /** + *

                        If provided, will only return tickets of this status.

                        + */ @JsonSetter(value = "status", nulls = Nulls.SKIP) public Builder status(Optional status) { this.status = status; @@ -943,6 +1036,9 @@ public Builder status(String status) { return this; } + /** + *

                        If provided, will only return tickets matching the tags; multiple tags can be separated by commas.

                        + */ @JsonSetter(value = "tags", nulls = Nulls.SKIP) public Builder tags(Optional tags) { this.tags = tags; @@ -954,6 +1050,9 @@ public Builder tags(String tags) { return this; } + /** + *

                        If provided, will only return tickets of this type.

                        + */ @JsonSetter(value = "ticket_type", nulls = Nulls.SKIP) public Builder ticketType(Optional ticketType) { this.ticketType = ticketType; @@ -965,6 +1064,9 @@ public Builder ticketType(String ticketType) { return this; } + /** + *

                        If provided, will only return tickets where the URL matches or contains the substring

                        + */ @JsonSetter(value = "ticket_url", nulls = Nulls.SKIP) public Builder ticketUrl(Optional ticketUrl) { this.ticketUrl = ticketUrl; diff --git a/src/main/java/com/merge/api/ticketing/types/TicketsRemoteFieldClassesListRequest.java b/src/main/java/com/merge/api/ticketing/types/TicketsRemoteFieldClassesListRequest.java index 59c1ca0e8..1d34a7fca 100644 --- a/src/main/java/com/merge/api/ticketing/types/TicketsRemoteFieldClassesListRequest.java +++ b/src/main/java/com/merge/api/ticketing/types/TicketsRemoteFieldClassesListRequest.java @@ -186,6 +186,9 @@ public Builder from(TicketsRemoteFieldClassesListRequest other) { return this; } + /** + *

                        The pagination cursor value.

                        + */ @JsonSetter(value = "cursor", nulls = Nulls.SKIP) public Builder cursor(Optional cursor) { this.cursor = cursor; @@ -197,6 +200,9 @@ public Builder cursor(String cursor) { return this; } + /** + *

                        If provided, will only return remote field classes with the ids in this list

                        + */ @JsonSetter(value = "ids", nulls = Nulls.SKIP) public Builder ids(Optional ids) { this.ids = ids; @@ -208,6 +214,9 @@ public Builder ids(String ids) { return this; } + /** + *

                        Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

                        + */ @JsonSetter(value = "include_deleted_data", nulls = Nulls.SKIP) public Builder includeDeletedData(Optional includeDeletedData) { this.includeDeletedData = includeDeletedData; @@ -219,6 +228,9 @@ public Builder includeDeletedData(Boolean includeDeletedData) { return this; } + /** + *

                        Whether to include the original data Merge fetched from the third-party to produce these models.

                        + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -230,6 +242,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

                        Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

                        + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; @@ -241,6 +256,9 @@ public Builder includeShellData(Boolean includeShellData) { return this; } + /** + *

                        If provided, will only return remote field classes with this is_common_model_field value

                        + */ @JsonSetter(value = "is_common_model_field", nulls = Nulls.SKIP) public Builder isCommonModelField(Optional isCommonModelField) { this.isCommonModelField = isCommonModelField; @@ -252,6 +270,9 @@ public Builder isCommonModelField(Boolean isCommonModelField) { return this; } + /** + *

                        Number of results to return per page.

                        + */ @JsonSetter(value = "page_size", nulls = Nulls.SKIP) public Builder pageSize(Optional pageSize) { this.pageSize = pageSize; diff --git a/src/main/java/com/merge/api/ticketing/types/TicketsRetrieveRequest.java b/src/main/java/com/merge/api/ticketing/types/TicketsRetrieveRequest.java index 67ed5cbd9..e45ab26a9 100644 --- a/src/main/java/com/merge/api/ticketing/types/TicketsRetrieveRequest.java +++ b/src/main/java/com/merge/api/ticketing/types/TicketsRetrieveRequest.java @@ -170,6 +170,9 @@ public Builder from(TicketsRetrieveRequest other) { return this; } + /** + *

                        Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.

                        + */ @JsonSetter(value = "expand", nulls = Nulls.SKIP) public Builder expand(Optional> expand) { this.expand = expand; @@ -186,6 +189,9 @@ public Builder expand(TicketsRetrieveRequestExpandItem expand) { return this; } + /** + *

                        Whether to include the original data Merge fetched from the third-party to produce these models.

                        + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -197,6 +203,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

                        Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format.

                        + */ @JsonSetter(value = "include_remote_fields", nulls = Nulls.SKIP) public Builder includeRemoteFields(Optional includeRemoteFields) { this.includeRemoteFields = includeRemoteFields; @@ -208,6 +217,9 @@ public Builder includeRemoteFields(Boolean includeRemoteFields) { return this; } + /** + *

                        Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

                        + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; @@ -219,6 +231,9 @@ public Builder includeShellData(Boolean includeShellData) { return this; } + /** + *

                        Deprecated. Use show_enum_origins.

                        + */ @JsonSetter(value = "remote_fields", nulls = Nulls.SKIP) public Builder remoteFields(Optional remoteFields) { this.remoteFields = remoteFields; @@ -230,6 +245,9 @@ public Builder remoteFields(TicketsRetrieveRequestRemoteFields remoteFields) { return this; } + /** + *

                        A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. Learn more

                        + */ @JsonSetter(value = "show_enum_origins", nulls = Nulls.SKIP) public Builder showEnumOrigins(Optional showEnumOrigins) { this.showEnumOrigins = showEnumOrigins; diff --git a/src/main/java/com/merge/api/ticketing/types/TicketsViewersListRequest.java b/src/main/java/com/merge/api/ticketing/types/TicketsViewersListRequest.java index c724f405f..953808403 100644 --- a/src/main/java/com/merge/api/ticketing/types/TicketsViewersListRequest.java +++ b/src/main/java/com/merge/api/ticketing/types/TicketsViewersListRequest.java @@ -170,6 +170,9 @@ public Builder from(TicketsViewersListRequest other) { return this; } + /** + *

                        Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.

                        + */ @JsonSetter(value = "expand", nulls = Nulls.SKIP) public Builder expand(Optional> expand) { this.expand = expand; @@ -186,6 +189,9 @@ public Builder expand(TicketsViewersListRequestExpandItem expand) { return this; } + /** + *

                        The pagination cursor value.

                        + */ @JsonSetter(value = "cursor", nulls = Nulls.SKIP) public Builder cursor(Optional cursor) { this.cursor = cursor; @@ -197,6 +203,9 @@ public Builder cursor(String cursor) { return this; } + /** + *

                        Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

                        + */ @JsonSetter(value = "include_deleted_data", nulls = Nulls.SKIP) public Builder includeDeletedData(Optional includeDeletedData) { this.includeDeletedData = includeDeletedData; @@ -208,6 +217,9 @@ public Builder includeDeletedData(Boolean includeDeletedData) { return this; } + /** + *

                        Whether to include the original data Merge fetched from the third-party to produce these models.

                        + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -219,6 +231,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

                        Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

                        + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; @@ -230,6 +245,9 @@ public Builder includeShellData(Boolean includeShellData) { return this; } + /** + *

                        Number of results to return per page.

                        + */ @JsonSetter(value = "page_size", nulls = Nulls.SKIP) public Builder pageSize(Optional pageSize) { this.pageSize = pageSize; diff --git a/src/main/java/com/merge/api/ticketing/types/User.java b/src/main/java/com/merge/api/ticketing/types/User.java index 9a44c7d63..be183429f 100644 --- a/src/main/java/com/merge/api/ticketing/types/User.java +++ b/src/main/java/com/merge/api/ticketing/types/User.java @@ -286,6 +286,9 @@ public Builder id(String id) { return this; } + /** + *

                        The third-party API ID of the matching object.

                        + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; @@ -297,6 +300,9 @@ public Builder remoteId(String remoteId) { return this; } + /** + *

                        The datetime that this object was created by Merge.

                        + */ @JsonSetter(value = "created_at", nulls = Nulls.SKIP) public Builder createdAt(Optional createdAt) { this.createdAt = createdAt; @@ -308,6 +314,9 @@ public Builder createdAt(OffsetDateTime createdAt) { return this; } + /** + *

                        The datetime that this object was modified by Merge.

                        + */ @JsonSetter(value = "modified_at", nulls = Nulls.SKIP) public Builder modifiedAt(Optional modifiedAt) { this.modifiedAt = modifiedAt; @@ -319,6 +328,9 @@ public Builder modifiedAt(OffsetDateTime modifiedAt) { return this; } + /** + *

                        The user's name.

                        + */ @JsonSetter(value = "name", nulls = Nulls.SKIP) public Builder name(Optional name) { this.name = name; @@ -330,6 +342,9 @@ public Builder name(String name) { return this; } + /** + *

                        The user's email address.

                        + */ @JsonSetter(value = "email_address", nulls = Nulls.SKIP) public Builder emailAddress(Optional emailAddress) { this.emailAddress = emailAddress; @@ -341,6 +356,9 @@ public Builder emailAddress(String emailAddress) { return this; } + /** + *

                        Whether or not the user is active.

                        + */ @JsonSetter(value = "is_active", nulls = Nulls.SKIP) public Builder isActive(Optional isActive) { this.isActive = isActive; @@ -374,6 +392,9 @@ public Builder roles(List> roles) { return this; } + /** + *

                        The user's avatar picture.

                        + */ @JsonSetter(value = "avatar", nulls = Nulls.SKIP) public Builder avatar(Optional avatar) { this.avatar = avatar; @@ -385,6 +406,9 @@ public Builder avatar(String avatar) { return this; } + /** + *

                        Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

                        + */ @JsonSetter(value = "remote_was_deleted", nulls = Nulls.SKIP) public Builder remoteWasDeleted(Optional remoteWasDeleted) { this.remoteWasDeleted = remoteWasDeleted; diff --git a/src/main/java/com/merge/api/ticketing/types/UsersListRequest.java b/src/main/java/com/merge/api/ticketing/types/UsersListRequest.java index 3de44011f..041b63a62 100644 --- a/src/main/java/com/merge/api/ticketing/types/UsersListRequest.java +++ b/src/main/java/com/merge/api/ticketing/types/UsersListRequest.java @@ -290,6 +290,9 @@ public Builder from(UsersListRequest other) { return this; } + /** + *

                        Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.

                        + */ @JsonSetter(value = "expand", nulls = Nulls.SKIP) public Builder expand(Optional> expand) { this.expand = expand; @@ -306,6 +309,9 @@ public Builder expand(UsersListRequestExpandItem expand) { return this; } + /** + *

                        If provided, will only return objects created after this datetime.

                        + */ @JsonSetter(value = "created_after", nulls = Nulls.SKIP) public Builder createdAfter(Optional createdAfter) { this.createdAfter = createdAfter; @@ -317,6 +323,9 @@ public Builder createdAfter(OffsetDateTime createdAfter) { return this; } + /** + *

                        If provided, will only return objects created before this datetime.

                        + */ @JsonSetter(value = "created_before", nulls = Nulls.SKIP) public Builder createdBefore(Optional createdBefore) { this.createdBefore = createdBefore; @@ -328,6 +337,9 @@ public Builder createdBefore(OffsetDateTime createdBefore) { return this; } + /** + *

                        The pagination cursor value.

                        + */ @JsonSetter(value = "cursor", nulls = Nulls.SKIP) public Builder cursor(Optional cursor) { this.cursor = cursor; @@ -339,6 +351,9 @@ public Builder cursor(String cursor) { return this; } + /** + *

                        If provided, will only return users with emails equal to this value (case insensitive).

                        + */ @JsonSetter(value = "email_address", nulls = Nulls.SKIP) public Builder emailAddress(Optional emailAddress) { this.emailAddress = emailAddress; @@ -350,6 +365,9 @@ public Builder emailAddress(String emailAddress) { return this; } + /** + *

                        Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.

                        + */ @JsonSetter(value = "include_deleted_data", nulls = Nulls.SKIP) public Builder includeDeletedData(Optional includeDeletedData) { this.includeDeletedData = includeDeletedData; @@ -361,6 +379,9 @@ public Builder includeDeletedData(Boolean includeDeletedData) { return this; } + /** + *

                        Whether to include the original data Merge fetched from the third-party to produce these models.

                        + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -372,6 +393,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

                        Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

                        + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; @@ -383,6 +407,9 @@ public Builder includeShellData(Boolean includeShellData) { return this; } + /** + *

                        If provided, only objects synced by Merge after this date time will be returned.

                        + */ @JsonSetter(value = "modified_after", nulls = Nulls.SKIP) public Builder modifiedAfter(Optional modifiedAfter) { this.modifiedAfter = modifiedAfter; @@ -394,6 +421,9 @@ public Builder modifiedAfter(OffsetDateTime modifiedAfter) { return this; } + /** + *

                        If provided, only objects synced by Merge before this date time will be returned.

                        + */ @JsonSetter(value = "modified_before", nulls = Nulls.SKIP) public Builder modifiedBefore(Optional modifiedBefore) { this.modifiedBefore = modifiedBefore; @@ -405,6 +435,9 @@ public Builder modifiedBefore(OffsetDateTime modifiedBefore) { return this; } + /** + *

                        Number of results to return per page.

                        + */ @JsonSetter(value = "page_size", nulls = Nulls.SKIP) public Builder pageSize(Optional pageSize) { this.pageSize = pageSize; @@ -416,6 +449,9 @@ public Builder pageSize(Integer pageSize) { return this; } + /** + *

                        The API provider's ID for the given object.

                        + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; @@ -427,6 +463,9 @@ public Builder remoteId(String remoteId) { return this; } + /** + *

                        If provided, will only return users matching in this team.

                        + */ @JsonSetter(value = "team", nulls = Nulls.SKIP) public Builder team(Optional team) { this.team = team; diff --git a/src/main/java/com/merge/api/ticketing/types/UsersRetrieveRequest.java b/src/main/java/com/merge/api/ticketing/types/UsersRetrieveRequest.java index 9e379367d..e00f29679 100644 --- a/src/main/java/com/merge/api/ticketing/types/UsersRetrieveRequest.java +++ b/src/main/java/com/merge/api/ticketing/types/UsersRetrieveRequest.java @@ -116,6 +116,9 @@ public Builder from(UsersRetrieveRequest other) { return this; } + /** + *

                        Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.

                        + */ @JsonSetter(value = "expand", nulls = Nulls.SKIP) public Builder expand(Optional> expand) { this.expand = expand; @@ -132,6 +135,9 @@ public Builder expand(UsersRetrieveRequestExpandItem expand) { return this; } + /** + *

                        Whether to include the original data Merge fetched from the third-party to produce these models.

                        + */ @JsonSetter(value = "include_remote_data", nulls = Nulls.SKIP) public Builder includeRemoteData(Optional includeRemoteData) { this.includeRemoteData = includeRemoteData; @@ -143,6 +149,9 @@ public Builder includeRemoteData(Boolean includeRemoteData) { return this; } + /** + *

                        Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).

                        + */ @JsonSetter(value = "include_shell_data", nulls = Nulls.SKIP) public Builder includeShellData(Optional includeShellData) { this.includeShellData = includeShellData; diff --git a/src/main/java/com/merge/api/ticketing/types/Viewer.java b/src/main/java/com/merge/api/ticketing/types/Viewer.java index ff2c688b7..f7ed4b978 100644 --- a/src/main/java/com/merge/api/ticketing/types/Viewer.java +++ b/src/main/java/com/merge/api/ticketing/types/Viewer.java @@ -171,6 +171,9 @@ public Builder id(String id) { return this; } + /** + *

                        The third-party API ID of the matching object.

                        + */ @JsonSetter(value = "remote_id", nulls = Nulls.SKIP) public Builder remoteId(Optional remoteId) { this.remoteId = remoteId; @@ -182,6 +185,9 @@ public Builder remoteId(String remoteId) { return this; } + /** + *

                        The datetime that this object was created by Merge.

                        + */ @JsonSetter(value = "created_at", nulls = Nulls.SKIP) public Builder createdAt(Optional createdAt) { this.createdAt = createdAt; @@ -193,6 +199,9 @@ public Builder createdAt(OffsetDateTime createdAt) { return this; } + /** + *

                        The datetime that this object was modified by Merge.

                        + */ @JsonSetter(value = "modified_at", nulls = Nulls.SKIP) public Builder modifiedAt(Optional modifiedAt) { this.modifiedAt = modifiedAt; @@ -204,6 +213,9 @@ public Builder modifiedAt(OffsetDateTime modifiedAt) { return this; } + /** + *

                        The Team this Viewer belongs to.

                        + */ @JsonSetter(value = "team", nulls = Nulls.SKIP) public Builder team(Optional team) { this.team = team; @@ -215,6 +227,9 @@ public Builder team(ViewerTeam team) { return this; } + /** + *

                        The User this Viewer belongs to.

                        + */ @JsonSetter(value = "user", nulls = Nulls.SKIP) public Builder user(Optional user) { this.user = user;